From aa7f4e5f4f78ccae19da69cb0e3bd6af724a4a58 Mon Sep 17 00:00:00 2001 From: gausie Date: Fri, 22 Sep 2023 12:26:39 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20loathers?= =?UTF-8?q?/greenbox@8cc7f638e62681799d1a33a4547102e149608394=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/index-2d30bc7a.js | 471 --------------------------------------- assets/index-4523c83a.js | 471 +++++++++++++++++++++++++++++++++++++++ index.html | 2 +- 3 files changed, 472 insertions(+), 472 deletions(-) delete mode 100644 assets/index-2d30bc7a.js create mode 100644 assets/index-4523c83a.js diff --git a/assets/index-2d30bc7a.js b/assets/index-2d30bc7a.js deleted file mode 100644 index 0f6c3a4..0000000 --- a/assets/index-2d30bc7a.js +++ /dev/null @@ -1,471 +0,0 @@ -function cj(e,t){for(var r=0;rn[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"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bT={exports:{}},cg={},xT={exports:{}},Ae={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Uf=Symbol.for("react.element"),fj=Symbol.for("react.portal"),dj=Symbol.for("react.fragment"),pj=Symbol.for("react.strict_mode"),hj=Symbol.for("react.profiler"),mj=Symbol.for("react.provider"),gj=Symbol.for("react.context"),vj=Symbol.for("react.forward_ref"),yj=Symbol.for("react.suspense"),bj=Symbol.for("react.memo"),xj=Symbol.for("react.lazy"),l_=Symbol.iterator;function wj(e){return e===null||typeof e!="object"?null:(e=l_&&e[l_]||e["@@iterator"],typeof e=="function"?e:null)}var wT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ST=Object.assign,AT={};function Ju(e,t,r){this.props=e,this.context=t,this.refs=AT,this.updater=r||wT}Ju.prototype.isReactComponent={};Ju.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ju.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _T(){}_T.prototype=Ju.prototype;function Cx(e,t,r){this.props=e,this.context=t,this.refs=AT,this.updater=r||wT}var kx=Cx.prototype=new _T;kx.constructor=Cx;ST(kx,Ju.prototype);kx.isPureReactComponent=!0;var c_=Array.isArray,CT=Object.prototype.hasOwnProperty,Ex={current:null},kT={key:!0,ref:!0,__self:!0,__source:!0};function ET(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)CT.call(t,n)&&!kT.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,Y=R[U];if(0>>1;Ui(ue,q))hei(le,ue)?(R[U]=le,R[he]=q,U=he):(R[U]=ue,R[Z]=q,U=Z);else if(hei(le,q))R[U]=le,R[he]=q,U=he;else break e}}return $}function i(R,$){var q=R.sortIndex-$.sortIndex;return q!==0?q:R.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],l=[],c=1,f=null,d=3,h=!1,g=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var $=r(l);$!==null;){if($.callback===null)n(l);else if($.startTime<=R)n(l),$.sortIndex=$.expirationTime,t(u,$);else break;$=r(l)}}function x(R){if(p=!1,m(R),!g)if(r(u)!==null)g=!0,H(w);else{var $=r(l);$!==null&&F(x,$.startTime-R)}}function w(R,$){g=!1,p&&(p=!1,y(k),k=-1),h=!0;var q=d;try{for(m($),f=r(u);f!==null&&(!(f.expirationTime>$)||R&&!T());){var U=f.callback;if(typeof U=="function"){f.callback=null,d=f.priorityLevel;var Y=U(f.expirationTime<=$);$=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===r(u)&&n(u),m($)}else n(u);f=r(u)}if(f!==null)var K=!0;else{var Z=r(l);Z!==null&&F(x,Z.startTime-$),K=!1}return K}finally{f=null,d=q,h=!1}}var S=!1,A=null,k=-1,D=5,P=-1;function T(){return!(e.unstable_now()-PR||125U?(R.sortIndex=q,t(l,R),r(u)===null&&R===r(l)&&(p?(y(k),k=-1):p=!0,F(x,q-U))):(R.sortIndex=Y,t(u,R),g||h||(g=!0,H(w))),R},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(R){var $=d;return function(){var q=d;d=$;try{return R.apply(this,arguments)}finally{d=q}}}})(OT);TT.exports=OT;var $j=TT.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var $T=C,Gr=$j;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c1=Object.prototype.hasOwnProperty,Mj=/^[: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]*$/,p_={},h_={};function Bj(e){return c1.call(h_,e)?!0:c1.call(p_,e)?!1:Mj.test(e)?h_[e]=!0:(p_[e]=!0,!1)}function Ij(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rj(e,t,r,n){if(t===null||typeof t>"u"||Ij(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yr(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Kt[e]=new yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Kt[t]=new yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Kt[e]=new yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Kt[e]=new yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Kt[e]=new yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Kt[e]=new yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Kt[e]=new yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Kt[e]=new yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Kt[e]=new yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Px=/[\-:]([a-z])/g;function Tx(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Px,Tx);Kt[t]=new yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Px,Tx);Kt[t]=new yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Px,Tx);Kt[t]=new yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Kt[e]=new yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Kt.xlinkHref=new yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Kt[e]=new yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ox(e,t,r,n){var i=Kt.hasOwnProperty(t)?Kt[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var u=` -`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{uv=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Gl(e):""}function jj(e){switch(e.tag){case 5:return Gl(e.type);case 16:return Gl("Lazy");case 13:return Gl("Suspense");case 19:return Gl("SuspenseList");case 0:case 2:case 15:return e=lv(e.type,!1),e;case 11:return e=lv(e.type.render,!1),e;case 1:return e=lv(e.type,!0),e;default:return""}}function h1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ks:return"Fragment";case Cs:return"Portal";case f1:return"Profiler";case $x:return"StrictMode";case d1:return"Suspense";case p1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case IT:return(e.displayName||"Context")+".Consumer";case BT:return(e._context.displayName||"Context")+".Provider";case Mx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bx:return t=e.displayName||null,t!==null?t:h1(e.type)||"Memo";case ha:t=e._payload,e=e._init;try{return h1(e(t))}catch{}}return null}function Fj(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return h1(t);case 8:return t===$x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function za(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nj(e){var t=jT(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rd(e){e._valueTracker||(e._valueTracker=Nj(e))}function FT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=jT(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function dh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function m1(e,t){var r=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function g_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=za(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function NT(e,t){t=t.checked,t!=null&&Ox(e,"checked",t,!1)}function g1(e,t){NT(e,t);var r=za(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?v1(e,t.type,r):t.hasOwnProperty("defaultValue")&&v1(e,t.type,za(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function v_(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function v1(e,t,r){(t!=="number"||dh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Kl=Array.isArray;function Xs(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=jd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var sc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lj=["Webkit","ms","Moz","O"];Object.keys(sc).forEach(function(e){Lj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sc[t]=sc[e]})});function qT(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||sc.hasOwnProperty(e)&&sc[e]?(""+t).trim():t+"px"}function UT(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=qT(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var zj=lt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function x1(e,t){if(t){if(zj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function w1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var S1=null;function Ix(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var A1=null,Qs=null,Js=null;function x_(e){if(e=Gf(e)){if(typeof A1!="function")throw Error(X(280));var t=e.stateNode;t&&(t=mg(t),A1(e.stateNode,e.type,t))}}function HT(e){Qs?Js?Js.push(e):Js=[e]:Qs=e}function WT(){if(Qs){var e=Qs,t=Js;if(Js=Qs=null,x_(e),t)for(e=0;e>>=0,e===0?32:31-(Jj(e)/Zj|0)|0}var Fd=64,Nd=4194304;function Yl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Yl(s):(a&=o,a!==0&&(n=Yl(a)))}else o=r&~i,o!==0?n=Yl(o):a!==0&&(n=Yl(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Hf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qn(t),e[t]=r}function nF(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=lc),P_=String.fromCharCode(32),T_=!1;function dO(e,t){switch(e){case"keyup":return OF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Es=!1;function MF(e,t){switch(e){case"compositionend":return pO(t);case"keypress":return t.which!==32?null:(T_=!0,P_);case"textInput":return e=t.data,e===P_&&T_?null:e;default:return null}}function BF(e,t){if(Es)return e==="compositionend"||!qx&&dO(e,t)?(e=cO(),Pp=Lx=Sa=null,Es=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=B_(r)}}function vO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yO(){for(var e=window,t=dh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dh(e.document)}return t}function Ux(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function qF(e){var t=yO(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&vO(r.ownerDocument.documentElement,r)){if(n!==null&&Ux(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=I_(r,a);var o=I_(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ds=null,P1=null,fc=null,T1=!1;function R_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;T1||Ds==null||Ds!==dh(n)||(n=Ds,"selectionStart"in n&&Ux(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),fc&&Lc(fc,n)||(fc=n,n=bh(P1,"onSelect"),0Os||(e.current=R1[Os],R1[Os]=null,Os--)}function We(e,t){Os++,R1[Os]=e.current,e.current=t}var Va={},ar=Ya(Va),kr=Ya(!1),Uo=Va;function vu(e,t){var r=e.type.contextTypes;if(!r)return Va;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Er(e){return e=e.childContextTypes,e!=null}function wh(){et(kr),et(ar)}function q_(e,t,r){if(ar.current!==Va)throw Error(X(168));We(ar,t),We(kr,r)}function EO(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(X(108,Fj(e)||"Unknown",i));return lt({},r,n)}function Sh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Va,Uo=ar.current,We(ar,e),We(kr,kr.current),!0}function U_(e,t,r){var n=e.stateNode;if(!n)throw Error(X(169));r?(e=EO(e,t,Uo),n.__reactInternalMemoizedMergedChildContext=e,et(kr),et(ar),We(ar,e)):et(kr),We(kr,r)}var Pi=null,gg=!1,Av=!1;function DO(e){Pi===null?Pi=[e]:Pi.push(e)}function tN(e){gg=!0,DO(e)}function Xa(){if(!Av&&Pi!==null){Av=!0;var e=0,t=Fe;try{var r=Pi;for(Fe=1;e>=o,i-=o,Mi=1<<32-qn(t)+i|r<k?(D=A,A=null):D=A.sibling;var P=d(y,A,m[k],x);if(P===null){A===null&&(A=D);break}e&&A&&P.alternate===null&&t(y,A),v=a(P,v,k),S===null?w=P:S.sibling=P,S=P,A=D}if(k===m.length)return r(y,A),it&&po(y,k),w;if(A===null){for(;kk?(D=A,A=null):D=A.sibling;var T=d(y,A,P.value,x);if(T===null){A===null&&(A=D);break}e&&A&&T.alternate===null&&t(y,A),v=a(T,v,k),S===null?w=T:S.sibling=T,S=T,A=D}if(P.done)return r(y,A),it&&po(y,k),w;if(A===null){for(;!P.done;k++,P=m.next())P=f(y,P.value,x),P!==null&&(v=a(P,v,k),S===null?w=P:S.sibling=P,S=P);return it&&po(y,k),w}for(A=n(y,A);!P.done;k++,P=m.next())P=h(A,y,k,P.value,x),P!==null&&(e&&P.alternate!==null&&A.delete(P.key===null?k:P.key),v=a(P,v,k),S===null?w=P:S.sibling=P,S=P);return e&&A.forEach(function(I){return t(y,I)}),it&&po(y,k),w}function b(y,v,m,x){if(typeof m=="object"&&m!==null&&m.type===ks&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Id:e:{for(var w=m.key,S=v;S!==null;){if(S.key===w){if(w=m.type,w===ks){if(S.tag===7){r(y,S.sibling),v=i(S,m.props.children),v.return=y,y=v;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ha&&Q_(w)===S.type){r(y,S.sibling),v=i(S,m.props),v.ref=Cl(y,S,m),v.return=y,y=v;break e}r(y,S);break}else t(y,S);S=S.sibling}m.type===ks?(v=Bo(m.props.children,y.mode,x,m.key),v.return=y,y=v):(x=jp(m.type,m.key,m.props,null,y.mode,x),x.ref=Cl(y,v,m),x.return=y,y=x)}return o(y);case Cs:e:{for(S=m.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){r(y,v.sibling),v=i(v,m.children||[]),v.return=y,y=v;break e}else{r(y,v);break}else t(y,v);v=v.sibling}v=Ov(m,y.mode,x),v.return=y,y=v}return o(y);case ha:return S=m._init,b(y,v,S(m._payload),x)}if(Kl(m))return g(y,v,m,x);if(xl(m))return p(y,v,m,x);Wd(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,v!==null&&v.tag===6?(r(y,v.sibling),v=i(v,m),v.return=y,y=v):(r(y,v),v=Tv(m,y.mode,x),v.return=y,y=v),o(y)):r(y,v)}return b}var bu=RO(!0),jO=RO(!1),Kf={},fi=Ya(Kf),Uc=Ya(Kf),Hc=Ya(Kf);function Eo(e){if(e===Kf)throw Error(X(174));return e}function Zx(e,t){switch(We(Hc,t),We(Uc,e),We(fi,Kf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:b1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=b1(t,e)}et(fi),We(fi,t)}function xu(){et(fi),et(Uc),et(Hc)}function FO(e){Eo(Hc.current);var t=Eo(fi.current),r=b1(t,e.type);t!==r&&(We(Uc,e),We(fi,r))}function ew(e){Uc.current===e&&(et(fi),et(Uc))}var ot=Ya(0);function Dh(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _v=[];function tw(){for(var e=0;e<_v.length;e++)_v[e]._workInProgressVersionPrimary=null;_v.length=0}var $p=ra.ReactCurrentDispatcher,Cv=ra.ReactCurrentBatchConfig,Wo=0,ut=null,Et=null,It=null,Ph=!1,dc=!1,Wc=0,nN=0;function Yt(){throw Error(X(321))}function rw(e,t){if(t===null)return!1;for(var r=0;rr?r:4,e(!0);var n=Cv.transition;Cv.transition={};try{e(!1),t()}finally{Fe=r,Cv.transition=n}}function e$(){return Sn().memoizedState}function aN(e,t,r){var n=Oa(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},t$(e))r$(t,r);else if(r=$O(e,t,r,n),r!==null){var i=mr();Un(r,e,n,i),n$(r,t,n)}}function oN(e,t,r){var n=Oa(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(t$(e))r$(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Gn(s,o)){var u=t.interleaved;u===null?(i.next=i,Qx(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=$O(e,t,i,n),r!==null&&(i=mr(),Un(r,e,n,i),n$(r,t,n))}}function t$(e){var t=e.alternate;return e===ut||t!==null&&t===ut}function r$(e,t){dc=Ph=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function n$(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,jx(e,r)}}var Th={readContext:wn,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useInsertionEffect:Yt,useLayoutEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useMutableSource:Yt,useSyncExternalStore:Yt,useId:Yt,unstable_isNewReconciler:!1},sN={readContext:wn,useCallback:function(e,t){return ei().memoizedState=[e,t===void 0?null:t],e},useContext:wn,useEffect:Z_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Mp(4194308,4,YO.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Mp(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mp(4,2,e,t)},useMemo:function(e,t){var r=ei();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ei();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=aN.bind(null,ut,e),[n.memoizedState,e]},useRef:function(e){var t=ei();return e={current:e},t.memoizedState=e},useState:J_,useDebugValue:ow,useDeferredValue:function(e){return ei().memoizedState=e},useTransition:function(){var e=J_(!1),t=e[0];return e=iN.bind(null,e[1]),ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ut,i=ei();if(it){if(r===void 0)throw Error(X(407));r=r()}else{if(r=t(),jt===null)throw Error(X(349));Wo&30||zO(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Z_(qO.bind(null,n,a,e),[e]),n.flags|=2048,Kc(9,VO.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ei(),t=jt.identifierPrefix;if(it){var r=Bi,n=Mi;r=(n&~(1<<32-qn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Wc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[oi]=t,e[qc]=n,d$(e,t,!1,!1),t.stateNode=e;e:{switch(o=w1(r,n),r){case"dialog":Xe("cancel",e),Xe("close",e),i=n;break;case"iframe":case"object":case"embed":Xe("load",e),i=n;break;case"video":case"audio":for(i=0;iSu&&(t.flags|=128,n=!0,kl(a,!1),t.lanes=4194304)}else{if(!n)if(e=Dh(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),kl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!it)return Xt(t),null}else 2*gt()-a.renderingStartTime>Su&&r!==1073741824&&(t.flags|=128,n=!0,kl(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=gt(),t.sibling=null,r=ot.current,We(ot,n?r&1|2:r&1),t):(Xt(t),null);case 22:case 23:return dw(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Fr&1073741824&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function mN(e,t){switch(Wx(t),t.tag){case 1:return Er(t.type)&&wh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xu(),et(kr),et(ar),tw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ew(t),null;case 13:if(et(ot),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));yu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return et(ot),null;case 4:return xu(),null;case 10:return Xx(t.type._context),null;case 22:case 23:return dw(),null;case 24:return null;default:return null}}var Kd=!1,rr=!1,gN=typeof WeakSet=="function"?WeakSet:Set,re=null;function Is(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){pt(e,t,n)}else r.current=null}function K1(e,t,r){try{r()}catch(n){pt(e,t,n)}}var uC=!1;function vN(e,t){if(O1=vh,e=yO(),Ux(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(u=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++l===i&&(s=o),d===a&&++c===n&&(u=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for($1={focusedElem:e,selectionRange:r},vh=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,b=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:Mn(t.type,p),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(x){pt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return g=uC,uC=!1,g}function pc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&K1(t,r,a)}i=i.next}while(i!==n)}}function bg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Y1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function m$(e){var t=e.alternate;t!==null&&(e.alternate=null,m$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oi],delete t[qc],delete t[I1],delete t[ZF],delete t[eN])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function g$(e){return e.tag===5||e.tag===3||e.tag===4}function lC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function X1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=xh));else if(n!==4&&(e=e.child,e!==null))for(X1(e,t,r),e=e.sibling;e!==null;)X1(e,t,r),e=e.sibling}function Q1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Q1(e,t,r),e=e.sibling;e!==null;)Q1(e,t,r),e=e.sibling}var Vt=null,Bn=!1;function sa(e,t,r){for(r=r.child;r!==null;)v$(e,t,r),r=r.sibling}function v$(e,t,r){if(ci&&typeof ci.onCommitFiberUnmount=="function")try{ci.onCommitFiberUnmount(fg,r)}catch{}switch(r.tag){case 5:rr||Is(r,t);case 6:var n=Vt,i=Bn;Vt=null,sa(e,t,r),Vt=n,Bn=i,Vt!==null&&(Bn?(e=Vt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Vt.removeChild(r.stateNode));break;case 18:Vt!==null&&(Bn?(e=Vt,r=r.stateNode,e.nodeType===8?Sv(e.parentNode,r):e.nodeType===1&&Sv(e,r),Fc(e)):Sv(Vt,r.stateNode));break;case 4:n=Vt,i=Bn,Vt=r.stateNode.containerInfo,Bn=!0,sa(e,t,r),Vt=n,Bn=i;break;case 0:case 11:case 14:case 15:if(!rr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&K1(r,t,o),i=i.next}while(i!==n)}sa(e,t,r);break;case 1:if(!rr&&(Is(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){pt(r,t,s)}sa(e,t,r);break;case 21:sa(e,t,r);break;case 22:r.mode&1?(rr=(n=rr)||r.memoizedState!==null,sa(e,t,r),rr=n):sa(e,t,r);break;default:sa(e,t,r)}}function cC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new gN),t.forEach(function(n){var i=kN.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Pn(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=gt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*bN(n/1960))-n,10e?16:e,Aa===null)var n=!1;else{if(e=Aa,Aa=null,Mh=0,De&6)throw Error(X(331));var i=De;for(De|=4,re=e.current;re!==null;){var a=re,o=a.child;if(re.flags&16){var s=a.deletions;if(s!==null){for(var u=0;ugt()-cw?Mo(e,0):lw|=r),Dr(e,t)}function C$(e,t){t===0&&(e.mode&1?(t=Nd,Nd<<=1,!(Nd&130023424)&&(Nd=4194304)):t=1);var r=mr();e=Gi(e,t),e!==null&&(Hf(e,t,r),Dr(e,r))}function CN(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),C$(e,r)}function kN(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(X(314))}n!==null&&n.delete(t),C$(e,r)}var k$;k$=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||kr.current)_r=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return _r=!1,pN(e,t,r);_r=!!(e.flags&131072)}else _r=!1,it&&t.flags&1048576&&PO(t,_h,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bp(e,t),e=t.pendingProps;var i=vu(t,ar.current);eu(t,r),i=nw(null,t,n,e,i,r);var a=iw();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Er(n)?(a=!0,Sh(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Jx(t),i.updater=vg,t.stateNode=i,i._reactInternals=t,z1(t,n,e,r),t=U1(null,t,n,!0,a,r)):(t.tag=0,it&&a&&Hx(t),fr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bp(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=DN(n),e=Mn(n,e),i){case 0:t=q1(null,t,n,e,r);break e;case 1:t=aC(null,t,n,e,r);break e;case 11:t=nC(null,t,n,e,r);break e;case 14:t=iC(null,t,n,Mn(n.type,e),r);break e}throw Error(X(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Mn(n,i),q1(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Mn(n,i),aC(e,t,n,i,r);case 3:e:{if(l$(t),e===null)throw Error(X(387));n=t.pendingProps,a=t.memoizedState,i=a.element,MO(e,t),Eh(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=wu(Error(X(423)),t),t=oC(e,t,n,r,i);break e}else if(n!==i){i=wu(Error(X(424)),t),t=oC(e,t,n,r,i);break e}else for(Vr=Da(t.stateNode.containerInfo.firstChild),Ur=t,it=!0,Rn=null,r=jO(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(yu(),n===i){t=Ki(e,t,r);break e}fr(e,t,n,r)}t=t.child}return t;case 5:return FO(t),e===null&&F1(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,M1(n,i)?o=null:a!==null&&M1(n,a)&&(t.flags|=32),u$(e,t),fr(e,t,o,r),t.child;case 6:return e===null&&F1(t),null;case 13:return c$(e,t,r);case 4:return Zx(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=bu(t,null,n,r):fr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Mn(n,i),nC(e,t,n,i,r);case 7:return fr(e,t,t.pendingProps,r),t.child;case 8:return fr(e,t,t.pendingProps.children,r),t.child;case 12:return fr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,We(Ch,n._currentValue),n._currentValue=o,a!==null)if(Gn(a.value,o)){if(a.children===i.children&&!kr.current){t=Ki(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=Li(-1,r&-r),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),N1(a.return,r,t),s.lanes|=r;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(X(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),N1(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}fr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,eu(t,r),i=wn(i),n=n(i),t.flags|=1,fr(e,t,n,r),t.child;case 14:return n=t.type,i=Mn(n,t.pendingProps),i=Mn(n.type,i),iC(e,t,n,i,r);case 15:return o$(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Mn(n,i),Bp(e,t),t.tag=1,Er(n)?(e=!0,Sh(t)):e=!1,eu(t,r),IO(t,n,i),z1(t,n,i,r),U1(null,t,n,!0,e,r);case 19:return f$(e,t,r);case 22:return s$(e,t,r)}throw Error(X(156,t.tag))};function E$(e,t){return ZT(e,t)}function EN(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(e,t,r,n){return new EN(e,t,r,n)}function hw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DN(e){if(typeof e=="function")return hw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mx)return 11;if(e===Bx)return 14}return 2}function $a(e,t){var r=e.alternate;return r===null?(r=fn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function jp(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")hw(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ks:return Bo(r.children,i,a,t);case $x:o=8,i|=8;break;case f1:return e=fn(12,r,t,i|2),e.elementType=f1,e.lanes=a,e;case d1:return e=fn(13,r,t,i),e.elementType=d1,e.lanes=a,e;case p1:return e=fn(19,r,t,i),e.elementType=p1,e.lanes=a,e;case RT:return wg(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case BT:o=10;break e;case IT:o=9;break e;case Mx:o=11;break e;case Bx:o=14;break e;case ha:o=16,n=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=fn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Bo(e,t,r,n){return e=fn(7,e,n,t),e.lanes=r,e}function wg(e,t,r,n){return e=fn(22,e,n,t),e.elementType=RT,e.lanes=r,e.stateNode={isHidden:!1},e}function Tv(e,t,r){return e=fn(6,e,null,t),e.lanes=r,e}function Ov(e,t,r){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function PN(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fv(0),this.expirationTimes=fv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fv(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mw(e,t,r,n,i,a,o,s,u){return e=new PN(e,t,r,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=fn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jx(a),e}function TN(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O$)}catch(e){console.error(e)}}O$(),PT.exports=Qr;var Yf=PT.exports,yC=Yf;l1.createRoot=yC.createRoot,l1.hydrateRoot=yC.hydrateRoot;function IN(e){if(e.sheet)return e.sheet;for(var t=0;t0?qt(tl,--Or):0,Au--,xt===10&&(Au=1,Eg--),xt}function Hr(){return xt=Or2||Qc(xt)>3?"":" "}function KN(e,t){for(;--t&&Hr()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return Xf(e,Fp()+(t<6&&di()==32&&Hr()==32))}function n2(e){for(;Hr();)switch(xt){case e:return Or;case 34:case 39:e!==34&&e!==39&&n2(xt);break;case 40:e===41&&n2(e);break;case 92:Hr();break}return Or}function YN(e,t){for(;Hr()&&e+xt!==47+10;)if(e+xt===42+42&&di()===47)break;return"/*"+Xf(t,Or-1)+"*"+kg(e===47?e:Hr())}function XN(e){for(;!Qc(di());)Hr();return Xf(e,Or)}function QN(e){return j$(Lp("",null,null,null,[""],e=R$(e),0,[0],e))}function Lp(e,t,r,n,i,a,o,s,u){for(var l=0,c=0,f=o,d=0,h=0,g=0,p=1,b=1,y=1,v=0,m="",x=i,w=a,S=n,A=m;b;)switch(g=v,v=Hr()){case 40:if(g!=108&&qt(A,f-1)==58){r2(A+=Ie(Np(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Np(v);break;case 9:case 10:case 13:case 32:A+=GN(g);break;case 92:A+=KN(Fp()-1,7);continue;case 47:switch(di()){case 42:case 47:Qd(JN(YN(Hr(),Fp()),t,r),u);break;default:A+="/"}break;case 123*p:s[l++]=ii(A)*y;case 125*p:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:y==-1&&(A=Ie(A,/\f/g,"")),h>0&&ii(A)-f&&Qd(h>32?xC(A+";",n,r,f-1):xC(Ie(A," ","")+";",n,r,f-2),u);break;case 59:A+=";";default:if(Qd(S=bC(A,t,r,l,c,i,s,m,x=[],w=[],f),a),v===123)if(c===0)Lp(A,t,S,S,x,a,f,s,w);else switch(d===99&&qt(A,3)===110?100:d){case 100:case 108:case 109:case 115:Lp(e,S,S,n&&Qd(bC(e,S,S,0,0,i,s,m,i,x=[],f),w),i,w,f,s,n?x:w);break;default:Lp(A,S,S,S,[""],w,0,s,w)}}l=c=h=0,p=y=1,m=A="",f=o;break;case 58:f=1+ii(A),h=g;default:if(p<1){if(v==123)--p;else if(v==125&&p++==0&&WN()==125)continue}switch(A+=kg(v),v*p){case 38:y=c>0?1:(A+="\f",-1);break;case 44:s[l++]=(ii(A)-1)*y,y=1;break;case 64:di()===45&&(A+=Np(Hr())),d=di(),c=f=ii(m=A+=XN(Fp())),v++;break;case 45:g===45&&ii(A)==2&&(p=0)}}return a}function bC(e,t,r,n,i,a,o,s,u,l,c){for(var f=i-1,d=i===0?a:[""],h=ww(d),g=0,p=0,b=0;g0?d[y]+" "+v:Ie(v,/&\f/g,d[y])))&&(u[b++]=m);return Dg(e,t,r,i===0?bw:s,u,l,c)}function JN(e,t,r){return Dg(e,t,r,$$,kg(HN()),Xc(e,2,-2),0)}function xC(e,t,r,n){return Dg(e,t,r,xw,Xc(e,0,n),Xc(e,n+1,-1),n)}function ru(e,t){for(var r="",n=ww(e),i=0;i6)switch(qt(e,t+1)){case 109:if(qt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+Rh+(qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~r2(e,"stretch")?N$(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qt(e,t+1)!==115)break;case 6444:switch(qt(e,ii(e)-3-(~r2(e,"!important")&&10))){case 107:return Ie(e,":",":"+Be)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(qt(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+Qt+"$2box$3")+e}break;case 5936:switch(qt(e,t+11)){case 114:return Be+e+Qt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+Qt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+Qt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+Qt+e+e}return e}var sL=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case xw:t.return=N$(t.value,t.length);break;case M$:return ru([Dl(t,{value:Ie(t.value,"@","@"+Be)})],i);case bw:if(t.length)return UN(t.props,function(a){switch(qN(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ru([Dl(t,{props:[Ie(a,/:(read-\w+)/,":"+Rh+"$1")]})],i);case"::placeholder":return ru([Dl(t,{props:[Ie(a,/:(plac\w+)/,":"+Be+"input-$1")]}),Dl(t,{props:[Ie(a,/:(plac\w+)/,":"+Rh+"$1")]}),Dl(t,{props:[Ie(a,/:(plac\w+)/,Qt+"input-$1")]})],i)}return""})}},uL=[sL],lL=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var b=p.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||uL,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),y=1;y=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xL={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wL=/[A-Z]|^ms/g,SL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G$=function(t){return t.charCodeAt(1)===45},AC=function(t){return t!=null&&typeof t!="boolean"},$v=F$(function(e){return G$(e)?e:e.replace(wL,"-$&").toLowerCase()}),_C=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(SL,function(n,i,a){return ai={name:i,styles:a,next:ai},i})}return xL[t]!==1&&!G$(t)&&typeof r=="number"&&r!==0?r+"px":r};function Jc(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ai={name:r.name,styles:r.styles,next:ai},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ai={name:n.name,styles:n.styles,next:ai},n=n.next;var i=r.styles+";";return i}return AL(e,t,r)}case"function":{if(e!==void 0){var a=ai,o=r(e);return ai=a,Jc(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function AL(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i_.jsx(Ng,{styles:Z$}),OL=({scope:e=""})=>_.jsx(Ng,{styles:J$` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${Z$} - `});function $L(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function or(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=C.createContext(o);s.displayName=t;function u(){var l;const c=C.useContext(s);if(!c&&r){const f=new Error(a??$L(n,i));throw f.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,f,u),f}return c}return[s.Provider,u,s]}var[ML,BL]=or({strict:!1,name:"PortalManagerContext"});function e4(e){const{children:t,zIndex:r}=e;return _.jsx(ML,{value:{zIndex:r},children:t})}e4.displayName="PortalManager";var _u=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect,[t4,IL]=or({strict:!1,name:"PortalContext"}),kw="chakra-portal",RL=".chakra-portal",jL=e=>_.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),FL=e=>{const{appendToParentPortal:t,children:r}=e,[n,i]=C.useState(null),a=C.useRef(null),[,o]=C.useState({});C.useEffect(()=>o({}),[]);const s=IL(),u=BL();_u(()=>{if(!n)return;const c=n.ownerDocument,f=t?s??c.body:c.body;if(!f)return;a.current=c.createElement("div"),a.current.className=kw,f.appendChild(a.current),o({});const d=a.current;return()=>{f.contains(d)&&f.removeChild(d)}},[n]);const l=u!=null&&u.zIndex?_.jsx(jL,{zIndex:u==null?void 0:u.zIndex,children:r}):r;return a.current?Yf.createPortal(_.jsx(t4,{value:a.current,children:l}),a.current):_.jsx("span",{ref:c=>{c&&i(c)}})},NL=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,i=r.current,a=i??(typeof window<"u"?document.body:void 0),o=C.useMemo(()=>{const u=i==null?void 0:i.ownerDocument.createElement("div");return u&&(u.className=kw),u},[i]),[,s]=C.useState({});return _u(()=>s({}),[]),_u(()=>{if(!(!o||!a))return a.appendChild(o),()=>{a.removeChild(o)}},[o,a]),a&&o?Yf.createPortal(_.jsx(t4,{value:n?o:null,children:t}),o):null};function Qf(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?_.jsx(NL,{containerRef:r,...n}):_.jsx(FL,{...n})}Qf.className=kw;Qf.selector=RL;Qf.displayName="Portal";function Jf(){const e=C.useContext(Zc);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Ew=C.createContext({});Ew.displayName="ColorModeContext";function Zf(){const e=C.useContext(Ew);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Fh(e,t){const{colorMode:r}=Zf();return r==="dark"?t:e}var Jd={light:"chakra-ui-light",dark:"chakra-ui-dark"};function LL(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,i==null||i()},setClassName(n){document.body.classList.add(n?Jd.dark:Jd.light),document.body.classList.remove(n?Jd.light:Jd.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var i;return((i=r.query().matches)!=null?i:n==="dark")?"dark":"light"},addListener(n){const i=r.query(),a=o=>{n(o.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var zL="chakra-ui-color-mode";function VL(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var qL=VL(zL),EC=()=>{};function DC(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function r4(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:o=qL}=e,s=i==="dark"?"dark":"light",[u,l]=C.useState(()=>DC(o,s)),[c,f]=C.useState(()=>DC(o)),{getSystemTheme:d,setClassName:h,setDataset:g,addListener:p}=C.useMemo(()=>LL({preventTransition:a}),[a]),b=i==="system"&&!u?c:u,y=C.useCallback(x=>{const w=x==="system"?d():x;l(w),h(w==="dark"),g(w),o.set(w)},[o,d,h,g]);_u(()=>{i==="system"&&f(d())},[]),C.useEffect(()=>{const x=o.get();if(x){y(x);return}if(i==="system"){y("system");return}y(s)},[o,s,i,y]);const v=C.useCallback(()=>{y(b==="dark"?"light":"dark")},[b,y]);C.useEffect(()=>{if(n)return p(y)},[n,p,y]);const m=C.useMemo(()=>({colorMode:t??b,toggleColorMode:t?EC:v,setColorMode:t?EC:y,forced:t!==void 0}),[b,v,y,t]);return _.jsx(Ew.Provider,{value:m,children:r})}r4.displayName="ColorModeProvider";var UL=new Set(["dark","light","system"]);function HL(e){let t=e;return UL.has(t)||(t="light"),t}function WL(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,i=HL(t),a=r==="cookie",o=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); - `,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${a?o:s}`.trim()}function GL(e={}){const{nonce:t}=e;return _.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:WL(e)}})}function n4(){const e=Zf(),t=Jf();return{...e,theme:t}}function KL(e,t,r){var n,i;if(t==null)return t;const a=o=>{var s,u;return(u=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:u[o]};return(i=(n=a(t))!=null?n:a(r))!=null?i:r}function YL(e,t,r){var n,i;if(t==null)return t;const a=o=>{var s,u;return(u=(s=e.__cssMap)==null?void 0:s[o])==null?void 0:u.value};return(i=(n=a(t))!=null?n:a(r))!=null?i:r}function i4(e,t,r){const n=Jf();return a4(e,t,r)(n)}function a4(e,t,r){const n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return a=>{const o=i.filter(Boolean),s=n.map((u,l)=>{var c,f;if(e==="breakpoints")return KL(a,u,(c=o[l])!=null?c:u);const d=`${e}.${u}`;return YL(a,d,(f=o[l])!=null?f:u)});return Array.isArray(t)?s:s[0]}}var Te=(...e)=>e.filter(Boolean).join(" ");function XL(){return!1}function gn(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var ed=e=>{const{condition:t,message:r}=e;t&&XL()&&console.warn(r)};function zn(e,...t){return QL(e)?e(...t):e}var QL=e=>typeof e=="function",i2=e=>e?"":void 0;function mt(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function JL(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var Nh={exports:{}};Nh.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,s="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",g="[object GeneratorFunction]",p="[object Map]",b="[object Number]",y="[object Null]",v="[object Object]",m="[object Proxy]",x="[object RegExp]",w="[object Set]",S="[object String]",A="[object Undefined]",k="[object WeakMap]",D="[object ArrayBuffer]",P="[object DataView]",T="[object Float32Array]",I="[object Float64Array]",O="[object Int8Array]",N="[object Int16Array]",j="[object Int32Array]",H="[object Uint8Array]",F="[object Uint8ClampedArray]",R="[object Uint16Array]",$="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,K={};K[T]=K[I]=K[O]=K[N]=K[j]=K[H]=K[F]=K[R]=K[$]=!0,K[s]=K[u]=K[D]=K[c]=K[P]=K[f]=K[d]=K[h]=K[p]=K[b]=K[v]=K[x]=K[w]=K[S]=K[k]=!1;var Z=typeof Ln=="object"&&Ln&&Ln.Object===Object&&Ln,ue=typeof self=="object"&&self&&self.Object===Object&&self,he=Z||ue||Function("return this")(),le=t&&!t.nodeType&&t,se=le&&!0&&e&&!e.nodeType&&e,G=se&&se.exports===le,J=G&&Z.process,ee=function(){try{var E=se&&se.require&&se.require("util").types;return E||J&&J.binding&&J.binding("util")}catch{}}(),z=ee&&ee.isTypedArray;function de(E,M,L){switch(L.length){case 0:return E.call(M);case 1:return E.call(M,L[0]);case 2:return E.call(M,L[0],L[1]);case 3:return E.call(M,L[0],L[1],L[2])}return E.apply(M,L)}function ge(E,M){for(var L=-1,te=Array(E);++L-1}function xR(E,M){var L=this.__data__,te=Td(L,E);return te<0?(++this.size,L.push([E,M])):L[te][1]=M,this}_i.prototype.clear=gR,_i.prototype.delete=vR,_i.prototype.get=yR,_i.prototype.has=bR,_i.prototype.set=xR;function cs(E){var M=-1,L=E==null?0:E.length;for(this.clear();++M1?L[Ee-1]:void 0,tt=Ee>2?L[2]:void 0;for(qe=E.length>3&&typeof qe=="function"?(Ee--,qe):void 0,tt&&YR(L[0],L[1],tt)&&(qe=Ee<3?void 0:qe,Ee=1),M=Object(M);++te-1&&E%1==0&&E0){if(++M>=i)return arguments[0]}else M=0;return E.apply(void 0,arguments)}}function nj(E){if(E!=null){try{return Br.call(E)}catch{}try{return E+""}catch{}}return""}function Md(E,M){return E===M||E!==E&&M!==M}var ev=ZA(function(){return arguments}())?ZA:function(E){return yl(E)&&ur.call(E,"callee")&&!oR.call(E,"callee")},tv=Array.isArray;function rv(E){return E!=null&&i_(E.length)&&!nv(E)}function ij(E){return yl(E)&&rv(E)}var n_=uR||lj;function nv(E){if(!co(E))return!1;var M=Od(E);return M==h||M==g||M==l||M==m}function i_(E){return typeof E=="number"&&E>-1&&E%1==0&&E<=o}function co(E){var M=typeof E;return E!=null&&(M=="object"||M=="function")}function yl(E){return E!=null&&typeof E=="object"}function aj(E){if(!yl(E)||Od(E)!=v)return!1;var M=YA(E);if(M===null)return!0;var L=ur.call(M,"constructor")&&M.constructor;return typeof L=="function"&&L instanceof L&&Br.call(L)==Ed}var a_=z?ie(z):IR;function oj(E){return UR(E,o_(E))}function o_(E){return rv(E)?OR(E,!0):RR(E)}var sj=HR(function(E,M,L,te){e_(E,M,L,te)});function uj(E){return function(){return E}}function s_(E){return E}function lj(){return!1}e.exports=sj})(Nh,Nh.exports);var ZL=Nh.exports;const dn=Pe(ZL);var e7=e=>/!(important)?$/.test(e),PC=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,t7=(e,t)=>r=>{const n=String(t),i=e7(n),a=PC(n),o=e?`${e}.${a}`:a;let s=gn(r.__cssMap)&&o in r.__cssMap?r.__cssMap[o].varRef:t;return s=PC(s),i?`${s} !important`:s};function Dw(e){const{scale:t,transform:r,compose:n}=e;return(a,o)=>{var s;const u=t7(t,a)(o);let l=(s=r==null?void 0:r(u,o))!=null?s:u;return n&&(l=n(l,o)),l}}var Zd=(...e)=>t=>e.reduce((r,n)=>n(r),t);function tn(e,t){return r=>{const n={property:r,scale:e};return n.transform=Dw({scale:e,transform:t}),n}}var r7=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function n7(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:r7(t),transform:r?Dw({scale:r,compose:n}):n}}var o4=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function i7(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...o4].join(" ")}function a7(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...o4].join(" ")}var o7={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},s7={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function u7(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var l7={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},a2={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},c7=new Set(Object.values(a2)),o2=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),f7=e=>e.trim();function d7(e,t){if(e==null||o2.has(e))return e;if(!(s2(e)||o2.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=i==null?void 0:i[1],o=i==null?void 0:i[2];if(!a||!o)return e;const s=a.includes("-gradient")?a:`${a}-gradient`,[u,...l]=o.split(",").map(f7).filter(Boolean);if((l==null?void 0:l.length)===0)return e;const c=u in a2?a2[u]:u;l.unshift(c);const f=l.map(d=>{if(c7.has(d))return d;const h=d.indexOf(" "),[g,p]=h!==-1?[d.substr(0,h),d.substr(h+1)]:[d],b=s2(p)?p:p&&p.split(" "),y=`colors.${g}`,v=y in t.__cssMap?t.__cssMap[y].varRef:g;return b?[v,...Array.isArray(b)?b:[b]].join(" "):v});return`${s}(${f.join(", ")})`}var s2=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),p7=(e,t)=>d7(e,t??{});function h7(e){return/^var\(--.+\)$/.test(e)}var m7=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Qn=e=>t=>`${e}(${t})`,Oe={filter(e){return e!=="auto"?e:o7},backdropFilter(e){return e!=="auto"?e:s7},ring(e){return u7(Oe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?i7():e==="auto-gpu"?a7():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=m7(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(h7(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:p7,blur:Qn("blur"),opacity:Qn("opacity"),brightness:Qn("brightness"),contrast:Qn("contrast"),dropShadow:Qn("drop-shadow"),grayscale:Qn("grayscale"),hueRotate:Qn("hue-rotate"),invert:Qn("invert"),saturate:Qn("saturate"),sepia:Qn("sepia"),bgImage(e){return e==null||s2(e)||o2.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=l7[e])!=null?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},B={borderWidths:tn("borderWidths"),borderStyles:tn("borderStyles"),colors:tn("colors"),borders:tn("borders"),gradients:tn("gradients",Oe.gradient),radii:tn("radii",Oe.px),space:tn("space",Zd(Oe.vh,Oe.px)),spaceT:tn("space",Zd(Oe.vh,Oe.px)),degreeT(e){return{property:e,transform:Oe.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Dw({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:tn("sizes",Zd(Oe.vh,Oe.px)),sizesT:tn("sizes",Zd(Oe.vh,Oe.fraction)),shadows:tn("shadows"),logical:n7,blur:tn("blur",Oe.blur)},zp={background:B.colors("background"),backgroundColor:B.colors("backgroundColor"),backgroundImage:B.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Oe.bgClip},bgSize:B.prop("backgroundSize"),bgPosition:B.prop("backgroundPosition"),bg:B.colors("background"),bgColor:B.colors("backgroundColor"),bgPos:B.prop("backgroundPosition"),bgRepeat:B.prop("backgroundRepeat"),bgAttachment:B.prop("backgroundAttachment"),bgGradient:B.gradients("backgroundImage"),bgClip:{transform:Oe.bgClip}};Object.assign(zp,{bgImage:zp.backgroundImage,bgImg:zp.backgroundImage});var Me={border:B.borders("border"),borderWidth:B.borderWidths("borderWidth"),borderStyle:B.borderStyles("borderStyle"),borderColor:B.colors("borderColor"),borderRadius:B.radii("borderRadius"),borderTop:B.borders("borderTop"),borderBlockStart:B.borders("borderBlockStart"),borderTopLeftRadius:B.radii("borderTopLeftRadius"),borderStartStartRadius:B.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:B.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:B.radii("borderTopRightRadius"),borderStartEndRadius:B.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:B.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:B.borders("borderRight"),borderInlineEnd:B.borders("borderInlineEnd"),borderBottom:B.borders("borderBottom"),borderBlockEnd:B.borders("borderBlockEnd"),borderBottomLeftRadius:B.radii("borderBottomLeftRadius"),borderBottomRightRadius:B.radii("borderBottomRightRadius"),borderLeft:B.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:B.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:B.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:B.borders(["borderLeft","borderRight"]),borderInline:B.borders("borderInline"),borderY:B.borders(["borderTop","borderBottom"]),borderBlock:B.borders("borderBlock"),borderTopWidth:B.borderWidths("borderTopWidth"),borderBlockStartWidth:B.borderWidths("borderBlockStartWidth"),borderTopColor:B.colors("borderTopColor"),borderBlockStartColor:B.colors("borderBlockStartColor"),borderTopStyle:B.borderStyles("borderTopStyle"),borderBlockStartStyle:B.borderStyles("borderBlockStartStyle"),borderBottomWidth:B.borderWidths("borderBottomWidth"),borderBlockEndWidth:B.borderWidths("borderBlockEndWidth"),borderBottomColor:B.colors("borderBottomColor"),borderBlockEndColor:B.colors("borderBlockEndColor"),borderBottomStyle:B.borderStyles("borderBottomStyle"),borderBlockEndStyle:B.borderStyles("borderBlockEndStyle"),borderLeftWidth:B.borderWidths("borderLeftWidth"),borderInlineStartWidth:B.borderWidths("borderInlineStartWidth"),borderLeftColor:B.colors("borderLeftColor"),borderInlineStartColor:B.colors("borderInlineStartColor"),borderLeftStyle:B.borderStyles("borderLeftStyle"),borderInlineStartStyle:B.borderStyles("borderInlineStartStyle"),borderRightWidth:B.borderWidths("borderRightWidth"),borderInlineEndWidth:B.borderWidths("borderInlineEndWidth"),borderRightColor:B.colors("borderRightColor"),borderInlineEndColor:B.colors("borderInlineEndColor"),borderRightStyle:B.borderStyles("borderRightStyle"),borderInlineEndStyle:B.borderStyles("borderInlineEndStyle"),borderTopRadius:B.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:B.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:B.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:B.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Me,{rounded:Me.borderRadius,roundedTop:Me.borderTopRadius,roundedTopLeft:Me.borderTopLeftRadius,roundedTopRight:Me.borderTopRightRadius,roundedTopStart:Me.borderStartStartRadius,roundedTopEnd:Me.borderStartEndRadius,roundedBottom:Me.borderBottomRadius,roundedBottomLeft:Me.borderBottomLeftRadius,roundedBottomRight:Me.borderBottomRightRadius,roundedBottomStart:Me.borderEndStartRadius,roundedBottomEnd:Me.borderEndEndRadius,roundedLeft:Me.borderLeftRadius,roundedRight:Me.borderRightRadius,roundedStart:Me.borderInlineStartRadius,roundedEnd:Me.borderInlineEndRadius,borderStart:Me.borderInlineStart,borderEnd:Me.borderInlineEnd,borderTopStartRadius:Me.borderStartStartRadius,borderTopEndRadius:Me.borderStartEndRadius,borderBottomStartRadius:Me.borderEndStartRadius,borderBottomEndRadius:Me.borderEndEndRadius,borderStartRadius:Me.borderInlineStartRadius,borderEndRadius:Me.borderInlineEndRadius,borderStartWidth:Me.borderInlineStartWidth,borderEndWidth:Me.borderInlineEndWidth,borderStartColor:Me.borderInlineStartColor,borderEndColor:Me.borderInlineEndColor,borderStartStyle:Me.borderInlineStartStyle,borderEndStyle:Me.borderInlineEndStyle});var g7={color:B.colors("color"),textColor:B.colors("color"),fill:B.colors("fill"),stroke:B.colors("stroke")},u2={boxShadow:B.shadows("boxShadow"),mixBlendMode:!0,blendMode:B.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:B.prop("backgroundBlendMode"),opacity:!0};Object.assign(u2,{shadow:u2.boxShadow});var v7={filter:{transform:Oe.filter},blur:B.blur("--chakra-blur"),brightness:B.propT("--chakra-brightness",Oe.brightness),contrast:B.propT("--chakra-contrast",Oe.contrast),hueRotate:B.degreeT("--chakra-hue-rotate"),invert:B.propT("--chakra-invert",Oe.invert),saturate:B.propT("--chakra-saturate",Oe.saturate),dropShadow:B.propT("--chakra-drop-shadow",Oe.dropShadow),backdropFilter:{transform:Oe.backdropFilter},backdropBlur:B.blur("--chakra-backdrop-blur"),backdropBrightness:B.propT("--chakra-backdrop-brightness",Oe.brightness),backdropContrast:B.propT("--chakra-backdrop-contrast",Oe.contrast),backdropHueRotate:B.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:B.propT("--chakra-backdrop-invert",Oe.invert),backdropSaturate:B.propT("--chakra-backdrop-saturate",Oe.saturate)},Lh={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Oe.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:B.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:B.space("gap"),rowGap:B.space("rowGap"),columnGap:B.space("columnGap")};Object.assign(Lh,{flexDir:Lh.flexDirection});var s4={gridGap:B.space("gridGap"),gridColumnGap:B.space("gridColumnGap"),gridRowGap:B.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},y7={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Oe.outline},outlineOffset:!0,outlineColor:B.colors("outlineColor")},sn={width:B.sizesT("width"),inlineSize:B.sizesT("inlineSize"),height:B.sizes("height"),blockSize:B.sizes("blockSize"),boxSize:B.sizes(["width","height"]),minWidth:B.sizes("minWidth"),minInlineSize:B.sizes("minInlineSize"),minHeight:B.sizes("minHeight"),minBlockSize:B.sizes("minBlockSize"),maxWidth:B.sizes("maxWidth"),maxInlineSize:B.sizes("maxInlineSize"),maxHeight:B.sizes("maxHeight"),maxBlockSize:B.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (min-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (max-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:B.propT("float",Oe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(sn,{w:sn.width,h:sn.height,minW:sn.minWidth,maxW:sn.maxWidth,minH:sn.minHeight,maxH:sn.maxHeight,overscroll:sn.overscrollBehavior,overscrollX:sn.overscrollBehaviorX,overscrollY:sn.overscrollBehaviorY});var b7={listStyleType:!0,listStylePosition:!0,listStylePos:B.prop("listStylePosition"),listStyleImage:!0,listStyleImg:B.prop("listStyleImage")};function x7(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,a,o)=>{if(typeof n>"u")return e(n,i,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(i))return s.get(i);const u=e(n,i,a,o);return s.set(i,u),u}},S7=w7(x7),A7={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},_7={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Mv=(e,t,r)=>{const n={},i=S7(e,t,{});for(const a in i)a in r&&r[a]!=null||(n[a]=i[a]);return n},C7={srOnly:{transform(e){return e===!0?A7:e==="focusable"?_7:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Mv(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Mv(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Mv(t,e,r)}},gc={position:!0,pos:B.prop("position"),zIndex:B.prop("zIndex","zIndices"),inset:B.spaceT("inset"),insetX:B.spaceT(["left","right"]),insetInline:B.spaceT("insetInline"),insetY:B.spaceT(["top","bottom"]),insetBlock:B.spaceT("insetBlock"),top:B.spaceT("top"),insetBlockStart:B.spaceT("insetBlockStart"),bottom:B.spaceT("bottom"),insetBlockEnd:B.spaceT("insetBlockEnd"),left:B.spaceT("left"),insetInlineStart:B.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:B.spaceT("right"),insetInlineEnd:B.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(gc,{insetStart:gc.insetInlineStart,insetEnd:gc.insetInlineEnd});var k7={ring:{transform:Oe.ring},ringColor:B.colors("--chakra-ring-color"),ringOffset:B.prop("--chakra-ring-offset-width"),ringOffsetColor:B.colors("--chakra-ring-offset-color"),ringInset:B.prop("--chakra-ring-inset")},Qe={margin:B.spaceT("margin"),marginTop:B.spaceT("marginTop"),marginBlockStart:B.spaceT("marginBlockStart"),marginRight:B.spaceT("marginRight"),marginInlineEnd:B.spaceT("marginInlineEnd"),marginBottom:B.spaceT("marginBottom"),marginBlockEnd:B.spaceT("marginBlockEnd"),marginLeft:B.spaceT("marginLeft"),marginInlineStart:B.spaceT("marginInlineStart"),marginX:B.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:B.spaceT("marginInline"),marginY:B.spaceT(["marginTop","marginBottom"]),marginBlock:B.spaceT("marginBlock"),padding:B.space("padding"),paddingTop:B.space("paddingTop"),paddingBlockStart:B.space("paddingBlockStart"),paddingRight:B.space("paddingRight"),paddingBottom:B.space("paddingBottom"),paddingBlockEnd:B.space("paddingBlockEnd"),paddingLeft:B.space("paddingLeft"),paddingInlineStart:B.space("paddingInlineStart"),paddingInlineEnd:B.space("paddingInlineEnd"),paddingX:B.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:B.space("paddingInline"),paddingY:B.space(["paddingTop","paddingBottom"]),paddingBlock:B.space("paddingBlock")};Object.assign(Qe,{m:Qe.margin,mt:Qe.marginTop,mr:Qe.marginRight,me:Qe.marginInlineEnd,marginEnd:Qe.marginInlineEnd,mb:Qe.marginBottom,ml:Qe.marginLeft,ms:Qe.marginInlineStart,marginStart:Qe.marginInlineStart,mx:Qe.marginX,my:Qe.marginY,p:Qe.padding,pt:Qe.paddingTop,py:Qe.paddingY,px:Qe.paddingX,pb:Qe.paddingBottom,pl:Qe.paddingLeft,ps:Qe.paddingInlineStart,paddingStart:Qe.paddingInlineStart,pr:Qe.paddingRight,pe:Qe.paddingInlineEnd,paddingEnd:Qe.paddingInlineEnd});var E7={textDecorationColor:B.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:B.shadows("textShadow")},D7={clipPath:!0,transform:B.propT("transform",Oe.transform),transformOrigin:!0,translateX:B.spaceT("--chakra-translate-x"),translateY:B.spaceT("--chakra-translate-y"),skewX:B.degreeT("--chakra-skew-x"),skewY:B.degreeT("--chakra-skew-y"),scaleX:B.prop("--chakra-scale-x"),scaleY:B.prop("--chakra-scale-y"),scale:B.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:B.degreeT("--chakra-rotate")},P7={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:B.prop("transitionDuration","transition.duration"),transitionProperty:B.prop("transitionProperty","transition.property"),transitionTimingFunction:B.prop("transitionTimingFunction","transition.easing")},T7={fontFamily:B.prop("fontFamily","fonts"),fontSize:B.prop("fontSize","fontSizes",Oe.px),fontWeight:B.prop("fontWeight","fontWeights"),lineHeight:B.prop("lineHeight","lineHeights"),letterSpacing:B.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},O7={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:B.spaceT("scrollMargin"),scrollMarginTop:B.spaceT("scrollMarginTop"),scrollMarginBottom:B.spaceT("scrollMarginBottom"),scrollMarginLeft:B.spaceT("scrollMarginLeft"),scrollMarginRight:B.spaceT("scrollMarginRight"),scrollMarginX:B.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:B.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:B.spaceT("scrollPadding"),scrollPaddingTop:B.spaceT("scrollPaddingTop"),scrollPaddingBottom:B.spaceT("scrollPaddingBottom"),scrollPaddingLeft:B.spaceT("scrollPaddingLeft"),scrollPaddingRight:B.spaceT("scrollPaddingRight"),scrollPaddingX:B.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:B.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function u4(e){return gn(e)&&e.reference?e.reference:String(e)}var Lg=(e,...t)=>t.map(u4).join(` ${e} `).replace(/calc/g,""),TC=(...e)=>`calc(${Lg("+",...e)})`,OC=(...e)=>`calc(${Lg("-",...e)})`,l2=(...e)=>`calc(${Lg("*",...e)})`,$C=(...e)=>`calc(${Lg("/",...e)})`,MC=e=>{const t=u4(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:l2(t,-1)},wo=Object.assign(e=>({add:(...t)=>wo(TC(e,...t)),subtract:(...t)=>wo(OC(e,...t)),multiply:(...t)=>wo(l2(e,...t)),divide:(...t)=>wo($C(e,...t)),negate:()=>wo(MC(e)),toString:()=>e.toString()}),{add:TC,subtract:OC,multiply:l2,divide:$C,negate:MC});function $7(e,t="-"){return e.replace(/\s+/g,t)}function M7(e){const t=$7(e.toString());return I7(B7(t))}function B7(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function I7(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function R7(e,t=""){return[t,e].filter(Boolean).join("-")}function j7(e,t){return`var(${e}${t?`, ${t}`:""})`}function F7(e,t=""){return M7(`--${R7(e,t)}`)}function fe(e,t,r){const n=F7(e,r);return{variable:n,reference:j7(n,t)}}function N7(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[i,a]=n;r[i]=fe(`${e}-${i}`,a);continue}r[n]=fe(`${e}-${n}`)}return r}function L7(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function z7(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function c2(e){if(e==null)return e;const{unitless:t}=z7(e);return t||typeof e=="number"?`${e}px`:e}var l4=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Pw=e=>Object.fromEntries(Object.entries(e).sort(l4));function BC(e){const t=Pw(e);return Object.assign(Object.values(t),t)}function V7(e){const t=Object.keys(Pw(e));return new Set(t)}function IC(e){var t;if(!e)return e;e=(t=c2(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ql(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${c2(e)})`),t&&r.push("and",`(max-width: ${c2(t)})`),r.join(" ")}function q7(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=BC(e),n=Object.entries(e).sort(l4).map(([o,s],u,l)=>{var c;let[,f]=(c=l[u+1])!=null?c:[];return f=parseFloat(f)>0?IC(f):void 0,{_minW:IC(s),breakpoint:o,minW:s,maxW:f,maxWQuery:Ql(null,f),minWQuery:Ql(s),minMaxQuery:Ql(s,f)}}),i=V7(e),a=Array.from(i.values());return{keys:i,normalized:r,isResponsive(o){const s=Object.keys(o);return s.length>0&&s.every(u=>i.has(u))},asObject:Pw(e),asArray:BC(e),details:n,get(o){return n.find(s=>s.breakpoint===o)},media:[null,...r.map(o=>Ql(o)).slice(1)],toArrayValue(o){if(!gn(o))throw new Error("toArrayValue: value must be an object");const s=a.map(u=>{var l;return(l=o[u])!=null?l:null});for(;L7(s)===null;)s.pop();return s},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((s,u,l)=>{const c=a[l];return c!=null&&u!=null&&(s[c]=u),s},{})}}}var Lt={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},ua=e=>c4(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Ci=e=>c4(t=>e(t,"~ &"),"[data-peer]",".peer"),c4=(e,...t)=>t.map(e).join(", "),zg={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ua(Lt.hover),_peerHover:Ci(Lt.hover),_groupFocus:ua(Lt.focus),_peerFocus:Ci(Lt.focus),_groupFocusVisible:ua(Lt.focusVisible),_peerFocusVisible:Ci(Lt.focusVisible),_groupActive:ua(Lt.active),_peerActive:Ci(Lt.active),_groupDisabled:ua(Lt.disabled),_peerDisabled:Ci(Lt.disabled),_groupInvalid:ua(Lt.invalid),_peerInvalid:Ci(Lt.invalid),_groupChecked:ua(Lt.checked),_peerChecked:Ci(Lt.checked),_groupFocusWithin:ua(Lt.focusWithin),_peerFocusWithin:Ci(Lt.focusWithin),_peerPlaceholderShown:Ci(Lt.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},f4=Object.keys(zg);function RC(e,t){return fe(String(e).replace(/\./g,"-"),void 0,t)}function U7(e,t){let r={};const n={};for(const[i,a]of Object.entries(e)){const{isSemantic:o,value:s}=a,{variable:u,reference:l}=RC(i,t==null?void 0:t.cssVarPrefix);if(!o){if(i.startsWith("space")){const d=i.split("."),[h,...g]=d,p=`${h}.-${g.join(".")}`,b=wo.negate(s),y=wo.negate(l);n[p]={value:b,var:u,varRef:y}}r[u]=s,n[i]={value:s,var:u,varRef:l};continue}const c=d=>{const g=[String(i).split(".")[0],d].join(".");if(!e[g])return d;const{reference:b}=RC(g,t==null?void 0:t.cssVarPrefix);return b},f=gn(s)?s:{default:s};r=dn(r,Object.entries(f).reduce((d,[h,g])=>{var p,b;if(!g)return d;const y=c(`${g}`);if(h==="default")return d[u]=y,d;const v=(b=(p=zg)==null?void 0:p[h])!=null?b:h;return d[v]={[u]:y},d},{})),n[i]={value:l,var:u,varRef:l}}return{cssVars:r,cssMap:n}}function H7(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function W7(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function G7(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function jC(e,t,r={}){const{stop:n,getKey:i}=r;function a(o,s=[]){var u;if(G7(o)||Array.isArray(o)){const l={};for(const[c,f]of Object.entries(o)){const d=(u=i==null?void 0:i(c))!=null?u:c,h=[...s,d];if(n!=null&&n(o,h))return t(o,s);l[d]=a(f,h)}return l}return t(o,s)}return a(e)}var K7=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Y7(e){return W7(e,K7)}function X7(e){return e.semanticTokens}function Q7(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}var J7=e=>f4.includes(e)||e==="default";function Z7({tokens:e,semanticTokens:t}){const r={};return jC(e,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!1,value:n})}),jC(t,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(J7)}),r}function ez(e){var t;const r=Q7(e),n=Y7(r),i=X7(r),a=Z7({tokens:n,semanticTokens:i}),o=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:u}=U7(a,{cssVarPrefix:o});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...u},__cssMap:s,__breakpoints:q7(r.breakpoints)}),r}var Tw=dn({},zp,Me,g7,Lh,sn,v7,k7,y7,s4,C7,gc,u2,Qe,O7,T7,E7,D7,b7,P7);Object.assign({},Qe,sn,Lh,s4,gc);var tz=[...Object.keys(Tw),...f4],rz={...Tw,...zg},nz=e=>e in rz,iz=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:i}=t.__breakpoints,a={};for(const o in e){let s=zn(e[o],t);if(s==null)continue;if(s=gn(s)&&r(s)?n(s):s,!Array.isArray(s)){a[o]=s;continue}const u=s.slice(0,i.length).length;for(let l=0;le.startsWith("--")&&typeof t=="string"&&!oz(t),uz=(e,t)=>{var r,n;if(t==null)return t;const i=u=>{var l,c;return(c=(l=e.__cssMap)==null?void 0:l[u])==null?void 0:c.varRef},a=u=>{var l;return(l=i(u))!=null?l:u},[o,s]=az(t);return t=(n=(r=i(o))!=null?r:a(s))!=null?n:a(t),t};function lz(e){const{configs:t={},pseudos:r={},theme:n}=e,i=(a,o=!1)=>{var s,u,l;const c=zn(a,n),f=iz(c)(n);let d={};for(let h in f){const g=f[h];let p=zn(g,n);h in r&&(h=r[h]),sz(h,p)&&(p=uz(n,p));let b=t[h];if(b===!0&&(b={property:h}),gn(p)){d[h]=(s=d[h])!=null?s:{},d[h]=dn({},d[h],i(p,!0));continue}let y=(l=(u=b==null?void 0:b.transform)==null?void 0:u.call(b,p,n,c))!=null?l:p;y=b!=null&&b.processResult?i(y,!0):y;const v=zn(b==null?void 0:b.property,n);if(!o&&(b!=null&&b.static)){const m=zn(b.static,n);d=dn({},d,m)}if(v&&Array.isArray(v)){for(const m of v)d[m]=y;continue}if(v){v==="&"&&gn(y)?d=dn({},d,y):d[v]=y;continue}if(gn(y)){d=dn({},d,y);continue}d[h]=y}return d};return i}var d4=e=>t=>lz({theme:t,pseudos:zg,configs:Tw})(e);function Ye(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function cz(e,t){if(Array.isArray(e))return e;if(gn(e))return t(e);if(e!=null)return[e]}function fz(e,t){for(let r=t+1;r{dn(l,{[m]:d?v[m]:{[y]:v[m]}})});continue}if(!h){d?dn(l,v):l[y]=v;continue}l[y]=v}}return l}}function pz(e){return t=>{var r;const{variant:n,size:i,theme:a}=t,o=dz(a);return dn({},zn((r=e.baseStyle)!=null?r:{},t),o(e,"sizes",i,t),o(e,"variants",n,t))}}function hz(e,t,r){var n,i,a;return(a=(i=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:i.varRef)!=null?a:r}function Mr(e){return H7(e,["styleConfig","size","variant","colorScheme"])}var mz=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function gz(e){return gn(e)?mz.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var vz={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},yz={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},bz={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},xz={property:vz,easing:yz,duration:bz},wz=xz,Sz={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Az=Sz,_z={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Cz=_z,kz={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Ez=kz,Dz={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Pz=Dz,Tz={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Oz=Tz,$z={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Mz=$z,Bz={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Iz=Bz,Rz={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},p4=Rz,h4={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},jz={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},Fz={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Nz={...h4,...jz,container:Fz},m4=Nz,Lz={breakpoints:Ez,zIndices:Az,radii:Oz,blur:Iz,colors:Pz,...p4,sizes:m4,shadows:Mz,space:h4,borders:Cz,transition:wz},{defineMultiStyleConfig:zz,definePartsStyle:Jl}=Ye(["stepper","step","title","description","indicator","separator","icon","number"]),Ti=fe("stepper-indicator-size"),js=fe("stepper-icon-size"),Fs=fe("stepper-title-font-size"),Zl=fe("stepper-description-font-size"),Pl=fe("stepper-accent-color"),Vz=Jl(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Pl.variable]:`colors.${e}.500`,_dark:{[Pl.variable]:`colors.${e}.200`}},title:{fontSize:Fs.reference,fontWeight:"medium"},description:{fontSize:Zl.reference,color:"chakra-subtle-text"},number:{fontSize:Fs.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:js.reference,height:js.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ti.reference,height:Ti.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Pl.reference},"&[data-status=complete]":{bg:Pl.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Pl.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ti.reference} - 8px)`,top:`calc(${Ti.reference} + 4px)`,insetStart:`calc(${Ti.reference} / 2 - 1px)`}}})),qz=zz({baseStyle:Vz,sizes:{xs:Jl({stepper:{[Ti.variable]:"sizes.4",[js.variable]:"sizes.3",[Fs.variable]:"fontSizes.xs",[Zl.variable]:"fontSizes.xs"}}),sm:Jl({stepper:{[Ti.variable]:"sizes.6",[js.variable]:"sizes.4",[Fs.variable]:"fontSizes.sm",[Zl.variable]:"fontSizes.xs"}}),md:Jl({stepper:{[Ti.variable]:"sizes.8",[js.variable]:"sizes.5",[Fs.variable]:"fontSizes.md",[Zl.variable]:"fontSizes.sm"}}),lg:Jl({stepper:{[Ti.variable]:"sizes.10",[js.variable]:"sizes.6",[Fs.variable]:"fontSizes.lg",[Zl.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function je(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...c){n();for(const f of c)t[f]=u(f);return je(e,t)}function a(...c){for(const f of c)f in t||(t[f]=u(f));return je(e,t)}function o(){return Object.fromEntries(Object.entries(t).map(([f,d])=>[f,d.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,d])=>[f,d.className]))}function u(c){const h=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>c}}return{parts:i,toPart:u,extend:a,selectors:o,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var Uz=je("accordion").parts("root","container","button","panel").extend("icon"),Hz=je("alert").parts("title","description","container").extend("icon","spinner"),Wz=je("avatar").parts("label","badge","container").extend("excessLabel","group"),Gz=je("breadcrumb").parts("link","item","container").extend("separator");je("button").parts();var Kz=je("checkbox").parts("control","icon","container").extend("label");je("progress").parts("track","filledTrack").extend("label");var Yz=je("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Xz=je("editable").parts("preview","input","textarea"),Qz=je("form").parts("container","requiredIndicator","helperText"),Jz=je("formError").parts("text","icon"),Zz=je("input").parts("addon","field","element","group"),eV=je("list").parts("container","item","icon"),tV=je("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),rV=je("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),nV=je("numberinput").parts("root","field","stepperGroup","stepper");je("pininput").parts("field");var iV=je("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),aV=je("progress").parts("label","filledTrack","track"),oV=je("radio").parts("container","control","label"),sV=je("select").parts("field","icon"),uV=je("slider").parts("container","track","thumb","filledTrack","mark"),lV=je("stat").parts("container","label","helpText","number","icon"),cV=je("switch").parts("container","track","thumb"),fV=je("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),dV=je("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),pV=je("tag").parts("container","label","closeButton"),hV=je("card").parts("container","header","body","footer");function Do(e,t,r){return Math.min(Math.max(e,r),t)}class mV extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var ec=mV;function Ow(e){if(typeof e!="string")throw new ec(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=AV.test(e)?yV(e):e;const r=bV.exec(t);if(r){const o=Array.from(r).slice(1);return[...o.slice(0,3).map(s=>parseInt(ef(s,2),16)),parseInt(ef(o[3]||"f",2),16)/255]}const n=xV.exec(t);if(n){const o=Array.from(n).slice(1);return[...o.slice(0,3).map(s=>parseInt(s,16)),parseInt(o[3]||"ff",16)/255]}const i=wV.exec(t);if(i){const o=Array.from(i).slice(1);return[...o.slice(0,3).map(s=>parseInt(s,10)),parseFloat(o[3]||"1")]}const a=SV.exec(t);if(a){const[o,s,u,l]=Array.from(a).slice(1).map(parseFloat);if(Do(0,100,s)!==s)throw new ec(e);if(Do(0,100,u)!==u)throw new ec(e);return[..._V(o,s,u),Number.isNaN(l)?1:l]}throw new ec(e)}function gV(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const FC=e=>parseInt(e.replace(/_/g,""),36),vV="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=FC(t.substring(0,3)),n=FC(t.substring(3)).toString(16);let i="";for(let a=0;a<6-n.length;a++)i+="0";return e[r]=`${i}${n}`,e},{});function yV(e){const t=e.toLowerCase().trim(),r=vV[gV(t)];if(!r)throw new ec(e);return`#${r}`}const ef=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),bV=new RegExp(`^#${ef("([a-f0-9])",3)}([a-f0-9])?$`,"i"),xV=new RegExp(`^#${ef("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),wV=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ef(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),SV=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,AV=/^[a-z]+$/i,NC=e=>Math.round(e*255),_V=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(NC);const i=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*(t/100),o=a*(1-Math.abs(i%2-1));let s=0,u=0,l=0;i>=0&&i<1?(s=a,u=o):i>=1&&i<2?(s=o,u=a):i>=2&&i<3?(u=a,l=o):i>=3&&i<4?(u=o,l=a):i>=4&&i<5?(s=o,l=a):i>=5&&i<6&&(s=a,l=o);const c=n-a/2,f=s+c,d=u+c,h=l+c;return[f,d,h].map(NC)};function CV(e,t,r,n){return`rgba(${Do(0,255,e).toFixed()}, ${Do(0,255,t).toFixed()}, ${Do(0,255,r).toFixed()}, ${parseFloat(Do(0,1,n).toFixed(3))})`}function kV(e,t){const[r,n,i,a]=Ow(e);return CV(r,n,i,a-t)}function EV(e){const[t,r,n,i]=Ow(e);let a=o=>{const s=Do(0,255,o).toString(16);return s.length===1?`0${s}`:s};return`#${a(t)}${a(r)}${a(n)}${i<1?a(Math.round(i*255)):""}`}function DV(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,pr=(e,t,r)=>{const n=DV(e,`colors.${t}`,t);try{return EV(n),n}catch{return r??"#000000"}},TV=e=>{const[t,r,n]=Ow(e);return(t*299+r*587+n*114)/1e3},OV=e=>t=>{const r=pr(t,e);return TV(r)<128?"dark":"light"},$V=e=>t=>OV(e)(t)==="dark",Cu=(e,t)=>r=>{const n=pr(r,e);return kV(n,1-t)};function LC(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}var MV=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function BV(e){const t=MV();return!e||PV(e)?t:e.string&&e.colors?RV(e.string,e.colors):e.string&&!e.colors?IV(e.string):e.colors&&!e.string?jV(e.colors):t}function IV(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${i.toString(16)}`.substr(-2)}return r}function RV(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function $w(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function g4(e){return gn(e)&&e.reference?e.reference:String(e)}var Vg=(e,...t)=>t.map(g4).join(` ${e} `).replace(/calc/g,""),zC=(...e)=>`calc(${Vg("+",...e)})`,VC=(...e)=>`calc(${Vg("-",...e)})`,f2=(...e)=>`calc(${Vg("*",...e)})`,qC=(...e)=>`calc(${Vg("/",...e)})`,UC=e=>{const t=g4(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:f2(t,-1)},Oi=Object.assign(e=>({add:(...t)=>Oi(zC(e,...t)),subtract:(...t)=>Oi(VC(e,...t)),multiply:(...t)=>Oi(f2(e,...t)),divide:(...t)=>Oi(qC(e,...t)),negate:()=>Oi(UC(e)),toString:()=>e.toString()}),{add:zC,subtract:VC,multiply:f2,divide:qC,negate:UC});function FV(e){return!Number.isInteger(parseFloat(e.toString()))}function NV(e,t="-"){return e.replace(/\s+/g,t)}function v4(e){const t=NV(e.toString());return t.includes("\\.")?e:FV(e)?t.replace(".","\\."):e}function LV(e,t=""){return[t,v4(e)].filter(Boolean).join("-")}function zV(e,t){return`var(${v4(e)}${t?`, ${t}`:""})`}function VV(e,t=""){return`--${LV(e,t)}`}function Tt(e,t){const r=VV(e,t==null?void 0:t.prefix);return{variable:r,reference:zV(r,qV(t==null?void 0:t.fallback))}}function qV(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:UV,definePartsStyle:Vp}=Ye(cV.keys),vc=Tt("switch-track-width"),Io=Tt("switch-track-height"),Bv=Tt("switch-track-diff"),HV=Oi.subtract(vc,Io),d2=Tt("switch-thumb-x"),Tl=Tt("switch-bg"),WV=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[vc.reference],height:[Io.reference],transitionProperty:"common",transitionDuration:"fast",[Tl.variable]:"colors.gray.300",_dark:{[Tl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Tl.variable]:`colors.${t}.500`,_dark:{[Tl.variable]:`colors.${t}.200`}},bg:Tl.reference}},GV={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Io.reference],height:[Io.reference],_checked:{transform:`translateX(${d2.reference})`}},KV=Vp(e=>({container:{[Bv.variable]:HV,[d2.variable]:Bv.reference,_rtl:{[d2.variable]:Oi(Bv).negate().toString()}},track:WV(e),thumb:GV})),YV={sm:Vp({container:{[vc.variable]:"1.375rem",[Io.variable]:"sizes.3"}}),md:Vp({container:{[vc.variable]:"1.875rem",[Io.variable]:"sizes.4"}}),lg:Vp({container:{[vc.variable]:"2.875rem",[Io.variable]:"sizes.6"}})},XV=UV({baseStyle:KV,sizes:YV,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:QV,definePartsStyle:nu}=Ye(fV.keys),JV=nu({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),zh={"&[data-is-numeric=true]":{textAlign:"end"}},ZV=nu(e=>{const{colorScheme:t}=e;return{th:{color:ce("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ce(`${t}.100`,`${t}.700`)(e),...zh},td:{borderBottom:"1px",borderColor:ce(`${t}.100`,`${t}.700`)(e),...zh},caption:{color:ce("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),eq=nu(e=>{const{colorScheme:t}=e;return{th:{color:ce("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ce(`${t}.100`,`${t}.700`)(e),...zh},td:{borderBottom:"1px",borderColor:ce(`${t}.100`,`${t}.700`)(e),...zh},caption:{color:ce("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ce(`${t}.100`,`${t}.700`)(e)},td:{background:ce(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),tq={simple:ZV,striped:eq,unstyled:{}},rq={sm:nu({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:nu({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:nu({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},nq=QV({baseStyle:JV,variants:tq,sizes:rq,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Ar=fe("tabs-color"),jn=fe("tabs-bg"),ep=fe("tabs-border-color"),{defineMultiStyleConfig:iq,definePartsStyle:pi}=Ye(dV.keys),aq=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},oq=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},sq=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},uq={p:4},lq=pi(e=>({root:aq(e),tab:oq(e),tablist:sq(e),tabpanel:uq})),cq={sm:pi({tab:{py:1,px:4,fontSize:"sm"}}),md:pi({tab:{fontSize:"md",py:2,px:4}}),lg:pi({tab:{fontSize:"lg",py:3,px:4}})},fq=pi(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",i=n?"borderStart":"borderBottom",a=n?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[Ar.variable]:`colors.${t}.600`,_dark:{[Ar.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[jn.variable]:"colors.gray.200",_dark:{[jn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Ar.reference,bg:jn.reference}}}),dq=pi(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ep.variable]:"transparent",_selected:{[Ar.variable]:`colors.${t}.600`,[ep.variable]:"colors.white",_dark:{[Ar.variable]:`colors.${t}.300`,[ep.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ep.reference},color:Ar.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),pq=pi(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[jn.variable]:"colors.gray.50",_dark:{[jn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[jn.variable]:"colors.white",[Ar.variable]:`colors.${t}.600`,_dark:{[jn.variable]:"colors.gray.800",[Ar.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Ar.reference,bg:jn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),hq=pi(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:pr(r,`${t}.700`),bg:pr(r,`${t}.100`)}}}}),mq=pi(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Ar.variable]:"colors.gray.600",_dark:{[Ar.variable]:"inherit"},_selected:{[Ar.variable]:"colors.white",[jn.variable]:`colors.${t}.600`,_dark:{[Ar.variable]:"colors.gray.800",[jn.variable]:`colors.${t}.300`}},color:Ar.reference,bg:jn.reference}}}),gq=pi({}),vq={line:fq,enclosed:dq,"enclosed-colored":pq,"soft-rounded":hq,"solid-rounded":mq,unstyled:gq},yq=iq({baseStyle:lq,sizes:cq,variants:vq,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),vt=N7("badge",["bg","color","shadow"]),bq={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:vt.bg.reference,color:vt.color.reference,boxShadow:vt.shadow.reference},xq=e=>{const{colorScheme:t,theme:r}=e,n=Cu(`${t}.500`,.6)(r);return{[vt.bg.variable]:`colors.${t}.500`,[vt.color.variable]:"colors.white",_dark:{[vt.bg.variable]:n,[vt.color.variable]:"colors.whiteAlpha.800"}}},wq=e=>{const{colorScheme:t,theme:r}=e,n=Cu(`${t}.200`,.16)(r);return{[vt.bg.variable]:`colors.${t}.100`,[vt.color.variable]:`colors.${t}.800`,_dark:{[vt.bg.variable]:n,[vt.color.variable]:`colors.${t}.200`}}},Sq=e=>{const{colorScheme:t,theme:r}=e,n=Cu(`${t}.200`,.8)(r);return{[vt.color.variable]:`colors.${t}.500`,_dark:{[vt.color.variable]:n},[vt.shadow.variable]:`inset 0 0 0px 1px ${vt.color.reference}`}},Aq={solid:xq,subtle:wq,outline:Sq},yc={baseStyle:bq,variants:Aq,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:_q,definePartsStyle:Ro}=Ye(pV.keys),HC=fe("tag-bg"),WC=fe("tag-color"),Iv=fe("tag-shadow"),qp=fe("tag-min-height"),Up=fe("tag-min-width"),Hp=fe("tag-font-size"),Wp=fe("tag-padding-inline"),Cq={fontWeight:"medium",lineHeight:1.2,outline:0,[WC.variable]:vt.color.reference,[HC.variable]:vt.bg.reference,[Iv.variable]:vt.shadow.reference,color:WC.reference,bg:HC.reference,boxShadow:Iv.reference,borderRadius:"md",minH:qp.reference,minW:Up.reference,fontSize:Hp.reference,px:Wp.reference,_focusVisible:{[Iv.variable]:"shadows.outline"}},kq={lineHeight:1.2,overflow:"visible"},Eq={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},Dq=Ro({container:Cq,label:kq,closeButton:Eq}),Pq={sm:Ro({container:{[qp.variable]:"sizes.5",[Up.variable]:"sizes.5",[Hp.variable]:"fontSizes.xs",[Wp.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ro({container:{[qp.variable]:"sizes.6",[Up.variable]:"sizes.6",[Hp.variable]:"fontSizes.sm",[Wp.variable]:"space.2"}}),lg:Ro({container:{[qp.variable]:"sizes.8",[Up.variable]:"sizes.8",[Hp.variable]:"fontSizes.md",[Wp.variable]:"space.3"}})},Tq={subtle:Ro(e=>{var t;return{container:(t=yc.variants)==null?void 0:t.subtle(e)}}),solid:Ro(e=>{var t;return{container:(t=yc.variants)==null?void 0:t.solid(e)}}),outline:Ro(e=>{var t;return{container:(t=yc.variants)==null?void 0:t.outline(e)}})},Oq=_q({variants:Tq,baseStyle:Dq,sizes:Pq,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Ii,defineMultiStyleConfig:$q}=Ye(Zz.keys),Ns=fe("input-height"),Ls=fe("input-font-size"),zs=fe("input-padding"),Vs=fe("input-border-radius"),Mq=Ii({addon:{height:Ns.reference,fontSize:Ls.reference,px:zs.reference,borderRadius:Vs.reference},field:{width:"100%",height:Ns.reference,fontSize:Ls.reference,px:zs.reference,borderRadius:Vs.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),la={lg:{[Ls.variable]:"fontSizes.lg",[zs.variable]:"space.4",[Vs.variable]:"radii.md",[Ns.variable]:"sizes.12"},md:{[Ls.variable]:"fontSizes.md",[zs.variable]:"space.4",[Vs.variable]:"radii.md",[Ns.variable]:"sizes.10"},sm:{[Ls.variable]:"fontSizes.sm",[zs.variable]:"space.3",[Vs.variable]:"radii.sm",[Ns.variable]:"sizes.8"},xs:{[Ls.variable]:"fontSizes.xs",[zs.variable]:"space.2",[Vs.variable]:"radii.sm",[Ns.variable]:"sizes.6"}},Bq={lg:Ii({field:la.lg,group:la.lg}),md:Ii({field:la.md,group:la.md}),sm:Ii({field:la.sm,group:la.sm}),xs:Ii({field:la.xs,group:la.xs})};function Mw(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||ce("blue.500","blue.300")(e),errorBorderColor:r||ce("red.500","red.300")(e)}}var Iq=Ii(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Mw(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ce("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pr(t,n),boxShadow:`0 0 0 1px ${pr(t,n)}`},_focusVisible:{zIndex:1,borderColor:pr(t,r),boxShadow:`0 0 0 1px ${pr(t,r)}`}},addon:{border:"1px solid",borderColor:ce("inherit","whiteAlpha.50")(e),bg:ce("gray.100","whiteAlpha.300")(e)}}}),Rq=Ii(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Mw(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ce("gray.100","whiteAlpha.50")(e),_hover:{bg:ce("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pr(t,n)},_focusVisible:{bg:"transparent",borderColor:pr(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:ce("gray.100","whiteAlpha.50")(e)}}}),jq=Ii(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Mw(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:pr(t,n),boxShadow:`0px 1px 0px 0px ${pr(t,n)}`},_focusVisible:{borderColor:pr(t,r),boxShadow:`0px 1px 0px 0px ${pr(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Fq=Ii({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Nq={outline:Iq,filled:Rq,flushed:jq,unstyled:Fq},Re=$q({baseStyle:Mq,sizes:Bq,variants:Nq,defaultProps:{size:"md",variant:"outline"}}),GC,Lq={...(GC=Re.baseStyle)==null?void 0:GC.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},KC,YC,zq={outline:e=>{var t,r;return(r=(t=Re.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Re.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Re.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(YC=(KC=Re.variants)==null?void 0:KC.unstyled.field)!=null?YC:{}},XC,QC,JC,ZC,ek,tk,rk,nk,Vq={xs:(QC=(XC=Re.sizes)==null?void 0:XC.xs.field)!=null?QC:{},sm:(ZC=(JC=Re.sizes)==null?void 0:JC.sm.field)!=null?ZC:{},md:(tk=(ek=Re.sizes)==null?void 0:ek.md.field)!=null?tk:{},lg:(nk=(rk=Re.sizes)==null?void 0:rk.lg.field)!=null?nk:{}},qq={baseStyle:Lq,sizes:Vq,variants:zq,defaultProps:{size:"md",variant:"outline"}},tp=Tt("tooltip-bg"),Rv=Tt("tooltip-fg"),Uq=Tt("popper-arrow-bg"),Hq={bg:tp.reference,color:Rv.reference,[tp.variable]:"colors.gray.700",[Rv.variable]:"colors.whiteAlpha.900",_dark:{[tp.variable]:"colors.gray.300",[Rv.variable]:"colors.gray.900"},[Uq.variable]:tp.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Wq={baseStyle:Hq},{defineMultiStyleConfig:Gq,definePartsStyle:tc}=Ye(aV.keys),Kq=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,a=ce(LC(),LC("1rem","rgba(0,0,0,0.1)"))(e),o=ce(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( - to right, - transparent 0%, - ${pr(r,o)} 50%, - transparent 100% - )`;return{...!n&&i&&a,...n?{bgImage:s}:{bgColor:o}}},Yq={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Xq=e=>({bg:ce("gray.100","whiteAlpha.300")(e)}),Qq=e=>({transitionProperty:"common",transitionDuration:"slow",...Kq(e)}),Jq=tc(e=>({label:Yq,filledTrack:Qq(e),track:Xq(e)})),Zq={xs:tc({track:{h:"1"}}),sm:tc({track:{h:"2"}}),md:tc({track:{h:"3"}}),lg:tc({track:{h:"4"}})},eU=Gq({sizes:Zq,baseStyle:Jq,defaultProps:{size:"md",colorScheme:"blue"}}),tU=e=>typeof e=="function";function gr(e,...t){return tU(e)?e(...t):e}var{definePartsStyle:Gp,defineMultiStyleConfig:rU}=Ye(Kz.keys),bc=fe("checkbox-size"),nU=e=>{const{colorScheme:t}=e;return{w:bc.reference,h:bc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ce(`${t}.500`,`${t}.200`)(e),borderColor:ce(`${t}.500`,`${t}.200`)(e),color:ce("white","gray.900")(e),_hover:{bg:ce(`${t}.600`,`${t}.300`)(e),borderColor:ce(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ce("gray.200","transparent")(e),bg:ce("gray.200","whiteAlpha.300")(e),color:ce("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ce(`${t}.500`,`${t}.200`)(e),borderColor:ce(`${t}.500`,`${t}.200`)(e),color:ce("white","gray.900")(e)},_disabled:{bg:ce("gray.100","whiteAlpha.100")(e),borderColor:ce("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ce("red.500","red.300")(e)}}},iU={_disabled:{cursor:"not-allowed"}},aU={userSelect:"none",_disabled:{opacity:.4}},oU={transitionProperty:"transform",transitionDuration:"normal"},sU=Gp(e=>({icon:oU,container:iU,control:gr(nU,e),label:aU})),uU={sm:Gp({control:{[bc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Gp({control:{[bc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Gp({control:{[bc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Vh=rU({baseStyle:sU,sizes:uU,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lU,definePartsStyle:Kp}=Ye(oV.keys),cU=e=>{var t;const r=(t=gr(Vh.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},fU=Kp(e=>{var t,r,n,i;return{label:(r=(t=Vh).baseStyle)==null?void 0:r.call(t,e).label,container:(i=(n=Vh).baseStyle)==null?void 0:i.call(n,e).container,control:cU(e)}}),dU={md:Kp({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Kp({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Kp({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},pU=lU({baseStyle:fU,sizes:dU,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:hU,definePartsStyle:mU}=Ye(sV.keys),rp=fe("select-bg"),ik,gU={...(ik=Re.baseStyle)==null?void 0:ik.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:rp.reference,[rp.variable]:"colors.white",_dark:{[rp.variable]:"colors.gray.700"},"> option, > optgroup":{bg:rp.reference}},vU={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},yU=mU({field:gU,icon:vU}),np={paddingInlineEnd:"8"},ak,ok,sk,uk,lk,ck,fk,dk,bU={lg:{...(ak=Re.sizes)==null?void 0:ak.lg,field:{...(ok=Re.sizes)==null?void 0:ok.lg.field,...np}},md:{...(sk=Re.sizes)==null?void 0:sk.md,field:{...(uk=Re.sizes)==null?void 0:uk.md.field,...np}},sm:{...(lk=Re.sizes)==null?void 0:lk.sm,field:{...(ck=Re.sizes)==null?void 0:ck.sm.field,...np}},xs:{...(fk=Re.sizes)==null?void 0:fk.xs,field:{...(dk=Re.sizes)==null?void 0:dk.xs.field,...np},icon:{insetEnd:"1"}}},xU=hU({baseStyle:yU,sizes:bU,variants:Re.variants,defaultProps:Re.defaultProps}),jv=fe("skeleton-start-color"),Fv=fe("skeleton-end-color"),wU={[jv.variable]:"colors.gray.100",[Fv.variable]:"colors.gray.400",_dark:{[jv.variable]:"colors.gray.800",[Fv.variable]:"colors.gray.600"},background:jv.reference,borderColor:Fv.reference,opacity:.7,borderRadius:"sm"},SU={baseStyle:wU},Nv=fe("skip-link-bg"),AU={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Nv.variable]:"colors.white",_dark:{[Nv.variable]:"colors.gray.700"},bg:Nv.reference}},_U={baseStyle:AU},{defineMultiStyleConfig:CU,definePartsStyle:qg}=Ye(uV.keys),tf=fe("slider-thumb-size"),rf=fe("slider-track-size"),xa=fe("slider-bg"),kU=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...$w({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},EU=e=>({...$w({orientation:e.orientation,horizontal:{h:rf.reference},vertical:{w:rf.reference}}),overflow:"hidden",borderRadius:"sm",[xa.variable]:"colors.gray.200",_dark:{[xa.variable]:"colors.whiteAlpha.200"},_disabled:{[xa.variable]:"colors.gray.300",_dark:{[xa.variable]:"colors.whiteAlpha.300"}},bg:xa.reference}),DU=e=>{const{orientation:t}=e;return{...$w({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:tf.reference,h:tf.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},PU=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[xa.variable]:`colors.${t}.500`,_dark:{[xa.variable]:`colors.${t}.200`},bg:xa.reference}},TU=qg(e=>({container:kU(e),track:EU(e),thumb:DU(e),filledTrack:PU(e)})),OU=qg({container:{[tf.variable]:"sizes.4",[rf.variable]:"sizes.1"}}),$U=qg({container:{[tf.variable]:"sizes.3.5",[rf.variable]:"sizes.1"}}),MU=qg({container:{[tf.variable]:"sizes.2.5",[rf.variable]:"sizes.0.5"}}),BU={lg:OU,md:$U,sm:MU},IU=CU({baseStyle:TU,sizes:BU,defaultProps:{size:"md",colorScheme:"blue"}}),So=Tt("spinner-size"),RU={width:[So.reference],height:[So.reference]},jU={xs:{[So.variable]:"sizes.3"},sm:{[So.variable]:"sizes.4"},md:{[So.variable]:"sizes.6"},lg:{[So.variable]:"sizes.8"},xl:{[So.variable]:"sizes.12"}},FU={baseStyle:RU,sizes:jU,defaultProps:{size:"md"}},{defineMultiStyleConfig:NU,definePartsStyle:y4}=Ye(lV.keys),LU={fontWeight:"medium"},zU={opacity:.8,marginBottom:"2"},VU={verticalAlign:"baseline",fontWeight:"semibold"},qU={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},UU=y4({container:{},label:LU,helpText:zU,number:VU,icon:qU}),HU={md:y4({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},WU=NU({baseStyle:UU,sizes:HU,defaultProps:{size:"md"}}),Lv=fe("kbd-bg"),GU={[Lv.variable]:"colors.gray.100",_dark:{[Lv.variable]:"colors.whiteAlpha.100"},bg:Lv.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},KU={baseStyle:GU},YU={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},XU={baseStyle:YU},{defineMultiStyleConfig:QU,definePartsStyle:JU}=Ye(eV.keys),ZU={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},eH=JU({icon:ZU}),tH=QU({baseStyle:eH}),{defineMultiStyleConfig:rH,definePartsStyle:nH}=Ye(tV.keys),ri=fe("menu-bg"),zv=fe("menu-shadow"),iH={[ri.variable]:"#fff",[zv.variable]:"shadows.sm",_dark:{[ri.variable]:"colors.gray.700",[zv.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:ri.reference,boxShadow:zv.reference},aH={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ri.variable]:"colors.gray.100",_dark:{[ri.variable]:"colors.whiteAlpha.100"}},_active:{[ri.variable]:"colors.gray.200",_dark:{[ri.variable]:"colors.whiteAlpha.200"}},_expanded:{[ri.variable]:"colors.gray.100",_dark:{[ri.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ri.reference},oH={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},sH={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},uH={opacity:.6},lH={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},cH={transitionProperty:"common",transitionDuration:"normal"},fH=nH({button:cH,list:iH,item:aH,groupTitle:oH,icon:sH,command:uH,divider:lH}),dH=rH({baseStyle:fH}),{defineMultiStyleConfig:pH,definePartsStyle:p2}=Ye(rV.keys),Vv=fe("modal-bg"),qv=fe("modal-shadow"),hH={bg:"blackAlpha.600",zIndex:"modal"},mH=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},gH=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Vv.variable]:"colors.white",[qv.variable]:"shadows.lg",_dark:{[Vv.variable]:"colors.gray.700",[qv.variable]:"shadows.dark-lg"},bg:Vv.reference,boxShadow:qv.reference}},vH={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},yH={position:"absolute",top:"2",insetEnd:"3"},bH=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},xH={px:"6",py:"4"},wH=p2(e=>({overlay:hH,dialogContainer:gr(mH,e),dialog:gr(gH,e),header:vH,closeButton:yH,body:gr(bH,e),footer:xH}));function Tn(e){return p2(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var SH={xs:Tn("xs"),sm:Tn("sm"),md:Tn("md"),lg:Tn("lg"),xl:Tn("xl"),"2xl":Tn("2xl"),"3xl":Tn("3xl"),"4xl":Tn("4xl"),"5xl":Tn("5xl"),"6xl":Tn("6xl"),full:Tn("full")},AH=pH({baseStyle:wH,sizes:SH,defaultProps:{size:"md"}}),{defineMultiStyleConfig:_H,definePartsStyle:b4}=Ye(nV.keys),Bw=Tt("number-input-stepper-width"),x4=Tt("number-input-input-padding"),CH=Oi(Bw).add("0.5rem").toString(),Uv=Tt("number-input-bg"),Hv=Tt("number-input-color"),Wv=Tt("number-input-border-color"),kH={[Bw.variable]:"sizes.6",[x4.variable]:CH},EH=e=>{var t,r;return(r=(t=gr(Re.baseStyle,e))==null?void 0:t.field)!=null?r:{}},DH={width:Bw.reference},PH={borderStart:"1px solid",borderStartColor:Wv.reference,color:Hv.reference,bg:Uv.reference,[Hv.variable]:"colors.chakra-body-text",[Wv.variable]:"colors.chakra-border-color",_dark:{[Hv.variable]:"colors.whiteAlpha.800",[Wv.variable]:"colors.whiteAlpha.300"},_active:{[Uv.variable]:"colors.gray.200",_dark:{[Uv.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},TH=b4(e=>{var t;return{root:kH,field:(t=gr(EH,e))!=null?t:{},stepperGroup:DH,stepper:PH}});function ip(e){var t,r,n;const i=(t=Re.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},o=(n=(r=i.field)==null?void 0:r.fontSize)!=null?n:"md",s=p4.fontSizes[o];return b4({field:{...i.field,paddingInlineEnd:x4.reference,verticalAlign:"top"},stepper:{fontSize:Oi(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var OH={xs:ip("xs"),sm:ip("sm"),md:ip("md"),lg:ip("lg")},$H=_H({baseStyle:TH,sizes:OH,variants:Re.variants,defaultProps:Re.defaultProps}),pk,MH={...(pk=Re.baseStyle)==null?void 0:pk.field,textAlign:"center"},BH={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},hk,mk,IH={outline:e=>{var t,r,n;return(n=(r=gr((t=Re.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=gr((t=Re.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=gr((t=Re.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(mk=(hk=Re.variants)==null?void 0:hk.unstyled.field)!=null?mk:{}},RH={baseStyle:MH,sizes:BH,variants:IH,defaultProps:Re.defaultProps},{defineMultiStyleConfig:jH,definePartsStyle:FH}=Ye(iV.keys),ap=Tt("popper-bg"),NH=Tt("popper-arrow-bg"),gk=Tt("popper-arrow-shadow-color"),LH={zIndex:10},zH={[ap.variable]:"colors.white",bg:ap.reference,[NH.variable]:ap.reference,[gk.variable]:"colors.gray.200",_dark:{[ap.variable]:"colors.gray.700",[gk.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},VH={px:3,py:2,borderBottomWidth:"1px"},qH={px:3,py:2},UH={px:3,py:2,borderTopWidth:"1px"},HH={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},WH=FH({popper:LH,content:zH,header:VH,body:qH,footer:UH,closeButton:HH}),GH=jH({baseStyle:WH}),{definePartsStyle:h2,defineMultiStyleConfig:KH}=Ye(Yz.keys),Gv=fe("drawer-bg"),Kv=fe("drawer-box-shadow");function ps(e){return h2(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var YH={bg:"blackAlpha.600",zIndex:"modal"},XH={display:"flex",zIndex:"modal",justifyContent:"center"},QH=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Gv.variable]:"colors.white",[Kv.variable]:"shadows.lg",_dark:{[Gv.variable]:"colors.gray.700",[Kv.variable]:"shadows.dark-lg"},bg:Gv.reference,boxShadow:Kv.reference}},JH={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},ZH={position:"absolute",top:"2",insetEnd:"3"},eW={px:"6",py:"2",flex:"1",overflow:"auto"},tW={px:"6",py:"4"},rW=h2(e=>({overlay:YH,dialogContainer:XH,dialog:gr(QH,e),header:JH,closeButton:ZH,body:eW,footer:tW})),nW={xs:ps("xs"),sm:ps("md"),md:ps("lg"),lg:ps("2xl"),xl:ps("4xl"),full:ps("full")},iW=KH({baseStyle:rW,sizes:nW,defaultProps:{size:"xs"}}),{definePartsStyle:aW,defineMultiStyleConfig:oW}=Ye(Xz.keys),sW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},uW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},lW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},cW=aW({preview:sW,input:uW,textarea:lW}),fW=oW({baseStyle:cW}),{definePartsStyle:dW,defineMultiStyleConfig:pW}=Ye(Qz.keys),iu=fe("form-control-color"),hW={marginStart:"1",[iu.variable]:"colors.red.500",_dark:{[iu.variable]:"colors.red.300"},color:iu.reference},mW={mt:"2",[iu.variable]:"colors.gray.600",_dark:{[iu.variable]:"colors.whiteAlpha.600"},color:iu.reference,lineHeight:"normal",fontSize:"sm"},gW=dW({container:{width:"100%",position:"relative"},requiredIndicator:hW,helperText:mW}),vW=pW({baseStyle:gW}),{definePartsStyle:yW,defineMultiStyleConfig:bW}=Ye(Jz.keys),au=fe("form-error-color"),xW={[au.variable]:"colors.red.500",_dark:{[au.variable]:"colors.red.300"},color:au.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},wW={marginEnd:"0.5em",[au.variable]:"colors.red.500",_dark:{[au.variable]:"colors.red.300"},color:au.reference},SW=yW({text:xW,icon:wW}),AW=bW({baseStyle:SW}),_W={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},CW={baseStyle:_W},kW={fontFamily:"heading",fontWeight:"bold"},EW={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},DW={baseStyle:kW,sizes:EW,defaultProps:{size:"xl"}},{defineMultiStyleConfig:PW,definePartsStyle:TW}=Ye(Gz.keys),Yv=fe("breadcrumb-link-decor"),OW={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Yv.reference,[Yv.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Yv.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},$W=TW({link:OW}),MW=PW({baseStyle:$W}),BW={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},w4=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:ce("gray.800","whiteAlpha.900")(e),_hover:{bg:ce("gray.100","whiteAlpha.200")(e)},_active:{bg:ce("gray.200","whiteAlpha.300")(e)}};const n=Cu(`${t}.200`,.12)(r),i=Cu(`${t}.200`,.24)(r);return{color:ce(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ce(`${t}.50`,n)(e)},_active:{bg:ce(`${t}.100`,i)(e)}}},IW=e=>{const{colorScheme:t}=e,r=ce("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...gr(w4,e)}},RW={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},jW=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const u=ce("gray.100","whiteAlpha.200")(e);return{bg:u,color:ce("gray.800","whiteAlpha.900")(e),_hover:{bg:ce("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:ce("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:a=`${r}.600`,activeBg:o=`${r}.700`}=(t=RW[r])!=null?t:{},s=ce(n,`${r}.200`)(e);return{bg:s,color:ce(i,"gray.800")(e),_hover:{bg:ce(a,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:ce(o,`${r}.400`)(e)}}},FW=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ce(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ce(`${t}.700`,`${t}.500`)(e)}}},NW={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},LW={ghost:w4,outline:IW,solid:jW,link:FW,unstyled:NW},zW={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},VW={baseStyle:BW,variants:LW,sizes:zW,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:jo,defineMultiStyleConfig:qW}=Ye(hV.keys),qh=fe("card-bg"),zi=fe("card-padding"),S4=fe("card-shadow"),Yp=fe("card-radius"),A4=fe("card-border-width","0"),_4=fe("card-border-color"),UW=jo({container:{[qh.variable]:"colors.chakra-body-bg",backgroundColor:qh.reference,boxShadow:S4.reference,borderRadius:Yp.reference,color:"chakra-body-text",borderWidth:A4.reference,borderColor:_4.reference},body:{padding:zi.reference,flex:"1 1 0%"},header:{padding:zi.reference},footer:{padding:zi.reference}}),HW={sm:jo({container:{[Yp.variable]:"radii.base",[zi.variable]:"space.3"}}),md:jo({container:{[Yp.variable]:"radii.md",[zi.variable]:"space.5"}}),lg:jo({container:{[Yp.variable]:"radii.xl",[zi.variable]:"space.7"}})},WW={elevated:jo({container:{[S4.variable]:"shadows.base",_dark:{[qh.variable]:"colors.gray.700"}}}),outline:jo({container:{[A4.variable]:"1px",[_4.variable]:"colors.chakra-border-color"}}),filled:jo({container:{[qh.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[zi.variable]:0},header:{[zi.variable]:0},footer:{[zi.variable]:0}}},GW=qW({baseStyle:UW,variants:WW,sizes:HW,defaultProps:{variant:"elevated",size:"md"}}),xc=Tt("close-button-size"),Ol=Tt("close-button-bg"),KW={w:[xc.reference],h:[xc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ol.variable]:"colors.blackAlpha.100",_dark:{[Ol.variable]:"colors.whiteAlpha.100"}},_active:{[Ol.variable]:"colors.blackAlpha.200",_dark:{[Ol.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ol.reference},YW={lg:{[xc.variable]:"sizes.10",fontSize:"md"},md:{[xc.variable]:"sizes.8",fontSize:"xs"},sm:{[xc.variable]:"sizes.6",fontSize:"2xs"}},XW={baseStyle:KW,sizes:YW,defaultProps:{size:"md"}},{variants:QW,defaultProps:JW}=yc,ZW={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:vt.bg.reference,color:vt.color.reference,boxShadow:vt.shadow.reference},eG={baseStyle:ZW,variants:QW,defaultProps:JW},tG={w:"100%",mx:"auto",maxW:"prose",px:"4"},rG={baseStyle:tG},nG={opacity:.6,borderColor:"inherit"},iG={borderStyle:"solid"},aG={borderStyle:"dashed"},oG={solid:iG,dashed:aG},sG={baseStyle:nG,variants:oG,defaultProps:{variant:"solid"}},{definePartsStyle:uG,defineMultiStyleConfig:lG}=Ye(Uz.keys),cG={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},fG={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},dG={pt:"2",px:"4",pb:"5"},pG={fontSize:"1.25em"},hG=uG({container:cG,button:fG,panel:dG,icon:pG}),mG=lG({baseStyle:hG}),{definePartsStyle:td,defineMultiStyleConfig:gG}=Ye(Hz.keys),Wr=fe("alert-fg"),Yi=fe("alert-bg"),vG=td({container:{bg:Yi.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Wr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Wr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Iw(e){const{theme:t,colorScheme:r}=e,n=Cu(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var yG=td(e=>{const{colorScheme:t}=e,r=Iw(e);return{container:{[Wr.variable]:`colors.${t}.500`,[Yi.variable]:r.light,_dark:{[Wr.variable]:`colors.${t}.200`,[Yi.variable]:r.dark}}}}),bG=td(e=>{const{colorScheme:t}=e,r=Iw(e);return{container:{[Wr.variable]:`colors.${t}.500`,[Yi.variable]:r.light,_dark:{[Wr.variable]:`colors.${t}.200`,[Yi.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Wr.reference}}}),xG=td(e=>{const{colorScheme:t}=e,r=Iw(e);return{container:{[Wr.variable]:`colors.${t}.500`,[Yi.variable]:r.light,_dark:{[Wr.variable]:`colors.${t}.200`,[Yi.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Wr.reference}}}),wG=td(e=>{const{colorScheme:t}=e;return{container:{[Wr.variable]:"colors.white",[Yi.variable]:`colors.${t}.500`,_dark:{[Wr.variable]:"colors.gray.900",[Yi.variable]:`colors.${t}.200`},color:Wr.reference}}}),SG={subtle:yG,"left-accent":bG,"top-accent":xG,solid:wG},AG=gG({baseStyle:vG,variants:SG,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:C4,defineMultiStyleConfig:_G}=Ye(Wz.keys),ou=fe("avatar-border-color"),wc=fe("avatar-bg"),nf=fe("avatar-font-size"),ku=fe("avatar-size"),CG={borderRadius:"full",border:"0.2em solid",borderColor:ou.reference,[ou.variable]:"white",_dark:{[ou.variable]:"colors.gray.800"}},kG={bg:wc.reference,fontSize:nf.reference,width:ku.reference,height:ku.reference,lineHeight:"1",[wc.variable]:"colors.gray.200",_dark:{[wc.variable]:"colors.whiteAlpha.400"}},EG=e=>{const{name:t,theme:r}=e,n=t?BV({string:t}):"colors.gray.400",i=$V(n)(r);let a="white";return i||(a="gray.800"),{bg:wc.reference,fontSize:nf.reference,color:a,borderColor:ou.reference,verticalAlign:"top",width:ku.reference,height:ku.reference,"&:not([data-loaded])":{[wc.variable]:n},[ou.variable]:"colors.white",_dark:{[ou.variable]:"colors.gray.800"}}},DG={fontSize:nf.reference,lineHeight:"1"},PG=C4(e=>({badge:gr(CG,e),excessLabel:gr(kG,e),container:gr(EG,e),label:DG}));function ca(e){const t=e!=="100%"?m4[e]:void 0;return C4({container:{[ku.variable]:t??e,[nf.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[ku.variable]:t??e,[nf.variable]:`calc(${t??e} / 2.5)`}})}var TG={"2xs":ca(4),xs:ca(6),sm:ca(8),md:ca(12),lg:ca(16),xl:ca(24),"2xl":ca(32),full:ca("100%")},OG=_G({baseStyle:PG,sizes:TG,defaultProps:{size:"md"}}),$G={Accordion:mG,Alert:AG,Avatar:OG,Badge:yc,Breadcrumb:MW,Button:VW,Checkbox:Vh,CloseButton:XW,Code:eG,Container:rG,Divider:sG,Drawer:iW,Editable:fW,Form:vW,FormError:AW,FormLabel:CW,Heading:DW,Input:Re,Kbd:KU,Link:XU,List:tH,Menu:dH,Modal:AH,NumberInput:$H,PinInput:RH,Popover:GH,Progress:eU,Radio:pU,Select:xU,Skeleton:SU,SkipLink:_U,Slider:IU,Spinner:FU,Stat:WU,Switch:XV,Table:nq,Tabs:yq,Tag:Oq,Textarea:qq,Tooltip:Wq,Card:GW,Stepper:qz},MG={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},BG={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},IG="ltr",RG={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},k4={semanticTokens:MG,direction:IG,...Lz,components:$G,styles:BG,config:RG};function rc(e){return typeof e=="function"}function jG(...e){return t=>e.reduce((r,n)=>n(r),t)}var FG=e=>function(...r){let n=[...r],i=r[r.length-1];return gz(i)&&n.length>1?n=n.slice(0,n.length-1):i=e,jG(...n.map(a=>o=>rc(a)?a(o):LG(o,a)))(i)},NG=FG(k4);function LG(...e){return dn({},...e,E4)}function E4(e,t,r,n){if((rc(e)||rc(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...i)=>{const a=rc(e)?e(...i):e,o=rc(t)?t(...i):t;return dn({},a,o,E4)}}function zG(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function VG(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,a,o)=>{if(typeof n>"u")return e(n,i,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(i))return s.get(i);const u=e(n,i,a,o);return s.set(i,u),u}},D4=qG(VG);function P4(e,t){const r={};return Object.keys(e).forEach(n=>{const i=e[n];t(i,n,e)&&(r[n]=i)}),r}var T4=e=>P4(e,t=>t!=null);function UG(e){return typeof e=="function"}function O4(e,...t){return UG(e)?e(...t):e}var HG=typeof Element<"u",WG=typeof Map=="function",GG=typeof Set=="function",KG=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Xp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Xp(e[n],t[n]))return!1;return!0}var a;if(WG&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!Xp(n.value[1],t.get(n.value[0])))return!1;return!0}if(GG&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(KG&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(HG&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!Xp(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var YG=function(t,r){try{return Xp(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const XG=Pe(YG);function $4(e,t={}){var r;const{styleConfig:n,...i}=t,{theme:a,colorMode:o}=n4(),s=e?D4(a,`components.${e}`):void 0,u=n||s,l=dn({theme:a,colorMode:o},(r=u==null?void 0:u.defaultProps)!=null?r:{},T4(zG(i,["children"]))),c=C.useRef({});if(u){const d=pz(u)(l);XG(c.current,d)||(c.current=d)}return c.current}function Si(e,t={}){return $4(e,t)}function rd(e,t={}){return $4(e,t)}var QG=new Set([...tz,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),JG=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function ZG(e){return JG.has(e)||!QG.has(e)}function eK(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(i in r&&delete r[i],r[i]=n[i]);return r}function tK(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var rK=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nK=F$(function(e){return rK.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),iK=nK,aK=function(t){return t!=="theme"},vk=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?iK:aK},yk=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},oK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return H$(r,n,i),CL(function(){return W$(r,n,i)}),null},sK=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=yk(t,r,n),u=s||vk(i),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht=>{const{theme:r,css:n,__css:i,sx:a,...o}=t,s=P4(o,(f,d)=>nz(d)),u=O4(e,t),l=eK({},i,u,T4(s),a),c=d4(l)(t.theme);return n?[c,n]:c};function Xv(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=ZG);const i=cK({baseStyle:r}),a=lK(e,n)(i);return V.forwardRef(function(u,l){const{colorMode:c,forced:f}=Zf();return V.createElement(a,{ref:l,"data-theme":f?c:void 0,...u})})}function fK(){const e=new Map;return new Proxy(Xv,{apply(t,r,n){return Xv(...n)},get(t,r){return e.has(r)||e.set(r,Xv(r)),e.get(r)}})}var oe=fK();function ye(e){return C.forwardRef(e)}function dK(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,i=C.createContext(void 0);i.displayName=n;function a(){var o;const s=C.useContext(i);if(!s&&t){const u=new Error(r);throw u.name="ContextError",(o=Error.captureStackTrace)==null||o.call(Error,u,a),u}return s}return[i.Provider,a,i]}function pK(e){const{cssVarsRoot:t,theme:r,children:n}=e,i=C.useMemo(()=>ez(r),[r]);return _.jsxs(DL,{theme:i,children:[_.jsx(hK,{root:t}),n]})}function hK({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return _.jsx(Ng,{styles:r=>({[t]:r.__cssVars})})}dK({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function mK(){const{colorMode:e}=Zf();return _.jsx(Ng,{styles:t=>{const r=D4(t,"styles.global"),n=O4(r,{theme:t,colorMode:e});return n?d4(n)(t):void 0}})}var M4=C.createContext({getDocument(){return document},getWindow(){return window}});M4.displayName="EnvironmentContext";function B4(e){const{children:t,environment:r,disabled:n}=e,i=C.useRef(null),a=C.useMemo(()=>r||{getDocument:()=>{var s,u;return(u=(s=i.current)==null?void 0:s.ownerDocument)!=null?u:document},getWindow:()=>{var s,u;return(u=(s=i.current)==null?void 0:s.ownerDocument.defaultView)!=null?u:window}},[r]),o=!n||!r;return _.jsxs(M4.Provider,{value:a,children:[t,o&&_.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}B4.displayName="EnvironmentProvider";var gK=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:a=!0,theme:o={},environment:s,cssVarsRoot:u,disableEnvironment:l,disableGlobalStyle:c}=e,f=_.jsx(B4,{environment:s,disabled:l,children:t});return _.jsx(pK,{theme:o,cssVarsRoot:u,children:_.jsxs(r4,{colorModeManager:r,options:o.config,children:[a?_.jsx(OL,{scope:i}):_.jsx(TL,{}),!c&&_.jsx(mK,{}),n?_.jsx(e4,{zIndex:n,children:f}):f]})})},vK=(e,t)=>e.find(r=>r.id===t);function xk(e,t){const r=I4(e,t),n=r?e[r].findIndex(i=>i.id===t):-1;return{position:r,index:n}}function I4(e,t){for(const[r,n]of Object.entries(e))if(vK(n,t))return r}function yK(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function bK(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:i,right:a,left:o}}function Fo(e,t=[]){const r=C.useRef(e);return C.useEffect(()=>{r.current=e}),C.useCallback((...n)=>{var i;return(i=r.current)==null?void 0:i.call(r,...n)},t)}function xK(e,t){const r=Fo(e);C.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Hh(e,t){const r=C.useRef(!1),n=C.useRef(!1);C.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),C.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const R4=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ug=C.createContext({}),nd=C.createContext(null),Hg=typeof document<"u",Rw=Hg?C.useLayoutEffect:C.useEffect,j4=C.createContext({strict:!1});function wK(e,t,r,n){const{visualElement:i}=C.useContext(Ug),a=C.useContext(j4),o=C.useContext(nd),s=C.useContext(R4).reducedMotion,u=C.useRef();n=n||a.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;C.useInsertionEffect(()=>{l&&l.update(r,o)});const c=C.useRef(!!window.HandoffAppearAnimations);return Rw(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),C.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function qs(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function SK(e,t,r){return C.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):qs(r)&&(r.current=n))},[t])}function af(e){return typeof e=="string"||Array.isArray(e)}function Wg(e){return typeof e=="object"&&typeof e.start=="function"}const jw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fw=["initial",...jw];function Gg(e){return Wg(e.animate)||Fw.some(t=>af(e[t]))}function F4(e){return!!(Gg(e)||e.variants)}function AK(e,t){if(Gg(e)){const{initial:r,animate:n}=e;return{initial:r===!1||af(r)?r:void 0,animate:af(n)?n:void 0}}return e.inherit!==!1?t:{}}function _K(e){const{initial:t,animate:r}=AK(e,C.useContext(Ug));return C.useMemo(()=>({initial:t,animate:r}),[wk(t),wk(r)])}function wk(e){return Array.isArray(e)?e.join(" "):e}const Sk={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},of={};for(const e in Sk)of[e]={isEnabled:t=>Sk[e].some(r=>!!t[r])};function CK(e){for(const t in e)of[t]={...of[t],...e[t]}}const Nw=C.createContext({}),N4=C.createContext({}),kK=Symbol.for("motionComponentSymbol");function EK({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&CK(e);function a(s,u){let l;const c={...C.useContext(R4),...s,layoutId:DK(s)},{isStatic:f}=c,d=_K(s),h=n(s,f);if(!f&&Hg){d.visualElement=wK(i,h,c,t);const g=C.useContext(N4),p=C.useContext(j4).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,g))}return C.createElement(Ug.Provider,{value:d},l&&d.visualElement?C.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,SK(h,d.visualElement,u),h,f,d.visualElement))}const o=C.forwardRef(a);return o[kK]=i,o}function DK({layoutId:e}){const t=C.useContext(Nw).id;return t&&e!==void 0?t+"-"+e:e}function PK(e){function t(n,i={}){return EK(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const TK=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Lw(e){return typeof e!="string"||e.includes("-")?!1:!!(TK.indexOf(e)>-1||/[A-Z]/.test(e))}const Wh={};function OK(e){Object.assign(Wh,e)}const id=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ns=new Set(id);function L4(e,{layout:t,layoutId:r}){return ns.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Wh[e]||e==="opacity")}const $r=e=>!!(e&&e.getVelocity),$K={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MK=id.length;function BK(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let a="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),V4=z4("--"),m2=z4("var(--"),IK=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,RK=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qa=(e,t,r)=>Math.min(Math.max(r,e),t),is={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sc={...is,transform:e=>qa(0,1,e)},op={...is,default:1},Ac=e=>Math.round(e*1e5)/1e5,Kg=/(-)?([\d]*\.?[\d])+/g,q4=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,jK=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ad(e){return typeof e=="string"}const od=e=>({test:t=>ad(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fa=od("deg"),hi=od("%"),me=od("px"),FK=od("vh"),NK=od("vw"),Ak={...hi,parse:e=>hi.parse(e)/100,transform:e=>hi.transform(e*100)},_k={...is,transform:Math.round},U4={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,size:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,rotate:fa,rotateX:fa,rotateY:fa,rotateZ:fa,scale:op,scaleX:op,scaleY:op,scaleZ:op,skew:fa,skewX:fa,skewY:fa,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Sc,originX:Ak,originY:Ak,originZ:me,zIndex:_k,fillOpacity:Sc,strokeOpacity:Sc,numOctaves:_k};function zw(e,t,r,n){const{style:i,vars:a,transform:o,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(V4(f)){a[f]=d;continue}const h=U4[f],g=RK(d,h);if(ns.has(f)){if(u=!0,o[f]=g,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=g):i[f]=g}if(t.transform||(u||n?i.transform=BK(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const Vw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function H4(e,t,r){for(const n in t)!$r(t[n])&&!L4(n,r)&&(e[n]=t[n])}function LK({transformTemplate:e},t,r){return C.useMemo(()=>{const n=Vw();return zw(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function zK(e,t,r){const n=e.style||{},i={};return H4(i,n,e),Object.assign(i,LK(e,t,r)),e.transformValues?e.transformValues(i):i}function VK(e,t,r){const n={},i=zK(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const qK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Gh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||qK.has(e)}let W4=e=>!Gh(e);function UK(e){e&&(W4=t=>t.startsWith("on")?!Gh(t):e(t))}try{UK(require("@emotion/is-prop-valid").default)}catch{}function HK(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(W4(i)||r===!0&&Gh(i)||!t&&!Gh(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Ck(e,t,r){return typeof e=="string"?e:me.transform(t+r*e)}function WK(e,t,r){const n=Ck(t,e.x,e.width),i=Ck(r,e.y,e.height);return`${n} ${i}`}const GK={offset:"stroke-dashoffset",array:"stroke-dasharray"},KK={offset:"strokeDashoffset",array:"strokeDasharray"};function YK(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?GK:KK;e[a.offset]=me.transform(-n);const o=me.transform(t),s=me.transform(r);e[a.array]=`${o} ${s}`}function qw(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(zw(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:p}=e;h.transform&&(p&&(g.transform=h.transform),delete h.transform),p&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=WK(p,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),o!==void 0&&YK(h,o,s,u,!1)}const G4=()=>({...Vw(),attrs:{}}),Uw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XK(e,t,r,n){const i=C.useMemo(()=>{const a=G4();return qw(a,t,{enableHardwareAcceleration:!1},Uw(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};H4(a,e.style,e),i.style={...a,...i.style}}return i}function QK(e=!1){return(r,n,i,{latestValues:a},o)=>{const u=(Lw(r)?XK:VK)(n,a,o,r),c={...HK(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=C.useMemo(()=>$r(f)?f.get():f,[f]);return C.createElement(r,{...c,children:d})}}const Hw=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function K4(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const Y4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function X4(e,t,r,n){K4(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Y4.has(i)?i:Hw(i),t.attrs[i])}function Ww(e,t){const{style:r}=e,n={};for(const i in r)($r(r[i])||t.style&&$r(t.style[i])||L4(i,e))&&(n[i]=r[i]);return n}function Q4(e,t){const r=Ww(e,t);for(const n in e)if($r(e[n])||$r(t[n])){const i=id.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function Gw(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function J4(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Kh=e=>Array.isArray(e),JK=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ZK=e=>Kh(e)?e[e.length-1]||0:e;function Qp(e){const t=$r(e)?e.get():e;return JK(t)?t.toValue():t}function eY({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,a){const o={latestValues:tY(n,i,a,e),renderState:t()};return r&&(o.mount=s=>r(n,s,o)),o}const Z4=e=>(t,r)=>{const n=C.useContext(Ug),i=C.useContext(nd),a=()=>eY(e,t,n,i);return r?a():J4(a)};function tY(e,t,r,n){const i={},a=n(e,{});for(const d in a)i[d]=Qp(a[d]);let{initial:o,animate:s}=e;const u=Gg(e),l=F4(e);t&&l&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||o===!1;const f=c?s:o;return f&&typeof f!="boolean"&&!Wg(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const g=Gw(e,h);if(!g)return;const{transitionEnd:p,transition:b,...y}=g;for(const v in y){let m=y[v];if(Array.isArray(m)){const x=c?m.length-1:0;m=m[x]}m!==null&&(i[v]=m)}for(const v in p)i[v]=p[v]}),i}const ht=e=>e;class kk{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function rY(e){let t=new kk,r=new kk,n=0,i=!1,a=!1;const o=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&o.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),o.delete(u)},process:u=>{if(i){a=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l(f[d]=rY(()=>r=!0),f),{}),o=f=>a[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,nY),1),i.timestamp=f,i.isProcessing=!0,sp.forEach(o),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:sp.reduce((f,d)=>{const h=a[d];return f[d]=(g,p=!1,b=!1)=>(r||u(),h.schedule(g,p,b)),f},{}),cancel:f=>sp.forEach(d=>a[d].cancel(f)),state:i,steps:a}}const{schedule:Ge,cancel:Xi,state:Mt,steps:Qv}=iY(typeof requestAnimationFrame<"u"?requestAnimationFrame:ht,!0),aY={useVisualState:Z4({scrapeMotionValuesFromProps:Q4,createRenderState:G4,onMount:(e,t,{renderState:r,latestValues:n})=>{Ge.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ge.render(()=>{qw(r,n,{enableHardwareAcceleration:!1},Uw(t.tagName),e.transformTemplate),X4(t,r)})}})},oY={useVisualState:Z4({scrapeMotionValuesFromProps:Ww,createRenderState:Vw})};function sY(e,{forwardMotionProps:t=!1},r,n){return{...Lw(e)?aY:oY,preloadedFeatures:r,useRender:QK(t),createVisualElement:n,Component:e}}function Ri(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const eM=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Yg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const uY=e=>t=>eM(t)&&e(t,Yg(t));function Vi(e,t,r,n){return Ri(e,t,uY(r),n)}const lY=(e,t)=>r=>t(e(r)),Ma=(...e)=>e.reduce(lY);function tM(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Ek=tM("dragHorizontal"),Dk=tM("dragVertical");function rM(e){let t=!1;if(e==="y")t=Dk();else if(e==="x")t=Ek();else{const r=Ek(),n=Dk();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function nM(){const e=rM(!0);return e?(e(),!1):!0}class Qa{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Pk(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||nM())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&Ge.update(()=>s[n](a,o))};return Vi(e.current,r,i,{passive:!e.getProps()[n]})}class cY extends Qa{mount(){this.unmount=Ma(Pk(this.node,!0),Pk(this.node,!1))}unmount(){}}class fY extends Qa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ma(Ri(this.node.current,"focus",()=>this.onFocus()),Ri(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const iM=(e,t)=>t?e===t?!0:iM(e,t.parentElement):!1;function Jv(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Yg(r))}class dY extends Qa{constructor(){super(...arguments),this.removeStartListeners=ht,this.removeEndListeners=ht,this.removeAccessibleListeners=ht,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=Vi(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();Ge.update(()=>{iM(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),o=Vi(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ma(a,o),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||Jv("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Ge.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=Ri(this.node.current,"keyup",o),Jv("down",(s,u)=>{this.startPress(s,u)})},r=Ri(this.node.current,"keydown",t),n=()=>{this.isPressing&&Jv("cancel",(a,o)=>this.cancelPress(a,o))},i=Ri(this.node.current,"blur",n);this.removeAccessibleListeners=Ma(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ge.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nM()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ge.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Vi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Ri(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ma(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const g2=new WeakMap,Zv=new WeakMap,pY=e=>{const t=g2.get(e.target);t&&t(e)},hY=e=>{e.forEach(pY)};function mY({root:e,...t}){const r=e||document;Zv.has(r)||Zv.set(r,{});const n=Zv.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(hY,{root:e,...t})),n[i]}function gY(e,t,r){const n=mY(t);return g2.set(e,r),n.observe(e),()=>{g2.delete(e),n.unobserve(e)}}const vY={some:0,all:1};class yY extends Qa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:vY[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return gY(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(bY(t,r))&&this.startObserver()}unmount(){}}function bY({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const xY={inView:{Feature:yY},tap:{Feature:dY},focus:{Feature:fY},hover:{Feature:cY}};function aM(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function SY(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Xg(e,t,r){const n=e.getProps();return Gw(n,t,r!==void 0?r:n.custom,wY(e),SY(e))}const AY="framerAppearId",_Y="data-"+Hw(AY);let CY=ht,Kw=ht;const Ba=e=>e*1e3,qi=e=>e/1e3,kY={current:!1},oM=e=>Array.isArray(e)&&typeof e[0]=="number";function sM(e){return!!(!e||typeof e=="string"&&uM[e]||oM(e)||Array.isArray(e)&&e.every(sM))}const nc=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,uM={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nc([0,.65,.55,1]),circOut:nc([.55,0,1,.45]),backIn:nc([.31,.01,.66,-.59]),backOut:nc([.33,1.53,.69,.99])};function lM(e){if(e)return oM(e)?nc(e):Array.isArray(e)?e.map(lM):uM[e]}function EY(e,t,r,{delay:n=0,duration:i,repeat:a=0,repeatType:o="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=lM(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function DY(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const cM=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,PY=1e-7,TY=12;function OY(e,t,r,n,i){let a,o,s=0;do o=t+(r-t)/2,a=cM(o,n,i)-e,a>0?r=o:t=o;while(Math.abs(a)>PY&&++sOY(a,0,1,e,r);return a=>a===0||a===1?a:cM(i(a),t,n)}const $Y=sd(.42,0,1,1),MY=sd(0,0,.58,1),fM=sd(.42,0,.58,1),BY=e=>Array.isArray(e)&&typeof e[0]!="number",dM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pM=e=>t=>1-e(1-t),hM=e=>1-Math.sin(Math.acos(e)),Yw=pM(hM),IY=dM(Yw),mM=sd(.33,1.53,.69,.99),Xw=pM(mM),RY=dM(Xw),jY=e=>(e*=2)<1?.5*Xw(e):.5*(2-Math.pow(2,-10*(e-1))),FY={linear:ht,easeIn:$Y,easeInOut:fM,easeOut:MY,circIn:hM,circInOut:IY,circOut:Yw,backIn:Xw,backInOut:RY,backOut:mM,anticipate:jY},Tk=e=>{if(Array.isArray(e)){Kw(e.length===4);const[t,r,n,i]=e;return sd(t,r,n,i)}else if(typeof e=="string")return FY[e];return e},Qw=(e,t)=>r=>!!(ad(r)&&jK.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),gM=(e,t,r)=>n=>{if(!ad(n))return n;const[i,a,o,s]=n.match(Kg);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},NY=e=>qa(0,255,e),ey={...is,transform:e=>Math.round(NY(e))},Po={test:Qw("rgb","red"),parse:gM("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ey.transform(e)+", "+ey.transform(t)+", "+ey.transform(r)+", "+Ac(Sc.transform(n))+")"};function LY(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const v2={test:Qw("#"),parse:LY,transform:Po.transform},Us={test:Qw("hsl","hue"),parse:gM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+hi.transform(Ac(t))+", "+hi.transform(Ac(r))+", "+Ac(Sc.transform(n))+")"},cr={test:e=>Po.test(e)||v2.test(e)||Us.test(e),parse:e=>Po.test(e)?Po.parse(e):Us.test(e)?Us.parse(e):v2.parse(e),transform:e=>ad(e)?e:e.hasOwnProperty("red")?Po.transform(e):Us.transform(e)},st=(e,t,r)=>-r*e+r*t+e;function ty(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function zY({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,a=0,o=0;if(!t)i=a=o=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=ty(u,s,e+1/3),a=ty(u,s,e),o=ty(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}const ry=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},VY=[v2,Po,Us],qY=e=>VY.find(t=>t.test(e));function Ok(e){const t=qY(e);let r=t.parse(e);return t===Us&&(r=zY(r)),r}const vM=(e,t)=>{const r=Ok(e),n=Ok(t),i={...r};return a=>(i.red=ry(r.red,n.red,a),i.green=ry(r.green,n.green,a),i.blue=ry(r.blue,n.blue,a),i.alpha=st(r.alpha,n.alpha,a),Po.transform(i))};function UY(e){var t,r;return isNaN(e)&&ad(e)&&(((t=e.match(Kg))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(q4))===null||r===void 0?void 0:r.length)||0)>0}const yM={regex:IK,countKey:"Vars",token:"${v}",parse:ht},bM={regex:q4,countKey:"Colors",token:"${c}",parse:cr.parse},xM={regex:Kg,countKey:"Numbers",token:"${n}",parse:is.parse};function ny(e,{regex:t,countKey:r,token:n,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(i)))}function Yh(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&ny(r,yM),ny(r,bM),ny(r,xM),r}function wM(e){return Yh(e).values}function SM(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Yh(e),a=t.length;return o=>{let s=i;for(let u=0;utypeof e=="number"?0:e;function WY(e){const t=wM(e);return SM(e)(t.map(HY))}const Ua={test:UY,parse:wM,createTransformer:SM,getAnimatableNone:WY},AM=(e,t)=>r=>`${r>0?t:e}`;function _M(e,t){return typeof e=="number"?r=>st(e,t,r):cr.test(e)?vM(e,t):e.startsWith("var(")?AM(e,t):kM(e,t)}const CM=(e,t)=>{const r=[...e],n=r.length,i=e.map((a,o)=>_M(a,t[o]));return a=>{for(let o=0;o{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=_M(e[i],t[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}},kM=(e,t)=>{const r=Ua.createTransformer(t),n=Yh(e),i=Yh(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Ma(CM(n.values,i.values),r):AM(e,t)},sf=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},$k=(e,t)=>r=>st(e,t,r);function KY(e){return typeof e=="number"?$k:typeof e=="string"?cr.test(e)?vM:kM:Array.isArray(e)?CM:typeof e=="object"?GY:$k}function YY(e,t,r){const n=[],i=r||KY(e[0]),a=e.length-1;for(let o=0;ot[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=YY(t,n,i),s=o.length,u=l=>{let c=0;if(s>1)for(;cu(qa(e[0],e[a-1],l)):u}function XY(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=sf(0,t,n);e.push(st(r,1,i))}}function QY(e){const t=[0];return XY(t,e.length-1),t}function JY(e,t){return e.map(r=>r*t)}function ZY(e,t){return e.map(()=>t||fM).splice(0,e.length-1)}function Xh({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=BY(n)?n.map(Tk):Tk(n),a={done:!1,value:t[0]},o=JY(r&&r.length===t.length?r:QY(t),e),s=EM(o,t,{ease:Array.isArray(i)?i:ZY(t,i)});return{calculatedDuration:e,next:u=>(a.value=s(u),a.done=u>=e,a)}}function DM(e,t){return t?e*(1e3/t):0}const eX=5;function PM(e,t,r){const n=Math.max(t-eX,0);return DM(r-e(n),t-n)}const iy=.001,tX=.01,Mk=10,rX=.05,nX=1;function iX({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,a;CY(e<=Ba(Mk));let o=1-t;o=qa(rX,nX,o),e=qa(tX,Mk,qi(e)),o<1?(i=l=>{const c=l*o,f=c*e,d=c-r,h=y2(l,o),g=Math.exp(-f);return iy-d/h*g},a=l=>{const f=l*o*e,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-f),p=y2(Math.pow(l,2),o);return(-i(l)+iy>0?-1:1)*((d-h)*g)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-iy+c*f},a=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=oX(i,a,s);if(e=Ba(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:e}}}const aX=12;function oX(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function lX(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Bk(e,uX)&&Bk(e,sX)){const r=iX(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function TM({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=lX(n),h=c?-qi(c):0,g=u/(2*Math.sqrt(s*l)),p=a-i,b=qi(Math.sqrt(s/l)),y=Math.abs(p)<5;r||(r=y?.01:2),t||(t=y?.005:.5);let v;if(g<1){const m=y2(b,g);v=x=>{const w=Math.exp(-g*b*x);return a-w*((h+g*b*p)/m*Math.sin(m*x)+p*Math.cos(m*x))}}else if(g===1)v=m=>a-Math.exp(-b*m)*(p+(h+b*p)*m);else{const m=b*Math.sqrt(g*g-1);v=x=>{const w=Math.exp(-g*b*x),S=Math.min(m*x,300);return a-w*((h+g*b*p)*Math.sinh(S)+m*p*Math.cosh(S))/m}}return{calculatedDuration:d&&f||null,next:m=>{const x=v(m);if(d)o.done=m>=f;else{let w=h;m!==0&&(g<1?w=PM(v,m,x):w=0);const S=Math.abs(w)<=r,A=Math.abs(a-x)<=t;o.done=S&&A}return o.value=o.done?a:x,o}}}function Ik({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=k=>s!==void 0&&ku,g=k=>s===void 0?u:u===void 0||Math.abs(s-k)-p*Math.exp(-k/n),m=k=>y+v(k),x=k=>{const D=v(k),P=m(k);d.done=Math.abs(D)<=l,d.value=d.done?y:P};let w,S;const A=k=>{h(d.value)&&(w=k,S=TM({keyframes:[d.value,g(d.value)],velocity:PM(m,k,d.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return A(0),{calculatedDuration:null,next:k=>{let D=!1;return!S&&w===void 0&&(D=!0,x(k),A(k)),w!==void 0&&k>w?S.next(k-w):(!D&&x(k),d)}}}const cX=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ge.update(t,!0),stop:()=>Xi(t),now:()=>Mt.isProcessing?Mt.timestamp:performance.now()}},Rk=2e4;function jk(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Rk?1/0:t}const fX={decay:Ik,inertia:Ik,tween:Xh,keyframes:Xh,spring:TM};function Qh({autoplay:e=!0,delay:t=0,driver:r=cX,keyframes:n,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,g=!1,p,b;const y=()=>{b=new Promise(U=>{p=U})};y();let v;const m=fX[i]||Xh;let x;m!==Xh&&typeof n[0]!="number"&&(x=EM([0,100],n,{clamp:!1}),n=[0,100]);const w=m({...d,keyframes:n});let S;s==="mirror"&&(S=m({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let A="idle",k=null,D=null,P=null;w.calculatedDuration===null&&a&&(w.calculatedDuration=jk(w));const{calculatedDuration:T}=w;let I=1/0,O=1/0;T!==null&&(I=T+o,O=I*(a+1)-o);let N=0;const j=U=>{if(D===null)return;h>0&&(D=Math.min(D,U)),h<0&&(D=Math.min(U-O/h,D)),k!==null?N=k:N=Math.round(U-D)*h;const Y=N-t*(h>=0?1:-1),K=h>=0?Y<0:Y>O;N=Math.max(Y,0),A==="finished"&&k===null&&(N=O);let Z=N,ue=w;if(a){const G=N/I;let J=Math.floor(G),ee=G%1;!ee&&G>=1&&(ee=1),ee===1&&J--,J=Math.min(J,a+1);const z=!!(J%2);z&&(s==="reverse"?(ee=1-ee,o&&(ee-=o/I)):s==="mirror"&&(ue=S));let de=qa(0,1,ee);N>O&&(de=s==="reverse"&&z?1:0),Z=de*I}const he=K?{done:!1,value:n[0]}:ue.next(Z);x&&(he.value=x(he.value));let{done:le}=he;!K&&T!==null&&(le=h>=0?N>=O:N<=0);const se=k===null&&(A==="finished"||A==="running"&&le);return f&&f(he.value),se&&R(),he},H=()=>{v&&v.stop(),v=void 0},F=()=>{A="idle",H(),p(),y(),D=P=null},R=()=>{A="finished",c&&c(),H(),p()},$=()=>{if(g)return;v||(v=r(j));const U=v.now();u&&u(),k!==null?D=U-k:(!D||A==="finished")&&(D=U),A==="finished"&&y(),P=D,k=null,A="running",v.start()};e&&$();const q={then(U,Y){return b.then(U,Y)},get time(){return qi(N)},set time(U){U=Ba(U),N=U,k!==null||!v||h===0?k=U:D=v.now()-U/h},get duration(){const U=w.calculatedDuration===null?jk(w):w.calculatedDuration;return qi(U)},get speed(){return h},set speed(U){U===h||!v||(h=U,q.time=qi(N))},get state(){return A},play:$,pause:()=>{A="paused",k=N},stop:()=>{g=!0,A!=="idle"&&(A="idle",l&&l(),F())},cancel:()=>{P!==null&&j(P),F()},complete:()=>{A="finished"},sample:U=>(D=0,j(U))};return q}function dX(e){let t;return()=>(t===void 0&&(t=e()),t)}const pX=dX(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),hX=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),up=10,mX=2e4,gX=(e,t)=>t.type==="spring"||e==="backgroundColor"||!sM(t.ease);function vX(e,t,{onUpdate:r,onComplete:n,...i}){if(!(pX()&&hX.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,s,u;const l=()=>{u=new Promise(v=>{s=v})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(gX(t,i)){const v=Qh({...i,repeat:0,delay:0});let m={done:!1,value:c[0]};const x=[];let w=0;for(;!m.done&&wg.cancel(),b=()=>{Ge.update(p),s(),l()};return g.onfinish=()=>{e.set(DY(c,i)),n&&n(),b()},{then(v,m){return u.then(v,m)},attachTimeline(v){return g.timeline=v,g.onfinish=null,ht},get time(){return qi(g.currentTime||0)},set time(v){g.currentTime=Ba(v)},get speed(){return g.playbackRate},set speed(v){g.playbackRate=v},get duration(){return qi(f)},play:()=>{o||(g.play(),Xi(p))},pause:()=>g.pause(),stop:()=>{if(o=!0,g.playState==="idle")return;const{currentTime:v}=g;if(v){const m=Qh({...i,autoplay:!1});e.setWithVelocity(m.sample(v-up).value,m.sample(v).value,up)}b()},complete:()=>g.finish(),cancel:b}}function yX({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:ht,pause:ht,stop:ht,then:a=>(a(),Promise.resolve()),cancel:ht,complete:ht});return t?Qh({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const bX={type:"spring",stiffness:500,damping:25,restSpeed:10},xX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wX={type:"keyframes",duration:.8},SX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AX=(e,{keyframes:t})=>t.length>2?wX:ns.has(e)?e.startsWith("scale")?xX(t[1]):bX:SX,b2=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ua.test(t)||t==="0")&&!t.startsWith("url(")),_X=new Set(["brightness","contrast","saturate","opacity"]);function CX(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Kg)||[];if(!n)return e;const i=r.replace(n,"");let a=_X.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}const kX=/([a-z-]*)\(.*?\)/g,x2={...Ua,getAnimatableNone:e=>{const t=e.match(kX);return t?t.map(CX).join(" "):e}},EX={...U4,color:cr,backgroundColor:cr,outlineColor:cr,fill:cr,stroke:cr,borderColor:cr,borderTopColor:cr,borderRightColor:cr,borderBottomColor:cr,borderLeftColor:cr,filter:x2,WebkitFilter:x2},Jw=e=>EX[e];function OM(e,t){let r=Jw(e);return r!==x2&&(r=Ua),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const $M=e=>/^0[^.\s]+$/.test(e);function DX(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||$M(e)}function PX(e,t,r,n){const i=b2(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const o=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;li=>{const a=MM(n,e)||{},o=a.delay||n.delay||0;let{elapsed:s=0}=n;s=s-Ba(o);const u=PX(t,e,r,a),l=u[0],c=u[u.length-1],f=b2(e,l),d=b2(e,c);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(TX(a)||(h={...h,...AX(e,h)}),h.duration&&(h.duration=Ba(h.duration)),h.repeatDelay&&(h.repeatDelay=Ba(h.repeatDelay)),!f||!d||kY.current||a.type===!1)return yX(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=vX(t,e,h);if(g)return g}return Qh(h)};function Jh(e){return!!($r(e)&&e.add)}const BM=e=>/^\-?\d*\.?\d+$/.test(e);function eS(e,t){e.indexOf(t)===-1&&e.push(t)}function tS(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class rS{constructor(){this.subscriptions=[]}add(t){return eS(this.subscriptions,t),()=>tS(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let a=0;a!isNaN(parseFloat(e));class $X{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:o}=Mt;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,Ge.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ge.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=OX(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new rS);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ge.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?DM(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Eu(e,t){return new $X(e,t)}const IM=e=>t=>t.test(e),MX={test:e=>e==="auto",parse:e=>e},RM=[is,me,hi,fa,NK,FK,MX],$l=e=>RM.find(IM(e)),BX=[...RM,cr,Ua],IX=e=>BX.find(IM(e));function RX(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Eu(r))}function jX(e,t){const r=Xg(e,t);let{transitionEnd:n={},transition:i={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const o in a){const s=ZK(a[o]);RX(e,o,s)}}function FX(e,t,r){var n,i;const a=Object.keys(t).filter(s=>!e.hasValue(s)),o=a.length;if(o)for(let s=0;su.remove(f))),l.push(p)}return o&&Promise.all(l).then(()=>{o&&jX(e,o)}),l}function w2(e,t,r={}){const n=Xg(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const a=n?()=>Promise.all(jM(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return VX(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[a,o]:[o,a];return u().then(()=>l())}else return Promise.all([a(),o(r.delay)])}function VX(e,t,r=0,n=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(qX).forEach((l,c)=>{l.notify("AnimationStart",t),o.push(w2(l,t,{...a,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function qX(e,t){return e.sortNodePosition(t)}function UX(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>w2(e,a,r));n=Promise.all(i)}else if(typeof t=="string")n=w2(e,t,r);else{const i=typeof t=="function"?Xg(e,t,r.custom):t;n=Promise.all(jM(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const HX=[...jw].reverse(),WX=jw.length;function GX(e){return t=>Promise.all(t.map(({animation:r,options:n})=>UX(e,r,n)))}function KX(e){let t=GX(e);const r=XX();let n=!0;const i=(u,l)=>{const c=Xg(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function a(u){t=u(e)}function o(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let g={},p=1/0;for(let y=0;yp&&w;const P=Array.isArray(x)?x:[x];let T=P.reduce(i,{});S===!1&&(T={});const{prevResolvedValues:I={}}=m,O={...I,...T},N=j=>{D=!0,h.delete(j),m.needsAnimating[j]=!0};for(const j in O){const H=T[j],F=I[j];g.hasOwnProperty(j)||(H!==F?Kh(H)&&Kh(F)?!aM(H,F)||k?N(j):m.protectedKeys[j]=!0:H!==void 0?N(j):h.add(j):H!==void 0&&h.has(j)?N(j):m.protectedKeys[j]=!0)}m.prevProp=x,m.prevResolvedValues=T,m.isActive&&(g={...g,...T}),n&&e.blockInitialAnimation&&(D=!1),D&&!A&&d.push(...P.map(j=>({animation:j,options:{type:v,...u}})))}if(h.size){const y={};h.forEach(v=>{const m=e.getBaseTarget(v);m!==void 0&&(y[v]=m)}),d.push({animation:y})}let b=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(u,l)}),r[u].isActive=l;const d=o(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>r}}function YX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!aM(t,e):!1}function fo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XX(){return{animate:fo(!0),whileInView:fo(),whileHover:fo(),whileTap:fo(),whileDrag:fo(),whileFocus:fo(),exit:fo()}}class QX extends Qa{constructor(t){super(t),t.animationState||(t.animationState=KX(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Wg(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let JX=0;class ZX extends Qa{constructor(){super(...arguments),this.id=JX++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const eQ={animation:{Feature:QX},exit:{Feature:ZX}},Fk=(e,t)=>Math.abs(e-t);function tQ(e,t){const r=Fk(e.x,t.x),n=Fk(e.y,t.y);return Math.sqrt(r**2+n**2)}class FM{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=oy(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=tQ(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=Mt;this.history.push({...d,timestamp:h});const{onStart:g,onMove:p}=this.handlers;c||(g&&g(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=ay(c,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=oy(l.type==="pointercancel"?this.lastMoveEventInfo:ay(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!eM(t))return;this.handlers=r,this.transformPagePoint=n;const i=Yg(t),a=ay(i,this.transformPagePoint),{point:o}=a,{timestamp:s}=Mt;this.history=[{...o,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,oy(a,this.history)),this.removeListeners=Ma(Vi(window,"pointermove",this.handlePointerMove),Vi(window,"pointerup",this.handlePointerUp),Vi(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xi(this.updatePoint)}}function ay(e,t){return t?{point:t(e.point)}:e}function Nk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oy({point:e},t){return{point:e,delta:Nk(e,NM(t)),offset:Nk(e,rQ(t)),velocity:nQ(t,.1)}}function rQ(e){return e[0]}function NM(e){return e[e.length-1]}function nQ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=NM(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Ba(t)));)r--;if(!n)return{x:0,y:0};const a=qi(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Kr(e){return e.max-e.min}function S2(e,t=0,r=.01){return Math.abs(e-t)<=r}function Lk(e,t,r,n=.5){e.origin=n,e.originPoint=st(t.min,t.max,e.origin),e.scale=Kr(r)/Kr(t),(S2(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=st(r.min,r.max,e.origin)-e.originPoint,(S2(e.translate)||isNaN(e.translate))&&(e.translate=0)}function _c(e,t,r,n){Lk(e.x,t.x,r.x,n?n.originX:void 0),Lk(e.y,t.y,r.y,n?n.originY:void 0)}function zk(e,t,r){e.min=r.min+t.min,e.max=e.min+Kr(t)}function iQ(e,t,r){zk(e.x,t.x,r.x),zk(e.y,t.y,r.y)}function Vk(e,t,r){e.min=t.min-r.min,e.max=e.min+Kr(t)}function Cc(e,t,r){Vk(e.x,t.x,r.x),Vk(e.y,t.y,r.y)}function aQ(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?st(r,e,n.max):Math.min(e,r)),e}function qk(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function oQ(e,{top:t,left:r,bottom:n,right:i}){return{x:qk(e.x,r,i),y:qk(e.y,t,n)}}function Uk(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=sf(t.min,t.max-n,e.min):n>i&&(r=sf(e.min,e.max-i,t.min)),qa(0,1,r)}function lQ(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const A2=.35;function cQ(e=A2){return e===!1?e=0:e===!0&&(e=A2),{x:Hk(e,"left","right"),y:Hk(e,"top","bottom")}}function Hk(e,t,r){return{min:Wk(e,t),max:Wk(e,r)}}function Wk(e,t){return typeof e=="number"?e:e[t]||0}const Gk=()=>({translate:0,scale:1,origin:0,originPoint:0}),Hs=()=>({x:Gk(),y:Gk()}),Kk=()=>({min:0,max:0}),yt=()=>({x:Kk(),y:Kk()});function ti(e){return[e("x"),e("y")]}function LM({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function fQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dQ(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function sy(e){return e===void 0||e===1}function _2({scale:e,scaleX:t,scaleY:r}){return!sy(e)||!sy(t)||!sy(r)}function mo(e){return _2(e)||zM(e)||e.z||e.rotate||e.rotateX||e.rotateY}function zM(e){return Yk(e.x)||Yk(e.y)}function Yk(e){return e&&e!=="0%"}function Zh(e,t,r){const n=e-r,i=t*n;return r+i}function Xk(e,t,r,n,i){return i!==void 0&&(e=Zh(e,i,n)),Zh(e,r,n)+t}function C2(e,t=0,r=1,n,i){e.min=Xk(e.min,t,r,n,i),e.max=Xk(e.max,t,r,n,i)}function VM(e,{x:t,y:r}){C2(e.x,t.translate,t.scale,t.originPoint),C2(e.y,r.translate,r.scale,r.originPoint)}function pQ(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function ga(e,t){e.min=e.min+t,e.max=e.max+t}function Jk(e,t,[r,n,i]){const a=t[i]!==void 0?t[i]:.5,o=st(e.min,e.max,a);C2(e,t[r],t[n],o,t.scale)}const hQ=["x","scaleX","originX"],mQ=["y","scaleY","originY"];function Ws(e,t){Jk(e.x,t,hQ),Jk(e.y,t,mQ)}function qM(e,t){return LM(dQ(e.getBoundingClientRect(),t))}function gQ(e,t,r){const n=qM(e,r),{scroll:i}=t;return i&&(ga(n.x,i.offset.x),ga(n.y,i.offset.y)),n}const vQ=new WeakMap;class yQ{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(Yg(u,"page").point)},a=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rM(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ti(g=>{let p=this.getAxisMotionValue(g).get()||0;if(hi.test(p)){const{projection:b}=this.visualElement;if(b&&b.layout){const y=b.layout.layoutBox[g];y&&(p=Kr(y)*(parseFloat(p)/100))}}this.originPoint[g]=p}),d&&Ge.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=l;if(f&&this.currentDirection===null){this.currentDirection=bQ(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,g),this.updateAxis("y",l.point,g),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new FM(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ge.update(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!lp(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=aQ(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&qs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=oQ(n.layoutBox,t):this.constraints=!1,this.elastic=cQ(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ti(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=lQ(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!qs(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=gQ(n,i.root,this.visualElement.getTransformPagePoint());let o=sQ(i.layout.layoutBox,a);if(r){const s=r(fQ(o));this.hasMutatedConstraints=!!s,s&&(o=LM(s))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=ti(c=>{if(!lp(c,r,this.currentDirection))return;let f=u&&u[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Zw(t,n,0,r))}stopAnimation(){ti(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ti(r=>{const{drag:n}=this.getProps();if(!lp(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[r];a.set(t[r]-st(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!qs(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ti(o=>{const s=this.getAxisMotionValue(o);if(s){const u=s.get();i[o]=uQ({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ti(o=>{if(!lp(o,t,null))return;const s=this.getAxisMotionValue(o),{min:u,max:l}=this.constraints[o];s.set(st(u,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;vQ.set(this.visualElement,this);const t=this.visualElement.current,r=Vi(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();qs(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=Ri(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(ti(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=A2,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function lp(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function bQ(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class xQ extends Qa{constructor(t){super(t),this.removeGroupControls=ht,this.removeListeners=ht,this.controls=new yQ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ht}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zk=e=>(t,r)=>{e&&Ge.update(()=>e(t,r))};class wQ extends Qa{constructor(){super(...arguments),this.removePointerDownListener=ht}onPointerDown(t){this.session=new FM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Zk(t),onStart:Zk(r),onMove:n,onEnd:(a,o)=>{delete this.session,i&&Ge.update(()=>i(a,o))}}}mount(){this.removePointerDownListener=Vi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function SQ(){const e=C.useContext(nd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=C.useId();return C.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function AQ(){return _Q(C.useContext(nd))}function _Q(e){return e===null?!0:e.isPresent}const Jp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const r=eE(e,t.target.x),n=eE(e,t.target.y);return`${r}% ${n}%`}},CQ={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Ua.parse(e);if(i.length>5)return n;const a=Ua.createTransformer(e),o=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+o]/=s,i[1+o]/=u;const l=st(s,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),a(i)}};class kQ extends V.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;OK(EQ),a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Jp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,o=n.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Ge.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function UM(e){const[t,r]=SQ(),n=C.useContext(Nw);return V.createElement(kQ,{...e,layoutGroup:n,switchLayoutGroup:C.useContext(N4),isPresent:t,safeToRemove:r})}const EQ={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:CQ},HM=["TopLeft","TopRight","BottomLeft","BottomRight"],DQ=HM.length,tE=e=>typeof e=="string"?parseFloat(e):e,rE=e=>typeof e=="number"||me.test(e);function PQ(e,t,r,n,i,a){i?(e.opacity=st(0,r.opacity!==void 0?r.opacity:1,TQ(n)),e.opacityExit=st(t.opacity!==void 0?t.opacity:1,0,OQ(n))):a&&(e.opacity=st(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;ont?1:r(sf(e,t,n))}function iE(e,t){e.min=t.min,e.max=t.max}function rn(e,t){iE(e.x,t.x),iE(e.y,t.y)}function aE(e,t,r,n,i){return e-=t,e=Zh(e,1/r,n),i!==void 0&&(e=Zh(e,1/i,n)),e}function $Q(e,t=0,r=1,n=.5,i,a=e,o=e){if(hi.test(t)&&(t=parseFloat(t),t=st(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=st(a.min,a.max,n);e===a&&(s-=t),e.min=aE(e.min,t,r,s,i),e.max=aE(e.max,t,r,s,i)}function oE(e,t,[r,n,i],a,o){$Q(e,t[r],t[n],t[i],t.scale,a,o)}const MQ=["x","scaleX","originX"],BQ=["y","scaleY","originY"];function sE(e,t,r,n){oE(e.x,t,MQ,r?r.x:void 0,n?n.x:void 0),oE(e.y,t,BQ,r?r.y:void 0,n?n.y:void 0)}function uE(e){return e.translate===0&&e.scale===1}function GM(e){return uE(e.x)&&uE(e.y)}function IQ(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function KM(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function lE(e){return Kr(e.x)/Kr(e.y)}class RQ{constructor(){this.members=[]}add(t){eS(this.members,t),t.scheduleRender()}remove(t){if(tS(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function cE(e,t,r){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(n=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return(o!==1||s!==1)&&(n+=`scale(${o}, ${s})`),n||"none"}const jQ=(e,t)=>e.depth-t.depth;class FQ{constructor(){this.children=[],this.isDirty=!1}add(t){eS(this.children,t),this.isDirty=!0}remove(t){tS(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(jQ),this.isDirty=!1,this.children.forEach(t)}}function NQ(e,t){const r=performance.now(),n=({timestamp:i})=>{const a=i-r;a>=t&&(Xi(n),e(a-t))};return Ge.read(n,!0),()=>Xi(n)}function LQ(e){window.MotionDebug&&window.MotionDebug.record(e)}function zQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}function VQ(e,t,r){const n=$r(e)?e:Eu(e);return n.start(Zw("",n,t,r)),n.animation}const fE=["","X","Y","Z"],dE=1e3;let qQ=0;const go={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function YM({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=qQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{go.totalNodes=go.resolvedTargetDeltas=go.recalculatedProjection=0,this.nodes.forEach(WQ),this.nodes.forEach(QQ),this.nodes.forEach(JQ),this.nodes.forEach(GQ),LQ(go)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=NQ(d,250),Jp.hasAnimatedSinceResize&&(Jp.hasAnimatedSinceResize=!1,this.nodes.forEach(hE))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||nJ,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=c.getProps(),v=!this.targetLayout||!KM(this.targetLayout,g)||h,m=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const x={...MM(p,"layout"),onPlay:b,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||hE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Xi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZQ),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(KQ),this.sharedNodes.forEach(eJ)}scheduleUpdateProjection(){Ge.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const w=x/1e3;mE(f.x,o.x,w),mE(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Cc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),tJ(this.relativeTarget,this.relativeTargetOrigin,d,w),m&&IQ(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=yt()),rn(m,this.relativeTarget)),p&&(this.animationValues=c,PQ(c,l,this.latestValues,w,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Xi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{Jp.hasAnimatedSinceResize=!0,this.currentAnimation=VQ(0,dE,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(dE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=o;if(!(!s||!u||!l)){if(this!==o&&this.layout&&l&&XM(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||yt();const f=Kr(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const d=Kr(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+d}rn(s,u),Ws(s,c),_c(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new RQ),this.sharedNodes.get(o).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:u}=o;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(pE),this.root.sharedNodes.clear()}}}function UQ(e){e.updateLayout()}function HQ(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:a}=e.options,o=r.source!==e.layout.source;a==="size"?ti(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Kr(d);d.min=n[f].min,d.max=d.min+h}):XM(a,r.layoutBox,n)&&ti(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Kr(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=Hs();_c(s,n,r.layoutBox);const u=Hs();o?_c(u,e.applyTransform(i,!0),r.measuredBox):_c(u,n,r.layoutBox);const l=!GM(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=yt();Cc(g,r.layoutBox,d.layoutBox);const p=yt();Cc(p,n,h.layoutBox),KM(g,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function WQ(e){go.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function GQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function KQ(e){e.clearSnapshot()}function pE(e){e.clearMeasurements()}function YQ(e){e.isLayoutDirty=!1}function XQ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function QQ(e){e.resolveTargetDelta()}function JQ(e){e.calcProjection()}function ZQ(e){e.resetRotation()}function eJ(e){e.removeLeadSnapshot()}function mE(e,t,r){e.translate=st(t.translate,0,r),e.scale=st(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function gE(e,t,r,n){e.min=st(t.min,r.min,n),e.max=st(t.max,r.max,n)}function tJ(e,t,r,n){gE(e.x,t.x,r.x,n),gE(e.y,t.y,r.y,n)}function rJ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const nJ={duration:.45,ease:[.4,0,.1,1]},vE=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),yE=vE("applewebkit/")&&!vE("chrome/")?Math.round:ht;function bE(e){e.min=yE(e.min),e.max=yE(e.max)}function iJ(e){bE(e.x),bE(e.y)}function XM(e,t,r){return e==="position"||e==="preserve-aspect"&&!S2(lE(t),lE(r),.2)}const aJ=YM({attachResizeListener:(e,t)=>Ri(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uy={current:void 0},QM=YM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uy.current){const e=new aJ({});e.mount(window),e.setOptions({layoutScroll:!0}),uy.current=e}return uy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),oJ={pan:{Feature:wQ},drag:{Feature:xQ,ProjectionNode:QM,MeasureLayout:UM}},sJ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function uJ(e){const t=sJ.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function k2(e,t,r=1){const[n,i]=uJ(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const o=a.trim();return BM(o)?parseFloat(o):o}else return m2(i)?k2(i,t,r+1):i}function lJ(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const a=i.get();if(!m2(a))return;const o=k2(a,n);o&&i.set(o)});for(const i in t){const a=t[i];if(!m2(a))continue;const o=k2(a,n);o&&(t[i]=o,r||(r={}),r[i]===void 0&&(r[i]=a))}return{target:t,transitionEnd:r}}const cJ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),JM=e=>cJ.has(e),fJ=e=>Object.keys(e).some(JM),xE=e=>e===is||e===me,wE=(e,t)=>parseFloat(e.split(", ")[t]),SE=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return wE(i[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?wE(a[1],e):0}},dJ=new Set(["x","y","z"]),pJ=id.filter(e=>!dJ.has(e));function hJ(e){const t=[];return pJ.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Du={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:SE(4,13),y:SE(5,14)};Du.translateX=Du.x;Du.translateY=Du.y;const mJ=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};o==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=Du[l](n,a)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=Du[l](u,a)}),e},gJ=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(JM);let a=[],o=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=$l(c);const d=t[u];let h;if(Kh(d)){const g=d.length,p=d[0]===null?1:0;c=d[p],f=$l(c);for(let b=p;b=0?window.pageYOffset:null,l=mJ(t,e,s);return a.length&&a.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Hg&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function vJ(e,t,r,n){return fJ(t)?gJ(e,t,r,n):{target:t,transitionEnd:n}}const yJ=(e,t,r,n)=>{const i=lJ(e,t,n);return t=i.target,n=i.transitionEnd,vJ(e,t,r,n)},E2={current:null},ZM={current:!1};function bJ(){if(ZM.current=!0,!!Hg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>E2.current=e.matches;e.addListener(t),t()}else E2.current=!1}function xJ(e,t,r){const{willChange:n}=t;for(const i in t){const a=t[i],o=r[i];if($r(a))e.addValue(i,a),Jh(n)&&n.add(i);else if($r(o))e.addValue(i,Eu(a,{owner:e})),Jh(n)&&n.remove(i);else if(o!==a)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,Eu(s!==void 0?s:a,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const AE=new WeakMap,e8=Object.keys(of),wJ=e8.length,_E=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],SJ=Fw.length;class AJ{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ge.render(this.render,!1,!0);const{latestValues:s,renderState:u}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Gg(r),this.isVariantNode=F4(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&$r(d)&&(d.set(s[f],!1),Jh(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,AE.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),ZM.current||bJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:E2.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){AE.delete(this.current),this.projection&&this.projection.unmount(),Xi(this.notifyUpdate),Xi(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=ns.has(t),i=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ge.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,a){let o,s;for(let u=0;uthis.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:a,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<_E.length;n++){const i=_E[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=xJ(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Eu(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=Gw(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!$r(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new rS),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class t8 extends AJ{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},a){let o=LX(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),a){FX(this,n,o);const s=yJ(this,n,o,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function _J(e){return window.getComputedStyle(e)}class CJ extends t8{readValueFromInstance(t,r){if(ns.has(r)){const n=Jw(r);return n&&n.default||0}else{const n=_J(t),i=(V4(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return qM(t,r)}build(t,r,n,i){zw(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return Ww(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;$r(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){K4(t,r,n,i)}}class kJ extends t8{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(ns.has(r)){const n=Jw(r);return n&&n.default||0}return r=Y4.has(r)?r:Hw(r),t.getAttribute(r)}measureInstanceViewportBox(){return yt()}scrapeMotionValuesFromProps(t,r){return Q4(t,r)}build(t,r,n,i){qw(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){X4(t,r,n,i)}mount(t){this.isSVGTag=Uw(t.tagName),super.mount(t)}}const EJ=(e,t)=>Lw(e)?new kJ(t,{enableHardwareAcceleration:!1}):new CJ(t,{enableHardwareAcceleration:!0}),DJ={layout:{ProjectionNode:QM,MeasureLayout:UM}},PJ={...eQ,...xY,...oJ,...DJ},Qg=PK((e,t)=>sY(e,t,PJ,EJ));function r8(){const e=C.useRef(!1);return Rw(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function TJ(){const e=r8(),[t,r]=C.useState(0),n=C.useCallback(()=>{e.current&&r(t+1)},[t]);return[C.useCallback(()=>Ge.postRender(n),[n]),t]}class OJ extends C.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function $J({children:e,isPresent:t}){const r=C.useId(),n=C.useRef(null),i=C.useRef({width:0,height:0,top:0,left:0});return C.useInsertionEffect(()=>{const{width:a,height:o,top:s,left:u}=i.current;if(t||!n.current||!a||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${a}px !important; - height: ${o}px !important; - top: ${s}px !important; - left: ${u}px !important; - } - `),()=>{document.head.removeChild(l)}},[t]),C.createElement(OJ,{isPresent:t,childRef:n,sizeRef:i},C.cloneElement(e,{ref:n}))}const ly=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=J4(MJ),u=C.useId(),l=C.useMemo(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),a?void 0:[r]);return C.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[r]),C.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),o==="popLayout"&&(e=C.createElement($J,{isPresent:r},e)),C.createElement(nd.Provider,{value:l},e)};function MJ(){return new Map}function BJ(e){return C.useEffect(()=>()=>e(),[])}const ws=e=>e.key||"";function IJ(e,t){e.forEach(r=>{const n=ws(r);t.set(n,r)})}function RJ(e){const t=[];return C.Children.forEach(e,r=>{C.isValidElement(r)&&t.push(r)}),t}const nS=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const s=C.useContext(Nw).forceRender||TJ()[0],u=r8(),l=RJ(e);let c=l;const f=C.useRef(new Map).current,d=C.useRef(c),h=C.useRef(new Map).current,g=C.useRef(!0);if(Rw(()=>{g.current=!1,IJ(l,h),d.current=c}),BJ(()=>{g.current=!0,h.clear(),f.clear()}),g.current)return C.createElement(C.Fragment,null,c.map(v=>C.createElement(ly,{key:ws(v),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:o},v)));c=[...c];const p=d.current.map(ws),b=l.map(ws),y=p.length;for(let v=0;v{if(b.indexOf(m)!==-1)return;const x=h.get(m);if(!x)return;const w=p.indexOf(m);let S=v;if(!S){const A=()=>{h.delete(m),f.delete(m);const k=d.current.findIndex(D=>D.key===m);if(d.current.splice(k,1),!f.size){if(d.current=l,u.current===!1)return;s(),n&&n()}};S=C.createElement(ly,{key:ws(x),isPresent:!1,onExitComplete:A,custom:t,presenceAffectsLayout:a,mode:o},x),f.set(m,S)}c.splice(w,0,S)}),c=c.map(v=>{const m=v.key;return f.has(m)?v:C.createElement(ly,{key:ws(v),isPresent:!0,presenceAffectsLayout:a,mode:o},v)}),C.createElement(C.Fragment,null,f.size?c:c.map(v=>C.cloneElement(v)))};var jJ={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},n8=C.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:i,requestClose:a=!1,position:o="bottom",duration:s=5e3,containerStyle:u,motionVariants:l=jJ,toastSpacing:c="0.5rem"}=e,[f,d]=C.useState(s),h=AQ();Hh(()=>{h||n==null||n()},[h]),Hh(()=>{d(s)},[s]);const g=()=>d(null),p=()=>d(s),b=()=>{h&&i()};C.useEffect(()=>{h&&a&&i()},[h,a,i]),xK(b,f);const y=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...u}),[u,c]),v=C.useMemo(()=>yK(o),[o]);return _.jsx(Qg.div,{layout:!0,className:"chakra-toast",variants:l,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:p,custom:{position:o},style:v,children:_.jsx(oe.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:zn(r,{id:t,onClose:b})})})});n8.displayName="ToastComponent";function FJ(e,t){var r;const n=e??"bottom",a={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=a==null?void 0:a[t])!=null?r:n}var CE={path:_.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),_.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),_.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},as=ye((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:a=!1,children:o,className:s,__css:u,...l}=e,c=Te("chakra-icon",s),f=Si("Icon",e),d={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...u,...f},h={ref:t,focusable:a,className:c,__css:d},g=n??CE.viewBox;if(r&&typeof r!="string")return _.jsx(oe.svg,{as:r,...h,...l});const p=o??CE.path;return _.jsx(oe.svg,{verticalAlign:"middle",viewBox:g,...h,...l,children:p})});as.displayName="Icon";function NJ(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,a=C.Children.toArray(e.path),o=ye((s,u)=>_.jsx(as,{ref:u,viewBox:t,...i,...s,children:a.length?a:_.jsx("path",{fill:"currentColor",d:r})}));return o.displayName=n,o}function LJ(e){return _.jsx(as,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function zJ(e){return _.jsx(as,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function kE(e){return _.jsx(as,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var VJ=Q$({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),iS=ye((e,t)=>{const r=Si("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:a="0.45s",emptyColor:o="transparent",className:s,...u}=Mr(e),l=Te("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:o,borderLeftColor:o,animation:`${VJ} ${a} linear infinite`,...r};return _.jsx(oe.div,{ref:t,__css:c,className:l,...u,children:n&&_.jsx(oe.span,{srOnly:!0,children:n})})});iS.displayName="Spinner";var[qJ,aS]=or({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[UJ,oS]=or({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),i8={info:{icon:zJ,colorScheme:"blue"},warning:{icon:kE,colorScheme:"orange"},success:{icon:LJ,colorScheme:"green"},error:{icon:kE,colorScheme:"red"},loading:{icon:iS,colorScheme:"blue"}};function HJ(e){return i8[e].colorScheme}function WJ(e){return i8[e].icon}var a8=ye(function(t,r){const n=oS(),{status:i}=aS(),a={display:"inline",...n.description};return _.jsx(oe.div,{ref:r,"data-status":i,...t,className:Te("chakra-alert__desc",t.className),__css:a})});a8.displayName="AlertDescription";function sS(e){const{status:t}=aS(),r=WJ(t),n=oS(),i=t==="loading"?n.spinner:n.icon;return _.jsx(oe.span,{display:"inherit","data-status":t,...e,className:Te("chakra-alert__icon",e.className),__css:i,children:e.children||_.jsx(r,{h:"100%",w:"100%"})})}sS.displayName="AlertIcon";var o8=ye(function(t,r){const n=oS(),{status:i}=aS();return _.jsx(oe.div,{ref:r,"data-status":i,...t,className:Te("chakra-alert__title",t.className),__css:n.title})});o8.displayName="AlertTitle";var uS=ye(function(t,r){var n;const{status:i="info",addRole:a=!0,...o}=Mr(t),s=(n=t.colorScheme)!=null?n:HJ(i),u=rd("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return _.jsx(qJ,{value:{status:i},children:_.jsx(UJ,{value:u,children:_.jsx(oe.div,{"data-status":i,role:a?"alert":void 0,ref:r,...o,className:Te("chakra-alert",t.className),__css:l})})})});uS.displayName="Alert";function GJ(e){return _.jsx(as,{focusable:"false","aria-hidden":!0,...e,children:_.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var s8=ye(function(t,r){const n=Si("CloseButton",t),{children:i,isDisabled:a,__css:o,...s}=Mr(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return _.jsx(oe.button,{type:"button","aria-label":"Close",ref:r,disabled:a,__css:{...u,...n,...o},...s,children:i||_.jsx(GJ,{width:"1em",height:"1em"})})});s8.displayName="CloseButton";var KJ={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},si=YJ(KJ);function YJ(e){let t=e;const r=new Set,n=i=>{t=i(t),r.forEach(a=>a())};return{getState:()=>t,subscribe:i=>(r.add(i),()=>{n(()=>e),r.delete(i)}),removeToast:(i,a)=>{n(o=>({...o,[a]:o[a].filter(s=>s.id!=i)}))},notify:(i,a)=>{const o=XJ(i,a),{position:s,id:u}=o;return n(l=>{var c,f;const h=s.includes("top")?[o,...(c=l[s])!=null?c:[]]:[...(f=l[s])!=null?f:[],o];return{...l,[s]:h}}),u},update:(i,a)=>{i&&n(o=>{const s={...o},{position:u,index:l}=xk(s,i);return u&&l!==-1&&(s[u][l]={...s[u][l],...a,message:u8(a)}),s})},closeAll:({positions:i}={})=>{n(a=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((u,l)=>(u[l]=a[l].map(c=>({...c,requestClose:!0})),u),{...a}))},close:i=>{n(a=>{const o=I4(a,i);return o?{...a,[o]:a[o].map(s=>s.id==i?{...s,requestClose:!0}:s)}:a})},isActive:i=>!!xk(si.getState(),i).position}}var EE=0;function XJ(e,t={}){var r,n;EE+=1;const i=(r=t.id)!=null?r:EE,a=(n=t.position)!=null?n:"bottom";return{id:i,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>si.removeToast(String(i),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var QJ=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:a,onClose:o,description:s,colorScheme:u,icon:l}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return _.jsxs(uS,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[_.jsx(sS,{children:l}),_.jsxs(oe.div,{flex:"1",maxWidth:"100%",children:[i&&_.jsx(o8,{id:c==null?void 0:c.title,children:i}),s&&_.jsx(a8,{id:c==null?void 0:c.description,display:"block",children:s})]}),a&&_.jsx(s8,{size:"sm",onClick:o,position:"absolute",insetEnd:1,top:1})]})};function u8(e={}){const{render:t,toastComponent:r=QJ}=e;return i=>typeof t=="function"?t({...i,...e}):_.jsx(r,{...i,...e})}function JJ(e,t){const r=i=>{var a;return{...t,...i,position:FJ((a=i==null?void 0:i.position)!=null?a:t==null?void 0:t.position,e)}},n=i=>{const a=r(i),o=u8(a);return si.notify(o,a)};return n.update=(i,a)=>{si.update(i,r(a))},n.promise=(i,a)=>{const o=n({...a.loading,status:"loading",duration:null});i.then(s=>n.update(o,{status:"success",duration:5e3,...zn(a.success,s)})).catch(s=>n.update(o,{status:"error",duration:5e3,...zn(a.error,s)}))},n.closeAll=si.closeAll,n.close=si.close,n.isActive=si.isActive,n}var[ZJ,eZ]=or({name:"ToastOptionsContext",strict:!1}),tZ=e=>{const t=C.useSyncExternalStore(si.subscribe,si.getState,si.getState),{motionVariants:r,component:n=n8,portalProps:i}=e,o=Object.keys(t).map(s=>{const u=t[s];return _.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:bK(s),children:_.jsx(nS,{initial:!1,children:u.map(l=>_.jsx(n,{motionVariants:r,...l},l.id))})},s)});return _.jsx(Qf,{...i,children:o})};function rZ(e){const{theme:t}=n4(),r=eZ();return C.useMemo(()=>JJ(t.direction,{...r,...e}),[e,t.direction,r])}var nZ=e=>function({children:r,theme:n=e,toastOptions:i,...a}){return _.jsxs(gK,{theme:n,...a,children:[_.jsx(ZJ,{value:i==null?void 0:i.defaultOptions,children:r}),_.jsx(tZ,{...i})]})},iZ=nZ(k4),aZ=Object.defineProperty,oZ=(e,t,r)=>t in e?aZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ft=(e,t,r)=>(oZ(e,typeof t!="symbol"?t+"":t,r),r);function DE(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var sZ=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function PE(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function TE(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var D2=typeof window<"u"?C.useLayoutEffect:C.useEffect,em=e=>e,uZ=class{constructor(){ft(this,"descendants",new Map),ft(this,"register",e=>{if(e!=null)return sZ(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),ft(this,"unregister",e=>{this.descendants.delete(e);const t=DE(Array.from(this.descendants.keys()));this.assignIndex(t)}),ft(this,"destroy",()=>{this.descendants.clear()}),ft(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),ft(this,"count",()=>this.descendants.size),ft(this,"enabledCount",()=>this.enabledValues().length),ft(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),ft(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),ft(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),ft(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),ft(this,"first",()=>this.item(0)),ft(this,"firstEnabled",()=>this.enabledItem(0)),ft(this,"last",()=>this.item(this.descendants.size-1)),ft(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),ft(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),ft(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),ft(this,"next",(e,t=!0)=>{const r=PE(e,this.count(),t);return this.item(r)}),ft(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=PE(n,this.enabledCount(),t);return this.enabledItem(i)}),ft(this,"prev",(e,t=!0)=>{const r=TE(e,this.count()-1,t);return this.item(r)}),ft(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=TE(n,this.enabledCount()-1,t);return this.enabledItem(i)}),ft(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=DE(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(n)})}};function lZ(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Nr(...e){return t=>{e.forEach(r=>{lZ(r,t)})}}function cZ(...e){return C.useMemo(()=>Nr(...e),e)}function fZ(){const e=C.useRef(new uZ);return D2(()=>()=>e.current.destroy()),e.current}var[dZ,l8]=or({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function pZ(e){const t=l8(),[r,n]=C.useState(-1),i=C.useRef(null);D2(()=>()=>{i.current&&t.unregister(i.current)},[]),D2(()=>{if(!i.current)return;const o=Number(i.current.dataset.index);r!=o&&!Number.isNaN(o)&&n(o)});const a=em(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(i.current),register:Nr(a,i)}}function c8(){return[em(dZ),()=>em(l8()),()=>fZ(),i=>pZ(i)]}var[hZ,Jg]=or({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[mZ,lS]=or({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[gZ,H5e,vZ,yZ]=c8(),f8=ye(function(t,r){const{getButtonProps:n}=lS(),i=n(t,r),o={display:"flex",alignItems:"center",width:"100%",outline:0,...Jg().button};return _.jsx(oe.button,{...i,className:Te("chakra-accordion__button",t.className),__css:o})});f8.displayName="AccordionButton";function d8(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:i=(d,h)=>d!==h}=e,a=Fo(n),o=Fo(i),[s,u]=C.useState(r),l=t!==void 0,c=l?t:s,f=Fo(d=>{const g=typeof d=="function"?d(c):d;o(c,g)&&(l||u(g),a(g))},[l,a,c,o]);return[c,f]}function bZ(e){const{onChange:t,defaultIndex:r,index:n,allowMultiple:i,allowToggle:a,...o}=e;SZ(e),AZ(e);const s=vZ(),[u,l]=C.useState(-1);C.useEffect(()=>()=>{l(-1)},[]);const[c,f]=d8({value:n,defaultValue(){return i?r??[]:r??-1},onChange:t});return{index:c,setIndex:f,htmlProps:o,getAccordionItemProps:h=>{let g=!1;return h!==null&&(g=Array.isArray(c)?c.includes(h):c===h),{isOpen:g,onChange:b=>{if(h!==null)if(i&&Array.isArray(c)){const y=b?c.concat(h):c.filter(v=>v!==h);f(y)}else b?f(h):a&&f(-1)}}},focusedIndex:u,setFocusedIndex:l,descendants:s}}var[xZ,cS]=or({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function wZ(e){const{isDisabled:t,isFocusable:r,id:n,...i}=e,{getAccordionItemProps:a,setFocusedIndex:o}=cS(),s=C.useRef(null),u=C.useId(),l=n??u,c=`accordion-button-${l}`,f=`accordion-panel-${l}`;_Z(e);const{register:d,index:h,descendants:g}=yZ({disabled:t&&!r}),{isOpen:p,onChange:b}=a(h===-1?null:h);CZ({isOpen:p,isDisabled:t});const y=()=>{b==null||b(!0)},v=()=>{b==null||b(!1)},m=C.useCallback(()=>{b==null||b(!p),o(h)},[h,o,p,b]),x=C.useCallback(k=>{const P={ArrowDown:()=>{const T=g.nextEnabled(h);T==null||T.node.focus()},ArrowUp:()=>{const T=g.prevEnabled(h);T==null||T.node.focus()},Home:()=>{const T=g.firstEnabled();T==null||T.node.focus()},End:()=>{const T=g.lastEnabled();T==null||T.node.focus()}}[k.key];P&&(k.preventDefault(),P(k))},[g,h]),w=C.useCallback(()=>{o(h)},[o,h]),S=C.useCallback(function(D={},P=null){return{...D,type:"button",ref:Nr(d,s,P),id:c,disabled:!!t,"aria-expanded":!!p,"aria-controls":f,onClick:mt(D.onClick,m),onFocus:mt(D.onFocus,w),onKeyDown:mt(D.onKeyDown,x)}},[c,t,p,m,w,x,f,d]),A=C.useCallback(function(D={},P=null){return{...D,ref:P,role:"region",id:f,"aria-labelledby":c,hidden:!p}},[c,p,f]);return{isOpen:p,isDisabled:t,isFocusable:r,onOpen:y,onClose:v,getButtonProps:S,getPanelProps:A,htmlProps:i}}function SZ(e){const t=e.index||e.defaultIndex,r=t!=null&&!Array.isArray(t)&&e.allowMultiple;ed({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function AZ(e){ed({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function _Z(e){ed({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. - `})}function CZ(e){ed({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function p8(e){const{isOpen:t,isDisabled:r}=lS(),{reduceMotion:n}=cS(),i=Te("chakra-accordion__icon",e.className),a=Jg(),o={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...a.icon};return _.jsx(as,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:o,...e,children:_.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}p8.displayName="AccordionIcon";var h8=ye(function(t,r){const{children:n,className:i}=t,{htmlProps:a,...o}=wZ(t),u={...Jg().container,overflowAnchor:"none"},l=C.useMemo(()=>o,[o]);return _.jsx(mZ,{value:l,children:_.jsx(oe.div,{ref:r,...a,className:Te("chakra-accordion__item",i),__css:u,children:typeof n=="function"?n({isExpanded:!!o.isOpen,isDisabled:!!o.isDisabled}):n})})});h8.displayName="AccordionItem";var cp={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},OE={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},kZ=e=>e!=null&&parseInt(e.toString(),10)>0,$E={exit:{height:{duration:.2,ease:cp.ease},opacity:{duration:.3,ease:cp.ease}},enter:{height:{duration:.3,ease:cp.ease},opacity:{duration:.4,ease:cp.ease}}},EZ={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var a;return{...e&&{opacity:kZ(t)?1:0},height:t,transitionEnd:n==null?void 0:n.exit,transition:(a=r==null?void 0:r.exit)!=null?a:OE.exit($E.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:n==null?void 0:n.enter,transition:(a=r==null?void 0:r.enter)!=null?a:OE.enter($E.enter,i)}}},m8=C.forwardRef((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:i=!0,startingHeight:a=0,endingHeight:o="auto",style:s,className:u,transition:l,transitionEnd:c,...f}=e,[d,h]=C.useState(!1);C.useEffect(()=>{const v=setTimeout(()=>{h(!0)});return()=>clearTimeout(v)},[]),ed({condition:Number(a)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const g=parseFloat(a.toString())>0,p={startingHeight:a,endingHeight:o,animateOpacity:i,transition:d?l:{enter:{duration:0}},transitionEnd:{enter:c==null?void 0:c.enter,exit:n?c==null?void 0:c.exit:{...c==null?void 0:c.exit,display:g?"block":"none"}}},b=n?r:!0,y=r||n?"enter":"exit";return _.jsx(nS,{initial:!1,custom:p,children:b&&_.jsx(Qg.div,{ref:t,...f,className:Te("chakra-collapse",u),style:{overflow:"hidden",display:"block",...s},custom:p,variants:EZ,initial:n?"exit":!1,animate:y,exit:"exit"})})});m8.displayName="Collapse";var g8=ye(function(t,r){const{className:n,motionProps:i,...a}=t,{reduceMotion:o}=cS(),{getPanelProps:s,isOpen:u}=lS(),l=s(a,r),c=Te("chakra-accordion__panel",n),f=Jg();o||delete l.hidden;const d=_.jsx(oe.div,{...l,__css:f.panel,className:c});return o?d:_.jsx(m8,{in:u,...i,children:d})});g8.displayName="AccordionPanel";var fS=ye(function({children:t,reduceMotion:r,...n},i){const a=rd("Accordion",n),o=Mr(n),{htmlProps:s,descendants:u,...l}=bZ(o),c=C.useMemo(()=>({...l,reduceMotion:!!r}),[l,r]);return _.jsx(gZ,{value:u,children:_.jsx(xZ,{value:c,children:_.jsx(hZ,{value:a,children:_.jsx(oe.div,{ref:i,...s,className:Te("chakra-accordion",n.className),__css:a.root,children:t})})})})});fS.displayName="Accordion";var P2=ye(function(t,r){const{htmlWidth:n,htmlHeight:i,alt:a,...o}=t;return _.jsx("img",{width:n,height:i,ref:r,alt:a,...o})});P2.displayName="NativeImage";function DZ(e){const{loading:t,src:r,srcSet:n,onLoad:i,onError:a,crossOrigin:o,sizes:s,ignoreFallback:u}=e,[l,c]=C.useState("pending");C.useEffect(()=>{c(r?"loading":"pending")},[r]);const f=C.useRef(),d=C.useCallback(()=>{if(!r)return;h();const g=new Image;g.src=r,o&&(g.crossOrigin=o),n&&(g.srcset=n),s&&(g.sizes=s),t&&(g.loading=t),g.onload=p=>{h(),c("loaded"),i==null||i(p)},g.onerror=p=>{h(),c("failed"),a==null||a(p)},f.current=g},[r,o,n,s,i,a,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return _u(()=>{if(!u)return l==="loading"&&d(),()=>{h()}},[l,d,u]),u?"loaded":l}var PZ=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function TZ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Zg=ye(function(t,r){const{fallbackSrc:n,fallback:i,src:a,srcSet:o,align:s,fit:u,loading:l,ignoreFallback:c,crossOrigin:f,fallbackStrategy:d="beforeLoadOrError",referrerPolicy:h,...g}=t,p=n!==void 0||i!==void 0,b=l!=null||c||!p,y=DZ({...t,crossOrigin:f,ignoreFallback:b}),v=PZ(y,d),m={ref:r,objectFit:u,objectPosition:s,...b?g:TZ(g,["onError","onLoad"])};return v?i||_.jsx(oe.img,{as:P2,className:"chakra-image__placeholder",src:n,...m}):_.jsx(oe.img,{as:P2,src:a,srcSet:o,crossOrigin:f,loading:l,referrerPolicy:h,className:"chakra-image",...m})});Zg.displayName="Image";function v8(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}var[W5e,OZ]=or({strict:!1,name:"ButtonGroupContext"});function $Z(e){const[t,r]=C.useState(!e);return{ref:C.useCallback(a=>{a&&r(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function T2(e){const{children:t,className:r,...n}=e,i=C.isValidElement(t)?C.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=Te("chakra-button__icon",r);return _.jsx(oe.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:a,children:i})}T2.displayName="ButtonIcon";function O2(e){const{label:t,placement:r,spacing:n="0.5rem",children:i=_.jsx(iS,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:o,...s}=e,u=Te("chakra-button__spinner",a),l=r==="start"?"marginEnd":"marginStart",c=C.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[l]:t?n:0,fontSize:"1em",lineHeight:"normal",...o}),[o,t,l,n]);return _.jsx(oe.div,{className:u,...s,__css:c,children:i})}O2.displayName="ButtonSpinner";var dS=ye((e,t)=>{const r=OZ(),n=Si("Button",{...r,...e}),{isDisabled:i=r==null?void 0:r.isDisabled,isLoading:a,isActive:o,children:s,leftIcon:u,rightIcon:l,loadingText:c,iconSpacing:f="0.5rem",type:d,spinner:h,spinnerPlacement:g="start",className:p,as:b,...y}=Mr(e),v=C.useMemo(()=>{const S={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:S}}},[n,r]),{ref:m,type:x}=$Z(b),w={rightIcon:l,leftIcon:u,iconSpacing:f,children:s};return _.jsxs(oe.button,{ref:cZ(t,m),as:b,type:d??x,"data-active":i2(o),"data-loading":i2(a),__css:v,className:Te("chakra-button",p),...y,disabled:i||a,children:[a&&g==="start"&&_.jsx(O2,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:f,children:h}),a?c||_.jsx(oe.span,{opacity:0,children:_.jsx(ME,{...w})}):_.jsx(ME,{...w}),a&&g==="end"&&_.jsx(O2,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:f,children:h})]})});dS.displayName="Button";function ME(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return _.jsxs(_.Fragment,{children:[t&&_.jsx(T2,{marginEnd:i,children:t}),n,r&&_.jsx(T2,{marginStart:i,children:r})]})}var pS=ye((e,t)=>{const{icon:r,children:n,isRound:i,"aria-label":a,...o}=e,s=r||n,u=C.isValidElement(s)?C.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return _.jsx(dS,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":a,...o,children:u})});pS.displayName="IconButton";function su(e,t,r,n){const i=Fo(r);return C.useEffect(()=>{const a=typeof e=="function"?e():e??document;if(!(!r||!a))return a.addEventListener(t,i,n),()=>{a.removeEventListener(t,i,n)}},[t,e,n,i,r]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,i,n)}}function MZ(e){return"current"in e}var y8=()=>typeof window<"u";function BZ(){var e;const t=navigator.userAgentData;return(e=t==null?void 0:t.platform)!=null?e:navigator.platform}var IZ=e=>y8()&&e.test(navigator.vendor),RZ=e=>y8()&&e.test(BZ()),jZ=()=>RZ(/mac|iphone|ipad|ipod/i),FZ=()=>jZ()&&IZ(/apple/i);function NZ(e){const{ref:t,elements:r,enabled:n}=e,i=()=>{var a,o;return(o=(a=t.current)==null?void 0:a.ownerDocument)!=null?o:document};su(i,"pointerdown",a=>{if(!FZ()||!n)return;const o=a.target,u=(r??[t]).some(l=>{const c=MZ(l)?l.current:l;return(c==null?void 0:c.contains(o))||c===o});i().activeElement!==o&&u&&(a.preventDefault(),o.focus())})}var b8={exports:{}},LZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zZ=LZ,VZ=zZ;function x8(){}function w8(){}w8.resetWarningCache=x8;var qZ=function(){function e(n,i,a,o,s,u){if(u!==VZ){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:w8,resetWarningCache:x8};return r.PropTypes=r,r};b8.exports=qZ();var UZ=b8.exports;const we=Pe(UZ);function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function HZ(e,t){if(Pu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WZ(e){var t=HZ(e,"string");return Pu(t)==="symbol"?t:String(t)}function GZ(e,t,r){return t=WZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S8(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function hS(e){var t;if(!S8(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function KZ(e){var t,r;return(r=(t=A8(e))==null?void 0:t.defaultView)!=null?r:window}function A8(e){return S8(e)?e.ownerDocument:document}function YZ(e){return A8(e).activeElement}function XZ(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+i+n)}function QZ(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function _8(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:hS(e)&&XZ(e)?e:_8(QZ(e))}var C8=e=>e.hasAttribute("tabindex"),JZ=e=>C8(e)&&e.tabIndex===-1;function ZZ(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function k8(e){return e.parentElement&&k8(e.parentElement)?!0:e.hidden}function eee(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function E8(e){if(!hS(e)||k8(e)||ZZ(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():eee(e)?!0:C8(e)}function tee(e){return e?hS(e)&&E8(e)&&!JZ(e):!1}var ree=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],nee=ree.join(),iee=e=>e.offsetWidth>0&&e.offsetHeight>0;function aee(e){const t=Array.from(e.querySelectorAll(nee));return t.unshift(e),t.filter(r=>E8(r)&&iee(r))}var D8=ye(function(t,r){const{templateAreas:n,gap:i,rowGap:a,columnGap:o,column:s,row:u,autoFlow:l,autoRows:c,templateRows:f,autoColumns:d,templateColumns:h,...g}=t,p={display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:a,gridColumnGap:o,gridAutoColumns:d,gridColumn:s,gridRow:u,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:f,gridTemplateColumns:h};return _.jsx(oe.div,{ref:r,__css:p,...g})});D8.displayName="Grid";function mS(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):gn(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var vn=ye(function(t,r){const{columns:n,spacingX:i,spacingY:a,spacing:o,minChildWidth:s,...u}=t,l=Jf(),c=s?see(s,l):uee(n);return _.jsx(D8,{ref:r,gap:o,columnGap:i,rowGap:a,templateColumns:c,...u})});vn.displayName="SimpleGrid";function oee(e){return typeof e=="number"?`${e}px`:e}function see(e,t){return mS(e,r=>{const n=a4("sizes",r,oee(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function uee(e){return mS(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var $i=ye(function(t,r){const n=Si("Text",t),{className:i,align:a,decoration:o,casing:s,...u}=Mr(t),l=tK({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return _.jsx(oe.p,{ref:r,className:Te("chakra-text",t.className),...l,...u,__css:n})});$i.displayName="Text";var P8=e=>_.jsx(oe.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});P8.displayName="StackItem";function lee(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":mS(r,i=>n[i])}}var Ia=ye((e,t)=>{const{isInline:r,direction:n,align:i,justify:a,spacing:o="0.5rem",wrap:s,children:u,divider:l,className:c,shouldWrapChildren:f,...d}=e,h=r?"row":n??"column",g=C.useMemo(()=>lee({spacing:o,direction:h}),[o,h]),p=!!l,b=!f&&!p,y=C.useMemo(()=>{const m=v8(u);return b?m:m.map((x,w)=>{const S=typeof x.key<"u"?x.key:w,A=w+1===m.length,D=f?_.jsx(P8,{children:x},S):x;if(!p)return D;const P=C.cloneElement(l,{__css:g}),T=A?null:P;return _.jsxs(C.Fragment,{children:[D,T]},S)})},[l,g,p,b,f,u]),v=Te("chakra-stack",c);return _.jsx(oe.div,{ref:t,display:"flex",alignItems:i,justifyContent:a,flexDirection:h,flexWrap:s,gap:p?void 0:o,className:v,...d,children:y})});Ia.displayName="Stack";var e0=ye((e,t)=>_.jsx(Ia,{align:"center",...e,direction:"row",ref:t}));e0.displayName="HStack";var No=ye(function(t,r){const n=Si("Heading",t),{className:i,...a}=Mr(t);return _.jsx(oe.h2,{ref:r,className:Te("chakra-heading",t.className),...a,__css:n})});No.displayName="Heading";var yn=oe("div");yn.displayName="Box";var T8=ye(function(t,r){const{size:n,centerContent:i=!0,...a}=t,o=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return _.jsx(yn,{ref:r,boxSize:n,__css:{...o,flexShrink:0,flexGrow:0},...a})});T8.displayName="Square";var cee=ye(function(t,r){const{size:n,...i}=t;return _.jsx(T8,{size:n,ref:r,borderRadius:"9999px",...i})});cee.displayName="Circle";var fee=ye(function(t,r){const{isExternal:n,target:i,rel:a,className:o,...s}=t;return _.jsx(oe.a,{...s,ref:r,className:Te("chakra-linkbox__overlay",o),rel:n?"noopener noreferrer":a,target:n?"_blank":i,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),dee=ye(function(t,r){const{className:n,...i}=t;return _.jsx(oe.div,{ref:r,position:"relative",...i,className:Te("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})}),t0=ye(function(t,r){const n=Si("Badge",t),{className:i,...a}=Mr(t);return _.jsx(oe.span,{ref:r,className:Te("chakra-badge",t.className),...a,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});t0.displayName="Badge";var $2=ye(function(t,r){const n=Si("Code",t),{className:i,...a}=Mr(t);return _.jsx(oe.code,{ref:r,className:Te("chakra-code",t.className),...a,__css:{display:"inline-block",...n}})});$2.displayName="Code";var O8=ye(function(t,r){const{className:n,centerContent:i,...a}=Mr(t),o=Si("Container",t);return _.jsx(oe.div,{ref:r,className:Te("chakra-container",n),...a,__css:{...o,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});O8.displayName="Container";var gS=ye(function(t,r){const{direction:n,align:i,justify:a,wrap:o,basis:s,grow:u,shrink:l,...c}=t,f={display:"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:o,flexBasis:s,flexGrow:u,flexShrink:l};return _.jsx(oe.div,{ref:r,__css:f,...c})});gS.displayName="Flex";function pee(){const e=C.useRef(new Map),t=e.current,r=C.useCallback((i,a,o,s)=>{e.current.set(o,{type:a,el:i,options:s}),i.addEventListener(a,o,s)},[]),n=C.useCallback((i,a,o,s)=>{i.removeEventListener(a,o,s),e.current.delete(o)},[]);return C.useEffect(()=>()=>{t.forEach((i,a)=>{n(i.el,i.type,a,i.options)})},[n,t]),{add:r,remove:n}}function cy(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function hee(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:i=!0,clickOnSpace:a=!0,onMouseDown:o,onMouseUp:s,onClick:u,onKeyDown:l,onKeyUp:c,tabIndex:f,onMouseOver:d,onMouseLeave:h,...g}=e,[p,b]=C.useState(!0),[y,v]=C.useState(!1),m=pee(),x=F=>{F&&F.tagName!=="BUTTON"&&b(!1)},w=p?f:f||0,S=r&&!n,A=C.useCallback(F=>{if(r){F.stopPropagation(),F.preventDefault();return}F.currentTarget.focus(),u==null||u(F)},[r,u]),k=C.useCallback(F=>{y&&cy(F)&&(F.preventDefault(),F.stopPropagation(),v(!1),m.remove(document,"keyup",k,!1))},[y,m]),D=C.useCallback(F=>{if(l==null||l(F),r||F.defaultPrevented||F.metaKey||!cy(F.nativeEvent)||p)return;const R=i&&F.key==="Enter";a&&F.key===" "&&(F.preventDefault(),v(!0)),R&&(F.preventDefault(),F.currentTarget.click()),m.add(document,"keyup",k,!1)},[r,p,l,i,a,m,k]),P=C.useCallback(F=>{if(c==null||c(F),r||F.defaultPrevented||F.metaKey||!cy(F.nativeEvent)||p)return;a&&F.key===" "&&(F.preventDefault(),v(!1),F.currentTarget.click())},[a,p,r,c]),T=C.useCallback(F=>{F.button===0&&(v(!1),m.remove(document,"mouseup",T,!1))},[m]),I=C.useCallback(F=>{if(F.button!==0)return;if(r){F.stopPropagation(),F.preventDefault();return}p||v(!0),F.currentTarget.focus({preventScroll:!0}),m.add(document,"mouseup",T,!1),o==null||o(F)},[r,p,o,m,T]),O=C.useCallback(F=>{F.button===0&&(p||v(!1),s==null||s(F))},[s,p]),N=C.useCallback(F=>{if(r){F.preventDefault();return}d==null||d(F)},[r,d]),j=C.useCallback(F=>{y&&(F.preventDefault(),v(!1)),h==null||h(F)},[y,h]),H=Nr(t,x);return p?{...g,ref:H,type:"button","aria-disabled":S?void 0:r,disabled:S,onClick:A,onMouseDown:o,onMouseUp:s,onKeyUp:c,onKeyDown:l,onMouseOver:d,onMouseLeave:h}:{...g,ref:H,role:"button","data-active":i2(y),"aria-disabled":r?"true":void 0,tabIndex:S?void 0:w,onClick:A,onMouseDown:I,onMouseUp:O,onKeyUp:P,onKeyDown:D,onMouseOver:N,onMouseLeave:j}}function mee(e){const t=e.current;if(!t)return!1;const r=YZ(t);return!r||t.contains(r)?!1:!!tee(r)}function gee(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,a=r&&!n;Hh(()=>{if(!a||mee(e))return;const o=(i==null?void 0:i.current)||e.current;let s;if(o)return s=requestAnimationFrame(()=>{o.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[a,e,i])}var vee={preventScroll:!0,shouldFocus:!1};function yee(e,t=vee){const{focusRef:r,preventScroll:n,shouldFocus:i,visible:a}=t,o=bee(e)?e.current:e,s=i&&a,u=C.useRef(s),l=C.useRef(a);_u(()=>{!l.current&&a&&(u.current=s),l.current=a},[a,s]);const c=C.useCallback(()=>{if(!(!a||!o||!u.current)&&(u.current=!1,!o.contains(document.activeElement)))if(r!=null&&r.current)requestAnimationFrame(()=>{var f;(f=r.current)==null||f.focus({preventScroll:n})});else{const f=aee(o);f.length>0&&requestAnimationFrame(()=>{f[0].focus({preventScroll:n})})}},[a,n,o,r]);Hh(()=>{c()},[c]),su(o,"transitionend",c)}function bee(e){return"current"in e}var hs=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),wt={arrowShadowColor:hs("--popper-arrow-shadow-color"),arrowSize:hs("--popper-arrow-size","8px"),arrowSizeHalf:hs("--popper-arrow-size-half"),arrowBg:hs("--popper-arrow-bg"),transformOrigin:hs("--popper-transform-origin"),arrowOffset:hs("--popper-arrow-offset")};function xee(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var wee={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},See=e=>wee[e],BE={scroll:!0,resize:!0};function Aee(e){let t;return typeof e=="object"?t={enabled:!0,options:{...BE,...e}}:t={enabled:e,options:BE},t}var _ee={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},Cee={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{IE(e)},effect:({state:e})=>()=>{IE(e)}},IE=e=>{e.elements.popper.style.setProperty(wt.transformOrigin.var,See(e.placement))},kee={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Eee(e)}},Eee=e=>{var t;if(!e.placement)return;const r=Dee(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:wt.arrowSize.varRef,height:wt.arrowSize.varRef,zIndex:-1});const n={[wt.arrowSizeHalf.var]:`calc(${wt.arrowSize.varRef} / 2 - 1px)`,[wt.arrowOffset.var]:`calc(${wt.arrowSizeHalf.varRef} * -1)`};for(const i in n)e.elements.arrow.style.setProperty(i,n[i])}},Dee=e=>{if(e.startsWith("top"))return{property:"bottom",value:wt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:wt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:wt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:wt.arrowOffset.varRef}},Pee={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{RE(e)},effect:({state:e})=>()=>{RE(e)}},RE=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=xee(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:wt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},Tee={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Oee={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function $ee(e,t="ltr"){var r,n;const i=((r=Tee[e])==null?void 0:r[t])||e;return t==="ltr"?i:(n=Oee[e])!=null?n:i}var Pr="top",An="bottom",_n="right",Tr="left",vS="auto",ud=[Pr,An,_n,Tr],Tu="start",uf="end",Mee="clippingParents",$8="viewport",Bl="popper",Bee="reference",jE=ud.reduce(function(e,t){return e.concat([t+"-"+Tu,t+"-"+uf])},[]),M8=[].concat(ud,[vS]).reduce(function(e,t){return e.concat([t,t+"-"+Tu,t+"-"+uf])},[]),Iee="beforeRead",Ree="read",jee="afterRead",Fee="beforeMain",Nee="main",Lee="afterMain",zee="beforeWrite",Vee="write",qee="afterWrite",Uee=[Iee,Ree,jee,Fee,Nee,Lee,zee,Vee,qee];function bi(e){return e?(e.nodeName||"").toLowerCase():null}function Yr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yo(e){var t=Yr(e).Element;return e instanceof t||e instanceof Element}function bn(e){var t=Yr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yS(e){if(typeof ShadowRoot>"u")return!1;var t=Yr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Hee(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!bn(a)||!bi(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function Wee(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(u,l){return u[l]="",u},{});!bn(i)||!bi(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const Gee={name:"applyStyles",enabled:!0,phase:"write",fn:Hee,effect:Wee,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var Lo=Math.max,tm=Math.min,Ou=Math.round;function M2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B8(){return!/^((?!chrome|android).)*safari/i.test(M2())}function $u(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&bn(e)&&(i=e.offsetWidth>0&&Ou(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ou(n.height)/e.offsetHeight||1);var o=Yo(e)?Yr(e):window,s=o.visualViewport,u=!B8()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/i,c=(n.top+(u&&s?s.offsetTop:0))/a,f=n.width/i,d=n.height/a;return{width:f,height:d,top:c,right:l+f,bottom:c+d,left:l,x:l,y:c}}function bS(e){var t=$u(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function I8(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&yS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qi(e){return Yr(e).getComputedStyle(e)}function Kee(e){return["table","td","th"].indexOf(bi(e))>=0}function Ja(e){return((Yo(e)?e.ownerDocument:e.document)||window.document).documentElement}function r0(e){return bi(e)==="html"?e:e.assignedSlot||e.parentNode||(yS(e)?e.host:null)||Ja(e)}function FE(e){return!bn(e)||Qi(e).position==="fixed"?null:e.offsetParent}function Yee(e){var t=/firefox/i.test(M2()),r=/Trident/i.test(M2());if(r&&bn(e)){var n=Qi(e);if(n.position==="fixed")return null}var i=r0(e);for(yS(i)&&(i=i.host);bn(i)&&["html","body"].indexOf(bi(i))<0;){var a=Qi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function ld(e){for(var t=Yr(e),r=FE(e);r&&Kee(r)&&Qi(r).position==="static";)r=FE(r);return r&&(bi(r)==="html"||bi(r)==="body"&&Qi(r).position==="static")?t:r||Yee(e)||t}function xS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kc(e,t,r){return Lo(e,tm(t,r))}function Xee(e,t,r){var n=kc(e,t,r);return n>r?r:n}function R8(){return{top:0,right:0,bottom:0,left:0}}function j8(e){return Object.assign({},R8(),e)}function F8(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Qee=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,j8(typeof t!="number"?t:F8(t,ud))};function Jee(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=mi(r.placement),u=xS(s),l=[Tr,_n].indexOf(s)>=0,c=l?"height":"width";if(!(!a||!o)){var f=Qee(i.padding,r),d=bS(a),h=u==="y"?Pr:Tr,g=u==="y"?An:_n,p=r.rects.reference[c]+r.rects.reference[u]-o[u]-r.rects.popper[c],b=o[u]-r.rects.reference[u],y=ld(a),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,m=p/2-b/2,x=f[h],w=v-d[c]-f[g],S=v/2-d[c]/2+m,A=kc(x,S,w),k=u;r.modifiersData[n]=(t={},t[k]=A,t.centerOffset=A-S,t)}}function Zee(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||I8(t.elements.popper,i)&&(t.elements.arrow=i))}const ete={name:"arrow",enabled:!0,phase:"main",fn:Jee,effect:Zee,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mu(e){return e.split("-")[1]}var tte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rte(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Ou(r*i)/i||0,y:Ou(n*i)/i||0}}function NE(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,g=o.y,p=g===void 0?0:g,b=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=b.x,p=b.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),m=Tr,x=Pr,w=window;if(l){var S=ld(r),A="clientHeight",k="clientWidth";if(S===Yr(r)&&(S=Ja(r),Qi(S).position!=="static"&&s==="absolute"&&(A="scrollHeight",k="scrollWidth")),S=S,i===Pr||(i===Tr||i===_n)&&a===uf){x=An;var D=f&&S===w&&w.visualViewport?w.visualViewport.height:S[A];p-=D-n.height,p*=u?1:-1}if(i===Tr||(i===Pr||i===An)&&a===uf){m=_n;var P=f&&S===w&&w.visualViewport?w.visualViewport.width:S[k];h-=P-n.width,h*=u?1:-1}}var T=Object.assign({position:s},l&&tte),I=c===!0?rte({x:h,y:p},Yr(r)):{x:h,y:p};if(h=I.x,p=I.y,u){var O;return Object.assign({},T,(O={},O[x]=v?"0":"",O[m]=y?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",O))}return Object.assign({},T,(t={},t[x]=v?p+"px":"",t[m]=y?h+"px":"",t.transform="",t))}function nte(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:mi(t.placement),variation:Mu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,NE(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,NE(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ite={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nte,data:{}};var fp={passive:!0};function ate(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,u=Yr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",r.update,fp)}),s&&u.addEventListener("resize",r.update,fp),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",r.update,fp)}),s&&u.removeEventListener("resize",r.update,fp)}}const ote={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ate,data:{}};var ste={left:"right",right:"left",bottom:"top",top:"bottom"};function Zp(e){return e.replace(/left|right|bottom|top/g,function(t){return ste[t]})}var ute={start:"end",end:"start"};function LE(e){return e.replace(/start|end/g,function(t){return ute[t]})}function wS(e){var t=Yr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function SS(e){return $u(Ja(e)).left+wS(e).scrollLeft}function lte(e,t){var r=Yr(e),n=Ja(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var l=B8();(l||!l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s+SS(e),y:u}}function cte(e){var t,r=Ja(e),n=wS(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Lo(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Lo(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+SS(e),u=-n.scrollTop;return Qi(i||r).direction==="rtl"&&(s+=Lo(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function AS(e){var t=Qi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function N8(e){return["html","body","#document"].indexOf(bi(e))>=0?e.ownerDocument.body:bn(e)&&AS(e)?e:N8(r0(e))}function Ec(e,t){var r;t===void 0&&(t=[]);var n=N8(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Yr(n),o=i?[a].concat(a.visualViewport||[],AS(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Ec(r0(o)))}function B2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fte(e,t){var r=$u(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function zE(e,t,r){return t===$8?B2(lte(e,r)):Yo(t)?fte(t,r):B2(cte(Ja(e)))}function dte(e){var t=Ec(r0(e)),r=["absolute","fixed"].indexOf(Qi(e).position)>=0,n=r&&bn(e)?ld(e):e;return Yo(n)?t.filter(function(i){return Yo(i)&&I8(i,n)&&bi(i)!=="body"}):[]}function pte(e,t,r,n){var i=t==="clippingParents"?dte(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(u,l){var c=zE(e,l,n);return u.top=Lo(c.top,u.top),u.right=tm(c.right,u.right),u.bottom=tm(c.bottom,u.bottom),u.left=Lo(c.left,u.left),u},zE(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function L8(e){var t=e.reference,r=e.element,n=e.placement,i=n?mi(n):null,a=n?Mu(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(i){case Pr:u={x:o,y:t.y-r.height};break;case An:u={x:o,y:t.y+t.height};break;case _n:u={x:t.x+t.width,y:s};break;case Tr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=i?xS(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Tu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case uf:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function lf(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,u=s===void 0?Mee:s,l=r.rootBoundary,c=l===void 0?$8:l,f=r.elementContext,d=f===void 0?Bl:f,h=r.altBoundary,g=h===void 0?!1:h,p=r.padding,b=p===void 0?0:p,y=j8(typeof b!="number"?b:F8(b,ud)),v=d===Bl?Bee:Bl,m=e.rects.popper,x=e.elements[g?v:d],w=pte(Yo(x)?x:x.contextElement||Ja(e.elements.popper),u,c,o),S=$u(e.elements.reference),A=L8({reference:S,element:m,strategy:"absolute",placement:i}),k=B2(Object.assign({},m,A)),D=d===Bl?k:S,P={top:w.top-D.top+y.top,bottom:D.bottom-w.bottom+y.bottom,left:w.left-D.left+y.left,right:D.right-w.right+y.right},T=e.modifiersData.offset;if(d===Bl&&T){var I=T[i];Object.keys(P).forEach(function(O){var N=[_n,An].indexOf(O)>=0?1:-1,j=[Pr,An].indexOf(O)>=0?"y":"x";P[O]+=I[j]*N})}return P}function hte(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?M8:u,c=Mu(n),f=c?s?jE:jE.filter(function(g){return Mu(g)===c}):ud,d=f.filter(function(g){return l.indexOf(g)>=0});d.length===0&&(d=f);var h=d.reduce(function(g,p){return g[p]=lf(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[mi(p)],g},{});return Object.keys(h).sort(function(g,p){return h[g]-h[p]})}function mte(e){if(mi(e)===vS)return[];var t=Zp(e);return[LE(e),t,LE(t)]}function gte(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,p=r.allowedAutoPlacements,b=t.options.placement,y=mi(b),v=y===b,m=u||(v||!g?[Zp(b)]:mte(b)),x=[b].concat(m).reduce(function(Z,ue){return Z.concat(mi(ue)===vS?hte(t,{placement:ue,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:p}):ue)},[]),w=t.rects.reference,S=t.rects.popper,A=new Map,k=!0,D=x[0],P=0;P=0,j=N?"width":"height",H=lf(t,{placement:T,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),F=N?O?_n:Tr:O?An:Pr;w[j]>S[j]&&(F=Zp(F));var R=Zp(F),$=[];if(a&&$.push(H[I]<=0),s&&$.push(H[F]<=0,H[R]<=0),$.every(function(Z){return Z})){D=T,k=!1;break}A.set(T,$)}if(k)for(var q=g?3:1,U=function(ue){var he=x.find(function(le){var se=A.get(le);if(se)return se.slice(0,ue).every(function(G){return G})});if(he)return D=he,"break"},Y=q;Y>0;Y--){var K=U(Y);if(K==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const vte={name:"flip",enabled:!0,phase:"main",fn:gte,requiresIfExists:["offset"],data:{_skip:!1}};function VE(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function qE(e){return[Pr,_n,An,Tr].some(function(t){return e[t]>=0})}function yte(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=lf(t,{elementContext:"reference"}),s=lf(t,{altBoundary:!0}),u=VE(o,n),l=VE(s,i,a),c=qE(u),f=qE(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const bte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yte};function xte(e,t,r){var n=mi(e),i=[Tr,Pr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Tr,_n].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function wte(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=M8.reduce(function(c,f){return c[f]=xte(f,t.rects,a),c},{}),s=o[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=o}const Ste={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wte};function Ate(e){var t=e.state,r=e.name;t.modifiersData[r]=L8({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const _te={name:"popperOffsets",enabled:!0,phase:"read",fn:Ate,data:{}};function Cte(e){return e==="x"?"y":"x"}function kte(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,g=r.tetherOffset,p=g===void 0?0:g,b=lf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),y=mi(t.placement),v=Mu(t.placement),m=!v,x=xS(y),w=Cte(x),S=t.modifiersData.popperOffsets,A=t.rects.reference,k=t.rects.popper,D=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,P=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(S){if(a){var O,N=x==="y"?Pr:Tr,j=x==="y"?An:_n,H=x==="y"?"height":"width",F=S[x],R=F+b[N],$=F-b[j],q=h?-k[H]/2:0,U=v===Tu?A[H]:k[H],Y=v===Tu?-k[H]:-A[H],K=t.elements.arrow,Z=h&&K?bS(K):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:R8(),he=ue[N],le=ue[j],se=kc(0,A[H],Z[H]),G=m?A[H]/2-q-se-he-P.mainAxis:U-se-he-P.mainAxis,J=m?-A[H]/2+q+se+le+P.mainAxis:Y+se+le+P.mainAxis,ee=t.elements.arrow&&ld(t.elements.arrow),z=ee?x==="y"?ee.clientTop||0:ee.clientLeft||0:0,de=(O=T==null?void 0:T[x])!=null?O:0,ge=F+G-de-z,ie=F+J-de,be=kc(h?tm(R,ge):R,F,h?Lo($,ie):$);S[x]=be,I[x]=be-F}if(s){var ke,_t=x==="x"?Pr:Tr,xr=x==="x"?An:_n,ct=S[w],sr=w==="y"?"height":"width",Br=ct+b[_t],ur=ct-b[xr],aa=[Pr,Tr].indexOf(y)!==-1,oa=(ke=T==null?void 0:T[w])!=null?ke:0,Ed=aa?Br:ct-A[sr]-k[sr]-oa+P.altAxis,Dd=aa?ct+A[sr]+k[sr]-oa-P.altAxis:ur,so=h&&aa?Xee(Ed,ct,Dd):kc(h?Ed:Br,ct,h?Dd:ur);S[w]=so,I[w]=so-ct}t.modifiersData[n]=I}}const Ete={name:"preventOverflow",enabled:!0,phase:"main",fn:kte,requiresIfExists:["offset"]};function Dte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pte(e){return e===Yr(e)||!bn(e)?wS(e):Dte(e)}function Tte(e){var t=e.getBoundingClientRect(),r=Ou(t.width)/e.offsetWidth||1,n=Ou(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Ote(e,t,r){r===void 0&&(r=!1);var n=bn(t),i=bn(t)&&Tte(t),a=Ja(t),o=$u(e,i,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((bi(t)!=="body"||AS(a))&&(s=Pte(t)),bn(t)?(u=$u(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=SS(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function $te(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&i(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Mte(e){var t=$te(e);return Uee.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Bte(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ite(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var UE={placement:"bottom",modifiers:[],strategy:"absolute"};function HE(){for(var e=arguments.length,t=new Array(e),r=0;r{}),m=C.useCallback(()=>{var P;!t||!g.current||!p.current||((P=v.current)==null||P.call(v),b.current=Fte(g.current,p.current,{placement:y,modifiers:[Pee,kee,Cee,{..._ee,enabled:!!d},{name:"eventListeners",...Aee(o)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,u]}},{name:"flip",enabled:!!l,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:c}},...r??[]],strategy:i}),b.current.forceUpdate(),v.current=b.current.destroy)},[y,t,r,d,o,a,s,u,l,f,c,i]);C.useEffect(()=>()=>{var P;!g.current&&!p.current&&((P=b.current)==null||P.destroy(),b.current=null)},[]);const x=C.useCallback(P=>{g.current=P,m()},[m]),w=C.useCallback((P={},T=null)=>({...P,ref:Nr(x,T)}),[x]),S=C.useCallback(P=>{p.current=P,m()},[m]),A=C.useCallback((P={},T=null)=>({...P,ref:Nr(S,T),style:{...P.style,position:i,minWidth:d?void 0:"max-content",inset:"0 auto auto 0"}}),[i,S,d]),k=C.useCallback((P={},T=null)=>{const{size:I,shadowColor:O,bg:N,style:j,...H}=P;return{...H,ref:T,"data-popper-arrow":"",style:Nte(P)}},[]),D=C.useCallback((P={},T=null)=>({...P,ref:T,"data-popper-arrow-inner":""}),[]);return{update(){var P;(P=b.current)==null||P.update()},forceUpdate(){var P;(P=b.current)==null||P.forceUpdate()},transformOrigin:wt.transformOrigin.varRef,referenceRef:x,popperRef:S,getPopperProps:A,getArrowProps:k,getArrowInnerProps:D,getReferenceProps:w}}function Nte(e){const{size:t,shadowColor:r,bg:n,style:i}=e,a={...i,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),r&&(a["--popper-arrow-shadow-color"]=r),n&&(a["--popper-arrow-bg"]=n),a}function V8(e={}){const{onClose:t,onOpen:r,isOpen:n,id:i}=e,a=Fo(r),o=Fo(t),[s,u]=C.useState(e.defaultIsOpen||!1),l=n!==void 0?n:s,c=n!==void 0,f=C.useId(),d=i??`disclosure-${f}`,h=C.useCallback(()=>{c||u(!1),o==null||o()},[c,o]),g=C.useCallback(()=>{c||u(!0),a==null||a()},[c,a]),p=C.useCallback(()=>{l?h():g()},[l,g,h]);function b(v={}){return{...v,"aria-expanded":l,"aria-controls":d,onClick(m){var x;(x=v.onClick)==null||x.call(v,m),p()}}}function y(v={}){return{...v,hidden:!l,id:d}}return{isOpen:l,onOpen:g,onClose:h,onToggle:p,isControlled:c,getButtonProps:b,getDisclosureProps:y}}function Lte(e){const{isOpen:t,ref:r}=e,[n,i]=C.useState(t),[a,o]=C.useState(!1);return C.useEffect(()=>{a||(i(t),o(!0))},[t,a,n]),su(()=>r.current,"animationend",()=>{i(t)}),{present:!(t?!1:!n),onComplete(){var u;const l=KZ(r.current),c=new l.CustomEvent("animationend",{bubbles:!0});(u=r.current)==null||u.dispatchEvent(c)}}}function q8(e){const{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!!(!r||n||i==="keepMounted"&&t)}var[zte,cd]=or({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[Vte,_S]=or({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `});function U8(e){const t=C.Children.only(e.children),{getTriggerProps:r}=cd();return C.cloneElement(t,r(t.props,t.ref))}U8.displayName="PopoverTrigger";var ms={click:"click",hover:"hover"};function qte(e={}){const{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:n,id:i,returnFocusOnClose:a=!0,autoFocus:o=!0,arrowSize:s,arrowShadowColor:u,trigger:l=ms.click,openDelay:c=200,closeDelay:f=200,isLazy:d,lazyBehavior:h="unmount",computePositionOnMount:g,...p}=e,{isOpen:b,onClose:y,onOpen:v,onToggle:m}=V8(e),x=C.useRef(null),w=C.useRef(null),S=C.useRef(null),A=C.useRef(!1),k=C.useRef(!1);b&&(k.current=!0);const[D,P]=C.useState(!1),[T,I]=C.useState(!1),O=C.useId(),N=i??O,[j,H,F,R]=["popover-trigger","popover-content","popover-header","popover-body"].map(ie=>`${ie}-${N}`),{referenceRef:$,getArrowProps:q,getPopperProps:U,getArrowInnerProps:Y,forceUpdate:K}=z8({...p,enabled:b||!!g}),Z=Lte({isOpen:b,ref:S});NZ({enabled:b,ref:w}),gee(S,{focusRef:w,visible:b,shouldFocus:a&&l===ms.click}),yee(S,{focusRef:n,visible:b,shouldFocus:o&&l===ms.click});const ue=q8({wasSelected:k.current,enabled:d,mode:h,isSelected:Z.present}),he=C.useCallback((ie={},be=null)=>{const ke={...ie,style:{...ie.style,transformOrigin:wt.transformOrigin.varRef,[wt.arrowSize.var]:s?`${s}px`:void 0,[wt.arrowShadowColor.var]:u},ref:Nr(S,be),children:ue?ie.children:null,id:H,tabIndex:-1,role:"dialog",onKeyDown:mt(ie.onKeyDown,_t=>{r&&_t.key==="Escape"&&y()}),onBlur:mt(ie.onBlur,_t=>{const xr=WE(_t),ct=fy(S.current,xr),sr=fy(w.current,xr);b&&t&&(!ct&&!sr)&&y()}),"aria-labelledby":D?F:void 0,"aria-describedby":T?R:void 0};return l===ms.hover&&(ke.role="tooltip",ke.onMouseEnter=mt(ie.onMouseEnter,()=>{A.current=!0}),ke.onMouseLeave=mt(ie.onMouseLeave,_t=>{_t.nativeEvent.relatedTarget!==null&&(A.current=!1,setTimeout(()=>y(),f))})),ke},[ue,H,D,F,T,R,l,r,y,b,t,f,u,s]),le=C.useCallback((ie={},be=null)=>U({...ie,style:{visibility:b?"visible":"hidden",...ie.style}},be),[b,U]),se=C.useCallback((ie,be=null)=>({...ie,ref:Nr(be,x,$)}),[x,$]),G=C.useRef(),J=C.useRef(),ee=C.useCallback(ie=>{x.current==null&&$(ie)},[$]),z=C.useCallback((ie={},be=null)=>{const ke={...ie,ref:Nr(w,be,ee),id:j,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":H};return l===ms.click&&(ke.onClick=mt(ie.onClick,m)),l===ms.hover&&(ke.onFocus=mt(ie.onFocus,()=>{G.current===void 0&&v()}),ke.onBlur=mt(ie.onBlur,_t=>{const xr=WE(_t),ct=!fy(S.current,xr);b&&t&&ct&&y()}),ke.onKeyDown=mt(ie.onKeyDown,_t=>{_t.key==="Escape"&&y()}),ke.onMouseEnter=mt(ie.onMouseEnter,()=>{A.current=!0,G.current=window.setTimeout(()=>v(),c)}),ke.onMouseLeave=mt(ie.onMouseLeave,()=>{A.current=!1,G.current&&(clearTimeout(G.current),G.current=void 0),J.current=window.setTimeout(()=>{A.current===!1&&y()},f)})),ke},[j,b,H,l,ee,m,v,t,y,c,f]);C.useEffect(()=>()=>{G.current&&clearTimeout(G.current),J.current&&clearTimeout(J.current)},[]);const de=C.useCallback((ie={},be=null)=>({...ie,id:F,ref:Nr(be,ke=>{P(!!ke)})}),[F]),ge=C.useCallback((ie={},be=null)=>({...ie,id:R,ref:Nr(be,ke=>{I(!!ke)})}),[R]);return{forceUpdate:K,isOpen:b,onAnimationComplete:Z.onComplete,onClose:y,getAnchorProps:se,getArrowProps:q,getArrowInnerProps:Y,getPopoverPositionerProps:le,getPopoverProps:he,getTriggerProps:z,getHeaderProps:de,getBodyProps:ge}}function fy(e,t){return e===t||(e==null?void 0:e.contains(t))}function WE(e){var t;const r=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:r}function H8(e){const t=rd("Popover",e),{children:r,...n}=Mr(e),i=Jf(),a=qte({...n,direction:i.direction});return _.jsx(zte,{value:a,children:_.jsx(Vte,{value:t,children:zn(r,{isOpen:a.isOpen,onClose:a.onClose,forceUpdate:a.forceUpdate})})})}H8.displayName="Popover";var dy=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function W8(e){var t;const{bg:r,bgColor:n,backgroundColor:i,shadow:a,boxShadow:o,shadowColor:s}=e,{getArrowProps:u,getArrowInnerProps:l}=cd(),c=_S(),f=(t=r??n)!=null?t:i,d=a??o;return _.jsx(oe.div,{...u(),className:"chakra-popover__arrow-positioner",children:_.jsx(oe.div,{className:Te("chakra-popover__arrow",e.className),...l(e),__css:{"--popper-arrow-shadow-color":dy("colors",s),"--popper-arrow-bg":dy("colors",f),"--popper-arrow-shadow":dy("shadows",d),...c.arrow}})})}W8.displayName="PopoverArrow";var G8=ye(function(t,r){const{getBodyProps:n}=cd(),i=_S();return _.jsx(oe.div,{...n(t,r),className:Te("chakra-popover__body",t.className),__css:i.body})});G8.displayName="PopoverBody";function Ute(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var Hte={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Wte=oe(Qg.section),K8=ye(function(t,r){const{variants:n=Hte,...i}=t,{isOpen:a}=cd();return _.jsx(Wte,{ref:r,variants:Ute(n),initial:!1,animate:a?"enter":"exit",...i})});K8.displayName="PopoverTransition";var Y8=ye(function(t,r){const{rootProps:n,motionProps:i,...a}=t,{getPopoverProps:o,getPopoverPositionerProps:s,onAnimationComplete:u}=cd(),l=_S(),c={position:"relative",display:"flex",flexDirection:"column",...l.content};return _.jsx(oe.div,{...s(n),__css:l.popper,className:"chakra-popover__popper",children:_.jsx(K8,{...i,...o(a,r),onAnimationComplete:JL(u,a.onAnimationComplete),className:Te("chakra-popover__content",t.className),__css:c})})});Y8.displayName="PopoverContent";var[Gte,fd]=or({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),X8=ye((e,t)=>{const r=rd("Table",e),{className:n,layout:i,...a}=Mr(e);return _.jsx(Gte,{value:r,children:_.jsx(oe.table,{ref:t,__css:{tableLayout:i,...r.table},className:Te("chakra-table",n),...a})})});X8.displayName="Table";var Kte=ye((e,t)=>{const r=fd();return _.jsx(oe.thead,{...e,ref:t,__css:r.thead})}),gs=ye((e,t)=>{const r=fd();return _.jsx(oe.tr,{...e,ref:t,__css:r.tr})}),Yte=ye((e,t)=>{var r;const{overflow:n,overflowX:i,className:a,...o}=e;return _.jsx(oe.div,{ref:t,className:Te("chakra-table__container",a),...o,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(r=n??i)!=null?r:"auto",overflowY:"hidden",maxWidth:"100%"}})}),Xte=ye((e,t)=>{const r=fd();return _.jsx(oe.tbody,{...e,ref:t,__css:r.tbody})}),Jt=ye(({isNumeric:e,...t},r)=>{const n=fd();return _.jsx(oe.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),On=ye(({isNumeric:e,...t},r)=>{const n=fd();return _.jsx(oe.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),[Qte,Jte,Zte,ere]=c8();function tre(e){var t;const{defaultIndex:r,onChange:n,index:i,isManual:a,isLazy:o,lazyBehavior:s="unmount",orientation:u="horizontal",direction:l="ltr",...c}=e,[f,d]=C.useState(r??0),[h,g]=d8({defaultValue:r??0,value:i,onChange:n});C.useEffect(()=>{i!=null&&d(i)},[i]);const p=Zte(),b=C.useId();return{id:`tabs-${(t=e.id)!=null?t:b}`,selectedIndex:h,focusedIndex:f,setSelectedIndex:g,setFocusedIndex:d,isManual:a,isLazy:o,lazyBehavior:s,orientation:u,descendants:p,direction:l,htmlProps:c}}var[rre,n0]=or({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function nre(e){const{focusedIndex:t,orientation:r,direction:n}=n0(),i=Jte(),a=C.useCallback(o=>{const s=()=>{var v;const m=i.nextEnabled(t);m&&((v=m.node)==null||v.focus())},u=()=>{var v;const m=i.prevEnabled(t);m&&((v=m.node)==null||v.focus())},l=()=>{var v;const m=i.firstEnabled();m&&((v=m.node)==null||v.focus())},c=()=>{var v;const m=i.lastEnabled();m&&((v=m.node)==null||v.focus())},f=r==="horizontal",d=r==="vertical",h=o.key,g=n==="ltr"?"ArrowLeft":"ArrowRight",p=n==="ltr"?"ArrowRight":"ArrowLeft",y={[g]:()=>f&&u(),[p]:()=>f&&s(),ArrowDown:()=>d&&s(),ArrowUp:()=>d&&u(),Home:l,End:c}[h];y&&(o.preventDefault(),y(o))},[i,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:mt(e.onKeyDown,a)}}function ire(e){const{isDisabled:t=!1,isFocusable:r=!1,...n}=e,{setSelectedIndex:i,isManual:a,id:o,setFocusedIndex:s,selectedIndex:u}=n0(),{index:l,register:c}=ere({disabled:t&&!r}),f=l===u,d=()=>{i(l)},h=()=>{s(l),!a&&!(t&&r)&&i(l)},g=hee({...n,ref:Nr(c,e.ref),isDisabled:t,isFocusable:r,onClick:mt(e.onClick,d)}),p="button";return{...g,id:Q8(o,l),role:"tab",tabIndex:f?0:-1,type:p,"aria-selected":f,"aria-controls":J8(o,l),onFocus:t?void 0:mt(e.onFocus,h)}}var[are,ore]=or({});function sre(e){const t=n0(),{id:r,selectedIndex:n}=t,a=v8(e.children).map((o,s)=>C.createElement(are,{key:s,value:{isSelected:s===n,id:J8(r,s),tabId:Q8(r,s),selectedIndex:n}},o));return{...e,children:a}}function ure(e){const{children:t,...r}=e,{isLazy:n,lazyBehavior:i}=n0(),{isSelected:a,id:o,tabId:s}=ore(),u=C.useRef(!1);a&&(u.current=!0);const l=q8({wasSelected:u.current,isSelected:a,enabled:n,mode:i});return{tabIndex:0,...r,children:l?t:null,role:"tabpanel","aria-labelledby":s,hidden:!a,id:o}}function Q8(e,t){return`${e}--tab-${t}`}function J8(e,t){return`${e}--tabpanel-${t}`}var[lre,i0]=or({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Z8=ye(function(t,r){const n=rd("Tabs",t),{children:i,className:a,...o}=Mr(t),{htmlProps:s,descendants:u,...l}=tre(o),c=C.useMemo(()=>l,[l]),{isFitted:f,...d}=s,h={position:"relative",...n.root};return _.jsx(Qte,{value:u,children:_.jsx(rre,{value:c,children:_.jsx(lre,{value:n,children:_.jsx(oe.div,{className:Te("chakra-tabs",a),ref:r,...d,__css:h,children:i})})})})});Z8.displayName="Tabs";var e9=ye(function(t,r){const n=nre({...t,ref:r}),a={display:"flex",...i0().tablist};return _.jsx(oe.div,{...n,className:Te("chakra-tabs__tablist",t.className),__css:a})});e9.displayName="TabList";var I2=ye(function(t,r){const n=ure({...t,ref:r}),i=i0();return _.jsx(oe.div,{outline:"0",...n,className:Te("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});I2.displayName="TabPanel";var t9=ye(function(t,r){const n=sre(t),i=i0();return _.jsx(oe.div,{...n,width:"100%",ref:r,className:Te("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});t9.displayName="TabPanels";var R2=ye(function(t,r){const n=i0(),i=ire({...t,ref:r}),a={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return _.jsx(oe.button,{...i,className:Te("chakra-tabs__tab",t.className),__css:a})});R2.displayName="Tab";var cre={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},j2=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},eh=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function fre(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:i,closeOnScroll:a,closeOnPointerDown:o=i,closeOnEsc:s=!0,onOpen:u,onClose:l,placement:c,id:f,isOpen:d,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:p,arrowPadding:b,modifiers:y,isDisabled:v,gutter:m,offset:x,direction:w,...S}=e,{isOpen:A,onOpen:k,onClose:D}=V8({isOpen:d,defaultIsOpen:h,onOpen:u,onClose:l}),{referenceRef:P,getPopperProps:T,getArrowInnerProps:I,getArrowProps:O}=z8({enabled:A,placement:c,arrowPadding:b,modifiers:y,gutter:m,offset:x,direction:w}),N=C.useId(),H=`tooltip-${f??N}`,F=C.useRef(null),R=C.useRef(),$=C.useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=void 0)},[]),q=C.useRef(),U=C.useCallback(()=>{q.current&&(clearTimeout(q.current),q.current=void 0)},[]),Y=C.useCallback(()=>{U(),D()},[D,U]),K=dre(F,Y),Z=C.useCallback(()=>{if(!v&&!R.current){A&&K();const z=eh(F);R.current=z.setTimeout(k,t)}},[K,v,A,k,t]),ue=C.useCallback(()=>{$();const z=eh(F);q.current=z.setTimeout(Y,r)},[r,Y,$]),he=C.useCallback(()=>{A&&n&&ue()},[n,ue,A]),le=C.useCallback(()=>{A&&o&&ue()},[o,ue,A]),se=C.useCallback(z=>{A&&z.key==="Escape"&&ue()},[A,ue]);su(()=>j2(F),"keydown",s?se:void 0),su(()=>{const z=F.current;if(!z)return null;const de=_8(z);return de.localName==="body"?eh(F):de},"scroll",()=>{A&&a&&Y()},{passive:!0,capture:!0}),C.useEffect(()=>{v&&($(),A&&D())},[v,A,D,$]),C.useEffect(()=>()=>{$(),U()},[$,U]),su(()=>F.current,"pointerleave",ue);const G=C.useCallback((z={},de=null)=>({...z,ref:Nr(F,de,P),onPointerEnter:mt(z.onPointerEnter,ie=>{ie.pointerType!=="touch"&&Z()}),onClick:mt(z.onClick,he),onPointerDown:mt(z.onPointerDown,le),onFocus:mt(z.onFocus,Z),onBlur:mt(z.onBlur,ue),"aria-describedby":A?H:void 0}),[Z,ue,le,A,H,he,P]),J=C.useCallback((z={},de=null)=>T({...z,style:{...z.style,[wt.arrowSize.var]:g?`${g}px`:void 0,[wt.arrowShadowColor.var]:p}},de),[T,g,p]),ee=C.useCallback((z={},de=null)=>{const ge={...z.style,position:"relative",transformOrigin:wt.transformOrigin.varRef};return{ref:de,...S,...z,id:H,role:"tooltip",style:ge}},[S,H]);return{isOpen:A,show:Z,hide:ue,getTriggerProps:G,getTooltipProps:ee,getTooltipPositionerProps:J,getArrowProps:O,getArrowInnerProps:I}}var py="chakra-ui:close-tooltip";function dre(e,t){return C.useEffect(()=>{const r=j2(e);return r.addEventListener(py,t),()=>r.removeEventListener(py,t)},[t,e]),()=>{const r=j2(e),n=eh(e);r.dispatchEvent(new n.CustomEvent(py))}}function pre(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function hre(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}var mre=oe(Qg.div),CS=ye((e,t)=>{var r,n;const i=Si("Tooltip",e),a=Mr(e),o=Jf(),{children:s,label:u,shouldWrapChildren:l,"aria-label":c,hasArrow:f,bg:d,portalProps:h,background:g,backgroundColor:p,bgColor:b,motionProps:y,...v}=a,m=(n=(r=g??p)!=null?r:d)!=null?n:b;if(m){i.bg=m;const T=hz(o,"colors",m);i[wt.arrowBg.var]=T}const x=fre({...v,direction:o.direction}),w=typeof s=="string"||l;let S;if(w)S=_.jsx(oe.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:s});else{const T=C.Children.only(s);S=C.cloneElement(T,x.getTriggerProps(T.props,T.ref))}const A=!!c,k=x.getTooltipProps({},t),D=A?pre(k,["role","id"]):k,P=hre(k,["role","id"]);return u?_.jsxs(_.Fragment,{children:[S,_.jsx(nS,{children:x.isOpen&&_.jsx(Qf,{...h,children:_.jsx(oe.div,{...x.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:_.jsxs(mre,{variants:cre,initial:"exit",animate:"enter",exit:"exit",...y,...D,__css:i,children:[u,A&&_.jsx(oe.span,{srOnly:!0,...P,children:c}),f&&_.jsx(oe.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:_.jsx(oe.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):_.jsx(_.Fragment,{children:s})});CS.displayName="Tooltip";var r9={exports:{}},n9={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Bu=C;function gre(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vre=typeof Object.is=="function"?Object.is:gre,yre=Bu.useState,bre=Bu.useEffect,xre=Bu.useLayoutEffect,wre=Bu.useDebugValue;function Sre(e,t){var r=t(),n=yre({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return xre(function(){i.value=r,i.getSnapshot=t,hy(i)&&a({inst:i})},[e,r,t]),bre(function(){return hy(i)&&a({inst:i}),e(function(){hy(i)&&a({inst:i})})},[e]),wre(r),r}function hy(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!vre(e,r)}catch{return!0}}function Are(e,t){return t()}var _re=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Are:Sre;n9.useSyncExternalStore=Bu.useSyncExternalStore!==void 0?Bu.useSyncExternalStore:_re;r9.exports=n9;var Cre=r9.exports,i9={exports:{}},a9={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var a0=C,kre=Cre;function Ere(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dre=typeof Object.is=="function"?Object.is:Ere,Pre=kre.useSyncExternalStore,Tre=a0.useRef,Ore=a0.useEffect,$re=a0.useMemo,Mre=a0.useDebugValue;a9.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=Tre(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=$re(function(){function u(h){if(!l){if(l=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var g=o.value;if(i(g,h))return f=g}return f=h}if(g=f,Dre(c,h))return g;var p=n(h);return i!==void 0&&i(g,p)?g:(c=h,f=p)}var l=!1,c,f,d=r===void 0?null:r;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,r,n,i]);var s=Pre(e,a[0],a[1]);return Ore(function(){o.hasValue=!0,o.value=s},[s]),Mre(s),s};i9.exports=a9;var Bre=i9.exports;function Ire(e){e()}let o9=Ire;const Rre=e=>o9=e,jre=()=>o9,GE=Symbol.for("react-redux-context"),KE=typeof globalThis<"u"?globalThis:{};function Fre(){var e;if(!C.createContext)return{};const t=(e=KE[GE])!=null?e:KE[GE]=new Map;let r=t.get(C.createContext);return r||(r=C.createContext(null),t.set(C.createContext,r)),r}const Ha=Fre();function kS(e=Ha){return function(){return C.useContext(e)}}const s9=kS(),Nre=()=>{throw new Error("uSES not initialized!")};let u9=Nre;const Lre=e=>{u9=e},zre=(e,t)=>e===t;function Vre(e=Ha){const t=e===Ha?s9:kS(e);return function(n,i={}){const{equalityFn:a=zre,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:d}=t();C.useRef(!0);const h=C.useCallback({[n.name](p){return n(p)}}[n.name],[n,f,o]),g=u9(l.addNestedSub,u.getState,c||u.getState,h,a);return C.useDebugValue(g),g}}const qre=Vre();var Ve={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ES=Symbol.for("react.element"),DS=Symbol.for("react.portal"),o0=Symbol.for("react.fragment"),s0=Symbol.for("react.strict_mode"),u0=Symbol.for("react.profiler"),l0=Symbol.for("react.provider"),c0=Symbol.for("react.context"),Ure=Symbol.for("react.server_context"),f0=Symbol.for("react.forward_ref"),d0=Symbol.for("react.suspense"),p0=Symbol.for("react.suspense_list"),h0=Symbol.for("react.memo"),m0=Symbol.for("react.lazy"),Hre=Symbol.for("react.offscreen"),l9;l9=Symbol.for("react.module.reference");function kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ES:switch(e=e.type,e){case o0:case u0:case s0:case d0:case p0:return e;default:switch(e=e&&e.$$typeof,e){case Ure:case c0:case f0:case m0:case h0:case l0:return e;default:return t}}case DS:return t}}}Ve.ContextConsumer=c0;Ve.ContextProvider=l0;Ve.Element=ES;Ve.ForwardRef=f0;Ve.Fragment=o0;Ve.Lazy=m0;Ve.Memo=h0;Ve.Portal=DS;Ve.Profiler=u0;Ve.StrictMode=s0;Ve.Suspense=d0;Ve.SuspenseList=p0;Ve.isAsyncMode=function(){return!1};Ve.isConcurrentMode=function(){return!1};Ve.isContextConsumer=function(e){return kn(e)===c0};Ve.isContextProvider=function(e){return kn(e)===l0};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ES};Ve.isForwardRef=function(e){return kn(e)===f0};Ve.isFragment=function(e){return kn(e)===o0};Ve.isLazy=function(e){return kn(e)===m0};Ve.isMemo=function(e){return kn(e)===h0};Ve.isPortal=function(e){return kn(e)===DS};Ve.isProfiler=function(e){return kn(e)===u0};Ve.isStrictMode=function(e){return kn(e)===s0};Ve.isSuspense=function(e){return kn(e)===d0};Ve.isSuspenseList=function(e){return kn(e)===p0};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o0||e===u0||e===s0||e===d0||e===p0||e===Hre||typeof e=="object"&&e!==null&&(e.$$typeof===m0||e.$$typeof===h0||e.$$typeof===l0||e.$$typeof===c0||e.$$typeof===f0||e.$$typeof===l9||e.getModuleId!==void 0)};Ve.typeOf=kn;function Wre(){const e=jre();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const YE={notify(){},get:()=>[]};function Gre(e,t){let r,n=YE;function i(f){return u(),n.subscribe(f)}function a(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function u(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=Wre())}function l(){r&&(r(),r=void 0,n.clear(),n=YE)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:l,getListeners:()=>n};return c}const Kre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yre=Kre?C.useLayoutEffect:C.useEffect;function Xre({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const l=Gre(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=C.useMemo(()=>e.getState(),[e]);Yre(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,s]);const u=t||Ha;return C.createElement(u.Provider,{value:o},r)}function c9(e=Ha){const t=e===Ha?s9:kS(e);return function(){const{store:n}=t();return n}}const Qre=c9();function Jre(e=Ha){const t=e===Ha?Qre:c9(e);return function(){return t().dispatch}}const Zre=Jre();Lre(Bre.useSyncExternalStoreWithSelector);Rre(Yf.unstable_batchedUpdates);function th(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?th=function(r){return typeof r}:th=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},th(e)}function ene(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XE(e,t){for(var r=0;r[e,encodeURIComponent(e)]);function cne(e,t){const r={},n=Object.keys(t);for(const i of n){const a=t[i];e[i]?r[i]=e[i].encode(t[i]):r[i]=a==null?a:String(a)}return r}function fne(e){const t=new URLSearchParams(e),r={};for(let[n,i]of t)Object.prototype.hasOwnProperty.call(r,n)?Array.isArray(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i;return r}class dne{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(t,r,n,i){this.paramsMap.set(t,{stringified:r,decoded:n,decode:i})}has(t,r,n){if(!this.paramsMap.has(t))return!1;const i=this.paramsMap.get(t);return i?i.stringified===r&&(n==null||i.decode===n):!1}get(t){var r;if(this.paramsMap.has(t))return(r=this.paramsMap.get(t))==null?void 0:r.decoded}registerParams(t){for(const r of t){const n=this.registeredParams.get(r)||0;this.registeredParams.set(r,n+1)}}unregisterParams(t){for(const r of t){const n=(this.registeredParams.get(r)||0)-1;n<=0?(this.registeredParams.delete(r),this.paramsMap.has(r)&&this.paramsMap.delete(r)):this.registeredParams.set(r,n)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}const ih=new dne;function pne(e,t){var r,n,i;const a={};let o=!1;const s=Object.keys(e);let u=s;if(t.includeKnownParams||t.includeKnownParams!==!1&&s.length===0){const c=Object.keys((r=t.params)!=null?r:{});u.push(...c)}for(const c of u){const f=e[c];if(f!=null&&typeof f=="object"){a[c]=f;continue}o=!0,a[c]=(i=(n=t.params)==null?void 0:n[c])!=null?i:PS}return o?a:e}function p9(e,t,r,n){var i;if(!r||!t.length)return e;let a={...e},o=!1;for(const s of t)Object.prototype.hasOwnProperty.call(a,s)||(a[s]=(i=r[s])!=null?i:n,o=!0);return o?a:e}const hne=Object.prototype.hasOwnProperty;function QE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function h9(e,t,r){var n,i;if(QE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let s=0;st.split("\0")))}function yne(e,t){var r;let n={};for(const i in e)((r=t[i])==null?void 0:r.urlName)!=null?n[t[i].urlName]=e[i]:n[i]=e[i];return n}let JE,ZE,eD,my={};const g9=(e,t,r)=>{if(JE===t&&eD===e&&ZE===r)return my;JE=t,eD=e;const n=e(t??"");ZE=r;const i=vne(r);for(let[a,o]of Object.entries(n)){i!=null&&i[a]&&(delete n[a],a=i[a],n[a]=o);const s=my[a];h9(o,s)&&(n[a]=s)}return my=n,n},bne={searchStringToObject:fne,objectToSearchString:lne,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0};function v9(e,t){t==null&&(t={});const r={...e,...t};return t.params&&e.params&&(r.params={...e.params,...t.params}),r}const y9={adapter:{},options:bne},L2=C.createContext(y9);function xne(){const e=C.useContext(L2);if(e===void 0||e===y9)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}function tD({children:e,adapter:t,options:r}){const{adapter:n,options:i}=C.useContext(L2),a=C.useMemo(()=>({adapter:t??n,options:v9(i,r)}),[t,r,n,i]);return C.createElement(L2.Provider,{value:a},e)}function wne({children:e,adapter:t,options:r}){const n=t;return n?C.createElement(n,null,i=>C.createElement(tD,{adapter:i,options:r},e)):C.createElement(tD,{options:r},e)}function Sne(e,t){var r;for(const n in e)((r=t[n])==null?void 0:r.default)!==void 0&&e[n]!==void 0&&t[n].encode(t[n].default)===e[n]&&(e[n]=void 0)}function Ane({changes:e,updateType:t,currentSearchString:r,paramConfigMap:n,options:i}){const{searchStringToObject:a,objectToSearchString:o}=i;t==null&&(t=i.updateType);let s;const u=g9(a,r),l=p9(n,Object.keys(e),i.params);let c;if(typeof e=="function"){const d=m9(u,l,ih);c=e(d)}else c=e;s=cne(l,c),i.removeDefaultsFromUrl&&Sne(s,l),s=yne(s,l);let f;return t==="push"||t==="replace"?f=o(s):f=o({...u,...s}),f!=null&&f.length&&f[0]!=="?"&&(f=`?${f}`),f??""}function _ne({searchString:e,adapter:t,navigate:r,updateType:n}){const a={...t.location,search:e};r&&(typeof n=="string"&&n.startsWith("replace")?t.replace(a):t.push(a))}const Cne=e=>e(),kne=e=>setTimeout(()=>e(),0),dp=[];function Ene(e,{immediate:t}={}){dp.push(e);let r=t?Cne:kne;dp.length===1&&r(()=>{const n=dp.slice();dp.length=0;const i=n[0].currentSearchString;let a;for(let o=0;ov9(n,o),[n,o]);let u=pne(a,s);const l=g9(s.searchStringToObject,r.location.search,gne(u));s.includeAllParams&&(u=p9(u,Object.keys(l),s.params,PS));const c=i(l,u,ih),f=Object.keys(u).join("\0");C.useEffect(()=>{const p=f.split("\0");return ih.registerParams(p),()=>{ih.unregisterParams(p)}},[f]);const d={adapter:r,paramConfigMap:u,options:s},h=C.useRef(d);h.current==null&&(h.current=d),C.useEffect(()=>{h.current.adapter=r,h.current.paramConfigMap=u,h.current.options=s},[r,u,s]);const[g]=C.useState(()=>(b,y)=>{const{adapter:v,paramConfigMap:m,options:x}=h.current;y==null&&(y=x.updateType),Ene({changes:b,updateType:y,currentSearchString:v.location.search,paramConfigMap:m,options:x,adapter:v},{immediate:!x.enableBatching})});return[c,g]}var Pne=Dne;function Tne(e,t){let r,n;return e===void 0?(r={},n=t):Array.isArray(e)?(r=Object.fromEntries(e.map(i=>[i,"inherit"])),n=t):(r=e,n=t),{paramConfigMap:r,options:n}}const rD=(e,t,r)=>{const n=C.useMemo(()=>({[e]:t??"inherit"}),[e,t]),[i,a]=Pne(n,r),o=i[e],s=C.useCallback((u,l)=>a(typeof u=="function"?c=>{const f=u(c[e]);return{[e]:f}}:{[e]:u},l),[e,a]);return[o,s]};function One(){return{replace(t){window.history.replaceState(t.state,"",t.search||"?")},push(t){window.history.pushState(t.state,"",t.search||"?")},get location(){return window.location}}}const $ne=({children:e})=>{const[t]=C.useState(One);return e(t)};function Fn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:TS(e)?2:OS(e)?3:0}function uu(e,t){return rl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Mne(e,t){return rl(e)===2?e.get(t):e[t]}function b9(e,t,r){var n=rl(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function x9(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function TS(e){return Nne&&e instanceof Map}function OS(e){return Lne&&e instanceof Set}function vo(e){return e.o||e.t}function $S(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=S9(e);delete t[nt];for(var r=lu(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Bne),Object.freeze(e),t&&Xo(e,function(r,n){return MS(n,!0)},!0)),e}function Bne(){Fn(2)}function BS(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function gi(e){var t=U2[e];return t||Fn(18,e),t}function Ine(e,t){U2[e]||(U2[e]=t)}function z2(){return cf}function gy(e,t){t&&(gi("Patches"),e.u=[],e.s=[],e.v=t)}function rm(e){V2(e),e.p.forEach(Rne),e.p=null}function V2(e){e===cf&&(cf=e.l)}function nD(e){return cf={p:[],l:cf,h:e,m:!0,_:0}}function Rne(e){var t=e[nt];t.i===0||t.i===1?t.j():t.g=!0}function vy(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||gi("ES5").S(t,e,n),n?(r[nt].P&&(rm(t),Fn(4)),Ji(e)&&(e=nm(t,e),t.l||im(t,e)),t.u&&gi("Patches").M(r[nt].t,e,t.u,t.s)):e=nm(t,r,[]),rm(t),t.u&&t.v(t.u,t.s),e!==w9?e:void 0}function nm(e,t,r){if(BS(t))return t;var n=t[nt];if(!n)return Xo(t,function(s,u){return iD(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return im(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=$S(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Xo(a,function(s,u){return iD(e,n,i,s,u,r,o)}),im(e,i,!1),r&&e.u&&gi("Patches").N(n,r,e.u,e.s)}return n.o}function iD(e,t,r,n,i,a,o){if(Wa(i)){var s=nm(e,i,a&&t&&t.i!==3&&!uu(t.R,n)?a.concat(n):void 0);if(b9(r,n,s),!Wa(s))return;e.m=!1}else o&&r.add(i);if(Ji(i)&&!BS(i)){if(!e.h.D&&e._<1)return;nm(e,i),t&&t.A.l||im(e,i)}}function im(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&MS(t,r)}function yy(e,t){var r=e[nt];return(r?vo(r):e)[t]}function aD(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function wa(e){e.P||(e.P=!0,e.l&&wa(e.l))}function by(e){e.o||(e.o=$S(e.t))}function q2(e,t,r){var n=TS(t)?gi("MapSet").F(t,r):OS(t)?gi("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:z2(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,l=ff;o&&(u=[s],l=ic);var c=Proxy.revocable(u,l),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):gi("ES5").J(t,r);return(r?r.A:z2()).p.push(n),n}function jne(e){return Wa(e)||Fn(22,e),function t(r){if(!Ji(r))return r;var n,i=r[nt],a=rl(r);if(i){if(!i.P&&(i.i<4||!gi("ES5").K(i)))return i.t;i.I=!0,n=oD(r,a),i.I=!1}else n=oD(r,a);return Xo(n,function(o,s){i&&Mne(i.t,o)===s||b9(n,o,t(s))}),a===3?new Set(n):n}(e)}function oD(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return $S(e)}function Fne(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[nt];return ff.get(u,a)},set:function(u){var l=this[nt];ff.set(l,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][nt];if(!s.P)switch(s.i){case 5:n(s)&&wa(s);break;case 4:r(s)&&wa(s)}}}function r(a){for(var o=a.t,s=a.k,u=lu(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==nt){var f=o[c];if(f===void 0&&!uu(o,c))return!0;var d=s[c],h=d&&d[nt];if(h?h.t!==f:!x9(d,f))return!0}}var g=!!o[nt];return u.length!==lu(o).length+(g?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?y-1:0),m=1;m1?c-1:0),d=1;d=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=gi("Patches").$;return Wa(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Xr=new Vne,A9=Xr.produce;Xr.produceWithPatches.bind(Xr);Xr.setAutoFreeze.bind(Xr);Xr.setUseProxies.bind(Xr);Xr.applyPatches.bind(Xr);Xr.createDraft.bind(Xr);Xr.finishDraft.bind(Xr);function cD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fD(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Zt(1));return r(RS)(e,t)}if(typeof e!="function")throw new Error(Zt(2));var i=e,a=t,o=[],s=o,u=!1;function l(){s===o&&(s=o.slice())}function c(){if(u)throw new Error(Zt(3));return a}function f(p){if(typeof p!="function")throw new Error(Zt(4));if(u)throw new Error(Zt(5));var b=!0;return l(),s.push(p),function(){if(b){if(u)throw new Error(Zt(6));b=!1,l();var v=s.indexOf(p);s.splice(v,1),o=null}}}function d(p){if(!qne(p))throw new Error(Zt(7));if(typeof p.type>"u")throw new Error(Zt(8));if(u)throw new Error(Zt(9));try{u=!0,a=i(a,p)}finally{u=!1}for(var b=o=s,y=0;y"u")throw new Error(Zt(12));if(typeof r(void 0,{type:am.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Zt(13))})}function Hne(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(Zt(14));f[h]=b,c=c||b!==p}return c=c||a.length!==Object.keys(u).length,c?f:u}}function om(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var l=r[u];return u>0&&(r.splice(u,1),r.unshift(l)),l.value}return sm}function i(s,u){n(s)===sm&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var Yne=function(t,r){return t===r};function Xne(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a1?t-1:0),n=1;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0)for(var m=h.getState(),x=Array.from(r.values()),w=0,S=x;w{const r="",n=(u,l)=>{let c=l.length,f="";const d=p=>encodeURI(encodeURIComponent(p)).replace(/%../g,"i").length,h=p=>{let b=p.charCodeAt(0),y=p.charCodeAt(p.length-1);return b>=56320&&b<=57343||y>=55296&&y<=56319};let g={};for(let p=2;p=0;++v)m=u.indexOf(y,m+p);v>1&&(g[y]=v)}for(;;){for(;c--&&u.includes(l[c]););if(c<0)break;let p=l[c],b,y=0,v=d(p);for(let x in g){let w=g[x],S=(w-1)*d(x)-(w+1)*v;f.length||(S-=d(r)),S<=0?delete g[x]:S>y&&(b=x,y=S)}if(!b)break;u=u.split(b).join(p)+p+b,f=p+f;let m={};for(let x in g){let w=x.split(b).join(p),S=0;for(let A=u.indexOf(w);A>=0;++S)A=u.indexOf(w,A+w.length);S>1&&(m[w]=S)}g=m}return{a:u,b:f}};let i=[];const a="-_.!~*'()";for(let u=127;--u;)(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a.includes(String.fromCharCode(u)))&&i.push(String.fromCharCode(u));for(let u=32;u<255;++u){let l=String.fromCharCode(u);l!="\\"&&!i.includes(l)&&i.unshift(l)}e=e.replace(new RegExp(r,"g"),""),e=xD(e);const o=n(e,i);let s=o.a;return o.b.length&&(s+=r+o.b),s+="_",s},uncrush:e=>{e=e.substring(0,e.length-1);const t=e.split("");let r=t[0];if(t.length>1){let n=t[1];for(let i of n){let a=r.split(i);r=a.join(a.pop())}}return xD(r,0)}},xD=(e,t=1)=>{const r=[['"',"'"],["':","!"],[",'","~"],["}",")","\\","\\"],["{","(","\\","\\"]],n=(i,a)=>{let o=new RegExp(`${(a[2]?a[2]:"")+a[0]}|${(a[3]?a[3]:"")+a[1]}`,"g");return i.replace(o,s=>s===a[0]?a[1]:a[0])};if(t)for(let i=0;i0){const a=await fetch(r,{method:"HEAD"});if(Number(a.headers.get("Content-Length")??1)===t)return null}const n=await fetch(r);return{data:(await n.text()).split(` -`).slice(1).filter(a=>a!==""&&!a.startsWith("#")).map(a=>a.split(" ")),size:Number(n.headers.get("Content-Length"))}}var Jo=(e=>(e[e.NONE=0]="NONE",e[e.HATCHLING=1]="HATCHLING",e[e.TERRARIUM=2]="TERRARIUM",e))(Jo||{});const Lie=e=>!(e>=125&&e<134||e>=215&&e<260),zie=e=>({id:Number(e[0]),name:e[1],image:e[2],ownable:Lie(Number(e[0]))}),Vie=async e=>{const t=await y0("familiars",e);return t===null?null:{...t,data:t.data.filter(r=>r.length>2).map(zie)}},qie=(e="")=>{let t=0;const r=[];for(const n of e){if(n==="*"&&r.length>0){r[r.length-1][2]=!0;continue}r.push([++t,Number(n),!1])}return r},K2=[{id:894,month:10,year:2004,type:"familiar",familiar:"Jill-O-Lantern"},{id:914,month:11,year:2004,type:"familiar",familiar:"Hand Turkey"},{id:924,month:12,year:2004,type:"familiar",familiar:"Crimbo Elf"},{id:954,month:1,year:2005,type:"familiar",familiar:"Baby Yeti"},{id:961,month:2,year:2005,type:"familiar",familiar:"Feather Boa Constrictor"},{id:1040,month:3,year:2005,type:"item",item:"lucky Tam O'Shanter"},{id:1083,month:4,year:2005,type:"familiar",familiar:"Personal Raincloud"},{id:1152,month:5,year:2005,type:"item",item:"miniature gravy-covered maypole"},{id:1242,month:6,year:2005,type:"familiar",familiar:"inflatable dodecapede"},{id:1260,month:7,year:2005,type:"item",item:"wax lips"},{id:1263,month:8,year:2005,type:"familiar",familiar:"Pygmy Bugbear Shaman"},{id:1291,month:9,year:2005,type:"item",item:"Jekyllin hide belt"},{id:1304,month:10,year:2005,type:"familiar",familiar:"Doppelshifter"},{id:1349,month:11,year:2005,type:"familiar",familiar:"Temporal Riftlet"},{id:1373,month:12,year:2005,type:"familiar",familiar:"Sweet Nutcracker"},{id:1411,month:1,year:2006,type:"skill",skill:"Summon Snowcones"},{id:1423,month:2,year:2006,type:"item",item:["iceberglet","ice baby"]},{id:1488,month:3,year:2006,type:"familiar",familiar:"Wild Hare"},{id:1498,month:4,year:2006,type:"skill",skill:"Summon Hilarious Objects"},{id:1536,month:5,year:2006,type:"familiar",familiar:"Spirit Hobo"},{id:1621,month:6,year:2006,type:"familiar",familiar:"Astral Badger"},{id:1653,month:7,year:2006,type:"item",item:"jewel-eyed wizard hat"},{id:1703,month:8,year:2006,type:"familiar",familiar:"Comma Chameleon"},{id:1792,month:9,year:2006,type:"item",item:"Travoltan trousers"},{id:1971,month:10,year:2006,type:"item",item:"plastic pumpkin bucket"},{id:2090,month:11,year:200,type:"item",item:"pilgrim shield"},{id:2190,month:12,year:2006,type:"familiar",familiar:"Ancient Yuletide Troll"},{id:2221,month:1,year:2007,type:"item",item:["Great Ball of Frozen Fire","liar's pants"]},{id:2303,month:2,year:2007,type:"skill",skill:"Summon Candy Heart"},{id:2380,month:3,year:2007,type:"familiar",familiar:"Dandy Lion"},{id:2447,month:4,year:2007,type:"familiar",familiar:"Penguin Goodfella"},{id:2541,month:5,year:2007,type:"item",item:"Mayflower bouquet"},{id:2650,month:6,year:2007,type:"familiar",familiar:"Green Pixie"},{id:2834,month:7,year:2007,type:"item",item:"bottle-rocket crossbow"},{id:2836,month:8,year:2007,type:"familiar",familiar:"Wizard Action Figure"},{id:2844,month:9,year:2007,type:"item",item:"navel ring of navel gazing"},{id:2845,month:10,year:2007,type:"familiar",familiar:"Gluttonous Green Ghost"},{id:2946,month:11,year:2007,type:"item",item:"V for Vivala Mask"},{id:3042,month:12,year:2007,type:"familiar",familiar:"Crimbo P. R. E. S. S. I. E."},{id:3117,month:1,year:2008,type:"skill",skill:"Summon Party Favor"},{id:3192,month:2,year:2008,type:"item",item:["naughty origami kit","origami pasties"]},{id:3219,month:3,year:2008,type:"familiar",familiar:"Mad Hatrack"},{id:3263,month:4,year:2008,type:"skill",skill:"Summon Tasteful Items"},{id:3321,month:5,year:2008,type:"item",item:"mayfly bait necklace"},{id:3351,month:6,year:2008,type:"familiar",familiar:"Llama Lama"},{id:3421,month:7,year:2008,type:"item",item:"little box of fireworks"},{id:3431,month:8,year:2008,type:"familiar",familiar:"Cotton Candy Carnie"},{id:3466,month:9,year:2008,type:"item",item:"haiku katana"},{id:3434,month:10,year:2008,type:"familiar",familiar:"Disembodied Hand"},{id:3507,month:11,year:2008,type:"skill",skill:"Summon Stickers"},{id:3578,month:12,year:2008,type:"familiar",familiar:"Sugar Fruit Fairy"},{id:3661,month:1,year:2009,type:"item",item:["container of Spooky Putty","spooky putty monster","Spooky Putty sheet"]},{id:3753,month:2,year:2009,type:"skill",skill:"Summon Love Song"},{id:3799,month:3,year:2009,type:"familiar",familiar:"Frumious Bandersnatch"},{id:3836,month:4,year:2009,type:"item",item:"elvish sunglasses"},{id:3963,month:5,year:2009,type:"vip"},{id:3999,month:6,year:2009,type:"familiar",familiar:"Baby Sandworm"},{id:4136,month:7,year:2009,type:"item",item:"Bag o' Tricks"},{id:4148,month:8,year:2009,type:"familiar",familiar:"He-Boulder"},{id:4177,month:9,year:2009,type:"skill",skill:"Summon Sugar Sheets"},{id:4223,month:10,year:2009,type:"familiar",familiar:"Squamous Gibberer"},{id:4135,month:11,year:2009,type:"item",item:"moveable feast"},{id:4328,month:12,year:2009,type:"familiar",familiar:"Stocking Mimic"},{id:4398,month:1,year:2010,type:"item",item:["stinky cheese ball","stinky cheese eye"]},{id:4468,month:2,year:2010,type:"skill",skill:"Summon BRICKOs"},{id:4507,month:3,year:2010,type:"vip"},{id:4574,month:4,year:2010,type:"familiar",familiar:"Baby Bugged Bugbear"},{id:4614,month:5,year:2010,type:"item",item:"Crown of Thrones"},{id:4619,month:6,year:2010,type:"familiar",familiar:"Rogue Program"},{id:4644,month:7,year:2010,type:"item",item:"Juju Mojo Mask"},{id:4648,month:8,year:2010,type:"familiar",familiar:"Mini-Hipster"},{id:4696,month:9,year:2010,type:"item",item:"Greatest American Pants"},{id:4720,month:10,year:2010,type:"familiar",familiar:"organ grinder"},{id:4759,month:11,year:2010,type:"campground",item:"packet of pumpkin seeds"},{id:4827,month:12,year:2010,type:"familiar",familiar:"Robot Reindeer"},{id:4908,month:1,year:2011,type:"item",item:"Loathing Legion Knife"},{id:4937,month:2,year:2011,type:"familiar",familiar:"Obtuse Angel"},{id:4965,month:3,year:2011,type:"skill",skill:"Summon Alice's Army Cards"},{id:5047,month:4,year:2011,type:"vip"},{id:5112,month:5,year:2011,type:"eudora",eudoraId:1},{id:5164,month:6,year:2011,type:"familiar",familiar:"Li'l Xenomorph"},{id:5190,month:7,year:2011,type:"item",item:"Operation Patriot Shield"},{id:4536,month:8,year:2011,type:"familiar",familiar:"Pair of Stomping Boots"},{id:5223,month:9,year:2011,type:"skill",skill:"Summon Clip Art"},{id:5301,month:10,year:2011,type:"item",item:"plastic vampire fangs"},{id:5371,month:11,year:2011,type:"familiar",familiar:"Fancypants Scarecrow"},{id:5403,month:12,year:2011,type:"campground",item:"Peppermint Pip Packet"},{id:5463,month:1,year:2012,type:"skill",skill:"Summon Resolutions"},{id:5553,month:2,year:2012,type:"item",item:["can of Rain-Doh","empty Rain-Doh can"]},{id:5639,month:3,year:2012,type:"familiar",familiar:"Happy Medium"},{id:5648,month:4,year:2012,type:"item",item:"Boris's Helm"},{id:5662,month:5,year:2012,type:"vip"},{id:5701,month:6,year:2012,type:"familiar",familiar:"Artistic Goth Kid"},{id:5738,month:7,year:2012,type:"item",item:"Camp Scout backpack"},{id:5767,month:8,year:2012,type:"familiar",familiar:"Reagnimated Gnome"},{id:5790,month:9,year:2012,type:"custom"},{id:5879,month:10,year:2012,type:"campground",item:"packet of dragon's teeth"},{id:5910,month:11,year:2012,type:"familiar",familiar:"Nanorhino"},{id:6071,month:12,year:2012,type:"skill",skill:"Summon Geeky Gifts"},{id:6150,month:1,year:2013,type:"item",item:"Snow Suit"},{id:4712,month:2,year:2013,type:"eudora",eudoraId:2},{id:6305,month:3,year:2013,type:"item",item:"Jarlsberg's Pan"},{id:6360,month:4,year:2013,type:"skill",skill:"Summon Taffy"},{id:6413,month:5,year:2013,type:"preference",preference:"ownsFloristFriar"},{id:6561,month:6,year:2013,type:"familiar",familiar:"Mini-Adventurer"},{id:6582,month:7,year:2013,type:"vip"},{id:4930,month:8,year:2013,type:"item",item:"over-the-shoulder Folder Holder"},{id:6411,month:9,year:2013,type:"familiar",familiar:"Steam-Powered Cheerleader"},{id:6784,month:10,year:2013,type:"familiar",familiar:"Reanimated Reanimator"},{id:6860,month:11,year:2013,type:"item",item:"Pantsgiving"},{id:7003,month:12,year:2013,type:"skill",skill:"Summon Smithsness"},{id:7069,month:1,year:2014,type:"campground",item:"packet of winter seeds"},{id:7200,month:2,year:2014,type:"item",item:"Buddy Bjorn"},{id:7250,month:3,year:2014,type:"item",item:"Sneaky Pete's leather jacket"},{id:7382,month:4,year:2014,type:"campground",item:"Little Geneticist DNA-Splicing Lab"},{id:7466,month:5,year:2014,type:"preference",preference:"sleazeAirportAlways"},{id:7312,month:6,year:2014,type:"familiar",familiar:"Galloping Grill"},{id:7588,month:7,year:2014,type:"vip"},{id:7706,month:8,year:2014,type:"skill",skill:"Summon Confiscated Things"},{id:7709,month:9,year:2014,type:"item",item:"Thor's Pliers"},{id:7767,month:10,year:2014,type:"preference",preference:"spookyAirportAlways"},{id:7920,month:11,year:2014,type:"familiar",familiar:"fist turkey"},{id:7956,month:12,year:2014,type:"familiar",familiar:"Crimbo Shrub"},{id:8019,month:1,year:2015,type:"preference",preference:"chateauAvailable"},{id:8134,month:2,year:2015,type:"preference",preference:"lovebugsUnlocked"},{id:8184,month:3,year:2015,type:"item",item:"The Crown of Ed the Undying"},{id:8203,month:4,year:2015,type:"preference",preference:"stenchAirportAlways"},{id:8260,month:5,year:2015,type:"campground",item:"portable Mayo Clinic"},{id:8287,month:6,year:2015,type:"familiar",familiar:["Puck Man","Ms Puck Man"]},{id:8381,month:7,year:2015,type:"item",item:"Deck of Every Card"},{id:8487,month:8,year:2015,type:"preference",preference:"hotAirportAlways"},{id:8564,month:9,year:2015,type:"preference",preference:"barrelShrineUnlocked"},{id:8639,month:10,year:2015,type:"campground"},{id:8674,month:11,year:2015,type:"preference",preference:"coldAirportAlways"},{id:8706,month:12,year:2015,type:"familiar",familiar:"Machine Elf"},{id:8705,month:1,year:2016,type:"preference",preference:"snojoAvailable"},{id:8836,month:2,year:2016,type:"preference",preference:"telegraphOfficeAvailable"},{id:8989,month:3,year:2016,type:"campground"},{id:9e3,month:4,year:2016,type:"vip"},{id:9016,month:5,year:2016,type:"familiar",familiar:"intergnat"},{id:9033,month:6,year:2016,type:"campground"},{id:9073,month:7,year:2016,type:"preference",preference:"hasDetectiveSchool"},{id:9081,month:8,year:2016,type:"item",item:"protonic accelerator pack"},{id:9103,month:9,year:2016,type:"item",item:"Time-Spinner"},{id:9136,month:10,year:2016,type:"familiar",familiar:"Trick-or-Treating Tot"},{id:9189,month:11,year:2016,type:"campground",item:"packet of thanksgarden seeds"},{id:9203,month:12,year:2016,type:"preference",preference:"gingerbreadCityAvailable"},{id:9296,month:1,year:2017,type:"familiar",familiar:"Space Jellyfish"},{id:9316,month:2,year:2017,type:"preference",preference:"loveTunnelAvailable"},{id:9401,month:3,year:2017,type:"familiar",familiar:"Robortender"},{id:9404,month:4,year:2017,type:"preference",preference:"spacegateAlways"},{id:9478,month:5,year:2017,type:"eudora",eudoraId:4},{id:9492,month:6,year:2017,type:"item",item:"Kremlin's Greatest Briefcase"},{id:9507,month:7,year:2017,type:"campground",item:"Asdon Martin keyfob"},{id:9511,month:8,year:2017,type:"skill",skill:"Meteor Lore"},{id:9528,month:9,year:2017,type:"item",item:"genie bottle"},{id:9541,month:10,year:2017,type:"familiar",familiar:"XO Skeleton"},{id:9572,month:11,year:2017,type:"item",item:"portable pantogram"},{id:9591,month:12,year:2017,type:"item",item:"mumming trunk"},{id:9689,month:1,year:2018,type:"item",item:"January's Garbage Tote"},{id:9712,month:2,year:2018,type:"vip"},{id:9759,month:3,year:2018,type:"campground",item:"packet of tall grass seeds"},{id:9835,month:4,year:2018,type:"preference",preference:"frAlways"},{id:9661,month:5,year:2018,type:"familiar",familiar:"God Lobster"},{id:9920,month:6,year:2018,type:"item",item:"SongBoom™ BoomBox"},{id:9939,month:7,year:2018,type:"familiar",familiar:"Cat Burglar"},{id:9927,month:8,year:2018,type:"item",item:"Bastille Battalion control rig"},{id:9942,month:9,year:2018,type:"preference",preference:"neverendingPartyAlways"},{id:9988,month:10,year:2018,type:"item",item:"latte lovers member's mug"},{id:9989,month:11,year:2018,type:"preference",preference:"voteAlways"},{id:10049,month:12,year:2018,type:"preference",preference:"daycareOpen"},{id:10057,month:1,year:2019,type:"item",item:"Kramco Sausage-o-Matic™"},{id:10165,month:2,year:2019,type:"item",item:"Lil' Doctor™ bag"},{id:10241,month:3,year:2019,type:"item",item:"vampyric cloake"},{id:10187,month:4,year:2019,type:"preference",preference:"prAlways"},{id:10250,month:5,year:2019,type:"item",item:"Fourth of May Cosplay Saber"},{id:10256,month:6,year:2019,type:"item",item:"hewn moon-rune spoon"},{id:10257,month:7,year:2019,type:"item",item:"Beach Comb"},{id:10292,month:8,year:2019,type:"preference",preference:"getawayCampsiteUnlocked"},{id:10323,month:9,year:2019,type:"familiar",familiar:"Pocket Professor"},{id:10332,month:10,year:2019,type:"item",item:"Eight Days a Week Pill Keeper"},{id:10334,month:11,year:2019,type:"campground",item:"diabolic pizza cube"},{id:10345,month:12,year:2019,type:"familiar",familiar:"Red-Nosed Snapper"},{id:10433,month:1,year:2020,type:"item",item:"Bird-a-Day calendar"},{id:10437,month:2,year:2020,type:"item",item:"Powerful Glove"},{id:10481,month:3,year:2020,type:"campground",item:"packet of mushroom spores"},{id:10502,month:4,year:2020,type:"familiar",familiar:"Left-Hand Man"},{id:10532,month:5,year:2020,type:"item",item:"Guzzlr tablet"},{id:10573,month:6,year:2020,type:"item",item:"Iunion Crown"},{id:10579,month:7,year:2020,type:"familiar",familiar:"Melodramedary"},{id:10581,month:8,year:2020,type:"item",item:"SpinMaster™ lathe"},{id:10635,month:9,year:2020,type:"item",item:"Cargo Cultist Shorts"},{id:10644,month:10,year:2020,type:"skill",skill:"Comprehensive Cartography"},{id:10646,month:11,year:2020,type:"item",item:"unwrapped knock-off retro superhero cape"},{id:10648,month:12,year:2020,type:"familiar",familiar:["Ghost of Crimbo Commerce","Ghost of Crimbo Carols","Ghost of Crimbo Cheer"]},{id:10729,month:1,year:2021,type:"item",item:"miniature crystal ball"},{id:10733,month:2,year:2021,type:"skill",skill:"Emotionally Chipped"},{id:10737,month:3,year:2021,type:"item",item:"potted power plant"},{id:10748,month:4,year:2021,type:"item",item:"backup camera"},{id:10750,month:5,year:2021,type:"familiar",familiar:"Shorter-Order Cook"},{id:10760,month:6,year:2021,type:"item",item:"familiar scrapbook"},{id:10761,month:7,year:2021,type:"vip"},{id:10773,month:8,year:2021,type:"eudora",eudoraId:5},{id:10796,month:9,year:2021,type:"item",item:"industrial fire extinguisher"},{id:10801,month:10,year:2021,type:"familiar",familiar:"Vampire Vintner"},{id:10803,month:11,year:2021,type:"item",item:"Daylight Shavings Helmet"},{id:10814,month:12,year:2021,type:"campground",item:"cold medicine cabinet"},{id:10890,month:1,year:2022,type:"preference",preference:"hasCosmicBowlingBall"},{id:10892,month:2,year:2022,type:"item",item:"combat lover's locket"},{id:10895,month:3,year:2022,type:"familiar",familiar:"Grey Goose"},{id:10898,month:4,year:2022,type:"item",item:"Unbreakable Umbrella"},{id:10900,month:5,year:2022,type:"preference",preference:"hasMaydayContract"},{id:10919,month:6,year:2022,type:"item",item:"June cleaver"},{id:10928,month:7,year:2022,type:"item",item:"designer sweatpants"},{id:10931,month:8,year:2022,type:"item",item:"tiny stillsuit"},{id:10951,month:9,year:2022,type:"item",item:"Jurassic Parka"},{id:10953,month:10,year:2022,type:"preference",preference:"hasAutumnaton"},{id:10966,month:11,year:2022,type:"familiar",familiar:"Cookbookbat"},{id:11044,month:12,year:2022,type:"campground",item:"model train set"},{id:11099,month:1,year:2023,type:"campground",item:"packet of rock seeds"},{id:11115,month:2,year:2023,type:"item",item:"S.I.T. Course Completion Certificate"},{id:11168,month:3,year:2023,type:"item",item:"closed-circuit pay phone"},{id:11187,month:4,year:2023,type:"item",item:"cursed monkey's paw"},{id:11222,month:5,year:2023,type:"item",item:"Cincho de Mayo"},{id:11256,month:6,year:2023,type:"item",item:"2002 Mr. Store Catalog"},{id:11300,month:7,year:2023,type:"familiar",familiar:"Patriotic Eagle"},{id:11305,month:8,year:2023,type:"item",item:"august scepter"}];var Iu=(e=>(e[e.NONE=0]="NONE",e[e.BOXED=1]="BOXED",e[e.BOUND=2]="BOUND",e))(Iu||{});function Uie(e=0){const t=JSON.stringify(K2).length;return t===e?null:{data:K2,size:t}}const Hie=(e="")=>e.split("").map((t,r)=>[K2[r].id,Number(t)]);var lm=(e=>(e[e.NONE=0]="NONE",e[e.HAVE=1]="HAVE",e))(lm||{});const Wie=e=>({id:Number(e[0]),name:e[1],image:e[3]}),Gie=async e=>{const t=await y0("items",e);return t===null?null:{...t,data:t.data.filter(r=>r.length>2).map(Wie)}},Kie=(e="")=>e.split(",").map(t=>{const r=t.split(":");return[Number(r[0]),r[1]?Number(r[1]):1]}),Yie=e=>{const t=Object.fromEntries(e.split(",").map(r=>r.split(":")).map(([r,n])=>[r,r==="timestamp"?Number(n):n]));return t.version||(t.version=1),t},F9=-3,N9=-2,Y2=[{id:F9,name:"Softcore",image:"itemimages/karma.gif",items:[],equipment:[7985,7986,7987,7988,7989,7990,8092,8093,8094,8095,8096,8097,8106,8107,8108,8109,8110,8111,8120,8121,8122,8123,8124,8125,10082,10083,10084,10085,10086,10087,10098,10099,10100,10101,10102,10103,10114,10115,10116,10117,10118,10119,10130,10131,10132,10133,10134,10135,11028,11029,11030,11031,11032,11033],tattoos:[{name:"Seal Clubber",image:"class1"},{name:"Turtle Tamer",image:"class2"},{name:"Pastamancer",image:"class3"},{name:"Sauceror",image:"class4"},{name:"Disco Bandit",image:"class5"},{name:"Accordion Thief",image:"class6"},{name:"Normal Ascensions",image:["asc01","asc02","asc03","asc04","asc05","asc06","asc07","asc08","asc09","asc10","asc11","asc12"]}],points:null,maxPoints:0},{id:N9,name:"Hardcore",image:"otherimages/sigils/staintat.gif",items:[],equipment:[1224,1225,1226,1227,1228,1229,7991,7992,7993,7994,7995,7996,8099,8100,8101,8102,8103,8104,8113,8114,8115,8116,8117,8118,8127,8128,8129,8130,8131,8132,10090,10091,10092,10093,10094,10095,10106,10107,10108,10109,10110,10111,10122,10123,10124,10125,10126,10127,10138,10139,10140,10141,10142,10143,11020,11021,11022,11023,11024,11025],tattoos:[{name:"Seal Clubber",image:"class1hc"},{name:"Turtle Tamer",image:"class2hc"},{name:"Pastamancer",image:"class3hc"},{name:"Sauceror",image:"class4hc"},{name:"Disco Bandit",image:"class5hc"},{name:"Accordion Thief",image:"class6hc"},{name:"Hardcore Ascensions",image:["hasc01","hasc02","hasc03","hasc04","hasc05","hasc06","hasc07","hasc08","hasc09","hasc10","hasc11","hasc12"]}],points:null,maxPoints:0},{id:-1,name:"Bad Moon",image:"otherimages/sigils/brimtat.gif",items:[],equipment:[2814,2815,2817,2818,2816,2813],tattoos:[],points:null,maxPoints:0},{id:1,name:"Boozetafarian",image:"itemimages/martini.gif",items:[],equipment:[],tattoos:[{name:"Hardcore Boozetafarian",image:"nofood"}],points:null,maxPoints:0},{id:2,name:"Teetotaler",image:"itemimages/bowl.gif",items:[],equipment:[],tattoos:[{name:"Hardcore Teetotaler",image:"nobeer"}],points:null,maxPoints:0},{id:3,name:"Oxygenarian",image:"itemimages/smalloxy.gif",items:[],equipment:[1230,1231,1232,1233,1234,1235],tattoos:[{name:"Hardcore Oxygenarian",image:"oxy"}],points:null,maxPoints:0},{id:4,name:"Bees Hate You",image:"itemimages/beeicon.gif",items:[5141],equipment:[],tattoos:[],points:null,maxPoints:0},{id:6,name:"Way of the Surprising Fist",image:"itemimages/wosp_fist.gif",items:[5222],equipment:[],tattoos:[],points:null,maxPoints:0},{id:7,name:"Trendy",image:"itemimages/trendyicon.gif",items:[5392],equipment:[],tattoos:[],points:null,maxPoints:0},{id:8,name:"Avatar of Boris",image:"itemimages/trusty.gif",items:[5572],equipment:[],tattoos:[{name:"Boris",image:"class11"},{name:"Hardcore Boris",image:"class11hc"}],points:"borisPoints",maxPoints:29},{id:9,name:"Bugbear Invasion",image:"itemimages/familiar39.gif",items:[5694],equipment:[],tattoos:[],points:null,maxPoints:0},{id:10,name:"Zombie Slayer",image:"itemimages/tombstone.gif",items:[5773],equipment:[],tattoos:[{name:"Zombie Slayer",image:"class12"},{name:"Hardcore Zombie Slayer",image:"class12hc"}],points:"zombiePoints",maxPoints:30},{id:11,name:"Class Act",image:"itemimages/motorboat.gif",items:[6045],equipment:[],tattoos:[],points:null,maxPoints:0},{id:12,name:"Avatar of Jarlsberg",image:"itemimages/jarlhat.gif",items:[6298],equipment:[],tattoos:[{name:"Jarlsberg",image:"class14"},{name:"Hardcore Jarlsberg",image:"class14hc"}],points:"jarlsbergPoints",maxPoints:30},{id:14,name:"BIG!",image:"itemimages/bigicon.gif",items:[6547],equipment:[],tattoos:[],points:null,maxPoints:0},{id:15,name:"KOLHS",image:"itemimages/kolhsicon.gif",items:[6676],equipment:[],tattoos:[],points:"yearbookCameraAscensions",maxPoints:20},{id:16,name:"Class Act II: A Class For Pigs",image:"itemimages/motorboat2.gif",items:[6899],equipment:[],tattoos:[],points:null,maxPoints:0},{id:17,name:"Avatar of Sneaky Pete",image:"itemimages/bigglasses.gif",items:[7249],equipment:[],tattoos:[{name:"Sneaky Pete",image:"class15"},{name:"Hardcore Sneaky Pete",image:"class15hc"}],points:"sneakyPetePoints",maxPoints:30},{id:18,name:"Slow and Steady",image:"itemimages/sas.gif",items:[7498],equipment:[],tattoos:[],points:null,maxPoints:0},{id:19,name:"Heavy Rains",image:"itemimages/familiar31.gif",items:[7668],equipment:[],tattoos:[],points:["heavyRainsStartingLightning","heavyRainsStartingThunder","heavyRainsStartingRain"],maxPoints:9},{id:21,name:"Picky",image:"itemimages/pickypath.gif",items:[7935,7936],equipment:[],tattoos:[],points:null,maxPoints:0},{id:22,name:"Standard",image:"itemimages/standardicon.gif",items:[],equipment:[],tattoos:[],points:null,maxPoints:0},{id:23,name:"Actually Ed the Undying",image:"itemimages/scarab.gif",items:[8087],equipment:[],tattoos:[{name:"Ed the Undying",image:"class17"},{name:"Hardcore Ed the Undying",image:"class17hc"}],points:"edPoints",maxPoints:20},{id:24,name:"Crazy Random Summer",image:"itemimages/dice.gif",items:[8296],equipment:[],tattoos:[],points:null,maxPoints:0},{id:25,name:"Community Service",image:"itemimages/csplaquesmall.gif",items:[8556],equipment:[],tattoos:[],points:null,maxPoints:0},{id:26,name:"Avatar of West of Loathing",image:"itemimages/badge.gif",items:[8984],equipment:[],tattoos:[{name:"Cow Puncher",image:"class18"},{name:"Hardcore Cow Puncher",image:"class18hc"},{name:"Beanslinger",image:"class19"},{name:"Hardcore Beanslinger",image:"class19hc"},{name:"Snake Oiler",image:"class20"},{name:"Hardcore Snake Oiler",image:"class20hc"}],points:["awolPointsCowpuncher","awolPointsBeanslinger","awolPointsSnakeoiler"],maxPoints:30},{id:27,name:"The Source",image:"itemimages/ss_datasiphon.gif",items:[9031],equipment:[],tattoos:[],points:"sourcePoints",maxPoints:12},{id:28,name:"Nuclear Autumn",image:"itemimages/radiation.gif",items:[9099,9084],equipment:[],tattoos:[],points:"nuclearAutumnPoints",maxPoints:23},{id:29,name:"Gelatinous Noob",image:"itemimages/gcube.gif",items:[9346],equipment:[],tattoos:[{name:"Gelatinous Noob",image:"class23"},{name:"Hardcore Gelatinous Noob",image:"class23hc"}],points:"noobPoints",maxPoints:20},{id:30,name:"License to Adventure",image:"itemimages/briefcase.gif",items:[9488],equipment:[],tattoos:[],points:"bondPoints",maxPoints:23},{id:31,name:"Live. Ascend. Repeat.",image:"itemimages/watch.gif",items:[9525,9526],equipment:[],tattoos:[],points:null,maxPoints:0},{id:32,name:"Pocket Familiars",image:"itemimages/spiritorb.gif",items:[9758],equipment:[],tattoos:[],points:"todo: make a pref that tracks starting pokedollars",maxPoints:10},{id:33,name:"G-Lover",image:"itemimages/g-loveheart.gif",items:[9917,9910],equipment:[],tattoos:[{name:"Gattoo",image:"gtat"}],points:"gloverPoints",maxPoints:10},{id:34,name:"Disguises Delimit",image:"itemimages/dd_icon.gif",items:[9941],equipment:[],tattoos:[],points:"masksUnlocked",maxPoints:25},{id:35,name:"Dark Gyffte",image:"itemimages/darkgift.gif",items:[10184],equipment:[],tattoos:[{name:"Vampyre",image:"class24"},{name:"Hardcore Vampyre",image:"class24hc"}],points:"darkGyfftePoints",maxPoints:23},{id:36,name:"Two Crazy Random Summer",image:"itemimages/twocrazydice.gif",items:[10253,10252],equipment:[],tattoos:[],points:"twoCRSPoints",maxPoints:37},{id:37,name:"Kingdom of Exploathing",image:"itemimages/puff.gif",items:[10319],equipment:[],tattoos:[],points:"skillLevel188",maxPoints:13},{id:38,name:"Path of the Plumber",image:"itemimages/mario_mushroom1.gif",items:[10470,10501],equipment:[],tattoos:[{name:"Plumber",image:"class25"},{name:"Hardcore Plumber",image:"class25hc"}],points:"plumberPoints",maxPoints:11},{id:39,name:"Low Key Summer",image:"itemimages/littlelock.gif",items:[10570],equipment:[],tattoos:[],points:null,maxPoints:0},{id:40,name:"Grey Goo",image:"itemimages/greygooball.gif",items:[10601],equipment:[],tattoos:[],points:null,maxPoints:0},{id:41,name:"You, Robot",image:"itemimages/robobattery.gif",items:[10736],equipment:[],tattoos:[],points:"youRobotPoints",maxPoints:12},{id:42,name:"Quantum Terrarium",image:"itemimages/quantum.gif",items:[10757,10758],equipment:[],tattoos:[],points:"quantumPoints",maxPoints:11},{id:43,name:"Wildfire",image:"itemimages/fire.gif",items:[10791],equipment:[],tattoos:[],points:null,maxPoints:0},{id:44,name:"Grey You",image:"itemimages/greygooring.gif",items:[10894],equipment:[],tattoos:[{name:"Grey Goo",image:"class27"},{name:"Hardcore Grey Goo",image:"class27hc"}],points:"greyYouPoints",maxPoints:11},{id:45,name:"Journeyman",image:"itemimages/map.gif",items:[10918,10917],equipment:[],tattoos:[],points:null,maxPoints:0},{id:46,name:"Fall of the Dinosaurs",image:"itemimages/dinostuffy.gif",items:[10950,10949],equipment:[],tattoos:[],points:null,maxPoints:0},{id:47,name:"Avatar of Shadows Over Loathing",image:"itemimages/aosol.gif",items:[11166],equipment:[],tattoos:[{name:"Pig Skinner",image:"class28"},{name:"Hardcore Pig Skinner",image:"class28hc"},{name:"Cheese Wizard",image:"class29"},{name:"Hardcore Cheese Wizard",image:"class29hc"},{name:"Jazz Agent",image:"class30"},{name:"Hardcore Jazz Agent",image:"class30hc"}],points:["asolPointsPigSkinner","asolPointsCheeseWizard","asolPointsJazzAgent"],maxPoints:11},{id:48,name:"Legacy of Loathing",image:"itemimages/xx.gif",items:[11255],equipment:[],tattoos:[],points:"legacyPoints",maxPoints:19}];function Xie(e=0){const t=JSON.stringify(Y2).length;return t===e?null:{data:Y2,size:t}}const Qie=32,Jie=16,Zie=(e="")=>{const t=e.split(",");return Y2.map(r=>{let n=(t[r.id+3]||"").padEnd(r.items.length+r.equipment.length+r.tattoos.length,"0");const i=parseInt(n.substring(0,1),Qie);n=n.substring(1);const a=n.substring(0,r.items.length).split("").map(u=>Number(u));n=n.substring(r.items.length);const o=n.substring(0,r.equipment.length).split("").map(u=>Number(u));n=n.substring(r.equipment.length);const s=n.split("").map(u=>parseInt(u,Jie));return[r.id,i,a,o,s]})};var Vn=(e=>(e[e.NONE=0]="NONE",e[e.SOFTCORE=1]="SOFTCORE",e[e.HARDCORE=2]="HARDCORE",e))(Vn||{});const eae=e=>{switch(e){case 46:return 10;case 47:return 10;case 48:return 10;case 107:return 9;case 117:return 11;case 188:return 13;default:return 0;case 118:return 7;case 121:return 6;case 128:return 6;case 134:return 6;case 135:return 2;case 144:return 5;case 180:return 4;case 7254:return 3}},tae=e=>{if(e<10||e>20&&e<=27||e>63&&e<=73||e>7175&&e<7181)return!1;switch(e){case 91:case 116:return!1;case 49:case 50:case 51:case 52:case 3024:return!1;case 6019:return!1;case 17047:return!0;case 156:return!1;case 174:return!1;case 218:case 219:case 220:return!1;case 222:return!1;case 7254:return!0}switch(Math.floor(e/1e3)){case 7:case 8:case 11:case 12:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 27:case 28:case 29:case 30:return!1}return!0},rae=e=>({id:Number(e[0]),name:e[1],image:e[2],permable:tae(Number(e[0]))}),nae=async e=>{const t=await y0("classskills",e);return t===null?null:{...t,data:t.data.filter(r=>r.length>2).map(rae)}},iae=(e="")=>{let t=1;const r=[];for(let n=0;n(e[e.NONE=0]="NONE",e[e.HAVE_OUTFIT=1]="HAVE_OUTFIT",e[e.HAVE=2]="HAVE",e))(Zo||{});function aae(e=0){const t=JSON.stringify(wD).length;return t===e?null:{data:wD,size:t}}const oae=(e="")=>e.split("").map((t,r)=>[r+1,Number(t)]),SD=[{id:1,name:"Little Boat",image:"gonna_need_a_smaller_boat"},{id:2,name:"Big Boat",image:"party_on_the_big_boat"},{id:3,name:"I Heart Canadia",image:"get_oot_eh"},{id:4,name:"100 Pound Load",image:"heavy_lourde"},{id:5,name:"300 Pound Load",image:"crushed_under_pets"},{id:6,name:"Silver Yeti",image:"awwwwww"},{id:7,name:"Golden Yeti",image:"yeti_pants_now"},{id:8,name:"Palindrophy",image:"a_dog_a_plan"},{id:9,name:"Platinum Skull",image:"big_head_todd"},{id:10,name:"Disgusting Cocktail",image:"the_nastiest_cocktail"},{id:11,name:"The Ghuol Cup",image:"ghuolishly_good"},{id:12,name:"Der Toastdieb",image:"you_done_took_my_toast"},{id:14,name:"Easy Come Easy Go",image:"van_went"},{id:15,name:"Bouquet of Hippies",image:"dirt_and_dirty"},{id:16,name:"Weeping Pizza",image:"angst_with_extra_cheese"},{id:17,name:"Black Hole Terrarium",image:"he_aint_heavy_hes_my_familiar"},{id:18,name:"Failure To Communicate",image:"shakin_the_bush_here_boss"},{id:19,name:"Tiny Plastic Trophy",image:"nice_trophy_pablo_honey"},{id:20,name:"99 Red Balloons",image:"in_a_little_toy_shop"},{id:21,name:"Gadget Inspector",image:"go_go_gadget_trophy"},{id:22,name:"Boss Boss",image:"dancing_in_the_dark"},{id:23,name:"Jack of Several Trades",image:"master_of_nuns"},{id:24,name:"Gourdcore",image:"gored_to_the_core"},{id:25,name:"Let My Bugbears Go!",image:"you_damned_dirty_human"},{id:26,name:"Trivially Skilled",image:"look_what_i_can_do"},{id:27,name:"This Lousy Trophy",image:"not_worth_the_wait"},{id:28,name:"Three-Tiered Trophy",image:"no_less_than_three"},{id:29,name:"Friend of Elves",image:"thats_too_friendly_pippin"},{id:30,name:"Reindeer Hunter",image:"run_over_by_grandma"},{id:31,name:"Brass Bowling Trophy Trophy",image:"the_dude_abides"},{id:32,name:"Look, Ma! No Pants!",image:"not_wearing_any_pants"},{id:33,name:"Slice and Dice",image:"with_friends_like_these"},{id:34,name:"Gender Bender",image:"ladies_and_gentlemen"},{id:35,name:"Golden Meat Stack",image:"hood_ornament"},{id:36,name:"Your Log Saw Something That Night",image:"better_than_bad_its_good"},{id:37,name:"Little Chickadee",image:"no_well_ten_beers"},{id:38,name:"The Three Amigos",image:"you_shot_the_invisible_swordsman"},{id:39,name:"Festive Dismemberment",image:"in_deep_end_ents"},{id:40,name:"Best Meal of My Life",image:"also_ate_zarathustra"},{id:41,name:"Scourge of Seals",image:"undercover_clubber"},{id:42,name:"Tzar of Turtles",image:"tortoise_reform"},{id:43,name:"Potentate of Pasta",image:"stop_noodling_around"},{id:44,name:"Sauciest Saucier",image:"lost_in_the_sauce_once_again"},{id:45,name:"Duke of Disco",image:"saturday_night_inferno"},{id:46,name:"Maestro of Mariachi",image:"dance_round_the_room_to_accordion_keys"},{id:47,name:"The Butler Did It",image:"your_mom_knows_the_butler"},{id:48,name:"Slapstick",image:"whoops_whoops_whoops"},{id:49,name:"Moderation In All Things",image:"eliza_knew_best"},{id:50,name:"The Right Tool For The Job",image:"and_a_filthy_job_it_is"},{id:51,name:"Hothouse Hero",image:"gonna_go_fondle_my_sweaters"},{id:52,name:"Cool Customer",image:"like_a_cucumber_on_pluto"},{id:53,name:"Dreadful, Just Dreadful",image:"horror_has_a_new_name"},{id:54,name:"Malodorous",image:"melodious_and_mellifluous"},{id:55,name:"Wink Wink, Nudge Nudge",image:"this_parrot_is_nude"},{id:56,name:"Crossroads",image:"my_shrimps_was_dead_and_gone"},{id:57,name:"Friend of the Devils",image:"jeremiah_was_a_bullfrog"},{id:58,name:"Bringer of Storms",image:"jeff_was_right"},{id:59,name:"Eerily Skilled",image:"howd_you_do_that_man_thats_creepy"},{id:60,name:"I Love A Parade",image:"but_it_doesnt_love_me_back"},{id:61,name:"Awwww, Yeah",image:"dont_worry_your_pretty_little_head"},{id:62,name:"Phileas Foggy",image:"just_like_tara_reid"},{id:63,name:"Extinctionist",image:"you_were_devoutly_aligned"},{id:64,name:"Dirty Laundry",image:"kick_em_when_theyre_up"},{id:65,name:"Amateur Tour Guide",image:"this_boat_sucks"},{id:66,name:"Professional Tour Guide",image:"now_ive_seen_it_all"},{id:67,name:"Brave Sir Robin",image:"in_soviet_russia_minstrels_eat_you"},{id:68,name:"Desert Wind",image:"what_the_hell_are_colitas_anyway"},{id:69,name:"Two-Tiered Tiny Plastic Trophy",image:"just_like_grandmas_dentures"},{id:70,name:"Master Paster",image:"who_runs_bartertown"},{id:71,name:"Golden Spatula",image:"and_thats_all"},{id:72,name:"Melon Baller, Shot Caller",image:"i_hardly_know_her"},{id:73,name:"BAM!",image:"what_do_you_want_on_your_tombstone"},{id:74,name:"Speakeasy Savant",image:"ill_make_a_note_of_it"},{id:75,name:"Honky Tonk Hero",image:"hippy_hippy_shake"},{id:76,name:"Cantina Commander",image:"on_channel_z"},{id:77,name:"Apprentice Meatsmacker",image:"tong_tong_tong_tong_ta_tong_tong"},{id:78,name:"Journeyman Meatsmacker",image:"now_all_you_need_is_a_sickle"},{id:79,name:"Master Meatsmacker",image:"two_tickets_to_anville"},{id:80,name:"Preciousss",image:"hey_vern_its_jewels"},{id:81,name:"The One That Didn't Get Away",image:"visitors_stink_earlier"},{id:82,name:"Losing Your Marbles",image:"garble_varble_zous"},{id:83,name:"Hunter In Darkness",image:"dodecahardon"},{id:84,name:"Evil's Okay in My Book",image:"im_a_little_bit_country"},{id:85,name:"A Little Help From My Friends",image:"oh_i_get_by"},{id:86,name:"Dancing With the Stars",image:"every_which_way_but_footloose"},{id:87,name:"Every Part of the Seal",image:"especially_those_face_scars"},{id:88,name:"Spaghettihose",image:"screw_you_atkins"},{id:89,name:"Color Wheel of Yuck",image:"please_dont_taste_the_rainbow"},{id:90,name:"Septuple Platinum",image:"steal_this_music"},{id:91,name:"Professional Photographer",image:"raggedy_annie_leibovitz"},{id:92,name:"General Assembler",image:"thats_numberwang"},{id:93,name:"Penultimate Fantasy VII",image:"aeris_kills_dumbledore"},{id:94,name:"The Wrong Place at the Right Time",image:"ocd_genocide"},{id:95,name:"Who Hustles The Hustlers?",image:"giant_blue_pool_cue"},{id:96,name:"A Screw Ain't One",image:"in_a_fruit_fight"},{id:97,name:"Had to Have Caught Them All",image:"ocd_i_choose_you"},{id:98,name:"Buzzkill",image:"ow_my_everything"},{id:99,name:"Elf Barker",image:"spay_or_neuter_your_pets"},{id:100,name:"Mixed Martial Arts",image:"sweat_grope_punch_repeat"},{id:101,name:"Hadouken!",image:"tatsumaki_senpuu_kyaku"},{id:102,name:"Good Will Punching",image:"fisting_for_dollars"},{id:103,name:"Moving Target",image:"wal_mart_is_stationary"},{id:104,name:"Grand Slammer",image:"gonna_need_a_bigger_plaque"},{id:105,name:"And My Axe",image:"look_out_death_adder"},{id:106,name:"Spirited Drinker",image:"never_sicker"},{id:107,name:"Papier Than Thou",image:"papier_i_hardly_know_her"},{id:108,name:"Fantastic Voyager",image:"for_your_weiner_am_i_right_ha_ha_ha"},{id:109,name:"Haggis Haggis Haggis Haggis Haggis",image:"haggis_is_as_haggis_does"},{id:110,name:"Now You've Tasted Everything",image:"i_can_taste_the_cosmos"},{id:111,name:"The Old College Try",image:"natures_harmonic"},{id:112,name:"Great Responsibility",image:"time_to_get_a_dog_i_guess"},{id:113,name:"Three-Tiered Tiny Plastic Trophy",image:"little_asian_different"},{id:114,name:"Cosmic Thing",image:"fruity_egocentric_magician"},{id:115,name:"Right Outfit, Wrong Place",image:"more_or_less_right_time"},{id:116,name:"Dreadful Rainbow",image:"taste_the_pain"},{id:117,name:"Horror Enthusiast",image:"ermagerd_berks"},{id:118,name:"Full Heart",image:"clear_eyes_dumb_shirt"},{id:119,name:"Extended Capacity",image:"warranty_sold_separately"},{id:120,name:"Kissing Maniac",image:"bastard_son_thereof"},{id:121,name:"Cruising For Six Bruisings",image:"dont_bleed_it_all_in_one_place"},{id:122,name:"Eleven Down, None to Go",image:"this_is_getting_ridiculous"},{id:123,name:"Purity of Essence",image:"could_you_describe_the_ruckus"},{id:124,name:"Ansel Adams Jr.",image:"who_here_knows_quark_express"},{id:125,name:"No Particular Reason",image:"take_a_chanceacus"},{id:126,name:"Bronzed Tin Can",image:"put_gilded_lilies_in_it"},{id:127,name:"True Believer",image:"wheel_of_space"},{id:128,name:"EEZY PEEZY",image:"pez_porridge_hot"},{id:129,name:"Very Like a Whale",image:"oh_no_not_again"},{id:130,name:"Gyro Hero",image:"hero_dreams_of_gyros"},{id:131,name:"Alia Iacta Est",image:"d_c_cab_squared"},{id:132,name:"Always Cloaca Cola",image:"the_choice_of_an_old_generation"},{id:133,name:"Thar She Blows!",image:"barfily_ever_after"},{id:134,name:"Partners in Crime",image:"criminal_conspiracy"},{id:135,name:"Party Killer",image:"you_ruin_everything"},{id:136,name:"Master Craftsman",image:"the_harder_side_of_sears"},{id:137,name:"Cool Guy",image:"cool_gold_jeff_game_cool"},{id:138,name:"Option Paralysis",image:"shirto_redbetter"},{id:139,name:"Omni-Cosplay",image:"may_the_force_boldy_go_a_wizard"},{id:140,name:"11 Martini Breakfast",image:"she_told_me_to_pick_up_olives"},{id:141,name:"Golden Pickaxe",image:"baloneysaurux_text"},{id:142,name:"Golden Idol",image:"bananarama_crux"},{id:143,name:"Golden Moustache",image:"badonkadonkus_flex"},{id:144,name:"Golden Burglar",image:"banangrama_xer"},{id:146,name:"Some Assembly Required",image:"college_kids_and_divorced_men"},{id:147,name:"Bucket List",image:"anger_management_about_schmidt"},{id:148,name:"Gotpork Connoisseur",image:"this_town_needs_an_enema"},{id:149,name:"A Gallon of Milk Keeps the Doctor Away",image:"this_this_lemonade"},{id:150,name:"Prime Directive Director",image:"ilovewesley"},{id:151,name:"Tentacle Tickler",image:"oh_the_horror"},{id:152,name:"LOVE, LOVE, LOVE",image:"all_you_need_is_it"},{id:153,name:"Gelatinous Hubris",image:"i_had_to_drink_from_the_liquid_cup"},{id:154,name:"Salads of Many Worlds",image:"in_space_noone_can_hear_you_laugh"},{id:155,name:"Ultimate Cosmic Power",image:"eleven_inch_flautist"},{id:156,name:"Commemorative Replica Blob",image:"cross_about_naught"},{id:157,name:"You Do It To Yourself",image:"working_class_republican"},{id:158,name:"Traditional Crimbo",image:"yule_be_happy"},{id:159,name:"Steak and a Beer, Eh?",image:"we_found_a_dead_mouse"},{id:160,name:"Talking Heads",image:"twenty_two_eyes"},{id:161,name:"Yule Have a Headache Tomorrow",image:"cuppa_cuppa_burning_goo"},{id:162,name:"Dreaming of a Bland Crimbo",image:"every_christmas_is_like_sunday"},{id:163,name:"HIGH SCORE",image:"no_religion_too"}];var b0=(e=>(e[e.NONE=0]="NONE",e[e.HAVE=1]="HAVE",e))(b0||{});function sae(e=0){const t=JSON.stringify(SD).length;return t===e?null:{data:SD,size:t}}const uae=(e="")=>e.split("").map((t,r)=>[r+1,Number(t)]),AD=[{name:"Seal Clubber",id:1,image:"club"},{name:"Turtle Tamer",id:2,image:"turtle"},{name:"Pastamancer",id:3,image:"pasta"},{name:"Sauceror",id:4,image:"saucepan"},{name:"Disco Bandit",id:5,image:"discoball"},{name:"Accordion Thief",id:6,image:"accordion"},{name:"Avatar of Boris",id:11,image:"trusty"},{name:"Zombie Master",id:12,image:"tombstone"},{name:"Avatar of Jarlsberg",id:14,image:"path12icon"},{name:"Avatar of Sneaky Pete",id:15,image:"bigglasses"},{name:"Ed the Undying",id:17,image:"thoth"},{name:"Cow Puncher",id:18,image:"darkcow"},{name:"Beanslinger",id:19,image:"beancan"},{name:"Snake Oiler",id:20,image:"tinysnake"},{name:"Gelatinous Noob",id:23,image:"gelatinousicon"},{name:"Vampyre",id:24,image:"vampirefangs"},{name:"Plumber",id:25,image:"mario_hammer2"},{name:"Grey Goo",id:27,image:"greygooring"},{name:"Pig Skinner",id:28,image:"football2"},{name:"Cheese Wizard",id:29,image:"jarl_cheeseslice"},{name:"Jazz Agent",id:30,image:"motif"}];function lae(e){const t=JSON.stringify(AD).length;return t===e?null:{data:AD,size:t}}const cae=e=>({id:Number(e[0]),name:e[1],image:e[2]}),fae=async e=>{const t=await y0("statuseffects",e);return t===null?null:{...t,data:t.data.filter(r=>r.length>2).map(cae)}},dae=2;function _D(e){const t=Fie.uncrush(decodeURIComponent(e.replace(/\n/g,""))),r=JSON.parse(t);return{meta:Yie(r.meta),skills:iae(r.skills),familiars:qie(r.familiars),trophies:uae(r.trophies),outfitTattoos:oae(r.outfitTattoos),paths:Zie(r.paths),iotms:Hie(r.iotms),items:Kie(r.items)}}var NS="persist:",LS="persist/FLUSH",x0="persist/REHYDRATE",zS="persist/PAUSE",VS="persist/PERSIST",qS="persist/PURGE",US="persist/REGISTER",pae=-1;function ah(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ah=function(r){return typeof r}:ah=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ah(e)}function CD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hae(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var kae=5e3;function Eae(e,t){var r=e.version!==void 0?e.version:pae;e.debug;var n=e.stateReconciler===void 0?gae:e.stateReconciler,i=e.getStoredState||bae,a=e.timeout!==void 0?e.timeout:kae,o=null,s=!1,u=!0,l=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(c,f){var d=c||{},h=d._persist,g=_ae(d,["_persist"]),p=g;if(f.type===VS){var b=!1,y=function(k,D){b||(f.rehydrate(e.key,k,D),b=!0)};if(a&&setTimeout(function(){!b&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,o||(o=vae(e)),h)return ki({},t(p,f),{_persist:h});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(A){var k=e.migrate||function(D,P){return Promise.resolve(D)};k(A,r).then(function(D){y(D)},function(D){y(void 0,D)})},function(A){y(void 0,A)}),ki({},t(p,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===qS)return s=!0,f.result(wae(e)),ki({},t(p,f),{_persist:h});if(f.type===LS)return f.result(o&&o.flush()),ki({},t(p,f),{_persist:h});if(f.type===zS)u=!0;else if(f.type===x0){if(s)return ki({},p,{_persist:ki({},h,{rehydrated:!0})});if(f.key===e.key){var v=t(p,f),m=f.payload,x=n!==!1&&m!==void 0?n(m,c,v,e):v,w=ki({},x,{_persist:ki({},h,{rehydrated:!0})});return l(w)}}}if(!h)return t(c,f);var S=t(p,f);return S===p?c:l(ki({},S,{_persist:h}))}}function ED(e){return Tae(e)||Pae(e)||Dae()}function Dae(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Pae(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Tae(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:L9,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case US:return X2({},t,{registry:[].concat(ED(t.registry),[r.key])});case x0:var n=t.registry.indexOf(r.key),i=ED(t.registry);return i.splice(n,1),X2({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Mae(e,t,r){var n=r||!1,i=RS($ae,L9,t&&t.enhancer?t.enhancer:void 0),a=function(l){i.dispatch({type:US,key:l})},o=function(l,c,f){var d={type:x0,payload:c,err:f,key:l};e.dispatch(d),i.dispatch(d),n&&s.getState().bootstrapped&&(n(),n=!1)},s=X2({},i,{purge:function(){var l=[];return e.dispatch({type:qS,result:function(f){l.push(f)}}),Promise.all(l)},flush:function(){var l=[];return e.dispatch({type:LS,result:function(f){l.push(f)}}),Promise.all(l)},pause:function(){e.dispatch({type:zS})},persist:function(){e.dispatch({type:VS,register:a,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}var HS={},WS={};WS.__esModule=!0;WS.default=Rae;function oh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oh=function(r){return typeof r}:oh=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},oh(e)}function Ay(){}var Bae={getItem:Ay,setItem:Ay,removeItem:Ay};function Iae(e){if((typeof self>"u"?"undefined":oh(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return!1}return!0}function Rae(e){var t="".concat(e,"Storage");return Iae(t)?self[t]:Bae}HS.__esModule=!0;HS.default=Nae;var jae=Fae(WS);function Fae(e){return e&&e.__esModule?e:{default:e}}function Nae(e){var t=(0,jae.default)(e);return{getItem:function(n){return new Promise(function(i,a){i(t.getItem(n))})},setItem:function(n,i){return new Promise(function(a,o){a(t.setItem(n,i))})},removeItem:function(n){return new Promise(function(i,a){i(t.removeItem(n))})}}}var z9=void 0,Lae=zae(HS);function zae(e){return e&&e.__esModule?e:{default:e}}var Vae=(0,Lae.default)("local");z9=Vae;/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */const V9=Symbol("Comlink.proxy"),qae=Symbol("Comlink.endpoint"),Uae=Symbol("Comlink.releaseProxy"),_y=Symbol("Comlink.finalizer"),sh=Symbol("Comlink.thrown"),q9=e=>typeof e=="object"&&e!==null||typeof e=="function",Hae={canHandle:e=>q9(e)&&e[V9],serialize(e){const{port1:t,port2:r}=new MessageChannel;return H9(e,t),[r,[r]]},deserialize(e){return e.start(),G9(e)}},Wae={canHandle:e=>q9(e)&&sh in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},U9=new Map([["proxy",Hae],["throw",Wae]]);function Gae(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function H9(e,t=globalThis,r=["*"]){t.addEventListener("message",function n(i){if(!i||!i.data)return;if(!Gae(r,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}const{id:a,type:o,path:s}=Object.assign({path:[]},i.data),u=(i.data.argumentList||[]).map(Ao);let l;try{const c=s.slice(0,-1).reduce((d,h)=>d[h],e),f=s.reduce((d,h)=>d[h],e);switch(o){case"GET":l=f;break;case"SET":c[s.slice(-1)[0]]=Ao(i.data.value),l=!0;break;case"APPLY":l=f.apply(c,u);break;case"CONSTRUCT":{const d=new f(...u);l=Zae(d)}break;case"ENDPOINT":{const{port1:d,port2:h}=new MessageChannel;H9(e,h),l=Jae(d,[d])}break;case"RELEASE":l=void 0;break;default:return}}catch(c){l={value:c,[sh]:0}}Promise.resolve(l).catch(c=>({value:c,[sh]:0})).then(c=>{const[f,d]=dm(c);t.postMessage(Object.assign(Object.assign({},f),{id:a}),d),o==="RELEASE"&&(t.removeEventListener("message",n),W9(t),_y in e&&typeof e[_y]=="function"&&e[_y]())}).catch(c=>{const[f,d]=dm({value:new TypeError("Unserializable return value"),[sh]:0});t.postMessage(Object.assign(Object.assign({},f),{id:a}),d)})}),t.start&&t.start()}function Kae(e){return e.constructor.name==="MessagePort"}function W9(e){Kae(e)&&e.close()}function G9(e,t){return Q2(e,[],t)}function pp(e){if(e)throw new Error("Proxy has been released and is not useable")}function K9(e){return Ss(e,{type:"RELEASE"}).then(()=>{W9(e)})}const cm=new WeakMap,fm="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(cm.get(e)||0)-1;cm.set(e,t),t===0&&K9(e)});function Yae(e,t){const r=(cm.get(t)||0)+1;cm.set(t,r),fm&&fm.register(e,t,e)}function Xae(e){fm&&fm.unregister(e)}function Q2(e,t=[],r=function(){}){let n=!1;const i=new Proxy(r,{get(a,o){if(pp(n),o===Uae)return()=>{Xae(i),K9(e),n=!0};if(o==="then"){if(t.length===0)return{then:()=>i};const s=Ss(e,{type:"GET",path:t.map(u=>u.toString())}).then(Ao);return s.then.bind(s)}return Q2(e,[...t,o])},set(a,o,s){pp(n);const[u,l]=dm(s);return Ss(e,{type:"SET",path:[...t,o].map(c=>c.toString()),value:u},l).then(Ao)},apply(a,o,s){pp(n);const u=t[t.length-1];if(u===qae)return Ss(e,{type:"ENDPOINT"}).then(Ao);if(u==="bind")return Q2(e,t.slice(0,-1));const[l,c]=PD(s);return Ss(e,{type:"APPLY",path:t.map(f=>f.toString()),argumentList:l},c).then(Ao)},construct(a,o){pp(n);const[s,u]=PD(o);return Ss(e,{type:"CONSTRUCT",path:t.map(l=>l.toString()),argumentList:s},u).then(Ao)}});return Yae(i,e),i}function Qae(e){return Array.prototype.concat.apply([],e)}function PD(e){const t=e.map(dm);return[t.map(r=>r[0]),Qae(t.map(r=>r[1]))]}const Y9=new WeakMap;function Jae(e,t){return Y9.set(e,t),e}function Zae(e){return Object.assign(e,{[V9]:!0})}function dm(e){for(const[t,r]of U9)if(r.canHandle(e)){const[n,i]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},i]}return[{type:"RAW",value:e},Y9.get(e)||[]]}function Ao(e){switch(e.type){case"HANDLER":return U9.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Ss(e,t,r){return new Promise(n=>{const i=eoe();e.addEventListener("message",function a(o){!o.data||!o.data.id||o.data.id!==i||(e.removeEventListener("message",a),n(o.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:i},t),r)})}function eoe(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function toe(){return new Worker("/assets/duplicateFinder-fc6003f2.js")}const X9=jie(),roe=X9.startListening;roe({predicate:(e,t)=>!(![pm.fulfilled,hm.fulfilled,mm.fulfilled,gm.fulfilled,vm.fulfilled,ym.fulfilled].some(r=>r.match(e))||e.payload===null||J2.some(r=>t.loading[r])||t.loading.wikiClashes),effect:async(e,{getState:t,dispatch:r})=>{const n=t(),i=J2.map(a=>n[a]).flat().reduce((a,o)=>"name"in o?[...a,o.name]:a,[]);r(uh(i))}});const noe=G9(new toe),uh=En("wikiClashes/process",async e=>await noe(e)),J2=["classes","effects","familiars","iotms","items","paths","skills","tattoos","trophies"],ioe={playerId:null,favouritePlayerId:null,playerData:null,classes:[],effects:[],familiars:[],iotms:[],items:[],paths:[],skills:[],tattoos:[],trophies:[],wikiClashes:[],sizeAtLastFetch:{classes:0,effects:0,familiars:0,iotms:0,items:0,paths:0,skills:0,tattoos:0,trophies:0},loading:{classes:!1,effects:!1,familiars:!1,iotms:!1,items:!1,paths:!1,skills:!1,tattoos:!1,trophies:!1,wikiClashes:!1},error:{wikiClashes:!1},errorMessage:{}},Z2=En("classes/fetch",async e=>lae(e)),pm=En("effects/fetch",async e=>fae(e)),hm=En("familiars/fetch",async e=>Vie(e)),eb=En("iotms/fetch",async e=>Uie(e)),mm=En("items/fetch",async e=>Gie(e)),tb=En("paths/fetch",async e=>Xie(e)),gm=En("skills/fetch",async e=>nae(e)),vm=En("tattoos/fetch",async e=>aae(e)),ym=En("trophies/fetch",async e=>sae(e)),Q9=En("all/fetch",async(e,{getState:t,dispatch:r})=>{const n=t();r(Z2(e?0:n.sizeAtLastFetch.classes)),r(pm(e?0:n.sizeAtLastFetch.effects)),r(hm(e?0:n.sizeAtLastFetch.familiars)),r(eb(e?0:n.sizeAtLastFetch.iotms)),r(mm(e?0:n.sizeAtLastFetch.items)),r(tb(e?0:n.sizeAtLastFetch.paths)),r(gm(e?0:n.sizeAtLastFetch.skills)),r(vm(e?0:n.sizeAtLastFetch.tattoos)),r(ym(e?0:n.sizeAtLastFetch.trophies))}),lh=En("playerData/fetch",async e=>{const t=await fetch(`https://oaf-discord.herokuapp.com/api/greenbox/${e}`),r=await t.json();if(t.status!==200)throw new Error(r.error);return r.greenboxString}),J9=Hn("playerData/load"),Z9=Hn("favouritePlayerId/update"),aoe=vie({name:"greenbox",initialState:ioe,reducers:{},extraReducers:e=>{e.addCase(Z2.pending,t=>{t.loading.classes=!0}).addCase(Z2.fulfilled,(t,r)=>{r.payload!==null&&(t.classes=r.payload.data,t.sizeAtLastFetch.classes=r.payload.size),t.loading.classes=!1}).addCase(pm.pending,t=>{t.loading.effects=!0}).addCase(pm.fulfilled,(t,r)=>{r.payload!==null&&(t.effects=r.payload.data,t.sizeAtLastFetch.effects=r.payload.size),t.loading.effects=!1}).addCase(hm.pending,t=>{t.loading.familiars=!0}).addCase(hm.fulfilled,(t,r)=>{r.payload!==null&&(t.familiars=r.payload.data,t.sizeAtLastFetch.familiars=r.payload.size),t.loading.familiars=!1}).addCase(eb.pending,t=>{t.loading.iotms=!0}).addCase(eb.fulfilled,(t,r)=>{r.payload!==null&&(t.iotms=r.payload.data,t.sizeAtLastFetch.iotms=r.payload.size),t.loading.iotms=!1}).addCase(mm.pending,t=>{t.loading.items=!0}).addCase(mm.fulfilled,(t,r)=>{if(r.payload!==null){const n=r.payload.data;t.items=n.reduce((i,a)=>({...i,[a.id]:a}),{}),t.sizeAtLastFetch.items=r.payload.size}t.loading.items=!1}).addCase(tb.pending,t=>{t.loading.paths=!0}).addCase(tb.fulfilled,(t,r)=>{r.payload!==null&&(t.paths=r.payload.data,t.sizeAtLastFetch.paths=r.payload.size),t.loading.paths=!1}).addCase(gm.pending,t=>{t.loading.skills=!0}).addCase(gm.fulfilled,(t,r)=>{r.payload!==null&&(t.skills=r.payload.data,t.sizeAtLastFetch.skills=r.payload.size),t.loading.skills=!1}).addCase(vm.pending,t=>{t.loading.tattoos=!0}).addCase(vm.fulfilled,(t,r)=>{r.payload!==null&&(t.tattoos=r.payload.data,t.sizeAtLastFetch.tattoos=r.payload.size),t.loading.tattoos=!1}).addCase(ym.pending,t=>{t.loading.trophies=!0}).addCase(ym.fulfilled,(t,r)=>{r.payload!==null&&(t.trophies=r.payload.data,t.sizeAtLastFetch.trophies=r.payload.size),t.loading.trophies=!1}).addCase(uh.pending,t=>{t.loading.wikiClashes=!0,t.error.wikiClashes=!1}).addCase(uh.fulfilled,(t,r)=>{t.wikiClashes=r.payload,t.loading.wikiClashes=!1}).addCase(uh.rejected,t=>{t.error.wikiClashes=!0}).addCase(lh.pending,(t,r)=>{t.loading.playerData=!0}).addCase(lh.fulfilled,(t,r)=>{t.playerId=r.meta.arg;const n=r.payload;t.playerData=_D(n),t.loading.playerData=!1,t.error.playerData=!1,t.errorMessage.playerData=void 0}).addCase(J9,(t,r)=>{t.playerId=null;const n=r.payload;t.playerData=_D(n)}).addCase(lh.rejected,(t,r)=>{t.loading.playerData=!1,t.error.playerData=!0,t.errorMessage.playerData=r.error.message}).addCase(Z9,(t,r)=>{t.favouritePlayerId=r.payload})}}),ooe=[...J2,"wikiClashes","sizeAtLastFetch","favouritePlayerId"],soe=Eae({whitelist:ooe,key:"greenbox",version:1,storage:z9},aoe.reducer),e6=die({reducer:soe,middleware:e=>e({serializableCheck:{ignoredActions:[LS,x0,zS,VS,qS,US]}}).prepend(X9.middleware)}),uoe=Mae(e6),os=e=>g0([r=>{var n;return(n=r.playerData)==null?void 0:n[e]}],r=>r??[]),t6=os("skills"),r6=g0(t6,e=>e.reduce((t,r)=>({...t,[r[0]]:r}),{})),loe=g0(e=>e.skills,e=>e.reduce((t,r)=>({...t,[r.id]:r}),{})),coe=os("items"),foe=g0(coe,e=>e.reduce((t,r)=>({...t,[r[0]]:r}),{}));function n6(){return Fh("","contrast(0.6666) invert(1) hue-rotate(180deg)")}const i6=NG({config:{initialColorMode:"system",useSystemColorMode:!0,disableTransitionOnChange:!1},semanticTokens:{colors:{"chakra-body-bg":{_light:"#f6f8fa",_dark:"#2a292a"},accent:{_light:"#ffffff",_dark:"#46454a"},imagebg:{_light:"#ffffff",_dark:"#2a292a"},complete:{_light:"#afa",_dark:"green.800"},partial:{_light:"#eea",_dark:"yellow.800"}}}}),GS=Zre,Ce=qre;var a6={exports:{}},o6={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},s6={exports:{}},doe=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},poe=doe,hoe=Array.prototype.concat,moe=Array.prototype.slice,TD=s6.exports=function(t){for(var r=[],n=0,i=t.length;n=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};qr.to.keyword=function(e){return l6[e.slice(0,3)]};function ja(e,t,r){return Math.min(Math.max(t,e),r)}function hp(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var voe=a6.exports;const df=o6,c6={};for(const e of Object.keys(df))c6[df[e]]=e;const ae={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var f6=ae;for(const e of Object.keys(ae)){if(!("channels"in ae[e]))throw new Error("missing channels property: "+e);if(!("labels"in ae[e]))throw new Error("missing channel labels property: "+e);if(ae[e].labels.length!==ae[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=ae[e];delete ae[e].channels,delete ae[e].labels,Object.defineProperty(ae[e],"channels",{value:t}),Object.defineProperty(ae[e],"labels",{value:r})}ae.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i;let s,u;a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+a)/2;return a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]};ae.rgb.hsv=function(e){let t,r,n,i,a;const o=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(o,s,u),c=l-Math.min(o,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,a=0):(a=c/l,t=f(o),r=f(s),n=f(u),o===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,l*100]};ae.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=ae.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,a*100,n*100]};ae.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),a=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function yoe(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ae.rgb.keyword=function(e){const t=c6[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(df)){const a=df[i],o=yoe(e,a);o.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,a*100,o*100]};ae.rgb.lab=function(e){const t=ae.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*n-16,o=500*(r-n),s=200*(n-i);return[a,o,s]};ae.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,a,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?o=s+(i-s)*6*a:2*a<1?o=i:3*a<2?o=s+(i-s)*(2/3-a)*6:o=s,u[l]=o*255;return u};ae.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=a<=1?a:2-a;const o=(n+r)/2,s=n===0?2*i/(a+i):2*r/(n+r);return[t,s*100,o*100]};ae.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};ae.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let a,o;o=(2-r)*n;const s=(2-r)*i;return a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]};ae.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let a;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),s=1-n;a=6*t-o,o&1&&(a=1-a);const u=r+a*(s-r);let l,c,f;switch(o){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]};ae.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,s*255]};ae.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,a,o;return i=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};ae.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,a=500*(t-r),o=200*(r-n);return[i,a,o]};ae.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,a,o;a=(t+16)/116,i=r/500+a,o=a-n/200;const s=a**3,u=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};ae.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(r*r+n*n);return[t,o,i]};ae.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,a=r*Math.cos(i),o=r*Math.sin(i);return[t,a,o]};ae.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let a=t===null?ae.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(o+=60),o};ae.hsv.ansi16=function(e){return ae.rgb.ansi16(ae.hsv.rgb(e),e[2])};ae.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};ae.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,i,a]};ae.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};ae.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};ae.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]};ae.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),o=i-a;let s,u;return o<1?s=a/(1-o):s=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,s*100]};ae.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};ae.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};ae.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let u=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};ae.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};ae.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};ae.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};ae.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]};ae.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ae.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ae.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};ae.gray.hsl=function(e){return[0,0,e[0]]};ae.gray.hsv=ae.gray.hsl;ae.gray.hwb=function(e){return[0,100,e[0]]};ae.gray.cmyk=function(e){return[0,0,0,e[0]]};ae.gray.lab=function(e){return[e[0],0,0]};ae.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};ae.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const bm=f6;function boe(){const e={},t=Object.keys(bm);for(let r=t.length,n=0;n1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Eoe(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let a=i.length,o=0;o{As[e]={},Object.defineProperty(As[e],"channels",{value:rb[e].channels}),Object.defineProperty(As[e],"labels",{value:rb[e].labels});const t=_oe(e);Object.keys(t).forEach(n=>{const i=t[n];As[e][n]=Eoe(i),As[e][n].raw=koe(i)})});var Doe=As;const _s=voe,Lr=Doe,d6=["keyword","gray","hex"],nb={};for(const e of Object.keys(Lr))nb[[...Lr[e].labels].sort().join("")]=e;const xm={};function Rt(e,t){if(!(this instanceof Rt))return new Rt(e,t);if(t&&t in d6&&(t=null),t&&!(t in Lr))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Rt)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=_s.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=Lr[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=Lr[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=ib(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in nb))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=nb[a];const{labels:o}=Lr[this.model],s=[];for(r=0;r(e%360+360)%360),saturationl:dt("hsl",1,Ct(100)),lightness:dt("hsl",2,Ct(100)),saturationv:dt("hsv",1,Ct(100)),value:dt("hsv",2,Ct(100)),chroma:dt("hcg",1,Ct(100)),gray:dt("hcg",2,Ct(100)),white:dt("hwb",1,Ct(100)),wblack:dt("hwb",2,Ct(100)),cyan:dt("cmyk",0,Ct(100)),magenta:dt("cmyk",1,Ct(100)),yellow:dt("cmyk",2,Ct(100)),black:dt("cmyk",3,Ct(100)),x:dt("xyz",0,Ct(95.047)),y:dt("xyz",1,Ct(100)),z:dt("xyz",2,Ct(108.833)),l:dt("lab",0,Ct(100)),a:dt("lab",1),b:dt("lab",2),keyword(e){return e!==void 0?new Rt(e):Lr[this.model].keyword(this.color)},hex(e){return e!==void 0?new Rt(e):_s.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Rt(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),_s.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Rt.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=r.alpha()-n.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,u=1-s;return Rt.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(Lr)){if(d6.includes(e))continue;const{channels:t}=Lr[e];Rt.prototype[e]=function(...r){return this.model===e?new Rt(this):r.length>0?new Rt(r,e):new Rt([...Ooe(Lr[this.model][e].raw(this.color)),this.valpha],e)},Rt[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=ib(r,t)),new Rt(n,e)}}function Poe(e,t){return Number(e.toFixed(t))}function Toe(e){return function(t){return Poe(t,e)}}function dt(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(xm[n]||(xm[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function Ct(e){return function(t){return Math.max(0,Math.min(e,t))}}function Ooe(e){return Array.isArray(e)?e:[e]}function ib(e,t){for(let r=0;ro>=0&&o`https://s3.amazonaws.com/images.kingdomofloathing.com/${e}`,[e]);return C.useEffect(()=>{const c=`alphamask-${e}`,f=localStorage.getItem(c);if(f){u({maskImage:`url(${f})`,maskSize:"100% 100%"});return}const d=document.createElement("canvas");d.width=r,d.height=n;const h=d.getContext("2d");async function g(){const b=await(await fetch(l)).blob(),y=await createImageBitmap(b);h.drawImage(y,0,0);const v=h.getImageData(0,0,r,n),m=Boe(v.data,r),x=new ImageData(m,r,n);h.putImageData(x,0,0);const w=d.toDataURL();localStorage.setItem(c,w),u({maskImage:`url(${w})`,maskSize:"100% 100%"})}g()},[l,e]),_.jsx(w0,{alt:t,src:l,width:i,height:a,sx:s,...o})}function Ioe(e){return e>0?"complete":null}function p6(e){switch(e){case Vn.HARDCORE:return"complete";case Vn.SOFTCORE:return"partial";default:return null}}function h6(e){switch(e){case Vn.HARDCORE:return"Hardcore permed";case Vn.SOFTCORE:return"Softcore permed";default:return"Not permed"}}const Roe=(e,t)=>Array(Math.ceil(e.length/t)).fill(0).map((r,n)=>e.slice(n*t,n*t+t));function joe(e){return e!=null}function Foe(e){return e.id>=10&&e.id<=14?.1:[80,81,121,128,134,135,144,180,7254].includes(e.id)?.2:e.id>=28&&e.id<=43||e.id===56||e.id===57?.3:e.id>=46&&e.id<=48?.32:e.id>=92&&e.id<=106?.31:Math.floor(e.id/1e3)}function Noe(e,t){if(t)return[t.name,`itemimages/${t.image}.gif`];switch(e){case 0:return["Other","itemimages/book.gif"];case .1:return["Gnomish Gnomad Camp","itemimages/tinygnome.gif"];case .2:return["PvP","itemimages/swords.gif"];case .31:return["Dreadsylvania","itemimages/dvtat.gif"];case .3:return["Hobopolis","otherimages/sigils/hobotat19.gif"];case .32:return["Slime Tube","itemimages/slimeling.gif"];default:return["Unknown","itemimages/book.gif"]}}const Loe=Q$({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});function KS(){const e=Fh(0,100);return _.jsx(yn,{width:37.5,height:37.5,p:1,children:_.jsx(w0,{src:"/loading.png",alt:"Loading",filter:`invert(${e})`,sx:{animation:`${Loe} 1.5s infinite linear`,opacity:"0.3"}})})}var wm={exports:{}};/*! https://mths.be/he v1.2.0 by @mathias | MIT license */wm.exports;(function(e,t){(function(r){var n=t,i=e&&e.exports==n&&e,a=typeof Ln=="object"&&Ln;(a.global===a||a.window===a)&&(r=a);var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,u=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot"," ":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf",ℬ:"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf",ℭ:"Cfr","𝒞":"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH","ⅇ":"ee",ℯ:"escr","𝔢":"efr","𝕖":"eopf",ℰ:"Escr","𝔈":"Efr","𝔼":"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil","𝔥":"hfr",ℎ:"planckh","𝒽":"hscr","𝕙":"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf",ĵ:"jcirc",Ĵ:"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr",ķ:"kcedil",Ķ:"Kcedil","𝔩":"lfr","𝓁":"lscr",ℓ:"ell","𝕝":"lopf",ℒ:"Lscr","𝔏":"Lfr","𝕃":"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf",ℳ:"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr",ℕ:"Nopf","𝒩":"Nscr","𝔑":"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG","𝕠":"oopf","𝔬":"ofr",ℴ:"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf",ℙ:"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr",ℚ:"Qopf",ĸ:"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr",ŵ:"wcirc",Ŵ:"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf",ℨ:"Zfr",ℤ:"Zopf","𝒵":"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi","ϵ":"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},f=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},h=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,g=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` -`,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},y={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},v={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},m=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],x=String.fromCharCode,w={},S=w.hasOwnProperty,A=function($,q){return S.call($,q)},k=function($,q){for(var U=-1,Y=$.length;++U=55296&&$<=57343||$>1114111?(q&&O("character reference outside the permissible Unicode range"),"�"):A(v,$)?(q&&O("disallowed character reference"),v[$]):(q&&k(m,$)&&O("disallowed character reference"),$>65535&&($-=65536,U+=x($>>>10&1023|55296),$=56320|$&1023),U+=x($),U)},T=function($){return"&#x"+$.toString(16).toUpperCase()+";"},I=function($){return"&#"+$+";"},O=function($){throw Error("Parse error: "+$)},N=function($,q){q=D(q,N.options);var U=q.strict;U&&g.test($)&&O("forbidden code point");var Y=q.encodeEverything,K=q.useNamedReferences,Z=q.allowUnsafeSymbols,ue=q.decimal?I:T,he=function(le){return ue(le.charCodeAt(0))};return Y?($=$.replace(s,function(le){return K&&A(c,le)?"&"+c[le]+";":he(le)}),K&&($=$.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),K&&($=$.replace(l,function(le){return"&"+c[le]+";"}))):K?(Z||($=$.replace(f,function(le){return"&"+c[le]+";"})),$=$.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒"),$=$.replace(l,function(le){return"&"+c[le]+";"})):Z||($=$.replace(f,he)),$.replace(o,function(le){var se=le.charCodeAt(0),G=le.charCodeAt(1),J=(se-55296)*1024+G-56320+65536;return ue(J)}).replace(u,he)};N.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var j=function($,q){q=D(q,j.options);var U=q.strict;return U&&h.test($)&&O("malformed character reference"),$.replace(p,function(Y,K,Z,ue,he,le,se,G,J){var ee,z,de,ge,ie,be;return K?(ie=K,b[ie]):Z?(ie=Z,be=ue,be&&q.isAttributeValue?(U&&be=="="&&O("`&` did not start a character reference"),Y):(U&&O("named character reference was not terminated by a semicolon"),y[ie]+(be||""))):he?(de=he,z=le,U&&!z&&O("character reference was not terminated by a semicolon"),ee=parseInt(de,10),P(ee,U)):se?(ge=se,z=G,U&&!z&&O("character reference was not terminated by a semicolon"),ee=parseInt(ge,16),P(ee,U)):(U&&O("named character reference was not terminated by a semicolon"),Y)})};j.options={isAttributeValue:!1,strict:!1};var H=function($){return $.replace(f,function(q){return d[q]})},F={version:"1.2.0",encode:N,decode:j,escape:H,unescape:j};if(n&&!n.nodeType)if(i)i.exports=F;else for(var R in F)A(F,R)&&(n[R]=F[R]);else r.he=F})(Ln)})(wm,wm.exports);var zoe=wm.exports;const Sm=Pe(zoe);function Voe(e,t){switch(e){case"complete":return{backgroundColor:"complete"};case"partial":return{backgroundColor:"partial",backgroundImage:`repeating-linear-gradient(45deg, ${t} 25%, transparent 25%, transparent 75%, ${t} 75%, ${t}), repeating-linear-gradient(45deg, ${t} 25%, transparent 25%, transparent 75%, ${t} 75%, ${t})`,backgroundPosition:"0 0, 5px 5px",backgroundSize:"10px 10px"};default:return{backgroundColor:t}}}const qoe=["Some Assembly Required","Batter Up!"];function m6(e,t,r,n){if(e)return Sm.decode(e);const i=Sm.decode(t).replaceAll(" ","_");return n.includes(t)||qoe.includes(t)?`${i}_(${r})`:i}const Za=C.forwardRef(function({type:t,state:r,name:n,image:i,badges:a=null,sourceWidth:o=30,title:s=`${n} (${r||"do not have"})`,link:u,...l},c){const[f]=i4("colors",["accent"]),d=Voe(r,f),h=Ce(p=>p.wikiClashes),g=m6(u,n,t,h);return _.jsxs(dee,{ref:c,borderWidth:1,borderStyle:"solid",borderColor:"black",p:1,...d,title:s,position:"relative",overflow:"hidden",sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},_hover:{filter:d.backgroundColor?"brightness(90%)":void 0,backgroundColor:d.backgroundColor||"blackAlpha.50"},...l,children:[a&&_.jsx(yn,{position:"absolute",sx:{top:0,right:0},children:a}),typeof i=="string"?_.jsx(nl,{src:i,sourceWidth:o}):i,_.jsx(fee,{textAlign:"center",fontSize:"10px",href:`https://kol.coldfront.net/thekolwiki/index.php/${g}`,isExternal:!0,children:Sm.decode(n)})]})});function Uoe({skill:e}){const t=Ce(s=>s.wikiClashes),r=C.useMemo(()=>m6(void 0,e.name,"skill",t),[e,t]),[n,i]=C.useState(null),a=C.useRef(null);C.useEffect(()=>{async function s(){const l=await(await fetch(`https://l8sdqazjji.execute-api.us-east-1.amazonaws.com/?action=parse&page=${r}&prop=text&format=json`)).json(),c=/
(.*?)<\/td>/s.exec(l.parse.text["*"]);c==null?i("Cannot load wiki page (this is an experimental feature!)"):i(c[0].replaceAll('href="/','href="https://kol.coldfront.net/').replaceAll('p style="color:','p class="colortext" style="color:')+"
")}s()},[r]),C.useEffect(()=>{a.current&&n&&(a.current.innerHTML=n)},[a,n]);const o=n6();return _.jsx(gS,{sx:{img:{filter:o},"p.colortext":{filter:o}},ref:a,justifyContent:"center",children:_.jsx(KS,{})})}function bt({id:e}){const t=Ce(r6),n=Ce(loe)[e],[,i,a]=t[e]||[e,Vn.NONE,0];return _.jsxs(H8,{trigger:"hover",isLazy:!0,children:[_.jsx(U8,{children:_.jsx(Za,{type:"skill",name:n.name,image:`itemimages/${n.image}`,state:p6(i),title:h6(i),badges:a?_.jsxs(t0,{mr:1,title:`Skill at level ${a}`,children:[a," / ",eae(n.id)]}):null})}),_.jsxs(Y8,{style:{"--popper-bg":"var(--chakra-colors-imagebg)"},whiteSpace:"normal",children:[_.jsx(W8,{}),_.jsx(G8,{children:_.jsx(Uoe,{skill:n})})]})]})}function un({image:e,title:t,right:r=null,children:n}){return _.jsxs(Ia,{spacing:4,children:[_.jsxs(e0,{children:[_.jsx(nl,{src:e,sourceWidth:e.includes("sigils/")?50:30,width:30,height:30}),_.jsx(No,{as:"h3",fontWeight:"normal",fontSize:"2xl",children:t}),r]}),n]})}function Jn(){return _.jsx(Jt,{bg:"chakra-border-color"})}function Hoe(){return _.jsx(un,{title:"The Machine",image:"itemimages/dv_skullcap.gif",children:_.jsx(Yte,{children:_.jsxs(X8,{children:[_.jsx(Kte,{children:_.jsxs(gs,{textAlign:"center",children:[_.jsx(On,{width:"80px",children:_.jsx(nl,{src:"itemimages/brain.gif",alt:"Class of the brains in The Machine"})}),_.jsx(On,{title:"Seal Clubber",children:"SC"}),_.jsx(On,{title:"Turtle Tamer",children:"TT"}),_.jsx(On,{title:"Pastamancer",children:"PA"}),_.jsx(On,{title:"Sauceror",children:"S"}),_.jsx(On,{title:"Disco Bandit",children:"DB"})]})}),_.jsxs(Xte,{children:[_.jsxs(gs,{children:[_.jsx(On,{title:"Turtle Tamer",children:"TT"}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:92})}),_.jsx(Jn,{}),_.jsx(Jn,{}),_.jsx(Jn,{}),_.jsx(Jn,{})]}),_.jsxs(gs,{children:[_.jsx(On,{title:"Pastamancer",children:"PA"}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:93})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:97})}),_.jsx(Jn,{}),_.jsx(Jn,{}),_.jsx(Jn,{})]}),_.jsxs(gs,{children:[_.jsx(On,{title:"Sauceror",children:"S"}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:94})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:98})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:101})}),_.jsx(Jn,{}),_.jsx(Jn,{})]}),_.jsxs(gs,{children:[_.jsx(On,{title:"Disco Bandit",children:"DB"}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:95})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:99})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:102})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:104})}),_.jsx(Jn,{})]}),_.jsxs(gs,{children:[_.jsx(On,{title:"Accordion Thief",children:"AT"}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:96})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:100})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:103})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:105})}),_.jsx(Jt,{padding:1,children:_.jsx(bt,{id:106})})]})]})]})})})}var g6={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i-1}var Que=Xue,Jue=A0;function Zue(e,t){var r=this.__data__,n=Jue(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ele=Zue,tle=jue,rle=Hue,nle=Kue,ile=Que,ale=ele;function sl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},To=function(t){return vd(t)&&t.indexOf("%")===t.length-1},Q=function(t){return yce(t)&&!yd(t)},Pt=function(t){return Q(t)||vd(t)},Sce=0,E0=function(t){var r=++Sce;return"".concat(t||"").concat(r)},Ru=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Q(t)&&!vd(t))return n;var a;if(To(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return yd(a)&&(a=n),i&&a>r&&(a=r),a},da=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Ace=function(t){if(!Ht(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Pce(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var VD={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Fa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},qD=null,Dy=null,iA=function e(t){if(t===qD&&Ht(Dy))return Dy;var r=[];return C.Children.forEach(t,function(n){ve(n)||(V$.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Dy=r,qD=t,r};function Wn(e,t){var r=[],n=[];return Ht(t)?n=t.map(function(i){return Fa(i)}):n=[Fa(t)],iA(e).forEach(function(i){var a=xn(i,"type.displayName")||xn(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ji(e,t){var r=Wn(e,t);return r&&r[0]}var UD=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Q(n)||n<=0||!Q(i)||i<=0)},Tce=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Oce=function(t){return t&&t.type&&vd(t.type)&&Tce.indexOf(t.type)>=0},$ce=function(t,r,n,i){var a,o=(a=Ey==null?void 0:Ey[i])!==null&&a!==void 0?a:[];return!xe(t)&&(i&&o.includes(r)||Cce.includes(r))||n&&nA.includes(r)},ze=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(C.isValidElement(t)&&(i=t.props),!il(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;$ce((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},k6=function e(t,r){if(t===r)return!0;var n=C.Children.count(t);if(n!==C.Children.count(r))return!1;if(n===0)return!0;if(n===1)return HD(Ht(t)?t[0]:t,Ht(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jce(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function ub(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=Rce(e,Ice),u=i||{width:r,height:n,x:0,y:0},l=Ke("recharts-surface",a);return V.createElement("svg",sb({},ze(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),V.createElement("title",null,e.title),V.createElement("desc",null,e.desc),t)}var Fce=["children","className"];function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lce(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Ut=V.forwardRef(function(e,t){var r=e.children,n=e.className,i=Nce(e,Fce),a=Ke("recharts-layer",n);return V.createElement("g",lb({className:a},ze(i,!0),{ref:t}),r)}),zce=_0;function Vce(){this.__data__=new zce,this.size=0}var qce=Vce;function Uce(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Hce=Uce;function Wce(e){return this.__data__.get(e)}var Gce=Wce;function Kce(e){return this.__data__.has(e)}var Yce=Kce,Xce=_0,Qce=JS,Jce=ZS,Zce=200;function efe(e,t){var r=this.__data__;if(r instanceof Xce){var n=r.__data__;if(!Qce||n.lengths))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&Sfe?new yfe:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=kde}var uA=Ede,Dde=to,Pde=uA,Tde=ro,Ode="[object Arguments]",$de="[object Array]",Mde="[object Boolean]",Bde="[object Date]",Ide="[object Error]",Rde="[object Function]",jde="[object Map]",Fde="[object Number]",Nde="[object Object]",Lde="[object RegExp]",zde="[object Set]",Vde="[object String]",qde="[object WeakMap]",Ude="[object ArrayBuffer]",Hde="[object DataView]",Wde="[object Float32Array]",Gde="[object Float64Array]",Kde="[object Int8Array]",Yde="[object Int16Array]",Xde="[object Int32Array]",Qde="[object Uint8Array]",Jde="[object Uint8ClampedArray]",Zde="[object Uint16Array]",epe="[object Uint32Array]",Je={};Je[Wde]=Je[Gde]=Je[Kde]=Je[Yde]=Je[Xde]=Je[Qde]=Je[Jde]=Je[Zde]=Je[epe]=!0;Je[Ode]=Je[$de]=Je[Ude]=Je[Mde]=Je[Hde]=Je[Bde]=Je[Ide]=Je[Rde]=Je[jde]=Je[Fde]=Je[Nde]=Je[Lde]=Je[zde]=Je[Vde]=Je[qde]=!1;function tpe(e){return Tde(e)&&Pde(e.length)&&!!Je[Dde(e)]}var rpe=tpe;function npe(e){return function(t){return e(t)}}var I6=npe,Em={exports:{}};Em.exports;(function(e,t){var r=v6,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Em,Em.exports);var ipe=Em.exports,ape=rpe,ope=I6,JD=ipe,ZD=JD&&JD.isTypedArray,spe=ZD?ope(ZD):ape,R6=spe,upe=fde,lpe=oA,cpe=br,fpe=B6,dpe=sA,ppe=R6,hpe=Object.prototype,mpe=hpe.hasOwnProperty;function gpe(e,t){var r=cpe(e),n=!r&&lpe(e),i=!r&&!n&&fpe(e),a=!r&&!n&&!i&&ppe(e),o=r||n||i||a,s=o?upe(e.length,String):[],u=s.length;for(var l in e)(t||mpe.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||dpe(l,u)))&&s.push(l);return s}var vpe=gpe,ype=Object.prototype;function bpe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ype;return e===r}var xpe=bpe;function wpe(e,t){return function(r){return e(t(r))}}var Spe=wpe,Ape=Spe,_pe=Ape(Object.keys,Object),Cpe=_pe,kpe=xpe,Epe=Cpe,Dpe=Object.prototype,Ppe=Dpe.hasOwnProperty;function Tpe(e){if(!kpe(e))return Epe(e);var t=[];for(var r in Object(e))Ppe.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ope=Tpe,$pe=YS,Mpe=uA;function Bpe(e){return e!=null&&Mpe(e.length)&&!$pe(e)}var bd=Bpe,Ipe=vpe,Rpe=Ope,jpe=bd;function Fpe(e){return jpe(e)?Ipe(e):Rpe(e)}var D0=Fpe,Npe=Zfe,Lpe=lde,zpe=D0;function Vpe(e){return Npe(e,zpe,Lpe)}var qpe=Vpe,e3=qpe,Upe=1,Hpe=Object.prototype,Wpe=Hpe.hasOwnProperty;function Gpe(e,t,r,n,i,a){var o=r&Upe,s=e3(e),u=s.length,l=e3(t),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in t:Wpe.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var b=o;++f-1}var Hme=Ume;function Wme(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=sge){var l=t?null:age(e);if(l)return oge(l);o=!1,i=ige,u=new tge}else u=t?[]:s;e:for(;++ni?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:gge(e,t,r)}var yge=vge,bge="\\ud800-\\udfff",xge="\\u0300-\\u036f",wge="\\ufe20-\\ufe2f",Sge="\\u20d0-\\u20ff",Age=xge+wge+Sge,_ge="\\ufe0e\\ufe0f",Cge="\\u200d",kge=RegExp("["+Cge+bge+Age+_ge+"]");function Ege(e){return kge.test(e)}var q6=Ege;function Dge(e){return e.split("")}var Pge=Dge,U6="\\ud800-\\udfff",Tge="\\u0300-\\u036f",Oge="\\ufe20-\\ufe2f",$ge="\\u20d0-\\u20ff",Mge=Tge+Oge+$ge,Bge="\\ufe0e\\ufe0f",Ige="["+U6+"]",mb="["+Mge+"]",gb="\\ud83c[\\udffb-\\udfff]",Rge="(?:"+mb+"|"+gb+")",H6="[^"+U6+"]",W6="(?:\\ud83c[\\udde6-\\uddff]){2}",G6="[\\ud800-\\udbff][\\udc00-\\udfff]",jge="\\u200d",K6=Rge+"?",Y6="["+Bge+"]?",Fge="(?:"+jge+"(?:"+[H6,W6,G6].join("|")+")"+Y6+K6+")*",Nge=Y6+K6+Fge,Lge="(?:"+[H6+mb+"?",mb,W6,G6,Ige].join("|")+")",zge=RegExp(gb+"(?="+gb+")|"+Lge+Nge,"g");function Vge(e){return e.match(zge)||[]}var qge=Vge,Uge=Pge,Hge=q6,Wge=qge;function Gge(e){return Hge(e)?Wge(e):Uge(e)}var Kge=Gge,Yge=yge,Xge=q6,Qge=Kge,Jge=S6;function Zge(e){return function(t){t=Jge(t);var r=Xge(t)?Qge(t):void 0,n=r?r[0]:t.charAt(0),i=r?Yge(r,1).join(""):t.slice(1);return n[e]()+i}}var e0e=Zge,t0e=e0e,r0e=t0e("toUpperCase"),n0e=r0e;const P0=Pe(n0e);function He(e){return function(){return e}}const X6=Math.cos,Pm=Math.sin,Kn=Math.sqrt,Tm=Math.PI,T0=2*Tm,vb=Math.PI,yb=2*vb,bo=1e-6,i0e=yb-bo;function Q6(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Q6;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;ibo)if(!(Math.abs(f*u-l*c)>bo)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,g=i-s,p=u*u+l*l,b=h*h+g*g,y=Math.sqrt(p),v=Math.sqrt(d),m=a*Math.tan((vb-Math.acos((p+d-b)/(2*y*v)))/2),x=m/v,w=m/y;Math.abs(x-1)>bo&&this._append`L${t+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*h>c*g)},${this._x1=t+w*u},${this._y1=r+w*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),u=n*Math.sin(i),l=t+s,c=r+u,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>bo||Math.abs(this._y1-c)>bo)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%yb+yb),d>i0e?this._append`A${n},${n},0,1,${f},${t-s},${r-u}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:d>bo&&this._append`A${n},${n},0,${+(d>=vb)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};function cA(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new o0e(t)}function fA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function J6(e){this._context=e}J6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function O0(e){return new J6(e)}function Z6(e){return e[0]}function eB(e){return e[1]}function tB(e,t){var r=He(!0),n=null,i=O0,a=null,o=cA(s);e=typeof e=="function"?e:e===void 0?Z6:He(e),t=typeof t=="function"?t:t===void 0?eB:He(t);function s(u){var l,c=(u=fA(u)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),l=0;l<=c;++l)!(l=h;--g)s.point(m[g],x[g]);s.lineEnd(),s.areaEnd()}y&&(m[d]=+e(b,d,f),x[d]=+t(b,d,f),s.point(n?+n(b,d,f):m[d],r?+r(b,d,f):x[d]))}if(v)return s=null,v+""||null}function c(){return tB().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:He(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:He(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:He(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:He(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:He(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:He(+f),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(n).y(t)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:He(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}class rB{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function s0e(e){return new rB(e,!0)}function u0e(e){return new rB(e,!1)}const dA={draw(e,t){const r=Kn(t/Tm);e.moveTo(r,0),e.arc(0,0,r,0,T0)}},l0e={draw(e,t){const r=Kn(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},nB=Kn(1/3),c0e=nB*2,f0e={draw(e,t){const r=Kn(t/c0e),n=r*nB;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},d0e={draw(e,t){const r=Kn(t),n=-r/2;e.rect(n,n,r,r)}},p0e=.8908130915292852,iB=Pm(Tm/10)/Pm(7*Tm/10),h0e=Pm(T0/10)*iB,m0e=-X6(T0/10)*iB,g0e={draw(e,t){const r=Kn(t*p0e),n=h0e*r,i=m0e*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=T0*a/5,s=X6(o),u=Pm(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},$y=Kn(3),v0e={draw(e,t){const r=-Kn(t/($y*3));e.moveTo(0,r*2),e.lineTo(-$y*r,-r),e.lineTo($y*r,-r),e.closePath()}},nn=-.5,an=Kn(3)/2,bb=1/Kn(12),y0e=(bb/2+1)*3,b0e={draw(e,t){const r=Kn(t/y0e),n=r/2,i=r*bb,a=n,o=r*bb+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(nn*n-an*i,an*n+nn*i),e.lineTo(nn*a-an*o,an*a+nn*o),e.lineTo(nn*s-an*u,an*s+nn*u),e.lineTo(nn*n+an*i,nn*i-an*n),e.lineTo(nn*a+an*o,nn*o-an*a),e.lineTo(nn*s+an*u,nn*u-an*s),e.closePath()}};function x0e(e,t){let r=null,n=cA(i);e=typeof e=="function"?e:He(e||dA),t=typeof t=="function"?t:He(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:He(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:He(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Om(){}function $m(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function aB(e){this._context=e}aB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$m(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$m(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function w0e(e){return new aB(e)}function oB(e){this._context=e}oB.prototype={areaStart:Om,areaEnd:Om,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:$m(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S0e(e){return new oB(e)}function sB(e){this._context=e}sB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:$m(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function A0e(e){return new sB(e)}function uB(e){this._context=e}uB.prototype={areaStart:Om,areaEnd:Om,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _0e(e){return new uB(e)}function p3(e){return e<0?-1:1}function h3(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(p3(a)+p3(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function m3(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function My(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Mm(e){this._context=e}Mm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:My(this,this._t0,m3(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,My(this,m3(this,r=h3(this,e,t)),r);break;default:My(this,this._t0,r=h3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function lB(e){this._context=new cB(e)}(lB.prototype=Object.create(Mm.prototype)).point=function(e,t){Mm.prototype.point.call(this,t,e)};function cB(e){this._context=e}cB.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function C0e(e){return new Mm(e)}function k0e(e){return new lB(e)}function fB(e){this._context=e}fB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=g3(e),i=g3(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function D0e(e){return new $0(e,.5)}function P0e(e){return new $0(e,0)}function T0e(e){return new $0(e,1)}function ju(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r=0;)r[t]=t;return r}function O0e(e,t){return e[t]}function $0e(e){const t=[];return t.key=e,t}function M0e(){var e=He([]),t=xb,r=ju,n=O0e;function i(a){var o=Array.from(e.apply(this,arguments),$0e),s,u=o.length,l=-1,c;for(const f of a)for(s=0,++l;s0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V0e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var dB={symbolCircle:dA,symbolCross:l0e,symbolDiamond:f0e,symbolSquare:d0e,symbolStar:g0e,symbolTriangle:v0e,symbolWye:b0e},q0e=Math.PI/180,U0e=function(t){var r="symbol".concat(P0(t));return dB[r]||dA},H0e=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*q0e;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},W0e=function(t,r){dB["symbol".concat(P0(t))]=r},pB=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,u=z0e(t,j0e),l=y3(y3({},u),{},{type:n,size:a,sizeType:s}),c=function(){var b=U0e(n),y=x0e().type(b).size(H0e(a,s,n));return y()},f=l.className,d=l.cx,h=l.cy,g=ze(l,!0);return d===+d&&h===+h&&a===+a?V.createElement("path",wb({},g,{className:Ke("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};pB.registerSymbol=W0e;function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bm(e){return Bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bm(e)}function hf(e,t,r){return t=hB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hB(e){var t=tve(e,"string");return Fu(t)==="symbol"?t:String(t)}function tve(e,t){if(Fu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var on=32,pA=function(e){X0e(r,e);var t=Q0e(r);function r(){return K0e(this,r),t.apply(this,arguments)}return Y0e(r,[{key:"renderIcon",value:function(i){var a=this.props.inactiveColor,o=on/2,s=on/6,u=on/3,l=i.inactive?a:i.color;if(i.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:o,x2:on,y2:o,className:"recharts-legend-icon"});if(i.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(u,` - A`).concat(s,",").concat(s,",0,1,1,").concat(2*u,",").concat(o,` - H`).concat(on,"M").concat(2*u,",").concat(o,` - A`).concat(s,",").concat(s,",0,1,1,").concat(u,",").concat(o),className:"recharts-legend-icon"});if(i.type==="rect")return V.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(on/8,"h").concat(on,"v").concat(on*3/4,"h").concat(-on,"z"),className:"recharts-legend-icon"});if(V.isValidElement(i.legendIcon)){var c=G0e({},i);return delete c.legendIcon,V.cloneElement(i.legendIcon,c)}return V.createElement(pB,{fill:l,cx:o,cy:o,size:on,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,a=this.props,o=a.payload,s=a.iconSize,u=a.layout,l=a.formatter,c=a.inactiveColor,f={x:0,y:0,width:on,height:on},d={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(g,p){var b,y=g.formatter||l,v=Ke((b={"recharts-legend-item":!0},hf(b,"legend-item-".concat(p),!0),hf(b,"inactive",g.inactive),b));if(g.type==="none")return null;var m=g.inactive?c:g.color;return V.createElement("li",Sb({className:v,style:d,key:"legend-item-".concat(p)},_m(i.props,g,p)),V.createElement(ub,{width:s,height:s,viewBox:f,style:h},i.renderIcon(g)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},y?y(g.value,g,p):g.value))})}},{key:"render",value:function(){var i=this.props,a=i.payload,o=i.layout,s=i.align;if(!a||!a.length)return null;var u={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return V.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}]),r}(C.PureComponent);hf(pA,"displayName","Legend");hf(pA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}var rve=["ref"];function w3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ys(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Im(e){return Im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Im(e)}function M0(e,t,r){return t=gB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gB(e){var t=lve(e,"string");return Nu(t)==="symbol"?t:String(t)}function lve(e,t){if(Nu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cve(e,t){if(e==null)return{};var r=fve(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fve(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function dve(e){return e.value}function pve(e,t){return e===!0?Dm(t,dve):xe(e)?Dm(t,e):t}function hve(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(xe(e))return V.createElement(e,t);t.ref;var r=cve(t,rve);return V.createElement(pA,r)}var A3=1,mf=function(e){ave(r,e);var t=ove(r);function r(){var n;nve(this,r);for(var i=arguments.length,a=new Array(i),o=0;o=0&&o>=0?{width:a,height:o}:null}},{key:"getDefaultPosition",value:function(i){var a=this.props,o=a.layout,s=a.align,u=a.verticalAlign,l=a.margin,c=a.chartWidth,f=a.chartHeight,d,h;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(s==="center"&&o==="vertical"){var g=this.getBBoxSnapshot()||{width:0};d={left:((c||0)-g.width)/2}}else d=s==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(u==="middle"){var p=this.getBBoxSnapshot()||{height:0};h={top:((f||0)-p.height)/2}}else h=u==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return ys(ys({},d),h)}},{key:"updateBBox",value:function(){var i=this.state,a=i.boxWidth,o=i.boxHeight,s=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var u=this.wrapperNode.getBoundingClientRect();(Math.abs(u.width-a)>A3||Math.abs(u.height-o)>A3)&&this.setState({boxWidth:u.width,boxHeight:u.height},function(){s&&s(u)})}else(a!==-1||o!==-1)&&this.setState({boxWidth:-1,boxHeight:-1},function(){s&&s(null)})}},{key:"render",value:function(){var i=this,a=this.props,o=a.content,s=a.width,u=a.height,l=a.wrapperStyle,c=a.payloadUniqBy,f=a.payload,d=ys(ys({position:"absolute",width:s||"auto",height:u||"auto"},this.getDefaultPosition(l)),l);return V.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(g){i.wrapperNode=g}},hve(o,ys(ys({},this.props),{},{payload:pve(c,f)})))}}],[{key:"getWithHeight",value:function(i,a){var o=i.props.layout;return o==="vertical"&&Q(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||a}:null}}]),r}(C.PureComponent);M0(mf,"displayName","Legend");M0(mf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var mve=Object.getOwnPropertyNames,gve=Object.getOwnPropertySymbols,vve=Object.prototype.hasOwnProperty;function _3(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function vp(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var u=e(r,n,i);return a.delete(r),a.delete(n),u}}function C3(e){return mve(e).concat(gve(e))}var vB=Object.hasOwn||function(e,t){return vve.call(e,t)};function dl(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var yB="_owner",k3=Object.getOwnPropertyDescriptor,E3=Object.keys;function yve(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function bve(e,t){return dl(e.getTime(),t.getTime())}function D3(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,s;(o=i.next())&&!o.done;){for(var u=t.entries(),l=!1,c=0;(s=u.next())&&!s.done;){var f=o.value,d=f[0],h=f[1],g=s.value,p=g[0],b=g[1];!l&&!n[c]&&(l=r.equals(d,p,a,c,e,t,r)&&r.equals(h,b,d,p,e,t,r))&&(n[c]=!0),c++}if(!l)return!1;a++}return!0}function xve(e,t,r){var n=E3(e),i=n.length;if(E3(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===yB&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!vB(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Rl(e,t,r){var n=C3(e),i=n.length;if(C3(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],a===yB&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!vB(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=k3(e,a),s=k3(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function wve(e,t){return dl(e.valueOf(),t.valueOf())}function Sve(e,t){return e.source===t.source&&e.flags===t.flags}function P3(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var s=t.values(),u=!1,l=0;(o=s.next())&&!o.done;)!u&&!n[l]&&(u=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[l]=!0),l++;if(!u)return!1}return!0}function Ave(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var _ve="[object Arguments]",Cve="[object Boolean]",kve="[object Date]",Eve="[object Map]",Dve="[object Number]",Pve="[object Object]",Tve="[object RegExp]",Ove="[object Set]",$ve="[object String]",Mve=Array.isArray,T3=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,O3=Object.assign,Bve=Object.prototype.toString.call.bind(Object.prototype.toString);function Ive(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,u=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var h=c.constructor;if(h!==f.constructor)return!1;if(h===Object)return i(c,f,d);if(Mve(c))return t(c,f,d);if(T3!=null&&T3(c))return u(c,f,d);if(h===Date)return r(c,f,d);if(h===RegExp)return o(c,f,d);if(h===Map)return n(c,f,d);if(h===Set)return s(c,f,d);var g=Bve(c);return g===kve?r(c,f,d):g===Tve?o(c,f,d):g===Eve?n(c,f,d):g===Ove?s(c,f,d):g===Pve?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):g===_ve?i(c,f,d):g===Cve||g===Dve||g===$ve?a(c,f,d):!1}}function Rve(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Rl:yve,areDatesEqual:bve,areMapsEqual:n?_3(D3,Rl):D3,areObjectsEqual:n?Rl:xve,arePrimitiveWrappersEqual:wve,areRegExpsEqual:Sve,areSetsEqual:n?_3(P3,Rl):P3,areTypedArraysEqual:n?Rl:Ave};if(r&&(i=O3({},i,r(i))),t){var a=vp(i.areArraysEqual),o=vp(i.areMapsEqual),s=vp(i.areObjectsEqual),u=vp(i.areSetsEqual);i=O3({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function jve(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function Fve(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,l){var c=n(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,h=c.meta;return r(u,l,{cache:d,equals:i,meta:h,strict:a})};if(t)return function(u,l){return r(u,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(u,l){return r(u,l,o)}}var Nve=io();io({strict:!0});io({circular:!0});io({circular:!0,strict:!0});io({createInternalComparator:function(){return dl}});io({strict:!0,createInternalComparator:function(){return dl}});io({circular:!0,createInternalComparator:function(){return dl}});io({circular:!0,createInternalComparator:function(){return dl},strict:!0});function io(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=Rve(e),u=Ive(s),l=n?n(u):jve(u);return Fve({circular:r,comparator:u,createState:i,equals:l,strict:o})}function $3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):requestAnimationFrame(i)};requestAnimationFrame(n)}function Cb(e){"@babel/helpers - typeof";return Cb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cb(e)}function Lve(e){return Uve(e)||qve(e)||Vve(e)||zve()}function zve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vve(e,t){if(e){if(typeof e=="string")return M3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M3(e,t)}}function M3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:y<0?0:y},p=function(y){for(var v=y>1?1:y,m=v,x=0;x<8;++x){var w=f(m)-v,S=h(m);if(Math.abs(w-v)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,u=function(c,f,d){var h=-(c-f)*n,g=d*a,p=d+(h-g)*s/1e3,b=d*s/1e3+c;return Math.abs(b-f)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cye(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function By(e){return Pye(e)||Dye(e)||Eye(e)||kye()}function kye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eye(e,t){if(e){if(typeof e=="string")return Ob(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ob(e,t)}}function Dye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pye(e){if(Array.isArray(e))return Ob(e)}function Ob(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nm(e)}var Vu=function(e){Mye(r,e);var t=Bye(r);function r(n,i){var a;Tye(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,u=o.attributeName,l=o.from,c=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Bb(a)),a.changeStyle=a.changeStyle.bind(Bb(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),Mb(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof d=="function")return a.state={style:l},Mb(a);a.state={style:u?ac({},u,l):l}}else a.state={style:{}};return a}return Oye(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,u=a.attributeName,l=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:u?ac({},u,c):c};this.state&&d&&(u&&d[u]!==c||!u&&d!==c)&&this.setState(h);return}if(!(Nve(i.to,c)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||l?f:i.to;if(this.state&&d){var b={style:u?ac({},u,p):p};(u&&[u]!==p||!u&&d!==p)&&this.setState(b)}this.runAnimation($n($n({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,u=i.duration,l=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=Sye(o,s,fye(l),u,this.changeStyle),g=function(){a.stopJSAnimation=h()};this.manager.start([d,c,g,u,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,u=i.onAnimationStart,l=o[0],c=l.style,f=l.duration,d=f===void 0?0:f,h=function(p,b,y){if(y===0)return p;var v=b.duration,m=b.easing,x=m===void 0?"ease":m,w=b.style,S=b.properties,A=b.onAnimationEnd,k=y>0?o[y-1]:b,D=S||Object.keys(w);if(typeof x=="function"||x==="spring")return[].concat(By(p),[a.runJSAnimation.bind(a,{from:k.style,to:w,duration:v,easing:x}),v]);var P=I3(D,v,x),T=$n($n($n({},k.style),w),{},{transition:P});return[].concat(By(p),[T,v,A]).filter(Jve)};return this.manager.start([u].concat(By(o.reduce(h,[c,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Hve());var a=i.begin,o=i.duration,s=i.attributeName,u=i.to,l=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof l=="function"||typeof h=="function"||l==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?ac({},s,u):u,b=I3(Object.keys(p),o,l);g.start([c,a,$n($n({},p),{},{transition:b}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=_ye(i,Aye),l=C.Children.count(a),c=kb(this.state.style);if(typeof a=="function")return a(c);if(!s||l===0||o<=0)return a;var f=function(h){var g=h.props,p=g.style,b=p===void 0?{}:p,y=g.className,v=C.cloneElement(h,$n($n({},u),{},{style:$n($n({},b),c),className:y}));return v};return l===1?f(C.Children.only(a)):V.createElement("div",null,C.Children.map(a,function(d){return f(d)}))}}]),r}(C.PureComponent);Vu.displayName="Animate";Vu.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Vu.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});we.object,we.object,we.object,we.element;we.object,we.object,we.object,we.oneOfType([we.array,we.element]),we.any;var V3=gd,Rye=oA,jye=br,q3=V3?V3.isConcatSpreadable:void 0;function Fye(e){return jye(e)||Rye(e)||!!(q3&&e&&e[q3])}var Nye=Fye,Lye=$6,zye=Nye;function _B(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=zye),i||(i=[]);++a0&&r(s)?t>1?_B(s,t-1,r,n,i):Lye(i,s):n||(i[i.length]=s)}return i}var CB=_B;function Vye(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var qye=Vye,Uye=qye,Hye=Uye(),Wye=Hye,Gye=Wye,Kye=D0;function Yye(e,t){return e&&Gye(e,t,Kye)}var kB=Yye,Xye=bd;function Qye(e,t){return function(r,n){if(r==null)return r;if(!Xye(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&u&&!s&&!l||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!l&&e=s)return u;var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var f1e=c1e,Iy=tA,d1e=rA,p1e=no,h1e=EB,m1e=o1e,g1e=I6,v1e=f1e,y1e=fl,b1e=br;function x1e(e,t,r){t.length?t=Iy(t,function(a){return b1e(a)?function(o){return d1e(o,a.length===1?a[0]:a)}:a}):t=[y1e];var n=-1;t=Iy(t,g1e(p1e));var i=h1e(e,function(a,o,s){var u=Iy(t,function(l){return l(a)});return{criteria:u,index:++n,value:a}});return m1e(i,function(a,o){return v1e(a,o,r)})}var w1e=x1e;function S1e(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var A1e=S1e,_1e=A1e,H3=Math.max;function C1e(e,t,r){return t=H3(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=H3(n.length-t,0),o=Array(a);++i0){if(++t>=I1e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var N1e=F1e,L1e=B1e,z1e=N1e,V1e=z1e(L1e),q1e=V1e,U1e=fl,H1e=k1e,W1e=q1e;function G1e(e,t){return W1e(H1e(e,t,U1e),e+"")}var K1e=G1e,Y1e=QS,X1e=bd,Q1e=sA,J1e=eo;function Z1e(e,t,r){if(!J1e(r))return!1;var n=typeof t;return(n=="number"?X1e(r)&&Q1e(t,r.length):n=="string"&&t in r)?Y1e(r[t],e):!1}var B0=Z1e,e2e=CB,t2e=w1e,r2e=K1e,G3=B0,n2e=r2e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&G3(e,t[0],t[1])?t=[]:r>2&&G3(t[0],t[1],t[2])&&(t=[t[0]]),t2e(e,e2e(t,1),[])}),i2e=n2e;const mA=Pe(i2e);function yf(e){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yf(e)}function a2e(e,t){return l2e(e)||u2e(e,t)||s2e(e,t)||o2e()}function o2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s2e(e,t){if(e){if(typeof e=="string")return K3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K3(e,t)}}function K3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lm(e){return Lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Lm(e)}function ni(e,t,r){return t=PB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PB(e){var t=S2e(e,"string");return qu(t)==="symbol"?t:String(t)}function S2e(e,t){if(qu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jl="recharts-tooltip-wrapper",J3=1;function A2e(e){return e.dataKey}function _2e(e,t){return e===!0?Dm(t,A2e):xe(e)?Dm(t,e):t}function C2e(e,t){return V.isValidElement(e)?V.cloneElement(e,t):xe(e)?V.createElement(e,t):V.createElement(h2e,t)}var Gs=function(e){y2e(r,e);var t=b2e(r);function r(){var n;g2e(this,r);for(var i=arguments.length,a=new Array(i),o=0;oA?Math.max(v,y[u]):Math.max(m,y[u])}),n}return v2e(r,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var i=this.state,a=i.boxWidth,o=i.boxHeight,s=i.dismissed;if(s?(document.removeEventListener("keydown",this.handleKeyDown),(this.props.coordinate.x!==this.state.dismissedAtCoordinate.x||this.props.coordinate.y!==this.state.dismissedAtCoordinate.y)&&this.setState({dismissed:!1})):document.addEventListener("keydown",this.handleKeyDown),this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var u=this.wrapperNode.getBoundingClientRect();(Math.abs(u.width-a)>J3||Math.abs(u.height-o)>J3)&&this.setState({boxWidth:u.width,boxHeight:u.height})}else(a!==-1||o!==-1)&&this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var i,a=this,o=this.props,s=o.payload,u=o.isAnimationActive,l=o.animationDuration,c=o.animationEasing,f=o.filterNull,d=o.payloadUniqBy,h=_2e(d,f&&s&&s.length?s.filter(function(O){return!ve(O.value)}):s),g=h&&h.length,p=this.props,b=p.content,y=p.viewBox,v=p.coordinate,m=p.position,x=p.active,w=p.wrapperStyle,S=Ei({pointerEvents:"none",visibility:!this.state.dismissed&&x&&g?"visible":"hidden",position:"absolute",top:0,left:0},w),A,k;if(m&&Q(m.x)&&Q(m.y))A=m.x,k=m.y;else{var D=this.state,P=D.boxWidth,T=D.boxHeight;P>0&&T>0&&v?(A=this.getTranslate({key:"x",tooltipDimension:P,viewBoxDimension:y.width}),k=this.getTranslate({key:"y",tooltipDimension:T,viewBoxDimension:y.height})):S.visibility="hidden"}S=Ei(Ei({},kb({transform:this.props.useTranslate3d?"translate3d(".concat(A,"px, ").concat(k,"px, 0)"):"translate(".concat(A,"px, ").concat(k,"px)")})),S),u&&x&&(S=Ei(Ei({},kb({transition:"transform ".concat(l,"ms ").concat(c)})),S));var I=Ke(jl,(i={},ni(i,"".concat(jl,"-right"),Q(A)&&v&&Q(v.x)&&A>=v.x),ni(i,"".concat(jl,"-left"),Q(A)&&v&&Q(v.x)&&A=v.y),ni(i,"".concat(jl,"-top"),Q(k)&&v&&Q(v.y)&&k=t||A<0||f&&k>=a}function y(){var S=jy();if(b(S))return v(S);s=setTimeout(y,p(S))}function v(S){return s=void 0,d&&n?h(S):(n=i=void 0,o)}function m(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function x(){return s===void 0?o:v(jy())}function w(){var S=jy(),A=b(S);if(n=arguments,i=this,u=S,A){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(y,t),h(u)}return s===void 0&&(s=setTimeout(y,t)),o}return w.cancel=m,w.flush=x,w}var OB=G2e;const K2e=Pe(OB);var Y2e=OB,X2e=eo,Q2e="Expected a function";function J2e(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Q2e);return X2e(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Y2e(e,t,{leading:n,maxWait:t,trailing:i})}var Z2e=J2e;const $B=Pe(Z2e);var Rb=function(e,t){return Rb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Rb(e,t)};function ebe(e,t){Rb(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function tbe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i"u"},n5=function(e){return e instanceof Element||e instanceof HTMLDocument},nbe=function(e,t,r){return function(n){var i=n.width,a=n.height;e(function(o){return o.width===i&&o.height===a||o.width===i&&!r||o.height===a&&!t?o:{width:i,height:a}})}},ibe=function(e){ebe(t,e);function t(r){var n=e.call(this,r)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var l=n.props,c=l.targetRef,f=l.observerOptions;if(!Fl()){c&&c.current&&(n.targetRef.current=c.current);var d=n.getElement();d&&(n.observableElement&&n.observableElement===d||(n.observableElement=d,n.resizeObserver.observe(d,f)))}},n.getElement=function(){var l=n.props,c=l.querySelector,f=l.targetDomEl;if(Fl())return null;if(c)return document.querySelector(c);if(f&&n5(f))return f;if(n.targetRef&&n5(n.targetRef.current))return n.targetRef.current;var d=Yf.findDOMNode(n);if(!d)return null;var h=n.getRenderType();switch(h){case"renderProp":return d;case"childFunction":return d;case"child":return d;case"childArray":return d;default:return d.parentElement}},n.createResizeHandler=function(l){var c=n.props,f=c.handleWidth,d=f===void 0?!0:f,h=c.handleHeight,g=h===void 0?!0:h,p=c.onResize;if(!(!d&&!g)){var b=nbe(function(y){return n.setState(y,function(){return p==null?void 0:p(n.state.width,n.state.height)})},d,g);l.forEach(function(y){var v=y&&y.contentRect||{},m=v.width,x=v.height,w=!n.skipOnMount&&!Fl();w&&b({width:m,height:x}),n.skipOnMount=!1})}},n.getRenderType=function(){var l=n.props,c=l.render,f=l.children;return r5(c)?"renderProp":r5(f)?"childFunction":C.isValidElement(f)?"child":Array.isArray(f)?"childArray":"parent"};var i=r.skipOnMount,a=r.refreshMode,o=r.refreshRate,s=o===void 0?1e3:o,u=r.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=i,n.targetRef=C.createRef(),n.observableElement=null,Fl()||(n.resizeHandler=rbe(n.createResizeHandler,a,s,u),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){Fl()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var r=this.props,n=r.render,i=r.children,a=r.nodeType,o=a===void 0?"div":a,s=this.state,u=s.width,l=s.height,c={width:u,height:l,targetRef:this.targetRef},f=this.getRenderType();switch(f){case"renderProp":return n==null?void 0:n(c);case"childFunction":{var d=i;return d==null?void 0:d(c)}case"child":{var h=i;if(h.type&&typeof h.type=="string"){c.targetRef;var g=tbe(c,["targetRef"]);return C.cloneElement(h,g)}return C.cloneElement(h,c)}case"childArray":{var p=i;return p.map(function(b){return!!b&&C.cloneElement(b,c)})}default:return V.createElement(o,null)}},t}(C.PureComponent),pu=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,"The aspect(%s) must be greater than zero.",r);var N=To(o)?I:o,j=To(u)?O:u;return r&&r>0&&(N?j=N/r:j&&(N=j*r),d&&j>d&&(j=d)),pu(N>0||j>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,N,j,o,u,c,f,r),C.cloneElement(h,{width:N,height:j})},[r,h,u,d,f,c,w,o]);C.useEffect(function(){var I=k();I&&S(I)},[k]);var T={width:o,height:u,minWidth:c,minHeight:f,maxHeight:d};return V.createElement(ibe,{handleWidth:!0,handleHeight:!0,onResize:D,targetRef:A,refreshMode:p>0?"debounce":void 0,refreshRate:p},V.createElement("div",jb({},b!=null?{id:"".concat(b)}:{},{className:Ke("recharts-responsive-container",y),style:T,ref:A}),P))}),MB=function(t){return null};MB.displayName="Cell";var Fb={exports:{}},Fy="(".charCodeAt(0),Ny=")".charCodeAt(0),yp="'".charCodeAt(0),Ly='"'.charCodeAt(0),zy="\\".charCodeAt(0),bp="/".charCodeAt(0),Vy=",".charCodeAt(0),qy=":".charCodeAt(0),a5="*".charCodeAt(0),fbe=function(e){for(var t=[],r=e,n,i,a,o,s,u,l,c=0,f=r.charCodeAt(c),d=r.length,h=[{nodes:t}],g=0,p,b="",y="",v="";c=48&&f<=57)c=!0;else if(f===n||f===i){if(l>-1)break;l=o}else if(f===r){if(u)break;u=!0}else if(f===t||f===e){if(o!==0)break}else break;o+=1}return l+1===o&&o--,c?{number:a.slice(0,o),unit:a.slice(o)}:!1},Uy}var mbe=fbe,IB=dbe,RB=pbe;function Ga(e){return this instanceof Ga?(this.nodes=mbe(e),this):new Ga(e)}Ga.prototype.toString=function(){return Array.isArray(this.nodes)?RB(this.nodes):""};Ga.prototype.walk=function(e,t){return IB(this.nodes,e,t),this};Ga.unit=hbe();Ga.walk=IB;Ga.stringify=RB;var gbe=Ga;function vbe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jB={};(function(e){var t=function(){function r(d,h){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),d==null&&(d="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:d}),this.hash=h;var g;if(h&&h.exception instanceof Error){var p=h.exception;this.message=p.message||d,g=p.stack}g||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):g=new Error(d).stack),g&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:g})}typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(r.prototype,Error.prototype):r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.name="JisonParserError";function n(d){for(var h=[],g=d.pop,p=d.rule,b=0,y=g.length;b"u"&&Object.prototype.hasOwnProperty.call(G,J)&&(se[J]=G[J])}D(k,this.yy),k.lexer=A,k.parser=this,typeof k.parseError=="function"?this.parseError=function(G,J,ee){return ee||(ee=this.JisonParserError),k.parseError.call(this,G,J,ee)}:this.parseError=this.originalParseError,typeof k.quoteName=="function"?this.quoteName=function(G){return k.quoteName.call(this,G)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(G,J,ee){var z;if(J){var de;(k.post_parse||this.post_parse)&&(de=this.constructParseErrorInfo(null,null,null,!1)),k.post_parse&&(z=k.post_parse.call(this,k,G,de),typeof z<"u"&&(G=z)),this.post_parse&&(z=this.post_parse.call(this,k,G,de),typeof z<"u"&&(G=z)),de&&de.destroy&&de.destroy()}if(this.__reentrant_call_depth>1)return G;if(A.cleanupAfterLex&&A.cleanupAfterLex(ee),k&&(k.lexer=void 0,k.parser=void 0,A.yy===k&&(A.yy=void 0)),k=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,p.length=0,b.length=0,y.length=0,m=0,!ee){for(var ge=this.__error_infos.length-1;ge>=0;ge--){var ie=this.__error_infos[ge];ie&&typeof ie.destroy=="function"&&ie.destroy()}this.__error_infos.length=0}return G},this.constructParseErrorInfo=function(G,J,ee,z){var de={errStr:G,exception:J,text:A.match,value:A.yytext,token:this.describeSymbol(x)||x,token_id:x,line:A.yylineno,expected:ee,recoverable:z,state:O,action:N,new_state:U,symbol_stack:p,state_stack:b,value_stack:y,stack_pointer:m,yy:k,lexer:A,parser:this,destroy:function(){var ie=!!this.recoverable;for(var be in this)this.hasOwnProperty(be)&&typeof be=="object"&&(this[be]=void 0);this.recoverable=ie}};return this.__error_infos.push(de),de};function P(){var se=A.lex();return typeof se!="number"&&(se=g.symbols_[se]||se),se||w}function T(){var se=A.fastLex();return typeof se!="number"&&(se=g.symbols_[se]||se),se||w}var I=P,O,N,j,H,F={$:!0,_$:void 0,yy:k},R,$,q,U,Y=!1;try{if(this.__reentrant_call_depth++,A.setInput(h,k),typeof A.canIUse=="function"){var K=A.canIUse();K.fastLex&&typeof T=="function"&&(I=T)}for(y[m]=null,b[m]=0,p[m]=0,++m,this.pre_parse&&this.pre_parse.call(this,k),k.pre_parse&&k.pre_parse.call(this,k),U=b[m-1];;){if(O=U,this.defaultActions[O])N=2,U=this.defaultActions[O];else if(x||(x=I()),H=v[O]&&v[O][x]||S,U=H[1],N=H[0],!N){var Z,ue=this.describeSymbol(x)||x,he=this.collect_expected_token_set(O);typeof A.yylineno=="number"?Z="Parse error on line "+(A.yylineno+1)+": ":Z="Parse error: ",typeof A.showPosition=="function"&&(Z+=` -`+A.showPosition(79-10,10)+` -`),he.length?Z+="Expecting "+he.join(", ")+", got unexpected "+ue:Z+="Unexpected "+ue,R=this.constructParseErrorInfo(Z,null,he,!1),j=this.parseError(R.errStr,R,this.JisonParserError),typeof j<"u"&&(Y=j);break}switch(N){default:if(N instanceof Array){R=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+O+", token: "+x,null,null,!1),j=this.parseError(R.errStr,R,this.JisonParserError),typeof j<"u"&&(Y=j);break}R=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),j=this.parseError(R.errStr,R,this.JisonParserError),typeof j<"u"&&(Y=j);break;case 1:p[m]=x,y[m]=A.yytext,b[m]=U,++m,x=0;continue;case 2:if(q=this.productions_[U-1],$=q[1],j=this.performAction.call(F,U,m-1,y),typeof j<"u"){Y=j;break}m-=$;var le=q[0];p[m]=le,y[m]=F.$,U=v[b[m-1]][le],b[m]=U,++m;continue;case 3:m!==-2&&(Y=!0,m--,typeof y[m]<"u"&&(Y=y[m]));break}break}}catch(se){if(se instanceof this.JisonParserError)throw se;if(A&&typeof A.JisonLexerError=="function"&&se instanceof A.JisonLexerError)throw se;R=this.constructParseErrorInfo("Parsing aborted due to exception.",se,null,!1),Y=!1,j=this.parseError(R.errStr,R,this.JisonParserError),typeof j<"u"&&(Y=j)}finally{Y=this.cleanupAfterParse(Y,!0,!0),this.__reentrant_call_depth--}return Y}};l.originalParseError=l.parseError,l.originalQuoteName=l.quoteName;var c=function(){function d(g,p){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),g==null&&(g="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:g}),this.hash=p;var b;if(p&&p.exception instanceof Error){var y=p.exception;this.message=y.message||g,b=y.stack}b||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):b=new Error(g).stack),b&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:b})}typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(d.prototype,Error.prototype):d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.name="JisonLexerError";var h={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(p,b,y){if(p=""+p,y==null&&(y=!(p.indexOf(` -`)>0&&p.indexOf("^")>0)),this.yylloc&&y){if(typeof this.prettyPrintRange=="function")this.prettyPrintRange(this.yylloc),/\n\s*$/.test(p)||(p+=` -`),p+=` - Erroneous area: -`+this.prettyPrintRange(this.yylloc);else if(typeof this.showPosition=="function"){var v=this.showPosition();v&&(p.length&&p[p.length-1]!==` -`&&v[0]!==` -`?p+=` -`+v:p+=v)}}var m={errStr:p,recoverable:!!b,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var w=!!this.recoverable;for(var S in this)this.hasOwnProperty(S)&&typeof S=="object"&&(this[S]=void 0);this.recoverable=w}};return this.__error_infos.push(m),m},parseError:function(p,b,y){if(y||(y=this.JisonLexerError),this.yy){if(this.yy.parser&&typeof this.yy.parser.parseError=="function")return this.yy.parser.parseError.call(this,p,b,y)||this.ERROR;if(typeof this.yy.parseError=="function")return this.yy.parseError.call(this,p,b,y)||this.ERROR}throw new y(p,b)},yyerror:function(p){var b="";this.yylloc&&(b=" on line "+(this.yylineno+1));var y=this.constructLexErrorInfo("Lexical error"+b+": "+p,this.options.lexerErrorsAreRecoverable),v=Array.prototype.slice.call(arguments,1);return v.length&&(y.extra_error_attributes=v),this.parseError(y.errStr,y,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(p){if(this.setInput("",{}),!p){for(var b=this.__error_infos.length-1;b>=0;b--){var y=this.__error_infos[b];y&&typeof y.destroy=="function"&&y.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var p=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:p,last_line:this.yylineno+1,last_column:p,range:[this.offset,this.offset]}},setInput:function(p,b){if(this.yy=b||this.yy||{},!this.__decompressed){for(var y=this.rules,v=0,m=y.length;v1){this.yylineno-=y.length-1,this.yylloc.last_line=this.yylineno+1;var v=this.match,m=v.split(/(?:\r\n?|\n)/g);m.length===1&&(v=this.matched,m=v.split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=m[m.length-1].length}else this.yylloc.last_column-=b;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var p="";this.yylloc&&(p=" on line "+(this.yylineno+1));var b=this.constructLexErrorInfo("Lexical error"+p+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(b.errStr,b,this.JisonLexerError)||this.ERROR}return this},less:function(p){return this.unput(this.match.slice(p))},pastInput:function(p,b){var y=this.matched.substring(0,this.matched.length-this.match.length);p<0?p=y.length:p||(p=20),b<0?b=y.length:b||(b=1),y=y.substr(-p*2-2);var v=y.replace(/\r\n|\r/g,` -`).split(` -`);return v=v.slice(-b),y=v.join(` -`),y.length>p&&(y="..."+y.substr(-p)),y},upcomingInput:function(p,b){var y=this.match;p<0?p=y.length+this._input.length:p||(p=20),b<0?b=p:b||(b=1),y.lengthp&&(y=y.substring(0,p)+"..."),y},showPosition:function(p,b){var y=this.pastInput(p).replace(/\s/g," "),v=new Array(y.length+1).join("-");return y+this.upcomingInput(b).replace(/\s/g," ")+` -`+v+"^"},deriveLocationInfo:function(p,b,y,v){var m={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return p&&(m.first_line=p.first_line|0,m.last_line=p.last_line|0,m.first_column=p.first_column|0,m.last_column=p.last_column|0,p.range&&(m.range[0]=p.range[0]|0,m.range[1]=p.range[1]|0)),(m.first_line<=0||m.last_line=m.first_line)&&(m.last_line=v.last_line|0,m.last_column=v.last_column|0,v.range&&(m.range[1]=v.range[1]|0))),m.last_line<=0&&(m.first_line<=0?(m.first_line=this.yylloc.first_line,m.last_line=this.yylloc.last_line,m.first_column=this.yylloc.first_column,m.last_column=this.yylloc.last_column,m.range[0]=this.yylloc.range[0],m.range[1]=this.yylloc.range[1]):(m.last_line=this.yylloc.last_line,m.last_column=this.yylloc.last_column,m.range[1]=this.yylloc.range[1])),m.first_line<=0&&(m.first_line=m.last_line,m.first_column=0,m.range[1]=m.range[0]),m.first_column<0&&(m.first_column=0),m.last_column<0&&(m.last_column=m.first_column>0?m.first_column:80),m},prettyPrintRange:function(p,b,y){p=this.deriveLocationInfo(p,b,y);const v=3,m=1,x=2;var w=this.matched+this._input,S=w.split(` -`),A=Math.max(1,b?b.first_line:p.first_line-v),k=Math.max(1,y?y.last_line:p.last_line+m),D=1+Math.log10(k|1)|0,P=new Array(D).join(" "),T=[],I=S.slice(A-1,k+1).map(function(F,R){var $=R+A,q=(P+$).substr(-D),U=q+": "+F,Y=new Array(D+1).join("^"),K=2+1,Z=0;if($===p.first_line?(K+=p.first_column,Z=Math.max(2,($===p.last_line?p.last_column:F.length)-p.first_column+1)):$===p.last_line?Z=Math.max(2,p.last_column+1):$>p.first_line&&$0&&T.push(R)}return U=U.replace(/\t/g," "),U});if(T.length>2*x){var O=T[x-1]+1,N=T[T.length-x]-1,j=new Array(D+1).join(" ")+" (...continued...)";j+=` -`+new Array(D+1).join("-")+" (---------------)",I.splice(O,N-O+1,j)}return I.join(` -`)},describeYYLLOC:function(p,b){var y=p.first_line,v=p.last_line,m=p.first_column,x=p.last_column,w=v-y,S=x-m,A;if(w===0?(A="line "+y+", ",S<=1?A+="column "+m:A+="columns "+m+" .. "+x):A="lines "+y+"(column "+m+") .. "+v+"(column "+x+")",p.range&&b){var k=p.range[0],D=p.range[1]-1;D<=k?A+=" {String Offset: "+k+"}":A+=" {String Offset range: "+k+" .. "+D+"}"}return A},test_match:function(p,b){var y,v,m,x,w;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),x=p[0],w=x.length,v=x.split(/(?:\r\n?|\n)/g),v.length>1?(this.yylineno+=v.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=v[v.length-1].length):this.yylloc.last_column+=w,this.yytext+=x,this.match+=x,this.matched+=x,this.matches=p,this.yyleng=this.yytext.length,this.yylloc.range[1]+=w,this.offset+=w,this._more=!1,this._backtrack=!1,this._input=this._input.slice(w),y=this.performAction.call(this,this.yy,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var S in m)this[S]=m[S];return this.__currentRuleSet__=null,!1}else if(this._signaled_error_token)return y=this._signaled_error_token,this._signaled_error_token=!1,y;return!1},next:function(){if(this.done)return this.clear(),this.EOF;this._input||(this.done=!0);var p,b,y,v;this._more||this.clear();var m=this.__currentRuleSet__;if(!m&&(m=this.__currentRuleSet__=this._currentRules(),!m||!m.rules)){var x="";this.options.trackPosition&&(x=" on line "+(this.yylineno+1));var w=this.constructLexErrorInfo("Internal lexer engine error"+x+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(w.errStr,w,this.JisonLexerError)||this.ERROR}for(var S=m.rules,A=m.__rule_regexes,k=m.__rule_count,D=1;D<=k;D++)if(y=this._input.match(A[D]),y&&(!b||y[0].length>b[0].length)){if(b=y,v=D,this.options.backtrack_lexer){if(p=this.test_match(y,S[D]),p!==!1)return p;if(this._backtrack){b=void 0;continue}else return!1}else if(!this.options.flex)break}if(b)return p=this.test_match(b,S[v]),p!==!1?p:!1;if(this._input){var x="";this.options.trackPosition&&(x=" on line "+(this.yylineno+1));var w=this.constructLexErrorInfo("Lexical error"+x+": Unrecognized text.",this.options.lexerErrorsAreRecoverable),P=this._input,T=this.topState(),I=this.conditionStack.length;return p=this.parseError(w.errStr,w,this.JisonLexerError)||this.ERROR,p===this.ERROR&&!this.matches&&P===this._input&&T===this.topState()&&I===this.conditionStack.length&&this.input(),p}else return this.done=!0,this.clear(),this.EOF},lex:function(){var p;for(typeof this.pre_lex=="function"&&(p=this.pre_lex.call(this,0)),typeof this.options.pre_lex=="function"&&(p=this.options.pre_lex.call(this,p)||p),this.yy&&typeof this.yy.pre_lex=="function"&&(p=this.yy.pre_lex.call(this,p)||p);!p;)p=this.next();return this.yy&&typeof this.yy.post_lex=="function"&&(p=this.yy.post_lex.call(this,p)||p),typeof this.options.post_lex=="function"&&(p=this.options.post_lex.call(this,p)||p),typeof this.post_lex=="function"&&(p=this.post_lex.call(this,p)||p),p},fastLex:function(){for(var p;!p;)p=this.next();return p},canIUse:function(){var p={fastLex:!(typeof this.pre_lex=="function"||typeof this.options.pre_lex=="function"||this.yy&&typeof this.yy.pre_lex=="function"||this.yy&&typeof this.yy.post_lex=="function"||typeof this.options.post_lex=="function"||typeof this.post_lex=="function")&&typeof this.fastLex=="function"};return p},begin:function(p){return this.pushState(p)},pushState:function(p){return this.conditionStack.push(p),this.__currentRuleSet__=null,this},popState:function(){var p=this.conditionStack.length-1;return p>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:d,performAction:function(p,b,y){switch(b){case 1:break;default:return this.simpleCaseActionClusters[b]}},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return h}();l.lexer=c;function f(){this.yy={}}return f.prototype=l,l.Parser=f,new f}();typeof vbe<"u"&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})})(jB);var xd={},Nb={exports:{}},Hy={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:Math.PI*2},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:1/1e3},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:1/1e3,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},ybe=function(e,t,r,n){if(!Hy.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!Hy[r].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+r);var i=Hy[r][t]*e;return n!==!1?(n=Math.pow(10,parseInt(n)||5),Math.round(i*n)/n):i};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=ybe,n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u,l){switch(s.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return o(s,u,l);default:return{left:s,right:u}}}function o(s,u,l){return u.type===s.type&&(u={type:s.type,value:(0,n.default)(u.value,u.unit,s.unit,l),unit:s.unit}),{left:s,right:u}}t.default=a,e.exports=t.default})(Nb,Nb.exports);var bbe=Nb.exports;Object.defineProperty(xd,"__esModule",{value:!0});xd.flip=Lb;var xbe=bbe,Wy=wbe(xbe);function wbe(e){return e&&e.__esModule?e:{default:e}}function tr(e,t){return e.type==="MathExpression"?kbe(e,t):e.type==="Calc"?tr(e.value,t):e}function u5(e,t){return e.type===t.type&&e.value===t.value}function Sr(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function Sbe(e,t){var r=(0,Wy.default)(e.left,e.right,t),n=tr(r.left,t),i=tr(r.right,t);return n.type==="MathExpression"&&i.type==="MathExpression"&&(n.operator==="/"&&i.operator==="*"||n.operator==="-"&&i.operator==="+"||n.operator==="*"&&i.operator==="/"||n.operator==="+"&&i.operator==="-")&&(u5(n.right,i.right)?r=(0,Wy.default)(n.left,i.left,t):u5(n.right,i.left)&&(r=(0,Wy.default)(n.left,i.right,t)),n=tr(r.left,t),i=tr(r.right,t)),e.left=n,e.right=i,e}function Lb(e){return e==="+"?"-":"+"}function zb(e){return Sr(e.type)?e.value=-e.value:e.type=="MathExpression"&&(e.left=zb(e.left),e.right=zb(e.right)),e}function Abe(e,t){var r=e,n=r.left,i=r.right,a=r.operator;if(n.type==="CssVariable"||i.type==="CssVariable")return e;if(i.value===0)return n;if(n.value===0&&a==="+")return i;if(n.value===0&&a==="-")return zb(i);if(n.type===i.type&&Sr(n.type)&&(e=Object.assign({},n),a==="+"?e.value=n.value+i.value:e.value=n.value-i.value),Sr(n.type)&&(i.operator==="+"||i.operator==="-")&&i.type==="MathExpression"){if(n.type===i.left.type)return e=Object.assign({},e),e.left=tr({type:"MathExpression",operator:a,left:n,right:i.left},t),e.right=i.right,e.operator=a==="-"?Lb(i.operator):i.operator,tr(e,t);if(n.type===i.right.type)return e=Object.assign({},e),e.left=tr({type:"MathExpression",operator:a==="-"?Lb(i.operator):i.operator,left:n,right:i.right},t),e.right=i.left,tr(e,t)}if(n.type==="MathExpression"&&(n.operator==="+"||n.operator==="-")&&Sr(i.type)){if(i.type===n.left.type)return e=Object.assign({},n),e.left=tr({type:"MathExpression",operator:a,left:n.left,right:i},t),tr(e,t);if(i.type===n.right.type)return e=Object.assign({},n),n.operator==="-"?(e.right=tr({type:"MathExpression",operator:a==="-"?"+":"-",left:i,right:n.right},t),e.operator=a==="-"?"-":"+"):e.right=tr({type:"MathExpression",operator:a,left:n.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator=e.operator==="-"?"+":"-"),tr(e,t)}return e}function _be(e,t){if(!Sr(e.right.type))return e;if(e.right.type!=="Value")throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(e.right.value===0)throw new Error("Cannot divide by zero");return e.left.type==="MathExpression"?Sr(e.left.left.type)&&Sr(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,tr(e.left,t)):e:Sr(e.left.type)?(e.left.value/=e.right.value,e.left):e}function Cbe(e){if(e.left.type==="MathExpression"&&e.right.type==="Value"){if(Sr(e.left.left.type)&&Sr(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Sr(e.left.type)&&e.right.type==="Value")return e.left.value*=e.right.value,e.left;if(e.left.type==="Value"&&e.right.type==="MathExpression"){if(Sr(e.right.left.type)&&Sr(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if(e.left.type==="Value"&&Sr(e.right.type))return e.right.value*=e.left.value,e.right}return e}function kbe(e,t){switch(e=Sbe(e,t),e.operator){case"+":case"-":return Abe(e,t);case"/":return _be(e,t);case"*":return Cbe(e)}return e}xd.default=tr;var Vb={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(o,s,u){var l=a(s,u);return s.type==="MathExpression"&&(l=o+"("+l+")"),l};var r=xd,n={"*":0,"/":0,"+":1,"-":1};function i(o,s){if(s!==!1){var u=Math.pow(10,s);return Math.round(o*u)/u}return o}function a(o,s){switch(o.type){case"MathExpression":{var u=o.left,l=o.right,c=o.operator,f="";return u.type==="MathExpression"&&n[c]1&&arguments[1]!==void 0?arguments[1]:5;return(0,n.default)(f).walk(function(h){if(!(h.type!=="function"||!c.test(h.value))){var g=n.default.stringify(h.nodes);if(!(g.indexOf("constant")>=0||g.indexOf("env")>=0)){var p=i.parser.parse(g),b=(0,o.default)(p,d);h.type="word",h.value=(0,u.default)(h.value,b,d)}}},!0).toString()},e.exports=t.default})(Fb,Fb.exports);var Dbe=Fb.exports;const Gy=Pe(Dbe);function bf(e){"@babel/helpers - typeof";return bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bf(e)}function l5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c5(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0&&t===+t?"".concat(t,"px"):t}function Lbe(e){var t=e.split(""),r=t.reduce(function(n,i){return i===i.toUpperCase()?[].concat(f5(n),["-",i.toLowerCase()]):[].concat(f5(n),[i])},[]);return r.join("")}var zbe=function(t){return Object.keys(t).reduce(function(r,n){return"".concat(r).concat(Lbe(n),":").concat(Nbe(n,t[n]),";")},"")},ui=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Na.isSsr)return{width:0,height:0};var n="".concat(t),i=zbe(r),a="".concat(n,"-").concat(i);if(bs.widthCache[a])return bs.widthCache[a];try{var o=document.getElementById(d5);o||(o=document.createElement("span"),o.setAttribute("id",d5),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=c5(c5({},jbe),r);Object.keys(s).map(function(c){return o.style[c]=s[c],c}),o.textContent=n;var u=o.getBoundingClientRect(),l={width:u.width,height:u.height};return bs.widthCache[a]=l,++bs.cacheCount>Rbe&&(bs.cacheCount=0,bs.widthCache={}),l}catch{return{width:0,height:0}}},Vbe=function(t){var r=t.ownerDocument.documentElement,n={top:0,left:0};return typeof t.getBoundingClientRect<"u"&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-r.clientTop,left:n.left+window.pageXOffset-r.clientLeft}},qbe=function(t,r){return{chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)}},Ube=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Hbe=["dx","dy","angle","className","breakAll"];function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wbe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function h5(e,t){return Xbe(e)||Ybe(e,t)||Kbe(e,t)||Gbe()}function Gbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kbe(e,t){if(e){if(typeof e=="string")return m5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m5(e,t)}}function m5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(H,F){var R=F.word,$=F.width,q=H[H.length-1];if(q&&(i==null||a||q.width+$+nF.width?H:F})};if(!c)return h;for(var p="…",b=function(j){var H=f.slice(0,j),F=NB({breakAll:l,style:u,children:H+p}).wordsWithComputedWidth,R=d(F),$=R.length>o||g(R).width>Number(i);return[$,R]},y=0,v=f.length-1,m=0,x;y<=v&&m<=f.length-1;){var w=Math.floor((y+v)/2),S=w-1,A=b(S),k=h5(A,2),D=k[0],P=k[1],T=b(w),I=h5(T,1),O=I[0];if(!D&&!O&&(y=w+1),D&&O&&(v=w-1),!D&&O){x=P;break}m++}return x||h},g5=function(t){var r=ve(t)?[]:t.toString().split(FB);return[{words:r}]},Jbe=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Na.isSsr){var u,l,c=NB({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;u=f,l=d}else return g5(i);return Qbe({breakAll:o,children:i,maxLines:s,style:a},u,l,r,n)}return g5(i)},v5="#808080",zm=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,u=t.capHeight,l=u===void 0?"0.71em":u,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,h=d===void 0?"start":d,g=t.verticalAnchor,p=g===void 0?"end":g,b=t.fill,y=b===void 0?v5:b,v=p5(t,Ube),m=C.useMemo(function(){return Jbe({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),x=v.dx,w=v.dy,S=v.angle,A=v.className,k=v.breakAll,D=p5(v,Hbe);if(!Pt(n)||!Pt(a))return null;var P=n+(Q(x)?x:0),T=a+(Q(w)?w:0),I;switch(p){case"start":I=Gy("calc(".concat(l,")"));break;case"middle":I=Gy("calc(".concat((m.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:I=Gy("calc(".concat(m.length-1," * -").concat(s,")"));break}var O=[];if(f){var N=m[0].width,j=v.width;O.push("scale(".concat((Q(j)?j/N:1)/N,")"))}return S&&O.push("rotate(".concat(S,", ").concat(P,", ").concat(T,")")),O.length&&(D.transform=O.join(" ")),V.createElement("text",Ub({},ze(D,!0),{x:P,y:T,className:Ke("recharts-text",A),textAnchor:h,fill:y.includes("url")?v5:y}),m.map(function(H,F){return V.createElement("tspan",{x:P,dy:F===0?I:s,key:F},H.words.join(k?"":" "))}))},Zbe=lA;function exe(e,t){return Zbe(e,t)}var txe=exe;const LB=Pe(txe);var rxe=al;function nxe(e,t,r){for(var n=-1,i=e.length;++nt}var axe=ixe,oxe=zB,sxe=axe,uxe=fl;function lxe(e){return e&&e.length?oxe(e,uxe,sxe):void 0}var cxe=lxe;const I0=Pe(cxe);function fxe(e,t){return et?1:e>=t?0:NaN}function Pxe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function gA(e){let t,r,n;e.length!==2?(t=La,r=(s,u)=>La(e(s),u),n=(s,u)=>e(s)-u):(t=e===La||e===Pxe?e:Txe,r=e,n=e);function i(s,u,l=0,c=s.length){if(l>>1;r(s[f],u)<0?l=f+1:c=f}while(l>>1;r(s[f],u)<=0?l=f+1:c=f}while(ll&&n(s[f-1],u)>-n(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function Txe(){return 0}function VB(e){return e===null?NaN:+e}function*Oxe(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const $xe=gA(La),Mxe=$xe.right;gA(VB).center;const wd=Mxe;class y5 extends Map{constructor(t,r=Rxe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(b5(this,t))}has(t){return super.has(b5(this,t))}set(t,r){return super.set(Bxe(this,t),r)}delete(t){return super.delete(Ixe(this,t))}}function b5({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Bxe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Ixe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Rxe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function jxe(e=La){if(e===La)return qB;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function qB(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const Fxe=Math.sqrt(50),Nxe=Math.sqrt(10),Lxe=Math.sqrt(2);function Vm(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=Fxe?10:a>=Nxe?5:a>=Lxe?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),u=Math.round(t*l),s/lt&&--u,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),u=Math.round(t/l),s*lt&&--u),u0))return[];if(e===t)return[e];const n=t=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let l=0;l=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}function w5(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function UB(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?qB:jxe(i);n>r;){if(n-r>600){const u=n-r+1,l=t-r+1,c=Math.log(u),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),h=Math.max(r,Math.floor(t-l*f/u+d)),g=Math.min(n,Math.floor(t+(u-l)*f/u+d));UB(e,t,h,g,i)}const a=e[t];let o=r,s=n;for(Nl(e,r,t),i(e[n],a)>0&&Nl(e,r,n);o0;)--s}i(e[r],a)===0?Nl(e,r,s):(++s,Nl(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Nl(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function zxe(e,t,r){if(e=Float64Array.from(Oxe(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return w5(e);if(t>=1)return x5(e);var n,i=(n-1)*t,a=Math.floor(i),o=x5(UB(e,a).subarray(0,a+1)),s=w5(e.subarray(a+1));return o+(s-o)*(i-a)}}function Vxe(e,t,r=VB){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function qxe(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?xp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?xp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Hxe.exec(e))?new Cr(t[1],t[2],t[3],1):(t=Wxe.exec(e))?new Cr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Gxe.exec(e))?xp(t[1],t[2],t[3],t[4]):(t=Kxe.exec(e))?xp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Yxe.exec(e))?D5(t[1],t[2]/100,t[3]/100,1):(t=Xxe.exec(e))?D5(t[1],t[2]/100,t[3]/100,t[4]):S5.hasOwnProperty(e)?C5(S5[e]):e==="transparent"?new Cr(NaN,NaN,NaN,0):null}function C5(e){return new Cr(e>>16&255,e>>8&255,e&255,1)}function xp(e,t,r,n){return n<=0&&(e=t=r=NaN),new Cr(e,t,r,n)}function Zxe(e){return e instanceof Sd||(e=Af(e)),e?(e=e.rgb(),new Cr(e.r,e.g,e.b,e.opacity)):new Cr}function Yb(e,t,r,n){return arguments.length===1?Zxe(e):new Cr(e,t,r,n??1)}function Cr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}yA(Cr,Yb,WB(Sd,{brighter(e){return e=e==null?qm:Math.pow(qm,e),new Cr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?wf:Math.pow(wf,e),new Cr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cr(zo(this.r),zo(this.g),zo(this.b),Um(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k5,formatHex:k5,formatHex8:ewe,formatRgb:E5,toString:E5}));function k5(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}`}function ewe(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}${Oo((isNaN(this.opacity)?1:this.opacity)*255)}`}function E5(){const e=Um(this.opacity);return`${e===1?"rgb(":"rgba("}${zo(this.r)}, ${zo(this.g)}, ${zo(this.b)}${e===1?")":`, ${e})`}`}function Um(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oo(e){return e=zo(e),(e<16?"0":"")+e.toString(16)}function D5(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nn(e,t,r,n)}function GB(e){if(e instanceof Nn)return new Nn(e.h,e.s,e.l,e.opacity);if(e instanceof Sd||(e=Af(e)),!e)return new Nn;if(e instanceof Nn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&u<1?0:o,new Nn(o,s,u,e.opacity)}function twe(e,t,r,n){return arguments.length===1?GB(e):new Nn(e,t,r,n??1)}function Nn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}yA(Nn,twe,WB(Sd,{brighter(e){return e=e==null?qm:Math.pow(qm,e),new Nn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?wf:Math.pow(wf,e),new Nn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Cr(Ky(e>=240?e-240:e+120,i,n),Ky(e,i,n),Ky(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Nn(P5(this.h),wp(this.s),wp(this.l),Um(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Um(this.opacity);return`${e===1?"hsl(":"hsla("}${P5(this.h)}, ${wp(this.s)*100}%, ${wp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function P5(e){return e=(e||0)%360,e<0?e+360:e}function wp(e){return Math.max(0,Math.min(1,e||0))}function Ky(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const bA=e=>()=>e;function rwe(e,t){return function(r){return e+r*t}}function nwe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function iwe(e){return(e=+e)==1?KB:function(t,r){return r-t?nwe(t,r,e):bA(isNaN(t)?r:t)}}function KB(e,t){var r=t-e;return r?rwe(e,r):bA(isNaN(e)?t:e)}const T5=function e(t){var r=iwe(t);function n(i,a){var o=r((i=Yb(i)).r,(a=Yb(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=KB(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return n.gamma=e,n}(1);function awe(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Hm(n,i)})),r=Yy.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function gwe(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?vwe:gwe,u=l=null,f}function f(d){return d==null||isNaN(d=+d)?a:(u||(u=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((l||(l=s(t,e.map(n),Hm)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Wm),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=xA,c()},f.clamp=function(d){return arguments.length?(o=d?!0:hr,c()):o!==hr},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,c()}}function wA(){return j0()(hr,hr)}function ywe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gm(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Uu(e){return e=Gm(Math.abs(e)),e?e[1]:NaN}function bwe(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function xwe(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var wwe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _f(e){if(!(t=wwe.exec(e)))throw new Error("invalid format: "+e);var t;return new SA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}_f.prototype=SA.prototype;function SA(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}SA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Swe(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var YB;function Awe(e,t){var r=Gm(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(YB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Gm(e,Math.max(0,t+a-1))[0]}function $5(e,t){var r=Gm(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const M5={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ywe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>$5(e*100,t),r:$5,s:Awe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function B5(e){return e}var I5=Array.prototype.map,R5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _we(e){var t=e.grouping===void 0||e.thousands===void 0?B5:bwe(I5.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?B5:xwe(I5.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=_f(f);var d=f.fill,h=f.align,g=f.sign,p=f.symbol,b=f.zero,y=f.width,v=f.comma,m=f.precision,x=f.trim,w=f.type;w==="n"?(v=!0,w="g"):M5[w]||(m===void 0&&(m=12),x=!0,w="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var S=p==="$"?r:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",A=p==="$"?n:/[%p]/.test(w)?o:"",k=M5[w],D=/[defgprs%]/.test(w);m=m===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));function P(T){var I=S,O=A,N,j,H;if(w==="c")O=k(T)+O,T="";else{T=+T;var F=T<0||1/T<0;if(T=isNaN(T)?u:k(Math.abs(T),m),x&&(T=Swe(T)),F&&+T==0&&g!=="+"&&(F=!1),I=(F?g==="("?g:s:g==="-"||g==="("?"":g)+I,O=(w==="s"?R5[8+YB/3]:"")+O+(F&&g==="("?")":""),D){for(N=-1,j=T.length;++NH||H>57){O=(H===46?i+T.slice(N+1):T.slice(N))+O,T=T.slice(0,N);break}}}v&&!b&&(T=t(T,1/0));var R=I.length+T.length+O.length,$=R>1)+I+T+O+$.slice(R);break;default:T=$+I+T+O;break}return a(T)}return P.toString=function(){return f+""},P}function c(f,d){var h=l((f=_f(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Uu(d)/3)))*3,p=Math.pow(10,-g),b=R5[8+g/3];return function(y){return h(p*y)+b}}return{format:l,formatPrefix:c}}var Sp,AA,XB;Cwe({thousands:",",grouping:[3],currency:["$",""]});function Cwe(e){return Sp=_we(e),AA=Sp.format,XB=Sp.formatPrefix,Sp}function kwe(e){return Math.max(0,-Uu(Math.abs(e)))}function Ewe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Uu(t)/3)))*3-Uu(Math.abs(e)))}function Dwe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Uu(t)-Uu(e))+1}function QB(e,t,r,n){var i=Gb(e,t,r),a;switch(n=_f(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Ewe(i,o))&&(n.precision=a),XB(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Dwe(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=kwe(i))&&(n.precision=a-(n.type==="%")*2);break}}return AA(n)}function ao(e){var t=e.domain;return e.ticks=function(r){var n=t();return Hb(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return QB(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,l,c=10;for(s0;){if(l=Wb(o,s,r),l===u)return n[i]=o,n[a]=s,t(n);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function Km(){var e=wA();return e.copy=function(){return Ad(e,Km())},Dn.apply(e,arguments),ao(e)}function JB(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Wm),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return JB(e).unknown(t)},e=arguments.length?Array.from(e,Wm):[0,1],ao(r)}function ZB(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function Mwe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function N5(e){return(t,r)=>-e(-t,r)}function _A(e){const t=e(j5,F5),r=t.domain;let n=10,i,a;function o(){return i=Mwe(n),a=$we(n),r()[0]<0?(i=N5(i),a=N5(a),e(Pwe,Twe)):e(j5,F5),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let l=u[0],c=u[u.length-1];const f=c0){for(;d<=h;++d)for(g=1;gc)break;y.push(p)}}else for(;d<=h;++d)for(g=n-1;g>=1;--g)if(p=d>0?g/a(-d):g*a(d),!(pc)break;y.push(p)}y.length*2{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=_f(u)).precision==null&&(u.trim=!0),u=AA(u)),s===1/0)return u;const l=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*nr(ZB(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function eI(){const e=_A(j0()).domain([1,10]);return e.copy=()=>Ad(e,eI()).base(e.base()),Dn.apply(e,arguments),e}function L5(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function z5(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function CA(e){var t=1,r=e(L5(t),z5(t));return r.constant=function(n){return arguments.length?e(L5(t=+n),z5(t)):t},ao(r)}function tI(){var e=CA(j0());return e.copy=function(){return Ad(e,tI()).constant(e.constant())},Dn.apply(e,arguments)}function V5(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Bwe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Iwe(e){return e<0?-e*e:e*e}function kA(e){var t=e(hr,hr),r=1;function n(){return r===1?e(hr,hr):r===.5?e(Bwe,Iwe):e(V5(r),V5(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},ao(t)}function EA(){var e=kA(j0());return e.copy=function(){return Ad(e,EA()).exponent(e.exponent())},Dn.apply(e,arguments),e}function Rwe(){return EA.apply(null,arguments).exponent(.5)}function q5(e){return Math.sign(e)*e*e}function jwe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rI(){var e=wA(),t=[0,1],r=!1,n;function i(a){var o=jwe(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(q5(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Wm)).map(q5)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return rI(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Dn.apply(i,arguments),ao(i)}function nI(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return iI().domain([e,t]).range(i).unknown(a)},Dn.apply(ao(o),arguments)}function aI(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[wd(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return aI().domain(e).range(t).unknown(r)},Dn.apply(i,arguments)}const Xy=new Date,Qy=new Date;function Ot(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a0))return u;let l;do u.push(l=new Date(+a)),t(a,s),e(a);while(lOt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Xy.setTime(+a),Qy.setTime(+o),e(Xy),e(Qy),Math.floor(r(Xy,Qy))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ym=Ot(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ym.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ot(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ym);Ym.range;const Fi=1e3,hn=Fi*60,Ni=hn*60,Zi=Ni*24,DA=Zi*7,U5=Zi*30,Jy=Zi*365,$o=Ot(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Fi)},(e,t)=>(t-e)/Fi,e=>e.getUTCSeconds());$o.range;const PA=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fi)},(e,t)=>{e.setTime(+e+t*hn)},(e,t)=>(t-e)/hn,e=>e.getMinutes());PA.range;const TA=Ot(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*hn)},(e,t)=>(t-e)/hn,e=>e.getUTCMinutes());TA.range;const OA=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fi-e.getMinutes()*hn)},(e,t)=>{e.setTime(+e+t*Ni)},(e,t)=>(t-e)/Ni,e=>e.getHours());OA.range;const $A=Ot(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ni)},(e,t)=>(t-e)/Ni,e=>e.getUTCHours());$A.range;const _d=Ot(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*hn)/Zi,e=>e.getDate()-1);_d.range;const F0=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Zi,e=>e.getUTCDate()-1);F0.range;const oI=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Zi,e=>Math.floor(e/Zi));oI.range;function us(e){return Ot(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*hn)/DA)}const N0=us(0),Xm=us(1),Fwe=us(2),Nwe=us(3),Hu=us(4),Lwe=us(5),zwe=us(6);N0.range;Xm.range;Fwe.range;Nwe.range;Hu.range;Lwe.range;zwe.range;function ls(e){return Ot(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/DA)}const L0=ls(0),Qm=ls(1),Vwe=ls(2),qwe=ls(3),Wu=ls(4),Uwe=ls(5),Hwe=ls(6);L0.range;Qm.range;Vwe.range;qwe.range;Wu.range;Uwe.range;Hwe.range;const MA=Ot(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());MA.range;const BA=Ot(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());BA.range;const ea=Ot(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ea.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});ea.range;const ta=Ot(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ta.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});ta.range;function sI(e,t,r,n,i,a){const o=[[$o,1,Fi],[$o,5,5*Fi],[$o,15,15*Fi],[$o,30,30*Fi],[a,1,hn],[a,5,5*hn],[a,15,15*hn],[a,30,30*hn],[i,1,Ni],[i,3,3*Ni],[i,6,6*Ni],[i,12,12*Ni],[n,1,Zi],[n,2,2*Zi],[r,1,DA],[t,1,U5],[t,3,3*U5],[e,1,Jy]];function s(l,c,f){const d=cb).right(o,d);if(h===o.length)return e.every(Gb(l/Jy,c/Jy,f));if(h===0)return Ym.every(Math.max(Gb(l,c,f),1));const[g,p]=o[d/o[h-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(ge=e1(Ll(z.y,0,1)),ie=ge.getUTCDay(),ge=ie>4||ie===0?Qm.ceil(ge):Qm(ge),ge=F0.offset(ge,(z.V-1)*7),z.y=ge.getUTCFullYear(),z.m=ge.getUTCMonth(),z.d=ge.getUTCDate()+(z.w+6)%7):(ge=Zy(Ll(z.y,0,1)),ie=ge.getDay(),ge=ie>4||ie===0?Xm.ceil(ge):Xm(ge),ge=_d.offset(ge,(z.V-1)*7),z.y=ge.getFullYear(),z.m=ge.getMonth(),z.d=ge.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),ie="Z"in z?e1(Ll(z.y,0,1)).getUTCDay():Zy(Ll(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(ie+5)%7:z.w+z.U*7-(ie+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,e1(z)):Zy(z)}}function k(G,J,ee,z){for(var de=0,ge=J.length,ie=ee.length,be,ke;de=ie)return-1;if(be=J.charCodeAt(de++),be===37){if(be=J.charAt(de++),ke=w[be in H5?J.charAt(de++):be],!ke||(z=ke(G,ee,z))<0)return-1}else if(be!=ee.charCodeAt(z++))return-1}return z}function D(G,J,ee){var z=l.exec(J.slice(ee));return z?(G.p=c.get(z[0].toLowerCase()),ee+z[0].length):-1}function P(G,J,ee){var z=h.exec(J.slice(ee));return z?(G.w=g.get(z[0].toLowerCase()),ee+z[0].length):-1}function T(G,J,ee){var z=f.exec(J.slice(ee));return z?(G.w=d.get(z[0].toLowerCase()),ee+z[0].length):-1}function I(G,J,ee){var z=y.exec(J.slice(ee));return z?(G.m=v.get(z[0].toLowerCase()),ee+z[0].length):-1}function O(G,J,ee){var z=p.exec(J.slice(ee));return z?(G.m=b.get(z[0].toLowerCase()),ee+z[0].length):-1}function N(G,J,ee){return k(G,t,J,ee)}function j(G,J,ee){return k(G,r,J,ee)}function H(G,J,ee){return k(G,n,J,ee)}function F(G){return o[G.getDay()]}function R(G){return a[G.getDay()]}function $(G){return u[G.getMonth()]}function q(G){return s[G.getMonth()]}function U(G){return i[+(G.getHours()>=12)]}function Y(G){return 1+~~(G.getMonth()/3)}function K(G){return o[G.getUTCDay()]}function Z(G){return a[G.getUTCDay()]}function ue(G){return u[G.getUTCMonth()]}function he(G){return s[G.getUTCMonth()]}function le(G){return i[+(G.getUTCHours()>=12)]}function se(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var J=S(G+="",m);return J.toString=function(){return G},J},parse:function(G){var J=A(G+="",!1);return J.toString=function(){return G},J},utcFormat:function(G){var J=S(G+="",x);return J.toString=function(){return G},J},utcParse:function(G){var J=A(G+="",!0);return J.toString=function(){return G},J}}}var H5={"-":"",_:" ",0:"0"},Nt=/^\s*\d+/,Qwe=/^%/,Jwe=/[\\^$*+?|[\]().{}]/g;function $e(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function eSe(e,t,r){var n=Nt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function tSe(e,t,r){var n=Nt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function rSe(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function nSe(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function iSe(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function W5(e,t,r){var n=Nt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function G5(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function aSe(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function oSe(e,t,r){var n=Nt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function sSe(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function K5(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function uSe(e,t,r){var n=Nt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Y5(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function lSe(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function cSe(e,t,r){var n=Nt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function fSe(e,t,r){var n=Nt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function dSe(e,t,r){var n=Nt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function pSe(e,t,r){var n=Qwe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hSe(e,t,r){var n=Nt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function mSe(e,t,r){var n=Nt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function X5(e,t){return $e(e.getDate(),t,2)}function gSe(e,t){return $e(e.getHours(),t,2)}function vSe(e,t){return $e(e.getHours()%12||12,t,2)}function ySe(e,t){return $e(1+_d.count(ea(e),e),t,3)}function uI(e,t){return $e(e.getMilliseconds(),t,3)}function bSe(e,t){return uI(e,t)+"000"}function xSe(e,t){return $e(e.getMonth()+1,t,2)}function wSe(e,t){return $e(e.getMinutes(),t,2)}function SSe(e,t){return $e(e.getSeconds(),t,2)}function ASe(e){var t=e.getDay();return t===0?7:t}function _Se(e,t){return $e(N0.count(ea(e)-1,e),t,2)}function lI(e){var t=e.getDay();return t>=4||t===0?Hu(e):Hu.ceil(e)}function CSe(e,t){return e=lI(e),$e(Hu.count(ea(e),e)+(ea(e).getDay()===4),t,2)}function kSe(e){return e.getDay()}function ESe(e,t){return $e(Xm.count(ea(e)-1,e),t,2)}function DSe(e,t){return $e(e.getFullYear()%100,t,2)}function PSe(e,t){return e=lI(e),$e(e.getFullYear()%100,t,2)}function TSe(e,t){return $e(e.getFullYear()%1e4,t,4)}function OSe(e,t){var r=e.getDay();return e=r>=4||r===0?Hu(e):Hu.ceil(e),$e(e.getFullYear()%1e4,t,4)}function $Se(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+$e(t/60|0,"0",2)+$e(t%60,"0",2)}function Q5(e,t){return $e(e.getUTCDate(),t,2)}function MSe(e,t){return $e(e.getUTCHours(),t,2)}function BSe(e,t){return $e(e.getUTCHours()%12||12,t,2)}function ISe(e,t){return $e(1+F0.count(ta(e),e),t,3)}function cI(e,t){return $e(e.getUTCMilliseconds(),t,3)}function RSe(e,t){return cI(e,t)+"000"}function jSe(e,t){return $e(e.getUTCMonth()+1,t,2)}function FSe(e,t){return $e(e.getUTCMinutes(),t,2)}function NSe(e,t){return $e(e.getUTCSeconds(),t,2)}function LSe(e){var t=e.getUTCDay();return t===0?7:t}function zSe(e,t){return $e(L0.count(ta(e)-1,e),t,2)}function fI(e){var t=e.getUTCDay();return t>=4||t===0?Wu(e):Wu.ceil(e)}function VSe(e,t){return e=fI(e),$e(Wu.count(ta(e),e)+(ta(e).getUTCDay()===4),t,2)}function qSe(e){return e.getUTCDay()}function USe(e,t){return $e(Qm.count(ta(e)-1,e),t,2)}function HSe(e,t){return $e(e.getUTCFullYear()%100,t,2)}function WSe(e,t){return e=fI(e),$e(e.getUTCFullYear()%100,t,2)}function GSe(e,t){return $e(e.getUTCFullYear()%1e4,t,4)}function KSe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Wu(e):Wu.ceil(e),$e(e.getUTCFullYear()%1e4,t,4)}function YSe(){return"+0000"}function J5(){return"%"}function Z5(e){return+e}function eP(e){return Math.floor(+e/1e3)}var xs,dI,pI;XSe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function XSe(e){return xs=Xwe(e),dI=xs.format,xs.parse,pI=xs.utcFormat,xs.utcParse,xs}function QSe(e){return new Date(e)}function JSe(e){return e instanceof Date?+e:+new Date(+e)}function IA(e,t,r,n,i,a,o,s,u,l){var c=wA(),f=c.invert,d=c.domain,h=l(".%L"),g=l(":%S"),p=l("%I:%M"),b=l("%I %p"),y=l("%a %d"),v=l("%b %d"),m=l("%B"),x=l("%Y");function w(S){return(u(S)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>zxe(e,a/n))},r.copy=function(){return vI(t).domain(e)},na.apply(r,arguments)}function V0(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,l=hr,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(n*pe.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ne.decimalPlaces=ne.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ze;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ne.dividedBy=ne.div=function(e){return Ui(this,new this.constructor(e))};ne.dividedToIntegerBy=ne.idiv=function(e){var t=this,r=t.constructor;return Ue(Ui(t,new r(e),0,1),r.precision)};ne.equals=ne.eq=function(e){return!this.cmp(e)};ne.exponent=function(){return At(this)};ne.greaterThan=ne.gt=function(e){return this.cmp(e)>0};ne.greaterThanOrEqualTo=ne.gte=function(e){return this.cmp(e)>=0};ne.isInteger=ne.isint=function(){return this.e>this.d.length-2};ne.isNegative=ne.isneg=function(){return this.s<0};ne.isPositive=ne.ispos=function(){return this.s>0};ne.isZero=function(){return this.s===0};ne.lessThan=ne.lt=function(e){return this.cmp(e)<0};ne.lessThanOrEqualTo=ne.lte=function(e){return this.cmp(e)<1};ne.logarithm=ne.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(zr))throw Error(Cn+"NaN");if(r.s<1)throw Error(Cn+(r.s?"NaN":"-Infinity"));return r.eq(zr)?new n(0):(at=!1,t=Ui(Cf(r,a),Cf(e,a),a),at=!0,Ue(t,i))};ne.minus=ne.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_I(t,e):SI(t,(e.s=-e.s,e))};ne.modulo=ne.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Cn+"NaN");return r.s?(at=!1,t=Ui(r,e,0,1).times(e),at=!0,r.minus(t)):Ue(new n(r),i)};ne.naturalExponential=ne.exp=function(){return AI(this)};ne.naturalLogarithm=ne.ln=function(){return Cf(this)};ne.negated=ne.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ne.plus=ne.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?SI(t,e):_I(t,(e.s=-e.s,e))};ne.precision=ne.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Vo+e);if(t=At(i)+1,n=i.d.length-1,r=n*Ze+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ne.squareRoot=ne.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(Cn+"NaN")}for(e=At(s),at=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=li(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ml((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(Ui(s,a,o+2)).times(.5),li(a.d).slice(0,o)===(t=li(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ue(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return at=!0,Ue(n,r)};ne.times=ne.mul=function(e){var t,r,n,i,a,o,s,u,l,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,u=d.length,l=h.length,u=0;){for(t=0,i=u+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%Bt|0,t=s/Bt|0;a[i]=(a[i]+t)%Bt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,at?Ue(e,f.precision):e};ne.toDecimalPlaces=ne.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(xi(e,0,hl),t===void 0?t=n.rounding:xi(t,0,8),Ue(r,e+At(r)+1,t))};ne.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=es(n,!0):(xi(e,0,hl),t===void 0?t=i.rounding:xi(t,0,8),n=Ue(new i(n),e+1,t),r=es(n,!0,e+1)),r};ne.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?es(i):(xi(e,0,hl),t===void 0?t=a.rounding:xi(t,0,8),n=Ue(new a(i),e+At(i)+1,t),r=es(n.abs(),!1,e+At(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ne.toInteger=ne.toint=function(){var e=this,t=e.constructor;return Ue(new t(e),At(e)+1,t.rounding)};ne.toNumber=function(){return+this};ne.toPower=ne.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,l=12,c=+(e=new u(e));if(!e.s)return new u(zr);if(s=new u(s),!s.s){if(e.s<1)throw Error(Cn+"Infinity");return s}if(s.eq(zr))return s;if(n=u.precision,e.eq(zr))return Ue(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=wI){for(i=new u(zr),t=Math.ceil(n/Ze+4),at=!1;r%2&&(i=i.times(s),nP(i.d,t)),r=ml(r/2),r!==0;)s=s.times(s),nP(s.d,t);return at=!0,e.s<0?new u(zr).div(i):Ue(i,n)}}else if(a<0)throw Error(Cn+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,at=!1,i=e.times(Cf(s,n+l)),at=!0,i=AI(i),i.s=a,i};ne.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=At(i),n=es(i,r<=a.toExpNeg||r>=a.toExpPos)):(xi(e,1,hl),t===void 0?t=a.rounding:xi(t,0,8),i=Ue(new a(i),e,t),r=At(i),n=es(i,e<=r||r<=a.toExpNeg,e)),n};ne.toSignificantDigits=ne.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(xi(e,1,hl),t===void 0?t=n.rounding:xi(t,0,8)),Ue(new n(r),e,t)};ne.toString=ne.valueOf=ne.val=ne.toJSON=ne[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=At(e),r=e.constructor;return es(e,t<=r.toExpNeg||t>=r.toExpPos)};function SI(e,t){var r,n,i,a,o,s,u,l,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),at?Ue(t,f):t;if(u=e.d,l=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,s=l.length):(n=l,i=o,s=u.length),o=Math.ceil(f/Ze),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=u.length,a=l.length,s-a<0&&(a=s,n=l,l=u,u=n),r=0;a;)r=(u[--a]=u[a]+l[a]+r)/Bt|0,u[a]%=Bt;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,at?Ue(t,f):t}function xi(e,t,r){if(e!==~~e||er)throw Error(Vo+e)}function li(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(s=u=0;si[s]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var s,u,l,c,f,d,h,g,p,b,y,v,m,x,w,S,A,k,D=n.constructor,P=n.s==i.s?1:-1,T=n.d,I=i.d;if(!n.s)return new D(n);if(!i.s)throw Error(Cn+"Division by zero");for(u=n.e-i.e,A=I.length,w=T.length,h=new D(P),g=h.d=[],l=0;I[l]==(T[l]||0);)++l;if(I[l]>(T[l]||0)&&--u,a==null?v=a=D.precision:o?v=a+(At(n)-At(i))+1:v=a,v<0)return new D(0);if(v=v/Ze+2|0,l=0,A==1)for(c=0,I=I[0],v++;(l1&&(I=e(I,c),T=e(T,c),A=I.length,w=T.length),x=A,p=T.slice(0,A),b=p.length;b=Bt/2&&++S;do c=0,s=t(I,p,A,b),s<0?(y=p[0],A!=b&&(y=y*Bt+(p[1]||0)),c=y/S|0,c>1?(c>=Bt&&(c=Bt-1),f=e(I,c),d=f.length,b=p.length,s=t(f,p,d,b),s==1&&(c--,r(f,A16)throw Error(FA+At(e));if(!e.s)return new c(zr);for(t==null?(at=!1,s=f):s=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(xo(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new c(zr),c.precision=s;;){if(i=Ue(i.times(e),s),r=r.times(++u),o=a.plus(Ui(i,r,s)),li(o.d).slice(0,s)===li(a.d).slice(0,s)){for(;l--;)a=Ue(a.times(a),s);return c.precision=f,t==null?(at=!0,Ue(a,f)):a}a=o}}function At(e){for(var t=e.e*Ze,r=e.d[0];r>=10;r/=10)t++;return t}function t1(e,t,r){if(t>e.LN10.sd())throw at=!0,r&&(e.precision=r),Error(Cn+"LN10 precision limit exceeded");return Ue(new e(e.LN10),t)}function va(e){for(var t="";e--;)t+="0";return t}function Cf(e,t){var r,n,i,a,o,s,u,l,c,f=1,d=10,h=e,g=h.d,p=h.constructor,b=p.precision;if(h.s<1)throw Error(Cn+(h.s?"NaN":"-Infinity"));if(h.eq(zr))return new p(0);if(t==null?(at=!1,l=b):l=t,h.eq(10))return t==null&&(at=!0),t1(p,l);if(l+=d,p.precision=l,r=li(g),n=r.charAt(0),a=At(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=li(h.d),n=r.charAt(0),f++;a=At(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return u=t1(p,l+2,b).times(a+""),h=Cf(new p(n+"."+r.slice(1)),l-d).plus(u),p.precision=b,t==null?(at=!0,Ue(h,b)):h;for(s=o=h=Ui(h.minus(zr),h.plus(zr),l),c=Ue(h.times(h),l),i=3;;){if(o=Ue(o.times(c),l),u=s.plus(Ui(o,new p(i),l)),li(u.d).slice(0,l)===li(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(t1(p,l+2,b).times(a+""))),s=Ui(s,new p(f),l),p.precision=b,t==null?(at=!0,Ue(s,b)):s;s=u,i+=2}}function rP(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=ml(r/Ze),e.d=[],n=(r+1)%Ze,r<0&&(n+=Ze),nJm||e.e<-Jm))throw Error(FA+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ue(e,t,r){var n,i,a,o,s,u,l,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ze,i=t,l=f[c=0];else{if(c=Math.ceil((n+1)/Ze),a=f.length,c>=a)return e;for(l=a=f[c],o=1;a>=10;a/=10)o++;n%=Ze,i=n-Ze+o}if(r!==void 0&&(a=xo(10,o-i-1),s=l/a%10|0,u=t<0||f[c+1]!==void 0||l%a,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?l/xo(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=At(e),f.length=1,t=t-a-1,f[0]=xo(10,(Ze-t%Ze)%Ze),e.e=ml(-t/Ze)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=xo(10,Ze-n),f[c]=i>0?(l/xo(10,o-i)%xo(10,i)|0)*a:0),u)for(;;)if(c==0){(f[0]+=a)==Bt&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Bt)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(at&&(e.e>Jm||e.e<-Jm))throw Error(FA+At(e));return e}function _I(e,t){var r,n,i,a,o,s,u,l,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),at?Ue(t,h):t;if(u=e.d,f=t.d,n=t.e,l=e.e,u=u.slice(),o=l-n,o){for(c=o<0,c?(r=u,o=-o,s=f.length):(r=f,n=l,s=u.length),i=Math.max(Math.ceil(h/Ze),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=f.length,c=i0;--i)u[s++]=0;for(i=f.length;i>o;){if(u[--i]0?a=a.charAt(0)+"."+a.slice(1)+va(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+va(-i-1)+a,r&&(n=r-o)>0&&(a+=va(n))):i>=o?(a+=va(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+va(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=va(n))),e.s<0?"-"+a:a}function nP(e,t){if(e.length>t)return e.length=t,!0}function CI(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Vo+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return rP(o,a.toString())}else if(typeof a!="string")throw Error(Vo+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,iAe.test(a))rP(o,a);else throw Error(Vo+a)}if(i.prototype=ne,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=CI,i.config=i.set=aAe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Vo+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Vo+r+": "+n);return this}var NA=CI(nAe);zr=new NA(1);const Le=NA;function oAe(e){return cAe(e)||lAe(e)||uAe(e)||sAe()}function sAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uAe(e,t){if(e){if(typeof e=="string")return Jb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jb(e,t)}}function lAe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cAe(e){if(Array.isArray(e))return Jb(e)}function Jb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,iP(function(){for(var s=arguments.length,u=new Array(s),l=0;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function CAe(e){if(Array.isArray(e))return e}function TI(e){var t=kf(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function OI(e,t,r){if(e.lte(0))return new Le(0);var n=U0.getDigitCount(e.toNumber()),i=new Le(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Le(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?u:new Le(Math.ceil(u))}function kAe(e,t,r){var n=1,i=new Le(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Le(10).pow(U0.getDigitCount(e)-1),i=new Le(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Le(Math.floor(e)))}else e===0?i=new Le(Math.floor((t-1)/2)):r||(i=new Le(Math.floor(e)));var o=Math.floor((t-1)/2),s=hAe(pAe(function(u){return i.add(new Le(u-o).mul(n)).toNumber()}),Zb);return s(0,t)}function $I(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Le(0),tickMin:new Le(0),tickMax:new Le(0)};var a=OI(new Le(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Le(0):(o=new Le(e).add(t).div(2),o=o.sub(new Le(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new Le(t).sub(o).div(a).toNumber()),l=s+u+1;return l>r?$I(e,t,r,n,i+1):(l0?u+(r-l):u,s=t>0?s:s+(r-l)),{step:a,tickMin:o.sub(new Le(s).mul(a)),tickMax:o.add(new Le(u).mul(a))})}function EAe(e){var t=kf(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=TI([r,n]),u=kf(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(tx(Zb(0,i-1).map(function(){return 1/0}))):[].concat(tx(Zb(0,i-1).map(function(){return-1/0})),[c]);return r>n?ex(f):f}if(l===c)return kAe(l,i,a);var d=$I(l,c,o,a),h=d.step,g=d.tickMin,p=d.tickMax,b=U0.rangeStep(g,p.add(new Le(.1).mul(h)),h);return r>n?ex(b):b}function DAe(e,t){var r=kf(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=TI([n,i]),s=kf(o,2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[n,i];if(u===l)return[u];var c=Math.max(t,2),f=OI(new Le(l).sub(u).div(c-1),a,0),d=[].concat(tx(U0.rangeStep(new Le(u),new Le(l).sub(new Le(.99).mul(f)),f)),[l]);return n>i?ex(d):d}var PAe=DI(EAe),TAe=DI(DAe),OAe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FAe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function H0(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,u=e.yAxis,l=jAe(e,OAe),c=ze(l),f=a.map(function(d,h){var g=o(d,i),p=g.x,b=g.y,y=g.value,v=g.errorVal;if(!v)return null;var m=[],x,w;if(Array.isArray(v)){var S=$Ae(v,2);x=S[0],w=S[1]}else x=w=v;if(r==="vertical"){var A=s.scale,k=b+t,D=k+n,P=k-n,T=A(y-x),I=A(y+w);m.push({x1:I,y1:D,x2:I,y2:P}),m.push({x1:T,y1:k,x2:I,y2:k}),m.push({x1:T,y1:D,x2:T,y2:P})}else if(r==="horizontal"){var O=u.scale,N=p+t,j=N-n,H=N+n,F=O(y-x),R=O(y+w);m.push({x1:j,y1:R,x2:H,y2:R}),m.push({x1:N,y1:F,x2:N,y2:R}),m.push({x1:j,y1:F,x2:H,y2:F})}return V.createElement(Ut,Zm({className:"recharts-errorBar",key:"bar-".concat(h)},c),m.map(function($,q){return V.createElement("line",Zm({},$,{key:"line-".concat(q)}))}))});return V.createElement(Ut,{className:"recharts-errorBars"},f)}H0.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};H0.displayName="ErrorBar";function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(e)}function oP(e){return VAe(e)||zAe(e)||LAe(e)||NAe()}function NAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LAe(e,t){if(e){if(typeof e=="string")return nx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nx(e,t)}}function zAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VAe(e){if(Array.isArray(e))return nx(e)}function nx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,l=0;l0?i[l-1].coordinate:i[s-1].coordinate,f=i[l].coordinate,d=l>=s-1?i[0].coordinate:i[l+1].coordinate,h=void 0;if(pn(f-c)!==pn(d-f)){var g=[];if(pn(d-f)===pn(u[1]-u[0])){h=d;var p=f+u[1]-u[0];g[0]=Math.min(p,(p+c)/2),g[1]=Math.max(p,(p+c)/2)}else{h=c;var b=d+u[1]-u[0];g[0]=Math.min(f,(b+f)/2),g[1]=Math.max(f,(b+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=g[0]&&t<=g[1]){o=i[l].index;break}}else{var v=Math.min(c,d),m=Math.max(c,d);if(t>(v+f)/2&&t<=(m+f)/2){o=i[l].index;break}}}else for(var x=0;x0&&x(n[x].coordinate+n[x-1].coordinate)/2&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x===s-1&&t>(n[x].coordinate+n[x-1].coordinate)/2){o=n[x].index;break}return o},LA=function(t){var r=t,n=r.type.displayName,i=t.props,a=i.stroke,o=i.fill,s;switch(n){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:o;break;default:s=o;break}return s},MI=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ji(r,mf);if(!o)return null;var s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(u,l){var c=l.item,f=l.props,d=f.sectors||f.data||[];return u.concat(d.map(function(h){return{type:o.props.iconType||c.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):s=(n||[]).map(function(u){var l=u.item,c=l.props,f=c.dataKey,d=c.name,h=c.legendType,g=c.hide;return{inactive:g,dataKey:f,type:o.props.iconType||h||"square",color:LA(l),value:d||f,payload:l.props}}),dr(dr(dr({},o.props),mf.getWithHeight(o,i)),{},{payload:s,item:o})},WAe=function(t){var r=t.barSize,n=t.stackGroups,i=n===void 0?{}:n;if(!i)return{};for(var a={},o=Object.keys(i),s=0,u=o.length;s=0});if(b&&b.length){var y=b[0].props.barSize,v=b[0].props[p];a[v]||(a[v]=[]),a[v].push({item:b[0],stackList:b.slice(1),barSize:ve(y)?r:y})}}return a},GAe=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,u=o.length;if(u<1)return null;var l=Ru(r,i,0,!0),c;if(o[0].barSize===+o[0].barSize){var f=!1,d=i/u,h=o.reduce(function(m,x){return m+x.barSize||0},0);h+=(u-1)*l,h>=i&&(h-=(u-1)*l,l=0),h>=i&&d>0&&(f=!0,d*=.9,h=u*d);var g=(i-h)/2>>0,p={offset:g-l,size:0};c=o.reduce(function(m,x){var w=[].concat(oP(m),[{item:x.item,position:{offset:p.offset+p.size+l,size:f?d:x.barSize}}]);return p=w[w.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(S){w.push({item:S,position:p})}),w},[])}else{var b=Ru(n,i,0,!0);i-2*b-(u-1)*l<=0&&(l=0);var y=(i-2*b-(u-1)*l)/u;y>1&&(y>>=0);var v=s===+s?Math.min(y,s):y;c=o.reduce(function(m,x,w){var S=[].concat(oP(m),[{item:x.item,position:{offset:b+(y+l)*w+(y-v)/2,size:v}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},[])}return c},KAe=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),l=MI({children:a,legendWidth:u}),c=t;if(l){var f=i||{},d=l.align,h=l.verticalAlign,g=l.layout;(g==="vertical"||g==="horizontal"&&h==="middle")&&Q(t[d])&&(c=dr(dr({},t),{},mu({},d,c[d]+(f.width||0)))),(g==="horizontal"||g==="vertical"&&d==="center")&&Q(t[h])&&(c=dr(dr({},t),{},mu({},h,c[h]+(f.height||0))))}return c},YAe=function(t,r,n){return ve(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},BI=function(t,r,n,i,a){var o=r.props.children,s=Wn(o,H0).filter(function(l){return YAe(i,a,l.props.direction)});if(s&&s.length){var u=s.map(function(l){return l.props.dataKey});return t.reduce(function(l,c){var f=wi(c,n,0),d=Ht(f)?[R0(f),I0(f)]:[f,f],h=u.reduce(function(g,p){var b=wi(c,p,0),y=d[0]-Math.abs(Ht(b)?b[0]:b),v=d[1]+Math.abs(Ht(b)?b[1]:b);return[Math.min(y,g[0]),Math.max(v,g[1])]},[1/0,-1/0]);return[Math.min(h[0],l[0]),Math.max(h[1],l[1])]},[1/0,-1/0])}return null},XAe=function(t,r,n,i,a){var o=r.map(function(s){return BI(t,s,n,a,i)}).filter(function(s){return!ve(s)});return o&&o.length?o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]):null},II=function(t,r,n,i,a){var o=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&BI(t,u,l,i)||Oc(t,l,n,a)});if(n==="number")return o.reduce(function(u,l){return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]);var s={};return o.reduce(function(u,l){for(var c=0,f=l.length;c=2?pn(s[0]-s[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+l,value:f,offset:l}});return c.filter(function(f){return!yd(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+l,value:f,index:d,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+l,value:f,offset:l}}):i.domain().map(function(f,d){return{coordinate:i(f)+l,value:a?a[f]:f,index:d,offset:l}})},Ap=function(t,r,n){var i;return xe(n)?i=n:xe(r)&&(i=r),xe(t)||i?function(a,o,s,u){xe(t)&&t(a,o,s,u),xe(i)&&i(a,o,s,u)}:null},QAe=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:xf(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Km(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Tc(),realScaleType:"point"}:a==="category"?{scale:xf(),realScaleType:"band"}:{scale:Km(),realScaleType:"linear"};if(vd(i)){var u="scale".concat(P0(i));return{scale:(tP[u]||Tc)(),realScaleType:tP[u]?u:"point"}}return xe(i)?{scale:i}:{scale:Tc(),realScaleType:"point"}},lP=1e-4,JAe=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-lP,o=Math.max(i[0],i[1])+lP,s=t(r[0]),u=t(r[n-1]);(so||uo)&&t.domain([r[0],r[n-1]])}},ZAe=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[s][n][0]=a,t[s][n][1]=a+u,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+u,o=t[s][n][1])}},r_e=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},n_e={sign:t_e,expand:B0e,none:ju,silhouette:I0e,wiggle:R0e,positive:r_e},i_e=function(t,r,n){var i=r.map(function(o){return o.props.dataKey}),a=M0e().keys(i).value(function(o,s){return+wi(o,s,0)}).order(xb).offset(n_e[n]);return a(t)},a_e=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,u=s.reduce(function(l,c){var f=c.props,d=f.stackId,h=f.hide;if(h)return l;var g=c.props[n],p=l[g]||{hasStack:!1,stackGroups:{}};if(Pt(d)){var b=p.stackGroups[d]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(c),p.hasStack=!0,p.stackGroups[d]=b}else p.stackGroups[E0("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[c]};return dr(dr({},l),{},mu({},g,p))},{});return Object.keys(u).reduce(function(l,c){var f=u[c];return f.hasStack&&(f.stackGroups=Object.keys(f.stackGroups).reduce(function(d,h){var g=f.stackGroups[h];return dr(dr({},d),{},mu({},h,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:i_e(t,g.items,a)}))},{})),dr(dr({},l),{},mu({},c,f))},{})},o_e=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var c=PAe(l,a,s);return t.domain([R0(c),I0(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=TAe(f,a,s);return{niceTicks:d}}return null},cP=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=wi(o,r.dataKey,r.domain[s]);return ve(u)?null:r.scale(u)-a/2+i},s_e=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},u_e=function(t,r){var n=t.props.stackId;if(Pt(n)){var i=r[n];if(i&&i.items.length){for(var a=-1,o=0,s=i.items.length;o=0?i.stackedData[a]:null}}return null},l_e=function(t){return t.reduce(function(r,n){return[R0(n.concat([r[0]]).filter(Q)),I0(n.concat([r[1]]).filter(Q))]},[1/0,-1/0])},jI=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,u=s.reduce(function(l,c){var f=l_e(c.slice(r,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},fP=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ix=function(t,r,n){if(xe(t))return t(r,n);if(!Ht(t))return r;var i=[];if(Q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(fP.test(t[0])){var a=+fP.exec(t[0])[1];i[0]=r[0]-a}else xe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(dP.test(t[1])){var o=+dP.exec(t[1])[1];i[1]=r[1]+o}else xe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},eg=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=mA(r,function(f){return f.coordinate}),o=1/0,s=1,u=a.length;so&&(l=2*Math.PI-l),{radius:s,angle:p_e(l),angleInRadian:l}},g_e=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},v_e=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},gP=function(t,r){var n=t.x,i=t.y,a=m_e({x:n,y:i},r),o=a.radius,s=a.angle,u=r.innerRadius,l=r.outerRadius;if(ol)return!1;if(o===0)return!0;var c=g_e(r),f=c.startAngle,d=c.endAngle,h=s,g;if(f<=d){for(;h>d;)h-=360;for(;h=f&&h<=d}else{for(;h>f;)h-=360;for(;h=d&&h<=f}return g?mP(mP({},r),{},{radius:o,angle:v_e(h,r)}):null};function Pf(e){"@babel/helpers - typeof";return Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pf(e)}var y_e=["offset"];function b_e(e){return A_e(e)||S_e(e)||w_e(e)||x_e()}function x_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w_e(e,t){if(e){if(typeof e=="string")return ax(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ax(e,t)}}function S_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A_e(e){if(Array.isArray(e))return ax(e)}function ax(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function C_e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function vP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t=0?1:-1,m,x;i==="insideStart"?(m=h+v*o,x=p):i==="insideEnd"?(m=g-v*o,x=!p):i==="end"&&(m=g+v*o,x=p),x=y<=0?x:!x;var w=Wt(l,c,b,m),S=Wt(l,c,b,m+(x?1:-1)*359),A="M".concat(w.x,",").concat(w.y,` - A`).concat(b,",").concat(b,",0,1,").concat(x?0:1,`, - `).concat(S.x,",").concat(S.y),k=ve(t.id)?E0("recharts-radial-line-"):t.id;return V.createElement("text",Tf({},n,{dominantBaseline:"central",className:Ke("recharts-radial-bar-label",s)}),V.createElement("defs",null,V.createElement("path",{id:k,d:A})),V.createElement("textPath",{xlinkHref:"#".concat(k)},r))},$_e=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,u=a.innerRadius,l=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var h=Wt(o,s,l+n,d),g=h.x,p=h.y;return{x:g,y:p,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(u+l)/2,y=Wt(o,s,b,d),v=y.x,m=y.y;return{x:v,y:m,textAnchor:"middle",verticalAnchor:"middle"}},M_e=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,u=o.y,l=o.width,c=o.height,f=c>=0?1:-1,d=f*i,h=f>0?"end":"start",g=f>0?"start":"end",p=l>=0?1:-1,b=p*i,y=p>0?"end":"start",v=p>0?"start":"end";if(a==="top"){var m={x:s+l/2,y:u-f*i,textAnchor:"middle",verticalAnchor:h};return kt(kt({},m),n?{height:Math.max(u-n.y,0),width:l}:{})}if(a==="bottom"){var x={x:s+l/2,y:u+c+d,textAnchor:"middle",verticalAnchor:g};return kt(kt({},x),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{})}if(a==="left"){var w={x:s-b,y:u+c/2,textAnchor:y,verticalAnchor:"middle"};return kt(kt({},w),n?{width:Math.max(w.x-n.x,0),height:c}:{})}if(a==="right"){var S={x:s+l+b,y:u+c/2,textAnchor:v,verticalAnchor:"middle"};return kt(kt({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:c}:{})}var A=n?{width:l,height:c}:{};return a==="insideLeft"?kt({x:s+b,y:u+c/2,textAnchor:v,verticalAnchor:"middle"},A):a==="insideRight"?kt({x:s+l-b,y:u+c/2,textAnchor:y,verticalAnchor:"middle"},A):a==="insideTop"?kt({x:s+l/2,y:u+d,textAnchor:"middle",verticalAnchor:g},A):a==="insideBottom"?kt({x:s+l/2,y:u+c-d,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?kt({x:s+b,y:u+d,textAnchor:v,verticalAnchor:g},A):a==="insideTopRight"?kt({x:s+l-b,y:u+d,textAnchor:y,verticalAnchor:g},A):a==="insideBottomLeft"?kt({x:s+b,y:u+c-d,textAnchor:v,verticalAnchor:h},A):a==="insideBottomRight"?kt({x:s+l-b,y:u+c-d,textAnchor:y,verticalAnchor:h},A):il(a)&&(Q(a.x)||To(a.x))&&(Q(a.y)||To(a.y))?kt({x:s+Ru(a.x,l),y:u+Ru(a.y,c),textAnchor:"end",verticalAnchor:"end"},A):kt({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},A)},B_e=function(t){return"cx"in t&&Q(t.cx)};function nr(e){var t=e.offset,r=t===void 0?5:t,n=__e(e,y_e),i=kt({offset:r},n),a=i.viewBox,o=i.position,s=i.value,u=i.children,l=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!a||ve(s)&&ve(u)&&!C.isValidElement(l)&&!xe(l))return null;if(C.isValidElement(l))return C.cloneElement(l,i);var h;if(xe(l)){if(h=C.createElement(l,i),C.isValidElement(h))return h}else h=P_e(i);var g=B_e(a),p=ze(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return O_e(i,h,p);var b=g?$_e(i):M_e(i);return V.createElement(zm,Tf({className:Ke("recharts-label",f)},p,b,{breakAll:d}),h)}nr.displayName="Label";var NI=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,u=t.radius,l=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,h=t.top,g=t.left,p=t.width,b=t.height,y=t.clockWise,v=t.labelViewBox;if(v)return v;if(Q(p)&&Q(b)){if(Q(f)&&Q(d))return{x:f,y:d,width:p,height:b};if(Q(h)&&Q(g))return{x:h,y:g,width:p,height:b}}return Q(f)&&Q(d)?{x:f,y:d,width:0,height:0}:Q(r)&&Q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:c||u||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},I_e=function(t,r){return t?t===!0?V.createElement(nr,{key:"label-implicit",viewBox:r}):Pt(t)?V.createElement(nr,{key:"label-implicit",viewBox:r,value:t}):C.isValidElement(t)?t.type===nr?C.cloneElement(t,{key:"label-implicit",viewBox:r}):V.createElement(nr,{key:"label-implicit",content:t,viewBox:r}):xe(t)?V.createElement(nr,{key:"label-implicit",content:t,viewBox:r}):il(t)?V.createElement(nr,Tf({viewBox:r},t,{key:"label-implicit"})):null:null},R_e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=NI(t),o=Wn(i,nr).map(function(u,l){return C.cloneElement(u,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=I_e(t.label,r||a);return[s].concat(b_e(o))};nr.parseViewBox=NI;nr.renderCallByParent=R_e;function j_e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var F_e=j_e;const N_e=Pe(F_e);function Of(e){"@babel/helpers - typeof";return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Of(e)}var L_e=["valueAccessor"],z_e=["data","dataKey","clockWise","id","textBreakAll"];function V_e(e){return W_e(e)||H_e(e)||U_e(e)||q_e()}function q_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U_e(e,t){if(e){if(typeof e=="string")return ox(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ox(e,t)}}function H_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W_e(e){if(Array.isArray(e))return ox(e)}function ox(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function X_e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Q_e=function(t){return Ht(t.value)?N_e(t.value):t.value};function qo(e){var t=e.valueAccessor,r=t===void 0?Q_e:t,n=xP(e,L_e),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,l=xP(n,z_e);return!i||!i.length?null:V.createElement(Ut,{className:"recharts-label-list"},i.map(function(c,f){var d=ve(a)?r(c,f):wi(c&&c.payload,a),h=ve(s)?{}:{id:"".concat(s,"-").concat(f)};return V.createElement(nr,rg({},ze(c,!0),l,h,{parentViewBox:c.parentViewBox,index:f,value:d,textBreakAll:u,viewBox:nr.parseViewBox(ve(o)?c:bP(bP({},c),{},{clockWise:o})),key:"label-".concat(f)}))}))}qo.displayName="LabelList";function J_e(e,t){return e?e===!0?V.createElement(qo,{key:"labelList-implicit",data:t}):V.isValidElement(e)||xe(e)?V.createElement(qo,{key:"labelList-implicit",data:t,content:e}):il(e)?V.createElement(qo,rg({data:t},e,{key:"labelList-implicit"})):null:null}function Z_e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Wn(n,qo).map(function(o,s){return C.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=J_e(e.label,t);return[a].concat(V_e(i))}qo.renderCallByParent=Z_e;function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>l),`, - `).concat(f.x,",").concat(f.y,` - `);if(i>0){var h=Wt(r,n,i,o),g=Wt(r,n,i,l);d+="L ".concat(g.x,",").concat(g.y,` - A `).concat(i,",").concat(i,`,0, - `).concat(+(Math.abs(u)>180),",").concat(+(o<=l),`, - `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},iCe=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,l=t.startAngle,c=t.endAngle,f=pn(c-l),d=_p({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),h=d.circleTangency,g=d.lineTangency,p=d.theta,b=_p({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),y=b.circleTangency,v=b.lineTangency,m=b.theta,x=u?Math.abs(l-c):Math.abs(l-c)-p-m;if(x<0)return s?"M ".concat(g.x,",").concat(g.y,` - a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 - a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 - `):LI({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c});var w="M ".concat(g.x,",").concat(g.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,` - A`).concat(a,",").concat(a,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,` - `);if(i>0){var S=_p({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),A=S.circleTangency,k=S.lineTangency,D=S.theta,P=_p({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),T=P.circleTangency,I=P.lineTangency,O=P.theta,N=u?Math.abs(l-c):Math.abs(l-c)-D-O;if(N<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(I.x,",").concat(I.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,` - A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},aCe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},oCe=function(t){var r=SP(SP({},aCe),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(o0&&Math.abs(c-f)<360?b=iCe({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:c,endAngle:f}):b=LI({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),V.createElement("path",sx({},ze(r,!0),{className:h,d:b,role:"img"}))};function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}function ux(){return ux=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,u=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;do?o:a[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(t+u*f[0],",").concat(r)),c+="L ".concat(t+n-u*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`, - `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`, - `).concat(t+n-u*f[2],",").concat(r+i)),c+="L ".concat(t+u*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`, - `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);c="M ".concat(t,",").concat(r+s*g,` - A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+u*g,",").concat(r,` - L `).concat(t+n-u*g,",").concat(r,` - A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+n,",").concat(r+s*g,` - L `).concat(t+n,",").concat(r+i-s*g,` - A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+n-u*g,",").concat(r+i,` - L `).concat(t+u*g,",").concat(r+i,` - A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t,",").concat(r+i-s*g," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},xCe=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,u=r.height;if(Math.abs(s)>0&&Math.abs(u)>0){var l=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+u),d=Math.max(o,o+u);return n>=l&&n<=c&&i>=f&&i<=d}return!1},wCe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zA=function(t){var r=PP(PP({},wCe),t),n=C.useRef(),i=C.useState(-1),a=dCe(i,2),o=a[0],s=a[1];C.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var u=r.x,l=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,g=r.animationEasing,p=r.animationDuration,b=r.animationBegin,y=r.isAnimationActive,v=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var m=Ke("recharts-rectangle",h);return v?V.createElement(Vu,{canBegin:o>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:p,animationEasing:g,isActive:v},function(x){var w=x.width,S=x.height,A=x.x,k=x.y;return V.createElement(Vu,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:p,isActive:y,easing:g},V.createElement("path",ng({},ze(r,!0),{className:m,d:TP(A,k,w,S,d),ref:n})))}):V.createElement("path",ng({},ze(r,!0),{className:m,d:TP(u,l,c,f,d)}))};function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DCe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var PCe=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},TCe=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,u=t.left,l=u===void 0?0:u,c=t.width,f=c===void 0?0:c,d=t.height,h=d===void 0?0:d,g=t.className,p=ECe(t,SCe),b=ACe({x:n,y:a,top:s,left:l,width:f,height:h},p);return!Q(n)||!Q(a)||!Q(f)||!Q(h)||!Q(s)||!Q(l)?null:V.createElement("path",cx({},ze(b,!0),{className:Ke("recharts-cross",g),d:PCe(n,a,f,h,s,l)}))},OCe=Math.ceil,$Ce=Math.max;function MCe(e,t,r,n){for(var i=-1,a=$Ce(OCe((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var BCe=MCe,ICe=TB,$P=1/0,RCe=17976931348623157e292;function jCe(e){if(!e)return e===0?e:0;if(e=ICe(e),e===$P||e===-$P){var t=e<0?-1:1;return t*RCe}return e===e?e:0}var VI=jCe,FCe=BCe,NCe=B0,r1=VI;function LCe(e){return function(t,r,n){return n&&typeof n!="number"&&NCe(t,r,n)&&(r=n=void 0),t=r1(t),r===void 0?(r=t,t=0):r=r1(r),n=n===void 0?t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},og(e)}function jr(e,t,r){return t=UI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UI(e){var t=tke(e,"string");return Gu(t)==="symbol"?t:String(t)}function tke(e,t){if(Gu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rke=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,l=Tc().domain(ig(0,u)).range([a,a+o-s]),c=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:c}},jP=function(t){return t.changedTouches&&!!t.changedTouches.length},jf=function(e){QCe(r,e);var t=JCe(r);function r(n){var i;return YCe(this,r),i=t.call(this,n),jr(Zn(i),"handleDrag",function(a){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(a):i.state.isSlideMoving&&i.handleSlideDrag(a)}),jr(Zn(i),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&i.handleDrag(a.changedTouches[0])}),jr(Zn(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1}),i.detachDragEndListener()}),jr(Zn(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),jr(Zn(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),jr(Zn(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),jr(Zn(i),"handleSlideDragStart",function(a){var o=jP(a)?a.changedTouches[0]:a;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(Zn(i),"startX"),endX:i.handleTravellerDragStart.bind(Zn(i),"endX")},i.state={},i}return XCe(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var a=i.startX,o=i.endX,s=this.state.scaleValues,u=this.props,l=u.gap,c=u.data,f=c.length-1,d=Math.min(a,o),h=Math.max(a,o),g=r.getIndexInRange(s,d),p=r.getIndexInRange(s,h);return{startIndex:g-g%l,endIndex:p===f?f:p-p%l}}},{key:"getTextOfTick",value:function(i){var a=this.props,o=a.data,s=a.tickFormatter,u=a.dataKey,l=wi(o[i],u,i);return xe(s)?s(l,i):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var a=this.state,o=a.slideMoveStartX,s=a.startX,u=a.endX,l=this.props,c=l.x,f=l.width,d=l.travellerWidth,h=l.startIndex,g=l.endIndex,p=l.onChange,b=i.pageX-o;b>0?b=Math.min(b,c+f-d-u,c+f-d-s):b<0&&(b=Math.max(b,c-s,c-u));var y=this.getIndex({startX:s+b,endX:u+b});(y.startIndex!==h||y.endIndex!==g)&&p&&p(y),this.setState({startX:s+b,endX:u+b,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,a){var o=jP(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var a,o=this.state,s=o.brushMoveStartX,u=o.movingTravellerId,l=o.endX,c=o.startX,f=this.state[u],d=this.props,h=d.x,g=d.width,p=d.travellerWidth,b=d.onChange,y=d.gap,v=d.data,m={startX:this.state.startX,endX:this.state.endX},x=i.pageX-s;x>0?x=Math.min(x,h+g-p-f):x<0&&(x=Math.max(x,h-f)),m[u]=f+x;var w=this.getIndex(m),S=w.startIndex,A=w.endIndex,k=function(){var P=v.length-1;return u==="startX"&&(l>c?S%y===0:A%y===0)||lc?A%y===0:S%y===0)||l>c&&A===P};this.setState((a={},jr(a,u,f+x),jr(a,"brushMoveStartX",i.pageX),a),function(){b&&k()&&b(w)})}},{key:"handleTravellerMoveKeyboard",value:function(i,a){var o=this,s=this.state,u=s.scaleValues,l=s.startX,c=s.endX,f=this.state[a],d=u.indexOf(f);if(d!==-1){var h=d+i;if(!(h===-1||h>=u.length)){var g=u[h];a==="startX"&&g>=c||a==="endX"&&g<=l||this.setState(jr({},a,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.fill,c=i.stroke;return V.createElement("rect",{stroke:c,fill:l,x:a,y:o,width:s,height:u})}},{key:"renderPanorama",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.data,c=i.children,f=i.padding,d=C.Children.only(c);return d?V.cloneElement(d,{x:a,y:o,width:s,height:u,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(i,a){var o=this,s=this.props,u=s.y,l=s.travellerWidth,c=s.height,f=s.traveller,d=Math.max(i,this.props.x),h=n1(n1({},ze(this.props)),{},{x:d,y:u,width:l,height:c});return V.createElement(Ut,{tabIndex:0,role:"slider",className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(p){["ArrowLeft","ArrowRight"].includes(p.key)&&(p.preventDefault(),p.stopPropagation(),o.handleTravellerMoveKeyboard(p.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(f,h))}},{key:"renderSlide",value:function(i,a){var o=this.props,s=o.y,u=o.height,l=o.stroke,c=o.travellerWidth,f=Math.min(i,a)+c,d=Math.max(Math.abs(a-i)-c,0);return V.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:s,width:d,height:u})}},{key:"renderText",value:function(){var i=this.props,a=i.startIndex,o=i.endIndex,s=i.y,u=i.height,l=i.travellerWidth,c=i.stroke,f=this.state,d=f.startX,h=f.endX,g=5,p={pointerEvents:"none",fill:c};return V.createElement(Ut,{className:"recharts-brush-texts"},V.createElement(zm,ag({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-g,y:s+u/2},p),this.getTextOfTick(a)),V.createElement(zm,ag({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+l+g,y:s+u/2},p),this.getTextOfTick(o)))}},{key:"render",value:function(){var i=this.props,a=i.data,o=i.className,s=i.children,u=i.x,l=i.y,c=i.width,f=i.height,d=i.alwaysShowText,h=this.state,g=h.startX,p=h.endX,b=h.isTextActive,y=h.isSlideMoving,v=h.isTravellerMoving,m=h.isTravellerFocused;if(!a||!a.length||!Q(u)||!Q(l)||!Q(c)||!Q(f)||c<=0||f<=0)return null;var x=Ke("recharts-brush",o),w=V.Children.count(s)===1,S=KCe("userSelect","none");return V.createElement(Ut,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(g,p),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(p,"endX"),(b||y||v||m||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var a=i.x,o=i.y,s=i.width,u=i.height,l=i.stroke,c=Math.floor(o+u/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:a,y:o,width:s,height:u,fill:l,stroke:"none"}),V.createElement("line",{x1:a+1,y1:c,x2:a+s-1,y2:c,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:a+1,y1:c+2,x2:a+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,a){var o;return V.isValidElement(i)?o=V.cloneElement(i,a):xe(i)?o=i(a):o=r.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(i,a){var o=i.data,s=i.width,u=i.x,l=i.travellerWidth,c=i.updateId,f=i.startIndex,d=i.endIndex;if(o!==a.prevData||c!==a.prevUpdateId)return n1({prevData:o,prevTravellerWidth:l,prevUpdateId:c,prevX:u,prevWidth:s},o&&o.length?rke({data:o,width:s,x:u,travellerWidth:l,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||u!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([u,u+s-l]);var h=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:c,prevX:u,prevWidth:s,startX:a.scale(i.startIndex),endX:a.scale(i.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(i,a){for(var o=i.length,s=0,u=o-1;u-s>1;){var l=Math.floor((s+u)/2);i[l]>a?u=l:s=l}return a>=i[u]?u:s}}]),r}(C.PureComponent);jr(jf,"displayName","Brush");jr(jf,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var nke=hA;function ike(e,t){var r;return nke(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var ake=ike,oke=P6,ske=no,uke=ake,lke=br,cke=B0;function fke(e,t,r){var n=lke(e)?oke:uke;return r&&cke(e,t,r)&&(t=void 0),n(e,ske(t))}var dke=fke;const pke=Pe(dke);var yi=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r};function hke(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rke(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sg(e){return sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sg(e)}function _a(e,t,r){return t=WI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WI(e){var t=qke(e,"string");return Ku(t)==="symbol"?t:String(t)}function qke(e,t){if(Ku(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ku(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gl=function(e){Nke(r,e);var t=Lke(r);function r(){var n;jke(this,r);for(var i=arguments.length,a=new Array(i),o=0;o0&&Math.abs(N)0&&Math.abs(O)0&&(O=Math.min((Z||0)-(N[ue-1]||0),O))});var j=O/I,H=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(A=j*H/2),p.padding==="no-gap"){var F=Ru(t.barCategoryGap,j*H),R=j*H/2;A=R-F-(R-F)/H*F}}i==="xAxis"?k=[n.left+(m.left||0)+(A||0),n.left+n.width-(m.right||0)-(A||0)]:i==="yAxis"?k=u==="horizontal"?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0)+(A||0),n.top+n.height-(m.bottom||0)-(A||0)]:k=p.range,w&&(k=[k[1],k[0]]);var $=QAe(p,a,d),q=$.scale,U=$.realScaleType;q.domain(y).range(k),JAe(q);var Y=o_e(q,In(In({},p),{},{realScaleType:U}));i==="xAxis"?(T=b==="top"&&!x||b==="bottom"&&x,D=n.left,P=f[S]-T*p.height):i==="yAxis"&&(T=b==="left"&&!x||b==="right"&&x,D=f[S]-T*p.width,P=n.top);var K=In(In(In({},p),Y),{},{realScaleType:U,x:D,y:P,scale:q,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return K.bandSize=eg(K,Y),!p.hide&&i==="xAxis"?f[S]+=(T?-1:1)*K.height:p.hide||(f[S]+=(T?-1:1)*K.width),In(In({},h),{},W0({},g,K))},{})},KI=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},Kke=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return KI({x:r,y:n},{x:i,y:a})},YI=function(){function e(t){Uke(this,e),this.scale=t}return Hke(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}]),e}();W0(YI,"EPS",1e-4);var VA=function(t){var r=Object.keys(t).reduce(function(n,i){return In(In({},n),{},W0({},i,YI.create(t[i])))},{});return In(In({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return Mke(i,function(u,l){return r[l].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return HI(i,function(a,o){return r[o].isInRange(a)})}})};function Yke(e){return(e%180+180)%180}var Xke=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Yke(i),o=a*Math.PI/180,s=Math.atan(n/r),u=o>s&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2?pn(b[1].coordinate-b[0].coordinate):1,m,x;v===1?(m=g==="width"?c:f,x=g==="width"?c+d:f+h):(m=g==="width"?c+d:f+h,x=g==="width"?c:f);for(var w=y-1;w>=0;w--){var S=b[w],A=xe(n)?n(S.value,y-w-1):S.value,k=g==="width"?yx(ui(A,{fontSize:u,letterSpacing:l}),p,t):ui(A,{fontSize:u,letterSpacing:l})[g];if(w===y-1){var D=v*(S.coordinate+v*k/2-x);b[w]=S=er(er({},S),{},{tickCoord:D>0?S.coordinate-D*v:S.coordinate})}else b[w]=S=er(er({},S),{},{tickCoord:S.coordinate});var P=v*(S.tickCoord-v*k/2-m)>=0&&v*(S.tickCoord+v*k/2-x)<=0;P&&(x=S.tickCoord-v*(k/2+o),b[w]=er(er({},S),{},{isShow:!0}))}return b}function QP(e,t){var r=e.angle,n=e.ticks,i=e.tickFormatter,a=e.viewBox,o=e.orientation,s=e.minTickGap,u=e.unit,l=e.fontSize,c=e.letterSpacing,f=a.x,d=a.y,h=a.width,g=a.height,p=o==="top"||o==="bottom"?"width":"height",b=(n||[]).slice(),y=u&&p==="width"?ui(u,{fontSize:l,letterSpacing:c}):{width:0,height:0},v=b.length,m=v>=2?pn(b[1].coordinate-b[0].coordinate):1,x,w;if(m===1?(x=p==="width"?f:d,w=p==="width"?f+h:d+g):(x=p==="width"?f+h:d+g,w=p==="width"?f:d),t){var S=n[v-1],A=xe(i)?i(S.value,v-1):S.value,k=p==="width"?yx(ui(A,{fontSize:l,letterSpacing:c}),y,r):ui(A,{fontSize:l,letterSpacing:c})[p],D=m*(S.coordinate+m*k/2-w);b[v-1]=S=er(er({},S),{},{tickCoord:D>0?S.coordinate-D*m:S.coordinate});var P=m*(S.tickCoord-m*k/2-x)>=0&&m*(S.tickCoord+m*k/2-w)<=0;P&&(w=S.tickCoord-m*(k/2+s),b[v-1]=er(er({},S),{},{isShow:!0}))}for(var T=t?v-1:v,I=0;I=0&&m*(O.tickCoord+m*j/2-w)<=0;F&&(x=O.tickCoord+m*(j/2+s),b[I]=er(er({},O),{},{isShow:!0}))}return b}function bx(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,u=e.interval,l=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(Q(u)||Na.isSsr)return bEe(i,typeof u=="number"&&Q(u)?u:0);var d=[];return u==="equidistantPreserveStart"?(d=QP({angle:f,ticks:i,tickFormatter:l,viewBox:a,orientation:s,minTickGap:o,unit:c,fontSize:t,letterSpacing:r}),yEe(d)):(u==="preserveStart"||u==="preserveStartEnd"?d=QP({angle:f,ticks:i,tickFormatter:l,viewBox:a,orientation:s,minTickGap:o,unit:c,fontSize:t,letterSpacing:r},u==="preserveStartEnd"):d=xEe({angle:f,ticks:i,tickFormatter:l,viewBox:a,orientation:s,minTickGap:o,unit:c,fontSize:t,letterSpacing:r}),d.filter(function(h){return h.isShow}))}var wEe=["viewBox"],SEe=["viewBox"],AEe=["ticks"];function Yu(e){"@babel/helpers - typeof";return Yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yu(e)}function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _Ee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function CEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZP(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ug(e){return ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ug(e)}function UA(e,t,r){return t=XI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XI(e){var t=$Ee(e,"string");return Yu(t)==="symbol"?t:String(t)}function $Ee(e,t){if(Yu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $c=function(e){EEe(r,e);var t=DEe(r);function r(n){var i;return CEe(this,r),i=t.call(this,n),i.state={fontSize:"",letterSpacing:""},i}return kEe(r,[{key:"shouldComponentUpdate",value:function(i,a){var o=i.viewBox,s=i1(i,wEe),u=this.props,l=u.viewBox,c=i1(u,SEe);return!du(o,l)||!du(s,c)||!du(a,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var a=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var a=this.props,o=a.x,s=a.y,u=a.width,l=a.height,c=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,g,p,b,y,v,m,x=d?-1:1,w=i.tickSize||f,S=Q(i.tickCoord)?i.tickCoord:i.coordinate;switch(c){case"top":g=p=i.coordinate,y=s+ +!d*l,b=y-x*w,m=b-x*h,v=S;break;case"left":b=y=i.coordinate,p=o+ +!d*u,g=p-x*w,v=g-x*h,m=S;break;case"right":b=y=i.coordinate,p=o+ +d*u,g=p+x*w,v=g+x*h,m=S;break;default:g=p=i.coordinate,y=s+ +d*l,b=y+x*w,m=b+x*h,v=S;break}return{line:{x1:g,y1:b,x2:p,y2:y},tick:{x:v,y:m}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s;switch(a){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.orientation,c=i.mirror,f=i.axisLine,d=lr(lr(lr({},ze(this.props)),ze(f)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!c||l==="bottom"&&c);d=lr(lr({},d),{},{x1:a,y1:o+h*u,x2:a+s,y2:o+h*u})}else{var g=+(l==="left"&&!c||l==="right"&&c);d=lr(lr({},d),{},{x1:a+g*s,y1:o,x2:a+g*s,y2:o+u})}return V.createElement("line",Ks({},d,{className:Ke("recharts-cartesian-axis-line",xn(f,"className"))}))}},{key:"renderTicks",value:function(i,a,o){var s=this,u=this.props,l=u.tickLine,c=u.stroke,f=u.tick,d=u.tickFormatter,h=u.unit,g=bx(lr(lr({},this.props),{},{ticks:i}),a,o),p=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),y=ze(this.props),v=ze(f),m=lr(lr({},y),{},{fill:"none"},ze(l)),x=g.map(function(w,S){var A=s.getTickLineCoord(w),k=A.line,D=A.tick,P=lr(lr(lr(lr({textAnchor:p,verticalAnchor:b},y),{},{stroke:"none",fill:c},v),D),{},{index:S,payload:w,visibleTicksCount:g.length,tickFormatter:d});return V.createElement(Ut,Ks({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S)},_m(s.props,w,S)),l&&V.createElement("line",Ks({},m,k,{className:Ke("recharts-cartesian-axis-tick-line",xn(l,"className"))})),f&&r.renderTickItem(f,P,"".concat(xe(d)?d(w.value,S):w.value).concat(h||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var i=this,a=this.props,o=a.axisLine,s=a.width,u=a.height,l=a.ticksGenerator,c=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,g=i1(d,AEe),p=h;return xe(l)&&(p=h&&h.length>0?l(this.props):l(g)),s<=0||u<=0||!p||!p.length?null:V.createElement(Ut,{className:Ke("recharts-cartesian-axis",c),ref:function(y){i.layerReference=y}},o&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),nr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,a,o){var s;return V.isValidElement(i)?s=V.cloneElement(i,a):xe(i)?s=i(a):s=V.createElement(zm,Ks({},a,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),r}(C.Component);UA($c,"displayName","CartesianAxis");UA($c,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var G0=function(){return null};G0.displayName="XAxis";G0.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var K0=function(){return null};K0.displayName="YAxis";K0.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var MEe=no,BEe=bd,IEe=D0;function REe(e){return function(t,r,n){var i=Object(t);if(!BEe(t)){var a=MEe(r);t=IEe(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var jEe=REe,FEe=VI;function NEe(e){var t=FEe(e),r=t%1;return t===t?r?t-r:t:0}var LEe=NEe,zEe=V6,VEe=no,qEe=LEe,UEe=Math.max;function HEe(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:qEe(r);return i<0&&(i=UEe(n+i,0)),zEe(e,VEe(t),i)}var WEe=HEe,GEe=jEe,KEe=WEe,YEe=GEe(KEe),XEe=YEe;const QEe=Pe(XEe);var JEe=to,ZEe=ro,eDe="[object Boolean]";function tDe(e){return e===!0||e===!1||ZEe(e)&&JEe(e)==eDe}var rDe=tDe;const nDe=Pe(rDe);function eT(e){return sDe(e)||oDe(e)||aDe(e)||iDe()}function iDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aDe(e,t){if(e){if(typeof e=="string")return wx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wx(e,t)}}function oDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sDe(e){if(Array.isArray(e))return wx(e)}function wx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bDe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function xDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iT(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lg(e){return lg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lg(e)}function Qu(e){return DDe(e)||EDe(e)||ZI(e)||kDe()}function kDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZI(e,t){if(e){if(typeof e=="string")return _x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _x(e,t)}}function EDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DDe(e){if(Array.isArray(e))return _x(e)}function _x(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?s:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:t&&t.length&&Q(a)&&Q(o)?t.slice(a,o+1):[]};function BDe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&Q(n)&&Q(i))return!0}return!1}function rR(e){return e==="number"?[0,"auto"]:void 0}var nR=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Y0(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(u,l){var c=l.props.hide;if(c)return u;var f=l.props.data,d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=ab(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(Qu(u),[FI(l,d)]):u},[])},uT=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=$De(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=HAe(o,s,l,u);if(c>=0&&l){var f=l[c]&&l[c].value,d=nR(t,r,c,f),h=MDe(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},IDe=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,h=RI(c,a),g=n.reduce(function(p,b){var y,v=b.props,m=v.type,x=v.dataKey,w=v.allowDataOverflow,S=v.allowDuplicatedCategory,A=v.scale,k=v.ticks,D=v.includeHidden,P=b.props[o];if(p[P])return p;var T=Y0(t.data,{graphicalItems:i.filter(function(K){return K.props[o]===P}),dataStartIndex:u,dataEndIndex:l}),I=T.length,O,N,j;BDe(b.props.domain,w,m)&&(O=ix(b.props.domain,null,w),h&&(m==="number"||A!=="auto")&&(j=Oc(T,x,"category")));var H=rR(m);if(!O||O.length===0){var F,R=(F=b.props.domain)!==null&&F!==void 0?F:H;if(x){if(O=Oc(T,x,m),m==="category"&&h){var $=Ace(O);S&&$?(N=O,O=ig(0,I)):S||(O=pP(R,O,b).reduce(function(K,Z){return K.indexOf(Z)>=0?K:[].concat(Qu(K),[Z])},[]))}else if(m==="category")S?O=O.filter(function(K){return K!==""&&!ve(K)}):O=pP(R,O,b).reduce(function(K,Z){return K.indexOf(Z)>=0||Z===""||ve(Z)?K:[].concat(Qu(K),[Z])},[]);else if(m==="number"){var q=XAe(T,i.filter(function(K){return K.props[o]===P&&(D||!K.props.hide)}),x,a,c);q&&(O=q)}h&&(m==="number"||A!=="auto")&&(j=Oc(T,x,"category"))}else h?O=ig(0,I):s&&s[P]&&s[P].hasStack&&m==="number"?O=d==="expand"?[0,1]:jI(s[P].stackGroups,u,l):O=II(T,i.filter(function(K){return K.props[o]===P&&(D||!K.props.hide)}),m,c,!0);if(m==="number")O=Sx(f,O,P,a,k),R&&(O=ix(R,O,w));else if(m==="category"&&R){var U=R,Y=O.every(function(K){return U.indexOf(K)>=0});Y&&(O=U)}}return W(W({},p),{},pe({},P,W(W({},b.props),{},{axisType:a,domain:O,categoricalDomain:j,duplicateDomain:N,originalDomain:(y=b.props.domain)!==null&&y!==void 0?y:H,isCategorical:h,layout:c})))},{});return g},RDe=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.layout,f=t.children,d=Y0(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),h=d.length,g=RI(c,a),p=-1,b=n.reduce(function(y,v){var m=v.props[o],x=rR("number");if(!y[m]){p++;var w;return g?w=ig(0,h):s&&s[m]&&s[m].hasStack?(w=jI(s[m].stackGroups,u,l),w=Sx(f,w,m,a)):(w=ix(x,II(d,n.filter(function(S){return S.props[o]===m&&!S.props.hide}),"number",c),i.defaultProps.allowDataOverflow),w=Sx(f,w,m,a)),W(W({},y),{},pe({},m,W(W({axisType:a},i.defaultProps),{},{hide:!0,orientation:xn(TDe,"".concat(a,".").concat(p%2),null),domain:w,originalDomain:x,isCategorical:g,layout:c})))}return y},{});return b},jDe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=Wn(c,a),h={};return d&&d.length?h=IDe(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(h=RDe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),h},FDe=function(t){var r=da(t),n=pa(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:mA(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:eg(r,n)}},lT=function(t){var r,n,i=t.children,a=t.defaultShowTooltip,o=ji(i,jf),s=o&&o.props&&o.props.startIndex||0,u=(o==null||(r=o.props)===null||r===void 0?void 0:r.endIndex)!==void 0?o==null||(n=o.props)===null||n===void 0?void 0:n.endIndex:t.data&&t.data.length-1||0;return{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:u,activeTooltipIndex:-1,isTooltipActive:ve(a)?!1:a}},NDe=function(t){return!t||!t.length?!1:t.some(function(r){var n=Fa(r&&r.type);return n&&n.indexOf("Bar")>=0})},cT=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},LDe=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,u=s===void 0?{}:s,l=n.width,c=n.height,f=n.children,d=n.margin||{},h=ji(f,jf),g=ji(f,mf),p=Object.keys(u).reduce(function(m,x){var w=u[x],S=w.orientation;return!w.mirror&&!w.hide?W(W({},m),{},pe({},S,m[S]+w.width)):m},{left:d.left||0,right:d.right||0}),b=Object.keys(o).reduce(function(m,x){var w=o[x],S=w.orientation;return!w.mirror&&!w.hide?W(W({},m),{},pe({},S,xn(m,"".concat(S))+w.height)):m},{top:d.top||0,bottom:d.bottom||0}),y=W(W({},b),p),v=y.bottom;return h&&(y.bottom+=h.props.height||jf.defaultProps.height),g&&r&&(y=KAe(y,i,n,r)),W(W({brushBottom:v},y),{},{width:l-y.left-y.right,height:c-y.top-y.bottom})},zDe=function(t){var r,n=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,s=t.validateTooltipEventTypes,u=s===void 0?["axis"]:s,l=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(b,y){var v=y.graphicalItems,m=y.stackGroups,x=y.offset,w=y.updateId,S=y.dataStartIndex,A=y.dataEndIndex,k=b.barSize,D=b.layout,P=b.barGap,T=b.barCategoryGap,I=b.maxBarSize,O=cT(D),N=O.numericAxisName,j=O.cateAxisName,H=NDe(v),F=H&&WAe({barSize:k,stackGroups:m}),R=[];return v.forEach(function($,q){var U=Y0(b.data,{dataStartIndex:S,dataEndIndex:A},$),Y=$.props,K=Y.dataKey,Z=Y.maxBarSize,ue=$.props["".concat(N,"Id")],he=$.props["".concat(j,"Id")],le=l.reduce(function(ct,sr){var Br,ur=y["".concat(sr.axisType,"Map")],aa=$.props["".concat(sr.axisType,"Id")],oa=ur&&ur[aa];return W(W({},ct),{},(Br={},pe(Br,sr.axisType,oa),pe(Br,"".concat(sr.axisType,"Ticks"),pa(oa)),Br))},{}),se=le[j],G=le["".concat(j,"Ticks")],J=m&&m[ue]&&m[ue].hasStack&&u_e($,m[ue].stackGroups),ee=Fa($.type).indexOf("Bar")>=0,z=eg(se,G),de=[];if(ee){var ge,ie,be=ve(Z)?I:Z,ke=(ge=(ie=eg(se,G,!0))!==null&&ie!==void 0?ie:be)!==null&&ge!==void 0?ge:0;de=GAe({barGap:P,barCategoryGap:T,bandSize:ke!==z?ke:z,sizeList:F[he],maxBarSize:be}),ke!==z&&(de=de.map(function(ct){return W(W({},ct),{},{position:W(W({},ct.position),{},{offset:ct.position.offset-ke/2})})}))}var _t=$&&$.type&&$.type.getComposedData;if(_t){var xr;R.push({props:W(W({},_t(W(W({},le),{},{displayedData:U,props:b,dataKey:K,item:$,bandSize:z,barPosition:de,offset:x,stackedData:J,layout:D,dataStartIndex:S,dataEndIndex:A}))),{},(xr={key:$.key||"item-".concat(q)},pe(xr,N,le[N]),pe(xr,j,le[j]),pe(xr,"animationId",w),xr)),childIndex:Bce($,b.children),item:$})}}),R},g=function(b,y){var v=b.props,m=b.dataStartIndex,x=b.dataEndIndex,w=b.updateId;if(!UD({props:v}))return null;var S=v.children,A=v.layout,k=v.stackOffset,D=v.data,P=v.reverseStackOrder,T=cT(A),I=T.numericAxisName,O=T.cateAxisName,N=Wn(S,i),j=a_e(D,N,"".concat(I,"Id"),"".concat(O,"Id"),k,P),H=l.reduce(function(U,Y){var K="".concat(Y.axisType,"Map");return W(W({},U),{},pe({},K,jDe(v,W(W({},Y),{},{graphicalItems:N,stackGroups:Y.axisType===I&&j,dataStartIndex:m,dataEndIndex:x}))))},{}),F=LDe(W(W({},H),{},{props:v,graphicalItems:N}),y==null?void 0:y.legendBBox);Object.keys(H).forEach(function(U){H[U]=f(v,H[U],F,U.replace("Map",""),n)});var R=H["".concat(O,"Map")],$=FDe(R),q=h(v,W(W({},H),{},{dataStartIndex:m,dataEndIndex:x,updateId:w,graphicalItems:N,stackGroups:j,offset:F}));return W(W({formattedGraphicalItems:q,graphicalItems:N,offset:F,stackGroups:j},$),H)};return r=function(p){SDe(y,p);var b=ADe(y);function y(v){var m;return xDe(this,y),m=b.call(this,v),pe(Se(m),"accessibilityManager",new pDe),pe(Se(m),"clearDeferId",function(){!ve(m.deferId)&&sT&&sT(m.deferId),m.deferId=null}),pe(Se(m),"handleLegendBBoxUpdate",function(x){if(x){var w=m.state,S=w.dataStartIndex,A=w.dataEndIndex,k=w.updateId;m.setState(W({legendBBox:x},g({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:k},W(W({},m.state),{},{legendBBox:x}))))}}),pe(Se(m),"handleReceiveSyncEvent",function(x,w,S){var A=m.props.syncId;A===x&&w!==m.uniqueChartId&&(m.clearDeferId(),m.deferId=oT&&oT(m.applySyncEvent.bind(Se(m),S)))}),pe(Se(m),"handleBrushChange",function(x){var w=x.startIndex,S=x.endIndex;if(w!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var A=m.state.updateId;m.setState(function(){return W({dataStartIndex:w,dataEndIndex:S},g({props:m.props,dataStartIndex:w,dataEndIndex:S,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:w,dataEndIndex:S})}}),pe(Se(m),"handleMouseEnter",function(x){var w=m.props.onMouseEnter,S=m.getMouseInfo(x);if(S){var A=W(W({},S),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A),xe(w)&&w(A,x)}}),pe(Se(m),"triggeredAfterMouseMove",function(x){var w=m.props.onMouseMove,S=m.getMouseInfo(x),A=S?W(W({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A),xe(w)&&w(A,x)}),pe(Se(m),"handleItemMouseEnter",function(x){m.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),pe(Se(m),"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),pe(Se(m),"handleMouseMove",function(x){x&&xe(x.persist)&&x.persist(),m.triggeredAfterMouseMove(x)}),pe(Se(m),"handleMouseLeave",function(x){var w=m.props.onMouseLeave,S={isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S),xe(w)&&w(S,x),m.cancelThrottledTriggerAfterMouseMove()}),pe(Se(m),"handleOuterEvent",function(x){var w=Mce(x),S=xn(m.props,"".concat(w));if(w&&xe(S)){var A;/.*touch.*/i.test(w)?A=m.getMouseInfo(x.changedTouches[0]):A=m.getMouseInfo(x);var k=S;k(A,x)}}),pe(Se(m),"handleClick",function(x){var w=m.props.onClick,S=m.getMouseInfo(x);if(S){var A=W(W({},S),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A),xe(w)&&w(A,x)}}),pe(Se(m),"handleMouseDown",function(x){var w=m.props.onMouseDown;if(xe(w)){var S=m.getMouseInfo(x);w(S,x)}}),pe(Se(m),"handleMouseUp",function(x){var w=m.props.onMouseUp;if(xe(w)){var S=m.getMouseInfo(x);w(S,x)}}),pe(Se(m),"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseMove(x.changedTouches[0])}),pe(Se(m),"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseDown(x.changedTouches[0])}),pe(Se(m),"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseUp(x.changedTouches[0])}),pe(Se(m),"verticalCoordinatesGenerator",function(x){var w=x.xAxis,S=x.width,A=x.height,k=x.offset;return uP(bx(W(W(W({},$c.defaultProps),w),{},{ticks:pa(w,!0),viewBox:{x:0,y:0,width:S,height:A}})),k.left,k.left+k.width)}),pe(Se(m),"horizontalCoordinatesGenerator",function(x){var w=x.yAxis,S=x.width,A=x.height,k=x.offset;return uP(bx(W(W(W({},$c.defaultProps),w),{},{ticks:pa(w,!0),viewBox:{x:0,y:0,width:S,height:A}})),k.top,k.top+k.height)}),pe(Se(m),"axesTicksGenerator",function(x){return pa(x,!0)}),pe(Se(m),"renderCursor",function(x){var w=m.state,S=w.isTooltipActive,A=w.activeCoordinate,k=w.activePayload,D=w.offset,P=w.activeTooltipIndex,T=m.getTooltipEventType();if(!x||!x.props.cursor||!S||!A||n!=="ScatterChart"&&T!=="axis")return null;var I=m.props.layout,O,N=kP;if(n==="ScatterChart")O=A,N=TCe;else if(n==="BarChart")O=m.getCursorRectangle(),N=zA;else if(I==="radial"){var j=m.getCursorPoints(),H=j.cx,F=j.cy,R=j.radius,$=j.startAngle,q=j.endAngle;O={cx:H,cy:F,startAngle:$,endAngle:q,innerRadius:R,outerRadius:R},N=oCe}else O={points:m.getCursorPoints()},N=kP;var U=x.key||"_recharts-cursor",Y=W(W(W(W({stroke:"#ccc",pointerEvents:"none"},D),O),ze(x.props.cursor)),{},{payload:k,payloadIndex:P,key:U,className:"recharts-tooltip-cursor"});return C.isValidElement(x.props.cursor)?C.cloneElement(x.props.cursor,Y):C.createElement(N,Y)}),pe(Se(m),"renderPolarAxis",function(x,w,S){var A=xn(x,"type.axisType"),k=xn(m.state,"".concat(A,"Map")),D=k&&k[x.props["".concat(A,"Id")]];return C.cloneElement(x,W(W({},D),{},{className:A,key:x.key||"".concat(w,"-").concat(S),ticks:pa(D,!0)}))}),pe(Se(m),"renderXAxis",function(x,w,S){var A=m.state.xAxisMap,k=A[x.props.xAxisId];return m.renderAxis(k,x,w,S)}),pe(Se(m),"renderYAxis",function(x,w,S){var A=m.state.yAxisMap,k=A[x.props.yAxisId];return m.renderAxis(k,x,w,S)}),pe(Se(m),"renderGrid",function(x){var w=m.state,S=w.xAxisMap,A=w.yAxisMap,k=w.offset,D=m.props,P=D.width,T=D.height,I=da(S),O=QEe(A,function(H){return HI(H.domain,ODe)}),N=O||da(A),j=x.props||{};return C.cloneElement(x,{key:x.key||"grid",x:Q(j.x)?j.x:k.left,y:Q(j.y)?j.y:k.top,width:Q(j.width)?j.width:k.width,height:Q(j.height)?j.height:k.height,xAxis:I,yAxis:N,offset:k,chartWidth:P,chartHeight:T,verticalCoordinatesGenerator:j.verticalCoordinatesGenerator||m.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:j.horizontalCoordinatesGenerator||m.horizontalCoordinatesGenerator})}),pe(Se(m),"renderPolarGrid",function(x){var w=x.props,S=w.radialLines,A=w.polarAngles,k=w.polarRadius,D=m.state,P=D.radiusAxisMap,T=D.angleAxisMap,I=da(P),O=da(T),N=O.cx,j=O.cy,H=O.innerRadius,F=O.outerRadius;return C.cloneElement(x,{polarAngles:Ht(A)?A:pa(O,!0).map(function(R){return R.coordinate}),polarRadius:Ht(k)?k:pa(I,!0).map(function(R){return R.coordinate}),cx:N,cy:j,innerRadius:H,outerRadius:F,key:x.key||"polar-grid",radialLines:S})}),pe(Se(m),"renderLegend",function(){var x=m.state.formattedGraphicalItems,w=m.props,S=w.children,A=w.width,k=w.height,D=m.props.margin||{},P=A-(D.left||0)-(D.right||0),T=MI({children:S,formattedGraphicalItems:x,legendWidth:P,legendContent:c});if(!T)return null;var I=T.item,O=nT(T,hDe);return C.cloneElement(I,W(W({},O),{},{chartWidth:A,chartHeight:k,margin:D,ref:function(j){m.legendInstance=j},onBBoxUpdate:m.handleLegendBBoxUpdate}))}),pe(Se(m),"renderTooltip",function(){var x=m.props.children,w=ji(x,Gs);if(!w)return null;var S=m.state,A=S.isTooltipActive,k=S.activeCoordinate,D=S.activePayload,P=S.activeLabel,T=S.offset;return C.cloneElement(w,{viewBox:W(W({},T),{},{x:T.left,y:T.top}),active:A,label:P,payload:A?D:[],coordinate:k})}),pe(Se(m),"renderBrush",function(x){var w=m.props,S=w.margin,A=w.data,k=m.state,D=k.offset,P=k.dataStartIndex,T=k.dataEndIndex,I=k.updateId;return C.cloneElement(x,{key:x.key||"_recharts-brush",onChange:Ap(m.handleBrushChange,null,x.props.onChange),data:A,x:Q(x.props.x)?x.props.x:D.left,y:Q(x.props.y)?x.props.y:D.top+D.height+D.brushBottom-(S.bottom||0),width:Q(x.props.width)?x.props.width:D.width,startIndex:P,endIndex:T,updateId:"brush-".concat(I)})}),pe(Se(m),"renderReferenceElement",function(x,w,S){if(!x)return null;var A=Se(m),k=A.clipPathId,D=m.state,P=D.xAxisMap,T=D.yAxisMap,I=D.offset,O=x.props,N=O.xAxisId,j=O.yAxisId;return C.cloneElement(x,{key:x.key||"".concat(w,"-").concat(S),xAxis:P[N],yAxis:T[j],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:k})}),pe(Se(m),"renderActivePoints",function(x){var w=x.item,S=x.activePoint,A=x.basePoint,k=x.childIndex,D=x.isRange,P=[],T=w.props.key,I=w.item.props,O=I.activeDot,N=I.dataKey,j=W(W({index:k,dataKey:N,cx:S.x,cy:S.y,r:4,fill:LA(w.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value,key:"".concat(T,"-activePoint-").concat(k)},ze(O)),Am(O));return P.push(y.renderActiveDot(O,j)),A?P.push(y.renderActiveDot(O,W(W({},j),{},{cx:A.x,cy:A.y,key:"".concat(T,"-basePoint-").concat(k)}))):D&&P.push(null),P}),pe(Se(m),"renderGraphicChild",function(x,w,S){var A=m.filterFormatItem(x,w,S);if(!A)return null;var k=m.getTooltipEventType(),D=m.state,P=D.isTooltipActive,T=D.tooltipAxis,I=D.activeTooltipIndex,O=D.activeLabel,N=m.props.children,j=ji(N,Gs),H=A.props,F=H.points,R=H.isRange,$=H.baseLine,q=A.item.props,U=q.activeDot,Y=q.hide,K=!Y&&P&&j&&U&&I>=0,Z={};k!=="axis"&&j&&j.props.trigger==="click"?Z={onClick:Ap(m.handleItemMouseEnter,null,x.props.onCLick)}:k!=="axis"&&(Z={onMouseLeave:Ap(m.handleItemMouseLeave,null,x.props.onMouseLeave),onMouseEnter:Ap(m.handleItemMouseEnter,null,x.props.onMouseEnter)});var ue=C.cloneElement(x,W(W({},A.props),Z));function he(J){return typeof T.dataKey=="function"?T.dataKey(J.payload):null}if(K){var le,se;if(T.dataKey&&!T.allowDuplicatedCategory){var G=typeof T.dataKey=="function"?he:"payload.".concat(T.dataKey.toString());le=ab(F,G,O),se=R&&$&&ab($,G,O)}else le=F[I],se=R&&$&&$[I];if(!ve(le))return[ue].concat(Qu(m.renderActivePoints({item:A,activePoint:le,basePoint:se,childIndex:I,isRange:R})))}return R?[ue,null,null]:[ue,null]}),pe(Se(m),"renderCustomized",function(x,w,S){return C.cloneElement(x,W(W({key:"recharts-customized-".concat(S)},m.props),m.state))}),m.uniqueChartId=ve(v.id)?E0("recharts"):v.id,m.clipPathId="".concat(m.uniqueChartId,"-clip"),v.throttleDelay&&(m.triggeredAfterMouseMove=$B(m.triggeredAfterMouseMove,v.throttleDelay)),m.state={},m}return wDe(y,[{key:"componentDidMount",value:function(){var m,x;ve(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(m,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==m.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==m.margin){var w,S;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(m){ve(m.syncId)&&!ve(this.props.syncId)&&this.addListener(),!ve(m.syncId)&&ve(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),ve(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){typeof this.triggeredAfterMouseMove.cancel=="function"&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var m=ji(this.props.children,Gs);if(m&&nDe(m.props.shared)){var x=m.props.shared?"axis":"item";return u.indexOf(x)>=0?x:o}return o}},{key:"getMouseInfo",value:function(m){if(!this.container)return null;var x=Vbe(this.container),w=qbe(m,x),S=this.inRange(w.chartX,w.chartY);if(!S)return null;var A=this.state,k=A.xAxisMap,D=A.yAxisMap,P=this.getTooltipEventType();if(P!=="axis"&&k&&D){var T=da(k).scale,I=da(D).scale,O=T&&T.invert?T.invert(w.chartX):null,N=I&&I.invert?I.invert(w.chartY):null;return W(W({},w),{},{xValue:O,yValue:N})}var j=uT(this.state,this.props.data,this.props.layout,S);return j?W(W({},w),j):null}},{key:"getCursorRectangle",value:function(){var m=this.props.layout,x=this.state,w=x.activeCoordinate,S=x.offset,A=x.tooltipAxisBandSize,k=A/2;return{stroke:"none",fill:"#ccc",x:m==="horizontal"?w.x-k:S.left+.5,y:m==="horizontal"?S.top+.5:w.y-k,width:m==="horizontal"?A:S.width-1,height:m==="horizontal"?S.height-1:A}}},{key:"getCursorPoints",value:function(){var m=this.props.layout,x=this.state,w=x.activeCoordinate,S=x.offset,A,k,D,P;if(m==="horizontal")A=w.x,D=A,k=S.top,P=S.top+S.height;else if(m==="vertical")k=w.y,P=k,A=S.left,D=S.left+S.width;else if(!ve(w.cx)||!ve(w.cy))if(m==="centric"){var T=w.cx,I=w.cy,O=w.innerRadius,N=w.outerRadius,j=w.angle,H=Wt(T,I,O,j),F=Wt(T,I,N,j);A=H.x,k=H.y,D=F.x,P=F.y}else{var R=w.cx,$=w.cy,q=w.radius,U=w.startAngle,Y=w.endAngle,K=Wt(R,$,q,U),Z=Wt(R,$,q,Y);return{points:[K,Z],cx:R,cy:$,radius:q,startAngle:U,endAngle:Y}}return[{x:A,y:k},{x:D,y:P}]}},{key:"inRange",value:function(m,x){var w=this.props.layout;if(w==="horizontal"||w==="vertical"){var S=this.state.offset,A=m>=S.left&&m<=S.left+S.width&&x>=S.top&&x<=S.top+S.height;return A?{x:m,y:x}:null}var k=this.state,D=k.angleAxisMap,P=k.radiusAxisMap;if(D&&P){var T=da(D);return gP({x:m,y:x},T)}return null}},{key:"parseEventsOfWrapper",value:function(){var m=this.props.children,x=this.getTooltipEventType(),w=ji(m,Gs),S={};w&&x==="axis"&&(w.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var A=Am(this.props,this.handleOuterEvent);return W(W({},A),S)}},{key:"addListener",value:function(){Rr.on(a1,this.handleReceiveSyncEvent),Rr.setMaxListeners&&Rr._maxListeners&&Rr.setMaxListeners(Rr._maxListeners+1)}},{key:"removeListener",value:function(){Rr.removeListener(a1,this.handleReceiveSyncEvent),Rr.setMaxListeners&&Rr._maxListeners&&Rr.setMaxListeners(Rr._maxListeners-1)}},{key:"triggerSyncEvent",value:function(m){var x=this.props.syncId;ve(x)||Rr.emit(a1,x,this.uniqueChartId,m)}},{key:"applySyncEvent",value:function(m){var x=this.props,w=x.layout,S=x.syncMethod,A=this.state.updateId,k=m.dataStartIndex,D=m.dataEndIndex;if(!ve(m.dataStartIndex)||!ve(m.dataEndIndex))this.setState(W({dataStartIndex:k,dataEndIndex:D},g({props:this.props,dataStartIndex:k,dataEndIndex:D,updateId:A},this.state)));else if(ve(m.activeTooltipIndex))this.setState(m);else{var P=m.chartX,T=m.chartY,I=m.activeTooltipIndex,O=this.state,N=O.offset,j=O.tooltipTicks;if(!N)return;if(typeof S=="function")I=S(j,m);else if(S==="value"){I=-1;for(var H=0;H{if(Number(r)<=0)return null;const o=Number(a.x)+Number(e)/2,s=Number(a.y)+Number(t)/2;return _.jsxs(oe.text,{name:i,fill:"chakra-body-text",className:"recharts-text recharts-label",x:o,y:s,offset:n,textAnchor:"middle",fontSize:"40%",children:[_.jsx("title",{children:i}),_.jsx("tspan",{x:o,dy:"0.355em",children:r})]})};function UDe({values:e,max:t}){const[r,n]=i4("colors",["colors.complete","colors.accent"]),i=C.useMemo(()=>[e.reduce((a,o,s)=>({...a,[s.toString()]:o.value}),{name:"progress bar"})],[e]);return _.jsx(cbe,{children:_.jsxs(VDe,{data:i,layout:"vertical",margin:{top:0,left:0,right:0,bottom:0},children:[_.jsx(G0,{type:"number",hide:!0,domain:[0,t]}),_.jsx(K0,{type:"category",dataKey:"name",hide:!0}),_.jsx("defs",{children:_.jsxs("pattern",{id:"partial",x:"0",y:"0",width:"10",height:"10",patternUnits:"userSpaceOnUse",children:[_.jsx(oe.rect,{fill:"chakra-body-bg",x:"0",y:"0",width:"10",height:"10"}),_.jsx(oe.rect,{fill:"partial",x:"0",width:"5px",height:"5px",y:"0"}),_.jsx(oe.rect,{fill:"partial",x:"5",width:"5px",height:"5px",y:"5"})]})}),e.map((a,o)=>_.jsx(gl,{dataKey:o.toString(),stackId:"s",fill:a.color==="partial"?"url(#partial)":r,...o===0?{background:{fill:n}}:{},label:_.jsx(qDe,{title:a.name}),isAnimationActive:!1},o))]})})}function ia({title:e,icon:t,loading:r=!1,values:n,max:i,children:a}){return _.jsxs(h8,{isDisabled:r,children:[_.jsxs(f8,{fontSize:"3xl",children:[_.jsxs(Ia,{direction:"row",flex:"1",textAlign:"left",children:[_.jsx(nl,{src:t}),_.jsx(No,{fontSize:["xl",null,"3xl"],fontWeight:"normal",children:e})]}),_.jsx(yn,{alignSelf:"stretch",flex:"1 1",children:_.jsx(UDe,{values:n,max:i})}),r?_.jsx(KS,{}):_.jsx(p8,{})]}),_.jsx(g8,{children:_.jsx(Ia,{spacing:4,children:a})})]})}function HDe(){return _.jsx(ia,{title:"Dreadsylvania",icon:"itemimages/dvtat.gif",loading:!1,values:[],max:1,children:_.jsx(Hoe,{})})}function WDe({label:e,complete:t}){return _.jsx(gS,{gridColumn:["1 / span 3",null,1],alignItems:"center",justifyContent:[null,null,"flex-end"],children:_.jsx(t0,{transform:[null,null,"rotate(270deg)"],fontSize:"sm",bg:t?"complete":void 0,children:e})},`rowlabel-${e}`)}function iR({items:e,renderItem:t,idToStatus:r,getRowLabel:n,columns:i=6}){const a=Roe(e,i);return _.jsx(vn,{spacing:1,columns:[3,null,i+(n?1:0)],gridTemplateColumns:[null,null,`${n?"auto":""} repeat(${i}, minmax(0, 1fr))`],children:a.map((o,s)=>{const u=o.filter(joe).map(l=>r[l.id]??lm.NONE).every(l=>l!==lm.NONE);return[n&&_.jsx(WDe,{label:n(s),complete:u},`rowlabel-${s}`),...o.map((l,c)=>l?t(l):_.jsx(yn,{display:["none",null,"block"]},`blank-${c}`))]})})}function _o({items:e,playerItems:t,getRowLabel:r,columns:n=6}){const i=Ce(u=>u.items),a=e.map(u=>i[u]),o=C.useMemo(()=>e.reduce((u,l,c)=>({...u,[l]:t[c]}),{}),[e,t]),s=u=>_.jsx(Za,{type:"item",name:u.name,image:`itemimages/${u.image}`,state:Ioe(o[u.id]||lm.NONE)},u.id);return _.jsx(iR,{items:a,idToStatus:o,columns:n,getRowLabel:r,renderItem:s})}const GDe=[38,39,40,41],KDe=[29,31,33,37,43],YDe=[28,30,32,36,42],fT=[3260,3261,3262,3383,3384,3385],dT=[3251,3252,3253,3286,3389,3391],pT=[3246,3247,3248,3380,3381,3382],hT=[3254,3255,3256,3392,3393,3394],mT=[3257,3258,3259,3386,3387,3388];function XDe(){const e=Ce(foe);return _.jsxs(ia,{title:"Hobopolis",icon:"otherimages/sigils/hobotat19.gif",loading:!1,values:[],max:1,children:[_.jsx(un,{title:"Hogdman's Journal Skills",image:"itemimages/blacknotebook.gif",children:_.jsx(vn,{columns:6,spacing:1,children:GDe.map(t=>_.jsx(bt,{id:t},t))})}),_.jsx(un,{title:"Weak Elemental Skills",image:"itemimages/book3.gif",children:_.jsx(vn,{columns:6,spacing:1,children:KDe.map(t=>_.jsx(bt,{id:t},t))})}),_.jsx(un,{title:"Strong Elemental Skills",image:"itemimages/book4.gif",children:_.jsx(vn,{columns:6,spacing:1,children:YDe.map(t=>_.jsx(bt,{id:t},t))})}),_.jsx(un,{title:"Chester",image:"itemimages/chestache.gif",children:_.jsx(_o,{items:fT,playerItems:fT.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})}),_.jsx(un,{title:"Frosty",image:"itemimages/frostyhat.gif",children:_.jsx(_o,{items:dT,playerItems:dT.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})}),_.jsx(un,{title:"Ol' Scratch",image:"itemimages/pitchfork2.gif",children:_.jsx(_o,{items:pT,playerItems:pT.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})}),_.jsx(un,{title:"Oscus",image:"itemimages/oscuswand.gif",children:_.jsx(_o,{items:hT,playerItems:hT.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})}),_.jsx(un,{title:"Zombo",image:"itemimages/zomboshield.gif",children:_.jsx(_o,{items:mT,playerItems:mT.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})})]})}const QDe=[46,47,48];function JDe(){return _.jsx(ia,{title:"Slime Tube",icon:"itemimages/slimeling.gif",loading:!1,values:[],max:1,children:_.jsx(un,{title:"Skills",image:"itemimages/slimehypo.gif",children:_.jsx(vn,{columns:6,spacing:1,children:QDe.map(e=>_.jsx(bt,{id:e},e))})})})}function ZDe(){return _.jsxs(fS,{allowMultiple:!0,children:[_.jsx(XDe,{}),_.jsx(HDe,{}),_.jsx(JDe,{})]})}function HA({title:e}){return _.jsx(Zg,{src:"/medal.png",title:e,height:"20px",mt:1,mr:1})}function e3e(e){switch(e){case Jo.TERRARIUM:return"complete";case Jo.HATCHLING:return"partial";default:return null}}function t3e(e){switch(e){case Jo.TERRARIUM:return"Have in terrarium";case Jo.HATCHLING:return"Have as hatchling";default:return"Do not have"}}function r3e({familiar:e,status:t,hundredPercent:r}){return _.jsx(Za,{type:"familiar",name:e.name,image:`itemimages/${e.image}`,state:e3e(t),title:t3e(t),badges:r?_.jsx(HA,{title:"100% run"}):null})}function n3e({familiars:e}){return e.length===0?null:_.jsx(vn,{spacingX:3,columns:3,width:"30%",templateColumns:"repeat(3, max-content)",children:e.map(t=>_.jsxs(C.Fragment,{children:[_.jsx($i,{children:t.name}),_.jsx(nl,{src:`itemimages/${t.image}`,sourceWidth:30,width:"20px",height:"20px"}),_.jsx(HA,{title:"100% run"})]},t.id))})}const i3e=os("familiars");function a3e(){const e=Ce(i3e),t=Ce(u=>u.familiars),r=C.useMemo(()=>t.filter(u=>u.ownable),[t]),n=Ce(u=>u.loading.familiars||!1),i=C.useMemo(()=>e.filter(u=>u[1]===Jo.TERRARIUM).length,[e]),a=C.useMemo(()=>e.filter(u=>u[1]===Jo.HATCHLING).length,[e]),o=C.useMemo(()=>e.reduce((u,l)=>({...u,[l[0]]:l}),{}),[e]),s=C.useMemo(()=>t.filter(u=>!u.ownable).filter(u=>{var l;return((l=o[u.id])==null?void 0:l[2])??!1}),[t]);return _.jsxs(ia,{title:"Familiars",icon:"itemimages/terrarium.gif",loading:n,values:[{color:"partial",value:a,name:`${a} / ${r.length} as hatching`},{color:"complete",value:i,name:`${i} / ${r.length} in terrarium`}],max:r.length,children:[_.jsx(vn,{columns:6,spacing:1,children:r.map(u=>{var l,c;return _.jsx(r3e,{familiar:u,status:((l=o[u.id])==null?void 0:l[1])??0,hundredPercent:((c=o[u.id])==null?void 0:c[2])??!1},u.id)})}),_.jsx(n3e,{familiars:s})]})}function o3e(e){switch(e){case Iu.BOUND:return"complete";case Iu.BOXED:return"partial";default:return null}}function s3e(e,t){switch(t){case Iu.BOUND:return e.type!=="vip"?"Have":"Have access if your clan owns one";case Iu.BOXED:return"Have store item";default:return"Do not have"}}function u3e({item:e,status:t,iotm:r}){return e?_.jsx(Za,{type:"item",name:e.name,image:`itemimages/${e.image}`,state:o3e(t),title:s3e(r,t)}):null}const l3e=os("iotms");function c3e(){const e=Ce(l3e),t=Ce(c=>c.iotms),r=Ce(c=>c.loading.iotms||!1),n=Ce(c=>c.items),i=C.useMemo(()=>t.filter(c=>c.type==="vip").map(c=>c.id),[t]),a=C.useMemo(()=>e.findIndex(c=>i.includes(c[0]))>-1,[e,i]),o=C.useMemo(()=>t.length-(i.length-1),[t]),s=C.useMemo(()=>e.filter(c=>c[1]==Iu.BOUND).map(c=>c[0]).length-(a?i.length-1:0),[e]),u=C.useMemo(()=>e.reduce((c,f)=>({...c,[f[0]]:f[1]}),{}),[e]),l=C.useMemo(()=>[...Array(9).map(c=>null),...t],[t]);return _.jsx(ia,{title:"IotMs",icon:"itemimages/mracc.gif",loading:r,values:[{color:"complete",value:s,name:`${s} / ${o} IotMs bound`}],max:t.length,children:_.jsx(iR,{idToStatus:u,items:l,columns:12,getRowLabel:c=>2004+c,renderItem:c=>_.jsx(u3e,{item:n[c.id],iotm:c,status:u[c.id]??0},c.id)})})}function f3e(e,t){return t===1?e===1?"Have":"Do not have":`${e{const o=t[a]||0,s=r[a],u=Array.isArray(i)?i[Math.max(0,o-1)]:i,l=p3e(u);return _.jsx(Za,{type:"tattoo",name:n,image:`otherimages/sigils/${u}.gif`,sourceWidth:50,title:f3e(o,s),state:o===0?null:o2015+e,[N9]:e=>e===0?null:2015+(e-1)};function m3e({path:e,points:t,items:r,equipment:n,tattoos:i,maxTattooLevel:a}){return Ce(o=>o.items),_.jsxs(un,{title:e.name,image:e.image,right:e.maxPoints>0&&_.jsx(yn,{alignSelf:"start",position:"relative",children:_.jsxs(t0,{title:`${t} points out of a possible ${e.maxPoints}`,position:"absolute",top:0,children:[t," / ",e.maxPoints]})}),children:[e.items.length>0&&_.jsxs(_.Fragment,{children:[_.jsx(No,{as:"h4",textTransform:"uppercase",fontSize:"xs",children:"Items"}),_.jsx(_o,{items:e.items,playerItems:r})]}),e.equipment.length>0&&_.jsxs(_.Fragment,{children:[_.jsx(No,{as:"h4",textTransform:"uppercase",fontSize:"xs",children:"Equipment"}),_.jsx(_o,{items:e.equipment,playerItems:n,getRowLabel:h3e[e.id]})]}),e.tattoos.length>0&&_.jsxs(_.Fragment,{children:[_.jsx(No,{as:"h4",textTransform:"uppercase",fontSize:"xs",children:"Tattoos"}),_.jsx(d3e,{tattoos:e.tattoos,playerTattoos:i,maxTattooLevel:a})]})]})}const g3e=os("paths");function v3e(){const e=Ce(g3e),t=Ce(u=>u.paths),r=Ce(u=>u.loading.paths||!1),n=C.useMemo(()=>t.reduce((u,l)=>({...u,[l.id]:l.tattoos.map(c=>Array.isArray(c.image)?c.image.length:1)}),{}),[t]),i=C.useMemo(()=>e.reduce((u,l)=>u+[...l[2],...l[3]].length+(n[l[0]]??[]).reduce((c,f)=>c+f,0),0),[e,n]),a=C.useMemo(()=>e.reduce((u,l)=>u+[...l[2],...l[3]].reduce((c,f)=>c+f,0)+l[4].reduce((c,f,d)=>c+f,0),0),[e]),o=C.useMemo(()=>e.reduce((u,l)=>u+l[4].reduce((c,f,d)=>{var h;return c+Math.max(0,(((h=n[l[0]])==null?void 0:h[d])??0)-(f+1))},0),0),[e,n]),s=C.useMemo(()=>e.reduce((u,l)=>({...u,[l[0]]:l}),{}),[e]);return _.jsx(ia,{title:"Paths",icon:"itemimages/map.gif",loading:r,values:[{color:"partial",value:o,name:`${o} / ${i} path rewards partially earned`},{color:"complete",value:a,name:`${a} / ${i} path rewards completely earned`}],max:i,children:t.map(u=>{var l,c,f,d;return _.jsx(m3e,{path:u,points:((l=s[u.id])==null?void 0:l[1])??0,items:((c=s[u.id])==null?void 0:c[2])??[],equipment:((f=s[u.id])==null?void 0:f[3])??[],tattoos:((d=s[u.id])==null?void 0:d[4])??[],maxTattooLevel:(n==null?void 0:n[u.id])??[]},u.name)})})}function y3e({titles:e,images:t,active:r,overlap:n=10}){return _.jsx(yn,{ml:`${n}px`,children:t.map((i,a)=>_.jsx(yn,{title:Sm.decode(e[a]),ml:`-${n}px`,display:"inline-block",position:"relative",zIndex:a===r?2:1,filter:`brightness(${a===r?1:.8})`,children:_.jsx(nl,{src:`itemimages/${i}`,sourceWidth:30})},i))})}function b3e({groupName:e,skills:t,statuses:r}){var i;const n=r.findIndex(a=>a>Vn.NONE);return _.jsx(Za,{link:((i=t[n])==null?void 0:i.name)??t[0].name,type:"skill",name:e,image:_.jsx(y3e,{titles:t.map(a=>a.name),images:t.map(a=>a.image),active:n}),state:p6(r[n]),title:h6(r[n])})}function x3e({bucket:e,cls:t,medal:r,children:n}){const[i,a]=Noe(e,t);return _.jsx(un,{title:i,image:a,right:r&&t&&_.jsx(HA,{title:"100% marked hardcore permanent"}),children:n})}function w3e(){const e=Ce(t6),t=Ce(r6),r=Ce(d=>d.skills),n=C.useMemo(()=>r.filter(d=>d.permable),[r]),i=Ce(d=>d.classes),a=Ce(d=>d.loading.skills||!1),o=C.useMemo(()=>e.filter(d=>d[1]===Vn.HARDCORE).length,[e]),s=C.useMemo(()=>e.filter(d=>d[1]===Vn.SOFTCORE).length,[e]),u=C.useMemo(()=>i.reduce((d,h)=>({...d,[h.id]:h}),{}),[i]),l=C.useMemo(()=>n.reduce((d,h)=>{const g=Foe(h);return{...d,[g]:[...d[g]||[],h]}},{}),[n]),c=C.useMemo(()=>Object.entries(l).map(([d,h])=>[Number(d),h]).sort((d,h)=>d[0]===0||d[0]<1&&h[0]>=1?1:h[0]===0||h[0]<1&&d[0]>=1?-1:d[0]-h[0]),[l]),f=[];return _.jsx(ia,{title:"Skills",icon:"itemimages/book3.gif",loading:a,values:[{color:"partial",value:s,name:`${s} / ${n.length} softcore permed`},{color:"complete",value:o,name:`${o} / ${n.length} hardcore permed`}],max:n.length,children:c.map(([d,h])=>{const g=h.every(p=>{var b;return((b=t[p.id])==null?void 0:b[1])===Vn.HARDCORE});return _.jsx(x3e,{bucket:Number(d),cls:u[Number(d)],medal:g,children:_.jsx(vn,{columns:6,spacing:1,children:h.map(p=>{switch(p.id){case 191:case 192:case 193:if(f.push(p),p.id!==193)return null;const b=[...f];return f.length=0,_.jsx(b3e,{groupName:"Drippy Skill",skills:b,statuses:b.map(y=>{var v;return((v=t[y.id])==null?void 0:v[1])??Vn.NONE})},p.id);default:return _.jsx(bt,{id:p.id},p.id)}})})},d)})})}function S3e(e){switch(e){case Zo.HAVE:return"complete";case Zo.HAVE_OUTFIT:return"partial";default:return null}}function A3e(e){switch(e){case Zo.HAVE:return"Have";case Zo.HAVE_OUTFIT:return"Have necessary outfit";default:return"Do not have"}}function _3e({tattoo:e,status:t}){return _.jsx(Za,{type:"tattoo",name:e.name,image:`otherimages/sigils/${e.image}.gif`,sourceWidth:50,state:S3e(t),title:A3e(t)})}const C3e=os("outfitTattoos");function k3e(){const e=Ce(C3e),t=Ce(s=>s.tattoos),r=C.useMemo(()=>t.filter(s=>s.outfit!==void 0),[t]),n=Ce(s=>s.loading.tattoos||!1),i=C.useMemo(()=>e.filter(s=>s[1]===Zo.HAVE).length,[e]),a=C.useMemo(()=>e.filter(s=>s[1]===Zo.HAVE_OUTFIT).length,[e]),o=C.useMemo(()=>e.reduce((s,u)=>({...s,[u[0]]:u}),{}),[e]);return _.jsx(ia,{title:"Tattoos",icon:"itemimages/palette.gif",loading:n,values:[{color:"partial",value:a,name:`${a} / ${r.length} tattoos unlocked`},{color:"complete",value:i,name:`${i} / ${r.length} tattoos unlocked`}],max:r.length,children:_.jsx(vn,{columns:[4,null,6],spacing:1,children:r.map(s=>{var u;return _.jsx(_3e,{tattoo:s,status:((u=o[s.outfit])==null?void 0:u[1])??0},Array.isArray(s.image)?s.image[0]:s.image)})})})}function E3e(e){switch(e){case b0.HAVE:return"complete";default:return null}}function D3e(e){switch(e){case b0.HAVE:return"Have";default:return"Do not have"}}function P3e({trophy:e,status:t}){return _.jsx(Za,{type:"trophy",name:e.name,image:`otherimages/trophy/${e.image}.gif`,sourceWidth:100,state:E3e(t),title:D3e(t)})}const T3e=os("trophies");function O3e(){const e=Ce(T3e),t=Ce(a=>a.trophies),r=Ce(a=>a.loading.trophies||!1),n=C.useMemo(()=>e.filter(a=>a[1]==b0.HAVE).length,[e]),i=C.useMemo(()=>e.reduce((a,o)=>({...a,[o[0]]:o}),{}),[e]);return _.jsx(ia,{title:"Trophies",icon:"itemimages/trophy.gif",loading:r,values:[{color:"complete",value:n,name:`${n} / ${t.length} tattoos unlocked`}],max:t.length,children:_.jsx(vn,{columns:[3,null,6],spacing:1,children:t.map(a=>{var o;return _.jsx(P3e,{trophy:a,status:((o=i[a.id])==null?void 0:o[1])??0},a.id)})})})}function $3e(){return _.jsxs(fS,{allowMultiple:!0,children:[_.jsx(c3e,{}),_.jsx(w3e,{}),_.jsx(v3e,{}),_.jsx(a3e,{}),_.jsx(k3e,{}),_.jsx(O3e,{})]})}var M3e=NJ({displayName:"QuestionOutlineIcon",path:_.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),_.jsx("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),_.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]})});function Yn(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function ir(e){Yn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Pu(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var B3e={};function I3e(){return B3e}function gT(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function fh(e,t){Yn(2,arguments);var r=ir(e),n=ir(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function R3e(e,t){Yn(2,arguments);var r=ir(e),n=ir(t),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function j3e(e,t){return Yn(2,arguments),ir(e).getTime()-ir(t).getTime()}var vT={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},F3e="trunc";function N3e(e){return e?vT[e]:vT[F3e]}function L3e(e){Yn(1,arguments);var t=ir(e);return t.setHours(23,59,59,999),t}function z3e(e){Yn(1,arguments);var t=ir(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function V3e(e){Yn(1,arguments);var t=ir(e);return L3e(t).getTime()===z3e(t).getTime()}function q3e(e,t){Yn(2,arguments);var r=ir(e),n=ir(t),i=fh(r,n),a=Math.abs(R3e(r,n)),o;if(a<1)o=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);var s=fh(r,n)===-i;V3e(ir(e))&&a===1&&fh(e,n)===1&&(s=!1),o=i*(a-Number(s))}return o===0?0:o}function U3e(e,t,r){Yn(2,arguments);var n=j3e(e,t)/1e3;return N3e(r==null?void 0:r.roundingMethod)(n)}var H3e={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"}},W3e=function(t,r,n){var i,a=H3e[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const G3e=W3e;function s1(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var K3e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Y3e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},X3e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Q3e={date:s1({formats:K3e,defaultWidth:"full"}),time:s1({formats:Y3e,defaultWidth:"full"}),dateTime:s1({formats:X3e,defaultWidth:"full"})};const J3e=Q3e;var Z3e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},e5e=function(t,r,n,i){return Z3e[t]};const t5e=e5e;function Hl(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var r5e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},n5e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},i5e={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"]},a5e={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"]},o5e={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"}},s5e={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"}},u5e=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},l5e={ordinalNumber:u5e,era:Hl({values:r5e,defaultWidth:"wide"}),quarter:Hl({values:n5e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Hl({values:i5e,defaultWidth:"wide"}),day:Hl({values:a5e,defaultWidth:"wide"}),dayPeriod:Hl({values:o5e,defaultWidth:"wide",formattingValues:s5e,defaultFormattingWidth:"wide"})};const c5e=l5e;function Wl(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?d5e(s,function(f){return f.test(o)}):f5e(s,function(f){return f.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(o.length);return{value:l,rest:c}}}function f5e(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function d5e(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var h5e=/^(\d+)(th|st|nd|rd)?/i,m5e=/\d+/i,g5e={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},v5e={any:[/^b/i,/^(a|c)/i]},y5e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},b5e={any:[/1/i,/2/i,/3/i,/4/i]},x5e={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},w5e={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]},S5e={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},A5e={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]},_5e={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},C5e={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}},k5e={ordinalNumber:p5e({matchPattern:h5e,parsePattern:m5e,valueCallback:function(t){return parseInt(t,10)}}),era:Wl({matchPatterns:g5e,defaultMatchWidth:"wide",parsePatterns:v5e,defaultParseWidth:"any"}),quarter:Wl({matchPatterns:y5e,defaultMatchWidth:"wide",parsePatterns:b5e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Wl({matchPatterns:x5e,defaultMatchWidth:"wide",parsePatterns:w5e,defaultParseWidth:"any"}),day:Wl({matchPatterns:S5e,defaultMatchWidth:"wide",parsePatterns:A5e,defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:_5e,defaultMatchWidth:"any",parsePatterns:C5e,defaultParseWidth:"any"})};const E5e=k5e;var D5e={code:"en-US",formatDistance:G3e,formatLong:J3e,formatRelative:t5e,localize:c5e,match:E5e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P5e=D5e;function aR(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function T5e(e){return aR({},e)}var yT=1440,O5e=2520,u1=43200,$5e=86400;function M5e(e,t,r){var n,i;Yn(2,arguments);var a=I3e(),o=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:a.locale)!==null&&n!==void 0?n:P5e;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=fh(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=aR(T5e(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=ir(t),c=ir(e)):(l=ir(e),c=ir(t));var f=U3e(c,l),d=(gT(c)-gT(l))/1e3,h=Math.round((f-d)/60),g;if(h<2)return r!=null&&r.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,u):f<10?o.formatDistance("lessThanXSeconds",10,u):f<20?o.formatDistance("lessThanXSeconds",20,u):f<40?o.formatDistance("halfAMinute",0,u):f<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):h===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",h,u);if(h<45)return o.formatDistance("xMinutes",h,u);if(h<90)return o.formatDistance("aboutXHours",1,u);if(hs.playerId),t=Ce(s=>s.favouritePlayerId),r=t===e,n=r?"star_full":"star",i=r?"Stop remembering this player":`Remember this player${t?` (currently your favourite is #${t})`:""}`,a=GS(),o=C.useCallback(s=>{s.preventDefault(),a(Z9(r?null:e))},[a,r,e]);return _.jsx(pS,{size:"xs",onClick:o,"aria-label":i,title:i,icon:_.jsx(w0,{height:"60%",src:`/${n}.png`})})}function j5e({current:e,data:t}){return t>=e?null:_.jsx(CS,{p:2,label:`This snapshot was made with an older version of greenbox (v${t}) and some data may be rendered incorrectly.`,children:_.jsx(Zg,{height:"60%",src:"/warning.png"})})}function F5e({meta:e,direct:t}){const[r,n]=C.useState(new Date),i=C.useMemo(()=>new Date(e.timestamp),[e.timestamp]),a=C.useMemo(()=>B5e(i,{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"}),[i]);C.useEffect(()=>{const s=setInterval(()=>n(new Date),6e4);return()=>clearInterval(s)},[]);const o=C.useMemo(()=>M5e(i,r,{addSuffix:!0}),[r,i]);return _.jsxs(e0,{fontSize:"large",spacing:"0.25em",wrap:"wrap",children:[_.jsx($i,{title:`r${e.revision}`,children:`${t?"Private s":"S"}napshot`})," ",_.jsx($i,{children:"by"})," ",_.jsx($i,{fontWeight:"bold",title:`Player #${e.id}`,children:e.name})," ",_.jsx($i,{children:"from"})," ",_.jsx($i,{title:a,children:o}),_.jsx(j5e,{current:dae,data:e.version}),!t&&_.jsx(R5e,{})]})}function N5e(){const{toggleColorMode:e}=Zf(),t=Fh("dark","light"),r=Fh("moon","sun"),n=`Switch to ${t} mode`,i=C.useCallback(a=>{a.preventDefault(),e()},[e]);return _.jsx(pS,{size:"xs",onClick:i,"aria-label":n,title:n,icon:_.jsx(w0,{height:"60%",src:`/${r}.png`})})}const L5e=` -This reloads the general information Greenbox needs to know about the Kingdom of Loathing. -Press it if some new content is not appearing at all. -It will not collect any new information about you specifically - you still need to run the command in KoLmafia! -`;function z5e({meta:e,direct:t,loading:r,error:n,errorMessage:i}){const a=GS(),o=C.useCallback(()=>{a(Q9(!0))},[a]);return _.jsxs(Ia,{as:"section",alignItems:"stretch",py:2,children:[_.jsxs(e0,{alignItems:"center",flex:1,maxWidth:"100%",wrap:"wrap",children:[_.jsx(No,{as:"h1",children:"Greenbox"}),_.jsx(yn,{children:_.jsx(N5e,{})}),_.jsx(yn,{flex:1}),_.jsx(yn,{textAlign:"right",children:e?_.jsx(F5e,{direct:t,meta:e}):r?_.jsx(KS,{}):n?_.jsxs(uS,{status:"error",fontSize:"md",children:[_.jsx(sS,{}),i]}):null})]}),_.jsxs(Ia,{children:[_.jsx($i,{children:"To get the data from your account, first install the script by running"}),_.jsx($2,{p:2,borderRadius:5,children:"git checkout loathers/greenbox release"}),_.jsxs($i,{children:["in KoLmafia's Graphical CLI. Once that's done, you can update the data at this link whenever you like by running ",_.jsx($2,{children:"greenbox"}),"."]}),_.jsx(Ia,{direction:"row-reverse",pt:3,children:_.jsx(CS,{p:2,label:L5e,children:_.jsxs(dS,{size:"xs",colorScheme:"red",onClick:o,children:["Force update game data ",_.jsx(M3e,{ml:1})]})})})]})]})}function V5e(){const[e]=rD("d",PS),[t]=rD("u",une),r=Ce(f=>f.favouritePlayerId),n=GS();C.useEffect(()=>{const f=t||r;f&&n(lh(f))},[t,n,r]),C.useEffect(()=>{e&&n(J9(e))},[e,n]),C.useEffect(()=>{n(Q9(!1))},[n]);const i=rZ(),a=C.useRef(),o=Ce(f=>f.playerData),s=Ce(f=>f.loading),u=Ce(f=>f.error),l=Ce(f=>f.errorMessage),c="clash-toast";return C.useEffect(()=>{s.wikiClashes&&!i.isActive(c)?a.current=i({description:"Detecting name clashes for wiki links (takes a few seconds)...",duration:null,id:c}):a.current&&(u.wikiClashes?i.update(a.current,{description:"Clash detection errored (probably don't support web workers)",status:"error",duration:2e3}):i.update(a.current,{description:"Clash detection complete",status:"success",duration:2e3}))},[s.wikiClashes]),_.jsxs(O8,{maxWidth:"1000px",width:"100%",children:[_.jsx(z5e,{direct:!!e,meta:o==null?void 0:o.meta,loading:s.playerData,error:u.playerData,errorMessage:l.playerData}),_.jsxs(Z8,{isLazy:!0,variant:"enclosed",children:[_.jsxs(e9,{children:[_.jsx(R2,{children:"General"}),_.jsx(R2,{children:"Clan Dungeons"})]}),_.jsxs(t9,{children:[_.jsx(I2,{p:0,children:_.jsx($3e,{})}),_.jsx(I2,{children:_.jsx(ZDe,{})})]})]})]})}function q5e(){return _.jsx(iZ,{theme:i6,children:_.jsx(Xre,{store:e6,children:_.jsx(f9,{persistor:uoe,children:_.jsx(wne,{adapter:$ne,children:_.jsx(V5e,{})})})})})}l1.createRoot(document.getElementById("root")).render(_.jsxs(V.StrictMode,{children:[_.jsx(GL,{initialColorMode:i6.config.initialColorMode}),_.jsx(q5e,{})]})); diff --git a/assets/index-4523c83a.js b/assets/index-4523c83a.js new file mode 100644 index 0000000..99e8dc9 --- /dev/null +++ b/assets/index-4523c83a.js @@ -0,0 +1,471 @@ +function Ej(e,t){for(var r=0;rn[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"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $T={exports:{}},hg={},MT={exports:{}},Ae={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Kf=Symbol.for("react.element"),Dj=Symbol.for("react.portal"),Pj=Symbol.for("react.fragment"),Tj=Symbol.for("react.strict_mode"),Oj=Symbol.for("react.profiler"),$j=Symbol.for("react.provider"),Mj=Symbol.for("react.context"),Bj=Symbol.for("react.forward_ref"),Ij=Symbol.for("react.suspense"),Rj=Symbol.for("react.memo"),jj=Symbol.for("react.lazy"),bC=Symbol.iterator;function Fj(e){return e===null||typeof e!="object"?null:(e=bC&&e[bC]||e["@@iterator"],typeof e=="function"?e:null)}var BT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IT=Object.assign,RT={};function rl(e,t,r){this.props=e,this.context=t,this.refs=RT,this.updater=r||BT}rl.prototype.isReactComponent={};rl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jT(){}jT.prototype=rl.prototype;function Bx(e,t,r){this.props=e,this.context=t,this.refs=RT,this.updater=r||BT}var Ix=Bx.prototype=new jT;Ix.constructor=Bx;IT(Ix,rl.prototype);Ix.isPureReactComponent=!0;var xC=Array.isArray,FT=Object.prototype.hasOwnProperty,Rx={current:null},NT={key:!0,ref:!0,__self:!0,__source:!0};function LT(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)FT.call(t,n)&&!NT.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1>>1,Y=j[H];if(0>>1;Hi(ue,V))fei(le,ue)?(j[H]=le,j[fe]=V,H=fe):(j[H]=ue,j[Z]=V,H=Z);else if(fei(le,V))j[H]=le,j[fe]=V,H=fe;else break e}}return $}function i(j,$){var V=j.sortIndex-$.sortIndex;return V!==0?V:j.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],l=[],c=1,f=null,d=3,h=!1,g=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var $=r(l);$!==null;){if($.callback===null)n(l);else if($.startTime<=j)n(l),$.sortIndex=$.expirationTime,t(u,$);else break;$=r(l)}}function x(j){if(p=!1,m(j),!g)if(r(u)!==null)g=!0,U(w);else{var $=r(l);$!==null&&F(x,$.startTime-j)}}function w(j,$){g=!1,p&&(p=!1,y(k),k=-1),h=!0;var V=d;try{for(m($),f=r(u);f!==null&&(!(f.expirationTime>$)||j&&!P());){var H=f.callback;if(typeof H=="function"){f.callback=null,d=f.priorityLevel;var Y=H(f.expirationTime<=$);$=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===r(u)&&n(u),m($)}else n(u);f=r(u)}if(f!==null)var K=!0;else{var Z=r(l);Z!==null&&F(x,Z.startTime-$),K=!1}return K}finally{f=null,d=V,h=!1}}var S=!1,A=null,k=-1,E=5,T=-1;function P(){return!(e.unstable_now()-Tj||125H?(j.sortIndex=V,t(l,j),r(u)===null&&j===r(l)&&(p?(y(k),k=-1):p=!0,F(x,V-H))):(j.sortIndex=Y,t(u,j),g||h||(g=!0,U(w))),j},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(j){var $=d;return function(){var V=d;d=$;try{return j.apply(this,arguments)}finally{d=V}}}})(UT);qT.exports=UT;var Yj=qT.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var HT=C,Yr=Yj;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v1=Object.prototype.hasOwnProperty,Xj=/^[: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]*$/,AC={},CC={};function Qj(e){return v1.call(CC,e)?!0:v1.call(AC,e)?!1:Xj.test(e)?CC[e]=!0:(AC[e]=!0,!1)}function Jj(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zj(e,t,r,n){if(t===null||typeof t>"u"||Jj(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wr(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xt[e]=new wr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xt[t]=new wr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xt[e]=new wr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xt[e]=new wr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xt[e]=new wr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xt[e]=new wr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xt[e]=new wr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xt[e]=new wr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xt[e]=new wr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fx=/[\-:]([a-z])/g;function Nx(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fx,Nx);Xt[t]=new wr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fx,Nx);Xt[t]=new wr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fx,Nx);Xt[t]=new wr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xt[e]=new wr(e,1,!1,e.toLowerCase(),null,!1,!1)});Xt.xlinkHref=new wr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xt[e]=new wr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lx(e,t,r,n){var i=Xt.hasOwnProperty(t)?Xt[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var u=` +`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{hv=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ql(e):""}function eF(e){switch(e.tag){case 5:return Ql(e.type);case 16:return Ql("Lazy");case 13:return Ql("Suspense");case 19:return Ql("SuspenseList");case 0:case 2:case 15:return e=mv(e.type,!1),e;case 11:return e=mv(e.type.render,!1),e;case 1:return e=mv(e.type,!0),e;default:return""}}function w1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ts:return"Fragment";case Ps:return"Portal";case y1:return"Profiler";case zx:return"StrictMode";case b1:return"Suspense";case x1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case KT:return(e.displayName||"Context")+".Consumer";case GT:return(e._context.displayName||"Context")+".Provider";case Vx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qx:return t=e.displayName||null,t!==null?t:w1(e.type)||"Memo";case ga:t=e._payload,e=e._init;try{return w1(e(t))}catch{}}return null}function tF(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return w1(t);case 8:return t===zx?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function XT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rF(e){var t=XT(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ld(e){e._valueTracker||(e._valueTracker=rF(e))}function QT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=XT(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function S1(e,t){var r=t.checked;return ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function kC(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Va(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JT(e,t){t=t.checked,t!=null&&Lx(e,"checked",t,!1)}function A1(e,t){JT(e,t);var r=Va(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?C1(e,t.type,r):t.hasOwnProperty("defaultValue")&&C1(e,t.type,Va(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function EC(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function C1(e,t,r){(t!=="number"||gh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Jl=Array.isArray;function eu(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nF=["Webkit","ms","Moz","O"];Object.keys(fc).forEach(function(e){nF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fc[t]=fc[e]})});function rO(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fc.hasOwnProperty(e)&&fc[e]?(""+t).trim():t+"px"}function nO(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=rO(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var iF=ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function E1(e,t){if(t){if(iF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function D1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var P1=null;function Ux(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var T1=null,tu=null,ru=null;function TC(e){if(e=Qf(e)){if(typeof T1!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=bg(t),T1(e.stateNode,e.type,t))}}function iO(e){tu?ru?ru.push(e):ru=[e]:tu=e}function aO(){if(tu){var e=tu,t=ru;if(ru=tu=null,TC(e),t)for(e=0;e>>=0,e===0?32:31-(mF(e)/gF|0)|0}var Vd=64,qd=4194304;function Zl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Zl(s):(a&=o,a!==0&&(n=Zl(a)))}else o=r&~i,o!==0?n=Zl(o):a!==0&&(n=Zl(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Un(t),e[t]=r}function xF(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=pc),NC=String.fromCharCode(32),LC=!1;function _O(e,t){switch(e){case"keyup":return KF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Os=!1;function XF(e,t){switch(e){case"compositionend":return kO(t);case"keypress":return t.which!==32?null:(LC=!0,NC);case"textInput":return e=t.data,e===NC&&LC?null:e;default:return null}}function QF(e,t){if(Os)return e==="compositionend"||!Jx&&_O(e,t)?(e=AO(),Mp=Yx=Ca=null,Os=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=UC(r)}}function TO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?TO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OO(){for(var e=window,t=gh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gh(e.document)}return t}function Zx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function oN(e){var t=OO(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&TO(r.ownerDocument.documentElement,r)){if(n!==null&&Zx(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=HC(r,a);var o=HC(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,$s=null,R1=null,mc=null,j1=!1;function WC(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;j1||$s==null||$s!==gh(n)||(n=$s,"selectionStart"in n&&Zx(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),mc&&Uc(mc,n)||(mc=n,n=Ah(R1,"onSelect"),0Is||(e.current=q1[Is],q1[Is]=null,Is--)}function Ge(e,t){Is++,q1[Is]=e.current,e.current=t}var qa={},ur=Xa(qa),Pr=Xa(!1),Ho=qa;function wu(e,t){var r=e.type.contextTypes;if(!r)return qa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Tr(e){return e=e.childContextTypes,e!=null}function _h(){tt(Pr),tt(ur)}function ZC(e,t,r){if(ur.current!==qa)throw Error(Q(168));Ge(ur,t),Ge(Pr,r)}function LO(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Q(108,tF(e)||"Unknown",i));return ct({},r,n)}function kh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qa,Ho=ur.current,Ge(ur,e),Ge(Pr,Pr.current),!0}function e_(e,t,r){var n=e.stateNode;if(!n)throw Error(Q(169));r?(e=LO(e,t,Ho),n.__reactInternalMemoizedMergedChildContext=e,tt(Pr),tt(ur),Ge(ur,e)):tt(Pr),Ge(Pr,r)}var Ti=null,xg=!1,Pv=!1;function zO(e){Ti===null?Ti=[e]:Ti.push(e)}function yN(e){xg=!0,zO(e)}function Qa(){if(!Pv&&Ti!==null){Pv=!0;var e=0,t=Ne;try{var r=Ti;for(Ne=1;e>=o,i-=o,Bi=1<<32-Un(t)+i|r<k?(E=A,A=null):E=A.sibling;var T=d(y,A,m[k],x);if(T===null){A===null&&(A=E);break}e&&A&&T.alternate===null&&t(y,A),v=a(T,v,k),S===null?w=T:S.sibling=T,S=T,A=E}if(k===m.length)return r(y,A),at&&ho(y,k),w;if(A===null){for(;kk?(E=A,A=null):E=A.sibling;var P=d(y,A,T.value,x);if(P===null){A===null&&(A=E);break}e&&A&&P.alternate===null&&t(y,A),v=a(P,v,k),S===null?w=P:S.sibling=P,S=P,A=E}if(T.done)return r(y,A),at&&ho(y,k),w;if(A===null){for(;!T.done;k++,T=m.next())T=f(y,T.value,x),T!==null&&(v=a(T,v,k),S===null?w=T:S.sibling=T,S=T);return at&&ho(y,k),w}for(A=n(y,A);!T.done;k++,T=m.next())T=h(A,y,k,T.value,x),T!==null&&(e&&T.alternate!==null&&A.delete(T.key===null?k:T.key),v=a(T,v,k),S===null?w=T:S.sibling=T,S=T);return e&&A.forEach(function(I){return t(y,I)}),at&&ho(y,k),w}function b(y,v,m,x){if(typeof m=="object"&&m!==null&&m.type===Ts&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Nd:e:{for(var w=m.key,S=v;S!==null;){if(S.key===w){if(w=m.type,w===Ts){if(S.tag===7){r(y,S.sibling),v=i(S,m.props.children),v.return=y,y=v;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ga&&s_(w)===S.type){r(y,S.sibling),v=i(S,m.props),v.ref=Pl(y,S,m),v.return=y,y=v;break e}r(y,S);break}else t(y,S);S=S.sibling}m.type===Ts?(v=Io(m.props.children,y.mode,x,m.key),v.return=y,y=v):(x=zp(m.type,m.key,m.props,null,y.mode,x),x.ref=Pl(y,v,m),x.return=y,y=x)}return o(y);case Ps:e:{for(S=m.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){r(y,v.sibling),v=i(v,m.children||[]),v.return=y,y=v;break e}else{r(y,v);break}else t(y,v);v=v.sibling}v=jv(m,y.mode,x),v.return=y,y=v}return o(y);case ga:return S=m._init,b(y,v,S(m._payload),x)}if(Jl(m))return g(y,v,m,x);if(Cl(m))return p(y,v,m,x);Xd(y,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,v!==null&&v.tag===6?(r(y,v.sibling),v=i(v,m),v.return=y,y=v):(r(y,v),v=Rv(m,y.mode,x),v.return=y,y=v),o(y)):r(y,v)}return b}var Au=YO(!0),XO=YO(!1),Jf={},di=Xa(Jf),Kc=Xa(Jf),Yc=Xa(Jf);function Do(e){if(e===Jf)throw Error(Q(174));return e}function uw(e,t){switch(Ge(Yc,t),Ge(Kc,e),Ge(di,Jf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:k1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=k1(t,e)}tt(di),Ge(di,t)}function Cu(){tt(di),tt(Kc),tt(Yc)}function QO(e){Do(Yc.current);var t=Do(di.current),r=k1(t,e.type);t!==r&&(Ge(Kc,e),Ge(di,r))}function lw(e){Kc.current===e&&(tt(di),tt(Kc))}var st=Xa(0);function $h(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tv=[];function cw(){for(var e=0;er?r:4,e(!0);var n=Ov.transition;Ov.transition={};try{e(!1),t()}finally{Ne=r,Ov.transition=n}}function p$(){return An().memoizedState}function SN(e,t,r){var n=Ma(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},h$(e))m$(t,r);else if(r=HO(e,t,r,n),r!==null){var i=yr();Hn(r,e,n,i),g$(r,t,n)}}function AN(e,t,r){var n=Ma(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(h$(e))m$(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Kn(s,o)){var u=t.interleaved;u===null?(i.next=i,ow(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=HO(e,t,i,n),r!==null&&(i=yr(),Hn(r,e,n,i),g$(r,t,n))}}function h$(e){var t=e.alternate;return e===lt||t!==null&&t===lt}function m$(e,t){gc=Mh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function g$(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Wx(e,r)}}var Bh={readContext:Sn,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},CN={readContext:Sn,useCallback:function(e,t){return ti().memoizedState=[e,t===void 0?null:t],e},useContext:Sn,useEffect:l_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,jp(4194308,4,u$.bind(null,t,e),r)},useLayoutEffect:function(e,t){return jp(4194308,4,e,t)},useInsertionEffect:function(e,t){return jp(4,2,e,t)},useMemo:function(e,t){var r=ti();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ti();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=SN.bind(null,lt,e),[n.memoizedState,e]},useRef:function(e){var t=ti();return e={current:e},t.memoizedState=e},useState:u_,useDebugValue:mw,useDeferredValue:function(e){return ti().memoizedState=e},useTransition:function(){var e=u_(!1),t=e[0];return e=wN.bind(null,e[1]),ti().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=lt,i=ti();if(at){if(r===void 0)throw Error(Q(407));r=r()}else{if(r=t(),Nt===null)throw Error(Q(349));Go&30||e$(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,l_(r$.bind(null,n,a,e),[e]),n.flags|=2048,Jc(9,t$.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ti(),t=Nt.identifierPrefix;if(at){var r=Ii,n=Bi;r=(n&~(1<<32-Un(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Xc++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[si]=t,e[Gc]=n,_$(e,t,!1,!1),t.stateNode=e;e:{switch(o=D1(r,n),r){case"dialog":Qe("cancel",e),Qe("close",e),i=n;break;case"iframe":case"object":case"embed":Qe("load",e),i=n;break;case"video":case"audio":for(i=0;iku&&(t.flags|=128,n=!0,Tl(a,!1),t.lanes=4194304)}else{if(!n)if(e=$h(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Tl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!at)return Jt(t),null}else 2*vt()-a.renderingStartTime>ku&&r!==1073741824&&(t.flags|=128,n=!0,Tl(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=vt(),t.sibling=null,r=st.current,Ge(st,n?r&1|2:r&1),t):(Jt(t),null);case 22:case 23:return ww(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?zr&1073741824&&(Jt(t),t.subtreeFlags&6&&(t.flags|=8192)):Jt(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function $N(e,t){switch(tw(t),t.tag){case 1:return Tr(t.type)&&_h(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cu(),tt(Pr),tt(ur),cw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lw(t),null;case 13:if(tt(st),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));Su()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tt(st),null;case 4:return Cu(),null;case 10:return aw(t.type._context),null;case 22:case 23:return ww(),null;case 24:return null;default:return null}}var Jd=!1,ir=!1,MN=typeof WeakSet=="function"?WeakSet:Set,re=null;function Ns(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){mt(e,t,n)}else r.current=null}function t2(e,t,r){try{r()}catch(n){mt(e,t,n)}}var y_=!1;function BN(e,t){if(F1=wh,e=OO(),Zx(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,u=-1,l=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(u=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++l===i&&(s=o),d===a&&++c===n&&(u=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(N1={focusedElem:e,selectionRange:r},wh=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,b=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:Bn(t.type,p),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(x){mt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return g=y_,y_=!1,g}function vc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&t2(t,r,a)}i=i.next}while(i!==n)}}function Ag(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function r2(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function D$(e){var t=e.alternate;t!==null&&(e.alternate=null,D$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[si],delete t[Gc],delete t[V1],delete t[gN],delete t[vN])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function P$(e){return e.tag===5||e.tag===3||e.tag===4}function b_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||P$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function n2(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ch));else if(n!==4&&(e=e.child,e!==null))for(n2(e,t,r),e=e.sibling;e!==null;)n2(e,t,r),e=e.sibling}function i2(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(i2(e,t,r),e=e.sibling;e!==null;)i2(e,t,r),e=e.sibling}var Ut=null,In=!1;function la(e,t,r){for(r=r.child;r!==null;)T$(e,t,r),r=r.sibling}function T$(e,t,r){if(fi&&typeof fi.onCommitFiberUnmount=="function")try{fi.onCommitFiberUnmount(mg,r)}catch{}switch(r.tag){case 5:ir||Ns(r,t);case 6:var n=Ut,i=In;Ut=null,la(e,t,r),Ut=n,In=i,Ut!==null&&(In?(e=Ut,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ut.removeChild(r.stateNode));break;case 18:Ut!==null&&(In?(e=Ut,r=r.stateNode,e.nodeType===8?Dv(e.parentNode,r):e.nodeType===1&&Dv(e,r),Vc(e)):Dv(Ut,r.stateNode));break;case 4:n=Ut,i=In,Ut=r.stateNode.containerInfo,In=!0,la(e,t,r),Ut=n,In=i;break;case 0:case 11:case 14:case 15:if(!ir&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&t2(r,t,o),i=i.next}while(i!==n)}la(e,t,r);break;case 1:if(!ir&&(Ns(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){mt(r,t,s)}la(e,t,r);break;case 21:la(e,t,r);break;case 22:r.mode&1?(ir=(n=ir)||r.memoizedState!==null,la(e,t,r),ir=n):la(e,t,r);break;default:la(e,t,r)}}function x_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new MN),t.forEach(function(n){var i=qN.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Tn(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=vt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*RN(n/1960))-n,10e?16:e,_a===null)var n=!1;else{if(e=_a,_a=null,jh=0,Pe&6)throw Error(Q(331));var i=Pe;for(Pe|=4,re=e.current;re!==null;){var a=re,o=a.child;if(re.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uvt()-bw?Bo(e,0):yw|=r),Or(e,t)}function F$(e,t){t===0&&(e.mode&1?(t=qd,qd<<=1,!(qd&130023424)&&(qd=4194304)):t=1);var r=yr();e=Yi(e,t),e!==null&&(Yf(e,t,r),Or(e,r))}function VN(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),F$(e,r)}function qN(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Q(314))}n!==null&&n.delete(t),F$(e,r)}var N$;N$=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pr.current)Er=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Er=!1,TN(e,t,r);Er=!!(e.flags&131072)}else Er=!1,at&&t.flags&1048576&&VO(t,Dh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Fp(e,t),e=t.pendingProps;var i=wu(t,ur.current);iu(t,r),i=dw(null,t,n,e,i,r);var a=pw();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tr(n)?(a=!0,kh(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sw(t),i.updater=wg,t.stateNode=i,i._reactInternals=t,K1(t,n,e,r),t=Q1(null,t,n,!0,a,r)):(t.tag=0,at&&a&&ew(t),hr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Fp(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=HN(n),e=Bn(n,e),i){case 0:t=X1(null,t,n,e,r);break e;case 1:t=m_(null,t,n,e,r);break e;case 11:t=p_(null,t,n,e,r);break e;case 14:t=h_(null,t,n,Bn(n.type,e),r);break e}throw Error(Q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bn(n,i),X1(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bn(n,i),m_(e,t,n,i,r);case 3:e:{if(S$(t),e===null)throw Error(Q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,WO(e,t),Oh(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=_u(Error(Q(423)),t),t=g_(e,t,n,r,i);break e}else if(n!==i){i=_u(Error(Q(424)),t),t=g_(e,t,n,r,i);break e}else for(Ur=Ta(t.stateNode.containerInfo.firstChild),Wr=t,at=!0,jn=null,r=XO(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Su(),n===i){t=Xi(e,t,r);break e}hr(e,t,n,r)}t=t.child}return t;case 5:return QO(t),e===null&&H1(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,L1(n,i)?o=null:a!==null&&L1(n,a)&&(t.flags|=32),w$(e,t),hr(e,t,o,r),t.child;case 6:return e===null&&H1(t),null;case 13:return A$(e,t,r);case 4:return uw(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Au(t,null,n,r):hr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bn(n,i),p_(e,t,n,i,r);case 7:return hr(e,t,t.pendingProps,r),t.child;case 8:return hr(e,t,t.pendingProps.children,r),t.child;case 12:return hr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ge(Ph,n._currentValue),n._currentValue=o,a!==null)if(Kn(a.value,o)){if(a.children===i.children&&!Pr.current){t=Xi(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=zi(-1,r&-r),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),W1(a.return,r,t),s.lanes|=r;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),W1(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}hr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,iu(t,r),i=Sn(i),n=n(i),t.flags|=1,hr(e,t,n,r),t.child;case 14:return n=t.type,i=Bn(n,t.pendingProps),i=Bn(n.type,i),h_(e,t,n,i,r);case 15:return b$(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bn(n,i),Fp(e,t),t.tag=1,Tr(n)?(e=!0,kh(t)):e=!1,iu(t,r),KO(t,n,i),K1(t,n,i,r),Q1(null,t,n,!0,e,r);case 19:return C$(e,t,r);case 22:return x$(e,t,r)}throw Error(Q(156,t.tag))};function L$(e,t){return dO(e,t)}function UN(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(e,t,r,n){return new UN(e,t,r,n)}function Aw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HN(e){if(typeof e=="function")return Aw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vx)return 11;if(e===qx)return 14}return 2}function Ba(e,t){var r=e.alternate;return r===null?(r=pn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function zp(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Aw(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ts:return Io(r.children,i,a,t);case zx:o=8,i|=8;break;case y1:return e=pn(12,r,t,i|2),e.elementType=y1,e.lanes=a,e;case b1:return e=pn(13,r,t,i),e.elementType=b1,e.lanes=a,e;case x1:return e=pn(19,r,t,i),e.elementType=x1,e.lanes=a,e;case YT:return _g(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case GT:o=10;break e;case KT:o=9;break e;case Vx:o=11;break e;case qx:o=14;break e;case ga:o=16,n=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=pn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Io(e,t,r,n){return e=pn(7,e,n,t),e.lanes=r,e}function _g(e,t,r,n){return e=pn(22,e,n,t),e.elementType=YT,e.lanes=r,e.stateNode={isHidden:!1},e}function Rv(e,t,r){return e=pn(6,e,null,t),e.lanes=r,e}function jv(e,t,r){return t=pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WN(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vv(0),this.expirationTimes=vv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vv(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cw(e,t,r,n,i,a,o,s,u){return e=new WN(e,t,r,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},sw(a),e}function GN(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U$)}catch(e){console.error(e)}}U$(),VT.exports=Zr;var Zf=VT.exports,D_=Zf;g1.createRoot=D_.createRoot,g1.hydrateRoot=D_.hydrateRoot;function JN(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ht(al,--Ir):0,Eu--,wt===10&&(Eu=1,Og--),wt}function Gr(){return wt=Ir2||tf(wt)>3?"":" "}function fL(e,t){for(;--t&&Gr()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return ed(e,Vp()+(t<6&&pi()==32&&Gr()==32))}function c2(e){for(;Gr();)switch(wt){case e:return Ir;case 34:case 39:e!==34&&e!==39&&c2(wt);break;case 40:e===41&&c2(e);break;case 92:Gr();break}return Ir}function dL(e,t){for(;Gr()&&e+wt!==47+10;)if(e+wt===42+42&&pi()===47)break;return"/*"+ed(t,Ir-1)+"*"+Tg(e===47?e:Gr())}function pL(e){for(;!tf(pi());)Gr();return ed(e,Ir)}function hL(e){return X$(Up("",null,null,null,[""],e=Y$(e),0,[0],e))}function Up(e,t,r,n,i,a,o,s,u){for(var l=0,c=0,f=o,d=0,h=0,g=0,p=1,b=1,y=1,v=0,m="",x=i,w=a,S=n,A=m;b;)switch(g=v,v=Gr()){case 40:if(g!=108&&Ht(A,f-1)==58){l2(A+=Ie(qp(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=qp(v);break;case 9:case 10:case 13:case 32:A+=cL(g);break;case 92:A+=fL(Vp()-1,7);continue;case 47:switch(pi()){case 42:case 47:tp(mL(dL(Gr(),Vp()),t,r),u);break;default:A+="/"}break;case 123*p:s[l++]=ai(A)*y;case 125*p:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+c:y==-1&&(A=Ie(A,/\f/g,"")),h>0&&ai(A)-f&&tp(h>32?T_(A+";",n,r,f-1):T_(Ie(A," ","")+";",n,r,f-2),u);break;case 59:A+=";";default:if(tp(S=P_(A,t,r,l,c,i,s,m,x=[],w=[],f),a),v===123)if(c===0)Up(A,t,S,S,x,a,f,s,w);else switch(d===99&&Ht(A,3)===110?100:d){case 100:case 108:case 109:case 115:Up(e,S,S,n&&tp(P_(e,S,S,0,0,i,s,m,i,x=[],f),w),i,w,f,s,n?x:w);break;default:Up(A,S,S,S,[""],w,0,s,w)}}l=c=h=0,p=y=1,m=A="",f=o;break;case 58:f=1+ai(A),h=g;default:if(p<1){if(v==123)--p;else if(v==125&&p++==0&&lL()==125)continue}switch(A+=Tg(v),v*p){case 38:y=c>0?1:(A+="\f",-1);break;case 44:s[l++]=(ai(A)-1)*y,y=1;break;case 64:pi()===45&&(A+=qp(Gr())),d=pi(),c=f=ai(m=A+=pL(Vp())),v++;break;case 45:g===45&&ai(A)==2&&(p=0)}}return a}function P_(e,t,r,n,i,a,o,s,u,l,c){for(var f=i-1,d=i===0?a:[""],h=Tw(d),g=0,p=0,b=0;g0?d[y]+" "+v:Ie(v,/&\f/g,d[y])))&&(u[b++]=m);return $g(e,t,r,i===0?Dw:s,u,l,c)}function mL(e,t,r){return $g(e,t,r,H$,Tg(uL()),ef(e,2,-2),0)}function T_(e,t,r,n){return $g(e,t,r,Pw,ef(e,0,n),ef(e,n+1,-1),n)}function ou(e,t){for(var r="",n=Tw(e),i=0;i6)switch(Ht(e,t+1)){case 109:if(Ht(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+Lh+(Ht(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~l2(e,"stretch")?J$(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ht(e,t+1)!==115)break;case 6444:switch(Ht(e,ai(e)-3-(~l2(e,"!important")&&10))){case 107:return Ie(e,":",":"+Be)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Be+(Ht(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+Zt+"$2box$3")+e}break;case 5936:switch(Ht(e,t+11)){case 114:return Be+e+Zt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+Zt+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+Zt+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Be+e+Zt+e+e}return e}var CL=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Pw:t.return=J$(t.value,t.length);break;case W$:return ou([$l(t,{value:Ie(t.value,"@","@"+Be)})],i);case Dw:if(t.length)return sL(t.props,function(a){switch(oL(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ou([$l(t,{props:[Ie(a,/:(read-\w+)/,":"+Lh+"$1")]})],i);case"::placeholder":return ou([$l(t,{props:[Ie(a,/:(plac\w+)/,":"+Be+"input-$1")]}),$l(t,{props:[Ie(a,/:(plac\w+)/,":"+Lh+"$1")]}),$l(t,{props:[Ie(a,/:(plac\w+)/,Zt+"input-$1")]})],i)}return""})}},_L=[CL],kL=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var b=p.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||_L,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),y=1;y=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jL={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},FL=/[A-Z]|^ms/g,NL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o4=function(t){return t.charCodeAt(1)===45},M_=function(t){return t!=null&&typeof t!="boolean"},Fv=Q$(function(e){return o4(e)?e:e.replace(FL,"-$&").toLowerCase()}),B_=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(NL,function(n,i,a){return oi={name:i,styles:a,next:oi},i})}return jL[t]!==1&&!o4(t)&&typeof r=="number"&&r!==0?r+"px":r};function rf(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return oi={name:r.name,styles:r.styles,next:oi},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)oi={name:n.name,styles:n.styles,next:oi},n=n.next;var i=r.styles+";";return i}return LL(e,t,r)}case"function":{if(e!==void 0){var a=oi,o=r(e);return oi=a,rf(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function LL(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i_.jsx(qg,{styles:d4}),KL=({scope:e=""})=>_.jsx(qg,{styles:f4` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${d4} + `});function YL(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ot(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:a,defaultValue:o}=e,s=C.createContext(o);s.displayName=t;function u(){var l;const c=C.useContext(s);if(!c&&r){const f=new Error(a??YL(n,i));throw f.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,f,u),f}return c}return[s.Provider,u,s]}var[XL,QL]=Ot({strict:!1,name:"PortalManagerContext"});function p4(e){const{children:t,zIndex:r}=e;return _.jsx(XL,{value:{zIndex:r},children:t})}p4.displayName="PortalManager";var Du=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect,[h4,JL]=Ot({strict:!1,name:"PortalContext"}),Iw="chakra-portal",ZL=".chakra-portal",e7=e=>_.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),t7=e=>{const{appendToParentPortal:t,children:r}=e,[n,i]=C.useState(null),a=C.useRef(null),[,o]=C.useState({});C.useEffect(()=>o({}),[]);const s=JL(),u=QL();Du(()=>{if(!n)return;const c=n.ownerDocument,f=t?s??c.body:c.body;if(!f)return;a.current=c.createElement("div"),a.current.className=Iw,f.appendChild(a.current),o({});const d=a.current;return()=>{f.contains(d)&&f.removeChild(d)}},[n]);const l=u!=null&&u.zIndex?_.jsx(e7,{zIndex:u==null?void 0:u.zIndex,children:r}):r;return a.current?Zf.createPortal(_.jsx(h4,{value:a.current,children:l}),a.current):_.jsx("span",{ref:c=>{c&&i(c)}})},r7=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,i=r.current,a=i??(typeof window<"u"?document.body:void 0),o=C.useMemo(()=>{const u=i==null?void 0:i.ownerDocument.createElement("div");return u&&(u.className=Iw),u},[i]),[,s]=C.useState({});return Du(()=>s({}),[]),Du(()=>{if(!(!o||!a))return a.appendChild(o),()=>{a.removeChild(o)}},[o,a]),a&&o?Zf.createPortal(_.jsx(h4,{value:n?o:null,children:t}),o):null};function td(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?_.jsx(r7,{containerRef:r,...n}):_.jsx(t7,{...n})}td.className=Iw;td.selector=ZL;td.displayName="Portal";function rd(){const e=C.useContext(nf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Rw=C.createContext({});Rw.displayName="ColorModeContext";function nd(){const e=C.useContext(Rw);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Vh(e,t){const{colorMode:r}=nd();return r==="dark"?t:e}var rp={light:"chakra-ui-light",dark:"chakra-ui-dark"};function n7(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,i==null||i()},setClassName(n){document.body.classList.add(n?rp.dark:rp.light),document.body.classList.remove(n?rp.light:rp.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var i;return((i=r.query().matches)!=null?i:n==="dark")?"dark":"light"},addListener(n){const i=r.query(),a=o=>{n(o.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var i7="chakra-ui-color-mode";function a7(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var o7=a7(i7),j_=()=>{};function F_(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function m4(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:o=o7}=e,s=i==="dark"?"dark":"light",[u,l]=C.useState(()=>F_(o,s)),[c,f]=C.useState(()=>F_(o)),{getSystemTheme:d,setClassName:h,setDataset:g,addListener:p}=C.useMemo(()=>n7({preventTransition:a}),[a]),b=i==="system"&&!u?c:u,y=C.useCallback(x=>{const w=x==="system"?d():x;l(w),h(w==="dark"),g(w),o.set(w)},[o,d,h,g]);Du(()=>{i==="system"&&f(d())},[]),C.useEffect(()=>{const x=o.get();if(x){y(x);return}if(i==="system"){y("system");return}y(s)},[o,s,i,y]);const v=C.useCallback(()=>{y(b==="dark"?"light":"dark")},[b,y]);C.useEffect(()=>{if(n)return p(y)},[n,p,y]);const m=C.useMemo(()=>({colorMode:t??b,toggleColorMode:t?j_:v,setColorMode:t?j_:y,forced:t!==void 0}),[b,v,y,t]);return _.jsx(Rw.Provider,{value:m,children:r})}m4.displayName="ColorModeProvider";var s7=new Set(["dark","light","system"]);function u7(e){let t=e;return s7.has(t)||(t="light"),t}function l7(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,i=u7(t),a=r==="cookie",o=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${a?o:s}`.trim()}function c7(e={}){const{nonce:t}=e;return _.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:l7(e)}})}function g4(){const e=nd(),t=rd();return{...e,theme:t}}function f7(e,t,r){var n,i;if(t==null)return t;const a=o=>{var s,u;return(u=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:u[o]};return(i=(n=a(t))!=null?n:a(r))!=null?i:r}function d7(e,t,r){var n,i;if(t==null)return t;const a=o=>{var s,u;return(u=(s=e.__cssMap)==null?void 0:s[o])==null?void 0:u.value};return(i=(n=a(t))!=null?n:a(r))!=null?i:r}function v4(e,t,r){const n=rd();return y4(e,t,r)(n)}function y4(e,t,r){const n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return a=>{const o=i.filter(Boolean),s=n.map((u,l)=>{var c,f;if(e==="breakpoints")return f7(a,u,(c=o[l])!=null?c:u);const d=`${e}.${u}`;return d7(a,d,(f=o[l])!=null?f:u)});return Array.isArray(t)?s:s[0]}}var Ce=(...e)=>e.filter(Boolean).join(" ");function p7(){return!1}function $r(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var id=e=>{const{condition:t,message:r}=e;t&&p7()&&console.warn(r)};function Vn(e,...t){return h7(e)?e(...t):e}var h7=e=>typeof e=="function",ht=e=>e?"":void 0,Nv=e=>e?!0:void 0;function Re(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function b4(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var qh={exports:{}};qh.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,s="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",g="[object GeneratorFunction]",p="[object Map]",b="[object Number]",y="[object Null]",v="[object Object]",m="[object Proxy]",x="[object RegExp]",w="[object Set]",S="[object String]",A="[object Undefined]",k="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",P="[object Float32Array]",I="[object Float64Array]",O="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",U="[object Uint8Array]",F="[object Uint8ClampedArray]",j="[object Uint16Array]",$="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,K={};K[P]=K[I]=K[O]=K[N]=K[R]=K[U]=K[F]=K[j]=K[$]=!0,K[s]=K[u]=K[E]=K[c]=K[T]=K[f]=K[d]=K[h]=K[p]=K[b]=K[v]=K[x]=K[w]=K[S]=K[k]=!1;var Z=typeof zn=="object"&&zn&&zn.Object===Object&&zn,ue=typeof self=="object"&&self&&self.Object===Object&&self,fe=Z||ue||Function("return this")(),le=t&&!t.nodeType&&t,se=le&&!0&&e&&!e.nodeType&&e,W=se&&se.exports===le,ee=W&&Z.process,X=function(){try{var D=se&&se.require&&se.require("util").types;return D||ee&&ee.binding&&ee.binding("util")}catch{}}(),L=X&&X.isTypedArray;function ce(D,M,z){switch(z.length){case 0:return D.call(M);case 1:return D.call(M,z[0]);case 2:return D.call(M,z[0],z[1]);case 3:return D.call(M,z[0],z[1],z[2])}return D.apply(M,z)}function ve(D,M){for(var z=-1,te=Array(D);++z-1}function jR(D,M){var z=this.__data__,te=Bd(z,D);return te<0?(++this.size,z.push([D,M])):z[te][1]=M,this}_i.prototype.clear=MR,_i.prototype.delete=BR,_i.prototype.get=IR,_i.prototype.has=RR,_i.prototype.set=jR;function ps(D){var M=-1,z=D==null?0:D.length;for(this.clear();++M1?z[De-1]:void 0,rt=De>2?z[2]:void 0;for(Ue=D.length>3&&typeof Ue=="function"?(De--,Ue):void 0,rt&&dj(z[0],z[1],rt)&&(Ue=De<3?void 0:Ue,De=1),M=Object(M);++te-1&&D%1==0&&D0){if(++M>=i)return arguments[0]}else M=0;return D.apply(void 0,arguments)}}function xj(D){if(D!=null){try{return jr.call(D)}catch{}try{return D+""}catch{}}return""}function jd(D,M){return D===M||D!==D&&M!==M}var ov=lC(function(){return arguments}())?lC:function(D){return Sl(D)&&fr.call(D,"callee")&&!AR.call(D,"callee")},sv=Array.isArray;function uv(D){return D!=null&&hC(D.length)&&!lv(D)}function wj(D){return Sl(D)&&uv(D)}var pC=_R||kj;function lv(D){if(!fo(D))return!1;var M=Id(D);return M==h||M==g||M==l||M==m}function hC(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=o}function fo(D){var M=typeof D;return D!=null&&(M=="object"||M=="function")}function Sl(D){return D!=null&&typeof D=="object"}function Sj(D){if(!Sl(D)||Id(D)!=v)return!1;var M=aC(D);if(M===null)return!0;var z=fr.call(M,"constructor")&&M.constructor;return typeof z=="function"&&z instanceof z&&jr.call(z)==Od}var mC=L?ae(L):JR;function Aj(D){return sj(D,gC(D))}function gC(D){return uv(D)?KR(D,!0):ZR(D)}var Cj=uj(function(D,M,z,te){cC(D,M,z,te)});function _j(D){return function(){return D}}function vC(D){return D}function kj(){return!1}e.exports=Cj})(qh,qh.exports);var m7=qh.exports;const hn=Te(m7);var g7=e=>/!(important)?$/.test(e),N_=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,v7=(e,t)=>r=>{const n=String(t),i=g7(n),a=N_(n),o=e?`${e}.${a}`:a;let s=$r(r.__cssMap)&&o in r.__cssMap?r.__cssMap[o].varRef:t;return s=N_(s),i?`${s} !important`:s};function jw(e){const{scale:t,transform:r,compose:n}=e;return(a,o)=>{var s;const u=v7(t,a)(o);let l=(s=r==null?void 0:r(u,o))!=null?s:u;return n&&(l=n(l,o)),l}}var np=(...e)=>t=>e.reduce((r,n)=>n(r),t);function nn(e,t){return r=>{const n={property:r,scale:e};return n.transform=jw({scale:e,transform:t}),n}}var y7=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function b7(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:y7(t),transform:r?jw({scale:r,compose:n}):n}}var x4=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function x7(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...x4].join(" ")}function w7(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...x4].join(" ")}var S7={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},A7={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function C7(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var _7={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},f2={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},k7=new Set(Object.values(f2)),d2=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),E7=e=>e.trim();function D7(e,t){if(e==null||d2.has(e))return e;if(!(p2(e)||d2.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=i==null?void 0:i[1],o=i==null?void 0:i[2];if(!a||!o)return e;const s=a.includes("-gradient")?a:`${a}-gradient`,[u,...l]=o.split(",").map(E7).filter(Boolean);if((l==null?void 0:l.length)===0)return e;const c=u in f2?f2[u]:u;l.unshift(c);const f=l.map(d=>{if(k7.has(d))return d;const h=d.indexOf(" "),[g,p]=h!==-1?[d.substr(0,h),d.substr(h+1)]:[d],b=p2(p)?p:p&&p.split(" "),y=`colors.${g}`,v=y in t.__cssMap?t.__cssMap[y].varRef:g;return b?[v,...Array.isArray(b)?b:[b]].join(" "):v});return`${s}(${f.join(", ")})`}var p2=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),P7=(e,t)=>D7(e,t??{});function T7(e){return/^var\(--.+\)$/.test(e)}var O7=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Jn=e=>t=>`${e}(${t})`,Oe={filter(e){return e!=="auto"?e:S7},backdropFilter(e){return e!=="auto"?e:A7},ring(e){return C7(Oe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?x7():e==="auto-gpu"?w7():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=O7(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(T7(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:P7,blur:Jn("blur"),opacity:Jn("opacity"),brightness:Jn("brightness"),contrast:Jn("contrast"),dropShadow:Jn("drop-shadow"),grayscale:Jn("grayscale"),hueRotate:Jn("hue-rotate"),invert:Jn("invert"),saturate:Jn("saturate"),sepia:Jn("sepia"),bgImage(e){return e==null||p2(e)||d2.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=_7[e])!=null?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},B={borderWidths:nn("borderWidths"),borderStyles:nn("borderStyles"),colors:nn("colors"),borders:nn("borders"),gradients:nn("gradients",Oe.gradient),radii:nn("radii",Oe.px),space:nn("space",np(Oe.vh,Oe.px)),spaceT:nn("space",np(Oe.vh,Oe.px)),degreeT(e){return{property:e,transform:Oe.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:jw({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:nn("sizes",np(Oe.vh,Oe.px)),sizesT:nn("sizes",np(Oe.vh,Oe.fraction)),shadows:nn("shadows"),logical:b7,blur:nn("blur",Oe.blur)},Hp={background:B.colors("background"),backgroundColor:B.colors("backgroundColor"),backgroundImage:B.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Oe.bgClip},bgSize:B.prop("backgroundSize"),bgPosition:B.prop("backgroundPosition"),bg:B.colors("background"),bgColor:B.colors("backgroundColor"),bgPos:B.prop("backgroundPosition"),bgRepeat:B.prop("backgroundRepeat"),bgAttachment:B.prop("backgroundAttachment"),bgGradient:B.gradients("backgroundImage"),bgClip:{transform:Oe.bgClip}};Object.assign(Hp,{bgImage:Hp.backgroundImage,bgImg:Hp.backgroundImage});var Me={border:B.borders("border"),borderWidth:B.borderWidths("borderWidth"),borderStyle:B.borderStyles("borderStyle"),borderColor:B.colors("borderColor"),borderRadius:B.radii("borderRadius"),borderTop:B.borders("borderTop"),borderBlockStart:B.borders("borderBlockStart"),borderTopLeftRadius:B.radii("borderTopLeftRadius"),borderStartStartRadius:B.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:B.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:B.radii("borderTopRightRadius"),borderStartEndRadius:B.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:B.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:B.borders("borderRight"),borderInlineEnd:B.borders("borderInlineEnd"),borderBottom:B.borders("borderBottom"),borderBlockEnd:B.borders("borderBlockEnd"),borderBottomLeftRadius:B.radii("borderBottomLeftRadius"),borderBottomRightRadius:B.radii("borderBottomRightRadius"),borderLeft:B.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:B.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:B.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:B.borders(["borderLeft","borderRight"]),borderInline:B.borders("borderInline"),borderY:B.borders(["borderTop","borderBottom"]),borderBlock:B.borders("borderBlock"),borderTopWidth:B.borderWidths("borderTopWidth"),borderBlockStartWidth:B.borderWidths("borderBlockStartWidth"),borderTopColor:B.colors("borderTopColor"),borderBlockStartColor:B.colors("borderBlockStartColor"),borderTopStyle:B.borderStyles("borderTopStyle"),borderBlockStartStyle:B.borderStyles("borderBlockStartStyle"),borderBottomWidth:B.borderWidths("borderBottomWidth"),borderBlockEndWidth:B.borderWidths("borderBlockEndWidth"),borderBottomColor:B.colors("borderBottomColor"),borderBlockEndColor:B.colors("borderBlockEndColor"),borderBottomStyle:B.borderStyles("borderBottomStyle"),borderBlockEndStyle:B.borderStyles("borderBlockEndStyle"),borderLeftWidth:B.borderWidths("borderLeftWidth"),borderInlineStartWidth:B.borderWidths("borderInlineStartWidth"),borderLeftColor:B.colors("borderLeftColor"),borderInlineStartColor:B.colors("borderInlineStartColor"),borderLeftStyle:B.borderStyles("borderLeftStyle"),borderInlineStartStyle:B.borderStyles("borderInlineStartStyle"),borderRightWidth:B.borderWidths("borderRightWidth"),borderInlineEndWidth:B.borderWidths("borderInlineEndWidth"),borderRightColor:B.colors("borderRightColor"),borderInlineEndColor:B.colors("borderInlineEndColor"),borderRightStyle:B.borderStyles("borderRightStyle"),borderInlineEndStyle:B.borderStyles("borderInlineEndStyle"),borderTopRadius:B.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:B.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:B.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:B.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Me,{rounded:Me.borderRadius,roundedTop:Me.borderTopRadius,roundedTopLeft:Me.borderTopLeftRadius,roundedTopRight:Me.borderTopRightRadius,roundedTopStart:Me.borderStartStartRadius,roundedTopEnd:Me.borderStartEndRadius,roundedBottom:Me.borderBottomRadius,roundedBottomLeft:Me.borderBottomLeftRadius,roundedBottomRight:Me.borderBottomRightRadius,roundedBottomStart:Me.borderEndStartRadius,roundedBottomEnd:Me.borderEndEndRadius,roundedLeft:Me.borderLeftRadius,roundedRight:Me.borderRightRadius,roundedStart:Me.borderInlineStartRadius,roundedEnd:Me.borderInlineEndRadius,borderStart:Me.borderInlineStart,borderEnd:Me.borderInlineEnd,borderTopStartRadius:Me.borderStartStartRadius,borderTopEndRadius:Me.borderStartEndRadius,borderBottomStartRadius:Me.borderEndStartRadius,borderBottomEndRadius:Me.borderEndEndRadius,borderStartRadius:Me.borderInlineStartRadius,borderEndRadius:Me.borderInlineEndRadius,borderStartWidth:Me.borderInlineStartWidth,borderEndWidth:Me.borderInlineEndWidth,borderStartColor:Me.borderInlineStartColor,borderEndColor:Me.borderInlineEndColor,borderStartStyle:Me.borderInlineStartStyle,borderEndStyle:Me.borderInlineEndStyle});var $7={color:B.colors("color"),textColor:B.colors("color"),fill:B.colors("fill"),stroke:B.colors("stroke")},h2={boxShadow:B.shadows("boxShadow"),mixBlendMode:!0,blendMode:B.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:B.prop("backgroundBlendMode"),opacity:!0};Object.assign(h2,{shadow:h2.boxShadow});var M7={filter:{transform:Oe.filter},blur:B.blur("--chakra-blur"),brightness:B.propT("--chakra-brightness",Oe.brightness),contrast:B.propT("--chakra-contrast",Oe.contrast),hueRotate:B.degreeT("--chakra-hue-rotate"),invert:B.propT("--chakra-invert",Oe.invert),saturate:B.propT("--chakra-saturate",Oe.saturate),dropShadow:B.propT("--chakra-drop-shadow",Oe.dropShadow),backdropFilter:{transform:Oe.backdropFilter},backdropBlur:B.blur("--chakra-backdrop-blur"),backdropBrightness:B.propT("--chakra-backdrop-brightness",Oe.brightness),backdropContrast:B.propT("--chakra-backdrop-contrast",Oe.contrast),backdropHueRotate:B.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:B.propT("--chakra-backdrop-invert",Oe.invert),backdropSaturate:B.propT("--chakra-backdrop-saturate",Oe.saturate)},Uh={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Oe.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:B.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:B.space("gap"),rowGap:B.space("rowGap"),columnGap:B.space("columnGap")};Object.assign(Uh,{flexDir:Uh.flexDirection});var w4={gridGap:B.space("gridGap"),gridColumnGap:B.space("gridColumnGap"),gridRowGap:B.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},B7={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Oe.outline},outlineOffset:!0,outlineColor:B.colors("outlineColor")},ln={width:B.sizesT("width"),inlineSize:B.sizesT("inlineSize"),height:B.sizes("height"),blockSize:B.sizes("blockSize"),boxSize:B.sizes(["width","height"]),minWidth:B.sizes("minWidth"),minInlineSize:B.sizes("minInlineSize"),minHeight:B.sizes("minHeight"),minBlockSize:B.sizes("minBlockSize"),maxWidth:B.sizes("maxWidth"),maxInlineSize:B.sizes("maxInlineSize"),maxHeight:B.sizes("maxHeight"),maxBlockSize:B.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (min-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;return{[`@media screen and (max-width: ${(i=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:B.propT("float",Oe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ln,{w:ln.width,h:ln.height,minW:ln.minWidth,maxW:ln.maxWidth,minH:ln.minHeight,maxH:ln.maxHeight,overscroll:ln.overscrollBehavior,overscrollX:ln.overscrollBehaviorX,overscrollY:ln.overscrollBehaviorY});var I7={listStyleType:!0,listStylePosition:!0,listStylePos:B.prop("listStylePosition"),listStyleImage:!0,listStyleImg:B.prop("listStyleImage")};function R7(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,a,o)=>{if(typeof n>"u")return e(n,i,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(i))return s.get(i);const u=e(n,i,a,o);return s.set(i,u),u}},F7=j7(R7),N7={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},L7={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Lv=(e,t,r)=>{const n={},i=F7(e,t,{});for(const a in i)a in r&&r[a]!=null||(n[a]=i[a]);return n},z7={srOnly:{transform(e){return e===!0?N7:e==="focusable"?L7:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Lv(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Lv(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Lv(t,e,r)}},xc={position:!0,pos:B.prop("position"),zIndex:B.prop("zIndex","zIndices"),inset:B.spaceT("inset"),insetX:B.spaceT(["left","right"]),insetInline:B.spaceT("insetInline"),insetY:B.spaceT(["top","bottom"]),insetBlock:B.spaceT("insetBlock"),top:B.spaceT("top"),insetBlockStart:B.spaceT("insetBlockStart"),bottom:B.spaceT("bottom"),insetBlockEnd:B.spaceT("insetBlockEnd"),left:B.spaceT("left"),insetInlineStart:B.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:B.spaceT("right"),insetInlineEnd:B.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(xc,{insetStart:xc.insetInlineStart,insetEnd:xc.insetInlineEnd});var V7={ring:{transform:Oe.ring},ringColor:B.colors("--chakra-ring-color"),ringOffset:B.prop("--chakra-ring-offset-width"),ringOffsetColor:B.colors("--chakra-ring-offset-color"),ringInset:B.prop("--chakra-ring-inset")},Je={margin:B.spaceT("margin"),marginTop:B.spaceT("marginTop"),marginBlockStart:B.spaceT("marginBlockStart"),marginRight:B.spaceT("marginRight"),marginInlineEnd:B.spaceT("marginInlineEnd"),marginBottom:B.spaceT("marginBottom"),marginBlockEnd:B.spaceT("marginBlockEnd"),marginLeft:B.spaceT("marginLeft"),marginInlineStart:B.spaceT("marginInlineStart"),marginX:B.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:B.spaceT("marginInline"),marginY:B.spaceT(["marginTop","marginBottom"]),marginBlock:B.spaceT("marginBlock"),padding:B.space("padding"),paddingTop:B.space("paddingTop"),paddingBlockStart:B.space("paddingBlockStart"),paddingRight:B.space("paddingRight"),paddingBottom:B.space("paddingBottom"),paddingBlockEnd:B.space("paddingBlockEnd"),paddingLeft:B.space("paddingLeft"),paddingInlineStart:B.space("paddingInlineStart"),paddingInlineEnd:B.space("paddingInlineEnd"),paddingX:B.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:B.space("paddingInline"),paddingY:B.space(["paddingTop","paddingBottom"]),paddingBlock:B.space("paddingBlock")};Object.assign(Je,{m:Je.margin,mt:Je.marginTop,mr:Je.marginRight,me:Je.marginInlineEnd,marginEnd:Je.marginInlineEnd,mb:Je.marginBottom,ml:Je.marginLeft,ms:Je.marginInlineStart,marginStart:Je.marginInlineStart,mx:Je.marginX,my:Je.marginY,p:Je.padding,pt:Je.paddingTop,py:Je.paddingY,px:Je.paddingX,pb:Je.paddingBottom,pl:Je.paddingLeft,ps:Je.paddingInlineStart,paddingStart:Je.paddingInlineStart,pr:Je.paddingRight,pe:Je.paddingInlineEnd,paddingEnd:Je.paddingInlineEnd});var q7={textDecorationColor:B.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:B.shadows("textShadow")},U7={clipPath:!0,transform:B.propT("transform",Oe.transform),transformOrigin:!0,translateX:B.spaceT("--chakra-translate-x"),translateY:B.spaceT("--chakra-translate-y"),skewX:B.degreeT("--chakra-skew-x"),skewY:B.degreeT("--chakra-skew-y"),scaleX:B.prop("--chakra-scale-x"),scaleY:B.prop("--chakra-scale-y"),scale:B.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:B.degreeT("--chakra-rotate")},H7={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:B.prop("transitionDuration","transition.duration"),transitionProperty:B.prop("transitionProperty","transition.property"),transitionTimingFunction:B.prop("transitionTimingFunction","transition.easing")},W7={fontFamily:B.prop("fontFamily","fonts"),fontSize:B.prop("fontSize","fontSizes",Oe.px),fontWeight:B.prop("fontWeight","fontWeights"),lineHeight:B.prop("lineHeight","lineHeights"),letterSpacing:B.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},G7={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:B.spaceT("scrollMargin"),scrollMarginTop:B.spaceT("scrollMarginTop"),scrollMarginBottom:B.spaceT("scrollMarginBottom"),scrollMarginLeft:B.spaceT("scrollMarginLeft"),scrollMarginRight:B.spaceT("scrollMarginRight"),scrollMarginX:B.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:B.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:B.spaceT("scrollPadding"),scrollPaddingTop:B.spaceT("scrollPaddingTop"),scrollPaddingBottom:B.spaceT("scrollPaddingBottom"),scrollPaddingLeft:B.spaceT("scrollPaddingLeft"),scrollPaddingRight:B.spaceT("scrollPaddingRight"),scrollPaddingX:B.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:B.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function S4(e){return $r(e)&&e.reference?e.reference:String(e)}var Ug=(e,...t)=>t.map(S4).join(` ${e} `).replace(/calc/g,""),L_=(...e)=>`calc(${Ug("+",...e)})`,z_=(...e)=>`calc(${Ug("-",...e)})`,m2=(...e)=>`calc(${Ug("*",...e)})`,V_=(...e)=>`calc(${Ug("/",...e)})`,q_=e=>{const t=S4(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:m2(t,-1)},So=Object.assign(e=>({add:(...t)=>So(L_(e,...t)),subtract:(...t)=>So(z_(e,...t)),multiply:(...t)=>So(m2(e,...t)),divide:(...t)=>So(V_(e,...t)),negate:()=>So(q_(e)),toString:()=>e.toString()}),{add:L_,subtract:z_,multiply:m2,divide:V_,negate:q_});function K7(e,t="-"){return e.replace(/\s+/g,t)}function Y7(e){const t=K7(e.toString());return Q7(X7(t))}function X7(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Q7(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function J7(e,t=""){return[t,e].filter(Boolean).join("-")}function Z7(e,t){return`var(${e}${t?`, ${t}`:""})`}function ez(e,t=""){return Y7(`--${J7(e,t)}`)}function pe(e,t,r){const n=ez(e,r);return{variable:n,reference:Z7(n,t)}}function tz(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[i,a]=n;r[i]=pe(`${e}-${i}`,a);continue}r[n]=pe(`${e}-${n}`)}return r}function rz(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function nz(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function g2(e){if(e==null)return e;const{unitless:t}=nz(e);return t||typeof e=="number"?`${e}px`:e}var A4=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,Fw=e=>Object.fromEntries(Object.entries(e).sort(A4));function U_(e){const t=Fw(e);return Object.assign(Object.values(t),t)}function iz(e){const t=Object.keys(Fw(e));return new Set(t)}function H_(e){var t;if(!e)return e;e=(t=g2(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function tc(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${g2(e)})`),t&&r.push("and",`(max-width: ${g2(t)})`),r.join(" ")}function az(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=U_(e),n=Object.entries(e).sort(A4).map(([o,s],u,l)=>{var c;let[,f]=(c=l[u+1])!=null?c:[];return f=parseFloat(f)>0?H_(f):void 0,{_minW:H_(s),breakpoint:o,minW:s,maxW:f,maxWQuery:tc(null,f),minWQuery:tc(s),minMaxQuery:tc(s,f)}}),i=iz(e),a=Array.from(i.values());return{keys:i,normalized:r,isResponsive(o){const s=Object.keys(o);return s.length>0&&s.every(u=>i.has(u))},asObject:Fw(e),asArray:U_(e),details:n,get(o){return n.find(s=>s.breakpoint===o)},media:[null,...r.map(o=>tc(o)).slice(1)],toArrayValue(o){if(!$r(o))throw new Error("toArrayValue: value must be an object");const s=a.map(u=>{var l;return(l=o[u])!=null?l:null});for(;rz(s)===null;)s.pop();return s},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((s,u,l)=>{const c=a[l];return c!=null&&u!=null&&(s[c]=u),s},{})}}}var Vt={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},ca=e=>C4(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ki=e=>C4(t=>e(t,"~ &"),"[data-peer]",".peer"),C4=(e,...t)=>t.map(e).join(", "),Hg={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ca(Vt.hover),_peerHover:ki(Vt.hover),_groupFocus:ca(Vt.focus),_peerFocus:ki(Vt.focus),_groupFocusVisible:ca(Vt.focusVisible),_peerFocusVisible:ki(Vt.focusVisible),_groupActive:ca(Vt.active),_peerActive:ki(Vt.active),_groupDisabled:ca(Vt.disabled),_peerDisabled:ki(Vt.disabled),_groupInvalid:ca(Vt.invalid),_peerInvalid:ki(Vt.invalid),_groupChecked:ca(Vt.checked),_peerChecked:ki(Vt.checked),_groupFocusWithin:ca(Vt.focusWithin),_peerFocusWithin:ki(Vt.focusWithin),_peerPlaceholderShown:ki(Vt.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},_4=Object.keys(Hg);function W_(e,t){return pe(String(e).replace(/\./g,"-"),void 0,t)}function oz(e,t){let r={};const n={};for(const[i,a]of Object.entries(e)){const{isSemantic:o,value:s}=a,{variable:u,reference:l}=W_(i,t==null?void 0:t.cssVarPrefix);if(!o){if(i.startsWith("space")){const d=i.split("."),[h,...g]=d,p=`${h}.-${g.join(".")}`,b=So.negate(s),y=So.negate(l);n[p]={value:b,var:u,varRef:y}}r[u]=s,n[i]={value:s,var:u,varRef:l};continue}const c=d=>{const g=[String(i).split(".")[0],d].join(".");if(!e[g])return d;const{reference:b}=W_(g,t==null?void 0:t.cssVarPrefix);return b},f=$r(s)?s:{default:s};r=hn(r,Object.entries(f).reduce((d,[h,g])=>{var p,b;if(!g)return d;const y=c(`${g}`);if(h==="default")return d[u]=y,d;const v=(b=(p=Hg)==null?void 0:p[h])!=null?b:h;return d[v]={[u]:y},d},{})),n[i]={value:l,var:u,varRef:l}}return{cssVars:r,cssMap:n}}function sz(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function uz(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function lz(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function G_(e,t,r={}){const{stop:n,getKey:i}=r;function a(o,s=[]){var u;if(lz(o)||Array.isArray(o)){const l={};for(const[c,f]of Object.entries(o)){const d=(u=i==null?void 0:i(c))!=null?u:c,h=[...s,d];if(n!=null&&n(o,h))return t(o,s);l[d]=a(f,h)}return l}return t(o,s)}return a(e)}var cz=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function fz(e){return uz(e,cz)}function dz(e){return e.semanticTokens}function pz(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}var hz=e=>_4.includes(e)||e==="default";function mz({tokens:e,semanticTokens:t}){const r={};return G_(e,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!1,value:n})}),G_(t,(n,i)=>{n!=null&&(r[i.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(hz)}),r}function gz(e){var t;const r=pz(e),n=fz(r),i=dz(r),a=mz({tokens:n,semanticTokens:i}),o=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:u}=oz(a,{cssVarPrefix:o});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...u},__cssMap:s,__breakpoints:az(r.breakpoints)}),r}var Nw=hn({},Hp,Me,$7,Uh,ln,M7,V7,B7,w4,z7,xc,h2,Je,G7,W7,q7,U7,I7,H7),vz=Object.assign({},Je,ln,Uh,w4,xc),yz=Object.keys(vz),bz=[...Object.keys(Nw),..._4],xz={...Nw,...Hg},wz=e=>e in xz,Sz=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:i}=t.__breakpoints,a={};for(const o in e){let s=Vn(e[o],t);if(s==null)continue;if(s=$r(s)&&r(s)?n(s):s,!Array.isArray(s)){a[o]=s;continue}const u=s.slice(0,i.length).length;for(let l=0;le.startsWith("--")&&typeof t=="string"&&!Cz(t),kz=(e,t)=>{var r,n;if(t==null)return t;const i=u=>{var l,c;return(c=(l=e.__cssMap)==null?void 0:l[u])==null?void 0:c.varRef},a=u=>{var l;return(l=i(u))!=null?l:u},[o,s]=Az(t);return t=(n=(r=i(o))!=null?r:a(s))!=null?n:a(t),t};function Ez(e){const{configs:t={},pseudos:r={},theme:n}=e,i=(a,o=!1)=>{var s,u,l;const c=Vn(a,n),f=Sz(c)(n);let d={};for(let h in f){const g=f[h];let p=Vn(g,n);h in r&&(h=r[h]),_z(h,p)&&(p=kz(n,p));let b=t[h];if(b===!0&&(b={property:h}),$r(p)){d[h]=(s=d[h])!=null?s:{},d[h]=hn({},d[h],i(p,!0));continue}let y=(l=(u=b==null?void 0:b.transform)==null?void 0:u.call(b,p,n,c))!=null?l:p;y=b!=null&&b.processResult?i(y,!0):y;const v=Vn(b==null?void 0:b.property,n);if(!o&&(b!=null&&b.static)){const m=Vn(b.static,n);d=hn({},d,m)}if(v&&Array.isArray(v)){for(const m of v)d[m]=y;continue}if(v){v==="&"&&$r(y)?d=hn({},d,y):d[v]=y;continue}if($r(y)){d=hn({},d,y);continue}d[h]=y}return d};return i}var k4=e=>t=>Ez({theme:t,pseudos:Hg,configs:Nw})(e);function Xe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Dz(e,t){if(Array.isArray(e))return e;if($r(e))return t(e);if(e!=null)return[e]}function Pz(e,t){for(let r=t+1;r{hn(l,{[m]:d?v[m]:{[y]:v[m]}})});continue}if(!h){d?hn(l,v):l[y]=v;continue}l[y]=v}}return l}}function Oz(e){return t=>{var r;const{variant:n,size:i,theme:a}=t,o=Tz(a);return hn({},Vn((r=e.baseStyle)!=null?r:{},t),o(e,"sizes",i,t),o(e,"variants",n,t))}}function $z(e,t,r){var n,i,a;return(a=(i=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:i.varRef)!=null?a:r}function lr(e){return sz(e,["styleConfig","size","variant","colorScheme"])}var Mz=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Bz(e){return $r(e)?Mz.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Iz={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Rz={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},jz={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Fz={property:Iz,easing:Rz,duration:jz},Nz=Fz,Lz={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},zz=Lz,Vz={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},qz=Vz,Uz={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Hz=Uz,Wz={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Gz=Wz,Kz={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Yz=Kz,Xz={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Qz=Xz,Jz={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Zz=Jz,eV={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},E4=eV,D4={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},tV={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},rV={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},nV={...D4,...tV,container:rV},P4=nV,iV={breakpoints:Hz,zIndices:zz,radii:Yz,blur:Zz,colors:Gz,...E4,sizes:P4,shadows:Qz,space:D4,borders:qz,transition:Nz},{defineMultiStyleConfig:aV,definePartsStyle:rc}=Xe(["stepper","step","title","description","indicator","separator","icon","number"]),Oi=pe("stepper-indicator-size"),zs=pe("stepper-icon-size"),Vs=pe("stepper-title-font-size"),nc=pe("stepper-description-font-size"),Ml=pe("stepper-accent-color"),oV=rc(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Ml.variable]:`colors.${e}.500`,_dark:{[Ml.variable]:`colors.${e}.200`}},title:{fontSize:Vs.reference,fontWeight:"medium"},description:{fontSize:nc.reference,color:"chakra-subtle-text"},number:{fontSize:Vs.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:zs.reference,height:zs.reference},indicator:{flexShrink:0,borderRadius:"full",width:Oi.reference,height:Oi.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ml.reference},"&[data-status=complete]":{bg:Ml.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ml.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Oi.reference} - 8px)`,top:`calc(${Oi.reference} + 4px)`,insetStart:`calc(${Oi.reference} / 2 - 1px)`}}})),sV=aV({baseStyle:oV,sizes:{xs:rc({stepper:{[Oi.variable]:"sizes.4",[zs.variable]:"sizes.3",[Vs.variable]:"fontSizes.xs",[nc.variable]:"fontSizes.xs"}}),sm:rc({stepper:{[Oi.variable]:"sizes.6",[zs.variable]:"sizes.4",[Vs.variable]:"fontSizes.sm",[nc.variable]:"fontSizes.xs"}}),md:rc({stepper:{[Oi.variable]:"sizes.8",[zs.variable]:"sizes.5",[Vs.variable]:"fontSizes.md",[nc.variable]:"fontSizes.sm"}}),lg:rc({stepper:{[Oi.variable]:"sizes.10",[zs.variable]:"sizes.6",[Vs.variable]:"fontSizes.lg",[nc.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Fe(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...c){n();for(const f of c)t[f]=u(f);return Fe(e,t)}function a(...c){for(const f of c)f in t||(t[f]=u(f));return Fe(e,t)}function o(){return Object.fromEntries(Object.entries(t).map(([f,d])=>[f,d.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([f,d])=>[f,d.className]))}function u(c){const h=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>c}}return{parts:i,toPart:u,extend:a,selectors:o,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var uV=Fe("accordion").parts("root","container","button","panel").extend("icon"),lV=Fe("alert").parts("title","description","container").extend("icon","spinner"),cV=Fe("avatar").parts("label","badge","container").extend("excessLabel","group"),fV=Fe("breadcrumb").parts("link","item","container").extend("separator");Fe("button").parts();var dV=Fe("checkbox").parts("control","icon","container").extend("label");Fe("progress").parts("track","filledTrack").extend("label");var pV=Fe("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),hV=Fe("editable").parts("preview","input","textarea"),mV=Fe("form").parts("container","requiredIndicator","helperText"),gV=Fe("formError").parts("text","icon"),vV=Fe("input").parts("addon","field","element","group"),yV=Fe("list").parts("container","item","icon"),bV=Fe("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),xV=Fe("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),wV=Fe("numberinput").parts("root","field","stepperGroup","stepper");Fe("pininput").parts("field");var SV=Fe("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),AV=Fe("progress").parts("label","filledTrack","track"),CV=Fe("radio").parts("container","control","label"),_V=Fe("select").parts("field","icon"),kV=Fe("slider").parts("container","track","thumb","filledTrack","mark"),EV=Fe("stat").parts("container","label","helpText","number","icon"),DV=Fe("switch").parts("container","track","thumb"),PV=Fe("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),TV=Fe("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),OV=Fe("tag").parts("container","label","closeButton"),$V=Fe("card").parts("container","header","body","footer");function Po(e,t,r){return Math.min(Math.max(e,r),t)}class MV extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var ic=MV;function Lw(e){if(typeof e!="string")throw new ic(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=zV.test(e)?RV(e):e;const r=jV.exec(t);if(r){const o=Array.from(r).slice(1);return[...o.slice(0,3).map(s=>parseInt(af(s,2),16)),parseInt(af(o[3]||"f",2),16)/255]}const n=FV.exec(t);if(n){const o=Array.from(n).slice(1);return[...o.slice(0,3).map(s=>parseInt(s,16)),parseInt(o[3]||"ff",16)/255]}const i=NV.exec(t);if(i){const o=Array.from(i).slice(1);return[...o.slice(0,3).map(s=>parseInt(s,10)),parseFloat(o[3]||"1")]}const a=LV.exec(t);if(a){const[o,s,u,l]=Array.from(a).slice(1).map(parseFloat);if(Po(0,100,s)!==s)throw new ic(e);if(Po(0,100,u)!==u)throw new ic(e);return[...VV(o,s,u),Number.isNaN(l)?1:l]}throw new ic(e)}function BV(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const K_=e=>parseInt(e.replace(/_/g,""),36),IV="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=K_(t.substring(0,3)),n=K_(t.substring(3)).toString(16);let i="";for(let a=0;a<6-n.length;a++)i+="0";return e[r]=`${i}${n}`,e},{});function RV(e){const t=e.toLowerCase().trim(),r=IV[BV(t)];if(!r)throw new ic(e);return`#${r}`}const af=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),jV=new RegExp(`^#${af("([a-f0-9])",3)}([a-f0-9])?$`,"i"),FV=new RegExp(`^#${af("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),NV=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${af(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),LV=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,zV=/^[a-z]+$/i,Y_=e=>Math.round(e*255),VV=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(Y_);const i=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*(t/100),o=a*(1-Math.abs(i%2-1));let s=0,u=0,l=0;i>=0&&i<1?(s=a,u=o):i>=1&&i<2?(s=o,u=a):i>=2&&i<3?(u=a,l=o):i>=3&&i<4?(u=o,l=a):i>=4&&i<5?(s=o,l=a):i>=5&&i<6&&(s=a,l=o);const c=n-a/2,f=s+c,d=u+c,h=l+c;return[f,d,h].map(Y_)};function qV(e,t,r,n){return`rgba(${Po(0,255,e).toFixed()}, ${Po(0,255,t).toFixed()}, ${Po(0,255,r).toFixed()}, ${parseFloat(Po(0,1,n).toFixed(3))})`}function UV(e,t){const[r,n,i,a]=Lw(e);return qV(r,n,i,a-t)}function HV(e){const[t,r,n,i]=Lw(e);let a=o=>{const s=Po(0,255,o).toString(16);return s.length===1?`0${s}`:s};return`#${a(t)}${a(r)}${a(n)}${i<1?a(Math.round(i*255)):""}`}function WV(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,gr=(e,t,r)=>{const n=WV(e,`colors.${t}`,t);try{return HV(n),n}catch{return r??"#000000"}},KV=e=>{const[t,r,n]=Lw(e);return(t*299+r*587+n*114)/1e3},YV=e=>t=>{const r=gr(t,e);return KV(r)<128?"dark":"light"},XV=e=>t=>YV(e)(t)==="dark",Pu=(e,t)=>r=>{const n=gr(r,e);return UV(n,1-t)};function X_(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}var QV=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function JV(e){const t=QV();return!e||GV(e)?t:e.string&&e.colors?eq(e.string,e.colors):e.string&&!e.colors?ZV(e.string):e.colors&&!e.string?tq(e.colors):t}function ZV(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${i.toString(16)}`.substr(-2)}return r}function eq(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function zw(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function T4(e){return $r(e)&&e.reference?e.reference:String(e)}var Wg=(e,...t)=>t.map(T4).join(` ${e} `).replace(/calc/g,""),Q_=(...e)=>`calc(${Wg("+",...e)})`,J_=(...e)=>`calc(${Wg("-",...e)})`,v2=(...e)=>`calc(${Wg("*",...e)})`,Z_=(...e)=>`calc(${Wg("/",...e)})`,ek=e=>{const t=T4(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:v2(t,-1)},$i=Object.assign(e=>({add:(...t)=>$i(Q_(e,...t)),subtract:(...t)=>$i(J_(e,...t)),multiply:(...t)=>$i(v2(e,...t)),divide:(...t)=>$i(Z_(e,...t)),negate:()=>$i(ek(e)),toString:()=>e.toString()}),{add:Q_,subtract:J_,multiply:v2,divide:Z_,negate:ek});function rq(e){return!Number.isInteger(parseFloat(e.toString()))}function nq(e,t="-"){return e.replace(/\s+/g,t)}function O4(e){const t=nq(e.toString());return t.includes("\\.")?e:rq(e)?t.replace(".","\\."):e}function iq(e,t=""){return[t,O4(e)].filter(Boolean).join("-")}function aq(e,t){return`var(${O4(e)}${t?`, ${t}`:""})`}function oq(e,t=""){return`--${iq(e,t)}`}function $t(e,t){const r=oq(e,t==null?void 0:t.prefix);return{variable:r,reference:aq(r,sq(t==null?void 0:t.fallback))}}function sq(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:uq,definePartsStyle:Wp}=Xe(DV.keys),wc=$t("switch-track-width"),Ro=$t("switch-track-height"),zv=$t("switch-track-diff"),lq=$i.subtract(wc,Ro),y2=$t("switch-thumb-x"),Bl=$t("switch-bg"),cq=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[wc.reference],height:[Ro.reference],transitionProperty:"common",transitionDuration:"fast",[Bl.variable]:"colors.gray.300",_dark:{[Bl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Bl.variable]:`colors.${t}.500`,_dark:{[Bl.variable]:`colors.${t}.200`}},bg:Bl.reference}},fq={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ro.reference],height:[Ro.reference],_checked:{transform:`translateX(${y2.reference})`}},dq=Wp(e=>({container:{[zv.variable]:lq,[y2.variable]:zv.reference,_rtl:{[y2.variable]:$i(zv).negate().toString()}},track:cq(e),thumb:fq})),pq={sm:Wp({container:{[wc.variable]:"1.375rem",[Ro.variable]:"sizes.3"}}),md:Wp({container:{[wc.variable]:"1.875rem",[Ro.variable]:"sizes.4"}}),lg:Wp({container:{[wc.variable]:"2.875rem",[Ro.variable]:"sizes.6"}})},hq=uq({baseStyle:dq,sizes:pq,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:mq,definePartsStyle:su}=Xe(PV.keys),gq=su({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Hh={"&[data-is-numeric=true]":{textAlign:"end"}},vq=su(e=>{const{colorScheme:t}=e;return{th:{color:de("gray.600","gray.400")(e),borderBottom:"1px",borderColor:de(`${t}.100`,`${t}.700`)(e),...Hh},td:{borderBottom:"1px",borderColor:de(`${t}.100`,`${t}.700`)(e),...Hh},caption:{color:de("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),yq=su(e=>{const{colorScheme:t}=e;return{th:{color:de("gray.600","gray.400")(e),borderBottom:"1px",borderColor:de(`${t}.100`,`${t}.700`)(e),...Hh},td:{borderBottom:"1px",borderColor:de(`${t}.100`,`${t}.700`)(e),...Hh},caption:{color:de("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:de(`${t}.100`,`${t}.700`)(e)},td:{background:de(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),bq={simple:vq,striped:yq,unstyled:{}},xq={sm:su({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:su({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:su({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},wq=mq({baseStyle:gq,variants:bq,sizes:xq,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),kr=pe("tabs-color"),Fn=pe("tabs-bg"),ip=pe("tabs-border-color"),{defineMultiStyleConfig:Sq,definePartsStyle:hi}=Xe(TV.keys),Aq=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Cq=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},_q=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},kq={p:4},Eq=hi(e=>({root:Aq(e),tab:Cq(e),tablist:_q(e),tabpanel:kq})),Dq={sm:hi({tab:{py:1,px:4,fontSize:"sm"}}),md:hi({tab:{fontSize:"md",py:2,px:4}}),lg:hi({tab:{fontSize:"lg",py:3,px:4}})},Pq=hi(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",i=n?"borderStart":"borderBottom",a=n?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[kr.variable]:`colors.${t}.600`,_dark:{[kr.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Fn.variable]:"colors.gray.200",_dark:{[Fn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:kr.reference,bg:Fn.reference}}}),Tq=hi(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ip.variable]:"transparent",_selected:{[kr.variable]:`colors.${t}.600`,[ip.variable]:"colors.white",_dark:{[kr.variable]:`colors.${t}.300`,[ip.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ip.reference},color:kr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Oq=hi(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Fn.variable]:"colors.gray.50",_dark:{[Fn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Fn.variable]:"colors.white",[kr.variable]:`colors.${t}.600`,_dark:{[Fn.variable]:"colors.gray.800",[kr.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:kr.reference,bg:Fn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),$q=hi(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:gr(r,`${t}.700`),bg:gr(r,`${t}.100`)}}}}),Mq=hi(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[kr.variable]:"colors.gray.600",_dark:{[kr.variable]:"inherit"},_selected:{[kr.variable]:"colors.white",[Fn.variable]:`colors.${t}.600`,_dark:{[kr.variable]:"colors.gray.800",[Fn.variable]:`colors.${t}.300`}},color:kr.reference,bg:Fn.reference}}}),Bq=hi({}),Iq={line:Pq,enclosed:Tq,"enclosed-colored":Oq,"soft-rounded":$q,"solid-rounded":Mq,unstyled:Bq},Rq=Sq({baseStyle:Eq,sizes:Dq,variants:Iq,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),yt=tz("badge",["bg","color","shadow"]),jq={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:yt.bg.reference,color:yt.color.reference,boxShadow:yt.shadow.reference},Fq=e=>{const{colorScheme:t,theme:r}=e,n=Pu(`${t}.500`,.6)(r);return{[yt.bg.variable]:`colors.${t}.500`,[yt.color.variable]:"colors.white",_dark:{[yt.bg.variable]:n,[yt.color.variable]:"colors.whiteAlpha.800"}}},Nq=e=>{const{colorScheme:t,theme:r}=e,n=Pu(`${t}.200`,.16)(r);return{[yt.bg.variable]:`colors.${t}.100`,[yt.color.variable]:`colors.${t}.800`,_dark:{[yt.bg.variable]:n,[yt.color.variable]:`colors.${t}.200`}}},Lq=e=>{const{colorScheme:t,theme:r}=e,n=Pu(`${t}.200`,.8)(r);return{[yt.color.variable]:`colors.${t}.500`,_dark:{[yt.color.variable]:n},[yt.shadow.variable]:`inset 0 0 0px 1px ${yt.color.reference}`}},zq={solid:Fq,subtle:Nq,outline:Lq},Sc={baseStyle:jq,variants:zq,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Vq,definePartsStyle:jo}=Xe(OV.keys),tk=pe("tag-bg"),rk=pe("tag-color"),Vv=pe("tag-shadow"),Gp=pe("tag-min-height"),Kp=pe("tag-min-width"),Yp=pe("tag-font-size"),Xp=pe("tag-padding-inline"),qq={fontWeight:"medium",lineHeight:1.2,outline:0,[rk.variable]:yt.color.reference,[tk.variable]:yt.bg.reference,[Vv.variable]:yt.shadow.reference,color:rk.reference,bg:tk.reference,boxShadow:Vv.reference,borderRadius:"md",minH:Gp.reference,minW:Kp.reference,fontSize:Yp.reference,px:Xp.reference,_focusVisible:{[Vv.variable]:"shadows.outline"}},Uq={lineHeight:1.2,overflow:"visible"},Hq={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},Wq=jo({container:qq,label:Uq,closeButton:Hq}),Gq={sm:jo({container:{[Gp.variable]:"sizes.5",[Kp.variable]:"sizes.5",[Yp.variable]:"fontSizes.xs",[Xp.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:jo({container:{[Gp.variable]:"sizes.6",[Kp.variable]:"sizes.6",[Yp.variable]:"fontSizes.sm",[Xp.variable]:"space.2"}}),lg:jo({container:{[Gp.variable]:"sizes.8",[Kp.variable]:"sizes.8",[Yp.variable]:"fontSizes.md",[Xp.variable]:"space.3"}})},Kq={subtle:jo(e=>{var t;return{container:(t=Sc.variants)==null?void 0:t.subtle(e)}}),solid:jo(e=>{var t;return{container:(t=Sc.variants)==null?void 0:t.solid(e)}}),outline:jo(e=>{var t;return{container:(t=Sc.variants)==null?void 0:t.outline(e)}})},Yq=Vq({variants:Kq,baseStyle:Wq,sizes:Gq,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Ri,defineMultiStyleConfig:Xq}=Xe(vV.keys),qs=pe("input-height"),Us=pe("input-font-size"),Hs=pe("input-padding"),Ws=pe("input-border-radius"),Qq=Ri({addon:{height:qs.reference,fontSize:Us.reference,px:Hs.reference,borderRadius:Ws.reference},field:{width:"100%",height:qs.reference,fontSize:Us.reference,px:Hs.reference,borderRadius:Ws.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),fa={lg:{[Us.variable]:"fontSizes.lg",[Hs.variable]:"space.4",[Ws.variable]:"radii.md",[qs.variable]:"sizes.12"},md:{[Us.variable]:"fontSizes.md",[Hs.variable]:"space.4",[Ws.variable]:"radii.md",[qs.variable]:"sizes.10"},sm:{[Us.variable]:"fontSizes.sm",[Hs.variable]:"space.3",[Ws.variable]:"radii.sm",[qs.variable]:"sizes.8"},xs:{[Us.variable]:"fontSizes.xs",[Hs.variable]:"space.2",[Ws.variable]:"radii.sm",[qs.variable]:"sizes.6"}},Jq={lg:Ri({field:fa.lg,group:fa.lg}),md:Ri({field:fa.md,group:fa.md}),sm:Ri({field:fa.sm,group:fa.sm}),xs:Ri({field:fa.xs,group:fa.xs})};function Vw(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||de("blue.500","blue.300")(e),errorBorderColor:r||de("red.500","red.300")(e)}}var Zq=Ri(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Vw(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:de("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:gr(t,n),boxShadow:`0 0 0 1px ${gr(t,n)}`},_focusVisible:{zIndex:1,borderColor:gr(t,r),boxShadow:`0 0 0 1px ${gr(t,r)}`}},addon:{border:"1px solid",borderColor:de("inherit","whiteAlpha.50")(e),bg:de("gray.100","whiteAlpha.300")(e)}}}),eU=Ri(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Vw(e);return{field:{border:"2px solid",borderColor:"transparent",bg:de("gray.100","whiteAlpha.50")(e),_hover:{bg:de("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:gr(t,n)},_focusVisible:{bg:"transparent",borderColor:gr(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:de("gray.100","whiteAlpha.50")(e)}}}),tU=Ri(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=Vw(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:gr(t,n),boxShadow:`0px 1px 0px 0px ${gr(t,n)}`},_focusVisible:{borderColor:gr(t,r),boxShadow:`0px 1px 0px 0px ${gr(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),rU=Ri({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),nU={outline:Zq,filled:eU,flushed:tU,unstyled:rU},je=Xq({baseStyle:Qq,sizes:Jq,variants:nU,defaultProps:{size:"md",variant:"outline"}}),nk,iU={...(nk=je.baseStyle)==null?void 0:nk.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},ik,ak,aU={outline:e=>{var t,r;return(r=(t=je.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=je.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=je.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(ak=(ik=je.variants)==null?void 0:ik.unstyled.field)!=null?ak:{}},ok,sk,uk,lk,ck,fk,dk,pk,oU={xs:(sk=(ok=je.sizes)==null?void 0:ok.xs.field)!=null?sk:{},sm:(lk=(uk=je.sizes)==null?void 0:uk.sm.field)!=null?lk:{},md:(fk=(ck=je.sizes)==null?void 0:ck.md.field)!=null?fk:{},lg:(pk=(dk=je.sizes)==null?void 0:dk.lg.field)!=null?pk:{}},sU={baseStyle:iU,sizes:oU,variants:aU,defaultProps:{size:"md",variant:"outline"}},ap=$t("tooltip-bg"),qv=$t("tooltip-fg"),uU=$t("popper-arrow-bg"),lU={bg:ap.reference,color:qv.reference,[ap.variable]:"colors.gray.700",[qv.variable]:"colors.whiteAlpha.900",_dark:{[ap.variable]:"colors.gray.300",[qv.variable]:"colors.gray.900"},[uU.variable]:ap.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},cU={baseStyle:lU},{defineMultiStyleConfig:fU,definePartsStyle:ac}=Xe(AV.keys),dU=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,a=de(X_(),X_("1rem","rgba(0,0,0,0.1)"))(e),o=de(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( + to right, + transparent 0%, + ${gr(r,o)} 50%, + transparent 100% + )`;return{...!n&&i&&a,...n?{bgImage:s}:{bgColor:o}}},pU={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},hU=e=>({bg:de("gray.100","whiteAlpha.300")(e)}),mU=e=>({transitionProperty:"common",transitionDuration:"slow",...dU(e)}),gU=ac(e=>({label:pU,filledTrack:mU(e),track:hU(e)})),vU={xs:ac({track:{h:"1"}}),sm:ac({track:{h:"2"}}),md:ac({track:{h:"3"}}),lg:ac({track:{h:"4"}})},yU=fU({sizes:vU,baseStyle:gU,defaultProps:{size:"md",colorScheme:"blue"}}),bU=e=>typeof e=="function";function br(e,...t){return bU(e)?e(...t):e}var{definePartsStyle:Qp,defineMultiStyleConfig:xU}=Xe(dV.keys),Ac=pe("checkbox-size"),wU=e=>{const{colorScheme:t}=e;return{w:Ac.reference,h:Ac.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:de(`${t}.500`,`${t}.200`)(e),borderColor:de(`${t}.500`,`${t}.200`)(e),color:de("white","gray.900")(e),_hover:{bg:de(`${t}.600`,`${t}.300`)(e),borderColor:de(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:de("gray.200","transparent")(e),bg:de("gray.200","whiteAlpha.300")(e),color:de("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:de(`${t}.500`,`${t}.200`)(e),borderColor:de(`${t}.500`,`${t}.200`)(e),color:de("white","gray.900")(e)},_disabled:{bg:de("gray.100","whiteAlpha.100")(e),borderColor:de("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:de("red.500","red.300")(e)}}},SU={_disabled:{cursor:"not-allowed"}},AU={userSelect:"none",_disabled:{opacity:.4}},CU={transitionProperty:"transform",transitionDuration:"normal"},_U=Qp(e=>({icon:CU,container:SU,control:br(wU,e),label:AU})),kU={sm:Qp({control:{[Ac.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Qp({control:{[Ac.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Qp({control:{[Ac.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Wh=xU({baseStyle:_U,sizes:kU,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:EU,definePartsStyle:Jp}=Xe(CV.keys),DU=e=>{var t;const r=(t=br(Wh.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},PU=Jp(e=>{var t,r,n,i;return{label:(r=(t=Wh).baseStyle)==null?void 0:r.call(t,e).label,container:(i=(n=Wh).baseStyle)==null?void 0:i.call(n,e).container,control:DU(e)}}),TU={md:Jp({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Jp({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Jp({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},OU=EU({baseStyle:PU,sizes:TU,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$U,definePartsStyle:MU}=Xe(_V.keys),op=pe("select-bg"),hk,BU={...(hk=je.baseStyle)==null?void 0:hk.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:op.reference,[op.variable]:"colors.white",_dark:{[op.variable]:"colors.gray.700"},"> option, > optgroup":{bg:op.reference}},IU={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},RU=MU({field:BU,icon:IU}),sp={paddingInlineEnd:"8"},mk,gk,vk,yk,bk,xk,wk,Sk,jU={lg:{...(mk=je.sizes)==null?void 0:mk.lg,field:{...(gk=je.sizes)==null?void 0:gk.lg.field,...sp}},md:{...(vk=je.sizes)==null?void 0:vk.md,field:{...(yk=je.sizes)==null?void 0:yk.md.field,...sp}},sm:{...(bk=je.sizes)==null?void 0:bk.sm,field:{...(xk=je.sizes)==null?void 0:xk.sm.field,...sp}},xs:{...(wk=je.sizes)==null?void 0:wk.xs,field:{...(Sk=je.sizes)==null?void 0:Sk.xs.field,...sp},icon:{insetEnd:"1"}}},FU=$U({baseStyle:RU,sizes:jU,variants:je.variants,defaultProps:je.defaultProps}),Uv=pe("skeleton-start-color"),Hv=pe("skeleton-end-color"),NU={[Uv.variable]:"colors.gray.100",[Hv.variable]:"colors.gray.400",_dark:{[Uv.variable]:"colors.gray.800",[Hv.variable]:"colors.gray.600"},background:Uv.reference,borderColor:Hv.reference,opacity:.7,borderRadius:"sm"},LU={baseStyle:NU},Wv=pe("skip-link-bg"),zU={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Wv.variable]:"colors.white",_dark:{[Wv.variable]:"colors.gray.700"},bg:Wv.reference}},VU={baseStyle:zU},{defineMultiStyleConfig:qU,definePartsStyle:Gg}=Xe(kV.keys),of=pe("slider-thumb-size"),sf=pe("slider-track-size"),Sa=pe("slider-bg"),UU=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...zw({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},HU=e=>({...zw({orientation:e.orientation,horizontal:{h:sf.reference},vertical:{w:sf.reference}}),overflow:"hidden",borderRadius:"sm",[Sa.variable]:"colors.gray.200",_dark:{[Sa.variable]:"colors.whiteAlpha.200"},_disabled:{[Sa.variable]:"colors.gray.300",_dark:{[Sa.variable]:"colors.whiteAlpha.300"}},bg:Sa.reference}),WU=e=>{const{orientation:t}=e;return{...zw({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:of.reference,h:of.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},GU=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Sa.variable]:`colors.${t}.500`,_dark:{[Sa.variable]:`colors.${t}.200`},bg:Sa.reference}},KU=Gg(e=>({container:UU(e),track:HU(e),thumb:WU(e),filledTrack:GU(e)})),YU=Gg({container:{[of.variable]:"sizes.4",[sf.variable]:"sizes.1"}}),XU=Gg({container:{[of.variable]:"sizes.3.5",[sf.variable]:"sizes.1"}}),QU=Gg({container:{[of.variable]:"sizes.2.5",[sf.variable]:"sizes.0.5"}}),JU={lg:YU,md:XU,sm:QU},ZU=qU({baseStyle:KU,sizes:JU,defaultProps:{size:"md",colorScheme:"blue"}}),Ao=$t("spinner-size"),eH={width:[Ao.reference],height:[Ao.reference]},tH={xs:{[Ao.variable]:"sizes.3"},sm:{[Ao.variable]:"sizes.4"},md:{[Ao.variable]:"sizes.6"},lg:{[Ao.variable]:"sizes.8"},xl:{[Ao.variable]:"sizes.12"}},rH={baseStyle:eH,sizes:tH,defaultProps:{size:"md"}},{defineMultiStyleConfig:nH,definePartsStyle:$4}=Xe(EV.keys),iH={fontWeight:"medium"},aH={opacity:.8,marginBottom:"2"},oH={verticalAlign:"baseline",fontWeight:"semibold"},sH={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},uH=$4({container:{},label:iH,helpText:aH,number:oH,icon:sH}),lH={md:$4({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},cH=nH({baseStyle:uH,sizes:lH,defaultProps:{size:"md"}}),Gv=pe("kbd-bg"),fH={[Gv.variable]:"colors.gray.100",_dark:{[Gv.variable]:"colors.whiteAlpha.100"},bg:Gv.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},dH={baseStyle:fH},pH={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},hH={baseStyle:pH},{defineMultiStyleConfig:mH,definePartsStyle:gH}=Xe(yV.keys),vH={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},yH=gH({icon:vH}),bH=mH({baseStyle:yH}),{defineMultiStyleConfig:xH,definePartsStyle:wH}=Xe(bV.keys),ni=pe("menu-bg"),Kv=pe("menu-shadow"),SH={[ni.variable]:"#fff",[Kv.variable]:"shadows.sm",_dark:{[ni.variable]:"colors.gray.700",[Kv.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:ni.reference,boxShadow:Kv.reference},AH={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ni.variable]:"colors.gray.100",_dark:{[ni.variable]:"colors.whiteAlpha.100"}},_active:{[ni.variable]:"colors.gray.200",_dark:{[ni.variable]:"colors.whiteAlpha.200"}},_expanded:{[ni.variable]:"colors.gray.100",_dark:{[ni.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ni.reference},CH={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},_H={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},kH={opacity:.6},EH={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},DH={transitionProperty:"common",transitionDuration:"normal"},PH=wH({button:DH,list:SH,item:AH,groupTitle:CH,icon:_H,command:kH,divider:EH}),TH=xH({baseStyle:PH}),{defineMultiStyleConfig:OH,definePartsStyle:b2}=Xe(xV.keys),Yv=pe("modal-bg"),Xv=pe("modal-shadow"),$H={bg:"blackAlpha.600",zIndex:"modal"},MH=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},BH=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Yv.variable]:"colors.white",[Xv.variable]:"shadows.lg",_dark:{[Yv.variable]:"colors.gray.700",[Xv.variable]:"shadows.dark-lg"},bg:Yv.reference,boxShadow:Xv.reference}},IH={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},RH={position:"absolute",top:"2",insetEnd:"3"},jH=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},FH={px:"6",py:"4"},NH=b2(e=>({overlay:$H,dialogContainer:br(MH,e),dialog:br(BH,e),header:IH,closeButton:RH,body:br(jH,e),footer:FH}));function On(e){return b2(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var LH={xs:On("xs"),sm:On("sm"),md:On("md"),lg:On("lg"),xl:On("xl"),"2xl":On("2xl"),"3xl":On("3xl"),"4xl":On("4xl"),"5xl":On("5xl"),"6xl":On("6xl"),full:On("full")},zH=OH({baseStyle:NH,sizes:LH,defaultProps:{size:"md"}}),{defineMultiStyleConfig:VH,definePartsStyle:M4}=Xe(wV.keys),qw=$t("number-input-stepper-width"),B4=$t("number-input-input-padding"),qH=$i(qw).add("0.5rem").toString(),Qv=$t("number-input-bg"),Jv=$t("number-input-color"),Zv=$t("number-input-border-color"),UH={[qw.variable]:"sizes.6",[B4.variable]:qH},HH=e=>{var t,r;return(r=(t=br(je.baseStyle,e))==null?void 0:t.field)!=null?r:{}},WH={width:qw.reference},GH={borderStart:"1px solid",borderStartColor:Zv.reference,color:Jv.reference,bg:Qv.reference,[Jv.variable]:"colors.chakra-body-text",[Zv.variable]:"colors.chakra-border-color",_dark:{[Jv.variable]:"colors.whiteAlpha.800",[Zv.variable]:"colors.whiteAlpha.300"},_active:{[Qv.variable]:"colors.gray.200",_dark:{[Qv.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},KH=M4(e=>{var t;return{root:UH,field:(t=br(HH,e))!=null?t:{},stepperGroup:WH,stepper:GH}});function up(e){var t,r,n;const i=(t=je.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},o=(n=(r=i.field)==null?void 0:r.fontSize)!=null?n:"md",s=E4.fontSizes[o];return M4({field:{...i.field,paddingInlineEnd:B4.reference,verticalAlign:"top"},stepper:{fontSize:$i(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var YH={xs:up("xs"),sm:up("sm"),md:up("md"),lg:up("lg")},XH=VH({baseStyle:KH,sizes:YH,variants:je.variants,defaultProps:je.defaultProps}),Ak,QH={...(Ak=je.baseStyle)==null?void 0:Ak.field,textAlign:"center"},JH={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},Ck,_k,ZH={outline:e=>{var t,r,n;return(n=(r=br((t=je.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=br((t=je.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=br((t=je.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(_k=(Ck=je.variants)==null?void 0:Ck.unstyled.field)!=null?_k:{}},eW={baseStyle:QH,sizes:JH,variants:ZH,defaultProps:je.defaultProps},{defineMultiStyleConfig:tW,definePartsStyle:rW}=Xe(SV.keys),lp=$t("popper-bg"),nW=$t("popper-arrow-bg"),kk=$t("popper-arrow-shadow-color"),iW={zIndex:10},aW={[lp.variable]:"colors.white",bg:lp.reference,[nW.variable]:lp.reference,[kk.variable]:"colors.gray.200",_dark:{[lp.variable]:"colors.gray.700",[kk.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},oW={px:3,py:2,borderBottomWidth:"1px"},sW={px:3,py:2},uW={px:3,py:2,borderTopWidth:"1px"},lW={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},cW=rW({popper:iW,content:aW,header:oW,body:sW,footer:uW,closeButton:lW}),fW=tW({baseStyle:cW}),{definePartsStyle:x2,defineMultiStyleConfig:dW}=Xe(pV.keys),ey=pe("drawer-bg"),ty=pe("drawer-box-shadow");function gs(e){return x2(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var pW={bg:"blackAlpha.600",zIndex:"modal"},hW={display:"flex",zIndex:"modal",justifyContent:"center"},mW=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ey.variable]:"colors.white",[ty.variable]:"shadows.lg",_dark:{[ey.variable]:"colors.gray.700",[ty.variable]:"shadows.dark-lg"},bg:ey.reference,boxShadow:ty.reference}},gW={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},vW={position:"absolute",top:"2",insetEnd:"3"},yW={px:"6",py:"2",flex:"1",overflow:"auto"},bW={px:"6",py:"4"},xW=x2(e=>({overlay:pW,dialogContainer:hW,dialog:br(mW,e),header:gW,closeButton:vW,body:yW,footer:bW})),wW={xs:gs("xs"),sm:gs("md"),md:gs("lg"),lg:gs("2xl"),xl:gs("4xl"),full:gs("full")},SW=dW({baseStyle:xW,sizes:wW,defaultProps:{size:"xs"}}),{definePartsStyle:AW,defineMultiStyleConfig:CW}=Xe(hV.keys),_W={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},kW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},EW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},DW=AW({preview:_W,input:kW,textarea:EW}),PW=CW({baseStyle:DW}),{definePartsStyle:TW,defineMultiStyleConfig:OW}=Xe(mV.keys),uu=pe("form-control-color"),$W={marginStart:"1",[uu.variable]:"colors.red.500",_dark:{[uu.variable]:"colors.red.300"},color:uu.reference},MW={mt:"2",[uu.variable]:"colors.gray.600",_dark:{[uu.variable]:"colors.whiteAlpha.600"},color:uu.reference,lineHeight:"normal",fontSize:"sm"},BW=TW({container:{width:"100%",position:"relative"},requiredIndicator:$W,helperText:MW}),IW=OW({baseStyle:BW}),{definePartsStyle:RW,defineMultiStyleConfig:jW}=Xe(gV.keys),lu=pe("form-error-color"),FW={[lu.variable]:"colors.red.500",_dark:{[lu.variable]:"colors.red.300"},color:lu.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},NW={marginEnd:"0.5em",[lu.variable]:"colors.red.500",_dark:{[lu.variable]:"colors.red.300"},color:lu.reference},LW=RW({text:FW,icon:NW}),zW=jW({baseStyle:LW}),VW={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},qW={baseStyle:VW},UW={fontFamily:"heading",fontWeight:"bold"},HW={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},WW={baseStyle:UW,sizes:HW,defaultProps:{size:"xl"}},{defineMultiStyleConfig:GW,definePartsStyle:KW}=Xe(fV.keys),ry=pe("breadcrumb-link-decor"),YW={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ry.reference,[ry.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ry.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},XW=KW({link:YW}),QW=GW({baseStyle:XW}),JW={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},I4=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:de("gray.800","whiteAlpha.900")(e),_hover:{bg:de("gray.100","whiteAlpha.200")(e)},_active:{bg:de("gray.200","whiteAlpha.300")(e)}};const n=Pu(`${t}.200`,.12)(r),i=Pu(`${t}.200`,.24)(r);return{color:de(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:de(`${t}.50`,n)(e)},_active:{bg:de(`${t}.100`,i)(e)}}},ZW=e=>{const{colorScheme:t}=e,r=de("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...br(I4,e)}},eG={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},tG=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const u=de("gray.100","whiteAlpha.200")(e);return{bg:u,color:de("gray.800","whiteAlpha.900")(e),_hover:{bg:de("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:de("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:i="white",hoverBg:a=`${r}.600`,activeBg:o=`${r}.700`}=(t=eG[r])!=null?t:{},s=de(n,`${r}.200`)(e);return{bg:s,color:de(i,"gray.800")(e),_hover:{bg:de(a,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:de(o,`${r}.400`)(e)}}},rG=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:de(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:de(`${t}.700`,`${t}.500`)(e)}}},nG={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},iG={ghost:I4,outline:ZW,solid:tG,link:rG,unstyled:nG},aG={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},oG={baseStyle:JW,variants:iG,sizes:aG,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Fo,defineMultiStyleConfig:sG}=Xe($V.keys),Gh=pe("card-bg"),Vi=pe("card-padding"),R4=pe("card-shadow"),Zp=pe("card-radius"),j4=pe("card-border-width","0"),F4=pe("card-border-color"),uG=Fo({container:{[Gh.variable]:"colors.chakra-body-bg",backgroundColor:Gh.reference,boxShadow:R4.reference,borderRadius:Zp.reference,color:"chakra-body-text",borderWidth:j4.reference,borderColor:F4.reference},body:{padding:Vi.reference,flex:"1 1 0%"},header:{padding:Vi.reference},footer:{padding:Vi.reference}}),lG={sm:Fo({container:{[Zp.variable]:"radii.base",[Vi.variable]:"space.3"}}),md:Fo({container:{[Zp.variable]:"radii.md",[Vi.variable]:"space.5"}}),lg:Fo({container:{[Zp.variable]:"radii.xl",[Vi.variable]:"space.7"}})},cG={elevated:Fo({container:{[R4.variable]:"shadows.base",_dark:{[Gh.variable]:"colors.gray.700"}}}),outline:Fo({container:{[j4.variable]:"1px",[F4.variable]:"colors.chakra-border-color"}}),filled:Fo({container:{[Gh.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Vi.variable]:0},header:{[Vi.variable]:0},footer:{[Vi.variable]:0}}},fG=sG({baseStyle:uG,variants:cG,sizes:lG,defaultProps:{variant:"elevated",size:"md"}}),Cc=$t("close-button-size"),Il=$t("close-button-bg"),dG={w:[Cc.reference],h:[Cc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Il.variable]:"colors.blackAlpha.100",_dark:{[Il.variable]:"colors.whiteAlpha.100"}},_active:{[Il.variable]:"colors.blackAlpha.200",_dark:{[Il.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Il.reference},pG={lg:{[Cc.variable]:"sizes.10",fontSize:"md"},md:{[Cc.variable]:"sizes.8",fontSize:"xs"},sm:{[Cc.variable]:"sizes.6",fontSize:"2xs"}},hG={baseStyle:dG,sizes:pG,defaultProps:{size:"md"}},{variants:mG,defaultProps:gG}=Sc,vG={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:yt.bg.reference,color:yt.color.reference,boxShadow:yt.shadow.reference},yG={baseStyle:vG,variants:mG,defaultProps:gG},bG={w:"100%",mx:"auto",maxW:"prose",px:"4"},xG={baseStyle:bG},wG={opacity:.6,borderColor:"inherit"},SG={borderStyle:"solid"},AG={borderStyle:"dashed"},CG={solid:SG,dashed:AG},_G={baseStyle:wG,variants:CG,defaultProps:{variant:"solid"}},{definePartsStyle:kG,defineMultiStyleConfig:EG}=Xe(uV.keys),DG={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},PG={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},TG={pt:"2",px:"4",pb:"5"},OG={fontSize:"1.25em"},$G=kG({container:DG,button:PG,panel:TG,icon:OG}),MG=EG({baseStyle:$G}),{definePartsStyle:ad,defineMultiStyleConfig:BG}=Xe(lV.keys),Kr=pe("alert-fg"),Qi=pe("alert-bg"),IG=ad({container:{bg:Qi.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Kr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Kr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Uw(e){const{theme:t,colorScheme:r}=e,n=Pu(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var RG=ad(e=>{const{colorScheme:t}=e,r=Uw(e);return{container:{[Kr.variable]:`colors.${t}.500`,[Qi.variable]:r.light,_dark:{[Kr.variable]:`colors.${t}.200`,[Qi.variable]:r.dark}}}}),jG=ad(e=>{const{colorScheme:t}=e,r=Uw(e);return{container:{[Kr.variable]:`colors.${t}.500`,[Qi.variable]:r.light,_dark:{[Kr.variable]:`colors.${t}.200`,[Qi.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Kr.reference}}}),FG=ad(e=>{const{colorScheme:t}=e,r=Uw(e);return{container:{[Kr.variable]:`colors.${t}.500`,[Qi.variable]:r.light,_dark:{[Kr.variable]:`colors.${t}.200`,[Qi.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Kr.reference}}}),NG=ad(e=>{const{colorScheme:t}=e;return{container:{[Kr.variable]:"colors.white",[Qi.variable]:`colors.${t}.500`,_dark:{[Kr.variable]:"colors.gray.900",[Qi.variable]:`colors.${t}.200`},color:Kr.reference}}}),LG={subtle:RG,"left-accent":jG,"top-accent":FG,solid:NG},zG=BG({baseStyle:IG,variants:LG,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:N4,defineMultiStyleConfig:VG}=Xe(cV.keys),cu=pe("avatar-border-color"),_c=pe("avatar-bg"),uf=pe("avatar-font-size"),Tu=pe("avatar-size"),qG={borderRadius:"full",border:"0.2em solid",borderColor:cu.reference,[cu.variable]:"white",_dark:{[cu.variable]:"colors.gray.800"}},UG={bg:_c.reference,fontSize:uf.reference,width:Tu.reference,height:Tu.reference,lineHeight:"1",[_c.variable]:"colors.gray.200",_dark:{[_c.variable]:"colors.whiteAlpha.400"}},HG=e=>{const{name:t,theme:r}=e,n=t?JV({string:t}):"colors.gray.400",i=XV(n)(r);let a="white";return i||(a="gray.800"),{bg:_c.reference,fontSize:uf.reference,color:a,borderColor:cu.reference,verticalAlign:"top",width:Tu.reference,height:Tu.reference,"&:not([data-loaded])":{[_c.variable]:n},[cu.variable]:"colors.white",_dark:{[cu.variable]:"colors.gray.800"}}},WG={fontSize:uf.reference,lineHeight:"1"},GG=N4(e=>({badge:br(qG,e),excessLabel:br(UG,e),container:br(HG,e),label:WG}));function da(e){const t=e!=="100%"?P4[e]:void 0;return N4({container:{[Tu.variable]:t??e,[uf.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Tu.variable]:t??e,[uf.variable]:`calc(${t??e} / 2.5)`}})}var KG={"2xs":da(4),xs:da(6),sm:da(8),md:da(12),lg:da(16),xl:da(24),"2xl":da(32),full:da("100%")},YG=VG({baseStyle:GG,sizes:KG,defaultProps:{size:"md"}}),XG={Accordion:MG,Alert:zG,Avatar:YG,Badge:Sc,Breadcrumb:QW,Button:oG,Checkbox:Wh,CloseButton:hG,Code:yG,Container:xG,Divider:_G,Drawer:SW,Editable:PW,Form:IW,FormError:zW,FormLabel:qW,Heading:WW,Input:je,Kbd:dH,Link:hH,List:bH,Menu:TH,Modal:zH,NumberInput:XH,PinInput:eW,Popover:fW,Progress:yU,Radio:OU,Select:FU,Skeleton:LU,SkipLink:VU,Slider:ZU,Spinner:rH,Stat:cH,Switch:hq,Table:wq,Tabs:Rq,Tag:Yq,Textarea:sU,Tooltip:cU,Card:fG,Stepper:sV},QG={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},JG={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},ZG="ltr",eK={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},L4={semanticTokens:QG,direction:ZG,...iV,components:XG,styles:JG,config:eK};function oc(e){return typeof e=="function"}function tK(...e){return t=>e.reduce((r,n)=>n(r),t)}var rK=e=>function(...r){let n=[...r],i=r[r.length-1];return Bz(i)&&n.length>1?n=n.slice(0,n.length-1):i=e,tK(...n.map(a=>o=>oc(a)?a(o):iK(o,a)))(i)},nK=rK(L4);function iK(...e){return hn({},...e,z4)}function z4(e,t,r,n){if((oc(e)||oc(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...i)=>{const a=oc(e)?e(...i):e,o=oc(t)?t(...i):t;return hn({},a,o,z4)}}function aK(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function oK(e,t,r,n){const i=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,i,a,o)=>{if(typeof n>"u")return e(n,i,a);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(i))return s.get(i);const u=e(n,i,a,o);return s.set(i,u),u}},V4=sK(oK);function q4(e,t){const r={};return Object.keys(e).forEach(n=>{const i=e[n];t(i,n,e)&&(r[n]=i)}),r}var U4=e=>q4(e,t=>t!=null);function uK(e){return typeof e=="function"}function H4(e,...t){return uK(e)?e(...t):e}var lK=typeof Element<"u",cK=typeof Map=="function",fK=typeof Set=="function",dK=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function eh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!eh(e[n],t[n]))return!1;return!0}var a;if(cK&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!eh(n.value[1],t.get(n.value[0])))return!1;return!0}if(fK&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(dK&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(lK&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!eh(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var pK=function(t,r){try{return eh(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const hK=Te(pK);function W4(e,t={}){var r;const{styleConfig:n,...i}=t,{theme:a,colorMode:o}=g4(),s=e?V4(a,`components.${e}`):void 0,u=n||s,l=hn({theme:a,colorMode:o},(r=u==null?void 0:u.defaultProps)!=null?r:{},U4(aK(i,["children"]))),c=C.useRef({});if(u){const d=Oz(u)(l);hK(c.current,d)||(c.current=d)}return c.current}function Ai(e,t={}){return W4(e,t)}function as(e,t={}){return W4(e,t)}var mK=new Set([...bz,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),gK=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function vK(e){return gK.has(e)||!mK.has(e)}function yK(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(i in r&&delete r[i],r[i]=n[i]);return r}function bK(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var xK=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wK=Q$(function(e){return xK.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),SK=wK,AK=function(t){return t!=="theme"},Ek=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?SK:AK},Dk=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},CK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return i4(r,n,i),VL(function(){return a4(r,n,i)}),null},_K=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=Dk(t,r,n),u=s||Ek(i),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht=>{const{theme:r,css:n,__css:i,sx:a,...o}=t,s=q4(o,(f,d)=>wz(d)),u=H4(e,t),l=yK({},i,u,U4(s),a),c=k4(l)(t.theme);return n?[c,n]:c};function ny(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=vK);const i=DK({baseStyle:r}),a=EK(e,n)(i);return q.forwardRef(function(u,l){const{colorMode:c,forced:f}=nd();return q.createElement(a,{ref:l,"data-theme":f?c:void 0,...u})})}function PK(){const e=new Map;return new Proxy(ny,{apply(t,r,n){return ny(...n)},get(t,r){return e.has(r)||e.set(r,ny(r)),e.get(r)}})}var ne=PK();function ge(e){return C.forwardRef(e)}function TK(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,i=C.createContext(void 0);i.displayName=n;function a(){var o;const s=C.useContext(i);if(!s&&t){const u=new Error(r);throw u.name="ContextError",(o=Error.captureStackTrace)==null||o.call(Error,u,a),u}return s}return[i.Provider,a,i]}function OK(e){const{cssVarsRoot:t,theme:r,children:n}=e,i=C.useMemo(()=>gz(r),[r]);return _.jsxs(HL,{theme:i,children:[_.jsx($K,{root:t}),n]})}function $K({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return _.jsx(qg,{styles:r=>({[t]:r.__cssVars})})}TK({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function MK(){const{colorMode:e}=nd();return _.jsx(qg,{styles:t=>{const r=V4(t,"styles.global"),n=H4(r,{theme:t,colorMode:e});return n?k4(n)(t):void 0}})}var G4=C.createContext({getDocument(){return document},getWindow(){return window}});G4.displayName="EnvironmentContext";function K4(e){const{children:t,environment:r,disabled:n}=e,i=C.useRef(null),a=C.useMemo(()=>r||{getDocument:()=>{var s,u;return(u=(s=i.current)==null?void 0:s.ownerDocument)!=null?u:document},getWindow:()=>{var s,u;return(u=(s=i.current)==null?void 0:s.ownerDocument.defaultView)!=null?u:window}},[r]),o=!n||!r;return _.jsxs(G4.Provider,{value:a,children:[t,o&&_.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}K4.displayName="EnvironmentProvider";var BK=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:a=!0,theme:o={},environment:s,cssVarsRoot:u,disableEnvironment:l,disableGlobalStyle:c}=e,f=_.jsx(K4,{environment:s,disabled:l,children:t});return _.jsx(OK,{theme:o,cssVarsRoot:u,children:_.jsxs(m4,{colorModeManager:r,options:o.config,children:[a?_.jsx(KL,{scope:i}):_.jsx(GL,{}),!c&&_.jsx(MK,{}),n?_.jsx(p4,{zIndex:n,children:f}):f]})})},IK=(e,t)=>e.find(r=>r.id===t);function Tk(e,t){const r=Y4(e,t),n=r?e[r].findIndex(i=>i.id===t):-1;return{position:r,index:n}}function Y4(e,t){for(const[r,n]of Object.entries(e))if(IK(n,t))return r}function RK(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function jK(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:i,right:a,left:o}}function No(e,t=[]){const r=C.useRef(e);return C.useEffect(()=>{r.current=e}),C.useCallback((...n)=>{var i;return(i=r.current)==null?void 0:i.call(r,...n)},t)}function FK(e,t){const r=No(e);C.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Yh(e,t){const r=C.useRef(!1),n=C.useRef(!1);C.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),C.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const X4=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Kg=C.createContext({}),od=C.createContext(null),Yg=typeof document<"u",Hw=Yg?C.useLayoutEffect:C.useEffect,Q4=C.createContext({strict:!1});function NK(e,t,r,n){const{visualElement:i}=C.useContext(Kg),a=C.useContext(Q4),o=C.useContext(od),s=C.useContext(X4).reducedMotion,u=C.useRef();n=n||a.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:s}));const l=u.current;C.useInsertionEffect(()=>{l&&l.update(r,o)});const c=C.useRef(!!window.HandoffAppearAnimations);return Hw(()=>{l&&(l.render(),c.current&&l.animationState&&l.animationState.animateChanges())}),C.useEffect(()=>{l&&(l.updateFeatures(),!c.current&&l.animationState&&l.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),l}function Gs(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function LK(e,t,r){return C.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Gs(r)&&(r.current=n))},[t])}function lf(e){return typeof e=="string"||Array.isArray(e)}function Xg(e){return typeof e=="object"&&typeof e.start=="function"}const Ww=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gw=["initial",...Ww];function Qg(e){return Xg(e.animate)||Gw.some(t=>lf(e[t]))}function J4(e){return!!(Qg(e)||e.variants)}function zK(e,t){if(Qg(e)){const{initial:r,animate:n}=e;return{initial:r===!1||lf(r)?r:void 0,animate:lf(n)?n:void 0}}return e.inherit!==!1?t:{}}function VK(e){const{initial:t,animate:r}=zK(e,C.useContext(Kg));return C.useMemo(()=>({initial:t,animate:r}),[Ok(t),Ok(r)])}function Ok(e){return Array.isArray(e)?e.join(" "):e}const $k={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},cf={};for(const e in $k)cf[e]={isEnabled:t=>$k[e].some(r=>!!t[r])};function qK(e){for(const t in e)cf[t]={...cf[t],...e[t]}}const Kw=C.createContext({}),Z4=C.createContext({}),UK=Symbol.for("motionComponentSymbol");function HK({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&qK(e);function a(s,u){let l;const c={...C.useContext(X4),...s,layoutId:WK(s)},{isStatic:f}=c,d=VK(s),h=n(s,f);if(!f&&Yg){d.visualElement=NK(i,h,c,t);const g=C.useContext(Z4),p=C.useContext(Q4).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,p,e,g))}return C.createElement(Kg.Provider,{value:d},l&&d.visualElement?C.createElement(l,{visualElement:d.visualElement,...c}):null,r(i,s,LK(h,d.visualElement,u),h,f,d.visualElement))}const o=C.forwardRef(a);return o[UK]=i,o}function WK({layoutId:e}){const t=C.useContext(Kw).id;return t&&e!==void 0?t+"-"+e:e}function GK(e){function t(n,i={}){return HK(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const KK=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Yw(e){return typeof e!="string"||e.includes("-")?!1:!!(KK.indexOf(e)>-1||/[A-Z]/.test(e))}const Xh={};function YK(e){Object.assign(Xh,e)}const sd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],os=new Set(sd);function eM(e,{layout:t,layoutId:r}){return os.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Xh[e]||e==="opacity")}const Rr=e=>!!(e&&e.getVelocity),XK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QK=sd.length;function JK(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let a="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),rM=tM("--"),w2=tM("var(--"),ZK=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,eY=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ua=(e,t,r)=>Math.min(Math.max(r,e),t),ss={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},kc={...ss,transform:e=>Ua(0,1,e)},cp={...ss,default:1},Ec=e=>Math.round(e*1e5)/1e5,Jg=/(-)?([\d]*\.?[\d])+/g,nM=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tY=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ud(e){return typeof e=="string"}const ld=e=>({test:t=>ud(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pa=ld("deg"),mi=ld("%"),me=ld("px"),rY=ld("vh"),nY=ld("vw"),Mk={...mi,parse:e=>mi.parse(e)/100,transform:e=>mi.transform(e*100)},Bk={...ss,transform:Math.round},iM={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,size:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,rotate:pa,rotateX:pa,rotateY:pa,rotateZ:pa,scale:cp,scaleX:cp,scaleY:cp,scaleZ:cp,skew:pa,skewX:pa,skewY:pa,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:kc,originX:Mk,originY:Mk,originZ:me,zIndex:Bk,fillOpacity:kc,strokeOpacity:kc,numOctaves:Bk};function Xw(e,t,r,n){const{style:i,vars:a,transform:o,transformOrigin:s}=e;let u=!1,l=!1,c=!0;for(const f in t){const d=t[f];if(rM(f)){a[f]=d;continue}const h=iM[f],g=eY(d,h);if(os.has(f)){if(u=!0,o[f]=g,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(l=!0,s[f]=g):i[f]=g}if(t.transform||(u||n?i.transform=JK(e.transform,r,c,n):i.transform&&(i.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=s;i.transformOrigin=`${f} ${d} ${h}`}}const Qw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function aM(e,t,r){for(const n in t)!Rr(t[n])&&!eM(n,r)&&(e[n]=t[n])}function iY({transformTemplate:e},t,r){return C.useMemo(()=>{const n=Qw();return Xw(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function aY(e,t,r){const n=e.style||{},i={};return aM(i,n,e),Object.assign(i,iY(e,t,r)),e.transformValues?e.transformValues(i):i}function oY(e,t,r){const n={},i=aY(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const sY=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Qh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||sY.has(e)}let oM=e=>!Qh(e);function uY(e){e&&(oM=t=>t.startsWith("on")?!Qh(t):e(t))}try{uY(require("@emotion/is-prop-valid").default)}catch{}function lY(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(oM(i)||r===!0&&Qh(i)||!t&&!Qh(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Ik(e,t,r){return typeof e=="string"?e:me.transform(t+r*e)}function cY(e,t,r){const n=Ik(t,e.x,e.width),i=Ik(r,e.y,e.height);return`${n} ${i}`}const fY={offset:"stroke-dashoffset",array:"stroke-dasharray"},dY={offset:"strokeDashoffset",array:"strokeDasharray"};function pY(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?fY:dY;e[a.offset]=me.transform(-n);const o=me.transform(t),s=me.transform(r);e[a.array]=`${o} ${s}`}function Jw(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:a,pathLength:o,pathSpacing:s=1,pathOffset:u=0,...l},c,f,d){if(Xw(e,l,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:p}=e;h.transform&&(p&&(g.transform=h.transform),delete h.transform),p&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=cY(p,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),o!==void 0&&pY(h,o,s,u,!1)}const sM=()=>({...Qw(),attrs:{}}),Zw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function hY(e,t,r,n){const i=C.useMemo(()=>{const a=sM();return Jw(a,t,{enableHardwareAcceleration:!1},Zw(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};aM(a,e.style,e),i.style={...a,...i.style}}return i}function mY(e=!1){return(r,n,i,{latestValues:a},o)=>{const u=(Yw(r)?hY:oY)(n,a,o,r),c={...lY(n,typeof r=="string",e),...u,ref:i},{children:f}=n,d=C.useMemo(()=>Rr(f)?f.get():f,[f]);return C.createElement(r,{...c,children:d})}}const eS=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function uM(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const a in r)e.style.setProperty(a,r[a])}const lM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cM(e,t,r,n){uM(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(lM.has(i)?i:eS(i),t.attrs[i])}function tS(e,t){const{style:r}=e,n={};for(const i in r)(Rr(r[i])||t.style&&Rr(t.style[i])||eM(i,e))&&(n[i]=r[i]);return n}function fM(e,t){const r=tS(e,t);for(const n in e)if(Rr(e[n])||Rr(t[n])){const i=sd.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function rS(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function dM(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jh=e=>Array.isArray(e),gY=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),vY=e=>Jh(e)?e[e.length-1]||0:e;function th(e){const t=Rr(e)?e.get():e;return gY(t)?t.toValue():t}function yY({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,a){const o={latestValues:bY(n,i,a,e),renderState:t()};return r&&(o.mount=s=>r(n,s,o)),o}const pM=e=>(t,r)=>{const n=C.useContext(Kg),i=C.useContext(od),a=()=>yY(e,t,n,i);return r?a():dM(a)};function bY(e,t,r,n){const i={},a=n(e,{});for(const d in a)i[d]=th(a[d]);let{initial:o,animate:s}=e;const u=Qg(e),l=J4(e);t&&l&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||o===!1;const f=c?s:o;return f&&typeof f!="boolean"&&!Xg(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const g=rS(e,h);if(!g)return;const{transitionEnd:p,transition:b,...y}=g;for(const v in y){let m=y[v];if(Array.isArray(m)){const x=c?m.length-1:0;m=m[x]}m!==null&&(i[v]=m)}for(const v in p)i[v]=p[v]}),i}const gt=e=>e;class Rk{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function xY(e){let t=new Rk,r=new Rk,n=0,i=!1,a=!1;const o=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,d=f?t:r;return l&&o.add(u),d.add(u)&&f&&i&&(n=t.order.length),u},cancel:u=>{r.remove(u),o.delete(u)},process:u=>{if(i){a=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let l=0;l(f[d]=xY(()=>r=!0),f),{}),o=f=>a[f].process(i),s=()=>{const f=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(f-i.timestamp,wY),1),i.timestamp=f,i.isProcessing=!0,fp.forEach(o),i.isProcessing=!1,r&&t&&(n=!1,e(s))},u=()=>{r=!0,n=!0,i.isProcessing||e(s)};return{schedule:fp.reduce((f,d)=>{const h=a[d];return f[d]=(g,p=!1,b=!1)=>(r||u(),h.schedule(g,p,b)),f},{}),cancel:f=>fp.forEach(d=>a[d].cancel(f)),state:i,steps:a}}const{schedule:Ke,cancel:Ji,state:It,steps:iy}=SY(typeof requestAnimationFrame<"u"?requestAnimationFrame:gt,!0),AY={useVisualState:pM({scrapeMotionValuesFromProps:fM,createRenderState:sM,onMount:(e,t,{renderState:r,latestValues:n})=>{Ke.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ke.render(()=>{Jw(r,n,{enableHardwareAcceleration:!1},Zw(t.tagName),e.transformTemplate),cM(t,r)})}})},CY={useVisualState:pM({scrapeMotionValuesFromProps:tS,createRenderState:Qw})};function _Y(e,{forwardMotionProps:t=!1},r,n){return{...Yw(e)?AY:CY,preloadedFeatures:r,useRender:mY(t),createVisualElement:n,Component:e}}function ji(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const hM=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Zg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const kY=e=>t=>hM(t)&&e(t,Zg(t));function qi(e,t,r,n){return ji(e,t,kY(r),n)}const EY=(e,t)=>r=>t(e(r)),Ia=(...e)=>e.reduce(EY);function mM(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const jk=mM("dragHorizontal"),Fk=mM("dragVertical");function gM(e){let t=!1;if(e==="y")t=Fk();else if(e==="x")t=jk();else{const r=jk(),n=Fk();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function vM(){const e=gM(!0);return e?(e(),!1):!0}class Ja{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Nk(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||vM())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&Ke.update(()=>s[n](a,o))};return qi(e.current,r,i,{passive:!e.getProps()[n]})}class DY extends Ja{mount(){this.unmount=Ia(Nk(this.node,!0),Nk(this.node,!1))}unmount(){}}class PY extends Ja{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ia(ji(this.node.current,"focus",()=>this.onFocus()),ji(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yM=(e,t)=>t?e===t?!0:yM(e,t.parentElement):!1;function ay(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Zg(r))}class TY extends Ja{constructor(){super(...arguments),this.removeStartListeners=gt,this.removeEndListeners=gt,this.removeAccessibleListeners=gt,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),a=qi(window,"pointerup",(s,u)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:c}=this.node.getProps();Ke.update(()=>{yM(this.node.current,s.target)?l&&l(s,u):c&&c(s,u)})},{passive:!(n.onTap||n.onPointerUp)}),o=qi(window,"pointercancel",(s,u)=>this.cancelPress(s,u),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ia(a,o),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=s=>{s.key!=="Enter"||!this.checkPressEnd()||ay("up",(u,l)=>{const{onTap:c}=this.node.getProps();c&&Ke.update(()=>c(u,l))})};this.removeEndListeners(),this.removeEndListeners=ji(this.node.current,"keyup",o),ay("down",(s,u)=>{this.startPress(s,u)})},r=ji(this.node.current,"keydown",t),n=()=>{this.isPressing&&ay("cancel",(a,o)=>this.cancelPress(a,o))},i=ji(this.node.current,"blur",n);this.removeAccessibleListeners=Ia(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ke.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!vM()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ke.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=qi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=ji(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ia(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const S2=new WeakMap,oy=new WeakMap,OY=e=>{const t=S2.get(e.target);t&&t(e)},$Y=e=>{e.forEach(OY)};function MY({root:e,...t}){const r=e||document;oy.has(r)||oy.set(r,{});const n=oy.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver($Y,{root:e,...t})),n[i]}function BY(e,t,r){const n=MY(t);return S2.set(e,r),n.observe(e),()=>{S2.delete(e),n.unobserve(e)}}const IY={some:0,all:1};class RY extends Ja{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:IY[i]},s=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};return BY(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(jY(t,r))&&this.startObserver()}unmount(){}}function jY({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const FY={inView:{Feature:RY},tap:{Feature:TY},focus:{Feature:PY},hover:{Feature:DY}};function bM(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function LY(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function e0(e,t,r){const n=e.getProps();return rS(n,t,r!==void 0?r:n.custom,NY(e),LY(e))}const zY="framerAppearId",VY="data-"+eS(zY);let qY=gt,nS=gt;const Ra=e=>e*1e3,Ui=e=>e/1e3,UY={current:!1},xM=e=>Array.isArray(e)&&typeof e[0]=="number";function wM(e){return!!(!e||typeof e=="string"&&SM[e]||xM(e)||Array.isArray(e)&&e.every(wM))}const sc=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,SM={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sc([0,.65,.55,1]),circOut:sc([.55,0,1,.45]),backIn:sc([.31,.01,.66,-.59]),backOut:sc([.33,1.53,.69,.99])};function AM(e){if(e)return xM(e)?sc(e):Array.isArray(e)?e.map(AM):SM[e]}function HY(e,t,r,{delay:n=0,duration:i,repeat:a=0,repeatType:o="loop",ease:s,times:u}={}){const l={[t]:r};u&&(l.offset=u);const c=AM(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function WY(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const CM=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,GY=1e-7,KY=12;function YY(e,t,r,n,i){let a,o,s=0;do o=t+(r-t)/2,a=CM(o,n,i)-e,a>0?r=o:t=o;while(Math.abs(a)>GY&&++sYY(a,0,1,e,r);return a=>a===0||a===1?a:CM(i(a),t,n)}const XY=cd(.42,0,1,1),QY=cd(0,0,.58,1),_M=cd(.42,0,.58,1),JY=e=>Array.isArray(e)&&typeof e[0]!="number",kM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,EM=e=>t=>1-e(1-t),DM=e=>1-Math.sin(Math.acos(e)),iS=EM(DM),ZY=kM(iS),PM=cd(.33,1.53,.69,.99),aS=EM(PM),eX=kM(aS),tX=e=>(e*=2)<1?.5*aS(e):.5*(2-Math.pow(2,-10*(e-1))),rX={linear:gt,easeIn:XY,easeInOut:_M,easeOut:QY,circIn:DM,circInOut:ZY,circOut:iS,backIn:aS,backInOut:eX,backOut:PM,anticipate:tX},Lk=e=>{if(Array.isArray(e)){nS(e.length===4);const[t,r,n,i]=e;return cd(t,r,n,i)}else if(typeof e=="string")return rX[e];return e},oS=(e,t)=>r=>!!(ud(r)&&tY.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),TM=(e,t,r)=>n=>{if(!ud(n))return n;const[i,a,o,s]=n.match(Jg);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},nX=e=>Ua(0,255,e),sy={...ss,transform:e=>Math.round(nX(e))},To={test:oS("rgb","red"),parse:TM("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+sy.transform(e)+", "+sy.transform(t)+", "+sy.transform(r)+", "+Ec(kc.transform(n))+")"};function iX(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const A2={test:oS("#"),parse:iX,transform:To.transform},Ks={test:oS("hsl","hue"),parse:TM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+mi.transform(Ec(t))+", "+mi.transform(Ec(r))+", "+Ec(kc.transform(n))+")"},pr={test:e=>To.test(e)||A2.test(e)||Ks.test(e),parse:e=>To.test(e)?To.parse(e):Ks.test(e)?Ks.parse(e):A2.parse(e),transform:e=>ud(e)?e:e.hasOwnProperty("red")?To.transform(e):Ks.transform(e)},ut=(e,t,r)=>-r*e+r*t+e;function uy(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function aX({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,a=0,o=0;if(!t)i=a=o=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=uy(u,s,e+1/3),a=uy(u,s,e),o=uy(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}const ly=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},oX=[A2,To,Ks],sX=e=>oX.find(t=>t.test(e));function zk(e){const t=sX(e);let r=t.parse(e);return t===Ks&&(r=aX(r)),r}const OM=(e,t)=>{const r=zk(e),n=zk(t),i={...r};return a=>(i.red=ly(r.red,n.red,a),i.green=ly(r.green,n.green,a),i.blue=ly(r.blue,n.blue,a),i.alpha=ut(r.alpha,n.alpha,a),To.transform(i))};function uX(e){var t,r;return isNaN(e)&&ud(e)&&(((t=e.match(Jg))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(nM))===null||r===void 0?void 0:r.length)||0)>0}const $M={regex:ZK,countKey:"Vars",token:"${v}",parse:gt},MM={regex:nM,countKey:"Colors",token:"${c}",parse:pr.parse},BM={regex:Jg,countKey:"Numbers",token:"${n}",parse:ss.parse};function cy(e,{regex:t,countKey:r,token:n,parse:i}){const a=e.tokenised.match(t);a&&(e["num"+r]=a.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...a.map(i)))}function Zh(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&cy(r,$M),cy(r,MM),cy(r,BM),r}function IM(e){return Zh(e).values}function RM(e){const{values:t,numColors:r,numVars:n,tokenised:i}=Zh(e),a=t.length;return o=>{let s=i;for(let u=0;utypeof e=="number"?0:e;function cX(e){const t=IM(e);return RM(e)(t.map(lX))}const Ha={test:uX,parse:IM,createTransformer:RM,getAnimatableNone:cX},jM=(e,t)=>r=>`${r>0?t:e}`;function FM(e,t){return typeof e=="number"?r=>ut(e,t,r):pr.test(e)?OM(e,t):e.startsWith("var(")?jM(e,t):LM(e,t)}const NM=(e,t)=>{const r=[...e],n=r.length,i=e.map((a,o)=>FM(a,t[o]));return a=>{for(let o=0;o{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=FM(e[i],t[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}},LM=(e,t)=>{const r=Ha.createTransformer(t),n=Zh(e),i=Zh(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Ia(NM(n.values,i.values),r):jM(e,t)},ff=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Vk=(e,t)=>r=>ut(e,t,r);function dX(e){return typeof e=="number"?Vk:typeof e=="string"?pr.test(e)?OM:LM:Array.isArray(e)?NM:typeof e=="object"?fX:Vk}function pX(e,t,r){const n=[],i=r||dX(e[0]),a=e.length-1;for(let o=0;ot[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=pX(t,n,i),s=o.length,u=l=>{let c=0;if(s>1)for(;cu(Ua(e[0],e[a-1],l)):u}function hX(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=ff(0,t,n);e.push(ut(r,1,i))}}function mX(e){const t=[0];return hX(t,e.length-1),t}function gX(e,t){return e.map(r=>r*t)}function vX(e,t){return e.map(()=>t||_M).splice(0,e.length-1)}function em({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=JY(n)?n.map(Lk):Lk(n),a={done:!1,value:t[0]},o=gX(r&&r.length===t.length?r:mX(t),e),s=zM(o,t,{ease:Array.isArray(i)?i:vX(t,i)});return{calculatedDuration:e,next:u=>(a.value=s(u),a.done=u>=e,a)}}function VM(e,t){return t?e*(1e3/t):0}const yX=5;function qM(e,t,r){const n=Math.max(t-yX,0);return VM(r-e(n),t-n)}const fy=.001,bX=.01,qk=10,xX=.05,wX=1;function SX({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,a;qY(e<=Ra(qk));let o=1-t;o=Ua(xX,wX,o),e=Ua(bX,qk,Ui(e)),o<1?(i=l=>{const c=l*o,f=c*e,d=c-r,h=C2(l,o),g=Math.exp(-f);return fy-d/h*g},a=l=>{const f=l*o*e,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-f),p=C2(Math.pow(l,2),o);return(-i(l)+fy>0?-1:1)*((d-h)*g)/p}):(i=l=>{const c=Math.exp(-l*e),f=(l-r)*e+1;return-fy+c*f},a=l=>{const c=Math.exp(-l*e),f=(r-l)*(e*e);return c*f});const s=5/e,u=CX(i,a,s);if(e=Ra(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:e}}}const AX=12;function CX(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function EX(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Uk(e,kX)&&Uk(e,_X)){const r=SX(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function UM({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],a=e[e.length-1],o={done:!1,value:i},{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:d}=EX(n),h=c?-Ui(c):0,g=u/(2*Math.sqrt(s*l)),p=a-i,b=Ui(Math.sqrt(s/l)),y=Math.abs(p)<5;r||(r=y?.01:2),t||(t=y?.005:.5);let v;if(g<1){const m=C2(b,g);v=x=>{const w=Math.exp(-g*b*x);return a-w*((h+g*b*p)/m*Math.sin(m*x)+p*Math.cos(m*x))}}else if(g===1)v=m=>a-Math.exp(-b*m)*(p+(h+b*p)*m);else{const m=b*Math.sqrt(g*g-1);v=x=>{const w=Math.exp(-g*b*x),S=Math.min(m*x,300);return a-w*((h+g*b*p)*Math.sinh(S)+m*p*Math.cosh(S))/m}}return{calculatedDuration:d&&f||null,next:m=>{const x=v(m);if(d)o.done=m>=f;else{let w=h;m!==0&&(g<1?w=qM(v,m,x):w=0);const S=Math.abs(w)<=r,A=Math.abs(a-x)<=t;o.done=S&&A}return o.value=o.done?a:x,o}}}function Hk({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=k=>s!==void 0&&ku,g=k=>s===void 0?u:u===void 0||Math.abs(s-k)-p*Math.exp(-k/n),m=k=>y+v(k),x=k=>{const E=v(k),T=m(k);d.done=Math.abs(E)<=l,d.value=d.done?y:T};let w,S;const A=k=>{h(d.value)&&(w=k,S=UM({keyframes:[d.value,g(d.value)],velocity:qM(m,k,d.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return A(0),{calculatedDuration:null,next:k=>{let E=!1;return!S&&w===void 0&&(E=!0,x(k),A(k)),w!==void 0&&k>w?S.next(k-w):(!E&&x(k),d)}}}const DX=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ke.update(t,!0),stop:()=>Ji(t),now:()=>It.isProcessing?It.timestamp:performance.now()}},Wk=2e4;function Gk(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Wk?1/0:t}const PX={decay:Hk,inertia:Hk,tween:em,keyframes:em,spring:UM};function tm({autoplay:e=!0,delay:t=0,driver:r=DX,keyframes:n,type:i="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...d}){let h=1,g=!1,p,b;const y=()=>{b=new Promise(H=>{p=H})};y();let v;const m=PX[i]||em;let x;m!==em&&typeof n[0]!="number"&&(x=zM([0,100],n,{clamp:!1}),n=[0,100]);const w=m({...d,keyframes:n});let S;s==="mirror"&&(S=m({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let A="idle",k=null,E=null,T=null;w.calculatedDuration===null&&a&&(w.calculatedDuration=Gk(w));const{calculatedDuration:P}=w;let I=1/0,O=1/0;P!==null&&(I=P+o,O=I*(a+1)-o);let N=0;const R=H=>{if(E===null)return;h>0&&(E=Math.min(E,H)),h<0&&(E=Math.min(H-O/h,E)),k!==null?N=k:N=Math.round(H-E)*h;const Y=N-t*(h>=0?1:-1),K=h>=0?Y<0:Y>O;N=Math.max(Y,0),A==="finished"&&k===null&&(N=O);let Z=N,ue=w;if(a){const W=N/I;let ee=Math.floor(W),X=W%1;!X&&W>=1&&(X=1),X===1&&ee--,ee=Math.min(ee,a+1);const L=!!(ee%2);L&&(s==="reverse"?(X=1-X,o&&(X-=o/I)):s==="mirror"&&(ue=S));let ce=Ua(0,1,X);N>O&&(ce=s==="reverse"&&L?1:0),Z=ce*I}const fe=K?{done:!1,value:n[0]}:ue.next(Z);x&&(fe.value=x(fe.value));let{done:le}=fe;!K&&P!==null&&(le=h>=0?N>=O:N<=0);const se=k===null&&(A==="finished"||A==="running"&&le);return f&&f(fe.value),se&&j(),fe},U=()=>{v&&v.stop(),v=void 0},F=()=>{A="idle",U(),p(),y(),E=T=null},j=()=>{A="finished",c&&c(),U(),p()},$=()=>{if(g)return;v||(v=r(R));const H=v.now();u&&u(),k!==null?E=H-k:(!E||A==="finished")&&(E=H),A==="finished"&&y(),T=E,k=null,A="running",v.start()};e&&$();const V={then(H,Y){return b.then(H,Y)},get time(){return Ui(N)},set time(H){H=Ra(H),N=H,k!==null||!v||h===0?k=H:E=v.now()-H/h},get duration(){const H=w.calculatedDuration===null?Gk(w):w.calculatedDuration;return Ui(H)},get speed(){return h},set speed(H){H===h||!v||(h=H,V.time=Ui(N))},get state(){return A},play:$,pause:()=>{A="paused",k=N},stop:()=>{g=!0,A!=="idle"&&(A="idle",l&&l(),F())},cancel:()=>{T!==null&&R(T),F()},complete:()=>{A="finished"},sample:H=>(E=0,R(H))};return V}function TX(e){let t;return()=>(t===void 0&&(t=e()),t)}const OX=TX(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),$X=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),dp=10,MX=2e4,BX=(e,t)=>t.type==="spring"||e==="backgroundColor"||!wM(t.ease);function IX(e,t,{onUpdate:r,onComplete:n,...i}){if(!(OX()&&$X.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,s,u;const l=()=>{u=new Promise(v=>{s=v})};l();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(BX(t,i)){const v=tm({...i,repeat:0,delay:0});let m={done:!1,value:c[0]};const x=[];let w=0;for(;!m.done&&wg.cancel(),b=()=>{Ke.update(p),s(),l()};return g.onfinish=()=>{e.set(WY(c,i)),n&&n(),b()},{then(v,m){return u.then(v,m)},attachTimeline(v){return g.timeline=v,g.onfinish=null,gt},get time(){return Ui(g.currentTime||0)},set time(v){g.currentTime=Ra(v)},get speed(){return g.playbackRate},set speed(v){g.playbackRate=v},get duration(){return Ui(f)},play:()=>{o||(g.play(),Ji(p))},pause:()=>g.pause(),stop:()=>{if(o=!0,g.playState==="idle")return;const{currentTime:v}=g;if(v){const m=tm({...i,autoplay:!1});e.setWithVelocity(m.sample(v-dp).value,m.sample(v).value,dp)}b()},complete:()=>g.finish(),cancel:b}}function RX({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:gt,pause:gt,stop:gt,then:a=>(a(),Promise.resolve()),cancel:gt,complete:gt});return t?tm({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const jX={type:"spring",stiffness:500,damping:25,restSpeed:10},FX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),NX={type:"keyframes",duration:.8},LX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zX=(e,{keyframes:t})=>t.length>2?NX:os.has(e)?e.startsWith("scale")?FX(t[1]):jX:LX,_2=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ha.test(t)||t==="0")&&!t.startsWith("url(")),VX=new Set(["brightness","contrast","saturate","opacity"]);function qX(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Jg)||[];if(!n)return e;const i=r.replace(n,"");let a=VX.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}const UX=/([a-z-]*)\(.*?\)/g,k2={...Ha,getAnimatableNone:e=>{const t=e.match(UX);return t?t.map(qX).join(" "):e}},HX={...iM,color:pr,backgroundColor:pr,outlineColor:pr,fill:pr,stroke:pr,borderColor:pr,borderTopColor:pr,borderRightColor:pr,borderBottomColor:pr,borderLeftColor:pr,filter:k2,WebkitFilter:k2},sS=e=>HX[e];function HM(e,t){let r=sS(e);return r!==k2&&(r=Ha),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const WM=e=>/^0[^.\s]+$/.test(e);function WX(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||WM(e)}function GX(e,t,r,n){const i=_2(t,r);let a;Array.isArray(r)?a=[...r]:a=[null,r];const o=n.from!==void 0?n.from:e.get();let s;const u=[];for(let l=0;li=>{const a=GM(n,e)||{},o=a.delay||n.delay||0;let{elapsed:s=0}=n;s=s-Ra(o);const u=GX(t,e,r,a),l=u[0],c=u[u.length-1],f=_2(e,l),d=_2(e,c);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(KX(a)||(h={...h,...zX(e,h)}),h.duration&&(h.duration=Ra(h.duration)),h.repeatDelay&&(h.repeatDelay=Ra(h.repeatDelay)),!f||!d||UY.current||a.type===!1)return RX(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=IX(t,e,h);if(g)return g}return tm(h)};function rm(e){return!!(Rr(e)&&e.add)}const KM=e=>/^\-?\d*\.?\d+$/.test(e);function lS(e,t){e.indexOf(t)===-1&&e.push(t)}function cS(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class fS{constructor(){this.subscriptions=[]}add(t){return lS(this.subscriptions,t),()=>cS(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let a=0;a!isNaN(parseFloat(e));class XX{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:a,timestamp:o}=It;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,Ke.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ke.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=YX(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new fS);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?VM(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ou(e,t){return new XX(e,t)}const YM=e=>t=>t.test(e),QX={test:e=>e==="auto",parse:e=>e},XM=[ss,me,mi,pa,nY,rY,QX],Rl=e=>XM.find(YM(e)),JX=[...XM,pr,Ha],ZX=e=>JX.find(YM(e));function eQ(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ou(r))}function tQ(e,t){const r=e0(e,t);let{transitionEnd:n={},transition:i={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const o in a){const s=vY(a[o]);eQ(e,o,s)}}function rQ(e,t,r){var n,i;const a=Object.keys(t).filter(s=>!e.hasValue(s)),o=a.length;if(o)for(let s=0;su.remove(f))),l.push(p)}return o&&Promise.all(l).then(()=>{o&&tQ(e,o)}),l}function E2(e,t,r={}){const n=e0(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const a=n?()=>Promise.all(QM(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return oQ(e,t,l+u,c,f,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,l]=s==="beforeChildren"?[a,o]:[o,a];return u().then(()=>l())}else return Promise.all([a(),o(r.delay)])}function oQ(e,t,r=0,n=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>s-l*n;return Array.from(e.variantChildren).sort(sQ).forEach((l,c)=>{l.notify("AnimationStart",t),o.push(E2(l,t,{...a,delay:r+u(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function sQ(e,t){return e.sortNodePosition(t)}function uQ(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>E2(e,a,r));n=Promise.all(i)}else if(typeof t=="string")n=E2(e,t,r);else{const i=typeof t=="function"?e0(e,t,r.custom):t;n=Promise.all(QM(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const lQ=[...Ww].reverse(),cQ=Ww.length;function fQ(e){return t=>Promise.all(t.map(({animation:r,options:n})=>uQ(e,r,n)))}function dQ(e){let t=fQ(e);const r=hQ();let n=!0;const i=(u,l)=>{const c=e0(e,l);if(c){const{transition:f,transitionEnd:d,...h}=c;u={...u,...h,...d}}return u};function a(u){t=u(e)}function o(u,l){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let g={},p=1/0;for(let y=0;yp&&w;const T=Array.isArray(x)?x:[x];let P=T.reduce(i,{});S===!1&&(P={});const{prevResolvedValues:I={}}=m,O={...I,...P},N=R=>{E=!0,h.delete(R),m.needsAnimating[R]=!0};for(const R in O){const U=P[R],F=I[R];g.hasOwnProperty(R)||(U!==F?Jh(U)&&Jh(F)?!bM(U,F)||k?N(R):m.protectedKeys[R]=!0:U!==void 0?N(R):h.add(R):U!==void 0&&h.has(R)?N(R):m.protectedKeys[R]=!0)}m.prevProp=x,m.prevResolvedValues=P,m.isActive&&(g={...g,...P}),n&&e.blockInitialAnimation&&(E=!1),E&&!A&&d.push(...T.map(R=>({animation:R,options:{type:v,...u}})))}if(h.size){const y={};h.forEach(v=>{const m=e.getBaseTarget(v);m!==void 0&&(y[v]=m)}),d.push({animation:y})}let b=!!d.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(d):Promise.resolve()}function s(u,l,c){var f;if(r[u].isActive===l)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(u,l)}),r[u].isActive=l;const d=o(c,u);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>r}}function pQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!bM(t,e):!1}function po(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hQ(){return{animate:po(!0),whileInView:po(),whileHover:po(),whileTap:po(),whileDrag:po(),whileFocus:po(),exit:po()}}class mQ extends Ja{constructor(t){super(t),t.animationState||(t.animationState=dQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Xg(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let gQ=0;class vQ extends Ja{constructor(){super(...arguments),this.id=gQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&a.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const yQ={animation:{Feature:mQ},exit:{Feature:vQ}},Kk=(e,t)=>Math.abs(e-t);function bQ(e,t){const r=Kk(e.x,t.x),n=Kk(e.y,t.y);return Math.sqrt(r**2+n**2)}class JM{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=py(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=bQ(l.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=l,{timestamp:h}=It;this.history.push({...d,timestamp:h});const{onStart:g,onMove:p}=this.handlers;c||(g&&g(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,c)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=dy(c,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(l,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=py(l.type==="pointercancel"?this.lastMoveEventInfo:dy(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!hM(t))return;this.handlers=r,this.transformPagePoint=n;const i=Zg(t),a=dy(i,this.transformPagePoint),{point:o}=a,{timestamp:s}=It;this.history=[{...o,timestamp:s}];const{onSessionStart:u}=r;u&&u(t,py(a,this.history)),this.removeListeners=Ia(qi(window,"pointermove",this.handlePointerMove),qi(window,"pointerup",this.handlePointerUp),qi(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ji(this.updatePoint)}}function dy(e,t){return t?{point:t(e.point)}:e}function Yk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function py({point:e},t){return{point:e,delta:Yk(e,ZM(t)),offset:Yk(e,xQ(t)),velocity:wQ(t,.1)}}function xQ(e){return e[0]}function ZM(e){return e[e.length-1]}function wQ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=ZM(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Ra(t)));)r--;if(!n)return{x:0,y:0};const a=Ui(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Xr(e){return e.max-e.min}function D2(e,t=0,r=.01){return Math.abs(e-t)<=r}function Xk(e,t,r,n=.5){e.origin=n,e.originPoint=ut(t.min,t.max,e.origin),e.scale=Xr(r)/Xr(t),(D2(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ut(r.min,r.max,e.origin)-e.originPoint,(D2(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Dc(e,t,r,n){Xk(e.x,t.x,r.x,n?n.originX:void 0),Xk(e.y,t.y,r.y,n?n.originY:void 0)}function Qk(e,t,r){e.min=r.min+t.min,e.max=e.min+Xr(t)}function SQ(e,t,r){Qk(e.x,t.x,r.x),Qk(e.y,t.y,r.y)}function Jk(e,t,r){e.min=t.min-r.min,e.max=e.min+Xr(t)}function Pc(e,t,r){Jk(e.x,t.x,r.x),Jk(e.y,t.y,r.y)}function AQ(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?ut(r,e,n.max):Math.min(e,r)),e}function Zk(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function CQ(e,{top:t,left:r,bottom:n,right:i}){return{x:Zk(e.x,r,i),y:Zk(e.y,t,n)}}function eE(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=ff(t.min,t.max-n,e.min):n>i&&(r=ff(e.min,e.max-i,t.min)),Ua(0,1,r)}function EQ(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const P2=.35;function DQ(e=P2){return e===!1?e=0:e===!0&&(e=P2),{x:tE(e,"left","right"),y:tE(e,"top","bottom")}}function tE(e,t,r){return{min:rE(e,t),max:rE(e,r)}}function rE(e,t){return typeof e=="number"?e:e[t]||0}const nE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ys=()=>({x:nE(),y:nE()}),iE=()=>({min:0,max:0}),bt=()=>({x:iE(),y:iE()});function ri(e){return[e("x"),e("y")]}function e8({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function PQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function TQ(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function hy(e){return e===void 0||e===1}function T2({scale:e,scaleX:t,scaleY:r}){return!hy(e)||!hy(t)||!hy(r)}function go(e){return T2(e)||t8(e)||e.z||e.rotate||e.rotateX||e.rotateY}function t8(e){return aE(e.x)||aE(e.y)}function aE(e){return e&&e!=="0%"}function nm(e,t,r){const n=e-r,i=t*n;return r+i}function oE(e,t,r,n,i){return i!==void 0&&(e=nm(e,i,n)),nm(e,r,n)+t}function O2(e,t=0,r=1,n,i){e.min=oE(e.min,t,r,n,i),e.max=oE(e.max,t,r,n,i)}function r8(e,{x:t,y:r}){O2(e.x,t.translate,t.scale,t.originPoint),O2(e.y,r.translate,r.scale,r.originPoint)}function OQ(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function ya(e,t){e.min=e.min+t,e.max=e.max+t}function uE(e,t,[r,n,i]){const a=t[i]!==void 0?t[i]:.5,o=ut(e.min,e.max,a);O2(e,t[r],t[n],o,t.scale)}const $Q=["x","scaleX","originX"],MQ=["y","scaleY","originY"];function Xs(e,t){uE(e.x,t,$Q),uE(e.y,t,MQ)}function n8(e,t){return e8(TQ(e.getBoundingClientRect(),t))}function BQ(e,t,r){const n=n8(e,r),{scroll:i}=t;return i&&(ya(n.x,i.offset.x),ya(n.y,i.offset.y)),n}const IQ=new WeakMap;class RQ{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=u=>{this.stopAnimation(),r&&this.snapToCursor(Zg(u,"page").point)},a=(u,l)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=gM(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ri(g=>{let p=this.getAxisMotionValue(g).get()||0;if(mi.test(p)){const{projection:b}=this.visualElement;if(b&&b.layout){const y=b.layout.layoutBox[g];y&&(p=Xr(y)*(parseFloat(p)/100))}}this.originPoint[g]=p}),d&&Ke.update(()=>d(u,l),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=l;if(f&&this.currentDirection===null){this.currentDirection=jQ(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,g),this.updateAxis("y",l.point,g),this.visualElement.render(),h&&h(u,l)},s=(u,l)=>this.stop(u,l);this.panSession=new JM(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ke.update(()=>a(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!pp(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=AQ(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Gs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=CQ(n.layoutBox,t):this.constraints=!1,this.elastic=DQ(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ri(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=EQ(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Gs(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=BQ(n,i.root,this.visualElement.getTransformPagePoint());let o=_Q(i.layout.layoutBox,a);if(r){const s=r(PQ(o));this.hasMutatedConstraints=!!s,s&&(o=e8(s))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},l=ri(c=>{if(!pp(c,r,this.currentDirection))return;let f=u&&u[c]||{};o&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(l).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(uS(t,n,0,r))}stopAnimation(){ri(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ri(r=>{const{drag:n}=this.getProps();if(!pp(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[r];a.set(t[r]-ut(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Gs(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ri(o=>{const s=this.getAxisMotionValue(o);if(s){const u=s.get();i[o]=kQ({min:u,max:u},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ri(o=>{if(!pp(o,t,null))return;const s=this.getAxisMotionValue(o),{min:u,max:l}=this.constraints[o];s.set(ut(u,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;IQ.set(this.visualElement,this);const t=this.visualElement.current,r=qi(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),n=()=>{const{dragConstraints:u}=this.getProps();Gs(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=ji(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(ri(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=u[c].translate,f.set(f.get()+u[c].translate))}),this.visualElement.render())});return()=>{o(),r(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=P2,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function pp(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function jQ(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class FQ extends Ja{constructor(t){super(t),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new RQ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const lE=e=>(t,r)=>{e&&Ke.update(()=>e(t,r))};class NQ extends Ja{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(t){this.session=new JM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:lE(t),onStart:lE(r),onMove:n,onEnd:(a,o)=>{delete this.session,i&&Ke.update(()=>i(a,o))}}}mount(){this.removePointerDownListener=qi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function LQ(){const e=C.useContext(od);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=C.useId();return C.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}function zQ(){return VQ(C.useContext(od))}function VQ(e){return e===null?!0:e.isPresent}const rh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const jl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const r=cE(e,t.target.x),n=cE(e,t.target.y);return`${r}% ${n}%`}},qQ={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Ha.parse(e);if(i.length>5)return n;const a=Ha.createTransformer(e),o=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;i[0+o]/=s,i[1+o]/=u;const l=ut(s,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),a(i)}};class UQ extends q.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;YK(HQ),a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),rh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,o=n.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Ke.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i8(e){const[t,r]=LQ(),n=C.useContext(Kw);return q.createElement(UQ,{...e,layoutGroup:n,switchLayoutGroup:C.useContext(Z4),isPresent:t,safeToRemove:r})}const HQ={borderRadius:{...jl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jl,borderTopRightRadius:jl,borderBottomLeftRadius:jl,borderBottomRightRadius:jl,boxShadow:qQ},a8=["TopLeft","TopRight","BottomLeft","BottomRight"],WQ=a8.length,fE=e=>typeof e=="string"?parseFloat(e):e,dE=e=>typeof e=="number"||me.test(e);function GQ(e,t,r,n,i,a){i?(e.opacity=ut(0,r.opacity!==void 0?r.opacity:1,KQ(n)),e.opacityExit=ut(t.opacity!==void 0?t.opacity:1,0,YQ(n))):a&&(e.opacity=ut(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;ont?1:r(ff(e,t,n))}function hE(e,t){e.min=t.min,e.max=t.max}function an(e,t){hE(e.x,t.x),hE(e.y,t.y)}function mE(e,t,r,n,i){return e-=t,e=nm(e,1/r,n),i!==void 0&&(e=nm(e,1/i,n)),e}function XQ(e,t=0,r=1,n=.5,i,a=e,o=e){if(mi.test(t)&&(t=parseFloat(t),t=ut(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=ut(a.min,a.max,n);e===a&&(s-=t),e.min=mE(e.min,t,r,s,i),e.max=mE(e.max,t,r,s,i)}function gE(e,t,[r,n,i],a,o){XQ(e,t[r],t[n],t[i],t.scale,a,o)}const QQ=["x","scaleX","originX"],JQ=["y","scaleY","originY"];function vE(e,t,r,n){gE(e.x,t,QQ,r?r.x:void 0,n?n.x:void 0),gE(e.y,t,JQ,r?r.y:void 0,n?n.y:void 0)}function yE(e){return e.translate===0&&e.scale===1}function s8(e){return yE(e.x)&&yE(e.y)}function ZQ(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function u8(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function bE(e){return Xr(e.x)/Xr(e.y)}class eJ{constructor(){this.members=[]}add(t){lS(this.members,t),t.scheduleRender()}remove(t){if(cS(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xE(e,t,r){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(n=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:u,rotateX:l,rotateY:c}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),c&&(n+=`rotateY(${c}deg) `)}const o=e.x.scale*t.x,s=e.y.scale*t.y;return(o!==1||s!==1)&&(n+=`scale(${o}, ${s})`),n||"none"}const tJ=(e,t)=>e.depth-t.depth;class rJ{constructor(){this.children=[],this.isDirty=!1}add(t){lS(this.children,t),this.isDirty=!0}remove(t){cS(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tJ),this.isDirty=!1,this.children.forEach(t)}}function nJ(e,t){const r=performance.now(),n=({timestamp:i})=>{const a=i-r;a>=t&&(Ji(n),e(a-t))};return Ke.read(n,!0),()=>Ji(n)}function iJ(e){window.MotionDebug&&window.MotionDebug.record(e)}function aJ(e){return e instanceof SVGElement&&e.tagName!=="svg"}function oJ(e,t,r){const n=Rr(e)?e:Ou(e);return n.start(uS("",n,t,r)),n.animation}const wE=["","X","Y","Z"],SE=1e3;let sJ=0;const vo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function l8({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=sJ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{vo.totalNodes=vo.resolvedTargetDeltas=vo.recalculatedProjection=0,this.nodes.forEach(cJ),this.nodes.forEach(mJ),this.nodes.forEach(gJ),this.nodes.forEach(fJ),iJ(vo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=nJ(d,250),rh.hasAnimatedSinceResize&&(rh.hasAnimatedSinceResize=!1,this.nodes.forEach(CE))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&c&&(u||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||wJ,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=c.getProps(),v=!this.targetLayout||!u8(this.targetLayout,g)||h,m=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const x={...GM(p,"layout"),onPlay:b,onComplete:y};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||CE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ji(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vJ),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(dJ),this.sharedNodes.forEach(yJ)}scheduleUpdateProjection(){Ke.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const w=x/1e3;_E(f.x,o.x,w),_E(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bJ(this.relativeTarget,this.relativeTargetOrigin,d,w),m&&ZQ(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=bt()),an(m,this.relativeTarget)),p&&(this.animationValues=c,GQ(c,l,this.latestValues,w,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ji(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{rh.hasAnimatedSinceResize=!0,this.currentAnimation=oJ(0,SE,{...o,onUpdate:s=>{this.mixTargetDelta(s),o.onUpdate&&o.onUpdate(s)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(SE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:u,layout:l,latestValues:c}=o;if(!(!s||!u||!l)){if(this!==o&&this.layout&&l&&c8(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||bt();const f=Xr(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const d=Xr(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+d}an(s,u),Xs(s,c),Dc(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new eJ),this.sharedNodes.get(o).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:s}=this.options;return s?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:s}=this.options;return s?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:u}=o;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(s=!0),!s)return;const l={};for(let c=0;c{var s;return(s=o.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(AE),this.root.sharedNodes.clear()}}}function uJ(e){e.updateLayout()}function lJ(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:a}=e.options,o=r.source!==e.layout.source;a==="size"?ri(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Xr(d);d.min=n[f].min,d.max=d.min+h}):c8(a,r.layoutBox,n)&&ri(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Xr(n[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=Ys();Dc(s,n,r.layoutBox);const u=Ys();o?Dc(u,e.applyTransform(i,!0),r.measuredBox):Dc(u,n,r.layoutBox);const l=!s8(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=bt();Pc(g,r.layoutBox,d.layoutBox);const p=bt();Pc(p,n,h.layoutBox),u8(g,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:u,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function cJ(e){vo.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function fJ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dJ(e){e.clearSnapshot()}function AE(e){e.clearMeasurements()}function pJ(e){e.isLayoutDirty=!1}function hJ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function CE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mJ(e){e.resolveTargetDelta()}function gJ(e){e.calcProjection()}function vJ(e){e.resetRotation()}function yJ(e){e.removeLeadSnapshot()}function _E(e,t,r){e.translate=ut(t.translate,0,r),e.scale=ut(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function kE(e,t,r,n){e.min=ut(t.min,r.min,n),e.max=ut(t.max,r.max,n)}function bJ(e,t,r,n){kE(e.x,t.x,r.x,n),kE(e.y,t.y,r.y,n)}function xJ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wJ={duration:.45,ease:[.4,0,.1,1]},EE=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),DE=EE("applewebkit/")&&!EE("chrome/")?Math.round:gt;function PE(e){e.min=DE(e.min),e.max=DE(e.max)}function SJ(e){PE(e.x),PE(e.y)}function c8(e,t,r){return e==="position"||e==="preserve-aspect"&&!D2(bE(t),bE(r),.2)}const AJ=l8({attachResizeListener:(e,t)=>ji(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),my={current:void 0},f8=l8({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!my.current){const e=new AJ({});e.mount(window),e.setOptions({layoutScroll:!0}),my.current=e}return my.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),CJ={pan:{Feature:NQ},drag:{Feature:FQ,ProjectionNode:f8,MeasureLayout:i8}},_J=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function kJ(e){const t=_J.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function $2(e,t,r=1){const[n,i]=kJ(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const o=a.trim();return KM(o)?parseFloat(o):o}else return w2(i)?$2(i,t,r+1):i}function EJ(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const a=i.get();if(!w2(a))return;const o=$2(a,n);o&&i.set(o)});for(const i in t){const a=t[i];if(!w2(a))continue;const o=$2(a,n);o&&(t[i]=o,r||(r={}),r[i]===void 0&&(r[i]=a))}return{target:t,transitionEnd:r}}const DJ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),d8=e=>DJ.has(e),PJ=e=>Object.keys(e).some(d8),TE=e=>e===ss||e===me,OE=(e,t)=>parseFloat(e.split(", ")[t]),$E=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return OE(i[1],t);{const a=n.match(/^matrix\((.+)\)$/);return a?OE(a[1],e):0}},TJ=new Set(["x","y","z"]),OJ=sd.filter(e=>!TJ.has(e));function $J(e){const t=[];return OJ.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const $u={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:$E(4,13),y:$E(5,14)};$u.translateX=$u.x;$u.translateY=$u.y;const MJ=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,s={};o==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{s[l]=$u[l](n,a)}),t.render();const u=t.measureViewportBox();return r.forEach(l=>{const c=t.getValue(l);c&&c.jump(s[l]),e[l]=$u[l](u,a)}),e},BJ=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(d8);let a=[],o=!1;const s=[];if(i.forEach(u=>{const l=e.getValue(u);if(!e.hasValue(u))return;let c=r[u],f=Rl(c);const d=t[u];let h;if(Jh(d)){const g=d.length,p=d[0]===null?1:0;c=d[p],f=Rl(c);for(let b=p;b=0?window.pageYOffset:null,l=MJ(t,e,s);return a.length&&a.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Yg&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function IJ(e,t,r,n){return PJ(t)?BJ(e,t,r,n):{target:t,transitionEnd:n}}const RJ=(e,t,r,n)=>{const i=EJ(e,t,n);return t=i.target,n=i.transitionEnd,IJ(e,t,r,n)},M2={current:null},p8={current:!1};function jJ(){if(p8.current=!0,!!Yg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>M2.current=e.matches;e.addListener(t),t()}else M2.current=!1}function FJ(e,t,r){const{willChange:n}=t;for(const i in t){const a=t[i],o=r[i];if(Rr(a))e.addValue(i,a),rm(n)&&n.add(i);else if(Rr(o))e.addValue(i,Ou(a,{owner:e})),rm(n)&&n.remove(i);else if(o!==a)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,Ou(s!==void 0?s:a,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const ME=new WeakMap,h8=Object.keys(cf),NJ=h8.length,BE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],LJ=Gw.length;class zJ{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ke.render(this.render,!1,!0);const{latestValues:s,renderState:u}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Qg(r),this.isVariantNode=J4(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const d=c[f];s[f]!==void 0&&Rr(d)&&(d.set(s[f],!1),rm(l)&&l.add(f))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,ME.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),p8.current||jJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:M2.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ME.delete(this.current),this.projection&&this.projection.unmount(),Ji(this.notifyUpdate),Ji(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=os.has(t),i=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ke.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,a){let o,s;for(let u=0;uthis.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:a,layoutScroll:d,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Ou(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=rS(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Rr(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new fS),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class m8 extends zJ{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},a){let o=iQ(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),a){rQ(this,n,o);const s=RJ(this,n,o,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function VJ(e){return window.getComputedStyle(e)}class qJ extends m8{readValueFromInstance(t,r){if(os.has(r)){const n=sS(r);return n&&n.default||0}else{const n=VJ(t),i=(rM(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return n8(t,r)}build(t,r,n,i){Xw(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return tS(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rr(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){uM(t,r,n,i)}}class UJ extends m8{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(os.has(r)){const n=sS(r);return n&&n.default||0}return r=lM.has(r)?r:eS(r),t.getAttribute(r)}measureInstanceViewportBox(){return bt()}scrapeMotionValuesFromProps(t,r){return fM(t,r)}build(t,r,n,i){Jw(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){cM(t,r,n,i)}mount(t){this.isSVGTag=Zw(t.tagName),super.mount(t)}}const HJ=(e,t)=>Yw(e)?new UJ(t,{enableHardwareAcceleration:!1}):new qJ(t,{enableHardwareAcceleration:!0}),WJ={layout:{ProjectionNode:f8,MeasureLayout:i8}},GJ={...yQ,...FY,...CJ,...WJ},t0=GK((e,t)=>_Y(e,t,GJ,HJ));function g8(){const e=C.useRef(!1);return Hw(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function KJ(){const e=g8(),[t,r]=C.useState(0),n=C.useCallback(()=>{e.current&&r(t+1)},[t]);return[C.useCallback(()=>Ke.postRender(n),[n]),t]}class YJ extends C.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function XJ({children:e,isPresent:t}){const r=C.useId(),n=C.useRef(null),i=C.useRef({width:0,height:0,top:0,left:0});return C.useInsertionEffect(()=>{const{width:a,height:o,top:s,left:u}=i.current;if(t||!n.current||!a||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${a}px !important; + height: ${o}px !important; + top: ${s}px !important; + left: ${u}px !important; + } + `),()=>{document.head.removeChild(l)}},[t]),C.createElement(YJ,{isPresent:t,childRef:n,sizeRef:i},C.cloneElement(e,{ref:n}))}const gy=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o})=>{const s=dM(QJ),u=C.useId(),l=C.useMemo(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),a?void 0:[r]);return C.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[r]),C.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),o==="popLayout"&&(e=C.createElement(XJ,{isPresent:r},e)),C.createElement(od.Provider,{value:l},e)};function QJ(){return new Map}function JJ(e){return C.useEffect(()=>()=>e(),[])}const _s=e=>e.key||"";function ZJ(e,t){e.forEach(r=>{const n=_s(r);t.set(n,r)})}function eZ(e){const t=[];return C.Children.forEach(e,r=>{C.isValidElement(r)&&t.push(r)}),t}const dS=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const s=C.useContext(Kw).forceRender||KJ()[0],u=g8(),l=eZ(e);let c=l;const f=C.useRef(new Map).current,d=C.useRef(c),h=C.useRef(new Map).current,g=C.useRef(!0);if(Hw(()=>{g.current=!1,ZJ(l,h),d.current=c}),JJ(()=>{g.current=!0,h.clear(),f.clear()}),g.current)return C.createElement(C.Fragment,null,c.map(v=>C.createElement(gy,{key:_s(v),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:o},v)));c=[...c];const p=d.current.map(_s),b=l.map(_s),y=p.length;for(let v=0;v{if(b.indexOf(m)!==-1)return;const x=h.get(m);if(!x)return;const w=p.indexOf(m);let S=v;if(!S){const A=()=>{h.delete(m),f.delete(m);const k=d.current.findIndex(E=>E.key===m);if(d.current.splice(k,1),!f.size){if(d.current=l,u.current===!1)return;s(),n&&n()}};S=C.createElement(gy,{key:_s(x),isPresent:!1,onExitComplete:A,custom:t,presenceAffectsLayout:a,mode:o},x),f.set(m,S)}c.splice(w,0,S)}),c=c.map(v=>{const m=v.key;return f.has(m)?v:C.createElement(gy,{key:_s(v),isPresent:!0,presenceAffectsLayout:a,mode:o},v)}),C.createElement(C.Fragment,null,f.size?c:c.map(v=>C.cloneElement(v)))};var tZ={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},v8=C.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:i,requestClose:a=!1,position:o="bottom",duration:s=5e3,containerStyle:u,motionVariants:l=tZ,toastSpacing:c="0.5rem"}=e,[f,d]=C.useState(s),h=zQ();Yh(()=>{h||n==null||n()},[h]),Yh(()=>{d(s)},[s]);const g=()=>d(null),p=()=>d(s),b=()=>{h&&i()};C.useEffect(()=>{h&&a&&i()},[h,a,i]),FK(b,f);const y=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...u}),[u,c]),v=C.useMemo(()=>RK(o),[o]);return _.jsx(t0.div,{layout:!0,className:"chakra-toast",variants:l,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:p,custom:{position:o},style:v,children:_.jsx(ne.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:Vn(r,{id:t,onClose:b})})})});v8.displayName="ToastComponent";function rZ(e,t){var r;const n=e??"bottom",a={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(r=a==null?void 0:a[t])!=null?r:n}var IE={path:_.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),_.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),_.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},us=ge((e,t)=>{const{as:r,viewBox:n,color:i="currentColor",focusable:a=!1,children:o,className:s,__css:u,...l}=e,c=Ce("chakra-icon",s),f=Ai("Icon",e),d={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...u,...f},h={ref:t,focusable:a,className:c,__css:d},g=n??IE.viewBox;if(r&&typeof r!="string")return _.jsx(ne.svg,{as:r,...h,...l});const p=o??IE.path;return _.jsx(ne.svg,{verticalAlign:"middle",viewBox:g,...h,...l,children:p})});us.displayName="Icon";function nZ(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:i={}}=e,a=C.Children.toArray(e.path),o=ge((s,u)=>_.jsx(us,{ref:u,viewBox:t,...i,...s,children:a.length?a:_.jsx("path",{fill:"currentColor",d:r})}));return o.displayName=n,o}function iZ(e){return _.jsx(us,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function aZ(e){return _.jsx(us,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function RE(e){return _.jsx(us,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var oZ=c4({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),pS=ge((e,t)=>{const r=Ai("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:a="0.45s",emptyColor:o="transparent",className:s,...u}=lr(e),l=Ce("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:o,borderLeftColor:o,animation:`${oZ} ${a} linear infinite`,...r};return _.jsx(ne.div,{ref:t,__css:c,className:l,...u,children:n&&_.jsx(ne.span,{srOnly:!0,children:n})})});pS.displayName="Spinner";var[sZ,hS]=Ot({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[uZ,mS]=Ot({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),y8={info:{icon:aZ,colorScheme:"blue"},warning:{icon:RE,colorScheme:"orange"},success:{icon:iZ,colorScheme:"green"},error:{icon:RE,colorScheme:"red"},loading:{icon:pS,colorScheme:"blue"}};function lZ(e){return y8[e].colorScheme}function cZ(e){return y8[e].icon}var b8=ge(function(t,r){const n=mS(),{status:i}=hS(),a={display:"inline",...n.description};return _.jsx(ne.div,{ref:r,"data-status":i,...t,className:Ce("chakra-alert__desc",t.className),__css:a})});b8.displayName="AlertDescription";function gS(e){const{status:t}=hS(),r=cZ(t),n=mS(),i=t==="loading"?n.spinner:n.icon;return _.jsx(ne.span,{display:"inherit","data-status":t,...e,className:Ce("chakra-alert__icon",e.className),__css:i,children:e.children||_.jsx(r,{h:"100%",w:"100%"})})}gS.displayName="AlertIcon";var x8=ge(function(t,r){const n=mS(),{status:i}=hS();return _.jsx(ne.div,{ref:r,"data-status":i,...t,className:Ce("chakra-alert__title",t.className),__css:n.title})});x8.displayName="AlertTitle";var vS=ge(function(t,r){var n;const{status:i="info",addRole:a=!0,...o}=lr(t),s=(n=t.colorScheme)!=null?n:lZ(i),u=as("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return _.jsx(sZ,{value:{status:i},children:_.jsx(uZ,{value:u,children:_.jsx(ne.div,{"data-status":i,role:a?"alert":void 0,ref:r,...o,className:Ce("chakra-alert",t.className),__css:l})})})});vS.displayName="Alert";function fZ(e){return _.jsx(us,{focusable:"false","aria-hidden":!0,...e,children:_.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var w8=ge(function(t,r){const n=Ai("CloseButton",t),{children:i,isDisabled:a,__css:o,...s}=lr(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return _.jsx(ne.button,{type:"button","aria-label":"Close",ref:r,disabled:a,__css:{...u,...n,...o},...s,children:i||_.jsx(fZ,{width:"1em",height:"1em"})})});w8.displayName="CloseButton";var dZ={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},ui=pZ(dZ);function pZ(e){let t=e;const r=new Set,n=i=>{t=i(t),r.forEach(a=>a())};return{getState:()=>t,subscribe:i=>(r.add(i),()=>{n(()=>e),r.delete(i)}),removeToast:(i,a)=>{n(o=>({...o,[a]:o[a].filter(s=>s.id!=i)}))},notify:(i,a)=>{const o=hZ(i,a),{position:s,id:u}=o;return n(l=>{var c,f;const h=s.includes("top")?[o,...(c=l[s])!=null?c:[]]:[...(f=l[s])!=null?f:[],o];return{...l,[s]:h}}),u},update:(i,a)=>{i&&n(o=>{const s={...o},{position:u,index:l}=Tk(s,i);return u&&l!==-1&&(s[u][l]={...s[u][l],...a,message:S8(a)}),s})},closeAll:({positions:i}={})=>{n(a=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((u,l)=>(u[l]=a[l].map(c=>({...c,requestClose:!0})),u),{...a}))},close:i=>{n(a=>{const o=Y4(a,i);return o?{...a,[o]:a[o].map(s=>s.id==i?{...s,requestClose:!0}:s)}:a})},isActive:i=>!!Tk(ui.getState(),i).position}}var jE=0;function hZ(e,t={}){var r,n;jE+=1;const i=(r=t.id)!=null?r:jE,a=(n=t.position)!=null?n:"bottom";return{id:i,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ui.removeToast(String(i),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var mZ=e=>{const{status:t,variant:r="solid",id:n,title:i,isClosable:a,onClose:o,description:s,colorScheme:u,icon:l}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return _.jsxs(vS,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[_.jsx(gS,{children:l}),_.jsxs(ne.div,{flex:"1",maxWidth:"100%",children:[i&&_.jsx(x8,{id:c==null?void 0:c.title,children:i}),s&&_.jsx(b8,{id:c==null?void 0:c.description,display:"block",children:s})]}),a&&_.jsx(w8,{size:"sm",onClick:o,position:"absolute",insetEnd:1,top:1})]})};function S8(e={}){const{render:t,toastComponent:r=mZ}=e;return i=>typeof t=="function"?t({...i,...e}):_.jsx(r,{...i,...e})}function gZ(e,t){const r=i=>{var a;return{...t,...i,position:rZ((a=i==null?void 0:i.position)!=null?a:t==null?void 0:t.position,e)}},n=i=>{const a=r(i),o=S8(a);return ui.notify(o,a)};return n.update=(i,a)=>{ui.update(i,r(a))},n.promise=(i,a)=>{const o=n({...a.loading,status:"loading",duration:null});i.then(s=>n.update(o,{status:"success",duration:5e3,...Vn(a.success,s)})).catch(s=>n.update(o,{status:"error",duration:5e3,...Vn(a.error,s)}))},n.closeAll=ui.closeAll,n.close=ui.close,n.isActive=ui.isActive,n}var[vZ,yZ]=Ot({name:"ToastOptionsContext",strict:!1}),bZ=e=>{const t=C.useSyncExternalStore(ui.subscribe,ui.getState,ui.getState),{motionVariants:r,component:n=v8,portalProps:i}=e,o=Object.keys(t).map(s=>{const u=t[s];return _.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:jK(s),children:_.jsx(dS,{initial:!1,children:u.map(l=>_.jsx(n,{motionVariants:r,...l},l.id))})},s)});return _.jsx(td,{...i,children:o})};function xZ(e){const{theme:t}=g4(),r=yZ();return C.useMemo(()=>gZ(t.direction,{...r,...e}),[e,t.direction,r])}var wZ=e=>function({children:r,theme:n=e,toastOptions:i,...a}){return _.jsxs(BK,{theme:n,...a,children:[_.jsx(vZ,{value:i==null?void 0:i.defaultOptions,children:r}),_.jsx(bZ,{...i})]})},SZ=wZ(L4),AZ=Object.defineProperty,CZ=(e,t,r)=>t in e?AZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dt=(e,t,r)=>(CZ(e,typeof t!="symbol"?t+"":t,r),r);function FE(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var _Z=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function NE(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function LE(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var B2=typeof window<"u"?C.useLayoutEffect:C.useEffect,im=e=>e,kZ=class{constructor(){dt(this,"descendants",new Map),dt(this,"register",e=>{if(e!=null)return _Z(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),dt(this,"unregister",e=>{this.descendants.delete(e);const t=FE(Array.from(this.descendants.keys()));this.assignIndex(t)}),dt(this,"destroy",()=>{this.descendants.clear()}),dt(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),dt(this,"count",()=>this.descendants.size),dt(this,"enabledCount",()=>this.enabledValues().length),dt(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),dt(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),dt(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),dt(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),dt(this,"first",()=>this.item(0)),dt(this,"firstEnabled",()=>this.enabledItem(0)),dt(this,"last",()=>this.item(this.descendants.size-1)),dt(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),dt(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),dt(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),dt(this,"next",(e,t=!0)=>{const r=NE(e,this.count(),t);return this.item(r)}),dt(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=NE(n,this.enabledCount(),t);return this.enabledItem(i)}),dt(this,"prev",(e,t=!0)=>{const r=LE(e,this.count()-1,t);return this.item(r)}),dt(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),i=LE(n,this.enabledCount()-1,t);return this.enabledItem(i)}),dt(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=FE(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(n)})}};function EZ(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function or(...e){return t=>{e.forEach(r=>{EZ(r,t)})}}function DZ(...e){return C.useMemo(()=>or(...e),e)}function PZ(){const e=C.useRef(new kZ);return B2(()=>()=>e.current.destroy()),e.current}var[TZ,A8]=Ot({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function OZ(e){const t=A8(),[r,n]=C.useState(-1),i=C.useRef(null);B2(()=>()=>{i.current&&t.unregister(i.current)},[]),B2(()=>{if(!i.current)return;const o=Number(i.current.dataset.index);r!=o&&!Number.isNaN(o)&&n(o)});const a=im(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(i.current),register:or(a,i)}}function C8(){return[im(TZ),()=>im(A8()),()=>PZ(),i=>OZ(i)]}var[$Z,r0]=Ot({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[MZ,yS]=Ot({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[BZ,OPe,IZ,RZ]=C8(),_8=ge(function(t,r){const{getButtonProps:n}=yS(),i=n(t,r),o={display:"flex",alignItems:"center",width:"100%",outline:0,...r0().button};return _.jsx(ne.button,{...i,className:Ce("chakra-accordion__button",t.className),__css:o})});_8.displayName="AccordionButton";function k8(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:i=(d,h)=>d!==h}=e,a=No(n),o=No(i),[s,u]=C.useState(r),l=t!==void 0,c=l?t:s,f=No(d=>{const g=typeof d=="function"?d(c):d;o(c,g)&&(l||u(g),a(g))},[l,a,c,o]);return[c,f]}function jZ(e){const{onChange:t,defaultIndex:r,index:n,allowMultiple:i,allowToggle:a,...o}=e;LZ(e),zZ(e);const s=IZ(),[u,l]=C.useState(-1);C.useEffect(()=>()=>{l(-1)},[]);const[c,f]=k8({value:n,defaultValue(){return i?r??[]:r??-1},onChange:t});return{index:c,setIndex:f,htmlProps:o,getAccordionItemProps:h=>{let g=!1;return h!==null&&(g=Array.isArray(c)?c.includes(h):c===h),{isOpen:g,onChange:b=>{if(h!==null)if(i&&Array.isArray(c)){const y=b?c.concat(h):c.filter(v=>v!==h);f(y)}else b?f(h):a&&f(-1)}}},focusedIndex:u,setFocusedIndex:l,descendants:s}}var[FZ,bS]=Ot({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function NZ(e){const{isDisabled:t,isFocusable:r,id:n,...i}=e,{getAccordionItemProps:a,setFocusedIndex:o}=bS(),s=C.useRef(null),u=C.useId(),l=n??u,c=`accordion-button-${l}`,f=`accordion-panel-${l}`;VZ(e);const{register:d,index:h,descendants:g}=RZ({disabled:t&&!r}),{isOpen:p,onChange:b}=a(h===-1?null:h);qZ({isOpen:p,isDisabled:t});const y=()=>{b==null||b(!0)},v=()=>{b==null||b(!1)},m=C.useCallback(()=>{b==null||b(!p),o(h)},[h,o,p,b]),x=C.useCallback(k=>{const T={ArrowDown:()=>{const P=g.nextEnabled(h);P==null||P.node.focus()},ArrowUp:()=>{const P=g.prevEnabled(h);P==null||P.node.focus()},Home:()=>{const P=g.firstEnabled();P==null||P.node.focus()},End:()=>{const P=g.lastEnabled();P==null||P.node.focus()}}[k.key];T&&(k.preventDefault(),T(k))},[g,h]),w=C.useCallback(()=>{o(h)},[o,h]),S=C.useCallback(function(E={},T=null){return{...E,type:"button",ref:or(d,s,T),id:c,disabled:!!t,"aria-expanded":!!p,"aria-controls":f,onClick:Re(E.onClick,m),onFocus:Re(E.onFocus,w),onKeyDown:Re(E.onKeyDown,x)}},[c,t,p,m,w,x,f,d]),A=C.useCallback(function(E={},T=null){return{...E,ref:T,role:"region",id:f,"aria-labelledby":c,hidden:!p}},[c,p,f]);return{isOpen:p,isDisabled:t,isFocusable:r,onOpen:y,onClose:v,getButtonProps:S,getPanelProps:A,htmlProps:i}}function LZ(e){const t=e.index||e.defaultIndex,r=t!=null&&!Array.isArray(t)&&e.allowMultiple;id({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function zZ(e){id({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function VZ(e){id({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. + `})}function qZ(e){id({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function E8(e){const{isOpen:t,isDisabled:r}=yS(),{reduceMotion:n}=bS(),i=Ce("chakra-accordion__icon",e.className),a=r0(),o={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...a.icon};return _.jsx(us,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:o,...e,children:_.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}E8.displayName="AccordionIcon";var D8=ge(function(t,r){const{children:n,className:i}=t,{htmlProps:a,...o}=NZ(t),u={...r0().container,overflowAnchor:"none"},l=C.useMemo(()=>o,[o]);return _.jsx(MZ,{value:l,children:_.jsx(ne.div,{ref:r,...a,className:Ce("chakra-accordion__item",i),__css:u,children:typeof n=="function"?n({isExpanded:!!o.isOpen,isDisabled:!!o.isDisabled}):n})})});D8.displayName="AccordionItem";var hp={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},zE={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},UZ=e=>e!=null&&parseInt(e.toString(),10)>0,VE={exit:{height:{duration:.2,ease:hp.ease},opacity:{duration:.3,ease:hp.ease}},enter:{height:{duration:.3,ease:hp.ease},opacity:{duration:.4,ease:hp.ease}}},HZ={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var a;return{...e&&{opacity:UZ(t)?1:0},height:t,transitionEnd:n==null?void 0:n.exit,transition:(a=r==null?void 0:r.exit)!=null?a:zE.exit(VE.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:i})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:n==null?void 0:n.enter,transition:(a=r==null?void 0:r.enter)!=null?a:zE.enter(VE.enter,i)}}},P8=C.forwardRef((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:i=!0,startingHeight:a=0,endingHeight:o="auto",style:s,className:u,transition:l,transitionEnd:c,...f}=e,[d,h]=C.useState(!1);C.useEffect(()=>{const v=setTimeout(()=>{h(!0)});return()=>clearTimeout(v)},[]),id({condition:Number(a)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const g=parseFloat(a.toString())>0,p={startingHeight:a,endingHeight:o,animateOpacity:i,transition:d?l:{enter:{duration:0}},transitionEnd:{enter:c==null?void 0:c.enter,exit:n?c==null?void 0:c.exit:{...c==null?void 0:c.exit,display:g?"block":"none"}}},b=n?r:!0,y=r||n?"enter":"exit";return _.jsx(dS,{initial:!1,custom:p,children:b&&_.jsx(t0.div,{ref:t,...f,className:Ce("chakra-collapse",u),style:{overflow:"hidden",display:"block",...s},custom:p,variants:HZ,initial:n?"exit":!1,animate:y,exit:"exit"})})});P8.displayName="Collapse";var T8=ge(function(t,r){const{className:n,motionProps:i,...a}=t,{reduceMotion:o}=bS(),{getPanelProps:s,isOpen:u}=yS(),l=s(a,r),c=Ce("chakra-accordion__panel",n),f=r0();o||delete l.hidden;const d=_.jsx(ne.div,{...l,__css:f.panel,className:c});return o?d:_.jsx(P8,{in:u,...i,children:d})});T8.displayName="AccordionPanel";var xS=ge(function({children:t,reduceMotion:r,...n},i){const a=as("Accordion",n),o=lr(n),{htmlProps:s,descendants:u,...l}=jZ(o),c=C.useMemo(()=>({...l,reduceMotion:!!r}),[l,r]);return _.jsx(BZ,{value:u,children:_.jsx(FZ,{value:c,children:_.jsx($Z,{value:a,children:_.jsx(ne.div,{ref:i,...s,className:Ce("chakra-accordion",n.className),__css:a.root,children:t})})})})});xS.displayName="Accordion";var I2=ge(function(t,r){const{htmlWidth:n,htmlHeight:i,alt:a,...o}=t;return _.jsx("img",{width:n,height:i,ref:r,alt:a,...o})});I2.displayName="NativeImage";function WZ(e){const{loading:t,src:r,srcSet:n,onLoad:i,onError:a,crossOrigin:o,sizes:s,ignoreFallback:u}=e,[l,c]=C.useState("pending");C.useEffect(()=>{c(r?"loading":"pending")},[r]);const f=C.useRef(),d=C.useCallback(()=>{if(!r)return;h();const g=new Image;g.src=r,o&&(g.crossOrigin=o),n&&(g.srcset=n),s&&(g.sizes=s),t&&(g.loading=t),g.onload=p=>{h(),c("loaded"),i==null||i(p)},g.onerror=p=>{h(),c("failed"),a==null||a(p)},f.current=g},[r,o,n,s,i,a,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return Du(()=>{if(!u)return l==="loading"&&d(),()=>{h()}},[l,d,u]),u?"loaded":l}var GZ=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function KZ(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var n0=ge(function(t,r){const{fallbackSrc:n,fallback:i,src:a,srcSet:o,align:s,fit:u,loading:l,ignoreFallback:c,crossOrigin:f,fallbackStrategy:d="beforeLoadOrError",referrerPolicy:h,...g}=t,p=n!==void 0||i!==void 0,b=l!=null||c||!p,y=WZ({...t,crossOrigin:f,ignoreFallback:b}),v=GZ(y,d),m={ref:r,objectFit:u,objectPosition:s,...b?g:KZ(g,["onError","onLoad"])};return v?i||_.jsx(ne.img,{as:I2,className:"chakra-image__placeholder",src:n,...m}):_.jsx(ne.img,{as:I2,src:a,srcSet:o,crossOrigin:f,loading:l,referrerPolicy:h,className:"chakra-image",...m})});n0.displayName="Image";function O8(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}var[$Pe,YZ]=Ot({strict:!1,name:"ButtonGroupContext"});function XZ(e){const[t,r]=C.useState(!e);return{ref:C.useCallback(a=>{a&&r(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function R2(e){const{children:t,className:r,...n}=e,i=C.isValidElement(t)?C.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=Ce("chakra-button__icon",r);return _.jsx(ne.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:a,children:i})}R2.displayName="ButtonIcon";function j2(e){const{label:t,placement:r,spacing:n="0.5rem",children:i=_.jsx(pS,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:o,...s}=e,u=Ce("chakra-button__spinner",a),l=r==="start"?"marginEnd":"marginStart",c=C.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[l]:t?n:0,fontSize:"1em",lineHeight:"normal",...o}),[o,t,l,n]);return _.jsx(ne.div,{className:u,...s,__css:c,children:i})}j2.displayName="ButtonSpinner";var wS=ge((e,t)=>{const r=YZ(),n=Ai("Button",{...r,...e}),{isDisabled:i=r==null?void 0:r.isDisabled,isLoading:a,isActive:o,children:s,leftIcon:u,rightIcon:l,loadingText:c,iconSpacing:f="0.5rem",type:d,spinner:h,spinnerPlacement:g="start",className:p,as:b,...y}=lr(e),v=C.useMemo(()=>{const S={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:S}}},[n,r]),{ref:m,type:x}=XZ(b),w={rightIcon:l,leftIcon:u,iconSpacing:f,children:s};return _.jsxs(ne.button,{ref:DZ(t,m),as:b,type:d??x,"data-active":ht(o),"data-loading":ht(a),__css:v,className:Ce("chakra-button",p),...y,disabled:i||a,children:[a&&g==="start"&&_.jsx(j2,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:f,children:h}),a?c||_.jsx(ne.span,{opacity:0,children:_.jsx(qE,{...w})}):_.jsx(qE,{...w}),a&&g==="end"&&_.jsx(j2,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:f,children:h})]})});wS.displayName="Button";function qE(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return _.jsxs(_.Fragment,{children:[t&&_.jsx(R2,{marginEnd:i,children:t}),n,r&&_.jsx(R2,{marginStart:i,children:r})]})}var SS=ge((e,t)=>{const{icon:r,children:n,isRound:i,"aria-label":a,...o}=e,s=r||n,u=C.isValidElement(s)?C.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return _.jsx(wS,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":a,...o,children:u})});SS.displayName="IconButton";var[QZ,JZ]=Ot({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[ZZ,$8]=Ot({strict:!1,name:"FormControlContext"});function eee(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:i,isReadOnly:a,...o}=e,s=C.useId(),u=t||`field-${s}`,l=`${u}-label`,c=`${u}-feedback`,f=`${u}-helptext`,[d,h]=C.useState(!1),[g,p]=C.useState(!1),[b,y]=C.useState(!1),v=C.useCallback((A={},k=null)=>({id:f,...A,ref:or(k,E=>{E&&p(!0)})}),[f]),m=C.useCallback((A={},k=null)=>({...A,ref:k,"data-focus":ht(b),"data-disabled":ht(i),"data-invalid":ht(n),"data-readonly":ht(a),id:A.id!==void 0?A.id:l,htmlFor:A.htmlFor!==void 0?A.htmlFor:u}),[u,i,b,n,a,l]),x=C.useCallback((A={},k=null)=>({id:c,...A,ref:or(k,E=>{E&&h(!0)}),"aria-live":"polite"}),[c]),w=C.useCallback((A={},k=null)=>({...A,...o,ref:k,role:"group"}),[o]),S=C.useCallback((A={},k=null)=>({...A,ref:k,role:"presentation","aria-hidden":!0,children:A.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!i,isFocused:!!b,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:d,setHasFeedbackText:h,hasHelpText:g,setHasHelpText:p,id:u,labelId:l,feedbackId:c,helpTextId:f,htmlProps:o,getHelpTextProps:v,getErrorMessageProps:x,getRootProps:w,getLabelProps:m,getRequiredIndicatorProps:S}}var tee=ge(function(t,r){const n=as("Form",t),i=lr(t),{getRootProps:a,htmlProps:o,...s}=eee(i),u=Ce("chakra-form-control",t.className);return _.jsx(ZZ,{value:s,children:_.jsx(QZ,{value:n,children:_.jsx(ne.div,{...a({},r),className:u,__css:n.container})})})});tee.displayName="FormControl";var ree=ge(function(t,r){const n=$8(),i=JZ(),a=Ce("chakra-form__helper-text",t.className);return _.jsx(ne.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:i.helperText,className:a})});ree.displayName="FormHelperText";var nee=()=>typeof document<"u",UE=!1,fd=null,Xo=!1,F2=!1,N2=new Set;function AS(e,t){N2.forEach(r=>r(e,t))}var iee=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function aee(e){return!(e.metaKey||!iee&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function HE(e){Xo=!0,aee(e)&&(fd="keyboard",AS("keyboard",e))}function vs(e){if(fd="pointer",e.type==="mousedown"||e.type==="pointerdown"){Xo=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;AS("pointer",e)}}function oee(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function see(e){oee(e)&&(Xo=!0,fd="virtual")}function uee(e){e.target===window||e.target===document||(!Xo&&!F2&&(fd="virtual",AS("virtual",e)),Xo=!1,F2=!1)}function lee(){Xo=!1,F2=!0}function WE(){return fd!=="pointer"}function cee(){if(!nee()||UE)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){Xo=!0,e.apply(this,r)},document.addEventListener("keydown",HE,!0),document.addEventListener("keyup",HE,!0),document.addEventListener("click",see,!0),window.addEventListener("focus",uee,!0),window.addEventListener("blur",lee,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",vs,!0),document.addEventListener("pointermove",vs,!0),document.addEventListener("pointerup",vs,!0)):(document.addEventListener("mousedown",vs,!0),document.addEventListener("mousemove",vs,!0),document.addEventListener("mouseup",vs,!0)),UE=!0}function fee(e){cee(),e(WE());const t=()=>e(WE());return N2.add(t),()=>{N2.delete(t)}}function fu(e,t,r,n){const i=No(r);return C.useEffect(()=>{const a=typeof e=="function"?e():e??document;if(!(!r||!a))return a.addEventListener(t,i,n),()=>{a.removeEventListener(t,i,n)}},[t,e,n,i,r]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,i,n)}}function dee(e){return"current"in e}var M8=()=>typeof window<"u";function pee(){var e;const t=navigator.userAgentData;return(e=t==null?void 0:t.platform)!=null?e:navigator.platform}var hee=e=>M8()&&e.test(navigator.vendor),mee=e=>M8()&&e.test(pee()),gee=()=>mee(/mac|iphone|ipad|ipod/i),vee=()=>gee()&&hee(/apple/i);function yee(e){const{ref:t,elements:r,enabled:n}=e,i=()=>{var a,o;return(o=(a=t.current)==null?void 0:a.ownerDocument)!=null?o:document};fu(i,"pointerdown",a=>{if(!vee()||!n)return;const o=a.target,u=(r??[t]).some(l=>{const c=dee(l)?l.current:l;return(c==null?void 0:c.contains(o))||c===o});i().activeElement!==o&&u&&(a.preventDefault(),o.focus())})}var B8={exports:{}},bee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xee=bee,wee=xee;function I8(){}function R8(){}R8.resetWarningCache=I8;var See=function(){function e(n,i,a,o,s,u){if(u!==wee){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:R8,resetWarningCache:I8};return r.PropTypes=r,r};B8.exports=See();var Aee=B8.exports;const we=Te(Aee);function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}function Cee(e,t){if(Mu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ee(e){var t=Cee(e,"string");return Mu(t)==="symbol"?t:String(t)}function kee(e,t,r){return t=_ee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j8(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function CS(e){var t;if(!j8(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function Eee(e){var t,r;return(r=(t=F8(e))==null?void 0:t.defaultView)!=null?r:window}function F8(e){return j8(e)?e.ownerDocument:document}function Dee(e){return F8(e).activeElement}function Pee(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+i+n)}function Tee(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function N8(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:CS(e)&&Pee(e)?e:N8(Tee(e))}var L8=e=>e.hasAttribute("tabindex"),Oee=e=>L8(e)&&e.tabIndex===-1;function $ee(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function z8(e){return e.parentElement&&z8(e.parentElement)?!0:e.hidden}function Mee(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function V8(e){if(!CS(e)||z8(e)||$ee(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():Mee(e)?!0:L8(e)}function Bee(e){return e?CS(e)&&V8(e)&&!Oee(e):!1}var Iee=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],Ree=Iee.join(),jee=e=>e.offsetWidth>0&&e.offsetHeight>0;function Fee(e){const t=Array.from(e.querySelectorAll(Ree));return t.unshift(e),t.filter(r=>V8(r)&&jee(r))}var q8=ge(function(t,r){const{templateAreas:n,gap:i,rowGap:a,columnGap:o,column:s,row:u,autoFlow:l,autoRows:c,templateRows:f,autoColumns:d,templateColumns:h,...g}=t,p={display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:a,gridColumnGap:o,gridAutoColumns:d,gridColumn:s,gridRow:u,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:f,gridTemplateColumns:h};return _.jsx(ne.div,{ref:r,__css:p,...g})});q8.displayName="Grid";function _S(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):$r(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var yn=ge(function(t,r){const{columns:n,spacingX:i,spacingY:a,spacing:o,minChildWidth:s,...u}=t,l=rd(),c=s?Lee(s,l):zee(n);return _.jsx(q8,{ref:r,gap:o,columnGap:i,rowGap:a,templateColumns:c,...u})});yn.displayName="SimpleGrid";function Nee(e){return typeof e=="number"?`${e}px`:e}function Lee(e,t){return _S(e,r=>{const n=y4("sizes",r,Nee(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function zee(e){return _S(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Mi=ge(function(t,r){const n=Ai("Text",t),{className:i,align:a,decoration:o,casing:s,...u}=lr(t),l=bK({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return _.jsx(ne.p,{ref:r,className:Ce("chakra-text",t.className),...l,...u,__css:n})});Mi.displayName="Text";var U8=e=>_.jsx(ne.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});U8.displayName="StackItem";function Vee(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":_S(r,i=>n[i])}}var Hi=ge((e,t)=>{const{isInline:r,direction:n,align:i,justify:a,spacing:o="0.5rem",wrap:s,children:u,divider:l,className:c,shouldWrapChildren:f,...d}=e,h=r?"row":n??"column",g=C.useMemo(()=>Vee({spacing:o,direction:h}),[o,h]),p=!!l,b=!f&&!p,y=C.useMemo(()=>{const m=O8(u);return b?m:m.map((x,w)=>{const S=typeof x.key<"u"?x.key:w,A=w+1===m.length,E=f?_.jsx(U8,{children:x},S):x;if(!p)return E;const T=C.cloneElement(l,{__css:g}),P=A?null:T;return _.jsxs(C.Fragment,{children:[E,P]},S)})},[l,g,p,b,f,u]),v=Ce("chakra-stack",c);return _.jsx(ne.div,{ref:t,display:"flex",alignItems:i,justifyContent:a,flexDirection:h,flexWrap:s,gap:p?void 0:o,className:v,...d,children:y})});Hi.displayName="Stack";var i0=ge((e,t)=>_.jsx(Hi,{align:"center",...e,direction:"row",ref:t}));i0.displayName="HStack";var Lo=ge(function(t,r){const n=Ai("Heading",t),{className:i,...a}=lr(t);return _.jsx(ne.h2,{ref:r,className:Ce("chakra-heading",t.className),...a,__css:n})});Lo.displayName="Heading";var bn=ne("div");bn.displayName="Box";var H8=ge(function(t,r){const{size:n,centerContent:i=!0,...a}=t,o=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return _.jsx(bn,{ref:r,boxSize:n,__css:{...o,flexShrink:0,flexGrow:0},...a})});H8.displayName="Square";var qee=ge(function(t,r){const{size:n,...i}=t;return _.jsx(H8,{size:n,ref:r,borderRadius:"9999px",...i})});qee.displayName="Circle";var Uee=ge(function(t,r){const{isExternal:n,target:i,rel:a,className:o,...s}=t;return _.jsx(ne.a,{...s,ref:r,className:Ce("chakra-linkbox__overlay",o),rel:n?"noopener noreferrer":a,target:n?"_blank":i,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),Hee=ge(function(t,r){const{className:n,...i}=t;return _.jsx(ne.div,{ref:r,position:"relative",...i,className:Ce("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})}),a0=ge(function(t,r){const n=Ai("Badge",t),{className:i,...a}=lr(t);return _.jsx(ne.span,{ref:r,className:Ce("chakra-badge",t.className),...a,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});a0.displayName="Badge";var L2=ge(function(t,r){const n=Ai("Code",t),{className:i,...a}=lr(t);return _.jsx(ne.code,{ref:r,className:Ce("chakra-code",t.className),...a,__css:{display:"inline-block",...n}})});L2.displayName="Code";var W8=ge(function(t,r){const{className:n,centerContent:i,...a}=lr(t),o=Ai("Container",t);return _.jsx(ne.div,{ref:r,className:Ce("chakra-container",n),...a,__css:{...o,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});W8.displayName="Container";var kS=ge(function(t,r){const{direction:n,align:i,justify:a,wrap:o,basis:s,grow:u,shrink:l,...c}=t,f={display:"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:o,flexBasis:s,flexGrow:u,flexShrink:l};return _.jsx(ne.div,{ref:r,__css:f,...c})});kS.displayName="Flex";function Wee(){const e=C.useRef(new Map),t=e.current,r=C.useCallback((i,a,o,s)=>{e.current.set(o,{type:a,el:i,options:s}),i.addEventListener(a,o,s)},[]),n=C.useCallback((i,a,o,s)=>{i.removeEventListener(a,o,s),e.current.delete(o)},[]);return C.useEffect(()=>()=>{t.forEach((i,a)=>{n(i.el,i.type,a,i.options)})},[n,t]),{add:r,remove:n}}function vy(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function Gee(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:i=!0,clickOnSpace:a=!0,onMouseDown:o,onMouseUp:s,onClick:u,onKeyDown:l,onKeyUp:c,tabIndex:f,onMouseOver:d,onMouseLeave:h,...g}=e,[p,b]=C.useState(!0),[y,v]=C.useState(!1),m=Wee(),x=F=>{F&&F.tagName!=="BUTTON"&&b(!1)},w=p?f:f||0,S=r&&!n,A=C.useCallback(F=>{if(r){F.stopPropagation(),F.preventDefault();return}F.currentTarget.focus(),u==null||u(F)},[r,u]),k=C.useCallback(F=>{y&&vy(F)&&(F.preventDefault(),F.stopPropagation(),v(!1),m.remove(document,"keyup",k,!1))},[y,m]),E=C.useCallback(F=>{if(l==null||l(F),r||F.defaultPrevented||F.metaKey||!vy(F.nativeEvent)||p)return;const j=i&&F.key==="Enter";a&&F.key===" "&&(F.preventDefault(),v(!0)),j&&(F.preventDefault(),F.currentTarget.click()),m.add(document,"keyup",k,!1)},[r,p,l,i,a,m,k]),T=C.useCallback(F=>{if(c==null||c(F),r||F.defaultPrevented||F.metaKey||!vy(F.nativeEvent)||p)return;a&&F.key===" "&&(F.preventDefault(),v(!1),F.currentTarget.click())},[a,p,r,c]),P=C.useCallback(F=>{F.button===0&&(v(!1),m.remove(document,"mouseup",P,!1))},[m]),I=C.useCallback(F=>{if(F.button!==0)return;if(r){F.stopPropagation(),F.preventDefault();return}p||v(!0),F.currentTarget.focus({preventScroll:!0}),m.add(document,"mouseup",P,!1),o==null||o(F)},[r,p,o,m,P]),O=C.useCallback(F=>{F.button===0&&(p||v(!1),s==null||s(F))},[s,p]),N=C.useCallback(F=>{if(r){F.preventDefault();return}d==null||d(F)},[r,d]),R=C.useCallback(F=>{y&&(F.preventDefault(),v(!1)),h==null||h(F)},[y,h]),U=or(t,x);return p?{...g,ref:U,type:"button","aria-disabled":S?void 0:r,disabled:S,onClick:A,onMouseDown:o,onMouseUp:s,onKeyUp:c,onKeyDown:l,onMouseOver:d,onMouseLeave:h}:{...g,ref:U,role:"button","data-active":ht(y),"aria-disabled":r?"true":void 0,tabIndex:S?void 0:w,onClick:A,onMouseDown:I,onMouseUp:O,onKeyUp:T,onKeyDown:E,onMouseOver:N,onMouseLeave:R}}function Kee(e){const t=e.current;if(!t)return!1;const r=Dee(t);return!r||t.contains(r)?!1:!!Bee(r)}function Yee(e,t){const{shouldFocus:r,visible:n,focusRef:i}=t,a=r&&!n;Yh(()=>{if(!a||Kee(e))return;const o=(i==null?void 0:i.current)||e.current;let s;if(o)return s=requestAnimationFrame(()=>{o.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[a,e,i])}var Xee={preventScroll:!0,shouldFocus:!1};function Qee(e,t=Xee){const{focusRef:r,preventScroll:n,shouldFocus:i,visible:a}=t,o=Jee(e)?e.current:e,s=i&&a,u=C.useRef(s),l=C.useRef(a);Du(()=>{!l.current&&a&&(u.current=s),l.current=a},[a,s]);const c=C.useCallback(()=>{if(!(!a||!o||!u.current)&&(u.current=!1,!o.contains(document.activeElement)))if(r!=null&&r.current)requestAnimationFrame(()=>{var f;(f=r.current)==null||f.focus({preventScroll:n})});else{const f=Fee(o);f.length>0&&requestAnimationFrame(()=>{f[0].focus({preventScroll:n})})}},[a,n,o,r]);Yh(()=>{c()},[c]),fu(o,"transitionend",c)}function Jee(e){return"current"in e}var ys=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),St={arrowShadowColor:ys("--popper-arrow-shadow-color"),arrowSize:ys("--popper-arrow-size","8px"),arrowSizeHalf:ys("--popper-arrow-size-half"),arrowBg:ys("--popper-arrow-bg"),transformOrigin:ys("--popper-transform-origin"),arrowOffset:ys("--popper-arrow-offset")};function Zee(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var ete={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},tte=e=>ete[e],GE={scroll:!0,resize:!0};function rte(e){let t;return typeof e=="object"?t={enabled:!0,options:{...GE,...e}}:t={enabled:e,options:GE},t}var nte={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},ite={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{KE(e)},effect:({state:e})=>()=>{KE(e)}},KE=e=>{e.elements.popper.style.setProperty(St.transformOrigin.var,tte(e.placement))},ate={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{ote(e)}},ote=e=>{var t;if(!e.placement)return;const r=ste(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:St.arrowSize.varRef,height:St.arrowSize.varRef,zIndex:-1});const n={[St.arrowSizeHalf.var]:`calc(${St.arrowSize.varRef} / 2 - 1px)`,[St.arrowOffset.var]:`calc(${St.arrowSizeHalf.varRef} * -1)`};for(const i in n)e.elements.arrow.style.setProperty(i,n[i])}},ste=e=>{if(e.startsWith("top"))return{property:"bottom",value:St.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:St.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:St.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:St.arrowOffset.varRef}},ute={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{YE(e)},effect:({state:e})=>()=>{YE(e)}},YE=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=Zee(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:St.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},lte={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},cte={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function fte(e,t="ltr"){var r,n;const i=((r=lte[e])==null?void 0:r[t])||e;return t==="ltr"?i:(n=cte[e])!=null?n:i}var Mr="top",Cn="bottom",_n="right",Br="left",ES="auto",dd=[Mr,Cn,_n,Br],Bu="start",df="end",dte="clippingParents",G8="viewport",Fl="popper",pte="reference",XE=dd.reduce(function(e,t){return e.concat([t+"-"+Bu,t+"-"+df])},[]),K8=[].concat(dd,[ES]).reduce(function(e,t){return e.concat([t,t+"-"+Bu,t+"-"+df])},[]),hte="beforeRead",mte="read",gte="afterRead",vte="beforeMain",yte="main",bte="afterMain",xte="beforeWrite",wte="write",Ste="afterWrite",Ate=[hte,mte,gte,vte,yte,bte,xte,wte,Ste];function xi(e){return e?(e.nodeName||"").toLowerCase():null}function Qr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qo(e){var t=Qr(e).Element;return e instanceof t||e instanceof Element}function xn(e){var t=Qr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function DS(e){if(typeof ShadowRoot>"u")return!1;var t=Qr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cte(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!xn(a)||!xi(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function _te(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(u,l){return u[l]="",u},{});!xn(i)||!xi(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const kte={name:"applyStyles",enabled:!0,phase:"write",fn:Cte,effect:_te,requires:["computeStyles"]};function gi(e){return e.split("-")[0]}var zo=Math.max,am=Math.min,Iu=Math.round;function z2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Y8(){return!/^((?!chrome|android).)*safari/i.test(z2())}function Ru(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&xn(e)&&(i=e.offsetWidth>0&&Iu(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Iu(n.height)/e.offsetHeight||1);var o=Qo(e)?Qr(e):window,s=o.visualViewport,u=!Y8()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/i,c=(n.top+(u&&s?s.offsetTop:0))/a,f=n.width/i,d=n.height/a;return{width:f,height:d,top:c,right:l+f,bottom:c+d,left:l,x:l,y:c}}function PS(e){var t=Ru(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function X8(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&DS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Zi(e){return Qr(e).getComputedStyle(e)}function Ete(e){return["table","td","th"].indexOf(xi(e))>=0}function Za(e){return((Qo(e)?e.ownerDocument:e.document)||window.document).documentElement}function o0(e){return xi(e)==="html"?e:e.assignedSlot||e.parentNode||(DS(e)?e.host:null)||Za(e)}function QE(e){return!xn(e)||Zi(e).position==="fixed"?null:e.offsetParent}function Dte(e){var t=/firefox/i.test(z2()),r=/Trident/i.test(z2());if(r&&xn(e)){var n=Zi(e);if(n.position==="fixed")return null}var i=o0(e);for(DS(i)&&(i=i.host);xn(i)&&["html","body"].indexOf(xi(i))<0;){var a=Zi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function pd(e){for(var t=Qr(e),r=QE(e);r&&Ete(r)&&Zi(r).position==="static";)r=QE(r);return r&&(xi(r)==="html"||xi(r)==="body"&&Zi(r).position==="static")?t:r||Dte(e)||t}function TS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tc(e,t,r){return zo(e,am(t,r))}function Pte(e,t,r){var n=Tc(e,t,r);return n>r?r:n}function Q8(){return{top:0,right:0,bottom:0,left:0}}function J8(e){return Object.assign({},Q8(),e)}function Z8(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Tte=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,J8(typeof t!="number"?t:Z8(t,dd))};function Ote(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=gi(r.placement),u=TS(s),l=[Br,_n].indexOf(s)>=0,c=l?"height":"width";if(!(!a||!o)){var f=Tte(i.padding,r),d=PS(a),h=u==="y"?Mr:Br,g=u==="y"?Cn:_n,p=r.rects.reference[c]+r.rects.reference[u]-o[u]-r.rects.popper[c],b=o[u]-r.rects.reference[u],y=pd(a),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,m=p/2-b/2,x=f[h],w=v-d[c]-f[g],S=v/2-d[c]/2+m,A=Tc(x,S,w),k=u;r.modifiersData[n]=(t={},t[k]=A,t.centerOffset=A-S,t)}}function $te(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||X8(t.elements.popper,i)&&(t.elements.arrow=i))}const Mte={name:"arrow",enabled:!0,phase:"main",fn:Ote,effect:$te,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ju(e){return e.split("-")[1]}var Bte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ite(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Iu(r*i)/i||0,y:Iu(n*i)/i||0}}function JE(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,g=o.y,p=g===void 0?0:g,b=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=b.x,p=b.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),m=Br,x=Mr,w=window;if(l){var S=pd(r),A="clientHeight",k="clientWidth";if(S===Qr(r)&&(S=Za(r),Zi(S).position!=="static"&&s==="absolute"&&(A="scrollHeight",k="scrollWidth")),S=S,i===Mr||(i===Br||i===_n)&&a===df){x=Cn;var E=f&&S===w&&w.visualViewport?w.visualViewport.height:S[A];p-=E-n.height,p*=u?1:-1}if(i===Br||(i===Mr||i===Cn)&&a===df){m=_n;var T=f&&S===w&&w.visualViewport?w.visualViewport.width:S[k];h-=T-n.width,h*=u?1:-1}}var P=Object.assign({position:s},l&&Bte),I=c===!0?Ite({x:h,y:p},Qr(r)):{x:h,y:p};if(h=I.x,p=I.y,u){var O;return Object.assign({},P,(O={},O[x]=v?"0":"",O[m]=y?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",O))}return Object.assign({},P,(t={},t[x]=v?p+"px":"",t[m]=y?h+"px":"",t.transform="",t))}function Rte(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:gi(t.placement),variation:ju(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,JE(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,JE(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jte={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rte,data:{}};var mp={passive:!0};function Fte(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,u=Qr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",r.update,mp)}),s&&u.addEventListener("resize",r.update,mp),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",r.update,mp)}),s&&u.removeEventListener("resize",r.update,mp)}}const Nte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fte,data:{}};var Lte={left:"right",right:"left",bottom:"top",top:"bottom"};function nh(e){return e.replace(/left|right|bottom|top/g,function(t){return Lte[t]})}var zte={start:"end",end:"start"};function ZE(e){return e.replace(/start|end/g,function(t){return zte[t]})}function OS(e){var t=Qr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function $S(e){return Ru(Za(e)).left+OS(e).scrollLeft}function Vte(e,t){var r=Qr(e),n=Za(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var l=Y8();(l||!l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s+$S(e),y:u}}function qte(e){var t,r=Za(e),n=OS(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=zo(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=zo(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+$S(e),u=-n.scrollTop;return Zi(i||r).direction==="rtl"&&(s+=zo(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function MS(e){var t=Zi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function e9(e){return["html","body","#document"].indexOf(xi(e))>=0?e.ownerDocument.body:xn(e)&&MS(e)?e:e9(o0(e))}function Oc(e,t){var r;t===void 0&&(t=[]);var n=e9(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Qr(n),o=i?[a].concat(a.visualViewport||[],MS(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Oc(o0(o)))}function V2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ute(e,t){var r=Ru(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function eD(e,t,r){return t===G8?V2(Vte(e,r)):Qo(t)?Ute(t,r):V2(qte(Za(e)))}function Hte(e){var t=Oc(o0(e)),r=["absolute","fixed"].indexOf(Zi(e).position)>=0,n=r&&xn(e)?pd(e):e;return Qo(n)?t.filter(function(i){return Qo(i)&&X8(i,n)&&xi(i)!=="body"}):[]}function Wte(e,t,r,n){var i=t==="clippingParents"?Hte(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(u,l){var c=eD(e,l,n);return u.top=zo(c.top,u.top),u.right=am(c.right,u.right),u.bottom=am(c.bottom,u.bottom),u.left=zo(c.left,u.left),u},eD(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function t9(e){var t=e.reference,r=e.element,n=e.placement,i=n?gi(n):null,a=n?ju(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(i){case Mr:u={x:o,y:t.y-r.height};break;case Cn:u={x:o,y:t.y+t.height};break;case _n:u={x:t.x+t.width,y:s};break;case Br:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=i?TS(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Bu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case df:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function pf(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,u=s===void 0?dte:s,l=r.rootBoundary,c=l===void 0?G8:l,f=r.elementContext,d=f===void 0?Fl:f,h=r.altBoundary,g=h===void 0?!1:h,p=r.padding,b=p===void 0?0:p,y=J8(typeof b!="number"?b:Z8(b,dd)),v=d===Fl?pte:Fl,m=e.rects.popper,x=e.elements[g?v:d],w=Wte(Qo(x)?x:x.contextElement||Za(e.elements.popper),u,c,o),S=Ru(e.elements.reference),A=t9({reference:S,element:m,strategy:"absolute",placement:i}),k=V2(Object.assign({},m,A)),E=d===Fl?k:S,T={top:w.top-E.top+y.top,bottom:E.bottom-w.bottom+y.bottom,left:w.left-E.left+y.left,right:E.right-w.right+y.right},P=e.modifiersData.offset;if(d===Fl&&P){var I=P[i];Object.keys(T).forEach(function(O){var N=[_n,Cn].indexOf(O)>=0?1:-1,R=[Mr,Cn].indexOf(O)>=0?"y":"x";T[O]+=I[R]*N})}return T}function Gte(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?K8:u,c=ju(n),f=c?s?XE:XE.filter(function(g){return ju(g)===c}):dd,d=f.filter(function(g){return l.indexOf(g)>=0});d.length===0&&(d=f);var h=d.reduce(function(g,p){return g[p]=pf(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[gi(p)],g},{});return Object.keys(h).sort(function(g,p){return h[g]-h[p]})}function Kte(e){if(gi(e)===ES)return[];var t=nh(e);return[ZE(e),t,ZE(t)]}function Yte(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,p=r.allowedAutoPlacements,b=t.options.placement,y=gi(b),v=y===b,m=u||(v||!g?[nh(b)]:Kte(b)),x=[b].concat(m).reduce(function(Z,ue){return Z.concat(gi(ue)===ES?Gte(t,{placement:ue,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:p}):ue)},[]),w=t.rects.reference,S=t.rects.popper,A=new Map,k=!0,E=x[0],T=0;T=0,R=N?"width":"height",U=pf(t,{placement:P,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),F=N?O?_n:Br:O?Cn:Mr;w[R]>S[R]&&(F=nh(F));var j=nh(F),$=[];if(a&&$.push(U[I]<=0),s&&$.push(U[F]<=0,U[j]<=0),$.every(function(Z){return Z})){E=P,k=!1;break}A.set(P,$)}if(k)for(var V=g?3:1,H=function(ue){var fe=x.find(function(le){var se=A.get(le);if(se)return se.slice(0,ue).every(function(W){return W})});if(fe)return E=fe,"break"},Y=V;Y>0;Y--){var K=H(Y);if(K==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}const Xte={name:"flip",enabled:!0,phase:"main",fn:Yte,requiresIfExists:["offset"],data:{_skip:!1}};function tD(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function rD(e){return[Mr,_n,Cn,Br].some(function(t){return e[t]>=0})}function Qte(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=pf(t,{elementContext:"reference"}),s=pf(t,{altBoundary:!0}),u=tD(o,n),l=tD(s,i,a),c=rD(u),f=rD(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Jte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qte};function Zte(e,t,r){var n=gi(e),i=[Br,Mr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Br,_n].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function ere(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=K8.reduce(function(c,f){return c[f]=Zte(f,t.rects,a),c},{}),s=o[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=o}const tre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ere};function rre(e){var t=e.state,r=e.name;t.modifiersData[r]=t9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const nre={name:"popperOffsets",enabled:!0,phase:"read",fn:rre,data:{}};function ire(e){return e==="x"?"y":"x"}function are(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,g=r.tetherOffset,p=g===void 0?0:g,b=pf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),y=gi(t.placement),v=ju(t.placement),m=!v,x=TS(y),w=ire(x),S=t.modifiersData.popperOffsets,A=t.rects.reference,k=t.rects.popper,E=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,T=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(S){if(a){var O,N=x==="y"?Mr:Br,R=x==="y"?Cn:_n,U=x==="y"?"height":"width",F=S[x],j=F+b[N],$=F-b[R],V=h?-k[U]/2:0,H=v===Bu?A[U]:k[U],Y=v===Bu?-k[U]:-A[U],K=t.elements.arrow,Z=h&&K?PS(K):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Q8(),fe=ue[N],le=ue[R],se=Tc(0,A[U],Z[U]),W=m?A[U]/2-V-se-fe-T.mainAxis:H-se-fe-T.mainAxis,ee=m?-A[U]/2+V+se+le+T.mainAxis:Y+se+le+T.mainAxis,X=t.elements.arrow&&pd(t.elements.arrow),L=X?x==="y"?X.clientTop||0:X.clientLeft||0:0,ce=(O=P==null?void 0:P[x])!=null?O:0,ve=F+W-ce-L,ae=F+ee-ce,be=Tc(h?am(j,ve):j,F,h?zo($,ae):$);S[x]=be,I[x]=be-F}if(s){var Ee,_t=x==="x"?Mr:Br,Ar=x==="x"?Cn:_n,ft=S[w],cr=w==="y"?"height":"width",jr=ft+b[_t],fr=ft-b[Ar],sa=[Mr,Br].indexOf(y)!==-1,ua=(Ee=P==null?void 0:P[w])!=null?Ee:0,Od=sa?jr:ft-A[cr]-k[cr]-ua+T.altAxis,$d=sa?ft+A[cr]+k[cr]-ua-T.altAxis:fr,uo=h&&sa?Pte(Od,ft,$d):Tc(h?Od:jr,ft,h?$d:fr);S[w]=uo,I[w]=uo-ft}t.modifiersData[n]=I}}const ore={name:"preventOverflow",enabled:!0,phase:"main",fn:are,requiresIfExists:["offset"]};function sre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ure(e){return e===Qr(e)||!xn(e)?OS(e):sre(e)}function lre(e){var t=e.getBoundingClientRect(),r=Iu(t.width)/e.offsetWidth||1,n=Iu(t.height)/e.offsetHeight||1;return r!==1||n!==1}function cre(e,t,r){r===void 0&&(r=!1);var n=xn(t),i=xn(t)&&lre(t),a=Za(t),o=Ru(e,i,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((xi(t)!=="body"||MS(a))&&(s=ure(t)),xn(t)?(u=Ru(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=$S(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function fre(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&i(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function dre(e){var t=fre(e);return Ate.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function pre(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function hre(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var nD={placement:"bottom",modifiers:[],strategy:"absolute"};function iD(){for(var e=arguments.length,t=new Array(e),r=0;r{}),m=C.useCallback(()=>{var T;!t||!g.current||!p.current||((T=v.current)==null||T.call(v),b.current=vre(g.current,p.current,{placement:y,modifiers:[ute,ate,ite,{...nte,enabled:!!d},{name:"eventListeners",...rte(o)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,u]}},{name:"flip",enabled:!!l,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:c}},...r??[]],strategy:i}),b.current.forceUpdate(),v.current=b.current.destroy)},[y,t,r,d,o,a,s,u,l,f,c,i]);C.useEffect(()=>()=>{var T;!g.current&&!p.current&&((T=b.current)==null||T.destroy(),b.current=null)},[]);const x=C.useCallback(T=>{g.current=T,m()},[m]),w=C.useCallback((T={},P=null)=>({...T,ref:or(x,P)}),[x]),S=C.useCallback(T=>{p.current=T,m()},[m]),A=C.useCallback((T={},P=null)=>({...T,ref:or(S,P),style:{...T.style,position:i,minWidth:d?void 0:"max-content",inset:"0 auto auto 0"}}),[i,S,d]),k=C.useCallback((T={},P=null)=>{const{size:I,shadowColor:O,bg:N,style:R,...U}=T;return{...U,ref:P,"data-popper-arrow":"",style:yre(T)}},[]),E=C.useCallback((T={},P=null)=>({...T,ref:P,"data-popper-arrow-inner":""}),[]);return{update(){var T;(T=b.current)==null||T.update()},forceUpdate(){var T;(T=b.current)==null||T.forceUpdate()},transformOrigin:St.transformOrigin.varRef,referenceRef:x,popperRef:S,getPopperProps:A,getArrowProps:k,getArrowInnerProps:E,getReferenceProps:w}}function yre(e){const{size:t,shadowColor:r,bg:n,style:i}=e,a={...i,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),r&&(a["--popper-arrow-shadow-color"]=r),n&&(a["--popper-arrow-bg"]=n),a}function n9(e={}){const{onClose:t,onOpen:r,isOpen:n,id:i}=e,a=No(r),o=No(t),[s,u]=C.useState(e.defaultIsOpen||!1),l=n!==void 0?n:s,c=n!==void 0,f=C.useId(),d=i??`disclosure-${f}`,h=C.useCallback(()=>{c||u(!1),o==null||o()},[c,o]),g=C.useCallback(()=>{c||u(!0),a==null||a()},[c,a]),p=C.useCallback(()=>{l?h():g()},[l,g,h]);function b(v={}){return{...v,"aria-expanded":l,"aria-controls":d,onClick(m){var x;(x=v.onClick)==null||x.call(v,m),p()}}}function y(v={}){return{...v,hidden:!l,id:d}}return{isOpen:l,onOpen:g,onClose:h,onToggle:p,isControlled:c,getButtonProps:b,getDisclosureProps:y}}function bre(e){const{isOpen:t,ref:r}=e,[n,i]=C.useState(t),[a,o]=C.useState(!1);return C.useEffect(()=>{a||(i(t),o(!0))},[t,a,n]),fu(()=>r.current,"animationend",()=>{i(t)}),{present:!(t?!1:!n),onComplete(){var u;const l=Eee(r.current),c=new l.CustomEvent("animationend",{bubbles:!0});(u=r.current)==null||u.dispatchEvent(c)}}}function i9(e){const{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!!(!r||n||i==="keepMounted"&&t)}var[xre,hd]=Ot({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[wre,BS]=Ot({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `});function a9(e){const t=C.Children.only(e.children),{getTriggerProps:r}=hd();return C.cloneElement(t,r(t.props,t.ref))}a9.displayName="PopoverTrigger";var bs={click:"click",hover:"hover"};function Sre(e={}){const{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:n,id:i,returnFocusOnClose:a=!0,autoFocus:o=!0,arrowSize:s,arrowShadowColor:u,trigger:l=bs.click,openDelay:c=200,closeDelay:f=200,isLazy:d,lazyBehavior:h="unmount",computePositionOnMount:g,...p}=e,{isOpen:b,onClose:y,onOpen:v,onToggle:m}=n9(e),x=C.useRef(null),w=C.useRef(null),S=C.useRef(null),A=C.useRef(!1),k=C.useRef(!1);b&&(k.current=!0);const[E,T]=C.useState(!1),[P,I]=C.useState(!1),O=C.useId(),N=i??O,[R,U,F,j]=["popover-trigger","popover-content","popover-header","popover-body"].map(ae=>`${ae}-${N}`),{referenceRef:$,getArrowProps:V,getPopperProps:H,getArrowInnerProps:Y,forceUpdate:K}=r9({...p,enabled:b||!!g}),Z=bre({isOpen:b,ref:S});yee({enabled:b,ref:w}),Yee(S,{focusRef:w,visible:b,shouldFocus:a&&l===bs.click}),Qee(S,{focusRef:n,visible:b,shouldFocus:o&&l===bs.click});const ue=i9({wasSelected:k.current,enabled:d,mode:h,isSelected:Z.present}),fe=C.useCallback((ae={},be=null)=>{const Ee={...ae,style:{...ae.style,transformOrigin:St.transformOrigin.varRef,[St.arrowSize.var]:s?`${s}px`:void 0,[St.arrowShadowColor.var]:u},ref:or(S,be),children:ue?ae.children:null,id:U,tabIndex:-1,role:"dialog",onKeyDown:Re(ae.onKeyDown,_t=>{r&&_t.key==="Escape"&&y()}),onBlur:Re(ae.onBlur,_t=>{const Ar=aD(_t),ft=yy(S.current,Ar),cr=yy(w.current,Ar);b&&t&&(!ft&&!cr)&&y()}),"aria-labelledby":E?F:void 0,"aria-describedby":P?j:void 0};return l===bs.hover&&(Ee.role="tooltip",Ee.onMouseEnter=Re(ae.onMouseEnter,()=>{A.current=!0}),Ee.onMouseLeave=Re(ae.onMouseLeave,_t=>{_t.nativeEvent.relatedTarget!==null&&(A.current=!1,setTimeout(()=>y(),f))})),Ee},[ue,U,E,F,P,j,l,r,y,b,t,f,u,s]),le=C.useCallback((ae={},be=null)=>H({...ae,style:{visibility:b?"visible":"hidden",...ae.style}},be),[b,H]),se=C.useCallback((ae,be=null)=>({...ae,ref:or(be,x,$)}),[x,$]),W=C.useRef(),ee=C.useRef(),X=C.useCallback(ae=>{x.current==null&&$(ae)},[$]),L=C.useCallback((ae={},be=null)=>{const Ee={...ae,ref:or(w,be,X),id:R,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":U};return l===bs.click&&(Ee.onClick=Re(ae.onClick,m)),l===bs.hover&&(Ee.onFocus=Re(ae.onFocus,()=>{W.current===void 0&&v()}),Ee.onBlur=Re(ae.onBlur,_t=>{const Ar=aD(_t),ft=!yy(S.current,Ar);b&&t&&ft&&y()}),Ee.onKeyDown=Re(ae.onKeyDown,_t=>{_t.key==="Escape"&&y()}),Ee.onMouseEnter=Re(ae.onMouseEnter,()=>{A.current=!0,W.current=window.setTimeout(()=>v(),c)}),Ee.onMouseLeave=Re(ae.onMouseLeave,()=>{A.current=!1,W.current&&(clearTimeout(W.current),W.current=void 0),ee.current=window.setTimeout(()=>{A.current===!1&&y()},f)})),Ee},[R,b,U,l,X,m,v,t,y,c,f]);C.useEffect(()=>()=>{W.current&&clearTimeout(W.current),ee.current&&clearTimeout(ee.current)},[]);const ce=C.useCallback((ae={},be=null)=>({...ae,id:F,ref:or(be,Ee=>{T(!!Ee)})}),[F]),ve=C.useCallback((ae={},be=null)=>({...ae,id:j,ref:or(be,Ee=>{I(!!Ee)})}),[j]);return{forceUpdate:K,isOpen:b,onAnimationComplete:Z.onComplete,onClose:y,getAnchorProps:se,getArrowProps:V,getArrowInnerProps:Y,getPopoverPositionerProps:le,getPopoverProps:fe,getTriggerProps:L,getHeaderProps:ce,getBodyProps:ve}}function yy(e,t){return e===t||(e==null?void 0:e.contains(t))}function aD(e){var t;const r=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:r}function o9(e){const t=as("Popover",e),{children:r,...n}=lr(e),i=rd(),a=Sre({...n,direction:i.direction});return _.jsx(xre,{value:a,children:_.jsx(wre,{value:t,children:Vn(r,{isOpen:a.isOpen,onClose:a.onClose,forceUpdate:a.forceUpdate})})})}o9.displayName="Popover";var by=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function s9(e){var t;const{bg:r,bgColor:n,backgroundColor:i,shadow:a,boxShadow:o,shadowColor:s}=e,{getArrowProps:u,getArrowInnerProps:l}=hd(),c=BS(),f=(t=r??n)!=null?t:i,d=a??o;return _.jsx(ne.div,{...u(),className:"chakra-popover__arrow-positioner",children:_.jsx(ne.div,{className:Ce("chakra-popover__arrow",e.className),...l(e),__css:{"--popper-arrow-shadow-color":by("colors",s),"--popper-arrow-bg":by("colors",f),"--popper-arrow-shadow":by("shadows",d),...c.arrow}})})}s9.displayName="PopoverArrow";var u9=ge(function(t,r){const{getBodyProps:n}=hd(),i=BS();return _.jsx(ne.div,{...n(t,r),className:Ce("chakra-popover__body",t.className),__css:i.body})});u9.displayName="PopoverBody";function Are(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var Cre={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},_re=ne(t0.section),l9=ge(function(t,r){const{variants:n=Cre,...i}=t,{isOpen:a}=hd();return _.jsx(_re,{ref:r,variants:Are(n),initial:!1,animate:a?"enter":"exit",...i})});l9.displayName="PopoverTransition";var c9=ge(function(t,r){const{rootProps:n,motionProps:i,...a}=t,{getPopoverProps:o,getPopoverPositionerProps:s,onAnimationComplete:u}=hd(),l=BS(),c={position:"relative",display:"flex",flexDirection:"column",...l.content};return _.jsx(ne.div,{...s(n),__css:l.popper,className:"chakra-popover__popper",children:_.jsx(l9,{...i,...o(a,r),onAnimationComplete:b4(u,a.onAnimationComplete),className:Ce("chakra-popover__content",t.className),__css:c})})});c9.displayName="PopoverContent";function kre(e){return e&&$r(e)&&$r(e.target)}function Ere(e={}){const{onChange:t,value:r,defaultValue:n,name:i,isDisabled:a,isFocusable:o,isNative:s,...u}=e,[l,c]=C.useState(n||""),f=typeof r<"u",d=f?r:l,h=C.useRef(null),g=C.useCallback(()=>{const w=h.current;if(!w)return;let S="input:not(:disabled):checked";const A=w.querySelector(S);if(A){A.focus();return}S="input:not(:disabled)";const k=w.querySelector(S);k==null||k.focus()},[]),b=`radio-${C.useId()}`,y=i||b,v=C.useCallback(w=>{const S=kre(w)?w.target.value:w;f||c(S),t==null||t(String(S))},[t,f]),m=C.useCallback((w={},S=null)=>({...w,ref:or(S,h),role:"radiogroup"}),[]),x=C.useCallback((w={},S=null)=>({...w,ref:S,name:y,[s?"checked":"isChecked"]:d!=null?w.value===d:void 0,onChange(k){v(k)},"data-radiogroup":!0}),[s,y,v,d]);return{getRootProps:m,getRadioProps:x,name:y,ref:h,focus:g,setValue:c,value:d,onChange:v,isDisabled:a,isFocusable:o,htmlProps:u}}var[Dre,f9]=Ot({name:"RadioGroupContext",strict:!1}),d9=ge((e,t)=>{const{colorScheme:r,size:n,variant:i,children:a,className:o,isDisabled:s,isFocusable:u,...l}=e,{value:c,onChange:f,getRootProps:d,name:h,htmlProps:g}=Ere(l),p=C.useMemo(()=>({name:h,size:n,onChange:f,colorScheme:r,value:c,variant:i,isDisabled:s,isFocusable:u}),[h,n,f,r,c,i,s,u]);return _.jsx(Dre,{value:p,children:_.jsx(ne.div,{...d(g,t),className:Ce("chakra-radio-group",o),children:a})})});d9.displayName="RadioGroup";var Pre={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function Tre(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:i,isReadOnly:a,isRequired:o,onChange:s,isInvalid:u,name:l,value:c,id:f,"data-radiogroup":d,"aria-describedby":h,...g}=e,p=`radio-${C.useId()}`,b=$8(),v=!!f9()||!!d;let x=!!b&&!v?b.id:p;x=f??x;const w=i??(b==null?void 0:b.isDisabled),S=a??(b==null?void 0:b.isReadOnly),A=o??(b==null?void 0:b.isRequired),k=u??(b==null?void 0:b.isInvalid),[E,T]=C.useState(!1),[P,I]=C.useState(!1),[O,N]=C.useState(!1),[R,U]=C.useState(!1),[F,j]=C.useState(!!t),$=typeof r<"u",V=$?r:F;C.useEffect(()=>fee(T),[]);const H=C.useCallback(X=>{if(S||w){X.preventDefault();return}$||j(X.target.checked),s==null||s(X)},[$,w,S,s]),Y=C.useCallback(X=>{X.key===" "&&U(!0)},[U]),K=C.useCallback(X=>{X.key===" "&&U(!1)},[U]),Z=C.useCallback((X={},L=null)=>({...X,ref:L,"data-active":ht(R),"data-hover":ht(O),"data-disabled":ht(w),"data-invalid":ht(k),"data-checked":ht(V),"data-focus":ht(P),"data-focus-visible":ht(P&&E),"data-readonly":ht(S),"aria-hidden":!0,onMouseDown:Re(X.onMouseDown,()=>U(!0)),onMouseUp:Re(X.onMouseUp,()=>U(!1)),onMouseEnter:Re(X.onMouseEnter,()=>N(!0)),onMouseLeave:Re(X.onMouseLeave,()=>N(!1))}),[R,O,w,k,V,P,S,E]),{onFocus:ue,onBlur:fe}=b??{},le=C.useCallback((X={},L=null)=>{const ce=w&&!n;return{...X,id:x,ref:L,type:"radio",name:l,value:c,onChange:Re(X.onChange,H),onBlur:Re(fe,X.onBlur,()=>I(!1)),onFocus:Re(ue,X.onFocus,()=>I(!0)),onKeyDown:Re(X.onKeyDown,Y),onKeyUp:Re(X.onKeyUp,K),checked:V,disabled:ce,readOnly:S,required:A,"aria-invalid":Nv(k),"aria-disabled":Nv(ce),"aria-required":Nv(A),"data-readonly":ht(S),"aria-describedby":h,style:Pre}},[w,n,x,l,c,H,fe,ue,Y,K,V,S,A,k,h]);return{state:{isInvalid:k,isFocused:P,isChecked:V,isActive:R,isHovered:O,isDisabled:w,isReadOnly:S,isRequired:A},getCheckboxProps:Z,getRadioProps:Z,getInputProps:le,getLabelProps:(X={},L=null)=>({...X,ref:L,onMouseDown:Re(X.onMouseDown,Ore),"data-disabled":ht(w),"data-checked":ht(V),"data-invalid":ht(k)}),getRootProps:(X,L=null)=>({...X,ref:L,"data-disabled":ht(w),"data-checked":ht(V),"data-invalid":ht(k)}),htmlProps:g}}function Ore(e){e.preventDefault(),e.stopPropagation()}function $re(e,t){const r={},n={};for(const[i,a]of Object.entries(e))t.includes(i)?r[i]=a:n[i]=a;return[r,n]}var q2=ge((e,t)=>{var r;const n=f9(),{onChange:i,value:a}=e,o=as("Radio",{...n,...e}),s=lr(e),{spacing:u="0.5rem",children:l,isDisabled:c=n==null?void 0:n.isDisabled,isFocusable:f=n==null?void 0:n.isFocusable,inputProps:d,...h}=s;let g=e.isChecked;(n==null?void 0:n.value)!=null&&a!=null&&(g=n.value===a);let p=i;n!=null&&n.onChange&&a!=null&&(p=b4(n.onChange,i));const b=(r=e==null?void 0:e.name)!=null?r:n==null?void 0:n.name,{getInputProps:y,getCheckboxProps:v,getLabelProps:m,getRootProps:x,htmlProps:w}=Tre({...h,isChecked:g,isFocusable:f,isDisabled:c,onChange:p,name:b}),[S,A]=$re(w,yz),k=v(A),E=y(d,t),T=m(),P=Object.assign({},S,x()),I={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...o.container},O={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...o.control},N={userSelect:"none",marginStart:u,...o.label};return _.jsxs(ne.label,{className:"chakra-radio",...P,__css:I,children:[_.jsx("input",{className:"chakra-radio__input",...E}),_.jsx(ne.span,{className:"chakra-radio__control",...k,__css:O}),l&&_.jsx(ne.span,{className:"chakra-radio__label",...T,__css:N,children:l})]})});q2.displayName="Radio";var[Mre,md]=Ot({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),p9=ge((e,t)=>{const r=as("Table",e),{className:n,layout:i,...a}=lr(e);return _.jsx(Mre,{value:r,children:_.jsx(ne.table,{ref:t,__css:{tableLayout:i,...r.table},className:Ce("chakra-table",n),...a})})});p9.displayName="Table";var Bre=ge((e,t)=>{const r=md();return _.jsx(ne.thead,{...e,ref:t,__css:r.thead})}),xs=ge((e,t)=>{const r=md();return _.jsx(ne.tr,{...e,ref:t,__css:r.tr})}),Ire=ge((e,t)=>{var r;const{overflow:n,overflowX:i,className:a,...o}=e;return _.jsx(ne.div,{ref:t,className:Ce("chakra-table__container",a),...o,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:(r=n??i)!=null?r:"auto",overflowY:"hidden",maxWidth:"100%"}})}),Rre=ge((e,t)=>{const r=md();return _.jsx(ne.tbody,{...e,ref:t,__css:r.tbody})}),er=ge(({isNumeric:e,...t},r)=>{const n=md();return _.jsx(ne.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),$n=ge(({isNumeric:e,...t},r)=>{const n=md();return _.jsx(ne.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),[jre,Fre,Nre,Lre]=C8();function zre(e){var t;const{defaultIndex:r,onChange:n,index:i,isManual:a,isLazy:o,lazyBehavior:s="unmount",orientation:u="horizontal",direction:l="ltr",...c}=e,[f,d]=C.useState(r??0),[h,g]=k8({defaultValue:r??0,value:i,onChange:n});C.useEffect(()=>{i!=null&&d(i)},[i]);const p=Nre(),b=C.useId();return{id:`tabs-${(t=e.id)!=null?t:b}`,selectedIndex:h,focusedIndex:f,setSelectedIndex:g,setFocusedIndex:d,isManual:a,isLazy:o,lazyBehavior:s,orientation:u,descendants:p,direction:l,htmlProps:c}}var[Vre,s0]=Ot({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function qre(e){const{focusedIndex:t,orientation:r,direction:n}=s0(),i=Fre(),a=C.useCallback(o=>{const s=()=>{var v;const m=i.nextEnabled(t);m&&((v=m.node)==null||v.focus())},u=()=>{var v;const m=i.prevEnabled(t);m&&((v=m.node)==null||v.focus())},l=()=>{var v;const m=i.firstEnabled();m&&((v=m.node)==null||v.focus())},c=()=>{var v;const m=i.lastEnabled();m&&((v=m.node)==null||v.focus())},f=r==="horizontal",d=r==="vertical",h=o.key,g=n==="ltr"?"ArrowLeft":"ArrowRight",p=n==="ltr"?"ArrowRight":"ArrowLeft",y={[g]:()=>f&&u(),[p]:()=>f&&s(),ArrowDown:()=>d&&s(),ArrowUp:()=>d&&u(),Home:l,End:c}[h];y&&(o.preventDefault(),y(o))},[i,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:Re(e.onKeyDown,a)}}function Ure(e){const{isDisabled:t=!1,isFocusable:r=!1,...n}=e,{setSelectedIndex:i,isManual:a,id:o,setFocusedIndex:s,selectedIndex:u}=s0(),{index:l,register:c}=Lre({disabled:t&&!r}),f=l===u,d=()=>{i(l)},h=()=>{s(l),!a&&!(t&&r)&&i(l)},g=Gee({...n,ref:or(c,e.ref),isDisabled:t,isFocusable:r,onClick:Re(e.onClick,d)}),p="button";return{...g,id:h9(o,l),role:"tab",tabIndex:f?0:-1,type:p,"aria-selected":f,"aria-controls":m9(o,l),onFocus:t?void 0:Re(e.onFocus,h)}}var[Hre,Wre]=Ot({});function Gre(e){const t=s0(),{id:r,selectedIndex:n}=t,a=O8(e.children).map((o,s)=>C.createElement(Hre,{key:s,value:{isSelected:s===n,id:m9(r,s),tabId:h9(r,s),selectedIndex:n}},o));return{...e,children:a}}function Kre(e){const{children:t,...r}=e,{isLazy:n,lazyBehavior:i}=s0(),{isSelected:a,id:o,tabId:s}=Wre(),u=C.useRef(!1);a&&(u.current=!0);const l=i9({wasSelected:u.current,isSelected:a,enabled:n,mode:i});return{tabIndex:0,...r,children:l?t:null,role:"tabpanel","aria-labelledby":s,hidden:!a,id:o}}function h9(e,t){return`${e}--tab-${t}`}function m9(e,t){return`${e}--tabpanel-${t}`}var[Yre,u0]=Ot({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),g9=ge(function(t,r){const n=as("Tabs",t),{children:i,className:a,...o}=lr(t),{htmlProps:s,descendants:u,...l}=zre(o),c=C.useMemo(()=>l,[l]),{isFitted:f,...d}=s,h={position:"relative",...n.root};return _.jsx(jre,{value:u,children:_.jsx(Vre,{value:c,children:_.jsx(Yre,{value:n,children:_.jsx(ne.div,{className:Ce("chakra-tabs",a),ref:r,...d,__css:h,children:i})})})})});g9.displayName="Tabs";var v9=ge(function(t,r){const n=qre({...t,ref:r}),a={display:"flex",...u0().tablist};return _.jsx(ne.div,{...n,className:Ce("chakra-tabs__tablist",t.className),__css:a})});v9.displayName="TabList";var U2=ge(function(t,r){const n=Kre({...t,ref:r}),i=u0();return _.jsx(ne.div,{outline:"0",...n,className:Ce("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});U2.displayName="TabPanel";var y9=ge(function(t,r){const n=Gre(t),i=u0();return _.jsx(ne.div,{...n,width:"100%",ref:r,className:Ce("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});y9.displayName="TabPanels";var H2=ge(function(t,r){const n=u0(),i=Ure({...t,ref:r}),a={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return _.jsx(ne.button,{...i,className:Ce("chakra-tabs__tab",t.className),__css:a})});H2.displayName="Tab";var Xre={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},W2=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},ih=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function Qre(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:i,closeOnScroll:a,closeOnPointerDown:o=i,closeOnEsc:s=!0,onOpen:u,onClose:l,placement:c,id:f,isOpen:d,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:p,arrowPadding:b,modifiers:y,isDisabled:v,gutter:m,offset:x,direction:w,...S}=e,{isOpen:A,onOpen:k,onClose:E}=n9({isOpen:d,defaultIsOpen:h,onOpen:u,onClose:l}),{referenceRef:T,getPopperProps:P,getArrowInnerProps:I,getArrowProps:O}=r9({enabled:A,placement:c,arrowPadding:b,modifiers:y,gutter:m,offset:x,direction:w}),N=C.useId(),U=`tooltip-${f??N}`,F=C.useRef(null),j=C.useRef(),$=C.useCallback(()=>{j.current&&(clearTimeout(j.current),j.current=void 0)},[]),V=C.useRef(),H=C.useCallback(()=>{V.current&&(clearTimeout(V.current),V.current=void 0)},[]),Y=C.useCallback(()=>{H(),E()},[E,H]),K=Jre(F,Y),Z=C.useCallback(()=>{if(!v&&!j.current){A&&K();const L=ih(F);j.current=L.setTimeout(k,t)}},[K,v,A,k,t]),ue=C.useCallback(()=>{$();const L=ih(F);V.current=L.setTimeout(Y,r)},[r,Y,$]),fe=C.useCallback(()=>{A&&n&&ue()},[n,ue,A]),le=C.useCallback(()=>{A&&o&&ue()},[o,ue,A]),se=C.useCallback(L=>{A&&L.key==="Escape"&&ue()},[A,ue]);fu(()=>W2(F),"keydown",s?se:void 0),fu(()=>{const L=F.current;if(!L)return null;const ce=N8(L);return ce.localName==="body"?ih(F):ce},"scroll",()=>{A&&a&&Y()},{passive:!0,capture:!0}),C.useEffect(()=>{v&&($(),A&&E())},[v,A,E,$]),C.useEffect(()=>()=>{$(),H()},[$,H]),fu(()=>F.current,"pointerleave",ue);const W=C.useCallback((L={},ce=null)=>({...L,ref:or(F,ce,T),onPointerEnter:Re(L.onPointerEnter,ae=>{ae.pointerType!=="touch"&&Z()}),onClick:Re(L.onClick,fe),onPointerDown:Re(L.onPointerDown,le),onFocus:Re(L.onFocus,Z),onBlur:Re(L.onBlur,ue),"aria-describedby":A?U:void 0}),[Z,ue,le,A,U,fe,T]),ee=C.useCallback((L={},ce=null)=>P({...L,style:{...L.style,[St.arrowSize.var]:g?`${g}px`:void 0,[St.arrowShadowColor.var]:p}},ce),[P,g,p]),X=C.useCallback((L={},ce=null)=>{const ve={...L.style,position:"relative",transformOrigin:St.transformOrigin.varRef};return{ref:ce,...S,...L,id:U,role:"tooltip",style:ve}},[S,U]);return{isOpen:A,show:Z,hide:ue,getTriggerProps:W,getTooltipProps:X,getTooltipPositionerProps:ee,getArrowProps:O,getArrowInnerProps:I}}var xy="chakra-ui:close-tooltip";function Jre(e,t){return C.useEffect(()=>{const r=W2(e);return r.addEventListener(xy,t),()=>r.removeEventListener(xy,t)},[t,e]),()=>{const r=W2(e),n=ih(e);r.dispatchEvent(new n.CustomEvent(xy))}}function Zre(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function ene(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}var tne=ne(t0.div),IS=ge((e,t)=>{var r,n;const i=Ai("Tooltip",e),a=lr(e),o=rd(),{children:s,label:u,shouldWrapChildren:l,"aria-label":c,hasArrow:f,bg:d,portalProps:h,background:g,backgroundColor:p,bgColor:b,motionProps:y,...v}=a,m=(n=(r=g??p)!=null?r:d)!=null?n:b;if(m){i.bg=m;const P=$z(o,"colors",m);i[St.arrowBg.var]=P}const x=Qre({...v,direction:o.direction}),w=typeof s=="string"||l;let S;if(w)S=_.jsx(ne.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:s});else{const P=C.Children.only(s);S=C.cloneElement(P,x.getTriggerProps(P.props,P.ref))}const A=!!c,k=x.getTooltipProps({},t),E=A?Zre(k,["role","id"]):k,T=ene(k,["role","id"]);return u?_.jsxs(_.Fragment,{children:[S,_.jsx(dS,{children:x.isOpen&&_.jsx(td,{...h,children:_.jsx(ne.div,{...x.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:_.jsxs(tne,{variants:Xre,initial:"exit",animate:"enter",exit:"exit",...y,...E,__css:i,children:[u,A&&_.jsx(ne.span,{srOnly:!0,...T,children:c}),f&&_.jsx(ne.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:_.jsx(ne.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):_.jsx(_.Fragment,{children:s})});IS.displayName="Tooltip";var b9={exports:{}},x9={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Fu=C;function rne(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nne=typeof Object.is=="function"?Object.is:rne,ine=Fu.useState,ane=Fu.useEffect,one=Fu.useLayoutEffect,sne=Fu.useDebugValue;function une(e,t){var r=t(),n=ine({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return one(function(){i.value=r,i.getSnapshot=t,wy(i)&&a({inst:i})},[e,r,t]),ane(function(){return wy(i)&&a({inst:i}),e(function(){wy(i)&&a({inst:i})})},[e]),sne(r),r}function wy(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!nne(e,r)}catch{return!0}}function lne(e,t){return t()}var cne=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lne:une;x9.useSyncExternalStore=Fu.useSyncExternalStore!==void 0?Fu.useSyncExternalStore:cne;b9.exports=x9;var fne=b9.exports,w9={exports:{}},S9={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var l0=C,dne=fne;function pne(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hne=typeof Object.is=="function"?Object.is:pne,mne=dne.useSyncExternalStore,gne=l0.useRef,vne=l0.useEffect,yne=l0.useMemo,bne=l0.useDebugValue;S9.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=gne(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=yne(function(){function u(h){if(!l){if(l=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var g=o.value;if(i(g,h))return f=g}return f=h}if(g=f,hne(c,h))return g;var p=n(h);return i!==void 0&&i(g,p)?g:(c=h,f=p)}var l=!1,c,f,d=r===void 0?null:r;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,r,n,i]);var s=mne(e,a[0],a[1]);return vne(function(){o.hasValue=!0,o.value=s},[s]),bne(s),s};w9.exports=S9;var xne=w9.exports;function wne(e){e()}let A9=wne;const Sne=e=>A9=e,Ane=()=>A9,oD=Symbol.for("react-redux-context"),sD=typeof globalThis<"u"?globalThis:{};function Cne(){var e;if(!C.createContext)return{};const t=(e=sD[oD])!=null?e:sD[oD]=new Map;let r=t.get(C.createContext);return r||(r=C.createContext(null),t.set(C.createContext,r)),r}const Wa=Cne();function RS(e=Wa){return function(){return C.useContext(e)}}const C9=RS(),_ne=()=>{throw new Error("uSES not initialized!")};let _9=_ne;const kne=e=>{_9=e},Ene=(e,t)=>e===t;function Dne(e=Wa){const t=e===Wa?C9:RS(e);return function(n,i={}){const{equalityFn:a=Ene,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:l,getServerState:c,stabilityCheck:f,noopCheck:d}=t();C.useRef(!0);const h=C.useCallback({[n.name](p){return n(p)}}[n.name],[n,f,o]),g=_9(l.addNestedSub,u.getState,c||u.getState,h,a);return C.useDebugValue(g),g}}const Pne=Dne();var qe={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var jS=Symbol.for("react.element"),FS=Symbol.for("react.portal"),c0=Symbol.for("react.fragment"),f0=Symbol.for("react.strict_mode"),d0=Symbol.for("react.profiler"),p0=Symbol.for("react.provider"),h0=Symbol.for("react.context"),Tne=Symbol.for("react.server_context"),m0=Symbol.for("react.forward_ref"),g0=Symbol.for("react.suspense"),v0=Symbol.for("react.suspense_list"),y0=Symbol.for("react.memo"),b0=Symbol.for("react.lazy"),One=Symbol.for("react.offscreen"),k9;k9=Symbol.for("react.module.reference");function En(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jS:switch(e=e.type,e){case c0:case d0:case f0:case g0:case v0:return e;default:switch(e=e&&e.$$typeof,e){case Tne:case h0:case m0:case b0:case y0:case p0:return e;default:return t}}case FS:return t}}}qe.ContextConsumer=h0;qe.ContextProvider=p0;qe.Element=jS;qe.ForwardRef=m0;qe.Fragment=c0;qe.Lazy=b0;qe.Memo=y0;qe.Portal=FS;qe.Profiler=d0;qe.StrictMode=f0;qe.Suspense=g0;qe.SuspenseList=v0;qe.isAsyncMode=function(){return!1};qe.isConcurrentMode=function(){return!1};qe.isContextConsumer=function(e){return En(e)===h0};qe.isContextProvider=function(e){return En(e)===p0};qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jS};qe.isForwardRef=function(e){return En(e)===m0};qe.isFragment=function(e){return En(e)===c0};qe.isLazy=function(e){return En(e)===b0};qe.isMemo=function(e){return En(e)===y0};qe.isPortal=function(e){return En(e)===FS};qe.isProfiler=function(e){return En(e)===d0};qe.isStrictMode=function(e){return En(e)===f0};qe.isSuspense=function(e){return En(e)===g0};qe.isSuspenseList=function(e){return En(e)===v0};qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===c0||e===d0||e===f0||e===g0||e===v0||e===One||typeof e=="object"&&e!==null&&(e.$$typeof===b0||e.$$typeof===y0||e.$$typeof===p0||e.$$typeof===h0||e.$$typeof===m0||e.$$typeof===k9||e.getModuleId!==void 0)};qe.typeOf=En;function $ne(){const e=Ane();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const uD={notify(){},get:()=>[]};function Mne(e,t){let r,n=uD;function i(f){return u(),n.subscribe(f)}function a(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function u(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=$ne())}function l(){r&&(r(),r=void 0,n.clear(),n=uD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:u,tryUnsubscribe:l,getListeners:()=>n};return c}const Bne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ine=Bne?C.useLayoutEffect:C.useEffect;function Rne({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=C.useMemo(()=>{const l=Mne(e);return{store:e,subscription:l,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=C.useMemo(()=>e.getState(),[e]);Ine(()=>{const{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,s]);const u=t||Wa;return C.createElement(u.Provider,{value:o},r)}function E9(e=Wa){const t=e===Wa?C9:RS(e);return function(){const{store:n}=t();return n}}const jne=E9();function Fne(e=Wa){const t=e===Wa?jne:E9(e);return function(){return t().dispatch}}const Nne=Fne();kne(xne.useSyncExternalStoreWithSelector);Sne(Zf.unstable_batchedUpdates);function ah(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ah=function(r){return typeof r}:ah=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ah(e)}function Lne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lD(e,t){for(var r=0;r[e,encodeURIComponent(e)]);function Xne(e,t){const r={},n=Object.keys(t);for(const i of n){const a=t[i];e[i]?r[i]=e[i].encode(t[i]):r[i]=a==null?a:String(a)}return r}function Qne(e){const t=new URLSearchParams(e),r={};for(let[n,i]of t)Object.prototype.hasOwnProperty.call(r,n)?Array.isArray(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i;return r}class Jne{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(t,r,n,i){this.paramsMap.set(t,{stringified:r,decoded:n,decode:i})}has(t,r,n){if(!this.paramsMap.has(t))return!1;const i=this.paramsMap.get(t);return i?i.stringified===r&&(n==null||i.decode===n):!1}get(t){var r;if(this.paramsMap.has(t))return(r=this.paramsMap.get(t))==null?void 0:r.decoded}registerParams(t){for(const r of t){const n=this.registeredParams.get(r)||0;this.registeredParams.set(r,n+1)}}unregisterParams(t){for(const r of t){const n=(this.registeredParams.get(r)||0)-1;n<=0?(this.registeredParams.delete(r),this.paramsMap.has(r)&&this.paramsMap.delete(r)):this.registeredParams.set(r,n)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}const uh=new Jne;function Zne(e,t){var r,n,i;const a={};let o=!1;const s=Object.keys(e);let u=s;if(t.includeKnownParams||t.includeKnownParams!==!1&&s.length===0){const c=Object.keys((r=t.params)!=null?r:{});u.push(...c)}for(const c of u){const f=e[c];if(f!=null&&typeof f=="object"){a[c]=f;continue}o=!0,a[c]=(i=(n=t.params)==null?void 0:n[c])!=null?i:NS}return o?a:e}function T9(e,t,r,n){var i;if(!r||!t.length)return e;let a={...e},o=!1;for(const s of t)Object.prototype.hasOwnProperty.call(a,s)||(a[s]=(i=r[s])!=null?i:n,o=!0);return o?a:e}const eie=Object.prototype.hasOwnProperty;function cD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function O9(e,t,r){var n,i;if(cD(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let s=0;st.split("\0")))}function iie(e,t){var r;let n={};for(const i in e)((r=t[i])==null?void 0:r.urlName)!=null?n[t[i].urlName]=e[i]:n[i]=e[i];return n}let fD,dD,pD,Sy={};const M9=(e,t,r)=>{if(fD===t&&pD===e&&dD===r)return Sy;fD=t,pD=e;const n=e(t??"");dD=r;const i=nie(r);for(let[a,o]of Object.entries(n)){i!=null&&i[a]&&(delete n[a],a=i[a],n[a]=o);const s=Sy[a];O9(o,s)&&(n[a]=s)}return Sy=n,n},aie={searchStringToObject:Qne,objectToSearchString:Yne,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0};function B9(e,t){t==null&&(t={});const r={...e,...t};return t.params&&e.params&&(r.params={...e.params,...t.params}),r}const I9={adapter:{},options:aie},Y2=C.createContext(I9);function oie(){const e=C.useContext(Y2);if(e===void 0||e===I9)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}function hD({children:e,adapter:t,options:r}){const{adapter:n,options:i}=C.useContext(Y2),a=C.useMemo(()=>({adapter:t??n,options:B9(i,r)}),[t,r,n,i]);return C.createElement(Y2.Provider,{value:a},e)}function sie({children:e,adapter:t,options:r}){const n=t;return n?C.createElement(n,null,i=>C.createElement(hD,{adapter:i,options:r},e)):C.createElement(hD,{options:r},e)}function uie(e,t){var r;for(const n in e)((r=t[n])==null?void 0:r.default)!==void 0&&e[n]!==void 0&&t[n].encode(t[n].default)===e[n]&&(e[n]=void 0)}function lie({changes:e,updateType:t,currentSearchString:r,paramConfigMap:n,options:i}){const{searchStringToObject:a,objectToSearchString:o}=i;t==null&&(t=i.updateType);let s;const u=M9(a,r),l=T9(n,Object.keys(e),i.params);let c;if(typeof e=="function"){const d=$9(u,l,uh);c=e(d)}else c=e;s=Xne(l,c),i.removeDefaultsFromUrl&&uie(s,l),s=iie(s,l);let f;return t==="push"||t==="replace"?f=o(s):f=o({...u,...s}),f!=null&&f.length&&f[0]!=="?"&&(f=`?${f}`),f??""}function cie({searchString:e,adapter:t,navigate:r,updateType:n}){const a={...t.location,search:e};r&&(typeof n=="string"&&n.startsWith("replace")?t.replace(a):t.push(a))}const fie=e=>e(),die=e=>setTimeout(()=>e(),0),gp=[];function pie(e,{immediate:t}={}){gp.push(e);let r=t?fie:die;gp.length===1&&r(()=>{const n=gp.slice();gp.length=0;const i=n[0].currentSearchString;let a;for(let o=0;oB9(n,o),[n,o]);let u=Zne(a,s);const l=M9(s.searchStringToObject,r.location.search,rie(u));s.includeAllParams&&(u=T9(u,Object.keys(l),s.params,NS));const c=i(l,u,uh),f=Object.keys(u).join("\0");C.useEffect(()=>{const p=f.split("\0");return uh.registerParams(p),()=>{uh.unregisterParams(p)}},[f]);const d={adapter:r,paramConfigMap:u,options:s},h=C.useRef(d);h.current==null&&(h.current=d),C.useEffect(()=>{h.current.adapter=r,h.current.paramConfigMap=u,h.current.options=s},[r,u,s]);const[g]=C.useState(()=>(b,y)=>{const{adapter:v,paramConfigMap:m,options:x}=h.current;y==null&&(y=x.updateType),pie({changes:b,updateType:y,currentSearchString:v.location.search,paramConfigMap:m,options:x,adapter:v},{immediate:!x.enableBatching})});return[c,g]}var mie=hie;function gie(e,t){let r,n;return e===void 0?(r={},n=t):Array.isArray(e)?(r=Object.fromEntries(e.map(i=>[i,"inherit"])),n=t):(r=e,n=t),{paramConfigMap:r,options:n}}const mD=(e,t,r)=>{const n=C.useMemo(()=>({[e]:t??"inherit"}),[e,t]),[i,a]=mie(n,r),o=i[e],s=C.useCallback((u,l)=>a(typeof u=="function"?c=>{const f=u(c[e]);return{[e]:f}}:{[e]:u},l),[e,a]);return[o,s]};function vie(){return{replace(t){window.history.replaceState(t.state,"",t.search||"?")},push(t){window.history.pushState(t.state,"",t.search||"?")},get location(){return window.location}}}const yie=({children:e})=>{const[t]=C.useState(vie);return e(t)};function Nn(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:LS(e)?2:zS(e)?3:0}function du(e,t){return ol(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bie(e,t){return ol(e)===2?e.get(t):e[t]}function R9(e,t,r){var n=ol(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function j9(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function LS(e){return _ie&&e instanceof Map}function zS(e){return kie&&e instanceof Set}function yo(e){return e.o||e.t}function VS(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=N9(e);delete t[it];for(var r=pu(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=xie),Object.freeze(e),t&&Jo(e,function(r,n){return qS(n,!0)},!0)),e}function xie(){Nn(2)}function US(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function vi(e){var t=Z2[e];return t||Nn(18,e),t}function wie(e,t){Z2[e]||(Z2[e]=t)}function X2(){return hf}function Ay(e,t){t&&(vi("Patches"),e.u=[],e.s=[],e.v=t)}function om(e){Q2(e),e.p.forEach(Sie),e.p=null}function Q2(e){e===hf&&(hf=e.l)}function gD(e){return hf={p:[],l:hf,h:e,m:!0,_:0}}function Sie(e){var t=e[it];t.i===0||t.i===1?t.j():t.g=!0}function Cy(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||vi("ES5").S(t,e,n),n?(r[it].P&&(om(t),Nn(4)),ea(e)&&(e=sm(t,e),t.l||um(t,e)),t.u&&vi("Patches").M(r[it].t,e,t.u,t.s)):e=sm(t,r,[]),om(t),t.u&&t.v(t.u,t.s),e!==F9?e:void 0}function sm(e,t,r){if(US(t))return t;var n=t[it];if(!n)return Jo(t,function(s,u){return vD(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return um(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=VS(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Jo(a,function(s,u){return vD(e,n,i,s,u,r,o)}),um(e,i,!1),r&&e.u&&vi("Patches").N(n,r,e.u,e.s)}return n.o}function vD(e,t,r,n,i,a,o){if(Ga(i)){var s=sm(e,i,a&&t&&t.i!==3&&!du(t.R,n)?a.concat(n):void 0);if(R9(r,n,s),!Ga(s))return;e.m=!1}else o&&r.add(i);if(ea(i)&&!US(i)){if(!e.h.D&&e._<1)return;sm(e,i),t&&t.A.l||um(e,i)}}function um(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&qS(t,r)}function _y(e,t){var r=e[it];return(r?yo(r):e)[t]}function yD(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Aa(e){e.P||(e.P=!0,e.l&&Aa(e.l))}function ky(e){e.o||(e.o=VS(e.t))}function J2(e,t,r){var n=LS(t)?vi("MapSet").F(t,r):zS(t)?vi("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:X2(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,l=mf;o&&(u=[s],l=uc);var c=Proxy.revocable(u,l),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):vi("ES5").J(t,r);return(r?r.A:X2()).p.push(n),n}function Aie(e){return Ga(e)||Nn(22,e),function t(r){if(!ea(r))return r;var n,i=r[it],a=ol(r);if(i){if(!i.P&&(i.i<4||!vi("ES5").K(i)))return i.t;i.I=!0,n=bD(r,a),i.I=!1}else n=bD(r,a);return Jo(n,function(o,s){i&&bie(i.t,o)===s||R9(n,o,t(s))}),a===3?new Set(n):n}(e)}function bD(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return VS(e)}function Cie(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var u=this[it];return mf.get(u,a)},set:function(u){var l=this[it];mf.set(l,a,u)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][it];if(!s.P)switch(s.i){case 5:n(s)&&Aa(s);break;case 4:r(s)&&Aa(s)}}}function r(a){for(var o=a.t,s=a.k,u=pu(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==it){var f=o[c];if(f===void 0&&!du(o,c))return!0;var d=s[c],h=d&&d[it];if(h?h.t!==f:!j9(d,f))return!0}}var g=!!o[it];return u.length!==pu(o).length+(g?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var u=0;u1?y-1:0),m=1;m1?c-1:0),d=1;d=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=vi("Patches").$;return Ga(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Jr=new Die,L9=Jr.produce;Jr.produceWithPatches.bind(Jr);Jr.setAutoFreeze.bind(Jr);Jr.setUseProxies.bind(Jr);Jr.applyPatches.bind(Jr);Jr.createDraft.bind(Jr);Jr.finishDraft.bind(Jr);function AD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function CD(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(tr(1));return r(WS)(e,t)}if(typeof e!="function")throw new Error(tr(2));var i=e,a=t,o=[],s=o,u=!1;function l(){s===o&&(s=o.slice())}function c(){if(u)throw new Error(tr(3));return a}function f(p){if(typeof p!="function")throw new Error(tr(4));if(u)throw new Error(tr(5));var b=!0;return l(),s.push(p),function(){if(b){if(u)throw new Error(tr(6));b=!1,l();var v=s.indexOf(p);s.splice(v,1),o=null}}}function d(p){if(!Pie(p))throw new Error(tr(7));if(typeof p.type>"u")throw new Error(tr(8));if(u)throw new Error(tr(9));try{u=!0,a=i(a,p)}finally{u=!1}for(var b=o=s,y=0;y"u")throw new Error(tr(12));if(typeof r(void 0,{type:lm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tr(13))})}function Oie(e){for(var t=Object.keys(e),r={},n=0;n"u")throw l&&l.type,new Error(tr(14));f[h]=b,c=c||b!==p}return c=c||a.length!==Object.keys(u).length,c?f:u}}function cm(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var l=r[u];return u>0&&(r.splice(u,1),r.unshift(l)),l.value}return fm}function i(s,u){n(s)===fm&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var Iie=function(t,r){return t===r};function Rie(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a1?t-1:0),n=1;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0)for(var m=h.getState(),x=Array.from(r.values()),w=0,S=x;w{const r="",n=(u,l)=>{let c=l.length,f="";const d=p=>encodeURI(encodeURIComponent(p)).replace(/%../g,"i").length,h=p=>{let b=p.charCodeAt(0),y=p.charCodeAt(p.length-1);return b>=56320&&b<=57343||y>=55296&&y<=56319};let g={};for(let p=2;p=0;++v)m=u.indexOf(y,m+p);v>1&&(g[y]=v)}for(;;){for(;c--&&u.includes(l[c]););if(c<0)break;let p=l[c],b,y=0,v=d(p);for(let x in g){let w=g[x],S=(w-1)*d(x)-(w+1)*v;f.length||(S-=d(r)),S<=0?delete g[x]:S>y&&(b=x,y=S)}if(!b)break;u=u.split(b).join(p)+p+b,f=p+f;let m={};for(let x in g){let w=x.split(b).join(p),S=0;for(let A=u.indexOf(w);A>=0;++S)A=u.indexOf(w,A+w.length);S>1&&(m[w]=S)}g=m}return{a:u,b:f}};let i=[];const a="-_.!~*'()";for(let u=127;--u;)(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a.includes(String.fromCharCode(u)))&&i.push(String.fromCharCode(u));for(let u=32;u<255;++u){let l=String.fromCharCode(u);l!="\\"&&!i.includes(l)&&i.unshift(l)}e=e.replace(new RegExp(r,"g"),""),e=MD(e);const o=n(e,i);let s=o.a;return o.b.length&&(s+=r+o.b),s+="_",s},uncrush:e=>{e=e.substring(0,e.length-1);const t=e.split("");let r=t[0];if(t.length>1){let n=t[1];for(let i of n){let a=r.split(i);r=a.join(a.pop())}}return MD(r,0)}},MD=(e,t=1)=>{const r=[['"',"'"],["':","!"],[",'","~"],["}",")","\\","\\"],["{","(","\\","\\"]],n=(i,a)=>{let o=new RegExp(`${(a[2]?a[2]:"")+a[0]}|${(a[3]?a[3]:"")+a[1]}`,"g");return i.replace(o,s=>s===a[0]?a[1]:a[0])};if(t)for(let i=0;i0){const a=await fetch(r,{method:"HEAD"});if(Number(a.headers.get("Content-Length")??1)===t)return null}const n=await fetch(r);return{data:(await n.text()).split(` +`).slice(1).filter(a=>a!==""&&!a.startsWith("#")).map(a=>a.split(" ")),size:Number(n.headers.get("Content-Length"))}}var es=(e=>(e[e.NONE=0]="NONE",e[e.HATCHLING=1]="HATCHLING",e[e.TERRARIUM=2]="TERRARIUM",e))(es||{});const kae=e=>!(e>=125&&e<134||e>=215&&e<260),Eae=e=>({id:Number(e[0]),name:e[1],image:e[2],ownable:kae(Number(e[0]))}),Dae=async e=>{const t=await S0("familiars",e);return t===null?null:{...t,data:t.data.filter(r=>r.length>2).map(Eae)}},Pae=(e="")=>{let t=0;const r=[];for(const n of e){if(n==="*"&&r.length>0){r[r.length-1][2]=!0;continue}r.push([++t,Number(n),!1])}return r},nb=[{id:894,month:10,year:2004,type:"familiar",familiar:"Jill-O-Lantern"},{id:914,month:11,year:2004,type:"familiar",familiar:"Hand Turkey"},{id:924,month:12,year:2004,type:"familiar",familiar:"Crimbo Elf"},{id:954,month:1,year:2005,type:"familiar",familiar:"Baby Yeti"},{id:961,month:2,year:2005,type:"familiar",familiar:"Feather Boa Constrictor"},{id:1040,month:3,year:2005,type:"item",item:"lucky Tam O'Shanter"},{id:1083,month:4,year:2005,type:"familiar",familiar:"Personal Raincloud"},{id:1152,month:5,year:2005,type:"item",item:"miniature gravy-covered maypole"},{id:1242,month:6,year:2005,type:"familiar",familiar:"inflatable dodecapede"},{id:1260,month:7,year:2005,type:"item",item:"wax lips"},{id:1263,month:8,year:2005,type:"familiar",familiar:"Pygmy Bugbear Shaman"},{id:1291,month:9,year:2005,type:"item",item:"Jekyllin hide belt"},{id:1304,month:10,year:2005,type:"familiar",familiar:"Doppelshifter"},{id:1349,month:11,year:2005,type:"familiar",familiar:"Temporal Riftlet"},{id:1373,month:12,year:2005,type:"familiar",familiar:"Sweet Nutcracker"},{id:1411,month:1,year:2006,type:"skill",skill:"Summon Snowcones"},{id:1423,month:2,year:2006,type:"item",item:["iceberglet","ice baby"]},{id:1488,month:3,year:2006,type:"familiar",familiar:"Wild Hare"},{id:1498,month:4,year:2006,type:"skill",skill:"Summon Hilarious Objects"},{id:1536,month:5,year:2006,type:"familiar",familiar:"Spirit Hobo"},{id:1621,month:6,year:2006,type:"familiar",familiar:"Astral Badger"},{id:1653,month:7,year:2006,type:"item",item:"jewel-eyed wizard hat"},{id:1703,month:8,year:2006,type:"familiar",familiar:"Comma Chameleon"},{id:1792,month:9,year:2006,type:"item",item:"Travoltan trousers"},{id:1971,month:10,year:2006,type:"item",item:"plastic pumpkin bucket"},{id:2090,month:11,year:200,type:"item",item:"pilgrim shield"},{id:2190,month:12,year:2006,type:"familiar",familiar:"Ancient Yuletide Troll"},{id:2221,month:1,year:2007,type:"item",item:["Great Ball of Frozen Fire","liar's pants"]},{id:2303,month:2,year:2007,type:"skill",skill:"Summon Candy Heart"},{id:2380,month:3,year:2007,type:"familiar",familiar:"Dandy Lion"},{id:2447,month:4,year:2007,type:"familiar",familiar:"Penguin Goodfella"},{id:2541,month:5,year:2007,type:"item",item:"Mayflower bouquet"},{id:2650,month:6,year:2007,type:"familiar",familiar:"Green Pixie"},{id:2834,month:7,year:2007,type:"item",item:"bottle-rocket crossbow"},{id:2836,month:8,year:2007,type:"familiar",familiar:"Wizard Action Figure"},{id:2844,month:9,year:2007,type:"item",item:"navel ring of navel gazing"},{id:2845,month:10,year:2007,type:"familiar",familiar:"Gluttonous Green Ghost"},{id:2946,month:11,year:2007,type:"item",item:"V for Vivala Mask"},{id:3042,month:12,year:2007,type:"familiar",familiar:"Crimbo P. R. E. S. S. I. E."},{id:3117,month:1,year:2008,type:"skill",skill:"Summon Party Favor"},{id:3192,month:2,year:2008,type:"item",item:["naughty origami kit","origami pasties"]},{id:3219,month:3,year:2008,type:"familiar",familiar:"Mad Hatrack"},{id:3263,month:4,year:2008,type:"skill",skill:"Summon Tasteful Items"},{id:3321,month:5,year:2008,type:"item",item:"mayfly bait necklace"},{id:3351,month:6,year:2008,type:"familiar",familiar:"Llama Lama"},{id:3421,month:7,year:2008,type:"item",item:"little box of fireworks"},{id:3431,month:8,year:2008,type:"familiar",familiar:"Cotton Candy Carnie"},{id:3466,month:9,year:2008,type:"item",item:"haiku katana"},{id:3434,month:10,year:2008,type:"familiar",familiar:"Disembodied Hand"},{id:3507,month:11,year:2008,type:"skill",skill:"Summon Stickers"},{id:3578,month:12,year:2008,type:"familiar",familiar:"Sugar Fruit Fairy"},{id:3661,month:1,year:2009,type:"item",item:["container of Spooky Putty","spooky putty monster","Spooky Putty sheet"]},{id:3753,month:2,year:2009,type:"skill",skill:"Summon Love Song"},{id:3799,month:3,year:2009,type:"familiar",familiar:"Frumious Bandersnatch"},{id:3836,month:4,year:2009,type:"item",item:"elvish sunglasses"},{id:3963,month:5,year:2009,type:"vip"},{id:3999,month:6,year:2009,type:"familiar",familiar:"Baby Sandworm"},{id:4136,month:7,year:2009,type:"item",item:"Bag o' Tricks"},{id:4148,month:8,year:2009,type:"familiar",familiar:"He-Boulder"},{id:4177,month:9,year:2009,type:"skill",skill:"Summon Sugar Sheets"},{id:4223,month:10,year:2009,type:"familiar",familiar:"Squamous Gibberer"},{id:4135,month:11,year:2009,type:"item",item:"moveable feast"},{id:4328,month:12,year:2009,type:"familiar",familiar:"Stocking Mimic"},{id:4398,month:1,year:2010,type:"item",item:["stinky cheese ball","stinky cheese eye"]},{id:4468,month:2,year:2010,type:"skill",skill:"Summon BRICKOs"},{id:4507,month:3,year:2010,type:"vip"},{id:4574,month:4,year:2010,type:"familiar",familiar:"Baby Bugged Bugbear"},{id:4614,month:5,year:2010,type:"item",item:"Crown of Thrones"},{id:4619,month:6,year:2010,type:"familiar",familiar:"Rogue Program"},{id:4644,month:7,year:2010,type:"item",item:"Juju Mojo Mask"},{id:4648,month:8,year:2010,type:"familiar",familiar:"Mini-Hipster"},{id:4696,month:9,year:2010,type:"item",item:"Greatest American Pants"},{id:4720,month:10,year:2010,type:"familiar",familiar:"organ grinder"},{id:4759,month:11,year:2010,type:"campground",item:"packet of pumpkin seeds"},{id:4827,month:12,year:2010,type:"familiar",familiar:"Robot Reindeer"},{id:4908,month:1,year:2011,type:"item",item:"Loathing Legion Knife"},{id:4937,month:2,year:2011,type:"familiar",familiar:"Obtuse Angel"},{id:4965,month:3,year:2011,type:"skill",skill:"Summon Alice's Army Cards"},{id:5047,month:4,year:2011,type:"vip"},{id:5112,month:5,year:2011,type:"eudora",eudoraId:1},{id:5164,month:6,year:2011,type:"familiar",familiar:"Li'l Xenomorph"},{id:5190,month:7,year:2011,type:"item",item:"Operation Patriot Shield"},{id:4536,month:8,year:2011,type:"familiar",familiar:"Pair of Stomping Boots"},{id:5223,month:9,year:2011,type:"skill",skill:"Summon Clip Art"},{id:5301,month:10,year:2011,type:"item",item:"plastic vampire fangs"},{id:5371,month:11,year:2011,type:"familiar",familiar:"Fancypants Scarecrow"},{id:5403,month:12,year:2011,type:"campground",item:"Peppermint Pip Packet"},{id:5463,month:1,year:2012,type:"skill",skill:"Summon Resolutions"},{id:5553,month:2,year:2012,type:"item",item:["can of Rain-Doh","empty Rain-Doh can"]},{id:5639,month:3,year:2012,type:"familiar",familiar:"Happy Medium"},{id:5648,month:4,year:2012,type:"item",item:"Boris's Helm"},{id:5662,month:5,year:2012,type:"vip"},{id:5701,month:6,year:2012,type:"familiar",familiar:"Artistic Goth Kid"},{id:5738,month:7,year:2012,type:"item",item:"Camp Scout backpack"},{id:5767,month:8,year:2012,type:"familiar",familiar:"Reagnimated Gnome"},{id:5790,month:9,year:2012,type:"custom"},{id:5879,month:10,year:2012,type:"campground",item:"packet of dragon's teeth"},{id:5910,month:11,year:2012,type:"familiar",familiar:"Nanorhino"},{id:6071,month:12,year:2012,type:"skill",skill:"Summon Geeky Gifts"},{id:6150,month:1,year:2013,type:"item",item:"Snow Suit"},{id:4712,month:2,year:2013,type:"eudora",eudoraId:2},{id:6305,month:3,year:2013,type:"item",item:"Jarlsberg's Pan"},{id:6360,month:4,year:2013,type:"skill",skill:"Summon Taffy"},{id:6413,month:5,year:2013,type:"preference",preference:"ownsFloristFriar"},{id:6561,month:6,year:2013,type:"familiar",familiar:"Mini-Adventurer"},{id:6582,month:7,year:2013,type:"vip"},{id:4930,month:8,year:2013,type:"item",item:"over-the-shoulder Folder Holder"},{id:6411,month:9,year:2013,type:"familiar",familiar:"Steam-Powered Cheerleader"},{id:6784,month:10,year:2013,type:"familiar",familiar:"Reanimated Reanimator"},{id:6860,month:11,year:2013,type:"item",item:"Pantsgiving"},{id:7003,month:12,year:2013,type:"skill",skill:"Summon Smithsness"},{id:7069,month:1,year:2014,type:"campground",item:"packet of winter seeds"},{id:7200,month:2,year:2014,type:"item",item:"Buddy Bjorn"},{id:7250,month:3,year:2014,type:"item",item:"Sneaky Pete's leather jacket"},{id:7382,month:4,year:2014,type:"campground",item:"Little Geneticist DNA-Splicing Lab"},{id:7466,month:5,year:2014,type:"preference",preference:"sleazeAirportAlways"},{id:7312,month:6,year:2014,type:"familiar",familiar:"Galloping Grill"},{id:7588,month:7,year:2014,type:"vip"},{id:7706,month:8,year:2014,type:"skill",skill:"Summon Confiscated Things"},{id:7709,month:9,year:2014,type:"item",item:"Thor's Pliers"},{id:7767,month:10,year:2014,type:"preference",preference:"spookyAirportAlways"},{id:7920,month:11,year:2014,type:"familiar",familiar:"fist turkey"},{id:7956,month:12,year:2014,type:"familiar",familiar:"Crimbo Shrub"},{id:8019,month:1,year:2015,type:"preference",preference:"chateauAvailable"},{id:8134,month:2,year:2015,type:"preference",preference:"lovebugsUnlocked"},{id:8184,month:3,year:2015,type:"item",item:"The Crown of Ed the Undying"},{id:8203,month:4,year:2015,type:"preference",preference:"stenchAirportAlways"},{id:8260,month:5,year:2015,type:"campground",item:"portable Mayo Clinic"},{id:8287,month:6,year:2015,type:"familiar",familiar:["Puck Man","Ms Puck Man"]},{id:8381,month:7,year:2015,type:"item",item:"Deck of Every Card"},{id:8487,month:8,year:2015,type:"preference",preference:"hotAirportAlways"},{id:8564,month:9,year:2015,type:"preference",preference:"barrelShrineUnlocked"},{id:8639,month:10,year:2015,type:"campground"},{id:8674,month:11,year:2015,type:"preference",preference:"coldAirportAlways"},{id:8706,month:12,year:2015,type:"familiar",familiar:"Machine Elf"},{id:8705,month:1,year:2016,type:"preference",preference:"snojoAvailable"},{id:8836,month:2,year:2016,type:"preference",preference:"telegraphOfficeAvailable"},{id:8989,month:3,year:2016,type:"campground"},{id:9e3,month:4,year:2016,type:"vip"},{id:9016,month:5,year:2016,type:"familiar",familiar:"intergnat"},{id:9033,month:6,year:2016,type:"campground"},{id:9073,month:7,year:2016,type:"preference",preference:"hasDetectiveSchool"},{id:9081,month:8,year:2016,type:"item",item:"protonic accelerator pack"},{id:9103,month:9,year:2016,type:"item",item:"Time-Spinner"},{id:9136,month:10,year:2016,type:"familiar",familiar:"Trick-or-Treating Tot"},{id:9189,month:11,year:2016,type:"campground",item:"packet of thanksgarden seeds"},{id:9203,month:12,year:2016,type:"preference",preference:"gingerbreadCityAvailable"},{id:9296,month:1,year:2017,type:"familiar",familiar:"Space Jellyfish"},{id:9316,month:2,year:2017,type:"preference",preference:"loveTunnelAvailable"},{id:9401,month:3,year:2017,type:"familiar",familiar:"Robortender"},{id:9404,month:4,year:2017,type:"preference",preference:"spacegateAlways"},{id:9478,month:5,year:2017,type:"eudora",eudoraId:4},{id:9492,month:6,year:2017,type:"item",item:"Kremlin's Greatest Briefcase"},{id:9507,month:7,year:2017,type:"campground",item:"Asdon Martin keyfob"},{id:9511,month:8,year:2017,type:"skill",skill:"Meteor Lore"},{id:9528,month:9,year:2017,type:"item",item:"genie bottle"},{id:9541,month:10,year:2017,type:"familiar",familiar:"XO Skeleton"},{id:9572,month:11,year:2017,type:"item",item:"portable pantogram"},{id:9591,month:12,year:2017,type:"item",item:"mumming trunk"},{id:9689,month:1,year:2018,type:"item",item:"January's Garbage Tote"},{id:9712,month:2,year:2018,type:"vip"},{id:9759,month:3,year:2018,type:"campground",item:"packet of tall grass seeds"},{id:9835,month:4,year:2018,type:"preference",preference:"frAlways"},{id:9661,month:5,year:2018,type:"familiar",familiar:"God Lobster"},{id:9920,month:6,year:2018,type:"item",item:"SongBoom™ BoomBox"},{id:9939,month:7,year:2018,type:"familiar",familiar:"Cat Burglar"},{id:9927,month:8,year:2018,type:"item",item:"Bastille Battalion control rig"},{id:9942,month:9,year:2018,type:"preference",preference:"neverendingPartyAlways"},{id:9988,month:10,year:2018,type:"item",item:"latte lovers member's mug"},{id:9989,month:11,year:2018,type:"preference",preference:"voteAlways"},{id:10049,month:12,year:2018,type:"preference",preference:"daycareOpen"},{id:10057,month:1,year:2019,type:"item",item:"Kramco Sausage-o-Matic™"},{id:10165,month:2,year:2019,type:"item",item:"Lil' Doctor™ bag"},{id:10241,month:3,year:2019,type:"item",item:"vampyric cloake"},{id:10187,month:4,year:2019,type:"preference",preference:"prAlways"},{id:10250,month:5,year:2019,type:"item",item:"Fourth of May Cosplay Saber"},{id:10256,month:6,year:2019,type:"item",item:"hewn moon-rune spoon"},{id:10257,month:7,year:2019,type:"item",item:"Beach Comb"},{id:10292,month:8,year:2019,type:"preference",preference:"getawayCampsiteUnlocked"},{id:10323,month:9,year:2019,type:"familiar",familiar:"Pocket Professor"},{id:10332,month:10,year:2019,type:"item",item:"Eight Days a Week Pill Keeper"},{id:10334,month:11,year:2019,type:"campground",item:"diabolic pizza cube"},{id:10345,month:12,year:2019,type:"familiar",familiar:"Red-Nosed Snapper"},{id:10433,month:1,year:2020,type:"item",item:"Bird-a-Day calendar"},{id:10437,month:2,year:2020,type:"item",item:"Powerful Glove"},{id:10481,month:3,year:2020,type:"campground",item:"packet of mushroom spores"},{id:10502,month:4,year:2020,type:"familiar",familiar:"Left-Hand Man"},{id:10532,month:5,year:2020,type:"item",item:"Guzzlr tablet"},{id:10573,month:6,year:2020,type:"item",item:"Iunion Crown"},{id:10579,month:7,year:2020,type:"familiar",familiar:"Melodramedary"},{id:10581,month:8,year:2020,type:"item",item:"SpinMaster™ lathe"},{id:10635,month:9,year:2020,type:"item",item:"Cargo Cultist Shorts"},{id:10644,month:10,year:2020,type:"skill",skill:"Comprehensive Cartography"},{id:10646,month:11,year:2020,type:"item",item:"unwrapped knock-off retro superhero cape"},{id:10648,month:12,year:2020,type:"familiar",familiar:["Ghost of Crimbo Commerce","Ghost of Crimbo Carols","Ghost of Crimbo Cheer"]},{id:10729,month:1,year:2021,type:"item",item:"miniature crystal ball"},{id:10733,month:2,year:2021,type:"skill",skill:"Emotionally Chipped"},{id:10737,month:3,year:2021,type:"item",item:"potted power plant"},{id:10748,month:4,year:2021,type:"item",item:"backup camera"},{id:10750,month:5,year:2021,type:"familiar",familiar:"Shorter-Order Cook"},{id:10760,month:6,year:2021,type:"item",item:"familiar scrapbook"},{id:10761,month:7,year:2021,type:"vip"},{id:10773,month:8,year:2021,type:"eudora",eudoraId:5},{id:10796,month:9,year:2021,type:"item",item:"industrial fire extinguisher"},{id:10801,month:10,year:2021,type:"familiar",familiar:"Vampire Vintner"},{id:10803,month:11,year:2021,type:"item",item:"Daylight Shavings Helmet"},{id:10814,month:12,year:2021,type:"campground",item:"cold medicine cabinet"},{id:10890,month:1,year:2022,type:"preference",preference:"hasCosmicBowlingBall"},{id:10892,month:2,year:2022,type:"item",item:"combat lover's locket"},{id:10895,month:3,year:2022,type:"familiar",familiar:"Grey Goose"},{id:10898,month:4,year:2022,type:"item",item:"Unbreakable Umbrella"},{id:10900,month:5,year:2022,type:"preference",preference:"hasMaydayContract"},{id:10919,month:6,year:2022,type:"item",item:"June cleaver"},{id:10928,month:7,year:2022,type:"item",item:"designer sweatpants"},{id:10931,month:8,year:2022,type:"item",item:"tiny stillsuit"},{id:10951,month:9,year:2022,type:"item",item:"Jurassic Parka"},{id:10953,month:10,year:2022,type:"preference",preference:"hasAutumnaton"},{id:10966,month:11,year:2022,type:"familiar",familiar:"Cookbookbat"},{id:11044,month:12,year:2022,type:"campground",item:"model train set"},{id:11099,month:1,year:2023,type:"campground",item:"packet of rock seeds"},{id:11115,month:2,year:2023,type:"item",item:"S.I.T. Course Completion Certificate"},{id:11168,month:3,year:2023,type:"item",item:"closed-circuit pay phone"},{id:11187,month:4,year:2023,type:"item",item:"cursed monkey's paw"},{id:11222,month:5,year:2023,type:"item",item:"Cincho de Mayo"},{id:11256,month:6,year:2023,type:"item",item:"2002 Mr. Store Catalog"},{id:11300,month:7,year:2023,type:"familiar",familiar:"Patriotic Eagle"},{id:11305,month:8,year:2023,type:"item",item:"august scepter"}];var Nu=(e=>(e[e.NONE=0]="NONE",e[e.BOXED=1]="BOXED",e[e.BOUND=2]="BOUND",e))(Nu||{});function Tae(e=0){const t=JSON.stringify(nb).length;return t===e?null:{data:nb,size:t}}const Oae=(e="")=>e.split("").map((t,r)=>[nb[r].id,Number(t)]);var pm=(e=>(e[e.NONE=0]="NONE",e[e.HAVE=1]="HAVE",e))(pm||{});const $ae=e=>({id:Number(e[0]),name:e[1],image:e[3]}),Mae=async e=>{const t=await S0("items",e);return t===null?null:{...t,data:t.data.filter(r=>r.length>2).map($ae)}},Bae=(e="")=>e.split(",").map(t=>{const r=t.split(":");return[Number(r[0]),r[1]?Number(r[1]):1]}),Iae=e=>{const t=Object.fromEntries(e.split(",").map(r=>r.split(":")).map(([r,n])=>[r,r==="timestamp"?Number(n):n]));return t.version||(t.version=1),t},t6=-3,r6=-2,ib=[{id:t6,name:"Softcore",image:"itemimages/karma.gif",items:[],equipment:[7985,7986,7987,7988,7989,7990,8092,8093,8094,8095,8096,8097,8106,8107,8108,8109,8110,8111,8120,8121,8122,8123,8124,8125,10082,10083,10084,10085,10086,10087,10098,10099,10100,10101,10102,10103,10114,10115,10116,10117,10118,10119,10130,10131,10132,10133,10134,10135,11028,11029,11030,11031,11032,11033],tattoos:[{name:"Seal Clubber",image:"class1"},{name:"Turtle Tamer",image:"class2"},{name:"Pastamancer",image:"class3"},{name:"Sauceror",image:"class4"},{name:"Disco Bandit",image:"class5"},{name:"Accordion Thief",image:"class6"},{name:"Normal Ascensions",image:["asc01","asc02","asc03","asc04","asc05","asc06","asc07","asc08","asc09","asc10","asc11","asc12"]}],points:null,maxPoints:0},{id:r6,name:"Hardcore",image:"otherimages/sigils/staintat.gif",items:[],equipment:[1224,1225,1226,1227,1228,1229,7991,7992,7993,7994,7995,7996,8099,8100,8101,8102,8103,8104,8113,8114,8115,8116,8117,8118,8127,8128,8129,8130,8131,8132,10090,10091,10092,10093,10094,10095,10106,10107,10108,10109,10110,10111,10122,10123,10124,10125,10126,10127,10138,10139,10140,10141,10142,10143,11020,11021,11022,11023,11024,11025],tattoos:[{name:"Seal Clubber",image:"class1hc"},{name:"Turtle Tamer",image:"class2hc"},{name:"Pastamancer",image:"class3hc"},{name:"Sauceror",image:"class4hc"},{name:"Disco Bandit",image:"class5hc"},{name:"Accordion Thief",image:"class6hc"},{name:"Hardcore Ascensions",image:["hasc01","hasc02","hasc03","hasc04","hasc05","hasc06","hasc07","hasc08","hasc09","hasc10","hasc11","hasc12"]}],points:null,maxPoints:0},{id:-1,name:"Bad Moon",image:"otherimages/sigils/brimtat.gif",items:[],equipment:[2814,2815,2817,2818,2816,2813],tattoos:[],points:null,maxPoints:0},{id:1,name:"Boozetafarian",image:"itemimages/martini.gif",items:[],equipment:[],tattoos:[{name:"Hardcore Boozetafarian",image:"nofood"}],points:null,maxPoints:0},{id:2,name:"Teetotaler",image:"itemimages/bowl.gif",items:[],equipment:[],tattoos:[{name:"Hardcore Teetotaler",image:"nobeer"}],points:null,maxPoints:0},{id:3,name:"Oxygenarian",image:"itemimages/smalloxy.gif",items:[],equipment:[1230,1231,1232,1233,1234,1235],tattoos:[{name:"Hardcore Oxygenarian",image:"oxy"}],points:null,maxPoints:0},{id:4,name:"Bees Hate You",image:"itemimages/beeicon.gif",items:[5141],equipment:[],tattoos:[],points:null,maxPoints:0},{id:6,name:"Way of the Surprising Fist",image:"itemimages/wosp_fist.gif",items:[5222],equipment:[],tattoos:[],points:null,maxPoints:0},{id:7,name:"Trendy",image:"itemimages/trendyicon.gif",items:[5392],equipment:[],tattoos:[],points:null,maxPoints:0},{id:8,name:"Avatar of Boris",image:"itemimages/trusty.gif",items:[5572],equipment:[],tattoos:[{name:"Boris",image:"class11"},{name:"Hardcore Boris",image:"class11hc"}],points:"borisPoints",maxPoints:29},{id:9,name:"Bugbear Invasion",image:"itemimages/familiar39.gif",items:[5694],equipment:[],tattoos:[],points:null,maxPoints:0},{id:10,name:"Zombie Slayer",image:"itemimages/tombstone.gif",items:[5773],equipment:[],tattoos:[{name:"Zombie Slayer",image:"class12"},{name:"Hardcore Zombie Slayer",image:"class12hc"}],points:"zombiePoints",maxPoints:30},{id:11,name:"Class Act",image:"itemimages/motorboat.gif",items:[6045],equipment:[],tattoos:[],points:null,maxPoints:0},{id:12,name:"Avatar of Jarlsberg",image:"itemimages/jarlhat.gif",items:[6298],equipment:[],tattoos:[{name:"Jarlsberg",image:"class14"},{name:"Hardcore Jarlsberg",image:"class14hc"}],points:"jarlsbergPoints",maxPoints:30},{id:14,name:"BIG!",image:"itemimages/bigicon.gif",items:[6547],equipment:[],tattoos:[],points:null,maxPoints:0},{id:15,name:"KOLHS",image:"itemimages/kolhsicon.gif",items:[6676],equipment:[],tattoos:[],points:"yearbookCameraAscensions",maxPoints:20},{id:16,name:"Class Act II: A Class For Pigs",image:"itemimages/motorboat2.gif",items:[6899],equipment:[],tattoos:[],points:null,maxPoints:0},{id:17,name:"Avatar of Sneaky Pete",image:"itemimages/bigglasses.gif",items:[7249],equipment:[],tattoos:[{name:"Sneaky Pete",image:"class15"},{name:"Hardcore Sneaky Pete",image:"class15hc"}],points:"sneakyPetePoints",maxPoints:30},{id:18,name:"Slow and Steady",image:"itemimages/sas.gif",items:[7498],equipment:[],tattoos:[],points:null,maxPoints:0},{id:19,name:"Heavy Rains",image:"itemimages/familiar31.gif",items:[7668],equipment:[],tattoos:[],points:["heavyRainsStartingLightning","heavyRainsStartingThunder","heavyRainsStartingRain"],maxPoints:9},{id:21,name:"Picky",image:"itemimages/pickypath.gif",items:[7935,7936],equipment:[],tattoos:[],points:null,maxPoints:0},{id:22,name:"Standard",image:"itemimages/standardicon.gif",items:[],equipment:[],tattoos:[],points:null,maxPoints:0},{id:23,name:"Actually Ed the Undying",image:"itemimages/scarab.gif",items:[8087],equipment:[],tattoos:[{name:"Ed the Undying",image:"class17"},{name:"Hardcore Ed the Undying",image:"class17hc"}],points:"edPoints",maxPoints:20},{id:24,name:"Crazy Random Summer",image:"itemimages/dice.gif",items:[8296],equipment:[],tattoos:[],points:null,maxPoints:0},{id:25,name:"Community Service",image:"itemimages/csplaquesmall.gif",items:[8556],equipment:[],tattoos:[],points:null,maxPoints:0},{id:26,name:"Avatar of West of Loathing",image:"itemimages/badge.gif",items:[8984],equipment:[],tattoos:[{name:"Cow Puncher",image:"class18"},{name:"Hardcore Cow Puncher",image:"class18hc"},{name:"Beanslinger",image:"class19"},{name:"Hardcore Beanslinger",image:"class19hc"},{name:"Snake Oiler",image:"class20"},{name:"Hardcore Snake Oiler",image:"class20hc"}],points:["awolPointsCowpuncher","awolPointsBeanslinger","awolPointsSnakeoiler"],maxPoints:30},{id:27,name:"The Source",image:"itemimages/ss_datasiphon.gif",items:[9031],equipment:[],tattoos:[],points:"sourcePoints",maxPoints:12},{id:28,name:"Nuclear Autumn",image:"itemimages/radiation.gif",items:[9099,9084],equipment:[],tattoos:[],points:"nuclearAutumnPoints",maxPoints:23},{id:29,name:"Gelatinous Noob",image:"itemimages/gcube.gif",items:[9346],equipment:[],tattoos:[{name:"Gelatinous Noob",image:"class23"},{name:"Hardcore Gelatinous Noob",image:"class23hc"}],points:"noobPoints",maxPoints:20},{id:30,name:"License to Adventure",image:"itemimages/briefcase.gif",items:[9488],equipment:[],tattoos:[],points:"bondPoints",maxPoints:23},{id:31,name:"Live. Ascend. Repeat.",image:"itemimages/watch.gif",items:[9525,9526],equipment:[],tattoos:[],points:null,maxPoints:0},{id:32,name:"Pocket Familiars",image:"itemimages/spiritorb.gif",items:[9758],equipment:[],tattoos:[],points:"todo: make a pref that tracks starting pokedollars",maxPoints:10},{id:33,name:"G-Lover",image:"itemimages/g-loveheart.gif",items:[9917,9910],equipment:[],tattoos:[{name:"Gattoo",image:"gtat"}],points:"gloverPoints",maxPoints:10},{id:34,name:"Disguises Delimit",image:"itemimages/dd_icon.gif",items:[9941],equipment:[],tattoos:[],points:"masksUnlocked",maxPoints:25},{id:35,name:"Dark Gyffte",image:"itemimages/darkgift.gif",items:[10184],equipment:[],tattoos:[{name:"Vampyre",image:"class24"},{name:"Hardcore Vampyre",image:"class24hc"}],points:"darkGyfftePoints",maxPoints:23},{id:36,name:"Two Crazy Random Summer",image:"itemimages/twocrazydice.gif",items:[10253,10252],equipment:[],tattoos:[],points:"twoCRSPoints",maxPoints:37},{id:37,name:"Kingdom of Exploathing",image:"itemimages/puff.gif",items:[10319],equipment:[],tattoos:[],points:"skillLevel188",maxPoints:13},{id:38,name:"Path of the Plumber",image:"itemimages/mario_mushroom1.gif",items:[10470,10501],equipment:[],tattoos:[{name:"Plumber",image:"class25"},{name:"Hardcore Plumber",image:"class25hc"}],points:"plumberPoints",maxPoints:11},{id:39,name:"Low Key Summer",image:"itemimages/littlelock.gif",items:[10570],equipment:[],tattoos:[],points:null,maxPoints:0},{id:40,name:"Grey Goo",image:"itemimages/greygooball.gif",items:[10601],equipment:[],tattoos:[],points:null,maxPoints:0},{id:41,name:"You, Robot",image:"itemimages/robobattery.gif",items:[10736],equipment:[],tattoos:[],points:"youRobotPoints",maxPoints:12},{id:42,name:"Quantum Terrarium",image:"itemimages/quantum.gif",items:[10757,10758],equipment:[],tattoos:[],points:"quantumPoints",maxPoints:11},{id:43,name:"Wildfire",image:"itemimages/fire.gif",items:[10791],equipment:[],tattoos:[],points:null,maxPoints:0},{id:44,name:"Grey You",image:"itemimages/greygooring.gif",items:[10894],equipment:[],tattoos:[{name:"Grey Goo",image:"class27"},{name:"Hardcore Grey Goo",image:"class27hc"}],points:"greyYouPoints",maxPoints:11},{id:45,name:"Journeyman",image:"itemimages/map.gif",items:[10918,10917],equipment:[],tattoos:[],points:null,maxPoints:0},{id:46,name:"Fall of the Dinosaurs",image:"itemimages/dinostuffy.gif",items:[10950,10949],equipment:[],tattoos:[],points:null,maxPoints:0},{id:47,name:"Avatar of Shadows Over Loathing",image:"itemimages/aosol.gif",items:[11166],equipment:[],tattoos:[{name:"Pig Skinner",image:"class28"},{name:"Hardcore Pig Skinner",image:"class28hc"},{name:"Cheese Wizard",image:"class29"},{name:"Hardcore Cheese Wizard",image:"class29hc"},{name:"Jazz Agent",image:"class30"},{name:"Hardcore Jazz Agent",image:"class30hc"}],points:["asolPointsPigSkinner","asolPointsCheeseWizard","asolPointsJazzAgent"],maxPoints:11},{id:48,name:"Legacy of Loathing",image:"itemimages/xx.gif",items:[11255],equipment:[],tattoos:[],points:"legacyPoints",maxPoints:19}];function Rae(e=0){const t=JSON.stringify(ib).length;return t===e?null:{data:ib,size:t}}const jae=32,Fae=16,Nae=(e="")=>{const t=e.split(",");return ib.map(r=>{let n=(t[r.id+3]||"").padEnd(r.items.length+r.equipment.length+r.tattoos.length,"0");const i=parseInt(n.substring(0,1),jae);n=n.substring(1);const a=n.substring(0,r.items.length).split("").map(u=>Number(u));n=n.substring(r.items.length);const o=n.substring(0,r.equipment.length).split("").map(u=>Number(u));n=n.substring(r.equipment.length);const s=n.split("").map(u=>parseInt(u,Fae));return[r.id,i,a,o,s]})};var qn=(e=>(e[e.NONE=0]="NONE",e[e.SOFTCORE=1]="SOFTCORE",e[e.HARDCORE=2]="HARDCORE",e))(qn||{});const Lae=e=>{switch(e){case 46:return 10;case 47:return 10;case 48:return 10;case 107:return 9;case 117:return 11;case 188:return 13;default:return 0;case 118:return 7;case 121:return 6;case 128:return 6;case 134:return 6;case 135:return 2;case 144:return 5;case 180:return 4;case 7254:return 3}},zae=e=>{if(e<10||e>20&&e<=27||e>63&&e<=73||e>7175&&e<7181)return!1;switch(e){case 91:case 116:return!1;case 49:case 50:case 51:case 52:case 3024:return!1;case 6019:return!1;case 17047:return!0;case 156:return!1;case 174:return!1;case 218:case 219:case 220:return!1;case 222:return!1;case 7254:return!0}switch(Math.floor(e/1e3)){case 7:case 8:case 11:case 12:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 27:case 28:case 29:case 30:return!1}return!0},Vae=e=>({id:Number(e[0]),name:e[1],image:e[2],permable:zae(Number(e[0]))}),qae=async e=>{const t=await S0("classskills",e);return t===null?null:{...t,data:t.data.filter(r=>r.length>2).map(Vae)}},Uae=(e="")=>{let t=1;const r=[];for(let n=0;n(e[e.NONE=0]="NONE",e[e.HAVE_OUTFIT=1]="HAVE_OUTFIT",e[e.HAVE=2]="HAVE",e))(ts||{});function Hae(e=0){const t=JSON.stringify(BD).length;return t===e?null:{data:BD,size:t}}const Wae=(e="")=>e.split("").map((t,r)=>[r+1,Number(t)]),ID=[{id:1,name:"Little Boat",image:"gonna_need_a_smaller_boat"},{id:2,name:"Big Boat",image:"party_on_the_big_boat"},{id:3,name:"I Heart Canadia",image:"get_oot_eh"},{id:4,name:"100 Pound Load",image:"heavy_lourde"},{id:5,name:"300 Pound Load",image:"crushed_under_pets"},{id:6,name:"Silver Yeti",image:"awwwwww"},{id:7,name:"Golden Yeti",image:"yeti_pants_now"},{id:8,name:"Palindrophy",image:"a_dog_a_plan"},{id:9,name:"Platinum Skull",image:"big_head_todd"},{id:10,name:"Disgusting Cocktail",image:"the_nastiest_cocktail"},{id:11,name:"The Ghuol Cup",image:"ghuolishly_good"},{id:12,name:"Der Toastdieb",image:"you_done_took_my_toast"},{id:14,name:"Easy Come Easy Go",image:"van_went"},{id:15,name:"Bouquet of Hippies",image:"dirt_and_dirty"},{id:16,name:"Weeping Pizza",image:"angst_with_extra_cheese"},{id:17,name:"Black Hole Terrarium",image:"he_aint_heavy_hes_my_familiar"},{id:18,name:"Failure To Communicate",image:"shakin_the_bush_here_boss"},{id:19,name:"Tiny Plastic Trophy",image:"nice_trophy_pablo_honey"},{id:20,name:"99 Red Balloons",image:"in_a_little_toy_shop"},{id:21,name:"Gadget Inspector",image:"go_go_gadget_trophy"},{id:22,name:"Boss Boss",image:"dancing_in_the_dark"},{id:23,name:"Jack of Several Trades",image:"master_of_nuns"},{id:24,name:"Gourdcore",image:"gored_to_the_core"},{id:25,name:"Let My Bugbears Go!",image:"you_damned_dirty_human"},{id:26,name:"Trivially Skilled",image:"look_what_i_can_do"},{id:27,name:"This Lousy Trophy",image:"not_worth_the_wait"},{id:28,name:"Three-Tiered Trophy",image:"no_less_than_three"},{id:29,name:"Friend of Elves",image:"thats_too_friendly_pippin"},{id:30,name:"Reindeer Hunter",image:"run_over_by_grandma"},{id:31,name:"Brass Bowling Trophy Trophy",image:"the_dude_abides"},{id:32,name:"Look, Ma! No Pants!",image:"not_wearing_any_pants"},{id:33,name:"Slice and Dice",image:"with_friends_like_these"},{id:34,name:"Gender Bender",image:"ladies_and_gentlemen"},{id:35,name:"Golden Meat Stack",image:"hood_ornament"},{id:36,name:"Your Log Saw Something That Night",image:"better_than_bad_its_good"},{id:37,name:"Little Chickadee",image:"no_well_ten_beers"},{id:38,name:"The Three Amigos",image:"you_shot_the_invisible_swordsman"},{id:39,name:"Festive Dismemberment",image:"in_deep_end_ents"},{id:40,name:"Best Meal of My Life",image:"also_ate_zarathustra"},{id:41,name:"Scourge of Seals",image:"undercover_clubber"},{id:42,name:"Tzar of Turtles",image:"tortoise_reform"},{id:43,name:"Potentate of Pasta",image:"stop_noodling_around"},{id:44,name:"Sauciest Saucier",image:"lost_in_the_sauce_once_again"},{id:45,name:"Duke of Disco",image:"saturday_night_inferno"},{id:46,name:"Maestro of Mariachi",image:"dance_round_the_room_to_accordion_keys"},{id:47,name:"The Butler Did It",image:"your_mom_knows_the_butler"},{id:48,name:"Slapstick",image:"whoops_whoops_whoops"},{id:49,name:"Moderation In All Things",image:"eliza_knew_best"},{id:50,name:"The Right Tool For The Job",image:"and_a_filthy_job_it_is"},{id:51,name:"Hothouse Hero",image:"gonna_go_fondle_my_sweaters"},{id:52,name:"Cool Customer",image:"like_a_cucumber_on_pluto"},{id:53,name:"Dreadful, Just Dreadful",image:"horror_has_a_new_name"},{id:54,name:"Malodorous",image:"melodious_and_mellifluous"},{id:55,name:"Wink Wink, Nudge Nudge",image:"this_parrot_is_nude"},{id:56,name:"Crossroads",image:"my_shrimps_was_dead_and_gone"},{id:57,name:"Friend of the Devils",image:"jeremiah_was_a_bullfrog"},{id:58,name:"Bringer of Storms",image:"jeff_was_right"},{id:59,name:"Eerily Skilled",image:"howd_you_do_that_man_thats_creepy"},{id:60,name:"I Love A Parade",image:"but_it_doesnt_love_me_back"},{id:61,name:"Awwww, Yeah",image:"dont_worry_your_pretty_little_head"},{id:62,name:"Phileas Foggy",image:"just_like_tara_reid"},{id:63,name:"Extinctionist",image:"you_were_devoutly_aligned"},{id:64,name:"Dirty Laundry",image:"kick_em_when_theyre_up"},{id:65,name:"Amateur Tour Guide",image:"this_boat_sucks"},{id:66,name:"Professional Tour Guide",image:"now_ive_seen_it_all"},{id:67,name:"Brave Sir Robin",image:"in_soviet_russia_minstrels_eat_you"},{id:68,name:"Desert Wind",image:"what_the_hell_are_colitas_anyway"},{id:69,name:"Two-Tiered Tiny Plastic Trophy",image:"just_like_grandmas_dentures"},{id:70,name:"Master Paster",image:"who_runs_bartertown"},{id:71,name:"Golden Spatula",image:"and_thats_all"},{id:72,name:"Melon Baller, Shot Caller",image:"i_hardly_know_her"},{id:73,name:"BAM!",image:"what_do_you_want_on_your_tombstone"},{id:74,name:"Speakeasy Savant",image:"ill_make_a_note_of_it"},{id:75,name:"Honky Tonk Hero",image:"hippy_hippy_shake"},{id:76,name:"Cantina Commander",image:"on_channel_z"},{id:77,name:"Apprentice Meatsmacker",image:"tong_tong_tong_tong_ta_tong_tong"},{id:78,name:"Journeyman Meatsmacker",image:"now_all_you_need_is_a_sickle"},{id:79,name:"Master Meatsmacker",image:"two_tickets_to_anville"},{id:80,name:"Preciousss",image:"hey_vern_its_jewels"},{id:81,name:"The One That Didn't Get Away",image:"visitors_stink_earlier"},{id:82,name:"Losing Your Marbles",image:"garble_varble_zous"},{id:83,name:"Hunter In Darkness",image:"dodecahardon"},{id:84,name:"Evil's Okay in My Book",image:"im_a_little_bit_country"},{id:85,name:"A Little Help From My Friends",image:"oh_i_get_by"},{id:86,name:"Dancing With the Stars",image:"every_which_way_but_footloose"},{id:87,name:"Every Part of the Seal",image:"especially_those_face_scars"},{id:88,name:"Spaghettihose",image:"screw_you_atkins"},{id:89,name:"Color Wheel of Yuck",image:"please_dont_taste_the_rainbow"},{id:90,name:"Septuple Platinum",image:"steal_this_music"},{id:91,name:"Professional Photographer",image:"raggedy_annie_leibovitz"},{id:92,name:"General Assembler",image:"thats_numberwang"},{id:93,name:"Penultimate Fantasy VII",image:"aeris_kills_dumbledore"},{id:94,name:"The Wrong Place at the Right Time",image:"ocd_genocide"},{id:95,name:"Who Hustles The Hustlers?",image:"giant_blue_pool_cue"},{id:96,name:"A Screw Ain't One",image:"in_a_fruit_fight"},{id:97,name:"Had to Have Caught Them All",image:"ocd_i_choose_you"},{id:98,name:"Buzzkill",image:"ow_my_everything"},{id:99,name:"Elf Barker",image:"spay_or_neuter_your_pets"},{id:100,name:"Mixed Martial Arts",image:"sweat_grope_punch_repeat"},{id:101,name:"Hadouken!",image:"tatsumaki_senpuu_kyaku"},{id:102,name:"Good Will Punching",image:"fisting_for_dollars"},{id:103,name:"Moving Target",image:"wal_mart_is_stationary"},{id:104,name:"Grand Slammer",image:"gonna_need_a_bigger_plaque"},{id:105,name:"And My Axe",image:"look_out_death_adder"},{id:106,name:"Spirited Drinker",image:"never_sicker"},{id:107,name:"Papier Than Thou",image:"papier_i_hardly_know_her"},{id:108,name:"Fantastic Voyager",image:"for_your_weiner_am_i_right_ha_ha_ha"},{id:109,name:"Haggis Haggis Haggis Haggis Haggis",image:"haggis_is_as_haggis_does"},{id:110,name:"Now You've Tasted Everything",image:"i_can_taste_the_cosmos"},{id:111,name:"The Old College Try",image:"natures_harmonic"},{id:112,name:"Great Responsibility",image:"time_to_get_a_dog_i_guess"},{id:113,name:"Three-Tiered Tiny Plastic Trophy",image:"little_asian_different"},{id:114,name:"Cosmic Thing",image:"fruity_egocentric_magician"},{id:115,name:"Right Outfit, Wrong Place",image:"more_or_less_right_time"},{id:116,name:"Dreadful Rainbow",image:"taste_the_pain"},{id:117,name:"Horror Enthusiast",image:"ermagerd_berks"},{id:118,name:"Full Heart",image:"clear_eyes_dumb_shirt"},{id:119,name:"Extended Capacity",image:"warranty_sold_separately"},{id:120,name:"Kissing Maniac",image:"bastard_son_thereof"},{id:121,name:"Cruising For Six Bruisings",image:"dont_bleed_it_all_in_one_place"},{id:122,name:"Eleven Down, None to Go",image:"this_is_getting_ridiculous"},{id:123,name:"Purity of Essence",image:"could_you_describe_the_ruckus"},{id:124,name:"Ansel Adams Jr.",image:"who_here_knows_quark_express"},{id:125,name:"No Particular Reason",image:"take_a_chanceacus"},{id:126,name:"Bronzed Tin Can",image:"put_gilded_lilies_in_it"},{id:127,name:"True Believer",image:"wheel_of_space"},{id:128,name:"EEZY PEEZY",image:"pez_porridge_hot"},{id:129,name:"Very Like a Whale",image:"oh_no_not_again"},{id:130,name:"Gyro Hero",image:"hero_dreams_of_gyros"},{id:131,name:"Alia Iacta Est",image:"d_c_cab_squared"},{id:132,name:"Always Cloaca Cola",image:"the_choice_of_an_old_generation"},{id:133,name:"Thar She Blows!",image:"barfily_ever_after"},{id:134,name:"Partners in Crime",image:"criminal_conspiracy"},{id:135,name:"Party Killer",image:"you_ruin_everything"},{id:136,name:"Master Craftsman",image:"the_harder_side_of_sears"},{id:137,name:"Cool Guy",image:"cool_gold_jeff_game_cool"},{id:138,name:"Option Paralysis",image:"shirto_redbetter"},{id:139,name:"Omni-Cosplay",image:"may_the_force_boldy_go_a_wizard"},{id:140,name:"11 Martini Breakfast",image:"she_told_me_to_pick_up_olives"},{id:141,name:"Golden Pickaxe",image:"baloneysaurux_text"},{id:142,name:"Golden Idol",image:"bananarama_crux"},{id:143,name:"Golden Moustache",image:"badonkadonkus_flex"},{id:144,name:"Golden Burglar",image:"banangrama_xer"},{id:146,name:"Some Assembly Required",image:"college_kids_and_divorced_men"},{id:147,name:"Bucket List",image:"anger_management_about_schmidt"},{id:148,name:"Gotpork Connoisseur",image:"this_town_needs_an_enema"},{id:149,name:"A Gallon of Milk Keeps the Doctor Away",image:"this_this_lemonade"},{id:150,name:"Prime Directive Director",image:"ilovewesley"},{id:151,name:"Tentacle Tickler",image:"oh_the_horror"},{id:152,name:"LOVE, LOVE, LOVE",image:"all_you_need_is_it"},{id:153,name:"Gelatinous Hubris",image:"i_had_to_drink_from_the_liquid_cup"},{id:154,name:"Salads of Many Worlds",image:"in_space_noone_can_hear_you_laugh"},{id:155,name:"Ultimate Cosmic Power",image:"eleven_inch_flautist"},{id:156,name:"Commemorative Replica Blob",image:"cross_about_naught"},{id:157,name:"You Do It To Yourself",image:"working_class_republican"},{id:158,name:"Traditional Crimbo",image:"yule_be_happy"},{id:159,name:"Steak and a Beer, Eh?",image:"we_found_a_dead_mouse"},{id:160,name:"Talking Heads",image:"twenty_two_eyes"},{id:161,name:"Yule Have a Headache Tomorrow",image:"cuppa_cuppa_burning_goo"},{id:162,name:"Dreaming of a Bland Crimbo",image:"every_christmas_is_like_sunday"},{id:163,name:"HIGH SCORE",image:"no_religion_too"}];var A0=(e=>(e[e.NONE=0]="NONE",e[e.HAVE=1]="HAVE",e))(A0||{});function Gae(e=0){const t=JSON.stringify(ID).length;return t===e?null:{data:ID,size:t}}const Kae=(e="")=>e.split("").map((t,r)=>[r+1,Number(t)]),RD=[{name:"Seal Clubber",id:1,image:"club"},{name:"Turtle Tamer",id:2,image:"turtle"},{name:"Pastamancer",id:3,image:"pasta"},{name:"Sauceror",id:4,image:"saucepan"},{name:"Disco Bandit",id:5,image:"discoball"},{name:"Accordion Thief",id:6,image:"accordion"},{name:"Avatar of Boris",id:11,image:"trusty"},{name:"Zombie Master",id:12,image:"tombstone"},{name:"Avatar of Jarlsberg",id:14,image:"path12icon"},{name:"Avatar of Sneaky Pete",id:15,image:"bigglasses"},{name:"Ed the Undying",id:17,image:"thoth"},{name:"Cow Puncher",id:18,image:"darkcow"},{name:"Beanslinger",id:19,image:"beancan"},{name:"Snake Oiler",id:20,image:"tinysnake"},{name:"Gelatinous Noob",id:23,image:"gelatinousicon"},{name:"Vampyre",id:24,image:"vampirefangs"},{name:"Plumber",id:25,image:"mario_hammer2"},{name:"Grey Goo",id:27,image:"greygooring"},{name:"Pig Skinner",id:28,image:"football2"},{name:"Cheese Wizard",id:29,image:"jarl_cheeseslice"},{name:"Jazz Agent",id:30,image:"motif"}];function Yae(e){const t=JSON.stringify(RD).length;return t===e?null:{data:RD,size:t}}const Xae=e=>({id:Number(e[0]),name:e[1],image:e[2]}),Qae=async e=>{const t=await S0("statuseffects",e);return t===null?null:{...t,data:t.data.filter(r=>r.length>2).map(Xae)}},Jae=2;function jD(e){const t=Cae.uncrush(decodeURIComponent(e.replace(/\n/g,""))),r=JSON.parse(t);return{meta:Iae(r.meta),skills:Uae(r.skills),familiars:Pae(r.familiars),trophies:Kae(r.trophies),outfitTattoos:Wae(r.outfitTattoos),paths:Nae(r.paths),iotms:Oae(r.iotms),items:Bae(r.items)}}var YS="persist:",XS="persist/FLUSH",C0="persist/REHYDRATE",QS="persist/PAUSE",JS="persist/PERSIST",ZS="persist/PURGE",eA="persist/REGISTER",Zae=-1;function lh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lh=function(r){return typeof r}:lh=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},lh(e)}function FD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eoe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function foe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var doe=5e3;function poe(e,t){var r=e.version!==void 0?e.version:Zae;e.debug;var n=e.stateReconciler===void 0?roe:e.stateReconciler,i=e.getStoredState||aoe,a=e.timeout!==void 0?e.timeout:doe,o=null,s=!1,u=!0,l=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(c,f){var d=c||{},h=d._persist,g=coe(d,["_persist"]),p=g;if(f.type===JS){var b=!1,y=function(k,E){b||(f.rehydrate(e.key,k,E),b=!0)};if(a&&setTimeout(function(){!b&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),u=!1,o||(o=noe(e)),h)return Ei({},t(p,f),{_persist:h});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(A){var k=e.migrate||function(E,T){return Promise.resolve(E)};k(A,r).then(function(E){y(E)},function(E){y(void 0,E)})},function(A){y(void 0,A)}),Ei({},t(p,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===ZS)return s=!0,f.result(soe(e)),Ei({},t(p,f),{_persist:h});if(f.type===XS)return f.result(o&&o.flush()),Ei({},t(p,f),{_persist:h});if(f.type===QS)u=!0;else if(f.type===C0){if(s)return Ei({},p,{_persist:Ei({},h,{rehydrated:!0})});if(f.key===e.key){var v=t(p,f),m=f.payload,x=n!==!1&&m!==void 0?n(m,c,v,e):v,w=Ei({},x,{_persist:Ei({},h,{rehydrated:!0})});return l(w)}}}if(!h)return t(c,f);var S=t(p,f);return S===p?c:l(Ei({},S,{_persist:h}))}}function LD(e){return goe(e)||moe(e)||hoe()}function hoe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function moe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function goe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:n6,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case eA:return ab({},t,{registry:[].concat(LD(t.registry),[r.key])});case C0:var n=t.registry.indexOf(r.key),i=LD(t.registry);return i.splice(n,1),ab({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function boe(e,t,r){var n=r||!1,i=WS(yoe,n6,t&&t.enhancer?t.enhancer:void 0),a=function(l){i.dispatch({type:eA,key:l})},o=function(l,c,f){var d={type:C0,payload:c,err:f,key:l};e.dispatch(d),i.dispatch(d),n&&s.getState().bootstrapped&&(n(),n=!1)},s=ab({},i,{purge:function(){var l=[];return e.dispatch({type:ZS,result:function(f){l.push(f)}}),Promise.all(l)},flush:function(){var l=[];return e.dispatch({type:XS,result:function(f){l.push(f)}}),Promise.all(l)},pause:function(){e.dispatch({type:QS})},persist:function(){e.dispatch({type:JS,register:a,rehydrate:o})}});return t&&t.manualPersist||s.persist(),s}var tA={},rA={};rA.__esModule=!0;rA.default=Soe;function ch(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ch=function(r){return typeof r}:ch=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ch(e)}function Ty(){}var xoe={getItem:Ty,setItem:Ty,removeItem:Ty};function woe(e){if((typeof self>"u"?"undefined":ch(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return!1}return!0}function Soe(e){var t="".concat(e,"Storage");return woe(t)?self[t]:xoe}tA.__esModule=!0;tA.default=_oe;var Aoe=Coe(rA);function Coe(e){return e&&e.__esModule?e:{default:e}}function _oe(e){var t=(0,Aoe.default)(e);return{getItem:function(n){return new Promise(function(i,a){i(t.getItem(n))})},setItem:function(n,i){return new Promise(function(a,o){a(t.setItem(n,i))})},removeItem:function(n){return new Promise(function(i,a){i(t.removeItem(n))})}}}var i6=void 0,koe=Eoe(tA);function Eoe(e){return e&&e.__esModule?e:{default:e}}var Doe=(0,koe.default)("local");i6=Doe;/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const a6=Symbol("Comlink.proxy"),Poe=Symbol("Comlink.endpoint"),Toe=Symbol("Comlink.releaseProxy"),Oy=Symbol("Comlink.finalizer"),fh=Symbol("Comlink.thrown"),o6=e=>typeof e=="object"&&e!==null||typeof e=="function",Ooe={canHandle:e=>o6(e)&&e[a6],serialize(e){const{port1:t,port2:r}=new MessageChannel;return u6(e,t),[r,[r]]},deserialize(e){return e.start(),c6(e)}},$oe={canHandle:e=>o6(e)&&fh in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},s6=new Map([["proxy",Ooe],["throw",$oe]]);function Moe(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function u6(e,t=globalThis,r=["*"]){t.addEventListener("message",function n(i){if(!i||!i.data)return;if(!Moe(r,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}const{id:a,type:o,path:s}=Object.assign({path:[]},i.data),u=(i.data.argumentList||[]).map(Co);let l;try{const c=s.slice(0,-1).reduce((d,h)=>d[h],e),f=s.reduce((d,h)=>d[h],e);switch(o){case"GET":l=f;break;case"SET":c[s.slice(-1)[0]]=Co(i.data.value),l=!0;break;case"APPLY":l=f.apply(c,u);break;case"CONSTRUCT":{const d=new f(...u);l=Noe(d)}break;case"ENDPOINT":{const{port1:d,port2:h}=new MessageChannel;u6(e,h),l=Foe(d,[d])}break;case"RELEASE":l=void 0;break;default:return}}catch(c){l={value:c,[fh]:0}}Promise.resolve(l).catch(c=>({value:c,[fh]:0})).then(c=>{const[f,d]=gm(c);t.postMessage(Object.assign(Object.assign({},f),{id:a}),d),o==="RELEASE"&&(t.removeEventListener("message",n),l6(t),Oy in e&&typeof e[Oy]=="function"&&e[Oy]())}).catch(c=>{const[f,d]=gm({value:new TypeError("Unserializable return value"),[fh]:0});t.postMessage(Object.assign(Object.assign({},f),{id:a}),d)})}),t.start&&t.start()}function Boe(e){return e.constructor.name==="MessagePort"}function l6(e){Boe(e)&&e.close()}function c6(e,t){return ob(e,[],t)}function vp(e){if(e)throw new Error("Proxy has been released and is not useable")}function f6(e){return ks(e,{type:"RELEASE"}).then(()=>{l6(e)})}const hm=new WeakMap,mm="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(hm.get(e)||0)-1;hm.set(e,t),t===0&&f6(e)});function Ioe(e,t){const r=(hm.get(t)||0)+1;hm.set(t,r),mm&&mm.register(e,t,e)}function Roe(e){mm&&mm.unregister(e)}function ob(e,t=[],r=function(){}){let n=!1;const i=new Proxy(r,{get(a,o){if(vp(n),o===Toe)return()=>{Roe(i),f6(e),n=!0};if(o==="then"){if(t.length===0)return{then:()=>i};const s=ks(e,{type:"GET",path:t.map(u=>u.toString())}).then(Co);return s.then.bind(s)}return ob(e,[...t,o])},set(a,o,s){vp(n);const[u,l]=gm(s);return ks(e,{type:"SET",path:[...t,o].map(c=>c.toString()),value:u},l).then(Co)},apply(a,o,s){vp(n);const u=t[t.length-1];if(u===Poe)return ks(e,{type:"ENDPOINT"}).then(Co);if(u==="bind")return ob(e,t.slice(0,-1));const[l,c]=VD(s);return ks(e,{type:"APPLY",path:t.map(f=>f.toString()),argumentList:l},c).then(Co)},construct(a,o){vp(n);const[s,u]=VD(o);return ks(e,{type:"CONSTRUCT",path:t.map(l=>l.toString()),argumentList:s},u).then(Co)}});return Ioe(i,e),i}function joe(e){return Array.prototype.concat.apply([],e)}function VD(e){const t=e.map(gm);return[t.map(r=>r[0]),joe(t.map(r=>r[1]))]}const d6=new WeakMap;function Foe(e,t){return d6.set(e,t),e}function Noe(e){return Object.assign(e,{[a6]:!0})}function gm(e){for(const[t,r]of s6)if(r.canHandle(e)){const[n,i]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},i]}return[{type:"RAW",value:e},d6.get(e)||[]]}function Co(e){switch(e.type){case"HANDLER":return s6.get(e.name).deserialize(e.value);case"RAW":return e.value}}function ks(e,t,r){return new Promise(n=>{const i=Loe();e.addEventListener("message",function a(o){!o.data||!o.data.id||o.data.id!==i||(e.removeEventListener("message",a),n(o.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:i},t),r)})}function Loe(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function zoe(){return new Worker("/assets/duplicateFinder-fc6003f2.js")}const p6=Aae(),Voe=p6.startListening;Voe({predicate:(e,t)=>!(![vm.fulfilled,ym.fulfilled,bm.fulfilled,xm.fulfilled,wm.fulfilled,Sm.fulfilled].some(r=>r.match(e))||e.payload===null||sb.some(r=>t.loading[r])||t.loading.wikiClashes),effect:async(e,{getState:t,dispatch:r})=>{const n=t(),i=sb.map(a=>n[a]).flat().reduce((a,o)=>"name"in o?[...a,o.name]:a,[]);r(dh(i))}});const qoe=c6(new zoe),dh=Dn("wikiClashes/process",async e=>await qoe(e)),sb=["classes","effects","familiars","iotms","items","paths","skills","tattoos","trophies"],Uoe={playerId:null,favouritePlayerId:null,playerData:null,classes:[],effects:[],familiars:[],iotms:[],items:[],paths:[],skills:[],tattoos:[],trophies:[],wikiClashes:[],sizeAtLastFetch:{classes:0,effects:0,familiars:0,iotms:0,items:0,paths:0,skills:0,tattoos:0,trophies:0},loading:{classes:!1,effects:!1,familiars:!1,iotms:!1,items:!1,paths:!1,skills:!1,tattoos:!1,trophies:!1,wikiClashes:!1},error:{wikiClashes:!1},errorMessage:{}},ub=Dn("classes/fetch",async e=>Yae(e)),vm=Dn("effects/fetch",async e=>Qae(e)),ym=Dn("familiars/fetch",async e=>Dae(e)),lb=Dn("iotms/fetch",async e=>Tae(e)),bm=Dn("items/fetch",async e=>Mae(e)),cb=Dn("paths/fetch",async e=>Rae(e)),xm=Dn("skills/fetch",async e=>qae(e)),wm=Dn("tattoos/fetch",async e=>Hae(e)),Sm=Dn("trophies/fetch",async e=>Gae(e)),h6=Dn("all/fetch",async(e,{getState:t,dispatch:r})=>{const n=t();r(ub(e?0:n.sizeAtLastFetch.classes)),r(vm(e?0:n.sizeAtLastFetch.effects)),r(ym(e?0:n.sizeAtLastFetch.familiars)),r(lb(e?0:n.sizeAtLastFetch.iotms)),r(bm(e?0:n.sizeAtLastFetch.items)),r(cb(e?0:n.sizeAtLastFetch.paths)),r(xm(e?0:n.sizeAtLastFetch.skills)),r(wm(e?0:n.sizeAtLastFetch.tattoos)),r(Sm(e?0:n.sizeAtLastFetch.trophies))}),ph=Dn("playerData/fetch",async e=>{const t=await fetch(`https://oaf-discord.herokuapp.com/api/greenbox/${e}`),r=await t.json();if(t.status!==200)throw new Error(r.error);return r.greenboxString}),m6=Wn("playerData/load"),g6=Wn("favouritePlayerId/update"),Hoe=nae({name:"greenbox",initialState:Uoe,reducers:{},extraReducers:e=>{e.addCase(ub.pending,t=>{t.loading.classes=!0}).addCase(ub.fulfilled,(t,r)=>{r.payload!==null&&(t.classes=r.payload.data,t.sizeAtLastFetch.classes=r.payload.size),t.loading.classes=!1}).addCase(vm.pending,t=>{t.loading.effects=!0}).addCase(vm.fulfilled,(t,r)=>{r.payload!==null&&(t.effects=r.payload.data,t.sizeAtLastFetch.effects=r.payload.size),t.loading.effects=!1}).addCase(ym.pending,t=>{t.loading.familiars=!0}).addCase(ym.fulfilled,(t,r)=>{r.payload!==null&&(t.familiars=r.payload.data,t.sizeAtLastFetch.familiars=r.payload.size),t.loading.familiars=!1}).addCase(lb.pending,t=>{t.loading.iotms=!0}).addCase(lb.fulfilled,(t,r)=>{r.payload!==null&&(t.iotms=r.payload.data,t.sizeAtLastFetch.iotms=r.payload.size),t.loading.iotms=!1}).addCase(bm.pending,t=>{t.loading.items=!0}).addCase(bm.fulfilled,(t,r)=>{if(r.payload!==null){const n=r.payload.data;t.items=n.reduce((i,a)=>({...i,[a.id]:a}),{}),t.sizeAtLastFetch.items=r.payload.size}t.loading.items=!1}).addCase(cb.pending,t=>{t.loading.paths=!0}).addCase(cb.fulfilled,(t,r)=>{r.payload!==null&&(t.paths=r.payload.data,t.sizeAtLastFetch.paths=r.payload.size),t.loading.paths=!1}).addCase(xm.pending,t=>{t.loading.skills=!0}).addCase(xm.fulfilled,(t,r)=>{r.payload!==null&&(t.skills=r.payload.data,t.sizeAtLastFetch.skills=r.payload.size),t.loading.skills=!1}).addCase(wm.pending,t=>{t.loading.tattoos=!0}).addCase(wm.fulfilled,(t,r)=>{r.payload!==null&&(t.tattoos=r.payload.data,t.sizeAtLastFetch.tattoos=r.payload.size),t.loading.tattoos=!1}).addCase(Sm.pending,t=>{t.loading.trophies=!0}).addCase(Sm.fulfilled,(t,r)=>{r.payload!==null&&(t.trophies=r.payload.data,t.sizeAtLastFetch.trophies=r.payload.size),t.loading.trophies=!1}).addCase(dh.pending,t=>{t.loading.wikiClashes=!0,t.error.wikiClashes=!1}).addCase(dh.fulfilled,(t,r)=>{t.wikiClashes=r.payload,t.loading.wikiClashes=!1}).addCase(dh.rejected,t=>{t.error.wikiClashes=!0}).addCase(ph.pending,(t,r)=>{t.loading.playerData=!0}).addCase(ph.fulfilled,(t,r)=>{t.playerId=r.meta.arg;const n=r.payload;t.playerData=jD(n),t.loading.playerData=!1,t.error.playerData=!1,t.errorMessage.playerData=void 0}).addCase(m6,(t,r)=>{t.playerId=null;const n=r.payload;t.playerData=jD(n)}).addCase(ph.rejected,(t,r)=>{t.loading.playerData=!1,t.error.playerData=!0,t.errorMessage.playerData=r.error.message}).addCase(g6,(t,r)=>{t.favouritePlayerId=r.payload})}}),Woe=[...sb,"wikiClashes","sizeAtLastFetch","favouritePlayerId"],Goe=poe({whitelist:Woe,key:"greenbox",version:1,storage:i6},Hoe.reducer),v6=Jie({reducer:Goe,middleware:e=>e({serializableCheck:{ignoredActions:[XS,C0,QS,JS,ZS,eA]}}).prepend(p6.middleware)}),Koe=boe(v6),ls=e=>x0([r=>{var n;return(n=r.playerData)==null?void 0:n[e]}],r=>r??[]),y6=ls("skills"),b6=x0(y6,e=>e.reduce((t,r)=>({...t,[r[0]]:r}),{})),Yoe=x0(e=>e.skills,e=>e.reduce((t,r)=>({...t,[r.id]:r}),{})),Xoe=ls("items"),Qoe=x0(Xoe,e=>e.reduce((t,r)=>({...t,[r[0]]:r}),{}));function x6(){return Vh("","contrast(0.6666) invert(1) hue-rotate(180deg)")}const w6=nK({config:{initialColorMode:"system",useSystemColorMode:!0,disableTransitionOnChange:!1},semanticTokens:{colors:{"chakra-body-bg":{_light:"#f6f8fa",_dark:"#2a292a"},accent:{_light:"#ffffff",_dark:"#46454a"},imagebg:{_light:"#ffffff",_dark:"#2a292a"},complete:{_light:"#afa",_dark:"green.800"},partial:{_light:"#eea",_dark:"yellow.800"}}}}),nA=Nne,ke=Pne;var S6={exports:{}},A6={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},C6={exports:{}},Joe=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},Zoe=Joe,ese=Array.prototype.concat,tse=Array.prototype.slice,qD=C6.exports=function(t){for(var r=[],n=0,i=t.length;n=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Hr.to.keyword=function(e){return k6[e.slice(0,3)]};function Fa(e,t,r){return Math.min(Math.max(t,e),r)}function yp(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var nse=S6.exports;const gf=A6,E6={};for(const e of Object.keys(gf))E6[gf[e]]=e;const oe={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var D6=oe;for(const e of Object.keys(oe)){if(!("channels"in oe[e]))throw new Error("missing channels property: "+e);if(!("labels"in oe[e]))throw new Error("missing channel labels property: "+e);if(oe[e].labels.length!==oe[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=oe[e];delete oe[e].channels,delete oe[e].labels,Object.defineProperty(oe[e],"channels",{value:t}),Object.defineProperty(oe[e],"labels",{value:r})}oe.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i;let s,u;a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360);const l=(i+a)/2;return a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]};oe.rgb.hsv=function(e){let t,r,n,i,a;const o=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(o,s,u),c=l-Math.min(o,s,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,a=0):(a=c/l,t=f(o),r=f(s),n=f(u),o===l?i=n-r:s===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,l*100]};oe.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=oe.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,a*100,n*100]};oe.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),a=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,s=(1-n-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function ise(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}oe.rgb.keyword=function(e){const t=E6[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(gf)){const a=gf[i],o=ise(e,a);o.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,a*100,o*100]};oe.rgb.lab=function(e){const t=oe.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*n-16,o=500*(r-n),s=200*(n-i);return[a,o,s]};oe.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,a,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;const s=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?o=s+(i-s)*6*a:2*a<1?o=i:3*a<2?o=s+(i-s)*(2/3-a)*6:o=s,u[l]=o*255;return u};oe.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=a<=1?a:2-a;const o=(n+r)/2,s=n===0?2*i/(a+i):2*r/(n+r);return[t,s*100,o*100]};oe.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*a),u=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};oe.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let a,o;o=(2-r)*n;const s=(2-r)*i;return a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]};oe.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let a;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),s=1-n;a=6*t-o,o&1&&(a=1-a);const u=r+a*(s-r);let l,c,f;switch(o){default:case 6:case 0:l=s,c=u,f=r;break;case 1:l=u,c=s,f=r;break;case 2:l=r,c=s,f=u;break;case 3:l=r,c=u,f=s;break;case 4:l=u,c=r,f=s;break;case 5:l=s,c=r,f=u;break}return[l*255,c*255,f*255]};oe.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,s*255]};oe.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,a,o;return i=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};oe.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,a=500*(t-r),o=200*(r-n);return[i,a,o]};oe.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,a,o;a=(t+16)/116,i=r/500+a,o=a-n/200;const s=a**3,u=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};oe.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(r*r+n*n);return[t,o,i]};oe.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,a=r*Math.cos(i),o=r*Math.sin(i);return[t,a,o]};oe.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let a=t===null?oe.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(o+=60),o};oe.hsv.ansi16=function(e){return oe.rgb.ansi16(oe.hsv.rgb(e),e[2])};oe.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};oe.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,i,a]};oe.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};oe.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};oe.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));const n=parseInt(r,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]};oe.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),o=i-a;let s,u;return o<1?s=a/(1-o):s=0,o<=0?u=0:i===t?u=(r-n)/o%6:i===r?u=2+(n-t)/o:u=4+(t-r)/o,u/=6,u%=1,[u*360,o*100,s*100]};oe.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};oe.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};oe.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let u=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};oe.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};oe.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};oe.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};oe.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]};oe.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};oe.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};oe.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};oe.gray.hsl=function(e){return[0,0,e[0]]};oe.gray.hsv=oe.gray.hsl;oe.gray.hwb=function(e){return[0,100,e[0]]};oe.gray.cmyk=function(e){return[0,0,0,e[0]]};oe.gray.lab=function(e){return[e[0],0,0]};oe.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};oe.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Am=D6;function ase(){const e={},t=Object.keys(Am);for(let r=t.length,n=0;n1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function pse(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let a=i.length,o=0;o{Es[e]={},Object.defineProperty(Es[e],"channels",{value:fb[e].channels}),Object.defineProperty(Es[e],"labels",{value:fb[e].labels});const t=cse(e);Object.keys(t).forEach(n=>{const i=t[n];Es[e][n]=pse(i),Es[e][n].raw=dse(i)})});var hse=Es;const Ds=nse,Vr=hse,P6=["keyword","gray","hex"],db={};for(const e of Object.keys(Vr))db[[...Vr[e].labels].sort().join("")]=e;const Cm={};function Ft(e,t){if(!(this instanceof Ft))return new Ft(e,t);if(t&&t in P6&&(t=null),t&&!(t in Vr))throw new Error("Unknown model: "+t);let r,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Ft)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Ds.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=Vr[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length>0){this.model=t||"rgb",n=Vr[this.model].channels;const i=Array.prototype.slice.call(e,0,n);this.color=pb(i,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in db))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=db[a];const{labels:o}=Vr[this.model],s=[];for(r=0;r(e%360+360)%360),saturationl:pt("hsl",1,kt(100)),lightness:pt("hsl",2,kt(100)),saturationv:pt("hsv",1,kt(100)),value:pt("hsv",2,kt(100)),chroma:pt("hcg",1,kt(100)),gray:pt("hcg",2,kt(100)),white:pt("hwb",1,kt(100)),wblack:pt("hwb",2,kt(100)),cyan:pt("cmyk",0,kt(100)),magenta:pt("cmyk",1,kt(100)),yellow:pt("cmyk",2,kt(100)),black:pt("cmyk",3,kt(100)),x:pt("xyz",0,kt(95.047)),y:pt("xyz",1,kt(100)),z:pt("xyz",2,kt(108.833)),l:pt("lab",0,kt(100)),a:pt("lab",1),b:pt("lab",2),keyword(e){return e!==void 0?new Ft(e):Vr[this.model].keyword(this.color)},hex(e){return e!==void 0?new Ft(e):Ds.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Ft(e);const t=this.rgb().round().color;let r=Math.round(this.valpha*255).toString(16).toUpperCase();return r.length===1&&(r="0"+r),Ds.to.hex(t)+r},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[r,n]of e.entries()){const i=n/255;t[r]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),r=e.luminosity();return t>r?(t+.05)/(r+.05):(r+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Ft.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let r=t.color[0];return r=(r+e)%360,r=r<0?360+r:r,t.color[0]=r,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const r=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,a=2*i-1,o=r.alpha()-n.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,u=1-s;return Ft.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*i+n.alpha()*(1-i))}};for(const e of Object.keys(Vr)){if(P6.includes(e))continue;const{channels:t}=Vr[e];Ft.prototype[e]=function(...r){return this.model===e?new Ft(this):r.length>0?new Ft(r,e):new Ft([...vse(Vr[this.model][e].raw(this.color)),this.valpha],e)},Ft[e]=function(...r){let n=r[0];return typeof n=="number"&&(n=pb(r,t)),new Ft(n,e)}}function mse(e,t){return Number(e.toFixed(t))}function gse(e){return function(t){return mse(t,e)}}function pt(e,t,r){e=Array.isArray(e)?e:[e];for(const n of e)(Cm[n]||(Cm[n]=[]))[t]=r;return e=e[0],function(n){let i;return n!==void 0?(r&&(n=r(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],r&&(i=r(i)),i)}}function kt(e){return function(t){return Math.max(0,Math.min(e,t))}}function vse(e){return Array.isArray(e)?e:[e]}function pb(e,t){for(let r=0;ro>=0&&o`https://s3.amazonaws.com/images.kingdomofloathing.com/${e}`,[e]);return C.useEffect(()=>{const c=`alphamask-${e}`,f=localStorage.getItem(c);if(f){u({maskImage:`url(${f})`,maskSize:"100% 100%"});return}const d=document.createElement("canvas");d.width=r,d.height=n;const h=d.getContext("2d");async function g(){const b=await(await fetch(l)).blob(),y=await createImageBitmap(b);h.drawImage(y,0,0);const v=h.getImageData(0,0,r,n),m=xse(v.data,r),x=new ImageData(m,r,n);h.putImageData(x,0,0);const w=d.toDataURL();localStorage.setItem(c,w),u({maskImage:`url(${w})`,maskSize:"100% 100%"})}g()},[l,e]),_.jsx(_0,{alt:t,src:l,width:i,height:a,sx:s,...o})}function wse(e){return e>0?"complete":null}function T6(e){switch(e){case qn.HARDCORE:return"complete";case qn.SOFTCORE:return"partial";default:return null}}function O6(e){switch(e){case qn.HARDCORE:return"Hardcore permed";case qn.SOFTCORE:return"Softcore permed";default:return"Not permed"}}const Sse=(e,t)=>Array(Math.ceil(e.length/t)).fill(0).map((r,n)=>e.slice(n*t,n*t+t));function Ase(e){return e!=null}function Cse(e){return e.id>=10&&e.id<=14?.1:[80,81,121,128,134,135,144,180,7254].includes(e.id)?.2:e.id>=28&&e.id<=43||e.id===56||e.id===57?.3:e.id>=46&&e.id<=48?.32:e.id>=92&&e.id<=106?.31:Math.floor(e.id/1e3)}function _se(e,t){if(t)return[t.name,`itemimages/${t.image}.gif`];switch(e){case 0:return["Other","itemimages/book.gif"];case .1:return["Gnomish Gnomad Camp","itemimages/tinygnome.gif"];case .2:return["PvP","itemimages/swords.gif"];case .31:return["Dreadsylvania","itemimages/dvtat.gif"];case .3:return["Hobopolis","otherimages/sigils/hobotat19.gif"];case .32:return["Slime Tube","itemimages/slimeling.gif"];default:return["Unknown","itemimages/book.gif"]}}const kse=c4({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});function iA(){const e=Vh(0,100);return _.jsx(bn,{width:37.5,height:37.5,p:1,children:_.jsx(_0,{src:"/loading.png",alt:"Loading",filter:`invert(${e})`,sx:{animation:`${kse} 1.5s infinite linear`,opacity:"0.3"}})})}var _m={exports:{}};/*! https://mths.be/he v1.2.0 by @mathias | MIT license */_m.exports;(function(e,t){(function(r){var n=t,i=e&&e.exports==n&&e,a=typeof zn=="object"&&zn;(a.global===a||a.window===a)&&(r=a);var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,u=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot"," ":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf",ℬ:"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf",ℭ:"Cfr","𝒞":"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH","ⅇ":"ee",ℯ:"escr","𝔢":"efr","𝕖":"eopf",ℰ:"Escr","𝔈":"Efr","𝔼":"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil","𝔥":"hfr",ℎ:"planckh","𝒽":"hscr","𝕙":"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf",ĵ:"jcirc",Ĵ:"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr",ķ:"kcedil",Ķ:"Kcedil","𝔩":"lfr","𝓁":"lscr",ℓ:"ell","𝕝":"lopf",ℒ:"Lscr","𝔏":"Lfr","𝕃":"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf",ℳ:"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr",ℕ:"Nopf","𝒩":"Nscr","𝔑":"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG","𝕠":"oopf","𝔬":"ofr",ℴ:"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf",ℙ:"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr",ℚ:"Qopf",ĸ:"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr",ŵ:"wcirc",Ŵ:"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf",ℨ:"Zfr",ℤ:"Zopf","𝒵":"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi","ϵ":"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},f=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},h=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,g=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` +`,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},y={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},v={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},m=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],x=String.fromCharCode,w={},S=w.hasOwnProperty,A=function($,V){return S.call($,V)},k=function($,V){for(var H=-1,Y=$.length;++H=55296&&$<=57343||$>1114111?(V&&O("character reference outside the permissible Unicode range"),"�"):A(v,$)?(V&&O("disallowed character reference"),v[$]):(V&&k(m,$)&&O("disallowed character reference"),$>65535&&($-=65536,H+=x($>>>10&1023|55296),$=56320|$&1023),H+=x($),H)},P=function($){return"&#x"+$.toString(16).toUpperCase()+";"},I=function($){return"&#"+$+";"},O=function($){throw Error("Parse error: "+$)},N=function($,V){V=E(V,N.options);var H=V.strict;H&&g.test($)&&O("forbidden code point");var Y=V.encodeEverything,K=V.useNamedReferences,Z=V.allowUnsafeSymbols,ue=V.decimal?I:P,fe=function(le){return ue(le.charCodeAt(0))};return Y?($=$.replace(s,function(le){return K&&A(c,le)?"&"+c[le]+";":fe(le)}),K&&($=$.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),K&&($=$.replace(l,function(le){return"&"+c[le]+";"}))):K?(Z||($=$.replace(f,function(le){return"&"+c[le]+";"})),$=$.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒"),$=$.replace(l,function(le){return"&"+c[le]+";"})):Z||($=$.replace(f,fe)),$.replace(o,function(le){var se=le.charCodeAt(0),W=le.charCodeAt(1),ee=(se-55296)*1024+W-56320+65536;return ue(ee)}).replace(u,fe)};N.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var R=function($,V){V=E(V,R.options);var H=V.strict;return H&&h.test($)&&O("malformed character reference"),$.replace(p,function(Y,K,Z,ue,fe,le,se,W,ee){var X,L,ce,ve,ae,be;return K?(ae=K,b[ae]):Z?(ae=Z,be=ue,be&&V.isAttributeValue?(H&&be=="="&&O("`&` did not start a character reference"),Y):(H&&O("named character reference was not terminated by a semicolon"),y[ae]+(be||""))):fe?(ce=fe,L=le,H&&!L&&O("character reference was not terminated by a semicolon"),X=parseInt(ce,10),T(X,H)):se?(ve=se,L=W,H&&!L&&O("character reference was not terminated by a semicolon"),X=parseInt(ve,16),T(X,H)):(H&&O("named character reference was not terminated by a semicolon"),Y)})};R.options={isAttributeValue:!1,strict:!1};var U=function($){return $.replace(f,function(V){return d[V]})},F={version:"1.2.0",encode:N,decode:R,escape:U,unescape:R};if(n&&!n.nodeType)if(i)i.exports=F;else for(var j in F)A(F,j)&&(n[j]=F[j]);else r.he=F})(zn)})(_m,_m.exports);var Ese=_m.exports;const km=Te(Ese);function Dse(e,t){switch(e){case"complete":return{backgroundColor:"complete"};case"partial":return{backgroundColor:"partial",backgroundImage:`repeating-linear-gradient(45deg, ${t} 25%, transparent 25%, transparent 75%, ${t} 75%, ${t}), repeating-linear-gradient(45deg, ${t} 25%, transparent 25%, transparent 75%, ${t} 75%, ${t})`,backgroundPosition:"0 0, 5px 5px",backgroundSize:"10px 10px"};default:return{backgroundColor:t}}}const Pse=["Some Assembly Required","Batter Up!"];function $6(e,t,r,n){if(e)return km.decode(e);const i=km.decode(t).replaceAll(" ","_");return n.includes(t)||Pse.includes(t)?`${i}_(${r})`:i}const eo=C.forwardRef(function({type:t,state:r,name:n,image:i,badges:a=null,sourceWidth:o=30,title:s=`${n} (${r||"do not have"})`,link:u,...l},c){const[f]=v4("colors",["accent"]),d=Dse(r,f),h=ke(p=>p.wikiClashes),g=$6(u,n,t,h);return _.jsxs(Hee,{ref:c,borderWidth:1,borderStyle:"solid",borderColor:"black",p:1,...d,title:s,position:"relative",overflow:"hidden",sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},_hover:{filter:d.backgroundColor?"brightness(90%)":void 0,backgroundColor:d.backgroundColor||"blackAlpha.50"},...l,children:[a&&_.jsx(bn,{position:"absolute",sx:{top:0,right:0},children:a}),typeof i=="string"?_.jsx(sl,{src:i,sourceWidth:o}):i,_.jsx(Uee,{textAlign:"center",fontSize:"10px",href:`https://kol.coldfront.net/thekolwiki/index.php/${g}`,isExternal:!0,children:km.decode(n)})]})});function Tse({skill:e}){const t=ke(s=>s.wikiClashes),r=C.useMemo(()=>$6(void 0,e.name,"skill",t),[e,t]),[n,i]=C.useState(null),a=C.useRef(null);C.useEffect(()=>{async function s(){const l=await(await fetch(`https://l8sdqazjji.execute-api.us-east-1.amazonaws.com/?action=parse&page=${r}&prop=text&format=json`)).json(),c=/
(.*?)<\/td>/s.exec(l.parse.text["*"]);c==null?i("Cannot load wiki page (this is an experimental feature!)"):i(c[0].replaceAll('href="/','href="https://kol.coldfront.net/').replaceAll('p style="color:','p class="colortext" style="color:')+"
")}s()},[r]),C.useEffect(()=>{a.current&&n&&(a.current.innerHTML=n)},[a,n]);const o=x6();return _.jsx(kS,{sx:{img:{filter:o},"p.colortext":{filter:o}},ref:a,justifyContent:"center",children:_.jsx(iA,{})})}function xt({id:e}){const t=ke(b6),n=ke(Yoe)[e],[,i,a]=t[e]||[e,qn.NONE,0];return _.jsxs(o9,{trigger:"hover",isLazy:!0,children:[_.jsx(a9,{children:_.jsx(eo,{type:"skill",name:n.name,image:`itemimages/${n.image}`,state:T6(i),title:O6(i),badges:a?_.jsxs(a0,{mr:1,title:`Skill at level ${a}`,children:[a," / ",Lae(n.id)]}):null})}),_.jsxs(c9,{style:{"--popper-bg":"var(--chakra-colors-imagebg)"},whiteSpace:"normal",children:[_.jsx(s9,{}),_.jsx(u9,{children:_.jsx(Tse,{skill:n})})]})]})}function cn({image:e,title:t,right:r=null,children:n}){return _.jsxs(Hi,{spacing:4,children:[_.jsxs(i0,{children:[_.jsx(sl,{src:e,sourceWidth:e.includes("sigils/")?50:30,width:30,height:30}),_.jsx(Lo,{as:"h3",fontWeight:"normal",fontSize:"2xl",children:t}),r]}),n]})}function Zn(){return _.jsx(er,{bg:"chakra-border-color"})}function Ose(){return _.jsx(cn,{title:"The Machine",image:"itemimages/dv_skullcap.gif",children:_.jsx(Ire,{children:_.jsxs(p9,{children:[_.jsx(Bre,{children:_.jsxs(xs,{textAlign:"center",children:[_.jsx($n,{width:"80px",children:_.jsx(sl,{src:"itemimages/brain.gif",alt:"Class of the brains in The Machine"})}),_.jsx($n,{title:"Seal Clubber",children:"SC"}),_.jsx($n,{title:"Turtle Tamer",children:"TT"}),_.jsx($n,{title:"Pastamancer",children:"PA"}),_.jsx($n,{title:"Sauceror",children:"S"}),_.jsx($n,{title:"Disco Bandit",children:"DB"})]})}),_.jsxs(Rre,{children:[_.jsxs(xs,{children:[_.jsx($n,{title:"Turtle Tamer",children:"TT"}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:92})}),_.jsx(Zn,{}),_.jsx(Zn,{}),_.jsx(Zn,{}),_.jsx(Zn,{})]}),_.jsxs(xs,{children:[_.jsx($n,{title:"Pastamancer",children:"PA"}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:93})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:97})}),_.jsx(Zn,{}),_.jsx(Zn,{}),_.jsx(Zn,{})]}),_.jsxs(xs,{children:[_.jsx($n,{title:"Sauceror",children:"S"}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:94})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:98})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:101})}),_.jsx(Zn,{}),_.jsx(Zn,{})]}),_.jsxs(xs,{children:[_.jsx($n,{title:"Disco Bandit",children:"DB"}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:95})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:99})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:102})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:104})}),_.jsx(Zn,{})]}),_.jsxs(xs,{children:[_.jsx($n,{title:"Accordion Thief",children:"AT"}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:96})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:100})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:103})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:105})}),_.jsx(er,{padding:1,children:_.jsx(xt,{id:106})})]})]})]})})})}var M6={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i-1}var jle=Rle,Fle=E0;function Nle(e,t){var r=this.__data__,n=Fle(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Lle=Nle,zle=Ale,Vle=Ole,qle=Ble,Ule=jle,Hle=Lle;function fl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},Oo=function(t){return wd(t)&&t.indexOf("%")===t.length-1},J=function(t){return ife(t)&&!Sd(t)},Tt=function(t){return J(t)||wd(t)},ufe=0,O0=function(t){var r=++ufe;return"".concat(t||"").concat(r)},Lu=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!J(t)&&!wd(t))return n;var a;if(Oo(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Sd(a)&&(a=n),i&&a>r&&(a=r),a},ha=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},lfe=function(t){if(!Gt(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mfe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var t3={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Na=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},r3=null,Iy=null,hA=function e(t){if(t===r3&&Gt(Iy))return Iy;var r=[];return C.Children.forEach(t,function(n){ye(n)||(t4.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Iy=r,r3=t,r};function Gn(e,t){var r=[],n=[];return Gt(t)?n=t.map(function(i){return Na(i)}):n=[Na(t)],hA(e).forEach(function(i){var a=wn(i,"type.displayName")||wn(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Fi(e,t){var r=Gn(e,t);return r&&r[0]}var n3=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!J(n)||n<=0||!J(i)||i<=0)},gfe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],vfe=function(t){return t&&t.type&&wd(t.type)&&gfe.indexOf(t.type)>=0},yfe=function(t,r,n,i){var a,o=(a=By==null?void 0:By[i])!==null&&a!==void 0?a:[];return!xe(t)&&(i&&o.includes(r)||ffe.includes(r))||n&&pA.includes(r)},Ve=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(C.isValidElement(t)&&(i=t.props),!ul(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;yfe((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},q6=function e(t,r){if(t===r)return!0;var n=C.Children.count(t);if(n!==C.Children.count(r))return!1;if(n===0)return!0;if(n===1)return i3(Gt(t)?t[0]:t,Gt(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Afe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function vb(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=Sfe(e,wfe),u=i||{width:r,height:n,x:0,y:0},l=Ye("recharts-surface",a);return q.createElement("svg",gb({},Ve(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),q.createElement("title",null,e.title),q.createElement("desc",null,e.desc),t)}var Cfe=["children","className"];function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kfe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Wt=q.forwardRef(function(e,t){var r=e.children,n=e.className,i=_fe(e,Cfe),a=Ye("recharts-layer",n);return q.createElement("g",yb({className:a},Ve(i,!0),{ref:t}),r)}),Efe=D0;function Dfe(){this.__data__=new Efe,this.size=0}var Pfe=Dfe;function Tfe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ofe=Tfe;function $fe(e){return this.__data__.get(e)}var Mfe=$fe;function Bfe(e){return this.__data__.has(e)}var Ife=Bfe,Rfe=D0,jfe=uA,Ffe=lA,Nfe=200;function Lfe(e,t){var r=this.__data__;if(r instanceof Rfe){var n=r.__data__;if(!jfe||n.lengths))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,h=r&ude?new ide:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=dpe}var yA=ppe,hpe=ro,mpe=yA,gpe=no,vpe="[object Arguments]",ype="[object Array]",bpe="[object Boolean]",xpe="[object Date]",wpe="[object Error]",Spe="[object Function]",Ape="[object Map]",Cpe="[object Number]",_pe="[object Object]",kpe="[object RegExp]",Epe="[object Set]",Dpe="[object String]",Ppe="[object WeakMap]",Tpe="[object ArrayBuffer]",Ope="[object DataView]",$pe="[object Float32Array]",Mpe="[object Float64Array]",Bpe="[object Int8Array]",Ipe="[object Int16Array]",Rpe="[object Int32Array]",jpe="[object Uint8Array]",Fpe="[object Uint8ClampedArray]",Npe="[object Uint16Array]",Lpe="[object Uint32Array]",Ze={};Ze[$pe]=Ze[Mpe]=Ze[Bpe]=Ze[Ipe]=Ze[Rpe]=Ze[jpe]=Ze[Fpe]=Ze[Npe]=Ze[Lpe]=!0;Ze[vpe]=Ze[ype]=Ze[Tpe]=Ze[bpe]=Ze[Ope]=Ze[xpe]=Ze[wpe]=Ze[Spe]=Ze[Ape]=Ze[Cpe]=Ze[_pe]=Ze[kpe]=Ze[Epe]=Ze[Dpe]=Ze[Ppe]=!1;function zpe(e){return gpe(e)&&mpe(e.length)&&!!Ze[hpe(e)]}var Vpe=zpe;function qpe(e){return function(t){return e(t)}}var J6=qpe,Om={exports:{}};Om.exports;(function(e,t){var r=B6,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Om,Om.exports);var Upe=Om.exports,Hpe=Vpe,Wpe=J6,f3=Upe,d3=f3&&f3.isTypedArray,Gpe=d3?Wpe(d3):Hpe,Z6=Gpe,Kpe=Qde,Ype=gA,Xpe=Sr,Qpe=Q6,Jpe=vA,Zpe=Z6,ehe=Object.prototype,the=ehe.hasOwnProperty;function rhe(e,t){var r=Xpe(e),n=!r&&Ype(e),i=!r&&!n&&Qpe(e),a=!r&&!n&&!i&&Zpe(e),o=r||n||i||a,s=o?Kpe(e.length,String):[],u=s.length;for(var l in e)(t||the.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Jpe(l,u)))&&s.push(l);return s}var nhe=rhe,ihe=Object.prototype;function ahe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ihe;return e===r}var ohe=ahe;function she(e,t){return function(r){return e(t(r))}}var uhe=she,lhe=uhe,che=lhe(Object.keys,Object),fhe=che,dhe=ohe,phe=fhe,hhe=Object.prototype,mhe=hhe.hasOwnProperty;function ghe(e){if(!dhe(e))return phe(e);var t=[];for(var r in Object(e))mhe.call(e,r)&&r!="constructor"&&t.push(r);return t}var vhe=ghe,yhe=aA,bhe=yA;function xhe(e){return e!=null&&bhe(e.length)&&!yhe(e)}var Ad=xhe,whe=nhe,She=vhe,Ahe=Ad;function Che(e){return Ahe(e)?whe(e):She(e)}var $0=Che,_he=Nde,khe=Yde,Ehe=$0;function Dhe(e){return _he(e,Ehe,khe)}var Phe=Dhe,p3=Phe,The=1,Ohe=Object.prototype,$he=Ohe.hasOwnProperty;function Mhe(e,t,r,n,i,a){var o=r&The,s=p3(e),u=s.length,l=p3(t),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in t:$he.call(t,d)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var b=o;++f-1}var Oge=Tge;function $ge(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Gge){var l=t?null:Hge(e);if(l)return Wge(l);o=!1,i=Uge,u=new zge}else u=t?[]:s;e:for(;++ni?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:r0e(e,t,r)}var i0e=n0e,a0e="\\ud800-\\udfff",o0e="\\u0300-\\u036f",s0e="\\ufe20-\\ufe2f",u0e="\\u20d0-\\u20ff",l0e=o0e+s0e+u0e,c0e="\\ufe0e\\ufe0f",f0e="\\u200d",d0e=RegExp("["+f0e+a0e+l0e+c0e+"]");function p0e(e){return d0e.test(e)}var oB=p0e;function h0e(e){return e.split("")}var m0e=h0e,sB="\\ud800-\\udfff",g0e="\\u0300-\\u036f",v0e="\\ufe20-\\ufe2f",y0e="\\u20d0-\\u20ff",b0e=g0e+v0e+y0e,x0e="\\ufe0e\\ufe0f",w0e="["+sB+"]",Cb="["+b0e+"]",_b="\\ud83c[\\udffb-\\udfff]",S0e="(?:"+Cb+"|"+_b+")",uB="[^"+sB+"]",lB="(?:\\ud83c[\\udde6-\\uddff]){2}",cB="[\\ud800-\\udbff][\\udc00-\\udfff]",A0e="\\u200d",fB=S0e+"?",dB="["+x0e+"]?",C0e="(?:"+A0e+"(?:"+[uB,lB,cB].join("|")+")"+dB+fB+")*",_0e=dB+fB+C0e,k0e="(?:"+[uB+Cb+"?",Cb,lB,cB,w0e].join("|")+")",E0e=RegExp(_b+"(?="+_b+")|"+k0e+_0e,"g");function D0e(e){return e.match(E0e)||[]}var P0e=D0e,T0e=m0e,O0e=oB,$0e=P0e;function M0e(e){return O0e(e)?$0e(e):T0e(e)}var B0e=M0e,I0e=i0e,R0e=oB,j0e=B0e,F0e=N6;function N0e(e){return function(t){t=F0e(t);var r=R0e(t)?j0e(t):void 0,n=r?r[0]:t.charAt(0),i=r?I0e(r,1).join(""):t.slice(1);return n[e]()+i}}var L0e=N0e,z0e=L0e,V0e=z0e("toUpperCase"),q0e=V0e;const M0=Te(q0e);function We(e){return function(){return e}}const pB=Math.cos,Mm=Math.sin,Yn=Math.sqrt,Bm=Math.PI,B0=2*Bm,kb=Math.PI,Eb=2*kb,xo=1e-6,U0e=Eb-xo;function hB(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return hB;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;ixo)if(!(Math.abs(f*u-l*c)>xo)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,g=i-s,p=u*u+l*l,b=h*h+g*g,y=Math.sqrt(p),v=Math.sqrt(d),m=a*Math.tan((kb-Math.acos((p+d-b)/(2*y*v)))/2),x=m/v,w=m/y;Math.abs(x-1)>xo&&this._append`L${t+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*h>c*g)},${this._x1=t+w*u},${this._y1=r+w*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),u=n*Math.sin(i),l=t+s,c=r+u,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>xo||Math.abs(this._y1-c)>xo)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Eb+Eb),d>U0e?this._append`A${n},${n},0,1,${f},${t-s},${r-u}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:d>xo&&this._append`A${n},${n},0,${+(d>=kb)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};function xA(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new W0e(t)}function wA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function mB(e){this._context=e}mB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function I0(e){return new mB(e)}function gB(e){return e[0]}function vB(e){return e[1]}function yB(e,t){var r=We(!0),n=null,i=I0,a=null,o=xA(s);e=typeof e=="function"?e:e===void 0?gB:We(e),t=typeof t=="function"?t:t===void 0?vB:We(t);function s(u){var l,c=(u=wA(u)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),l=0;l<=c;++l)!(l=h;--g)s.point(m[g],x[g]);s.lineEnd(),s.areaEnd()}y&&(m[d]=+e(b,d,f),x[d]=+t(b,d,f),s.point(n?+n(b,d,f):m[d],r?+r(b,d,f):x[d]))}if(v)return s=null,v+""||null}function c(){return yB().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:We(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:We(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:We(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:We(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:We(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:We(+f),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(n).y(t)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:We(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}class bB{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function G0e(e){return new bB(e,!0)}function K0e(e){return new bB(e,!1)}const SA={draw(e,t){const r=Yn(t/Bm);e.moveTo(r,0),e.arc(0,0,r,0,B0)}},Y0e={draw(e,t){const r=Yn(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},xB=Yn(1/3),X0e=xB*2,Q0e={draw(e,t){const r=Yn(t/X0e),n=r*xB;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},J0e={draw(e,t){const r=Yn(t),n=-r/2;e.rect(n,n,r,r)}},Z0e=.8908130915292852,wB=Mm(Bm/10)/Mm(7*Bm/10),eve=Mm(B0/10)*wB,tve=-pB(B0/10)*wB,rve={draw(e,t){const r=Yn(t*Z0e),n=eve*r,i=tve*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=B0*a/5,s=pB(o),u=Mm(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},Ny=Yn(3),nve={draw(e,t){const r=-Yn(t/(Ny*3));e.moveTo(0,r*2),e.lineTo(-Ny*r,-r),e.lineTo(Ny*r,-r),e.closePath()}},on=-.5,sn=Yn(3)/2,Db=1/Yn(12),ive=(Db/2+1)*3,ave={draw(e,t){const r=Yn(t/ive),n=r/2,i=r*Db,a=n,o=r*Db+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(on*n-sn*i,sn*n+on*i),e.lineTo(on*a-sn*o,sn*a+on*o),e.lineTo(on*s-sn*u,sn*s+on*u),e.lineTo(on*n+sn*i,on*i-sn*n),e.lineTo(on*a+sn*o,on*o-sn*a),e.lineTo(on*s+sn*u,on*u-sn*s),e.closePath()}};function ove(e,t){let r=null,n=xA(i);e=typeof e=="function"?e:We(e||SA),t=typeof t=="function"?t:We(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:We(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:We(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Im(){}function Rm(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function SB(e){this._context=e}SB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Rm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Rm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sve(e){return new SB(e)}function AB(e){this._context=e}AB.prototype={areaStart:Im,areaEnd:Im,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Rm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uve(e){return new AB(e)}function CB(e){this._context=e}CB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Rm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lve(e){return new CB(e)}function _B(e){this._context=e}_B.prototype={areaStart:Im,areaEnd:Im,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function cve(e){return new _B(e)}function k3(e){return e<0?-1:1}function E3(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(k3(a)+k3(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function D3(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ly(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function jm(e){this._context=e}jm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ly(this,this._t0,D3(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ly(this,D3(this,r=E3(this,e,t)),r);break;default:Ly(this,this._t0,r=E3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function kB(e){this._context=new EB(e)}(kB.prototype=Object.create(jm.prototype)).point=function(e,t){jm.prototype.point.call(this,t,e)};function EB(e){this._context=e}EB.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function fve(e){return new jm(e)}function dve(e){return new kB(e)}function DB(e){this._context=e}DB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=P3(e),i=P3(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function hve(e){return new R0(e,.5)}function mve(e){return new R0(e,0)}function gve(e){return new R0(e,1)}function zu(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r=0;)r[t]=t;return r}function vve(e,t){return e[t]}function yve(e){const t=[];return t.key=e,t}function bve(){var e=We([]),t=Pb,r=zu,n=vve;function i(a){var o=Array.from(e.apply(this,arguments),yve),s,u=o.length,l=-1,c;for(const f of a)for(s=0,++l;s0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dve(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var PB={symbolCircle:SA,symbolCross:Y0e,symbolDiamond:Q0e,symbolSquare:J0e,symbolStar:rve,symbolTriangle:nve,symbolWye:ave},Pve=Math.PI/180,Tve=function(t){var r="symbol".concat(M0(t));return PB[r]||SA},Ove=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Pve;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},$ve=function(t,r){PB["symbol".concat(M0(t))]=r},TB=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,u=Eve(t,Ave),l=O3(O3({},u),{},{type:n,size:a,sizeType:s}),c=function(){var b=Tve(n),y=ove().type(b).size(Ove(a,s,n));return y()},f=l.className,d=l.cx,h=l.cy,g=Ve(l,!0);return d===+d&&h===+h&&a===+a?q.createElement("path",Tb({},g,{className:Ye("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};TB.registerSymbol=$ve;function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fm(e){return Fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fm(e)}function yf(e,t,r){return t=OB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OB(e){var t=zve(e,"string");return Vu(t)==="symbol"?t:String(t)}function zve(e,t){if(Vu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var un=32,AA=function(e){Rve(r,e);var t=jve(r);function r(){return Bve(this,r),t.apply(this,arguments)}return Ive(r,[{key:"renderIcon",value:function(i){var a=this.props.inactiveColor,o=un/2,s=un/6,u=un/3,l=i.inactive?a:i.color;if(i.type==="plainline")return q.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:o,x2:un,y2:o,className:"recharts-legend-icon"});if(i.type==="line")return q.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(u,` + A`).concat(s,",").concat(s,",0,1,1,").concat(2*u,",").concat(o,` + H`).concat(un,"M").concat(2*u,",").concat(o,` + A`).concat(s,",").concat(s,",0,1,1,").concat(u,",").concat(o),className:"recharts-legend-icon"});if(i.type==="rect")return q.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(un/8,"h").concat(un,"v").concat(un*3/4,"h").concat(-un,"z"),className:"recharts-legend-icon"});if(q.isValidElement(i.legendIcon)){var c=Mve({},i);return delete c.legendIcon,q.cloneElement(i.legendIcon,c)}return q.createElement(TB,{fill:l,cx:o,cy:o,size:un,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,a=this.props,o=a.payload,s=a.iconSize,u=a.layout,l=a.formatter,c=a.inactiveColor,f={x:0,y:0,width:un,height:un},d={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(g,p){var b,y=g.formatter||l,v=Ye((b={"recharts-legend-item":!0},yf(b,"legend-item-".concat(p),!0),yf(b,"inactive",g.inactive),b));if(g.type==="none")return null;var m=g.inactive?c:g.color;return q.createElement("li",Ob({className:v,style:d,key:"legend-item-".concat(p)},Dm(i.props,g,p)),q.createElement(vb,{width:s,height:s,viewBox:f,style:h},i.renderIcon(g)),q.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},y?y(g.value,g,p):g.value))})}},{key:"render",value:function(){var i=this.props,a=i.payload,o=i.layout,s=i.align;if(!a||!a.length)return null;var u={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return q.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}]),r}(C.PureComponent);yf(AA,"displayName","Legend");yf(AA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}var Vve=["ref"];function B3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ss(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nm(e)}function j0(e,t,r){return t=MB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MB(e){var t=Yve(e,"string");return qu(t)==="symbol"?t:String(t)}function Yve(e,t){if(qu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xve(e,t){if(e==null)return{};var r=Qve(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qve(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Jve(e){return e.value}function Zve(e,t){return e===!0?$m(t,Jve):xe(e)?$m(t,e):t}function eye(e,t){if(q.isValidElement(e))return q.cloneElement(e,t);if(xe(e))return q.createElement(e,t);t.ref;var r=Xve(t,Vve);return q.createElement(AA,r)}var R3=1,bf=function(e){Hve(r,e);var t=Wve(r);function r(){var n;qve(this,r);for(var i=arguments.length,a=new Array(i),o=0;o=0&&o>=0?{width:a,height:o}:null}},{key:"getDefaultPosition",value:function(i){var a=this.props,o=a.layout,s=a.align,u=a.verticalAlign,l=a.margin,c=a.chartWidth,f=a.chartHeight,d,h;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(s==="center"&&o==="vertical"){var g=this.getBBoxSnapshot()||{width:0};d={left:((c||0)-g.width)/2}}else d=s==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(u==="middle"){var p=this.getBBoxSnapshot()||{height:0};h={top:((f||0)-p.height)/2}}else h=u==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Ss(Ss({},d),h)}},{key:"updateBBox",value:function(){var i=this.state,a=i.boxWidth,o=i.boxHeight,s=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var u=this.wrapperNode.getBoundingClientRect();(Math.abs(u.width-a)>R3||Math.abs(u.height-o)>R3)&&this.setState({boxWidth:u.width,boxHeight:u.height},function(){s&&s(u)})}else(a!==-1||o!==-1)&&this.setState({boxWidth:-1,boxHeight:-1},function(){s&&s(null)})}},{key:"render",value:function(){var i=this,a=this.props,o=a.content,s=a.width,u=a.height,l=a.wrapperStyle,c=a.payloadUniqBy,f=a.payload,d=Ss(Ss({position:"absolute",width:s||"auto",height:u||"auto"},this.getDefaultPosition(l)),l);return q.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(g){i.wrapperNode=g}},eye(o,Ss(Ss({},this.props),{},{payload:Zve(c,f)})))}}],[{key:"getWithHeight",value:function(i,a){var o=i.props.layout;return o==="vertical"&&J(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||a}:null}}]),r}(C.PureComponent);j0(bf,"displayName","Legend");j0(bf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var tye=Object.getOwnPropertyNames,rye=Object.getOwnPropertySymbols,nye=Object.prototype.hasOwnProperty;function j3(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function wp(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var u=e(r,n,i);return a.delete(r),a.delete(n),u}}function F3(e){return tye(e).concat(rye(e))}var BB=Object.hasOwn||function(e,t){return nye.call(e,t)};function gl(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var IB="_owner",N3=Object.getOwnPropertyDescriptor,L3=Object.keys;function iye(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function aye(e,t){return gl(e.getTime(),t.getTime())}function z3(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),a=0,o,s;(o=i.next())&&!o.done;){for(var u=t.entries(),l=!1,c=0;(s=u.next())&&!s.done;){var f=o.value,d=f[0],h=f[1],g=s.value,p=g[0],b=g[1];!l&&!n[c]&&(l=r.equals(d,p,a,c,e,t,r)&&r.equals(h,b,d,p,e,t,r))&&(n[c]=!0),c++}if(!l)return!1;a++}return!0}function oye(e,t,r){var n=L3(e),i=n.length;if(L3(t).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===IB&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!BB(t,a)||!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function Ll(e,t,r){var n=F3(e),i=n.length;if(F3(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],a===IB&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!BB(t,a)||!r.equals(e[a],t[a],a,a,e,t,r)||(o=N3(e,a),s=N3(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function sye(e,t){return gl(e.valueOf(),t.valueOf())}function uye(e,t){return e.source===t.source&&e.flags===t.flags}function V3(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var s=t.values(),u=!1,l=0;(o=s.next())&&!o.done;)!u&&!n[l]&&(u=r.equals(a.value,o.value,a.value,o.value,e,t,r))&&(n[l]=!0),l++;if(!u)return!1}return!0}function lye(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var cye="[object Arguments]",fye="[object Boolean]",dye="[object Date]",pye="[object Map]",hye="[object Number]",mye="[object Object]",gye="[object RegExp]",vye="[object Set]",yye="[object String]",bye=Array.isArray,q3=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,U3=Object.assign,xye=Object.prototype.toString.call.bind(Object.prototype.toString);function wye(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,u=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var h=c.constructor;if(h!==f.constructor)return!1;if(h===Object)return i(c,f,d);if(bye(c))return t(c,f,d);if(q3!=null&&q3(c))return u(c,f,d);if(h===Date)return r(c,f,d);if(h===RegExp)return o(c,f,d);if(h===Map)return n(c,f,d);if(h===Set)return s(c,f,d);var g=xye(c);return g===dye?r(c,f,d):g===gye?o(c,f,d):g===pye?n(c,f,d):g===vye?s(c,f,d):g===mye?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):g===cye?i(c,f,d):g===fye||g===hye||g===yye?a(c,f,d):!1}}function Sye(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Ll:iye,areDatesEqual:aye,areMapsEqual:n?j3(z3,Ll):z3,areObjectsEqual:n?Ll:oye,arePrimitiveWrappersEqual:sye,areRegExpsEqual:uye,areSetsEqual:n?j3(V3,Ll):V3,areTypedArraysEqual:n?Ll:lye};if(r&&(i=U3({},i,r(i))),t){var a=wp(i.areArraysEqual),o=wp(i.areMapsEqual),s=wp(i.areObjectsEqual),u=wp(i.areSetsEqual);i=U3({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function Aye(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function Cye(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,l){var c=n(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,h=c.meta;return r(u,l,{cache:d,equals:i,meta:h,strict:a})};if(t)return function(u,l){return r(u,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(u,l){return r(u,l,o)}}var _ye=ao();ao({strict:!0});ao({circular:!0});ao({circular:!0,strict:!0});ao({createInternalComparator:function(){return gl}});ao({strict:!0,createInternalComparator:function(){return gl}});ao({circular:!0,createInternalComparator:function(){return gl}});ao({circular:!0,createInternalComparator:function(){return gl},strict:!0});function ao(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=Sye(e),u=wye(s),l=n?n(u):Aye(u);return Cye({circular:r,comparator:u,createState:i,equals:l,strict:o})}function H3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):requestAnimationFrame(i)};requestAnimationFrame(n)}function Bb(e){"@babel/helpers - typeof";return Bb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bb(e)}function kye(e){return Tye(e)||Pye(e)||Dye(e)||Eye()}function Eye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dye(e,t){if(e){if(typeof e=="string")return W3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W3(e,t)}}function W3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:y<0?0:y},p=function(y){for(var v=y>1?1:y,m=v,x=0;x<8;++x){var w=f(m)-v,S=h(m);if(Math.abs(w-v)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,u=function(c,f,d){var h=-(c-f)*n,g=d*a,p=d+(h-g)*s/1e3,b=d*s/1e3+c;return Math.abs(b-f)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f1e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function zy(e){return m1e(e)||h1e(e)||p1e(e)||d1e()}function d1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p1e(e,t){if(e){if(typeof e=="string")return Lb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lb(e,t)}}function h1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m1e(e){if(Array.isArray(e))return Lb(e)}function Lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qm(e)}var Wu=function(e){b1e(r,e);var t=x1e(r);function r(n,i){var a;g1e(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,u=o.attributeName,l=o.from,c=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(qb(a)),a.changeStyle=a.changeStyle.bind(qb(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),Vb(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof d=="function")return a.state={style:l},Vb(a);a.state={style:u?lc({},u,l):l}}else a.state={style:{}};return a}return v1e(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,u=a.attributeName,l=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:u?lc({},u,c):c};this.state&&d&&(u&&d[u]!==c||!u&&d!==c)&&this.setState(h);return}if(!(_ye(i.to,c)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||l?f:i.to;if(this.state&&d){var b={style:u?lc({},u,p):p};(u&&[u]!==p||!u&&d!==p)&&this.setState(b)}this.runAnimation(Mn(Mn({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,u=i.duration,l=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=u1e(o,s,Qye(l),u,this.changeStyle),g=function(){a.stopJSAnimation=h()};this.manager.start([d,c,g,u,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,u=i.onAnimationStart,l=o[0],c=l.style,f=l.duration,d=f===void 0?0:f,h=function(p,b,y){if(y===0)return p;var v=b.duration,m=b.easing,x=m===void 0?"ease":m,w=b.style,S=b.properties,A=b.onAnimationEnd,k=y>0?o[y-1]:b,E=S||Object.keys(w);if(typeof x=="function"||x==="spring")return[].concat(zy(p),[a.runJSAnimation.bind(a,{from:k.style,to:w,duration:v,easing:x}),v]);var T=K3(E,v,x),P=Mn(Mn(Mn({},k.style),w),{},{transition:T});return[].concat(zy(p),[P,v,A]).filter(Fye)};return this.manager.start([u].concat(zy(o.reduce(h,[c,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Oye());var a=i.begin,o=i.duration,s=i.attributeName,u=i.to,l=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof l=="function"||typeof h=="function"||l==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?lc({},s,u):u,b=K3(Object.keys(p),o,l);g.start([c,a,Mn(Mn({},p),{},{transition:b}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=c1e(i,l1e),l=C.Children.count(a),c=Ib(this.state.style);if(typeof a=="function")return a(c);if(!s||l===0||o<=0)return a;var f=function(h){var g=h.props,p=g.style,b=p===void 0?{}:p,y=g.className,v=C.cloneElement(h,Mn(Mn({},u),{},{style:Mn(Mn({},b),c),className:y}));return v};return l===1?f(C.Children.only(a)):q.createElement("div",null,C.Children.map(a,function(d){return f(d)}))}}]),r}(C.PureComponent);Wu.displayName="Animate";Wu.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Wu.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});we.object,we.object,we.object,we.element;we.object,we.object,we.object,we.oneOfType([we.array,we.element]),we.any;var t5=xd,S1e=gA,A1e=Sr,r5=t5?t5.isConcatSpreadable:void 0;function C1e(e){return A1e(e)||S1e(e)||!!(r5&&e&&e[r5])}var _1e=C1e,k1e=Y6,E1e=_1e;function zB(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=E1e),i||(i=[]);++a0&&r(s)?t>1?zB(s,t-1,r,n,i):k1e(i,s):n||(i[i.length]=s)}return i}var VB=zB;function D1e(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var P1e=D1e,T1e=P1e,O1e=T1e(),$1e=O1e,M1e=$1e,B1e=$0;function I1e(e,t){return e&&M1e(e,t,B1e)}var qB=I1e,R1e=Ad;function j1e(e,t){return function(r,n){if(r==null)return r;if(!R1e(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&u&&!s&&!l||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!l&&e=s)return u;var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var Q1e=X1e,Vy=fA,J1e=dA,Z1e=io,e2e=UB,t2e=W1e,r2e=J6,n2e=Q1e,i2e=ml,a2e=Sr;function o2e(e,t,r){t.length?t=Vy(t,function(a){return a2e(a)?function(o){return J1e(o,a.length===1?a[0]:a)}:a}):t=[i2e];var n=-1;t=Vy(t,r2e(Z1e));var i=e2e(e,function(a,o,s){var u=Vy(t,function(l){return l(a)});return{criteria:u,index:++n,value:a}});return t2e(i,function(a,o){return n2e(a,o,r)})}var s2e=o2e;function u2e(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var l2e=u2e,c2e=l2e,i5=Math.max;function f2e(e,t,r){return t=i5(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=i5(n.length-t,0),o=Array(a);++i0){if(++t>=w2e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _2e=C2e,k2e=x2e,E2e=_2e,D2e=E2e(k2e),P2e=D2e,T2e=ml,O2e=d2e,$2e=P2e;function M2e(e,t){return $2e(O2e(e,t,T2e),e+"")}var B2e=M2e,I2e=sA,R2e=Ad,j2e=vA,F2e=to;function N2e(e,t,r){if(!F2e(r))return!1;var n=typeof t;return(n=="number"?R2e(r)&&j2e(t,r.length):n=="string"&&t in r)?I2e(r[t],e):!1}var F0=N2e,L2e=VB,z2e=s2e,V2e=B2e,o5=F0,q2e=V2e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&o5(e,t[0],t[1])?t=[]:r>2&&o5(t[0],t[1],t[2])&&(t=[t[0]]),z2e(e,L2e(t,1),[])}),U2e=q2e;const _A=Te(U2e);function Sf(e){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sf(e)}function H2e(e,t){return Y2e(e)||K2e(e,t)||G2e(e,t)||W2e()}function W2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G2e(e,t){if(e){if(typeof e=="string")return s5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s5(e,t)}}function s5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Um(e){return Um=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Um(e)}function ii(e,t,r){return t=WB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WB(e){var t=ube(e,"string");return Gu(t)==="symbol"?t:String(t)}function ube(e,t){if(Gu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zl="recharts-tooltip-wrapper",f5=1;function lbe(e){return e.dataKey}function cbe(e,t){return e===!0?$m(t,lbe):xe(e)?$m(t,e):t}function fbe(e,t){return q.isValidElement(e)?q.cloneElement(e,t):xe(e)?q.createElement(e,t):q.createElement(ebe,t)}var Qs=function(e){ibe(r,e);var t=abe(r);function r(){var n;rbe(this,r);for(var i=arguments.length,a=new Array(i),o=0;oA?Math.max(v,y[u]):Math.max(m,y[u])}),n}return nbe(r,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var i=this.state,a=i.boxWidth,o=i.boxHeight,s=i.dismissed;if(s?(document.removeEventListener("keydown",this.handleKeyDown),(this.props.coordinate.x!==this.state.dismissedAtCoordinate.x||this.props.coordinate.y!==this.state.dismissedAtCoordinate.y)&&this.setState({dismissed:!1})):document.addEventListener("keydown",this.handleKeyDown),this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var u=this.wrapperNode.getBoundingClientRect();(Math.abs(u.width-a)>f5||Math.abs(u.height-o)>f5)&&this.setState({boxWidth:u.width,boxHeight:u.height})}else(a!==-1||o!==-1)&&this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var i,a=this,o=this.props,s=o.payload,u=o.isAnimationActive,l=o.animationDuration,c=o.animationEasing,f=o.filterNull,d=o.payloadUniqBy,h=cbe(d,f&&s&&s.length?s.filter(function(O){return!ye(O.value)}):s),g=h&&h.length,p=this.props,b=p.content,y=p.viewBox,v=p.coordinate,m=p.position,x=p.active,w=p.wrapperStyle,S=Di({pointerEvents:"none",visibility:!this.state.dismissed&&x&&g?"visible":"hidden",position:"absolute",top:0,left:0},w),A,k;if(m&&J(m.x)&&J(m.y))A=m.x,k=m.y;else{var E=this.state,T=E.boxWidth,P=E.boxHeight;T>0&&P>0&&v?(A=this.getTranslate({key:"x",tooltipDimension:T,viewBoxDimension:y.width}),k=this.getTranslate({key:"y",tooltipDimension:P,viewBoxDimension:y.height})):S.visibility="hidden"}S=Di(Di({},Ib({transform:this.props.useTranslate3d?"translate3d(".concat(A,"px, ").concat(k,"px, 0)"):"translate(".concat(A,"px, ").concat(k,"px)")})),S),u&&x&&(S=Di(Di({},Ib({transition:"transform ".concat(l,"ms ").concat(c)})),S));var I=Ye(zl,(i={},ii(i,"".concat(zl,"-right"),J(A)&&v&&J(v.x)&&A>=v.x),ii(i,"".concat(zl,"-left"),J(A)&&v&&J(v.x)&&A=v.y),ii(i,"".concat(zl,"-top"),J(k)&&v&&J(v.y)&&k=t||A<0||f&&k>=a}function y(){var S=Uy();if(b(S))return v(S);s=setTimeout(y,p(S))}function v(S){return s=void 0,d&&n?h(S):(n=i=void 0,o)}function m(){s!==void 0&&clearTimeout(s),l=0,n=u=i=s=void 0}function x(){return s===void 0?o:v(Uy())}function w(){var S=Uy(),A=b(S);if(n=arguments,i=this,u=S,A){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(y,t),h(u)}return s===void 0&&(s=setTimeout(y,t)),o}return w.cancel=m,w.flush=x,w}var KB=Mbe;const Bbe=Te(KB);var Ibe=KB,Rbe=to,jbe="Expected a function";function Fbe(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(jbe);return Rbe(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ibe(e,t,{leading:n,maxWait:t,trailing:i})}var Nbe=Fbe;const YB=Te(Nbe);var Hb=function(e,t){return Hb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Hb(e,t)};function Lbe(e,t){Hb(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function zbe(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i"u"},g5=function(e){return e instanceof Element||e instanceof HTMLDocument},qbe=function(e,t,r){return function(n){var i=n.width,a=n.height;e(function(o){return o.width===i&&o.height===a||o.width===i&&!r||o.height===a&&!t?o:{width:i,height:a}})}},Ube=function(e){Lbe(t,e);function t(r){var n=e.call(this,r)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var l=n.props,c=l.targetRef,f=l.observerOptions;if(!Vl()){c&&c.current&&(n.targetRef.current=c.current);var d=n.getElement();d&&(n.observableElement&&n.observableElement===d||(n.observableElement=d,n.resizeObserver.observe(d,f)))}},n.getElement=function(){var l=n.props,c=l.querySelector,f=l.targetDomEl;if(Vl())return null;if(c)return document.querySelector(c);if(f&&g5(f))return f;if(n.targetRef&&g5(n.targetRef.current))return n.targetRef.current;var d=Zf.findDOMNode(n);if(!d)return null;var h=n.getRenderType();switch(h){case"renderProp":return d;case"childFunction":return d;case"child":return d;case"childArray":return d;default:return d.parentElement}},n.createResizeHandler=function(l){var c=n.props,f=c.handleWidth,d=f===void 0?!0:f,h=c.handleHeight,g=h===void 0?!0:h,p=c.onResize;if(!(!d&&!g)){var b=qbe(function(y){return n.setState(y,function(){return p==null?void 0:p(n.state.width,n.state.height)})},d,g);l.forEach(function(y){var v=y&&y.contentRect||{},m=v.width,x=v.height,w=!n.skipOnMount&&!Vl();w&&b({width:m,height:x}),n.skipOnMount=!1})}},n.getRenderType=function(){var l=n.props,c=l.render,f=l.children;return m5(c)?"renderProp":m5(f)?"childFunction":C.isValidElement(f)?"child":Array.isArray(f)?"childArray":"parent"};var i=r.skipOnMount,a=r.refreshMode,o=r.refreshRate,s=o===void 0?1e3:o,u=r.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=i,n.targetRef=C.createRef(),n.observableElement=null,Vl()||(n.resizeHandler=Vbe(n.createResizeHandler,a,s,u),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){Vl()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var r=this.props,n=r.render,i=r.children,a=r.nodeType,o=a===void 0?"div":a,s=this.state,u=s.width,l=s.height,c={width:u,height:l,targetRef:this.targetRef},f=this.getRenderType();switch(f){case"renderProp":return n==null?void 0:n(c);case"childFunction":{var d=i;return d==null?void 0:d(c)}case"child":{var h=i;if(h.type&&typeof h.type=="string"){c.targetRef;var g=zbe(c,["targetRef"]);return C.cloneElement(h,g)}return C.cloneElement(h,c)}case"childArray":{var p=i;return p.map(function(b){return!!b&&C.cloneElement(b,c)})}default:return q.createElement(o,null)}},t}(C.PureComponent),vu=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,"The aspect(%s) must be greater than zero.",r);var N=Oo(o)?I:o,R=Oo(u)?O:u;return r&&r>0&&(N?R=N/r:R&&(N=R*r),d&&R>d&&(R=d)),vu(N>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,N,R,o,u,c,f,r),C.cloneElement(h,{width:N,height:R})},[r,h,u,d,f,c,w,o]);C.useEffect(function(){var I=k();I&&S(I)},[k]);var P={width:o,height:u,minWidth:c,minHeight:f,maxHeight:d};return q.createElement(Ube,{handleWidth:!0,handleHeight:!0,onResize:E,targetRef:A,refreshMode:p>0?"debounce":void 0,refreshRate:p},q.createElement("div",Wb({},b!=null?{id:"".concat(b)}:{},{className:Ye("recharts-responsive-container",y),style:P,ref:A}),T))}),XB=function(t){return null};XB.displayName="Cell";var Gb={exports:{}},Hy="(".charCodeAt(0),Wy=")".charCodeAt(0),Sp="'".charCodeAt(0),Gy='"'.charCodeAt(0),Ky="\\".charCodeAt(0),Ap="/".charCodeAt(0),Yy=",".charCodeAt(0),Xy=":".charCodeAt(0),y5="*".charCodeAt(0),Qbe=function(e){for(var t=[],r=e,n,i,a,o,s,u,l,c=0,f=r.charCodeAt(c),d=r.length,h=[{nodes:t}],g=0,p,b="",y="",v="";c=48&&f<=57)c=!0;else if(f===n||f===i){if(l>-1)break;l=o}else if(f===r){if(u)break;u=!0}else if(f===t||f===e){if(o!==0)break}else break;o+=1}return l+1===o&&o--,c?{number:a.slice(0,o),unit:a.slice(o)}:!1},Qy}var txe=Qbe,JB=Jbe,ZB=Zbe;function Ka(e){return this instanceof Ka?(this.nodes=txe(e),this):new Ka(e)}Ka.prototype.toString=function(){return Array.isArray(this.nodes)?ZB(this.nodes):""};Ka.prototype.walk=function(e,t){return JB(this.nodes,e,t),this};Ka.unit=exe();Ka.walk=JB;Ka.stringify=ZB;var rxe=Ka;function nxe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eI={};(function(e){var t=function(){function r(d,h){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),d==null&&(d="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:d}),this.hash=h;var g;if(h&&h.exception instanceof Error){var p=h.exception;this.message=p.message||d,g=p.stack}g||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):g=new Error(d).stack),g&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:g})}typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(r.prototype,Error.prototype):r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.name="JisonParserError";function n(d){for(var h=[],g=d.pop,p=d.rule,b=0,y=g.length;b"u"&&Object.prototype.hasOwnProperty.call(W,ee)&&(se[ee]=W[ee])}E(k,this.yy),k.lexer=A,k.parser=this,typeof k.parseError=="function"?this.parseError=function(W,ee,X){return X||(X=this.JisonParserError),k.parseError.call(this,W,ee,X)}:this.parseError=this.originalParseError,typeof k.quoteName=="function"?this.quoteName=function(W){return k.quoteName.call(this,W)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(W,ee,X){var L;if(ee){var ce;(k.post_parse||this.post_parse)&&(ce=this.constructParseErrorInfo(null,null,null,!1)),k.post_parse&&(L=k.post_parse.call(this,k,W,ce),typeof L<"u"&&(W=L)),this.post_parse&&(L=this.post_parse.call(this,k,W,ce),typeof L<"u"&&(W=L)),ce&&ce.destroy&&ce.destroy()}if(this.__reentrant_call_depth>1)return W;if(A.cleanupAfterLex&&A.cleanupAfterLex(X),k&&(k.lexer=void 0,k.parser=void 0,A.yy===k&&(A.yy=void 0)),k=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,p.length=0,b.length=0,y.length=0,m=0,!X){for(var ve=this.__error_infos.length-1;ve>=0;ve--){var ae=this.__error_infos[ve];ae&&typeof ae.destroy=="function"&&ae.destroy()}this.__error_infos.length=0}return W},this.constructParseErrorInfo=function(W,ee,X,L){var ce={errStr:W,exception:ee,text:A.match,value:A.yytext,token:this.describeSymbol(x)||x,token_id:x,line:A.yylineno,expected:X,recoverable:L,state:O,action:N,new_state:H,symbol_stack:p,state_stack:b,value_stack:y,stack_pointer:m,yy:k,lexer:A,parser:this,destroy:function(){var ae=!!this.recoverable;for(var be in this)this.hasOwnProperty(be)&&typeof be=="object"&&(this[be]=void 0);this.recoverable=ae}};return this.__error_infos.push(ce),ce};function T(){var se=A.lex();return typeof se!="number"&&(se=g.symbols_[se]||se),se||w}function P(){var se=A.fastLex();return typeof se!="number"&&(se=g.symbols_[se]||se),se||w}var I=T,O,N,R,U,F={$:!0,_$:void 0,yy:k},j,$,V,H,Y=!1;try{if(this.__reentrant_call_depth++,A.setInput(h,k),typeof A.canIUse=="function"){var K=A.canIUse();K.fastLex&&typeof P=="function"&&(I=P)}for(y[m]=null,b[m]=0,p[m]=0,++m,this.pre_parse&&this.pre_parse.call(this,k),k.pre_parse&&k.pre_parse.call(this,k),H=b[m-1];;){if(O=H,this.defaultActions[O])N=2,H=this.defaultActions[O];else if(x||(x=I()),U=v[O]&&v[O][x]||S,H=U[1],N=U[0],!N){var Z,ue=this.describeSymbol(x)||x,fe=this.collect_expected_token_set(O);typeof A.yylineno=="number"?Z="Parse error on line "+(A.yylineno+1)+": ":Z="Parse error: ",typeof A.showPosition=="function"&&(Z+=` +`+A.showPosition(79-10,10)+` +`),fe.length?Z+="Expecting "+fe.join(", ")+", got unexpected "+ue:Z+="Unexpected "+ue,j=this.constructParseErrorInfo(Z,null,fe,!1),R=this.parseError(j.errStr,j,this.JisonParserError),typeof R<"u"&&(Y=R);break}switch(N){default:if(N instanceof Array){j=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+O+", token: "+x,null,null,!1),R=this.parseError(j.errStr,j,this.JisonParserError),typeof R<"u"&&(Y=R);break}j=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),R=this.parseError(j.errStr,j,this.JisonParserError),typeof R<"u"&&(Y=R);break;case 1:p[m]=x,y[m]=A.yytext,b[m]=H,++m,x=0;continue;case 2:if(V=this.productions_[H-1],$=V[1],R=this.performAction.call(F,H,m-1,y),typeof R<"u"){Y=R;break}m-=$;var le=V[0];p[m]=le,y[m]=F.$,H=v[b[m-1]][le],b[m]=H,++m;continue;case 3:m!==-2&&(Y=!0,m--,typeof y[m]<"u"&&(Y=y[m]));break}break}}catch(se){if(se instanceof this.JisonParserError)throw se;if(A&&typeof A.JisonLexerError=="function"&&se instanceof A.JisonLexerError)throw se;j=this.constructParseErrorInfo("Parsing aborted due to exception.",se,null,!1),Y=!1,R=this.parseError(j.errStr,j,this.JisonParserError),typeof R<"u"&&(Y=R)}finally{Y=this.cleanupAfterParse(Y,!0,!0),this.__reentrant_call_depth--}return Y}};l.originalParseError=l.parseError,l.originalQuoteName=l.quoteName;var c=function(){function d(g,p){Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),g==null&&(g="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:g}),this.hash=p;var b;if(p&&p.exception instanceof Error){var y=p.exception;this.message=y.message||g,b=y.stack}b||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):b=new Error(g).stack),b&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:b})}typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(d.prototype,Error.prototype):d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.name="JisonLexerError";var h={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(p,b,y){if(p=""+p,y==null&&(y=!(p.indexOf(` +`)>0&&p.indexOf("^")>0)),this.yylloc&&y){if(typeof this.prettyPrintRange=="function")this.prettyPrintRange(this.yylloc),/\n\s*$/.test(p)||(p+=` +`),p+=` + Erroneous area: +`+this.prettyPrintRange(this.yylloc);else if(typeof this.showPosition=="function"){var v=this.showPosition();v&&(p.length&&p[p.length-1]!==` +`&&v[0]!==` +`?p+=` +`+v:p+=v)}}var m={errStr:p,recoverable:!!b,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var w=!!this.recoverable;for(var S in this)this.hasOwnProperty(S)&&typeof S=="object"&&(this[S]=void 0);this.recoverable=w}};return this.__error_infos.push(m),m},parseError:function(p,b,y){if(y||(y=this.JisonLexerError),this.yy){if(this.yy.parser&&typeof this.yy.parser.parseError=="function")return this.yy.parser.parseError.call(this,p,b,y)||this.ERROR;if(typeof this.yy.parseError=="function")return this.yy.parseError.call(this,p,b,y)||this.ERROR}throw new y(p,b)},yyerror:function(p){var b="";this.yylloc&&(b=" on line "+(this.yylineno+1));var y=this.constructLexErrorInfo("Lexical error"+b+": "+p,this.options.lexerErrorsAreRecoverable),v=Array.prototype.slice.call(arguments,1);return v.length&&(y.extra_error_attributes=v),this.parseError(y.errStr,y,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(p){if(this.setInput("",{}),!p){for(var b=this.__error_infos.length-1;b>=0;b--){var y=this.__error_infos[b];y&&typeof y.destroy=="function"&&y.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var p=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:p,last_line:this.yylineno+1,last_column:p,range:[this.offset,this.offset]}},setInput:function(p,b){if(this.yy=b||this.yy||{},!this.__decompressed){for(var y=this.rules,v=0,m=y.length;v1){this.yylineno-=y.length-1,this.yylloc.last_line=this.yylineno+1;var v=this.match,m=v.split(/(?:\r\n?|\n)/g);m.length===1&&(v=this.matched,m=v.split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=m[m.length-1].length}else this.yylloc.last_column-=b;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var p="";this.yylloc&&(p=" on line "+(this.yylineno+1));var b=this.constructLexErrorInfo("Lexical error"+p+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(b.errStr,b,this.JisonLexerError)||this.ERROR}return this},less:function(p){return this.unput(this.match.slice(p))},pastInput:function(p,b){var y=this.matched.substring(0,this.matched.length-this.match.length);p<0?p=y.length:p||(p=20),b<0?b=y.length:b||(b=1),y=y.substr(-p*2-2);var v=y.replace(/\r\n|\r/g,` +`).split(` +`);return v=v.slice(-b),y=v.join(` +`),y.length>p&&(y="..."+y.substr(-p)),y},upcomingInput:function(p,b){var y=this.match;p<0?p=y.length+this._input.length:p||(p=20),b<0?b=p:b||(b=1),y.lengthp&&(y=y.substring(0,p)+"..."),y},showPosition:function(p,b){var y=this.pastInput(p).replace(/\s/g," "),v=new Array(y.length+1).join("-");return y+this.upcomingInput(b).replace(/\s/g," ")+` +`+v+"^"},deriveLocationInfo:function(p,b,y,v){var m={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return p&&(m.first_line=p.first_line|0,m.last_line=p.last_line|0,m.first_column=p.first_column|0,m.last_column=p.last_column|0,p.range&&(m.range[0]=p.range[0]|0,m.range[1]=p.range[1]|0)),(m.first_line<=0||m.last_line=m.first_line)&&(m.last_line=v.last_line|0,m.last_column=v.last_column|0,v.range&&(m.range[1]=v.range[1]|0))),m.last_line<=0&&(m.first_line<=0?(m.first_line=this.yylloc.first_line,m.last_line=this.yylloc.last_line,m.first_column=this.yylloc.first_column,m.last_column=this.yylloc.last_column,m.range[0]=this.yylloc.range[0],m.range[1]=this.yylloc.range[1]):(m.last_line=this.yylloc.last_line,m.last_column=this.yylloc.last_column,m.range[1]=this.yylloc.range[1])),m.first_line<=0&&(m.first_line=m.last_line,m.first_column=0,m.range[1]=m.range[0]),m.first_column<0&&(m.first_column=0),m.last_column<0&&(m.last_column=m.first_column>0?m.first_column:80),m},prettyPrintRange:function(p,b,y){p=this.deriveLocationInfo(p,b,y);const v=3,m=1,x=2;var w=this.matched+this._input,S=w.split(` +`),A=Math.max(1,b?b.first_line:p.first_line-v),k=Math.max(1,y?y.last_line:p.last_line+m),E=1+Math.log10(k|1)|0,T=new Array(E).join(" "),P=[],I=S.slice(A-1,k+1).map(function(F,j){var $=j+A,V=(T+$).substr(-E),H=V+": "+F,Y=new Array(E+1).join("^"),K=2+1,Z=0;if($===p.first_line?(K+=p.first_column,Z=Math.max(2,($===p.last_line?p.last_column:F.length)-p.first_column+1)):$===p.last_line?Z=Math.max(2,p.last_column+1):$>p.first_line&&$0&&P.push(j)}return H=H.replace(/\t/g," "),H});if(P.length>2*x){var O=P[x-1]+1,N=P[P.length-x]-1,R=new Array(E+1).join(" ")+" (...continued...)";R+=` +`+new Array(E+1).join("-")+" (---------------)",I.splice(O,N-O+1,R)}return I.join(` +`)},describeYYLLOC:function(p,b){var y=p.first_line,v=p.last_line,m=p.first_column,x=p.last_column,w=v-y,S=x-m,A;if(w===0?(A="line "+y+", ",S<=1?A+="column "+m:A+="columns "+m+" .. "+x):A="lines "+y+"(column "+m+") .. "+v+"(column "+x+")",p.range&&b){var k=p.range[0],E=p.range[1]-1;E<=k?A+=" {String Offset: "+k+"}":A+=" {String Offset range: "+k+" .. "+E+"}"}return A},test_match:function(p,b){var y,v,m,x,w;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),x=p[0],w=x.length,v=x.split(/(?:\r\n?|\n)/g),v.length>1?(this.yylineno+=v.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=v[v.length-1].length):this.yylloc.last_column+=w,this.yytext+=x,this.match+=x,this.matched+=x,this.matches=p,this.yyleng=this.yytext.length,this.yylloc.range[1]+=w,this.offset+=w,this._more=!1,this._backtrack=!1,this._input=this._input.slice(w),y=this.performAction.call(this,this.yy,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),y)return y;if(this._backtrack){for(var S in m)this[S]=m[S];return this.__currentRuleSet__=null,!1}else if(this._signaled_error_token)return y=this._signaled_error_token,this._signaled_error_token=!1,y;return!1},next:function(){if(this.done)return this.clear(),this.EOF;this._input||(this.done=!0);var p,b,y,v;this._more||this.clear();var m=this.__currentRuleSet__;if(!m&&(m=this.__currentRuleSet__=this._currentRules(),!m||!m.rules)){var x="";this.options.trackPosition&&(x=" on line "+(this.yylineno+1));var w=this.constructLexErrorInfo("Internal lexer engine error"+x+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(w.errStr,w,this.JisonLexerError)||this.ERROR}for(var S=m.rules,A=m.__rule_regexes,k=m.__rule_count,E=1;E<=k;E++)if(y=this._input.match(A[E]),y&&(!b||y[0].length>b[0].length)){if(b=y,v=E,this.options.backtrack_lexer){if(p=this.test_match(y,S[E]),p!==!1)return p;if(this._backtrack){b=void 0;continue}else return!1}else if(!this.options.flex)break}if(b)return p=this.test_match(b,S[v]),p!==!1?p:!1;if(this._input){var x="";this.options.trackPosition&&(x=" on line "+(this.yylineno+1));var w=this.constructLexErrorInfo("Lexical error"+x+": Unrecognized text.",this.options.lexerErrorsAreRecoverable),T=this._input,P=this.topState(),I=this.conditionStack.length;return p=this.parseError(w.errStr,w,this.JisonLexerError)||this.ERROR,p===this.ERROR&&!this.matches&&T===this._input&&P===this.topState()&&I===this.conditionStack.length&&this.input(),p}else return this.done=!0,this.clear(),this.EOF},lex:function(){var p;for(typeof this.pre_lex=="function"&&(p=this.pre_lex.call(this,0)),typeof this.options.pre_lex=="function"&&(p=this.options.pre_lex.call(this,p)||p),this.yy&&typeof this.yy.pre_lex=="function"&&(p=this.yy.pre_lex.call(this,p)||p);!p;)p=this.next();return this.yy&&typeof this.yy.post_lex=="function"&&(p=this.yy.post_lex.call(this,p)||p),typeof this.options.post_lex=="function"&&(p=this.options.post_lex.call(this,p)||p),typeof this.post_lex=="function"&&(p=this.post_lex.call(this,p)||p),p},fastLex:function(){for(var p;!p;)p=this.next();return p},canIUse:function(){var p={fastLex:!(typeof this.pre_lex=="function"||typeof this.options.pre_lex=="function"||this.yy&&typeof this.yy.pre_lex=="function"||this.yy&&typeof this.yy.post_lex=="function"||typeof this.options.post_lex=="function"||typeof this.post_lex=="function")&&typeof this.fastLex=="function"};return p},begin:function(p){return this.pushState(p)},pushState:function(p){return this.conditionStack.push(p),this.__currentRuleSet__=null,this},popState:function(){var p=this.conditionStack.length-1;return p>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(p){return p=this.conditionStack.length-1-Math.abs(p||0),p>=0?this.conditionStack[p]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:d,performAction:function(p,b,y){switch(b){case 1:break;default:return this.simpleCaseActionClusters[b]}},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return h}();l.lexer=c;function f(){this.yy={}}return f.prototype=l,l.Parser=f,new f}();typeof nxe<"u"&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})})(eI);var Cd={},Kb={exports:{}},Jy={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:Math.PI*2},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:1/1e3},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:1/1e3,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},ixe=function(e,t,r,n){if(!Jy.hasOwnProperty(r))throw new Error("Cannot convert to "+r);if(!Jy[r].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+r);var i=Jy[r][t]*e;return n!==!1?(n=Math.pow(10,parseInt(n)||5),Math.round(i*n)/n):i};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=ixe,n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}function a(s,u,l){switch(s.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return o(s,u,l);default:return{left:s,right:u}}}function o(s,u,l){return u.type===s.type&&(u={type:s.type,value:(0,n.default)(u.value,u.unit,s.unit,l),unit:s.unit}),{left:s,right:u}}t.default=a,e.exports=t.default})(Kb,Kb.exports);var axe=Kb.exports;Object.defineProperty(Cd,"__esModule",{value:!0});Cd.flip=Yb;var oxe=axe,Zy=sxe(oxe);function sxe(e){return e&&e.__esModule?e:{default:e}}function nr(e,t){return e.type==="MathExpression"?dxe(e,t):e.type==="Calc"?nr(e.value,t):e}function w5(e,t){return e.type===t.type&&e.value===t.value}function _r(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function uxe(e,t){var r=(0,Zy.default)(e.left,e.right,t),n=nr(r.left,t),i=nr(r.right,t);return n.type==="MathExpression"&&i.type==="MathExpression"&&(n.operator==="/"&&i.operator==="*"||n.operator==="-"&&i.operator==="+"||n.operator==="*"&&i.operator==="/"||n.operator==="+"&&i.operator==="-")&&(w5(n.right,i.right)?r=(0,Zy.default)(n.left,i.left,t):w5(n.right,i.left)&&(r=(0,Zy.default)(n.left,i.right,t)),n=nr(r.left,t),i=nr(r.right,t)),e.left=n,e.right=i,e}function Yb(e){return e==="+"?"-":"+"}function Xb(e){return _r(e.type)?e.value=-e.value:e.type=="MathExpression"&&(e.left=Xb(e.left),e.right=Xb(e.right)),e}function lxe(e,t){var r=e,n=r.left,i=r.right,a=r.operator;if(n.type==="CssVariable"||i.type==="CssVariable")return e;if(i.value===0)return n;if(n.value===0&&a==="+")return i;if(n.value===0&&a==="-")return Xb(i);if(n.type===i.type&&_r(n.type)&&(e=Object.assign({},n),a==="+"?e.value=n.value+i.value:e.value=n.value-i.value),_r(n.type)&&(i.operator==="+"||i.operator==="-")&&i.type==="MathExpression"){if(n.type===i.left.type)return e=Object.assign({},e),e.left=nr({type:"MathExpression",operator:a,left:n,right:i.left},t),e.right=i.right,e.operator=a==="-"?Yb(i.operator):i.operator,nr(e,t);if(n.type===i.right.type)return e=Object.assign({},e),e.left=nr({type:"MathExpression",operator:a==="-"?Yb(i.operator):i.operator,left:n,right:i.right},t),e.right=i.left,nr(e,t)}if(n.type==="MathExpression"&&(n.operator==="+"||n.operator==="-")&&_r(i.type)){if(i.type===n.left.type)return e=Object.assign({},n),e.left=nr({type:"MathExpression",operator:a,left:n.left,right:i},t),nr(e,t);if(i.type===n.right.type)return e=Object.assign({},n),n.operator==="-"?(e.right=nr({type:"MathExpression",operator:a==="-"?"+":"-",left:i,right:n.right},t),e.operator=a==="-"?"-":"+"):e.right=nr({type:"MathExpression",operator:a,left:n.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator=e.operator==="-"?"+":"-"),nr(e,t)}return e}function cxe(e,t){if(!_r(e.right.type))return e;if(e.right.type!=="Value")throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(e.right.value===0)throw new Error("Cannot divide by zero");return e.left.type==="MathExpression"?_r(e.left.left.type)&&_r(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,nr(e.left,t)):e:_r(e.left.type)?(e.left.value/=e.right.value,e.left):e}function fxe(e){if(e.left.type==="MathExpression"&&e.right.type==="Value"){if(_r(e.left.left.type)&&_r(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(_r(e.left.type)&&e.right.type==="Value")return e.left.value*=e.right.value,e.left;if(e.left.type==="Value"&&e.right.type==="MathExpression"){if(_r(e.right.left.type)&&_r(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if(e.left.type==="Value"&&_r(e.right.type))return e.right.value*=e.left.value,e.right}return e}function dxe(e,t){switch(e=uxe(e,t),e.operator){case"+":case"-":return lxe(e,t);case"/":return cxe(e,t);case"*":return fxe(e)}return e}Cd.default=nr;var Qb={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(o,s,u){var l=a(s,u);return s.type==="MathExpression"&&(l=o+"("+l+")"),l};var r=Cd,n={"*":0,"/":0,"+":1,"-":1};function i(o,s){if(s!==!1){var u=Math.pow(10,s);return Math.round(o*u)/u}return o}function a(o,s){switch(o.type){case"MathExpression":{var u=o.left,l=o.right,c=o.operator,f="";return u.type==="MathExpression"&&n[c]1&&arguments[1]!==void 0?arguments[1]:5;return(0,n.default)(f).walk(function(h){if(!(h.type!=="function"||!c.test(h.value))){var g=n.default.stringify(h.nodes);if(!(g.indexOf("constant")>=0||g.indexOf("env")>=0)){var p=i.parser.parse(g),b=(0,o.default)(p,d);h.type="word",h.value=(0,u.default)(h.value,b,d)}}},!0).toString()},e.exports=t.default})(Gb,Gb.exports);var hxe=Gb.exports;const e1=Te(hxe);function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(e)}function S5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A5(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0&&t===+t?"".concat(t,"px"):t}function kxe(e){var t=e.split(""),r=t.reduce(function(n,i){return i===i.toUpperCase()?[].concat(C5(n),["-",i.toLowerCase()]):[].concat(C5(n),[i])},[]);return r.join("")}var Exe=function(t){return Object.keys(t).reduce(function(r,n){return"".concat(r).concat(kxe(n),":").concat(_xe(n,t[n]),";")},"")},li=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||La.isSsr)return{width:0,height:0};var n="".concat(t),i=Exe(r),a="".concat(n,"-").concat(i);if(As.widthCache[a])return As.widthCache[a];try{var o=document.getElementById(_5);o||(o=document.createElement("span"),o.setAttribute("id",_5),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=A5(A5({},Axe),r);Object.keys(s).map(function(c){return o.style[c]=s[c],c}),o.textContent=n;var u=o.getBoundingClientRect(),l={width:u.width,height:u.height};return As.widthCache[a]=l,++As.cacheCount>Sxe&&(As.cacheCount=0,As.widthCache={}),l}catch{return{width:0,height:0}}},Dxe=function(t){var r=t.ownerDocument.documentElement,n={top:0,left:0};return typeof t.getBoundingClientRect<"u"&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-r.clientTop,left:n.left+window.pageXOffset-r.clientLeft}},Pxe=function(t,r){return{chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)}},Txe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Oxe=["dx","dy","angle","className","breakAll"];function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $xe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function E5(e,t){return Rxe(e)||Ixe(e,t)||Bxe(e,t)||Mxe()}function Mxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bxe(e,t){if(e){if(typeof e=="string")return D5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D5(e,t)}}function D5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(U,F){var j=F.word,$=F.width,V=U[U.length-1];if(V&&(i==null||a||V.width+$+nF.width?U:F})};if(!c)return h;for(var p="…",b=function(R){var U=f.slice(0,R),F=rI({breakAll:l,style:u,children:U+p}).wordsWithComputedWidth,j=d(F),$=j.length>o||g(j).width>Number(i);return[$,j]},y=0,v=f.length-1,m=0,x;y<=v&&m<=f.length-1;){var w=Math.floor((y+v)/2),S=w-1,A=b(S),k=E5(A,2),E=k[0],T=k[1],P=b(w),I=E5(P,1),O=I[0];if(!E&&!O&&(y=w+1),E&&O&&(v=w-1),!E&&O){x=T;break}m++}return x||h},P5=function(t){var r=ye(t)?[]:t.toString().split(tI);return[{words:r}]},Fxe=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!La.isSsr){var u,l,c=rI({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;u=f,l=d}else return P5(i);return jxe({breakAll:o,children:i,maxLines:s,style:a},u,l,r,n)}return P5(i)},T5="#808080",Hm=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,u=t.capHeight,l=u===void 0?"0.71em":u,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,h=d===void 0?"start":d,g=t.verticalAnchor,p=g===void 0?"end":g,b=t.fill,y=b===void 0?T5:b,v=k5(t,Txe),m=C.useMemo(function(){return Fxe({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),x=v.dx,w=v.dy,S=v.angle,A=v.className,k=v.breakAll,E=k5(v,Oxe);if(!Tt(n)||!Tt(a))return null;var T=n+(J(x)?x:0),P=a+(J(w)?w:0),I;switch(p){case"start":I=e1("calc(".concat(l,")"));break;case"middle":I=e1("calc(".concat((m.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:I=e1("calc(".concat(m.length-1," * -").concat(s,")"));break}var O=[];if(f){var N=m[0].width,R=v.width;O.push("scale(".concat((J(R)?R/N:1)/N,")"))}return S&&O.push("rotate(".concat(S,", ").concat(T,", ").concat(P,")")),O.length&&(E.transform=O.join(" ")),q.createElement("text",Zb({},Ve(E,!0),{x:T,y:P,className:Ye("recharts-text",A),textAnchor:h,fill:y.includes("url")?T5:y}),m.map(function(U,F){return q.createElement("tspan",{x:T,dy:F===0?I:s,key:F},U.words.join(k?"":" "))}))},Nxe=bA;function Lxe(e,t){return Nxe(e,t)}var zxe=Lxe;const nI=Te(zxe);var Vxe=ll;function qxe(e,t,r){for(var n=-1,i=e.length;++nt}var Hxe=Uxe,Wxe=iI,Gxe=Hxe,Kxe=ml;function Yxe(e){return e&&e.length?Wxe(e,Kxe,Gxe):void 0}var Xxe=Yxe;const N0=Te(Xxe);function Qxe(e,t){return et?1:e>=t?0:NaN}function mwe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function kA(e){let t,r,n;e.length!==2?(t=za,r=(s,u)=>za(e(s),u),n=(s,u)=>e(s)-u):(t=e===za||e===mwe?e:gwe,r=e,n=e);function i(s,u,l=0,c=s.length){if(l>>1;r(s[f],u)<0?l=f+1:c=f}while(l>>1;r(s[f],u)<=0?l=f+1:c=f}while(ll&&n(s[f-1],u)>-n(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function gwe(){return 0}function aI(e){return e===null?NaN:+e}function*vwe(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const ywe=kA(za),bwe=ywe.right;kA(aI).center;const _d=bwe;class O5 extends Map{constructor(t,r=Swe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get($5(this,t))}has(t){return super.has($5(this,t))}set(t,r){return super.set(xwe(this,t),r)}delete(t){return super.delete(wwe(this,t))}}function $5({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function xwe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function wwe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Swe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Awe(e=za){if(e===za)return oI;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function oI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const Cwe=Math.sqrt(50),_we=Math.sqrt(10),kwe=Math.sqrt(2);function Wm(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=Cwe?10:a>=_we?5:a>=kwe?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),u=Math.round(t*l),s/lt&&--u,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),u=Math.round(t/l),s*lt&&--u),u0))return[];if(e===t)return[e];const n=t=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let l=0;l=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}function B5(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function sI(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?oI:Awe(i);n>r;){if(n-r>600){const u=n-r+1,l=t-r+1,c=Math.log(u),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),h=Math.max(r,Math.floor(t-l*f/u+d)),g=Math.min(n,Math.floor(t+(u-l)*f/u+d));sI(e,t,h,g,i)}const a=e[t];let o=r,s=n;for(ql(e,r,t),i(e[n],a)>0&&ql(e,r,n);o0;)--s}i(e[r],a)===0?ql(e,r,s):(++s,ql(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function ql(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Ewe(e,t,r){if(e=Float64Array.from(vwe(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return B5(e);if(t>=1)return M5(e);var n,i=(n-1)*t,a=Math.floor(i),o=M5(sI(e,a).subarray(0,a+1)),s=B5(e.subarray(a+1));return o+(s-o)*(i-a)}}function Dwe(e,t,r=aI){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function Pwe(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Cp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Cp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Owe.exec(e))?new Dr(t[1],t[2],t[3],1):(t=$we.exec(e))?new Dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mwe.exec(e))?Cp(t[1],t[2],t[3],t[4]):(t=Bwe.exec(e))?Cp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Iwe.exec(e))?z5(t[1],t[2]/100,t[3]/100,1):(t=Rwe.exec(e))?z5(t[1],t[2]/100,t[3]/100,t[4]):I5.hasOwnProperty(e)?F5(I5[e]):e==="transparent"?new Dr(NaN,NaN,NaN,0):null}function F5(e){return new Dr(e>>16&255,e>>8&255,e&255,1)}function Cp(e,t,r,n){return n<=0&&(e=t=r=NaN),new Dr(e,t,r,n)}function Nwe(e){return e instanceof kd||(e=Ef(e)),e?(e=e.rgb(),new Dr(e.r,e.g,e.b,e.opacity)):new Dr}function ix(e,t,r,n){return arguments.length===1?Nwe(e):new Dr(e,t,r,n??1)}function Dr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}DA(Dr,ix,lI(kd,{brighter(e){return e=e==null?Gm:Math.pow(Gm,e),new Dr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_f:Math.pow(_f,e),new Dr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Dr(Vo(this.r),Vo(this.g),Vo(this.b),Km(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N5,formatHex:N5,formatHex8:Lwe,formatRgb:L5,toString:L5}));function N5(){return`#${$o(this.r)}${$o(this.g)}${$o(this.b)}`}function Lwe(){return`#${$o(this.r)}${$o(this.g)}${$o(this.b)}${$o((isNaN(this.opacity)?1:this.opacity)*255)}`}function L5(){const e=Km(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function Km(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $o(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function z5(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ln(e,t,r,n)}function cI(e){if(e instanceof Ln)return new Ln(e.h,e.s,e.l,e.opacity);if(e instanceof kd||(e=Ef(e)),!e)return new Ln;if(e instanceof Ln)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&u<1?0:o,new Ln(o,s,u,e.opacity)}function zwe(e,t,r,n){return arguments.length===1?cI(e):new Ln(e,t,r,n??1)}function Ln(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}DA(Ln,zwe,lI(kd,{brighter(e){return e=e==null?Gm:Math.pow(Gm,e),new Ln(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_f:Math.pow(_f,e),new Ln(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Dr(t1(e>=240?e-240:e+120,i,n),t1(e,i,n),t1(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ln(V5(this.h),_p(this.s),_p(this.l),Km(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Km(this.opacity);return`${e===1?"hsl(":"hsla("}${V5(this.h)}, ${_p(this.s)*100}%, ${_p(this.l)*100}%${e===1?")":`, ${e})`}`}}));function V5(e){return e=(e||0)%360,e<0?e+360:e}function _p(e){return Math.max(0,Math.min(1,e||0))}function t1(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const PA=e=>()=>e;function Vwe(e,t){return function(r){return e+r*t}}function qwe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Uwe(e){return(e=+e)==1?fI:function(t,r){return r-t?qwe(t,r,e):PA(isNaN(t)?r:t)}}function fI(e,t){var r=t-e;return r?Vwe(e,r):PA(isNaN(e)?t:e)}const q5=function e(t){var r=Uwe(t);function n(i,a){var o=r((i=ix(i)).r,(a=ix(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=fI(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return n.gamma=e,n}(1);function Hwe(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Ym(n,i)})),r=r1.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function rSe(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?nSe:rSe,u=l=null,f}function f(d){return d==null||isNaN(d=+d)?a:(u||(u=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((l||(l=s(t,e.map(n),Ym)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Xm),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=TA,c()},f.clamp=function(d){return arguments.length?(o=d?!0:vr,c()):o!==vr},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,c()}}function OA(){return z0()(vr,vr)}function iSe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Qm(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ku(e){return e=Qm(Math.abs(e)),e?e[1]:NaN}function aSe(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function oSe(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var sSe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Df(e){if(!(t=sSe.exec(e)))throw new Error("invalid format: "+e);var t;return new $A({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Df.prototype=$A.prototype;function $A(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}$A.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function uSe(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var dI;function lSe(e,t){var r=Qm(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(dI=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Qm(e,Math.max(0,t+a-1))[0]}function H5(e,t){var r=Qm(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const W5={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:iSe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>H5(e*100,t),r:H5,s:lSe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function G5(e){return e}var K5=Array.prototype.map,Y5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cSe(e){var t=e.grouping===void 0||e.thousands===void 0?G5:aSe(K5.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?G5:oSe(K5.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=Df(f);var d=f.fill,h=f.align,g=f.sign,p=f.symbol,b=f.zero,y=f.width,v=f.comma,m=f.precision,x=f.trim,w=f.type;w==="n"?(v=!0,w="g"):W5[w]||(m===void 0&&(m=12),x=!0,w="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var S=p==="$"?r:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",A=p==="$"?n:/[%p]/.test(w)?o:"",k=W5[w],E=/[defgprs%]/.test(w);m=m===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));function T(P){var I=S,O=A,N,R,U;if(w==="c")O=k(P)+O,P="";else{P=+P;var F=P<0||1/P<0;if(P=isNaN(P)?u:k(Math.abs(P),m),x&&(P=uSe(P)),F&&+P==0&&g!=="+"&&(F=!1),I=(F?g==="("?g:s:g==="-"||g==="("?"":g)+I,O=(w==="s"?Y5[8+dI/3]:"")+O+(F&&g==="("?")":""),E){for(N=-1,R=P.length;++NU||U>57){O=(U===46?i+P.slice(N+1):P.slice(N))+O,P=P.slice(0,N);break}}}v&&!b&&(P=t(P,1/0));var j=I.length+P.length+O.length,$=j>1)+I+P+O+$.slice(j);break;default:P=$+I+P+O;break}return a(P)}return T.toString=function(){return f+""},T}function c(f,d){var h=l((f=Df(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Ku(d)/3)))*3,p=Math.pow(10,-g),b=Y5[8+g/3];return function(y){return h(p*y)+b}}return{format:l,formatPrefix:c}}var kp,MA,pI;fSe({thousands:",",grouping:[3],currency:["$",""]});function fSe(e){return kp=cSe(e),MA=kp.format,pI=kp.formatPrefix,kp}function dSe(e){return Math.max(0,-Ku(Math.abs(e)))}function pSe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ku(t)/3)))*3-Ku(Math.abs(e)))}function hSe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ku(t)-Ku(e))+1}function hI(e,t,r,n){var i=rx(e,t,r),a;switch(n=Df(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=pSe(i,o))&&(n.precision=a),pI(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=hSe(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=dSe(i))&&(n.precision=a-(n.type==="%")*2);break}}return MA(n)}function oo(e){var t=e.domain;return e.ticks=function(r){var n=t();return ex(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return hI(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,l,c=10;for(s0;){if(l=tx(o,s,r),l===u)return n[i]=o,n[a]=s,t(n);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function Jm(){var e=OA();return e.copy=function(){return Ed(e,Jm())},Pn.apply(e,arguments),oo(e)}function mI(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Xm),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return mI(e).unknown(t)},e=arguments.length?Array.from(e,Xm):[0,1],oo(r)}function gI(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function bSe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function J5(e){return(t,r)=>-e(-t,r)}function BA(e){const t=e(X5,Q5),r=t.domain;let n=10,i,a;function o(){return i=bSe(n),a=ySe(n),r()[0]<0?(i=J5(i),a=J5(a),e(mSe,gSe)):e(X5,Q5),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let l=u[0],c=u[u.length-1];const f=c0){for(;d<=h;++d)for(g=1;gc)break;y.push(p)}}else for(;d<=h;++d)for(g=n-1;g>=1;--g)if(p=d>0?g/a(-d):g*a(d),!(pc)break;y.push(p)}y.length*2{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Df(u)).precision==null&&(u.trim=!0),u=MA(u)),s===1/0)return u;const l=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*nr(gI(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function vI(){const e=BA(z0()).domain([1,10]);return e.copy=()=>Ed(e,vI()).base(e.base()),Pn.apply(e,arguments),e}function Z5(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function eP(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function IA(e){var t=1,r=e(Z5(t),eP(t));return r.constant=function(n){return arguments.length?e(Z5(t=+n),eP(t)):t},oo(r)}function yI(){var e=IA(z0());return e.copy=function(){return Ed(e,yI()).constant(e.constant())},Pn.apply(e,arguments)}function tP(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function xSe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function wSe(e){return e<0?-e*e:e*e}function RA(e){var t=e(vr,vr),r=1;function n(){return r===1?e(vr,vr):r===.5?e(xSe,wSe):e(tP(r),tP(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},oo(t)}function jA(){var e=RA(z0());return e.copy=function(){return Ed(e,jA()).exponent(e.exponent())},Pn.apply(e,arguments),e}function SSe(){return jA.apply(null,arguments).exponent(.5)}function rP(e){return Math.sign(e)*e*e}function ASe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function bI(){var e=OA(),t=[0,1],r=!1,n;function i(a){var o=ASe(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(rP(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Xm)).map(rP)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return bI(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Pn.apply(i,arguments),oo(i)}function xI(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return wI().domain([e,t]).range(i).unknown(a)},Pn.apply(oo(o),arguments)}function SI(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[_d(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return SI().domain(e).range(t).unknown(r)},Pn.apply(i,arguments)}const n1=new Date,i1=new Date;function Mt(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a0))return u;let l;do u.push(l=new Date(+a)),t(a,s),e(a);while(lMt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(n1.setTime(+a),i1.setTime(+o),e(n1),e(i1),Math.floor(r(n1,i1))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Zm=Mt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Mt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Zm);Zm.range;const Ni=1e3,gn=Ni*60,Li=gn*60,ta=Li*24,FA=ta*7,nP=ta*30,a1=ta*365,Mo=Mt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ni)},(e,t)=>(t-e)/Ni,e=>e.getUTCSeconds());Mo.range;const NA=Mt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni)},(e,t)=>{e.setTime(+e+t*gn)},(e,t)=>(t-e)/gn,e=>e.getMinutes());NA.range;const LA=Mt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*gn)},(e,t)=>(t-e)/gn,e=>e.getUTCMinutes());LA.range;const zA=Mt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ni-e.getMinutes()*gn)},(e,t)=>{e.setTime(+e+t*Li)},(e,t)=>(t-e)/Li,e=>e.getHours());zA.range;const VA=Mt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Li)},(e,t)=>(t-e)/Li,e=>e.getUTCHours());VA.range;const Dd=Mt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gn)/ta,e=>e.getDate()-1);Dd.range;const V0=Mt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ta,e=>e.getUTCDate()-1);V0.range;const AI=Mt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ta,e=>Math.floor(e/ta));AI.range;function fs(e){return Mt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*gn)/FA)}const q0=fs(0),eg=fs(1),CSe=fs(2),_Se=fs(3),Yu=fs(4),kSe=fs(5),ESe=fs(6);q0.range;eg.range;CSe.range;_Se.range;Yu.range;kSe.range;ESe.range;function ds(e){return Mt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/FA)}const U0=ds(0),tg=ds(1),DSe=ds(2),PSe=ds(3),Xu=ds(4),TSe=ds(5),OSe=ds(6);U0.range;tg.range;DSe.range;PSe.range;Xu.range;TSe.range;OSe.range;const qA=Mt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());qA.range;const UA=Mt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());UA.range;const ra=Mt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ra.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Mt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});ra.range;const na=Mt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());na.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Mt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});na.range;function CI(e,t,r,n,i,a){const o=[[Mo,1,Ni],[Mo,5,5*Ni],[Mo,15,15*Ni],[Mo,30,30*Ni],[a,1,gn],[a,5,5*gn],[a,15,15*gn],[a,30,30*gn],[i,1,Li],[i,3,3*Li],[i,6,6*Li],[i,12,12*Li],[n,1,ta],[n,2,2*ta],[r,1,FA],[t,1,nP],[t,3,3*nP],[e,1,a1]];function s(l,c,f){const d=cb).right(o,d);if(h===o.length)return e.every(rx(l/a1,c/a1,f));if(h===0)return Zm.every(Math.max(rx(l,c,f),1));const[g,p]=o[d/o[h-1][2]53)return null;"w"in L||(L.w=1),"Z"in L?(ve=s1(Ul(L.y,0,1)),ae=ve.getUTCDay(),ve=ae>4||ae===0?tg.ceil(ve):tg(ve),ve=V0.offset(ve,(L.V-1)*7),L.y=ve.getUTCFullYear(),L.m=ve.getUTCMonth(),L.d=ve.getUTCDate()+(L.w+6)%7):(ve=o1(Ul(L.y,0,1)),ae=ve.getDay(),ve=ae>4||ae===0?eg.ceil(ve):eg(ve),ve=Dd.offset(ve,(L.V-1)*7),L.y=ve.getFullYear(),L.m=ve.getMonth(),L.d=ve.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),ae="Z"in L?s1(Ul(L.y,0,1)).getUTCDay():o1(Ul(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(ae+5)%7:L.w+L.U*7-(ae+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,s1(L)):o1(L)}}function k(W,ee,X,L){for(var ce=0,ve=ee.length,ae=X.length,be,Ee;ce=ae)return-1;if(be=ee.charCodeAt(ce++),be===37){if(be=ee.charAt(ce++),Ee=w[be in iP?ee.charAt(ce++):be],!Ee||(L=Ee(W,X,L))<0)return-1}else if(be!=X.charCodeAt(L++))return-1}return L}function E(W,ee,X){var L=l.exec(ee.slice(X));return L?(W.p=c.get(L[0].toLowerCase()),X+L[0].length):-1}function T(W,ee,X){var L=h.exec(ee.slice(X));return L?(W.w=g.get(L[0].toLowerCase()),X+L[0].length):-1}function P(W,ee,X){var L=f.exec(ee.slice(X));return L?(W.w=d.get(L[0].toLowerCase()),X+L[0].length):-1}function I(W,ee,X){var L=y.exec(ee.slice(X));return L?(W.m=v.get(L[0].toLowerCase()),X+L[0].length):-1}function O(W,ee,X){var L=p.exec(ee.slice(X));return L?(W.m=b.get(L[0].toLowerCase()),X+L[0].length):-1}function N(W,ee,X){return k(W,t,ee,X)}function R(W,ee,X){return k(W,r,ee,X)}function U(W,ee,X){return k(W,n,ee,X)}function F(W){return o[W.getDay()]}function j(W){return a[W.getDay()]}function $(W){return u[W.getMonth()]}function V(W){return s[W.getMonth()]}function H(W){return i[+(W.getHours()>=12)]}function Y(W){return 1+~~(W.getMonth()/3)}function K(W){return o[W.getUTCDay()]}function Z(W){return a[W.getUTCDay()]}function ue(W){return u[W.getUTCMonth()]}function fe(W){return s[W.getUTCMonth()]}function le(W){return i[+(W.getUTCHours()>=12)]}function se(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var ee=S(W+="",m);return ee.toString=function(){return W},ee},parse:function(W){var ee=A(W+="",!1);return ee.toString=function(){return W},ee},utcFormat:function(W){var ee=S(W+="",x);return ee.toString=function(){return W},ee},utcParse:function(W){var ee=A(W+="",!0);return ee.toString=function(){return W},ee}}}var iP={"-":"",_:" ",0:"0"},zt=/^\s*\d+/,jSe=/^%/,FSe=/[\\^$*+?|[\]().{}]/g;function $e(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function LSe(e,t,r){var n=zt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zSe(e,t,r){var n=zt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function VSe(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function qSe(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function USe(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function aP(e,t,r){var n=zt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function oP(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function HSe(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function WSe(e,t,r){var n=zt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function GSe(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function sP(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function KSe(e,t,r){var n=zt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function uP(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function YSe(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function XSe(e,t,r){var n=zt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function QSe(e,t,r){var n=zt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function JSe(e,t,r){var n=zt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ZSe(e,t,r){var n=jSe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function eAe(e,t,r){var n=zt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function tAe(e,t,r){var n=zt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function lP(e,t){return $e(e.getDate(),t,2)}function rAe(e,t){return $e(e.getHours(),t,2)}function nAe(e,t){return $e(e.getHours()%12||12,t,2)}function iAe(e,t){return $e(1+Dd.count(ra(e),e),t,3)}function _I(e,t){return $e(e.getMilliseconds(),t,3)}function aAe(e,t){return _I(e,t)+"000"}function oAe(e,t){return $e(e.getMonth()+1,t,2)}function sAe(e,t){return $e(e.getMinutes(),t,2)}function uAe(e,t){return $e(e.getSeconds(),t,2)}function lAe(e){var t=e.getDay();return t===0?7:t}function cAe(e,t){return $e(q0.count(ra(e)-1,e),t,2)}function kI(e){var t=e.getDay();return t>=4||t===0?Yu(e):Yu.ceil(e)}function fAe(e,t){return e=kI(e),$e(Yu.count(ra(e),e)+(ra(e).getDay()===4),t,2)}function dAe(e){return e.getDay()}function pAe(e,t){return $e(eg.count(ra(e)-1,e),t,2)}function hAe(e,t){return $e(e.getFullYear()%100,t,2)}function mAe(e,t){return e=kI(e),$e(e.getFullYear()%100,t,2)}function gAe(e,t){return $e(e.getFullYear()%1e4,t,4)}function vAe(e,t){var r=e.getDay();return e=r>=4||r===0?Yu(e):Yu.ceil(e),$e(e.getFullYear()%1e4,t,4)}function yAe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+$e(t/60|0,"0",2)+$e(t%60,"0",2)}function cP(e,t){return $e(e.getUTCDate(),t,2)}function bAe(e,t){return $e(e.getUTCHours(),t,2)}function xAe(e,t){return $e(e.getUTCHours()%12||12,t,2)}function wAe(e,t){return $e(1+V0.count(na(e),e),t,3)}function EI(e,t){return $e(e.getUTCMilliseconds(),t,3)}function SAe(e,t){return EI(e,t)+"000"}function AAe(e,t){return $e(e.getUTCMonth()+1,t,2)}function CAe(e,t){return $e(e.getUTCMinutes(),t,2)}function _Ae(e,t){return $e(e.getUTCSeconds(),t,2)}function kAe(e){var t=e.getUTCDay();return t===0?7:t}function EAe(e,t){return $e(U0.count(na(e)-1,e),t,2)}function DI(e){var t=e.getUTCDay();return t>=4||t===0?Xu(e):Xu.ceil(e)}function DAe(e,t){return e=DI(e),$e(Xu.count(na(e),e)+(na(e).getUTCDay()===4),t,2)}function PAe(e){return e.getUTCDay()}function TAe(e,t){return $e(tg.count(na(e)-1,e),t,2)}function OAe(e,t){return $e(e.getUTCFullYear()%100,t,2)}function $Ae(e,t){return e=DI(e),$e(e.getUTCFullYear()%100,t,2)}function MAe(e,t){return $e(e.getUTCFullYear()%1e4,t,4)}function BAe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Xu(e):Xu.ceil(e),$e(e.getUTCFullYear()%1e4,t,4)}function IAe(){return"+0000"}function fP(){return"%"}function dP(e){return+e}function pP(e){return Math.floor(+e/1e3)}var Cs,PI,TI;RAe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function RAe(e){return Cs=RSe(e),PI=Cs.format,Cs.parse,TI=Cs.utcFormat,Cs.utcParse,Cs}function jAe(e){return new Date(e)}function FAe(e){return e instanceof Date?+e:+new Date(+e)}function HA(e,t,r,n,i,a,o,s,u,l){var c=OA(),f=c.invert,d=c.domain,h=l(".%L"),g=l(":%S"),p=l("%I:%M"),b=l("%I %p"),y=l("%a %d"),v=l("%b %d"),m=l("%B"),x=l("%Y");function w(S){return(u(S)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>Ewe(e,a/n))},r.copy=function(){return BI(t).domain(e)},aa.apply(r,arguments)}function W0(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,l=vr,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(n*pe.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ie.decimalPlaces=ie.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*et;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ie.dividedBy=ie.div=function(e){return Wi(this,new this.constructor(e))};ie.dividedToIntegerBy=ie.idiv=function(e){var t=this,r=t.constructor;return He(Wi(t,new r(e),0,1),r.precision)};ie.equals=ie.eq=function(e){return!this.cmp(e)};ie.exponent=function(){return Ct(this)};ie.greaterThan=ie.gt=function(e){return this.cmp(e)>0};ie.greaterThanOrEqualTo=ie.gte=function(e){return this.cmp(e)>=0};ie.isInteger=ie.isint=function(){return this.e>this.d.length-2};ie.isNegative=ie.isneg=function(){return this.s<0};ie.isPositive=ie.ispos=function(){return this.s>0};ie.isZero=function(){return this.s===0};ie.lessThan=ie.lt=function(e){return this.cmp(e)<0};ie.lessThanOrEqualTo=ie.lte=function(e){return this.cmp(e)<1};ie.logarithm=ie.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(qr))throw Error(kn+"NaN");if(r.s<1)throw Error(kn+(r.s?"NaN":"-Infinity"));return r.eq(qr)?new n(0):(ot=!1,t=Wi(Pf(r,a),Pf(e,a),a),ot=!0,He(t,i))};ie.minus=ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?zI(t,e):NI(t,(e.s=-e.s,e))};ie.modulo=ie.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(kn+"NaN");return r.s?(ot=!1,t=Wi(r,e,0,1).times(e),ot=!0,r.minus(t)):He(new n(r),i)};ie.naturalExponential=ie.exp=function(){return LI(this)};ie.naturalLogarithm=ie.ln=function(){return Pf(this)};ie.negated=ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ie.plus=ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?NI(t,e):zI(t,(e.s=-e.s,e))};ie.precision=ie.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(qo+e);if(t=Ct(i)+1,n=i.d.length-1,r=n*et+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ie.squareRoot=ie.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(kn+"NaN")}for(e=Ct(s),ot=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=ci(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=bl((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(Wi(s,a,o+2)).times(.5),ci(a.d).slice(0,o)===(t=ci(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(He(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ot=!0,He(n,r)};ie.times=ie.mul=function(e){var t,r,n,i,a,o,s,u,l,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,u=d.length,l=h.length,u=0;){for(t=0,i=u+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%Rt|0,t=s/Rt|0;a[i]=(a[i]+t)%Rt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ot?He(e,f.precision):e};ie.toDecimalPlaces=ie.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(wi(e,0,yl),t===void 0?t=n.rounding:wi(t,0,8),He(r,e+Ct(r)+1,t))};ie.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=rs(n,!0):(wi(e,0,yl),t===void 0?t=i.rounding:wi(t,0,8),n=He(new i(n),e+1,t),r=rs(n,!0,e+1)),r};ie.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?rs(i):(wi(e,0,yl),t===void 0?t=a.rounding:wi(t,0,8),n=He(new a(i),e+Ct(i)+1,t),r=rs(n.abs(),!1,e+Ct(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ie.toInteger=ie.toint=function(){var e=this,t=e.constructor;return He(new t(e),Ct(e)+1,t.rounding)};ie.toNumber=function(){return+this};ie.toPower=ie.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,l=12,c=+(e=new u(e));if(!e.s)return new u(qr);if(s=new u(s),!s.s){if(e.s<1)throw Error(kn+"Infinity");return s}if(s.eq(qr))return s;if(n=u.precision,e.eq(qr))return He(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=FI){for(i=new u(qr),t=Math.ceil(n/et+4),ot=!1;r%2&&(i=i.times(s),gP(i.d,t)),r=bl(r/2),r!==0;)s=s.times(s),gP(s.d,t);return ot=!0,e.s<0?new u(qr).div(i):He(i,n)}}else if(a<0)throw Error(kn+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ot=!1,i=e.times(Pf(s,n+l)),ot=!0,i=LI(i),i.s=a,i};ie.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ct(i),n=rs(i,r<=a.toExpNeg||r>=a.toExpPos)):(wi(e,1,yl),t===void 0?t=a.rounding:wi(t,0,8),i=He(new a(i),e,t),r=Ct(i),n=rs(i,e<=r||r<=a.toExpNeg,e)),n};ie.toSignificantDigits=ie.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(wi(e,1,yl),t===void 0?t=n.rounding:wi(t,0,8)),He(new n(r),e,t)};ie.toString=ie.valueOf=ie.val=ie.toJSON=ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ct(e),r=e.constructor;return rs(e,t<=r.toExpNeg||t>=r.toExpPos)};function NI(e,t){var r,n,i,a,o,s,u,l,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),ot?He(t,f):t;if(u=e.d,l=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,s=l.length):(n=l,i=o,s=u.length),o=Math.ceil(f/et),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=u.length,a=l.length,s-a<0&&(a=s,n=l,l=u,u=n),r=0;a;)r=(u[--a]=u[a]+l[a]+r)/Rt|0,u[a]%=Rt;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,ot?He(t,f):t}function wi(e,t,r){if(e!==~~e||er)throw Error(qo+e)}function ci(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(s=u=0;si[s]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var s,u,l,c,f,d,h,g,p,b,y,v,m,x,w,S,A,k,E=n.constructor,T=n.s==i.s?1:-1,P=n.d,I=i.d;if(!n.s)return new E(n);if(!i.s)throw Error(kn+"Division by zero");for(u=n.e-i.e,A=I.length,w=P.length,h=new E(T),g=h.d=[],l=0;I[l]==(P[l]||0);)++l;if(I[l]>(P[l]||0)&&--u,a==null?v=a=E.precision:o?v=a+(Ct(n)-Ct(i))+1:v=a,v<0)return new E(0);if(v=v/et+2|0,l=0,A==1)for(c=0,I=I[0],v++;(l1&&(I=e(I,c),P=e(P,c),A=I.length,w=P.length),x=A,p=P.slice(0,A),b=p.length;b=Rt/2&&++S;do c=0,s=t(I,p,A,b),s<0?(y=p[0],A!=b&&(y=y*Rt+(p[1]||0)),c=y/S|0,c>1?(c>=Rt&&(c=Rt-1),f=e(I,c),d=f.length,b=p.length,s=t(f,p,d,b),s==1&&(c--,r(f,A16)throw Error(KA+Ct(e));if(!e.s)return new c(qr);for(t==null?(ot=!1,s=f):s=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(wo(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new c(qr),c.precision=s;;){if(i=He(i.times(e),s),r=r.times(++u),o=a.plus(Wi(i,r,s)),ci(o.d).slice(0,s)===ci(a.d).slice(0,s)){for(;l--;)a=He(a.times(a),s);return c.precision=f,t==null?(ot=!0,He(a,f)):a}a=o}}function Ct(e){for(var t=e.e*et,r=e.d[0];r>=10;r/=10)t++;return t}function u1(e,t,r){if(t>e.LN10.sd())throw ot=!0,r&&(e.precision=r),Error(kn+"LN10 precision limit exceeded");return He(new e(e.LN10),t)}function ba(e){for(var t="";e--;)t+="0";return t}function Pf(e,t){var r,n,i,a,o,s,u,l,c,f=1,d=10,h=e,g=h.d,p=h.constructor,b=p.precision;if(h.s<1)throw Error(kn+(h.s?"NaN":"-Infinity"));if(h.eq(qr))return new p(0);if(t==null?(ot=!1,l=b):l=t,h.eq(10))return t==null&&(ot=!0),u1(p,l);if(l+=d,p.precision=l,r=ci(g),n=r.charAt(0),a=Ct(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=ci(h.d),n=r.charAt(0),f++;a=Ct(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return u=u1(p,l+2,b).times(a+""),h=Pf(new p(n+"."+r.slice(1)),l-d).plus(u),p.precision=b,t==null?(ot=!0,He(h,b)):h;for(s=o=h=Wi(h.minus(qr),h.plus(qr),l),c=He(h.times(h),l),i=3;;){if(o=He(o.times(c),l),u=s.plus(Wi(o,new p(i),l)),ci(u.d).slice(0,l)===ci(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(u1(p,l+2,b).times(a+""))),s=Wi(s,new p(f),l),p.precision=b,t==null?(ot=!0,He(s,b)):s;s=u,i+=2}}function mP(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=bl(r/et),e.d=[],n=(r+1)%et,r<0&&(n+=et),nrg||e.e<-rg))throw Error(KA+r)}else e.s=0,e.e=0,e.d=[0];return e}function He(e,t,r){var n,i,a,o,s,u,l,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=et,i=t,l=f[c=0];else{if(c=Math.ceil((n+1)/et),a=f.length,c>=a)return e;for(l=a=f[c],o=1;a>=10;a/=10)o++;n%=et,i=n-et+o}if(r!==void 0&&(a=wo(10,o-i-1),s=l/a%10|0,u=t<0||f[c+1]!==void 0||l%a,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?l/wo(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=Ct(e),f.length=1,t=t-a-1,f[0]=wo(10,(et-t%et)%et),e.e=bl(-t/et)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=wo(10,et-n),f[c]=i>0?(l/wo(10,o-i)%wo(10,i)|0)*a:0),u)for(;;)if(c==0){(f[0]+=a)==Rt&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Rt)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ot&&(e.e>rg||e.e<-rg))throw Error(KA+Ct(e));return e}function zI(e,t){var r,n,i,a,o,s,u,l,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ot?He(t,h):t;if(u=e.d,f=t.d,n=t.e,l=e.e,u=u.slice(),o=l-n,o){for(c=o<0,c?(r=u,o=-o,s=f.length):(r=f,n=l,s=u.length),i=Math.max(Math.ceil(h/et),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=f.length,c=i0;--i)u[s++]=0;for(i=f.length;i>o;){if(u[--i]0?a=a.charAt(0)+"."+a.slice(1)+ba(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ba(-i-1)+a,r&&(n=r-o)>0&&(a+=ba(n))):i>=o?(a+=ba(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+ba(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=ba(n))),e.s<0?"-"+a:a}function gP(e,t){if(e.length>t)return e.length=t,!0}function VI(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(qo+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return mP(o,a.toString())}else if(typeof a!="string")throw Error(qo+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,UAe.test(a))mP(o,a);else throw Error(qo+a)}if(i.prototype=ie,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=VI,i.config=i.set=HAe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(qo+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(qo+r+": "+n);return this}var YA=VI(qAe);qr=new YA(1);const ze=YA;function WAe(e){return XAe(e)||YAe(e)||KAe(e)||GAe()}function GAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KAe(e,t){if(e){if(typeof e=="string")return sx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sx(e,t)}}function YAe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function XAe(e){if(Array.isArray(e))return sx(e)}function sx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,vP(function(){for(var s=arguments.length,u=new Array(s),l=0;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function fCe(e){if(Array.isArray(e))return e}function GI(e){var t=Tf(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function KI(e,t,r){if(e.lte(0))return new ze(0);var n=K0.getDigitCount(e.toNumber()),i=new ze(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new ze(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?u:new ze(Math.ceil(u))}function dCe(e,t,r){var n=1,i=new ze(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ze(10).pow(K0.getDigitCount(e)-1),i=new ze(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ze(Math.floor(e)))}else e===0?i=new ze(Math.floor((t-1)/2)):r||(i=new ze(Math.floor(e)));var o=Math.floor((t-1)/2),s=eCe(ZAe(function(u){return i.add(new ze(u-o).mul(n)).toNumber()}),ux);return s(0,t)}function YI(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ze(0),tickMin:new ze(0),tickMax:new ze(0)};var a=KI(new ze(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ze(0):(o=new ze(e).add(t).div(2),o=o.sub(new ze(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new ze(t).sub(o).div(a).toNumber()),l=s+u+1;return l>r?YI(e,t,r,n,i+1):(l0?u+(r-l):u,s=t>0?s:s+(r-l)),{step:a,tickMin:o.sub(new ze(s).mul(a)),tickMax:o.add(new ze(u).mul(a))})}function pCe(e){var t=Tf(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=GI([r,n]),u=Tf(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(cx(ux(0,i-1).map(function(){return 1/0}))):[].concat(cx(ux(0,i-1).map(function(){return-1/0})),[c]);return r>n?lx(f):f}if(l===c)return dCe(l,i,a);var d=YI(l,c,o,a),h=d.step,g=d.tickMin,p=d.tickMax,b=K0.rangeStep(g,p.add(new ze(.1).mul(h)),h);return r>n?lx(b):b}function hCe(e,t){var r=Tf(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=GI([n,i]),s=Tf(o,2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[n,i];if(u===l)return[u];var c=Math.max(t,2),f=KI(new ze(l).sub(u).div(c-1),a,0),d=[].concat(cx(K0.rangeStep(new ze(u),new ze(l).sub(new ze(.99).mul(f)),f)),[l]);return n>i?lx(d):d}var mCe=HI(pCe),gCe=HI(hCe),vCe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ng(){return ng=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CCe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Y0(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,u=e.yAxis,l=ACe(e,vCe),c=Ve(l),f=a.map(function(d,h){var g=o(d,i),p=g.x,b=g.y,y=g.value,v=g.errorVal;if(!v)return null;var m=[],x,w;if(Array.isArray(v)){var S=yCe(v,2);x=S[0],w=S[1]}else x=w=v;if(r==="vertical"){var A=s.scale,k=b+t,E=k+n,T=k-n,P=A(y-x),I=A(y+w);m.push({x1:I,y1:E,x2:I,y2:T}),m.push({x1:P,y1:k,x2:I,y2:k}),m.push({x1:P,y1:E,x2:P,y2:T})}else if(r==="horizontal"){var O=u.scale,N=p+t,R=N-n,U=N+n,F=O(y-x),j=O(y+w);m.push({x1:R,y1:j,x2:U,y2:j}),m.push({x1:N,y1:F,x2:N,y2:j}),m.push({x1:R,y1:F,x2:U,y2:F})}return q.createElement(Wt,ng({className:"recharts-errorBar",key:"bar-".concat(h)},c),m.map(function($,V){return q.createElement("line",ng({},$,{key:"line-".concat(V)}))}))});return q.createElement(Wt,{className:"recharts-errorBars"},f)}Y0.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Y0.displayName="ErrorBar";function Of(e){"@babel/helpers - typeof";return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Of(e)}function bP(e){return DCe(e)||ECe(e)||kCe(e)||_Ce()}function _Ce(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kCe(e,t){if(e){if(typeof e=="string")return dx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dx(e,t)}}function ECe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DCe(e){if(Array.isArray(e))return dx(e)}function dx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,l=0;l0?i[l-1].coordinate:i[s-1].coordinate,f=i[l].coordinate,d=l>=s-1?i[0].coordinate:i[l+1].coordinate,h=void 0;if(mn(f-c)!==mn(d-f)){var g=[];if(mn(d-f)===mn(u[1]-u[0])){h=d;var p=f+u[1]-u[0];g[0]=Math.min(p,(p+c)/2),g[1]=Math.max(p,(p+c)/2)}else{h=c;var b=d+u[1]-u[0];g[0]=Math.min(f,(b+f)/2),g[1]=Math.max(f,(b+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=g[0]&&t<=g[1]){o=i[l].index;break}}else{var v=Math.min(c,d),m=Math.max(c,d);if(t>(v+f)/2&&t<=(m+f)/2){o=i[l].index;break}}}else for(var x=0;x0&&x(n[x].coordinate+n[x-1].coordinate)/2&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x===s-1&&t>(n[x].coordinate+n[x-1].coordinate)/2){o=n[x].index;break}return o},XA=function(t){var r=t,n=r.type.displayName,i=t.props,a=i.stroke,o=i.fill,s;switch(n){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:o;break;default:s=o;break}return s},XI=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Fi(r,bf);if(!o)return null;var s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(u,l){var c=l.item,f=l.props,d=f.sectors||f.data||[];return u.concat(d.map(function(h){return{type:o.props.iconType||c.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):s=(n||[]).map(function(u){var l=u.item,c=l.props,f=c.dataKey,d=c.name,h=c.legendType,g=c.hide;return{inactive:g,dataKey:f,type:o.props.iconType||h||"square",color:XA(l),value:d||f,payload:l.props}}),mr(mr(mr({},o.props),bf.getWithHeight(o,i)),{},{payload:s,item:o})},$Ce=function(t){var r=t.barSize,n=t.stackGroups,i=n===void 0?{}:n;if(!i)return{};for(var a={},o=Object.keys(i),s=0,u=o.length;s=0});if(b&&b.length){var y=b[0].props.barSize,v=b[0].props[p];a[v]||(a[v]=[]),a[v].push({item:b[0],stackList:b.slice(1),barSize:ye(y)?r:y})}}return a},MCe=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,u=o.length;if(u<1)return null;var l=Lu(r,i,0,!0),c;if(o[0].barSize===+o[0].barSize){var f=!1,d=i/u,h=o.reduce(function(m,x){return m+x.barSize||0},0);h+=(u-1)*l,h>=i&&(h-=(u-1)*l,l=0),h>=i&&d>0&&(f=!0,d*=.9,h=u*d);var g=(i-h)/2>>0,p={offset:g-l,size:0};c=o.reduce(function(m,x){var w=[].concat(bP(m),[{item:x.item,position:{offset:p.offset+p.size+l,size:f?d:x.barSize}}]);return p=w[w.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(S){w.push({item:S,position:p})}),w},[])}else{var b=Lu(n,i,0,!0);i-2*b-(u-1)*l<=0&&(l=0);var y=(i-2*b-(u-1)*l)/u;y>1&&(y>>=0);var v=s===+s?Math.min(y,s):y;c=o.reduce(function(m,x,w){var S=[].concat(bP(m),[{item:x.item,position:{offset:b+(y+l)*w+(y-v)/2,size:v}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},[])}return c},BCe=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),l=XI({children:a,legendWidth:u}),c=t;if(l){var f=i||{},d=l.align,h=l.verticalAlign,g=l.layout;(g==="vertical"||g==="horizontal"&&h==="middle")&&J(t[d])&&(c=mr(mr({},t),{},bu({},d,c[d]+(f.width||0)))),(g==="horizontal"||g==="vertical"&&d==="center")&&J(t[h])&&(c=mr(mr({},t),{},bu({},h,c[h]+(f.height||0))))}return c},ICe=function(t,r,n){return ye(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},QI=function(t,r,n,i,a){var o=r.props.children,s=Gn(o,Y0).filter(function(l){return ICe(i,a,l.props.direction)});if(s&&s.length){var u=s.map(function(l){return l.props.dataKey});return t.reduce(function(l,c){var f=Si(c,n,0),d=Gt(f)?[L0(f),N0(f)]:[f,f],h=u.reduce(function(g,p){var b=Si(c,p,0),y=d[0]-Math.abs(Gt(b)?b[0]:b),v=d[1]+Math.abs(Gt(b)?b[1]:b);return[Math.min(y,g[0]),Math.max(v,g[1])]},[1/0,-1/0]);return[Math.min(h[0],l[0]),Math.max(h[1],l[1])]},[1/0,-1/0])}return null},RCe=function(t,r,n,i,a){var o=r.map(function(s){return QI(t,s,n,a,i)}).filter(function(s){return!ye(s)});return o&&o.length?o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]):null},JI=function(t,r,n,i,a){var o=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&QI(t,u,l,i)||Ic(t,l,n,a)});if(n==="number")return o.reduce(function(u,l){return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]);var s={};return o.reduce(function(u,l){for(var c=0,f=l.length;c=2?mn(s[0]-s[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+l,value:f,offset:l}});return c.filter(function(f){return!Sd(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+l,value:f,index:d,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+l,value:f,offset:l}}):i.domain().map(function(f,d){return{coordinate:i(f)+l,value:a?a[f]:f,index:d,offset:l}})},Ep=function(t,r,n){var i;return xe(n)?i=n:xe(r)&&(i=r),xe(t)||i?function(a,o,s,u){xe(t)&&t(a,o,s,u),xe(i)&&i(a,o,s,u)}:null},jCe=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Cf(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Jm(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Bc(),realScaleType:"point"}:a==="category"?{scale:Cf(),realScaleType:"band"}:{scale:Jm(),realScaleType:"linear"};if(wd(i)){var u="scale".concat(M0(i));return{scale:(hP[u]||Bc)(),realScaleType:hP[u]?u:"point"}}return xe(i)?{scale:i}:{scale:Bc(),realScaleType:"point"}},SP=1e-4,FCe=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-SP,o=Math.max(i[0],i[1])+SP,s=t(r[0]),u=t(r[n-1]);(so||uo)&&t.domain([r[0],r[n-1]])}},NCe=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[s][n][0]=a,t[s][n][1]=a+u,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+u,o=t[s][n][1])}},VCe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},qCe={sign:zCe,expand:xve,none:zu,silhouette:wve,wiggle:Sve,positive:VCe},UCe=function(t,r,n){var i=r.map(function(o){return o.props.dataKey}),a=bve().keys(i).value(function(o,s){return+Si(o,s,0)}).order(Pb).offset(qCe[n]);return a(t)},HCe=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,u=s.reduce(function(l,c){var f=c.props,d=f.stackId,h=f.hide;if(h)return l;var g=c.props[n],p=l[g]||{hasStack:!1,stackGroups:{}};if(Tt(d)){var b=p.stackGroups[d]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(c),p.hasStack=!0,p.stackGroups[d]=b}else p.stackGroups[O0("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[c]};return mr(mr({},l),{},bu({},g,p))},{});return Object.keys(u).reduce(function(l,c){var f=u[c];return f.hasStack&&(f.stackGroups=Object.keys(f.stackGroups).reduce(function(d,h){var g=f.stackGroups[h];return mr(mr({},d),{},bu({},h,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:UCe(t,g.items,a)}))},{})),mr(mr({},l),{},bu({},c,f))},{})},WCe=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var c=mCe(l,a,s);return t.domain([L0(c),N0(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=gCe(f,a,s);return{niceTicks:d}}return null},AP=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=Si(o,r.dataKey,r.domain[s]);return ye(u)?null:r.scale(u)-a/2+i},GCe=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},KCe=function(t,r){var n=t.props.stackId;if(Tt(n)){var i=r[n];if(i&&i.items.length){for(var a=-1,o=0,s=i.items.length;o=0?i.stackedData[a]:null}}return null},YCe=function(t){return t.reduce(function(r,n){return[L0(n.concat([r[0]]).filter(J)),N0(n.concat([r[1]]).filter(J))]},[1/0,-1/0])},eR=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,u=s.reduce(function(l,c){var f=YCe(c.slice(r,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},CP=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_P=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,px=function(t,r,n){if(xe(t))return t(r,n);if(!Gt(t))return r;var i=[];if(J(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(CP.test(t[0])){var a=+CP.exec(t[0])[1];i[0]=r[0]-a}else xe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(J(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(_P.test(t[1])){var o=+_P.exec(t[1])[1];i[1]=r[1]+o}else xe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ig=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=_A(r,function(f){return f.coordinate}),o=1/0,s=1,u=a.length;so&&(l=2*Math.PI-l),{radius:s,angle:ZCe(l),angleInRadian:l}},r_e=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},n_e=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},PP=function(t,r){var n=t.x,i=t.y,a=t_e({x:n,y:i},r),o=a.radius,s=a.angle,u=r.innerRadius,l=r.outerRadius;if(ol)return!1;if(o===0)return!0;var c=r_e(r),f=c.startAngle,d=c.endAngle,h=s,g;if(f<=d){for(;h>d;)h-=360;for(;h=f&&h<=d}else{for(;h>f;)h-=360;for(;h=d&&h<=f}return g?DP(DP({},r),{},{radius:o,angle:n_e(h,r)}):null};function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}var i_e=["offset"];function a_e(e){return l_e(e)||u_e(e)||s_e(e)||o_e()}function o_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s_e(e,t){if(e){if(typeof e=="string")return hx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hx(e,t)}}function u_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l_e(e){if(Array.isArray(e))return hx(e)}function hx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f_e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function TP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t=0?1:-1,m,x;i==="insideStart"?(m=h+v*o,x=p):i==="insideEnd"?(m=g-v*o,x=!p):i==="end"&&(m=g+v*o,x=p),x=y<=0?x:!x;var w=Kt(l,c,b,m),S=Kt(l,c,b,m+(x?1:-1)*359),A="M".concat(w.x,",").concat(w.y,` + A`).concat(b,",").concat(b,",0,1,").concat(x?0:1,`, + `).concat(S.x,",").concat(S.y),k=ye(t.id)?O0("recharts-radial-line-"):t.id;return q.createElement("text",Bf({},n,{dominantBaseline:"central",className:Ye("recharts-radial-bar-label",s)}),q.createElement("defs",null,q.createElement("path",{id:k,d:A})),q.createElement("textPath",{xlinkHref:"#".concat(k)},r))},y_e=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,u=a.innerRadius,l=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var h=Kt(o,s,l+n,d),g=h.x,p=h.y;return{x:g,y:p,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(u+l)/2,y=Kt(o,s,b,d),v=y.x,m=y.y;return{x:v,y:m,textAnchor:"middle",verticalAnchor:"middle"}},b_e=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,u=o.y,l=o.width,c=o.height,f=c>=0?1:-1,d=f*i,h=f>0?"end":"start",g=f>0?"start":"end",p=l>=0?1:-1,b=p*i,y=p>0?"end":"start",v=p>0?"start":"end";if(a==="top"){var m={x:s+l/2,y:u-f*i,textAnchor:"middle",verticalAnchor:h};return Et(Et({},m),n?{height:Math.max(u-n.y,0),width:l}:{})}if(a==="bottom"){var x={x:s+l/2,y:u+c+d,textAnchor:"middle",verticalAnchor:g};return Et(Et({},x),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{})}if(a==="left"){var w={x:s-b,y:u+c/2,textAnchor:y,verticalAnchor:"middle"};return Et(Et({},w),n?{width:Math.max(w.x-n.x,0),height:c}:{})}if(a==="right"){var S={x:s+l+b,y:u+c/2,textAnchor:v,verticalAnchor:"middle"};return Et(Et({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:c}:{})}var A=n?{width:l,height:c}:{};return a==="insideLeft"?Et({x:s+b,y:u+c/2,textAnchor:v,verticalAnchor:"middle"},A):a==="insideRight"?Et({x:s+l-b,y:u+c/2,textAnchor:y,verticalAnchor:"middle"},A):a==="insideTop"?Et({x:s+l/2,y:u+d,textAnchor:"middle",verticalAnchor:g},A):a==="insideBottom"?Et({x:s+l/2,y:u+c-d,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?Et({x:s+b,y:u+d,textAnchor:v,verticalAnchor:g},A):a==="insideTopRight"?Et({x:s+l-b,y:u+d,textAnchor:y,verticalAnchor:g},A):a==="insideBottomLeft"?Et({x:s+b,y:u+c-d,textAnchor:v,verticalAnchor:h},A):a==="insideBottomRight"?Et({x:s+l-b,y:u+c-d,textAnchor:y,verticalAnchor:h},A):ul(a)&&(J(a.x)||Oo(a.x))&&(J(a.y)||Oo(a.y))?Et({x:s+Lu(a.x,l),y:u+Lu(a.y,c),textAnchor:"end",verticalAnchor:"end"},A):Et({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},A)},x_e=function(t){return"cx"in t&&J(t.cx)};function ar(e){var t=e.offset,r=t===void 0?5:t,n=c_e(e,i_e),i=Et({offset:r},n),a=i.viewBox,o=i.position,s=i.value,u=i.children,l=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!a||ye(s)&&ye(u)&&!C.isValidElement(l)&&!xe(l))return null;if(C.isValidElement(l))return C.cloneElement(l,i);var h;if(xe(l)){if(h=C.createElement(l,i),C.isValidElement(h))return h}else h=m_e(i);var g=x_e(a),p=Ve(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return v_e(i,h,p);var b=g?y_e(i):b_e(i);return q.createElement(Hm,Bf({className:Ye("recharts-label",f)},p,b,{breakAll:d}),h)}ar.displayName="Label";var rR=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,u=t.radius,l=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,h=t.top,g=t.left,p=t.width,b=t.height,y=t.clockWise,v=t.labelViewBox;if(v)return v;if(J(p)&&J(b)){if(J(f)&&J(d))return{x:f,y:d,width:p,height:b};if(J(h)&&J(g))return{x:h,y:g,width:p,height:b}}return J(f)&&J(d)?{x:f,y:d,width:0,height:0}:J(r)&&J(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:c||u||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},w_e=function(t,r){return t?t===!0?q.createElement(ar,{key:"label-implicit",viewBox:r}):Tt(t)?q.createElement(ar,{key:"label-implicit",viewBox:r,value:t}):C.isValidElement(t)?t.type===ar?C.cloneElement(t,{key:"label-implicit",viewBox:r}):q.createElement(ar,{key:"label-implicit",content:t,viewBox:r}):xe(t)?q.createElement(ar,{key:"label-implicit",content:t,viewBox:r}):ul(t)?q.createElement(ar,Bf({viewBox:r},t,{key:"label-implicit"})):null:null},S_e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=rR(t),o=Gn(i,ar).map(function(u,l){return C.cloneElement(u,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=w_e(t.label,r||a);return[s].concat(a_e(o))};ar.parseViewBox=rR;ar.renderCallByParent=S_e;function A_e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var C_e=A_e;const __e=Te(C_e);function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}var k_e=["valueAccessor"],E_e=["data","dataKey","clockWise","id","textBreakAll"];function D_e(e){return $_e(e)||O_e(e)||T_e(e)||P_e()}function P_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T_e(e,t){if(e){if(typeof e=="string")return mx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mx(e,t)}}function O_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $_e(e){if(Array.isArray(e))return mx(e)}function mx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R_e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var j_e=function(t){return Gt(t.value)?__e(t.value):t.value};function Uo(e){var t=e.valueAccessor,r=t===void 0?j_e:t,n=MP(e,k_e),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,l=MP(n,E_e);return!i||!i.length?null:q.createElement(Wt,{className:"recharts-label-list"},i.map(function(c,f){var d=ye(a)?r(c,f):Si(c&&c.payload,a),h=ye(s)?{}:{id:"".concat(s,"-").concat(f)};return q.createElement(ar,og({},Ve(c,!0),l,h,{parentViewBox:c.parentViewBox,index:f,value:d,textBreakAll:u,viewBox:ar.parseViewBox(ye(o)?c:$P($P({},c),{},{clockWise:o})),key:"label-".concat(f)}))}))}Uo.displayName="LabelList";function F_e(e,t){return e?e===!0?q.createElement(Uo,{key:"labelList-implicit",data:t}):q.isValidElement(e)||xe(e)?q.createElement(Uo,{key:"labelList-implicit",data:t,content:e}):ul(e)?q.createElement(Uo,og({data:t},e,{key:"labelList-implicit"})):null:null}function N_e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Gn(n,Uo).map(function(o,s){return C.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=F_e(e.label,t);return[a].concat(D_e(i))}Uo.renderCallByParent=N_e;function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>l),`, + `).concat(f.x,",").concat(f.y,` + `);if(i>0){var h=Kt(r,n,i,o),g=Kt(r,n,i,l);d+="L ".concat(g.x,",").concat(g.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(u)>180),",").concat(+(o<=l),`, + `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},U_e=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,l=t.startAngle,c=t.endAngle,f=mn(c-l),d=Dp({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),h=d.circleTangency,g=d.lineTangency,p=d.theta,b=Dp({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),y=b.circleTangency,v=b.lineTangency,m=b.theta,x=u?Math.abs(l-c):Math.abs(l-c)-p-m;if(x<0)return s?"M ".concat(g.x,",").concat(g.y,` + a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 + a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 + `):nR({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c});var w="M ".concat(g.x,",").concat(g.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,` + A`).concat(a,",").concat(a,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,` + `);if(i>0){var S=Dp({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),A=S.circleTangency,k=S.lineTangency,E=S.theta,T=Dp({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),P=T.circleTangency,I=T.lineTangency,O=T.theta,N=u?Math.abs(l-c):Math.abs(l-c)-E-O;if(N<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(I.x,",").concat(I.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,` + A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},H_e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},W_e=function(t){var r=IP(IP({},H_e),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(o0&&Math.abs(c-f)<360?b=U_e({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:c,endAngle:f}):b=nR({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),q.createElement("path",gx({},Ve(r,!0),{className:h,d:b,role:"img"}))};function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,u=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;do?o:a[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(t+u*f[0],",").concat(r)),c+="L ".concat(t+n-u*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`, + `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`, + `).concat(t+n-u*f[2],",").concat(r+i)),c+="L ".concat(t+u*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`, + `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);c="M ".concat(t,",").concat(r+s*g,` + A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+u*g,",").concat(r,` + L `).concat(t+n-u*g,",").concat(r,` + A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+n,",").concat(r+s*g,` + L `).concat(t+n,",").concat(r+i-s*g,` + A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t+n-u*g,",").concat(r+i,` + L `).concat(t+u*g,",").concat(r+i,` + A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(t,",").concat(r+i-s*g," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},oke=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,u=r.height;if(Math.abs(s)>0&&Math.abs(u)>0){var l=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+u),d=Math.max(o,o+u);return n>=l&&n<=c&&i>=f&&i<=d}return!1},ske={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QA=function(t){var r=VP(VP({},ske),t),n=C.useRef(),i=C.useState(-1),a=J_e(i,2),o=a[0],s=a[1];C.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var u=r.x,l=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,g=r.animationEasing,p=r.animationDuration,b=r.animationBegin,y=r.isAnimationActive,v=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var m=Ye("recharts-rectangle",h);return v?q.createElement(Wu,{canBegin:o>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:p,animationEasing:g,isActive:v},function(x){var w=x.width,S=x.height,A=x.x,k=x.y;return q.createElement(Wu,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:p,isActive:y,easing:g},q.createElement("path",sg({},Ve(r,!0),{className:m,d:qP(A,k,w,S,d),ref:n})))}):q.createElement("path",sg({},Ve(r,!0),{className:m,d:qP(u,l,c,f,d)}))};function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hke(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var mke=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},gke=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,u=t.left,l=u===void 0?0:u,c=t.width,f=c===void 0?0:c,d=t.height,h=d===void 0?0:d,g=t.className,p=pke(t,uke),b=lke({x:n,y:a,top:s,left:l,width:f,height:h},p);return!J(n)||!J(a)||!J(f)||!J(h)||!J(s)||!J(l)?null:q.createElement("path",bx({},Ve(b,!0),{className:Ye("recharts-cross",g),d:mke(n,a,f,h,s,l)}))},vke=Math.ceil,yke=Math.max;function bke(e,t,r,n){for(var i=-1,a=yke(vke((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var xke=bke,wke=GB,HP=1/0,Ske=17976931348623157e292;function Ake(e){if(!e)return e===0?e:0;if(e=wke(e),e===HP||e===-HP){var t=e<0?-1:1;return t*Ske}return e===e?e:0}var aR=Ake,Cke=xke,_ke=F0,l1=aR;function kke(e){return function(t,r,n){return n&&typeof n!="number"&&_ke(t,r,n)&&(r=n=void 0),t=l1(t),r===void 0?(r=t,t=0):r=l1(r),n=n===void 0?t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cg(e){return cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cg(e)}function Lr(e,t,r){return t=sR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sR(e){var t=zke(e,"string");return Qu(t)==="symbol"?t:String(t)}function zke(e,t){if(Qu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vke=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,l=Bc().domain(ug(0,u)).range([a,a+o-s]),c=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:c}},XP=function(t){return t.changedTouches&&!!t.changedTouches.length},zf=function(e){jke(r,e);var t=Fke(r);function r(n){var i;return Ike(this,r),i=t.call(this,n),Lr(ei(i),"handleDrag",function(a){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(a):i.state.isSlideMoving&&i.handleSlideDrag(a)}),Lr(ei(i),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&i.handleDrag(a.changedTouches[0])}),Lr(ei(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1}),i.detachDragEndListener()}),Lr(ei(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),Lr(ei(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),Lr(ei(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),Lr(ei(i),"handleSlideDragStart",function(a){var o=XP(a)?a.changedTouches[0]:a;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(ei(i),"startX"),endX:i.handleTravellerDragStart.bind(ei(i),"endX")},i.state={},i}return Rke(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var a=i.startX,o=i.endX,s=this.state.scaleValues,u=this.props,l=u.gap,c=u.data,f=c.length-1,d=Math.min(a,o),h=Math.max(a,o),g=r.getIndexInRange(s,d),p=r.getIndexInRange(s,h);return{startIndex:g-g%l,endIndex:p===f?f:p-p%l}}},{key:"getTextOfTick",value:function(i){var a=this.props,o=a.data,s=a.tickFormatter,u=a.dataKey,l=Si(o[i],u,i);return xe(s)?s(l,i):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var a=this.state,o=a.slideMoveStartX,s=a.startX,u=a.endX,l=this.props,c=l.x,f=l.width,d=l.travellerWidth,h=l.startIndex,g=l.endIndex,p=l.onChange,b=i.pageX-o;b>0?b=Math.min(b,c+f-d-u,c+f-d-s):b<0&&(b=Math.max(b,c-s,c-u));var y=this.getIndex({startX:s+b,endX:u+b});(y.startIndex!==h||y.endIndex!==g)&&p&&p(y),this.setState({startX:s+b,endX:u+b,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,a){var o=XP(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var a,o=this.state,s=o.brushMoveStartX,u=o.movingTravellerId,l=o.endX,c=o.startX,f=this.state[u],d=this.props,h=d.x,g=d.width,p=d.travellerWidth,b=d.onChange,y=d.gap,v=d.data,m={startX:this.state.startX,endX:this.state.endX},x=i.pageX-s;x>0?x=Math.min(x,h+g-p-f):x<0&&(x=Math.max(x,h-f)),m[u]=f+x;var w=this.getIndex(m),S=w.startIndex,A=w.endIndex,k=function(){var T=v.length-1;return u==="startX"&&(l>c?S%y===0:A%y===0)||lc?A%y===0:S%y===0)||l>c&&A===T};this.setState((a={},Lr(a,u,f+x),Lr(a,"brushMoveStartX",i.pageX),a),function(){b&&k()&&b(w)})}},{key:"handleTravellerMoveKeyboard",value:function(i,a){var o=this,s=this.state,u=s.scaleValues,l=s.startX,c=s.endX,f=this.state[a],d=u.indexOf(f);if(d!==-1){var h=d+i;if(!(h===-1||h>=u.length)){var g=u[h];a==="startX"&&g>=c||a==="endX"&&g<=l||this.setState(Lr({},a,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.fill,c=i.stroke;return q.createElement("rect",{stroke:c,fill:l,x:a,y:o,width:s,height:u})}},{key:"renderPanorama",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.data,c=i.children,f=i.padding,d=C.Children.only(c);return d?q.cloneElement(d,{x:a,y:o,width:s,height:u,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(i,a){var o=this,s=this.props,u=s.y,l=s.travellerWidth,c=s.height,f=s.traveller,d=Math.max(i,this.props.x),h=c1(c1({},Ve(this.props)),{},{x:d,y:u,width:l,height:c});return q.createElement(Wt,{tabIndex:0,role:"slider",className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(p){["ArrowLeft","ArrowRight"].includes(p.key)&&(p.preventDefault(),p.stopPropagation(),o.handleTravellerMoveKeyboard(p.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(f,h))}},{key:"renderSlide",value:function(i,a){var o=this.props,s=o.y,u=o.height,l=o.stroke,c=o.travellerWidth,f=Math.min(i,a)+c,d=Math.max(Math.abs(a-i)-c,0);return q.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:s,width:d,height:u})}},{key:"renderText",value:function(){var i=this.props,a=i.startIndex,o=i.endIndex,s=i.y,u=i.height,l=i.travellerWidth,c=i.stroke,f=this.state,d=f.startX,h=f.endX,g=5,p={pointerEvents:"none",fill:c};return q.createElement(Wt,{className:"recharts-brush-texts"},q.createElement(Hm,lg({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-g,y:s+u/2},p),this.getTextOfTick(a)),q.createElement(Hm,lg({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+l+g,y:s+u/2},p),this.getTextOfTick(o)))}},{key:"render",value:function(){var i=this.props,a=i.data,o=i.className,s=i.children,u=i.x,l=i.y,c=i.width,f=i.height,d=i.alwaysShowText,h=this.state,g=h.startX,p=h.endX,b=h.isTextActive,y=h.isSlideMoving,v=h.isTravellerMoving,m=h.isTravellerFocused;if(!a||!a.length||!J(u)||!J(l)||!J(c)||!J(f)||c<=0||f<=0)return null;var x=Ye("recharts-brush",o),w=q.Children.count(s)===1,S=Bke("userSelect","none");return q.createElement(Wt,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(g,p),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(p,"endX"),(b||y||v||m||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var a=i.x,o=i.y,s=i.width,u=i.height,l=i.stroke,c=Math.floor(o+u/2)-1;return q.createElement(q.Fragment,null,q.createElement("rect",{x:a,y:o,width:s,height:u,fill:l,stroke:"none"}),q.createElement("line",{x1:a+1,y1:c,x2:a+s-1,y2:c,fill:"none",stroke:"#fff"}),q.createElement("line",{x1:a+1,y1:c+2,x2:a+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,a){var o;return q.isValidElement(i)?o=q.cloneElement(i,a):xe(i)?o=i(a):o=r.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(i,a){var o=i.data,s=i.width,u=i.x,l=i.travellerWidth,c=i.updateId,f=i.startIndex,d=i.endIndex;if(o!==a.prevData||c!==a.prevUpdateId)return c1({prevData:o,prevTravellerWidth:l,prevUpdateId:c,prevX:u,prevWidth:s},o&&o.length?Vke({data:o,width:s,x:u,travellerWidth:l,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||u!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([u,u+s-l]);var h=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:c,prevX:u,prevWidth:s,startX:a.scale(i.startIndex),endX:a.scale(i.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(i,a){for(var o=i.length,s=0,u=o-1;u-s>1;){var l=Math.floor((s+u)/2);i[l]>a?u=l:s=l}return a>=i[u]?u:s}}]),r}(C.PureComponent);Lr(zf,"displayName","Brush");Lr(zf,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var qke=CA;function Uke(e,t){var r;return qke(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var Hke=Uke,Wke=W6,Gke=io,Kke=Hke,Yke=Sr,Xke=F0;function Qke(e,t,r){var n=Yke(e)?Wke:Kke;return r&&Xke(e,t,r)&&(t=void 0),n(e,Gke(t))}var Jke=Qke;const Zke=Te(Jke);var bi=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r};function eEe(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SEe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fg(e){return fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fg(e)}function ka(e,t,r){return t=lR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lR(e){var t=PEe(e,"string");return Ju(t)==="symbol"?t:String(t)}function PEe(e,t){if(Ju(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ju(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xl=function(e){_Ee(r,e);var t=kEe(r);function r(){var n;AEe(this,r);for(var i=arguments.length,a=new Array(i),o=0;o0&&Math.abs(N)0&&Math.abs(O)0&&(O=Math.min((Z||0)-(N[ue-1]||0),O))});var R=O/I,U=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(A=R*U/2),p.padding==="no-gap"){var F=Lu(t.barCategoryGap,R*U),j=R*U/2;A=j-F-(j-F)/U*F}}i==="xAxis"?k=[n.left+(m.left||0)+(A||0),n.left+n.width-(m.right||0)-(A||0)]:i==="yAxis"?k=u==="horizontal"?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0)+(A||0),n.top+n.height-(m.bottom||0)-(A||0)]:k=p.range,w&&(k=[k[1],k[0]]);var $=jCe(p,a,d),V=$.scale,H=$.realScaleType;V.domain(y).range(k),FCe(V);var Y=WCe(V,Rn(Rn({},p),{},{realScaleType:H}));i==="xAxis"?(P=b==="top"&&!x||b==="bottom"&&x,E=n.left,T=f[S]-P*p.height):i==="yAxis"&&(P=b==="left"&&!x||b==="right"&&x,E=f[S]-P*p.width,T=n.top);var K=Rn(Rn(Rn({},p),Y),{},{realScaleType:H,x:E,y:T,scale:V,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return K.bandSize=ig(K,Y),!p.hide&&i==="xAxis"?f[S]+=(P?-1:1)*K.height:p.hide||(f[S]+=(P?-1:1)*K.width),Rn(Rn({},h),{},X0({},g,K))},{})},fR=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},BEe=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return fR({x:r,y:n},{x:i,y:a})},dR=function(){function e(t){TEe(this,e),this.scale=t}return OEe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}]),e}();X0(dR,"EPS",1e-4);var JA=function(t){var r=Object.keys(t).reduce(function(n,i){return Rn(Rn({},n),{},X0({},i,dR.create(t[i])))},{});return Rn(Rn({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return bEe(i,function(u,l){return r[l].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return uR(i,function(a,o){return r[o].isInRange(a)})}})};function IEe(e){return(e%180+180)%180}var REe=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=IEe(i),o=a*Math.PI/180,s=Math.atan(n/r),u=o>s&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r=2?mn(b[1].coordinate-b[0].coordinate):1,m,x;v===1?(m=g==="width"?c:f,x=g==="width"?c+d:f+h):(m=g==="width"?c+d:f+h,x=g==="width"?c:f);for(var w=y-1;w>=0;w--){var S=b[w],A=xe(n)?n(S.value,y-w-1):S.value,k=g==="width"?Ex(li(A,{fontSize:u,letterSpacing:l}),p,t):li(A,{fontSize:u,letterSpacing:l})[g];if(w===y-1){var E=v*(S.coordinate+v*k/2-x);b[w]=S=rr(rr({},S),{},{tickCoord:E>0?S.coordinate-E*v:S.coordinate})}else b[w]=S=rr(rr({},S),{},{tickCoord:S.coordinate});var T=v*(S.tickCoord-v*k/2-m)>=0&&v*(S.tickCoord+v*k/2-x)<=0;T&&(x=S.tickCoord-v*(k/2+o),b[w]=rr(rr({},S),{},{isShow:!0}))}return b}function cT(e,t){var r=e.angle,n=e.ticks,i=e.tickFormatter,a=e.viewBox,o=e.orientation,s=e.minTickGap,u=e.unit,l=e.fontSize,c=e.letterSpacing,f=a.x,d=a.y,h=a.width,g=a.height,p=o==="top"||o==="bottom"?"width":"height",b=(n||[]).slice(),y=u&&p==="width"?li(u,{fontSize:l,letterSpacing:c}):{width:0,height:0},v=b.length,m=v>=2?mn(b[1].coordinate-b[0].coordinate):1,x,w;if(m===1?(x=p==="width"?f:d,w=p==="width"?f+h:d+g):(x=p==="width"?f+h:d+g,w=p==="width"?f:d),t){var S=n[v-1],A=xe(i)?i(S.value,v-1):S.value,k=p==="width"?Ex(li(A,{fontSize:l,letterSpacing:c}),y,r):li(A,{fontSize:l,letterSpacing:c})[p],E=m*(S.coordinate+m*k/2-w);b[v-1]=S=rr(rr({},S),{},{tickCoord:E>0?S.coordinate-E*m:S.coordinate});var T=m*(S.tickCoord-m*k/2-x)>=0&&m*(S.tickCoord+m*k/2-w)<=0;T&&(w=S.tickCoord-m*(k/2+s),b[v-1]=rr(rr({},S),{},{isShow:!0}))}for(var P=t?v-1:v,I=0;I=0&&m*(O.tickCoord+m*R/2-w)<=0;F&&(x=O.tickCoord+m*(R/2+s),b[I]=rr(rr({},O),{},{isShow:!0}))}return b}function Dx(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,u=e.interval,l=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(J(u)||La.isSsr)return aDe(i,typeof u=="number"&&J(u)?u:0);var d=[];return u==="equidistantPreserveStart"?(d=cT({angle:f,ticks:i,tickFormatter:l,viewBox:a,orientation:s,minTickGap:o,unit:c,fontSize:t,letterSpacing:r}),iDe(d)):(u==="preserveStart"||u==="preserveStartEnd"?d=cT({angle:f,ticks:i,tickFormatter:l,viewBox:a,orientation:s,minTickGap:o,unit:c,fontSize:t,letterSpacing:r},u==="preserveStartEnd"):d=oDe({angle:f,ticks:i,tickFormatter:l,viewBox:a,orientation:s,minTickGap:o,unit:c,fontSize:t,letterSpacing:r}),d.filter(function(h){return h.isShow}))}var sDe=["viewBox"],uDe=["viewBox"],lDe=["ticks"];function Zu(e){"@babel/helpers - typeof";return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(e)}function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cDe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function fDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dT(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dg(e){return dg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dg(e)}function eC(e,t,r){return t=pR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pR(e){var t=yDe(e,"string");return Zu(t)==="symbol"?t:String(t)}function yDe(e,t){if(Zu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rc=function(e){pDe(r,e);var t=hDe(r);function r(n){var i;return fDe(this,r),i=t.call(this,n),i.state={fontSize:"",letterSpacing:""},i}return dDe(r,[{key:"shouldComponentUpdate",value:function(i,a){var o=i.viewBox,s=f1(i,sDe),u=this.props,l=u.viewBox,c=f1(u,uDe);return!gu(o,l)||!gu(s,c)||!gu(a,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var a=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var a=this.props,o=a.x,s=a.y,u=a.width,l=a.height,c=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,g,p,b,y,v,m,x=d?-1:1,w=i.tickSize||f,S=J(i.tickCoord)?i.tickCoord:i.coordinate;switch(c){case"top":g=p=i.coordinate,y=s+ +!d*l,b=y-x*w,m=b-x*h,v=S;break;case"left":b=y=i.coordinate,p=o+ +!d*u,g=p-x*w,v=g-x*h,m=S;break;case"right":b=y=i.coordinate,p=o+ +d*u,g=p+x*w,v=g+x*h,m=S;break;default:g=p=i.coordinate,y=s+ +d*l,b=y+x*w,m=b+x*h,v=S;break}return{line:{x1:g,y1:b,x2:p,y2:y},tick:{x:v,y:m}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s;switch(a){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.orientation,c=i.mirror,f=i.axisLine,d=dr(dr(dr({},Ve(this.props)),Ve(f)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!c||l==="bottom"&&c);d=dr(dr({},d),{},{x1:a,y1:o+h*u,x2:a+s,y2:o+h*u})}else{var g=+(l==="left"&&!c||l==="right"&&c);d=dr(dr({},d),{},{x1:a+g*s,y1:o,x2:a+g*s,y2:o+u})}return q.createElement("line",Js({},d,{className:Ye("recharts-cartesian-axis-line",wn(f,"className"))}))}},{key:"renderTicks",value:function(i,a,o){var s=this,u=this.props,l=u.tickLine,c=u.stroke,f=u.tick,d=u.tickFormatter,h=u.unit,g=Dx(dr(dr({},this.props),{},{ticks:i}),a,o),p=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),y=Ve(this.props),v=Ve(f),m=dr(dr({},y),{},{fill:"none"},Ve(l)),x=g.map(function(w,S){var A=s.getTickLineCoord(w),k=A.line,E=A.tick,T=dr(dr(dr(dr({textAnchor:p,verticalAnchor:b},y),{},{stroke:"none",fill:c},v),E),{},{index:S,payload:w,visibleTicksCount:g.length,tickFormatter:d});return q.createElement(Wt,Js({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S)},Dm(s.props,w,S)),l&&q.createElement("line",Js({},m,k,{className:Ye("recharts-cartesian-axis-tick-line",wn(l,"className"))})),f&&r.renderTickItem(f,T,"".concat(xe(d)?d(w.value,S):w.value).concat(h||"")))});return q.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var i=this,a=this.props,o=a.axisLine,s=a.width,u=a.height,l=a.ticksGenerator,c=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,g=f1(d,lDe),p=h;return xe(l)&&(p=h&&h.length>0?l(this.props):l(g)),s<=0||u<=0||!p||!p.length?null:q.createElement(Wt,{className:Ye("recharts-cartesian-axis",c),ref:function(y){i.layerReference=y}},o&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),ar.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,a,o){var s;return q.isValidElement(i)?s=q.cloneElement(i,a):xe(i)?s=i(a):s=q.createElement(Hm,Js({},a,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),r}(C.Component);eC(Rc,"displayName","CartesianAxis");eC(Rc,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Q0=function(){return null};Q0.displayName="XAxis";Q0.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var J0=function(){return null};J0.displayName="YAxis";J0.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var bDe=io,xDe=Ad,wDe=$0;function SDe(e){return function(t,r,n){var i=Object(t);if(!xDe(t)){var a=bDe(r);t=wDe(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var ADe=SDe,CDe=aR;function _De(e){var t=CDe(e),r=t%1;return t===t?r?t-r:t:0}var kDe=_De,EDe=aB,DDe=io,PDe=kDe,TDe=Math.max;function ODe(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:PDe(r);return i<0&&(i=TDe(n+i,0)),EDe(e,DDe(t),i)}var $De=ODe,MDe=ADe,BDe=$De,IDe=MDe(BDe),RDe=IDe;const jDe=Te(RDe);var FDe=ro,NDe=no,LDe="[object Boolean]";function zDe(e){return e===!0||e===!1||NDe(e)&&FDe(e)==LDe}var VDe=zDe;const qDe=Te(VDe);function pT(e){return GDe(e)||WDe(e)||HDe(e)||UDe()}function UDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HDe(e,t){if(e){if(typeof e=="string")return Tx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tx(e,t)}}function WDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GDe(e){if(Array.isArray(e))return Tx(e)}function Tx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a3e(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function o3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vT(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pg(e){return pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pg(e)}function tl(e){return h3e(e)||p3e(e)||gR(e)||d3e()}function d3e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gR(e,t){if(e){if(typeof e=="string")return Mx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mx(e,t)}}function p3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function h3e(e){if(Array.isArray(e))return Mx(e)}function Mx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?s:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:t&&t.length&&J(a)&&J(o)?t.slice(a,o+1):[]};function x3e(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&J(n)&&J(i))return!0}return!1}function bR(e){return e==="number"?[0,"auto"]:void 0}var xR=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Z0(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(u,l){var c=l.props.hide;if(c)return u;var f=l.props.data,d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=hb(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(tl(u),[tR(l,d)]):u},[])},wT=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=y3e(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=OCe(o,s,l,u);if(c>=0&&l){var f=l[c]&&l[c].value,d=xR(t,r,c,f),h=b3e(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},w3e=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,h=ZI(c,a),g=n.reduce(function(p,b){var y,v=b.props,m=v.type,x=v.dataKey,w=v.allowDataOverflow,S=v.allowDuplicatedCategory,A=v.scale,k=v.ticks,E=v.includeHidden,T=b.props[o];if(p[T])return p;var P=Z0(t.data,{graphicalItems:i.filter(function(K){return K.props[o]===T}),dataStartIndex:u,dataEndIndex:l}),I=P.length,O,N,R;x3e(b.props.domain,w,m)&&(O=px(b.props.domain,null,w),h&&(m==="number"||A!=="auto")&&(R=Ic(P,x,"category")));var U=bR(m);if(!O||O.length===0){var F,j=(F=b.props.domain)!==null&&F!==void 0?F:U;if(x){if(O=Ic(P,x,m),m==="category"&&h){var $=lfe(O);S&&$?(N=O,O=ug(0,I)):S||(O=kP(j,O,b).reduce(function(K,Z){return K.indexOf(Z)>=0?K:[].concat(tl(K),[Z])},[]))}else if(m==="category")S?O=O.filter(function(K){return K!==""&&!ye(K)}):O=kP(j,O,b).reduce(function(K,Z){return K.indexOf(Z)>=0||Z===""||ye(Z)?K:[].concat(tl(K),[Z])},[]);else if(m==="number"){var V=RCe(P,i.filter(function(K){return K.props[o]===T&&(E||!K.props.hide)}),x,a,c);V&&(O=V)}h&&(m==="number"||A!=="auto")&&(R=Ic(P,x,"category"))}else h?O=ug(0,I):s&&s[T]&&s[T].hasStack&&m==="number"?O=d==="expand"?[0,1]:eR(s[T].stackGroups,u,l):O=JI(P,i.filter(function(K){return K.props[o]===T&&(E||!K.props.hide)}),m,c,!0);if(m==="number")O=Ox(f,O,T,a,k),j&&(O=px(j,O,w));else if(m==="category"&&j){var H=j,Y=O.every(function(K){return H.indexOf(K)>=0});Y&&(O=H)}}return G(G({},p),{},he({},T,G(G({},b.props),{},{axisType:a,domain:O,categoricalDomain:R,duplicateDomain:N,originalDomain:(y=b.props.domain)!==null&&y!==void 0?y:U,isCategorical:h,layout:c})))},{});return g},S3e=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.layout,f=t.children,d=Z0(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),h=d.length,g=ZI(c,a),p=-1,b=n.reduce(function(y,v){var m=v.props[o],x=bR("number");if(!y[m]){p++;var w;return g?w=ug(0,h):s&&s[m]&&s[m].hasStack?(w=eR(s[m].stackGroups,u,l),w=Ox(f,w,m,a)):(w=px(x,JI(d,n.filter(function(S){return S.props[o]===m&&!S.props.hide}),"number",c),i.defaultProps.allowDataOverflow),w=Ox(f,w,m,a)),G(G({},y),{},he({},m,G(G({axisType:a},i.defaultProps),{},{hide:!0,orientation:wn(g3e,"".concat(a,".").concat(p%2),null),domain:w,originalDomain:x,isCategorical:g,layout:c})))}return y},{});return b},A3e=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=Gn(c,a),h={};return d&&d.length?h=w3e(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(h=S3e(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),h},C3e=function(t){var r=ha(t),n=ma(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:_A(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ig(r,n)}},ST=function(t){var r,n,i=t.children,a=t.defaultShowTooltip,o=Fi(i,zf),s=o&&o.props&&o.props.startIndex||0,u=(o==null||(r=o.props)===null||r===void 0?void 0:r.endIndex)!==void 0?o==null||(n=o.props)===null||n===void 0?void 0:n.endIndex:t.data&&t.data.length-1||0;return{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:u,activeTooltipIndex:-1,isTooltipActive:ye(a)?!1:a}},_3e=function(t){return!t||!t.length?!1:t.some(function(r){var n=Na(r&&r.type);return n&&n.indexOf("Bar")>=0})},AT=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},k3e=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,u=s===void 0?{}:s,l=n.width,c=n.height,f=n.children,d=n.margin||{},h=Fi(f,zf),g=Fi(f,bf),p=Object.keys(u).reduce(function(m,x){var w=u[x],S=w.orientation;return!w.mirror&&!w.hide?G(G({},m),{},he({},S,m[S]+w.width)):m},{left:d.left||0,right:d.right||0}),b=Object.keys(o).reduce(function(m,x){var w=o[x],S=w.orientation;return!w.mirror&&!w.hide?G(G({},m),{},he({},S,wn(m,"".concat(S))+w.height)):m},{top:d.top||0,bottom:d.bottom||0}),y=G(G({},b),p),v=y.bottom;return h&&(y.bottom+=h.props.height||zf.defaultProps.height),g&&r&&(y=BCe(y,i,n,r)),G(G({brushBottom:v},y),{},{width:l-y.left-y.right,height:c-y.top-y.bottom})},E3e=function(t){var r,n=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,s=t.validateTooltipEventTypes,u=s===void 0?["axis"]:s,l=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(b,y){var v=y.graphicalItems,m=y.stackGroups,x=y.offset,w=y.updateId,S=y.dataStartIndex,A=y.dataEndIndex,k=b.barSize,E=b.layout,T=b.barGap,P=b.barCategoryGap,I=b.maxBarSize,O=AT(E),N=O.numericAxisName,R=O.cateAxisName,U=_3e(v),F=U&&$Ce({barSize:k,stackGroups:m}),j=[];return v.forEach(function($,V){var H=Z0(b.data,{dataStartIndex:S,dataEndIndex:A},$),Y=$.props,K=Y.dataKey,Z=Y.maxBarSize,ue=$.props["".concat(N,"Id")],fe=$.props["".concat(R,"Id")],le=l.reduce(function(ft,cr){var jr,fr=y["".concat(cr.axisType,"Map")],sa=$.props["".concat(cr.axisType,"Id")],ua=fr&&fr[sa];return G(G({},ft),{},(jr={},he(jr,cr.axisType,ua),he(jr,"".concat(cr.axisType,"Ticks"),ma(ua)),jr))},{}),se=le[R],W=le["".concat(R,"Ticks")],ee=m&&m[ue]&&m[ue].hasStack&&KCe($,m[ue].stackGroups),X=Na($.type).indexOf("Bar")>=0,L=ig(se,W),ce=[];if(X){var ve,ae,be=ye(Z)?I:Z,Ee=(ve=(ae=ig(se,W,!0))!==null&&ae!==void 0?ae:be)!==null&&ve!==void 0?ve:0;ce=MCe({barGap:T,barCategoryGap:P,bandSize:Ee!==L?Ee:L,sizeList:F[fe],maxBarSize:be}),Ee!==L&&(ce=ce.map(function(ft){return G(G({},ft),{},{position:G(G({},ft.position),{},{offset:ft.position.offset-Ee/2})})}))}var _t=$&&$.type&&$.type.getComposedData;if(_t){var Ar;j.push({props:G(G({},_t(G(G({},le),{},{displayedData:H,props:b,dataKey:K,item:$,bandSize:L,barPosition:ce,offset:x,stackedData:ee,layout:E,dataStartIndex:S,dataEndIndex:A}))),{},(Ar={key:$.key||"item-".concat(V)},he(Ar,N,le[N]),he(Ar,R,le[R]),he(Ar,"animationId",w),Ar)),childIndex:xfe($,b.children),item:$})}}),j},g=function(b,y){var v=b.props,m=b.dataStartIndex,x=b.dataEndIndex,w=b.updateId;if(!n3({props:v}))return null;var S=v.children,A=v.layout,k=v.stackOffset,E=v.data,T=v.reverseStackOrder,P=AT(A),I=P.numericAxisName,O=P.cateAxisName,N=Gn(S,i),R=HCe(E,N,"".concat(I,"Id"),"".concat(O,"Id"),k,T),U=l.reduce(function(H,Y){var K="".concat(Y.axisType,"Map");return G(G({},H),{},he({},K,A3e(v,G(G({},Y),{},{graphicalItems:N,stackGroups:Y.axisType===I&&R,dataStartIndex:m,dataEndIndex:x}))))},{}),F=k3e(G(G({},U),{},{props:v,graphicalItems:N}),y==null?void 0:y.legendBBox);Object.keys(U).forEach(function(H){U[H]=f(v,U[H],F,H.replace("Map",""),n)});var j=U["".concat(O,"Map")],$=C3e(j),V=h(v,G(G({},U),{},{dataStartIndex:m,dataEndIndex:x,updateId:w,graphicalItems:N,stackGroups:R,offset:F}));return G(G({formattedGraphicalItems:V,graphicalItems:N,offset:F,stackGroups:R},$),U)};return r=function(p){u3e(y,p);var b=l3e(y);function y(v){var m;return o3e(this,y),m=b.call(this,v),he(Se(m),"accessibilityManager",new ZDe),he(Se(m),"clearDeferId",function(){!ye(m.deferId)&&xT&&xT(m.deferId),m.deferId=null}),he(Se(m),"handleLegendBBoxUpdate",function(x){if(x){var w=m.state,S=w.dataStartIndex,A=w.dataEndIndex,k=w.updateId;m.setState(G({legendBBox:x},g({props:m.props,dataStartIndex:S,dataEndIndex:A,updateId:k},G(G({},m.state),{},{legendBBox:x}))))}}),he(Se(m),"handleReceiveSyncEvent",function(x,w,S){var A=m.props.syncId;A===x&&w!==m.uniqueChartId&&(m.clearDeferId(),m.deferId=bT&&bT(m.applySyncEvent.bind(Se(m),S)))}),he(Se(m),"handleBrushChange",function(x){var w=x.startIndex,S=x.endIndex;if(w!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var A=m.state.updateId;m.setState(function(){return G({dataStartIndex:w,dataEndIndex:S},g({props:m.props,dataStartIndex:w,dataEndIndex:S,updateId:A},m.state))}),m.triggerSyncEvent({dataStartIndex:w,dataEndIndex:S})}}),he(Se(m),"handleMouseEnter",function(x){var w=m.props.onMouseEnter,S=m.getMouseInfo(x);if(S){var A=G(G({},S),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A),xe(w)&&w(A,x)}}),he(Se(m),"triggeredAfterMouseMove",function(x){var w=m.props.onMouseMove,S=m.getMouseInfo(x),A=S?G(G({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A),xe(w)&&w(A,x)}),he(Se(m),"handleItemMouseEnter",function(x){m.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),he(Se(m),"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),he(Se(m),"handleMouseMove",function(x){x&&xe(x.persist)&&x.persist(),m.triggeredAfterMouseMove(x)}),he(Se(m),"handleMouseLeave",function(x){var w=m.props.onMouseLeave,S={isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S),xe(w)&&w(S,x),m.cancelThrottledTriggerAfterMouseMove()}),he(Se(m),"handleOuterEvent",function(x){var w=bfe(x),S=wn(m.props,"".concat(w));if(w&&xe(S)){var A;/.*touch.*/i.test(w)?A=m.getMouseInfo(x.changedTouches[0]):A=m.getMouseInfo(x);var k=S;k(A,x)}}),he(Se(m),"handleClick",function(x){var w=m.props.onClick,S=m.getMouseInfo(x);if(S){var A=G(G({},S),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A),xe(w)&&w(A,x)}}),he(Se(m),"handleMouseDown",function(x){var w=m.props.onMouseDown;if(xe(w)){var S=m.getMouseInfo(x);w(S,x)}}),he(Se(m),"handleMouseUp",function(x){var w=m.props.onMouseUp;if(xe(w)){var S=m.getMouseInfo(x);w(S,x)}}),he(Se(m),"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseMove(x.changedTouches[0])}),he(Se(m),"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseDown(x.changedTouches[0])}),he(Se(m),"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&m.handleMouseUp(x.changedTouches[0])}),he(Se(m),"verticalCoordinatesGenerator",function(x){var w=x.xAxis,S=x.width,A=x.height,k=x.offset;return wP(Dx(G(G(G({},Rc.defaultProps),w),{},{ticks:ma(w,!0),viewBox:{x:0,y:0,width:S,height:A}})),k.left,k.left+k.width)}),he(Se(m),"horizontalCoordinatesGenerator",function(x){var w=x.yAxis,S=x.width,A=x.height,k=x.offset;return wP(Dx(G(G(G({},Rc.defaultProps),w),{},{ticks:ma(w,!0),viewBox:{x:0,y:0,width:S,height:A}})),k.top,k.top+k.height)}),he(Se(m),"axesTicksGenerator",function(x){return ma(x,!0)}),he(Se(m),"renderCursor",function(x){var w=m.state,S=w.isTooltipActive,A=w.activeCoordinate,k=w.activePayload,E=w.offset,T=w.activeTooltipIndex,P=m.getTooltipEventType();if(!x||!x.props.cursor||!S||!A||n!=="ScatterChart"&&P!=="axis")return null;var I=m.props.layout,O,N=NP;if(n==="ScatterChart")O=A,N=gke;else if(n==="BarChart")O=m.getCursorRectangle(),N=QA;else if(I==="radial"){var R=m.getCursorPoints(),U=R.cx,F=R.cy,j=R.radius,$=R.startAngle,V=R.endAngle;O={cx:U,cy:F,startAngle:$,endAngle:V,innerRadius:j,outerRadius:j},N=W_e}else O={points:m.getCursorPoints()},N=NP;var H=x.key||"_recharts-cursor",Y=G(G(G(G({stroke:"#ccc",pointerEvents:"none"},E),O),Ve(x.props.cursor)),{},{payload:k,payloadIndex:T,key:H,className:"recharts-tooltip-cursor"});return C.isValidElement(x.props.cursor)?C.cloneElement(x.props.cursor,Y):C.createElement(N,Y)}),he(Se(m),"renderPolarAxis",function(x,w,S){var A=wn(x,"type.axisType"),k=wn(m.state,"".concat(A,"Map")),E=k&&k[x.props["".concat(A,"Id")]];return C.cloneElement(x,G(G({},E),{},{className:A,key:x.key||"".concat(w,"-").concat(S),ticks:ma(E,!0)}))}),he(Se(m),"renderXAxis",function(x,w,S){var A=m.state.xAxisMap,k=A[x.props.xAxisId];return m.renderAxis(k,x,w,S)}),he(Se(m),"renderYAxis",function(x,w,S){var A=m.state.yAxisMap,k=A[x.props.yAxisId];return m.renderAxis(k,x,w,S)}),he(Se(m),"renderGrid",function(x){var w=m.state,S=w.xAxisMap,A=w.yAxisMap,k=w.offset,E=m.props,T=E.width,P=E.height,I=ha(S),O=jDe(A,function(U){return uR(U.domain,v3e)}),N=O||ha(A),R=x.props||{};return C.cloneElement(x,{key:x.key||"grid",x:J(R.x)?R.x:k.left,y:J(R.y)?R.y:k.top,width:J(R.width)?R.width:k.width,height:J(R.height)?R.height:k.height,xAxis:I,yAxis:N,offset:k,chartWidth:T,chartHeight:P,verticalCoordinatesGenerator:R.verticalCoordinatesGenerator||m.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:R.horizontalCoordinatesGenerator||m.horizontalCoordinatesGenerator})}),he(Se(m),"renderPolarGrid",function(x){var w=x.props,S=w.radialLines,A=w.polarAngles,k=w.polarRadius,E=m.state,T=E.radiusAxisMap,P=E.angleAxisMap,I=ha(T),O=ha(P),N=O.cx,R=O.cy,U=O.innerRadius,F=O.outerRadius;return C.cloneElement(x,{polarAngles:Gt(A)?A:ma(O,!0).map(function(j){return j.coordinate}),polarRadius:Gt(k)?k:ma(I,!0).map(function(j){return j.coordinate}),cx:N,cy:R,innerRadius:U,outerRadius:F,key:x.key||"polar-grid",radialLines:S})}),he(Se(m),"renderLegend",function(){var x=m.state.formattedGraphicalItems,w=m.props,S=w.children,A=w.width,k=w.height,E=m.props.margin||{},T=A-(E.left||0)-(E.right||0),P=XI({children:S,formattedGraphicalItems:x,legendWidth:T,legendContent:c});if(!P)return null;var I=P.item,O=gT(P,e3e);return C.cloneElement(I,G(G({},O),{},{chartWidth:A,chartHeight:k,margin:E,ref:function(R){m.legendInstance=R},onBBoxUpdate:m.handleLegendBBoxUpdate}))}),he(Se(m),"renderTooltip",function(){var x=m.props.children,w=Fi(x,Qs);if(!w)return null;var S=m.state,A=S.isTooltipActive,k=S.activeCoordinate,E=S.activePayload,T=S.activeLabel,P=S.offset;return C.cloneElement(w,{viewBox:G(G({},P),{},{x:P.left,y:P.top}),active:A,label:T,payload:A?E:[],coordinate:k})}),he(Se(m),"renderBrush",function(x){var w=m.props,S=w.margin,A=w.data,k=m.state,E=k.offset,T=k.dataStartIndex,P=k.dataEndIndex,I=k.updateId;return C.cloneElement(x,{key:x.key||"_recharts-brush",onChange:Ep(m.handleBrushChange,null,x.props.onChange),data:A,x:J(x.props.x)?x.props.x:E.left,y:J(x.props.y)?x.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:J(x.props.width)?x.props.width:E.width,startIndex:T,endIndex:P,updateId:"brush-".concat(I)})}),he(Se(m),"renderReferenceElement",function(x,w,S){if(!x)return null;var A=Se(m),k=A.clipPathId,E=m.state,T=E.xAxisMap,P=E.yAxisMap,I=E.offset,O=x.props,N=O.xAxisId,R=O.yAxisId;return C.cloneElement(x,{key:x.key||"".concat(w,"-").concat(S),xAxis:T[N],yAxis:P[R],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:k})}),he(Se(m),"renderActivePoints",function(x){var w=x.item,S=x.activePoint,A=x.basePoint,k=x.childIndex,E=x.isRange,T=[],P=w.props.key,I=w.item.props,O=I.activeDot,N=I.dataKey,R=G(G({index:k,dataKey:N,cx:S.x,cy:S.y,r:4,fill:XA(w.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value,key:"".concat(P,"-activePoint-").concat(k)},Ve(O)),Em(O));return T.push(y.renderActiveDot(O,R)),A?T.push(y.renderActiveDot(O,G(G({},R),{},{cx:A.x,cy:A.y,key:"".concat(P,"-basePoint-").concat(k)}))):E&&T.push(null),T}),he(Se(m),"renderGraphicChild",function(x,w,S){var A=m.filterFormatItem(x,w,S);if(!A)return null;var k=m.getTooltipEventType(),E=m.state,T=E.isTooltipActive,P=E.tooltipAxis,I=E.activeTooltipIndex,O=E.activeLabel,N=m.props.children,R=Fi(N,Qs),U=A.props,F=U.points,j=U.isRange,$=U.baseLine,V=A.item.props,H=V.activeDot,Y=V.hide,K=!Y&&T&&R&&H&&I>=0,Z={};k!=="axis"&&R&&R.props.trigger==="click"?Z={onClick:Ep(m.handleItemMouseEnter,null,x.props.onCLick)}:k!=="axis"&&(Z={onMouseLeave:Ep(m.handleItemMouseLeave,null,x.props.onMouseLeave),onMouseEnter:Ep(m.handleItemMouseEnter,null,x.props.onMouseEnter)});var ue=C.cloneElement(x,G(G({},A.props),Z));function fe(ee){return typeof P.dataKey=="function"?P.dataKey(ee.payload):null}if(K){var le,se;if(P.dataKey&&!P.allowDuplicatedCategory){var W=typeof P.dataKey=="function"?fe:"payload.".concat(P.dataKey.toString());le=hb(F,W,O),se=j&&$&&hb($,W,O)}else le=F[I],se=j&&$&&$[I];if(!ye(le))return[ue].concat(tl(m.renderActivePoints({item:A,activePoint:le,basePoint:se,childIndex:I,isRange:j})))}return j?[ue,null,null]:[ue,null]}),he(Se(m),"renderCustomized",function(x,w,S){return C.cloneElement(x,G(G({key:"recharts-customized-".concat(S)},m.props),m.state))}),m.uniqueChartId=ye(v.id)?O0("recharts"):v.id,m.clipPathId="".concat(m.uniqueChartId,"-clip"),v.throttleDelay&&(m.triggeredAfterMouseMove=YB(m.triggeredAfterMouseMove,v.throttleDelay)),m.state={},m}return s3e(y,[{key:"componentDidMount",value:function(){var m,x;ye(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(m,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==m.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==m.margin){var w,S;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(m){ye(m.syncId)&&!ye(this.props.syncId)&&this.addListener(),!ye(m.syncId)&&ye(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),ye(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){typeof this.triggeredAfterMouseMove.cancel=="function"&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var m=Fi(this.props.children,Qs);if(m&&qDe(m.props.shared)){var x=m.props.shared?"axis":"item";return u.indexOf(x)>=0?x:o}return o}},{key:"getMouseInfo",value:function(m){if(!this.container)return null;var x=Dxe(this.container),w=Pxe(m,x),S=this.inRange(w.chartX,w.chartY);if(!S)return null;var A=this.state,k=A.xAxisMap,E=A.yAxisMap,T=this.getTooltipEventType();if(T!=="axis"&&k&&E){var P=ha(k).scale,I=ha(E).scale,O=P&&P.invert?P.invert(w.chartX):null,N=I&&I.invert?I.invert(w.chartY):null;return G(G({},w),{},{xValue:O,yValue:N})}var R=wT(this.state,this.props.data,this.props.layout,S);return R?G(G({},w),R):null}},{key:"getCursorRectangle",value:function(){var m=this.props.layout,x=this.state,w=x.activeCoordinate,S=x.offset,A=x.tooltipAxisBandSize,k=A/2;return{stroke:"none",fill:"#ccc",x:m==="horizontal"?w.x-k:S.left+.5,y:m==="horizontal"?S.top+.5:w.y-k,width:m==="horizontal"?A:S.width-1,height:m==="horizontal"?S.height-1:A}}},{key:"getCursorPoints",value:function(){var m=this.props.layout,x=this.state,w=x.activeCoordinate,S=x.offset,A,k,E,T;if(m==="horizontal")A=w.x,E=A,k=S.top,T=S.top+S.height;else if(m==="vertical")k=w.y,T=k,A=S.left,E=S.left+S.width;else if(!ye(w.cx)||!ye(w.cy))if(m==="centric"){var P=w.cx,I=w.cy,O=w.innerRadius,N=w.outerRadius,R=w.angle,U=Kt(P,I,O,R),F=Kt(P,I,N,R);A=U.x,k=U.y,E=F.x,T=F.y}else{var j=w.cx,$=w.cy,V=w.radius,H=w.startAngle,Y=w.endAngle,K=Kt(j,$,V,H),Z=Kt(j,$,V,Y);return{points:[K,Z],cx:j,cy:$,radius:V,startAngle:H,endAngle:Y}}return[{x:A,y:k},{x:E,y:T}]}},{key:"inRange",value:function(m,x){var w=this.props.layout;if(w==="horizontal"||w==="vertical"){var S=this.state.offset,A=m>=S.left&&m<=S.left+S.width&&x>=S.top&&x<=S.top+S.height;return A?{x:m,y:x}:null}var k=this.state,E=k.angleAxisMap,T=k.radiusAxisMap;if(E&&T){var P=ha(E);return PP({x:m,y:x},P)}return null}},{key:"parseEventsOfWrapper",value:function(){var m=this.props.children,x=this.getTooltipEventType(),w=Fi(m,Qs),S={};w&&x==="axis"&&(w.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var A=Em(this.props,this.handleOuterEvent);return G(G({},A),S)}},{key:"addListener",value:function(){Nr.on(d1,this.handleReceiveSyncEvent),Nr.setMaxListeners&&Nr._maxListeners&&Nr.setMaxListeners(Nr._maxListeners+1)}},{key:"removeListener",value:function(){Nr.removeListener(d1,this.handleReceiveSyncEvent),Nr.setMaxListeners&&Nr._maxListeners&&Nr.setMaxListeners(Nr._maxListeners-1)}},{key:"triggerSyncEvent",value:function(m){var x=this.props.syncId;ye(x)||Nr.emit(d1,x,this.uniqueChartId,m)}},{key:"applySyncEvent",value:function(m){var x=this.props,w=x.layout,S=x.syncMethod,A=this.state.updateId,k=m.dataStartIndex,E=m.dataEndIndex;if(!ye(m.dataStartIndex)||!ye(m.dataEndIndex))this.setState(G({dataStartIndex:k,dataEndIndex:E},g({props:this.props,dataStartIndex:k,dataEndIndex:E,updateId:A},this.state)));else if(ye(m.activeTooltipIndex))this.setState(m);else{var T=m.chartX,P=m.chartY,I=m.activeTooltipIndex,O=this.state,N=O.offset,R=O.tooltipTicks;if(!N)return;if(typeof S=="function")I=S(R,m);else if(S==="value"){I=-1;for(var U=0;U{if(Number(r)<=0)return null;const o=Number(a.x)+Number(e)/2,s=Number(a.y)+Number(t)/2;return _.jsxs(ne.text,{name:i,fill:"chakra-body-text",className:"recharts-text recharts-label",x:o,y:s,offset:n,textAnchor:"middle",fontSize:"40%",children:[_.jsx("title",{children:i}),_.jsx("tspan",{x:o,dy:"0.355em",children:r})]})};function T3e({values:e,max:t}){const[r,n]=v4("colors",["colors.complete","colors.accent"]),i=C.useMemo(()=>[e.reduce((a,o,s)=>({...a,[s.toString()]:o.value}),{name:"progress bar"})],[e]);return _.jsx(Xbe,{children:_.jsxs(D3e,{data:i,layout:"vertical",margin:{top:0,left:0,right:0,bottom:0},children:[_.jsx(Q0,{type:"number",hide:!0,domain:[0,t]}),_.jsx(J0,{type:"category",dataKey:"name",hide:!0}),_.jsx("defs",{children:_.jsxs("pattern",{id:"partial",x:"0",y:"0",width:"10",height:"10",patternUnits:"userSpaceOnUse",children:[_.jsx(ne.rect,{fill:"chakra-body-bg",x:"0",y:"0",width:"10",height:"10"}),_.jsx(ne.rect,{fill:"partial",x:"0",width:"5px",height:"5px",y:"0"}),_.jsx(ne.rect,{fill:"partial",x:"5",width:"5px",height:"5px",y:"5"})]})}),e.map((a,o)=>_.jsx(xl,{dataKey:o.toString(),stackId:"s",fill:a.color==="partial"?"url(#partial)":r,...o===0?{background:{fill:n}}:{},label:_.jsx(P3e,{title:a.name}),isAnimationActive:!1},o))]})})}function oa({title:e,icon:t,loading:r=!1,values:n,max:i,children:a}){return _.jsxs(D8,{isDisabled:r,children:[_.jsxs(_8,{fontSize:"3xl",children:[_.jsxs(Hi,{direction:"row",flex:"1",textAlign:"left",children:[_.jsx(sl,{src:t}),_.jsx(Lo,{fontSize:["xl",null,"3xl"],fontWeight:"normal",children:e})]}),_.jsx(bn,{alignSelf:"stretch",flex:"1 1",children:_.jsx(T3e,{values:n,max:i})}),r?_.jsx(iA,{}):_.jsx(E8,{})]}),_.jsx(T8,{children:_.jsx(Hi,{spacing:4,children:a})})]})}function O3e(){return _.jsx(oa,{title:"Dreadsylvania",icon:"itemimages/dvtat.gif",loading:!1,values:[],max:1,children:_.jsx(Ose,{})})}function $3e({label:e,complete:t}){return _.jsx(kS,{gridColumn:["1 / span 3",null,1],alignItems:"center",justifyContent:[null,null,"flex-end"],children:_.jsx(a0,{transform:[null,null,"rotate(270deg)"],fontSize:"sm",bg:t?"complete":void 0,children:e})},`rowlabel-${e}`)}function wR({items:e,renderItem:t,idToStatus:r,getRowLabel:n,columns:i=6}){const a=Sse(e,i);return _.jsx(yn,{spacing:1,columns:[3,null,i+(n?1:0)],gridTemplateColumns:[null,null,`${n?"auto":""} repeat(${i}, minmax(0, 1fr))`],children:a.map((o,s)=>{const u=o.filter(Ase).map(l=>r[l.id]??pm.NONE).every(l=>l!==pm.NONE);return[n&&_.jsx($3e,{label:n(s),complete:u},`rowlabel-${s}`),...o.map((l,c)=>l?t(l):_.jsx(bn,{display:["none",null,"block"]},`blank-${c}`))]})})}function _o({items:e,playerItems:t,getRowLabel:r,columns:n=6}){const i=ke(u=>u.items),a=e.map(u=>i[u]),o=C.useMemo(()=>e.reduce((u,l,c)=>({...u,[l]:t[c]}),{}),[e,t]),s=u=>_.jsx(eo,{type:"item",name:u.name,image:`itemimages/${u.image}`,state:wse(o[u.id]||pm.NONE)},u.id);return _.jsx(wR,{items:a,idToStatus:o,columns:n,getRowLabel:r,renderItem:s})}const M3e=[38,39,40,41],B3e=[29,31,33,37,43],I3e=[28,30,32,36,42],CT=[3260,3261,3262,3383,3384,3385],_T=[3251,3252,3253,3286,3389,3391],kT=[3246,3247,3248,3380,3381,3382],ET=[3254,3255,3256,3392,3393,3394],DT=[3257,3258,3259,3386,3387,3388];function R3e(){const e=ke(Qoe);return _.jsxs(oa,{title:"Hobopolis",icon:"otherimages/sigils/hobotat19.gif",loading:!1,values:[],max:1,children:[_.jsx(cn,{title:"Hogdman's Journal Skills",image:"itemimages/blacknotebook.gif",children:_.jsx(yn,{columns:6,spacing:1,children:M3e.map(t=>_.jsx(xt,{id:t},t))})}),_.jsx(cn,{title:"Weak Elemental Skills",image:"itemimages/book3.gif",children:_.jsx(yn,{columns:6,spacing:1,children:B3e.map(t=>_.jsx(xt,{id:t},t))})}),_.jsx(cn,{title:"Strong Elemental Skills",image:"itemimages/book4.gif",children:_.jsx(yn,{columns:6,spacing:1,children:I3e.map(t=>_.jsx(xt,{id:t},t))})}),_.jsx(cn,{title:"Chester",image:"itemimages/chestache.gif",children:_.jsx(_o,{items:CT,playerItems:CT.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})}),_.jsx(cn,{title:"Frosty",image:"itemimages/frostyhat.gif",children:_.jsx(_o,{items:_T,playerItems:_T.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})}),_.jsx(cn,{title:"Ol' Scratch",image:"itemimages/pitchfork2.gif",children:_.jsx(_o,{items:kT,playerItems:kT.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})}),_.jsx(cn,{title:"Oscus",image:"itemimages/oscuswand.gif",children:_.jsx(_o,{items:ET,playerItems:ET.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})}),_.jsx(cn,{title:"Zombo",image:"itemimages/zomboshield.gif",children:_.jsx(_o,{items:DT,playerItems:DT.map(t=>{var r;return((r=e[t])==null?void 0:r[1])??0})})})]})}const j3e=[46,47,48];function F3e(){return _.jsx(oa,{title:"Slime Tube",icon:"itemimages/slimeling.gif",loading:!1,values:[],max:1,children:_.jsx(cn,{title:"Skills",image:"itemimages/slimehypo.gif",children:_.jsx(yn,{columns:6,spacing:1,children:j3e.map(e=>_.jsx(xt,{id:e},e))})})})}function N3e(){return _.jsxs(xS,{allowMultiple:!0,children:[_.jsx(R3e,{}),_.jsx(O3e,{}),_.jsx(F3e,{})]})}function tC({title:e}){return _.jsx(n0,{src:"/medal.png",title:e,height:"20px",mt:1,mr:1})}function L3e(e){switch(e){case es.TERRARIUM:return"complete";case es.HATCHLING:return"partial";default:return null}}function z3e(e){switch(e){case es.TERRARIUM:return"Have in terrarium";case es.HATCHLING:return"Have as hatchling";default:return"Do not have"}}function V3e({familiar:e,status:t,hundredPercent:r}){return _.jsx(eo,{type:"familiar",name:e.name,image:`itemimages/${e.image}`,state:L3e(t),title:z3e(t),badges:r?_.jsx(tC,{title:"100% run"}):null})}function q3e({familiars:e}){return e.length===0?null:_.jsx(yn,{spacingX:3,columns:3,width:"30%",templateColumns:"repeat(3, max-content)",children:e.map(t=>_.jsxs(C.Fragment,{children:[_.jsx(Mi,{children:t.name}),_.jsx(sl,{src:`itemimages/${t.image}`,sourceWidth:30,width:"20px",height:"20px"}),_.jsx(tC,{title:"100% run"})]},t.id))})}const ev=e=>(t,r)=>{const n=t[e]||0,i=r[e]||0;return ni?1:0};function tv({onChange:e,value:t,alphabeticalKey:r,chronologicalKey:n}){return _.jsx(d9,{size:"sm",onChange:e,value:t,children:_.jsxs(Hi,{direction:"row",justifyContent:"end",children:[_.jsx(q2,{value:r,children:"Alphabetical"}),_.jsx(q2,{value:n,children:"Chronological"})]})})}const U3e=ls("familiars");function H3e(){const[e,t]=C.useState("id"),r=ke(U3e),n=ke(c=>c.familiars),i=C.useMemo(()=>n.filter(c=>c.ownable).toSorted(ev(e)),[n,e]),a=ke(c=>c.loading.familiars||!1),o=C.useMemo(()=>r.filter(c=>c[1]===es.TERRARIUM).length,[r]),s=C.useMemo(()=>r.filter(c=>c[1]===es.HATCHLING).length,[r]),u=C.useMemo(()=>r.reduce((c,f)=>({...c,[f[0]]:f}),{}),[r]),l=C.useMemo(()=>n.filter(c=>!c.ownable).filter(c=>{var f;return((f=u[c.id])==null?void 0:f[2])??!1}),[n]);return _.jsxs(oa,{title:"Familiars",icon:"itemimages/terrarium.gif",loading:a,values:[{color:"partial",value:s,name:`${s} / ${i.length} as hatching`},{color:"complete",value:o,name:`${o} / ${i.length} in terrarium`}],max:i.length,children:[_.jsx(tv,{onChange:t,value:e,alphabeticalKey:"name",chronologicalKey:"id"}),_.jsx(yn,{columns:6,spacing:1,children:i.map(c=>{var f,d;return _.jsx(V3e,{familiar:c,status:((f=u[c.id])==null?void 0:f[1])??0,hundredPercent:((d=u[c.id])==null?void 0:d[2])??!1},c.id)})}),_.jsx(q3e,{familiars:l})]})}function W3e(e){switch(e){case Nu.BOUND:return"complete";case Nu.BOXED:return"partial";default:return null}}function G3e(e,t){switch(t){case Nu.BOUND:return e.type!=="vip"?"Have":"Have access if your clan owns one";case Nu.BOXED:return"Have store item";default:return"Do not have"}}function K3e({item:e,status:t,iotm:r}){return e?_.jsx(eo,{type:"item",name:e.name,image:`itemimages/${e.image}`,state:W3e(t),title:G3e(r,t)}):null}const Y3e=ls("iotms");function X3e(){const e=ke(Y3e),t=ke(c=>c.iotms),r=ke(c=>c.loading.iotms||!1),n=ke(c=>c.items),i=C.useMemo(()=>t.filter(c=>c.type==="vip").map(c=>c.id),[t]),a=C.useMemo(()=>e.findIndex(c=>i.includes(c[0]))>-1,[e,i]),o=C.useMemo(()=>t.length-(i.length-1),[t]),s=C.useMemo(()=>e.filter(c=>c[1]==Nu.BOUND).map(c=>c[0]).length-(a?i.length-1:0),[e]),u=C.useMemo(()=>e.reduce((c,f)=>({...c,[f[0]]:f[1]}),{}),[e]),l=C.useMemo(()=>[...Array(9).map(c=>null),...t],[t]);return _.jsx(oa,{title:"IotMs",icon:"itemimages/mracc.gif",loading:r,values:[{color:"complete",value:s,name:`${s} / ${o} IotMs bound`}],max:t.length,children:_.jsx(wR,{idToStatus:u,items:l,columns:12,getRowLabel:c=>2004+c,renderItem:c=>_.jsx(K3e,{item:n[c.id],iotm:c,status:u[c.id]??0},c.id)})})}function Q3e(e,t){return t===1?e===1?"Have":"Do not have":`${e{const o=t[a]||0,s=r[a],u=Array.isArray(i)?i[Math.max(0,o-1)]:i,l=Z3e(u);return _.jsx(eo,{type:"tattoo",name:n,image:`otherimages/sigils/${u}.gif`,sourceWidth:50,title:Q3e(o,s),state:o===0?null:o2015+e,[r6]:e=>e===0?null:2015+(e-1)};function t5e({path:e,points:t,items:r,equipment:n,tattoos:i,maxTattooLevel:a}){return ke(o=>o.items),_.jsxs(cn,{title:e.name,image:e.image,right:e.maxPoints>0&&_.jsx(bn,{alignSelf:"start",position:"relative",children:_.jsxs(a0,{title:`${t} points out of a possible ${e.maxPoints}`,position:"absolute",top:0,children:[t," / ",e.maxPoints]})}),children:[e.items.length>0&&_.jsxs(_.Fragment,{children:[_.jsx(Lo,{as:"h4",textTransform:"uppercase",fontSize:"xs",children:"Items"}),_.jsx(_o,{items:e.items,playerItems:r})]}),e.equipment.length>0&&_.jsxs(_.Fragment,{children:[_.jsx(Lo,{as:"h4",textTransform:"uppercase",fontSize:"xs",children:"Equipment"}),_.jsx(_o,{items:e.equipment,playerItems:n,getRowLabel:e5e[e.id]})]}),e.tattoos.length>0&&_.jsxs(_.Fragment,{children:[_.jsx(Lo,{as:"h4",textTransform:"uppercase",fontSize:"xs",children:"Tattoos"}),_.jsx(J3e,{tattoos:e.tattoos,playerTattoos:i,maxTattooLevel:a})]})]})}const r5e=ls("paths");function n5e(){const[e,t]=C.useState("id"),r=ke(r5e),n=ke(f=>f.paths),i=C.useMemo(()=>n.toSorted(ev(e)),[n,e]),a=ke(f=>f.loading.paths||!1),o=C.useMemo(()=>i.reduce((f,d)=>({...f,[d.id]:d.tattoos.map(h=>Array.isArray(h.image)?h.image.length:1)}),{}),[i]),s=C.useMemo(()=>r.reduce((f,d)=>f+[...d[2],...d[3]].length+(o[d[0]]??[]).reduce((h,g)=>h+g,0),0),[r,o]),u=C.useMemo(()=>r.reduce((f,d)=>f+[...d[2],...d[3]].reduce((h,g)=>h+g,0)+d[4].reduce((h,g,p)=>h+g,0),0),[r]),l=C.useMemo(()=>r.reduce((f,d)=>f+d[4].reduce((h,g,p)=>{var b;return h+Math.max(0,(((b=o[d[0]])==null?void 0:b[p])??0)-(g+1))},0),0),[r,o]),c=C.useMemo(()=>r.reduce((f,d)=>({...f,[d[0]]:d}),{}),[r]);return _.jsxs(oa,{title:"Paths",icon:"itemimages/map.gif",loading:a,values:[{color:"partial",value:l,name:`${l} / ${s} path rewards partially earned`},{color:"complete",value:u,name:`${u} / ${s} path rewards completely earned`}],max:s,children:[_.jsx(tv,{onChange:t,value:e,alphabeticalKey:"name",chronologicalKey:"id"}),i.map(f=>{var d,h,g,p;return _.jsx(t5e,{path:f,points:((d=c[f.id])==null?void 0:d[1])??0,items:((h=c[f.id])==null?void 0:h[2])??[],equipment:((g=c[f.id])==null?void 0:g[3])??[],tattoos:((p=c[f.id])==null?void 0:p[4])??[],maxTattooLevel:(o==null?void 0:o[f.id])??[]},f.name)})]})}function i5e({titles:e,images:t,active:r,overlap:n=10}){return _.jsx(bn,{ml:`${n}px`,children:t.map((i,a)=>_.jsx(bn,{title:km.decode(e[a]),ml:`-${n}px`,display:"inline-block",position:"relative",zIndex:a===r?2:1,filter:`brightness(${a===r?1:.8})`,children:_.jsx(sl,{src:`itemimages/${i}`,sourceWidth:30})},i))})}function a5e({groupName:e,skills:t,statuses:r}){var i;const n=r.findIndex(a=>a>qn.NONE);return _.jsx(eo,{link:((i=t[n])==null?void 0:i.name)??t[0].name,type:"skill",name:e,image:_.jsx(i5e,{titles:t.map(a=>a.name),images:t.map(a=>a.image),active:n}),state:T6(r[n]),title:O6(r[n])})}function o5e({bucket:e,cls:t,medal:r,children:n}){const[i,a]=_se(e,t);return _.jsx(cn,{title:i,image:a,right:r&&t&&_.jsx(tC,{title:"100% marked hardcore permanent"}),children:n})}function s5e(){const e=ke(y6),t=ke(b6),r=ke(d=>d.skills),n=C.useMemo(()=>r.filter(d=>d.permable),[r]),i=ke(d=>d.classes),a=ke(d=>d.loading.skills||!1),o=C.useMemo(()=>e.filter(d=>d[1]===qn.HARDCORE).length,[e]),s=C.useMemo(()=>e.filter(d=>d[1]===qn.SOFTCORE).length,[e]),u=C.useMemo(()=>i.reduce((d,h)=>({...d,[h.id]:h}),{}),[i]),l=C.useMemo(()=>n.reduce((d,h)=>{const g=Cse(h);return{...d,[g]:[...d[g]||[],h]}},{}),[n]),c=C.useMemo(()=>Object.entries(l).map(([d,h])=>[Number(d),h]).sort((d,h)=>d[0]===0||d[0]<1&&h[0]>=1?1:h[0]===0||h[0]<1&&d[0]>=1?-1:d[0]-h[0]),[l]),f=[];return _.jsx(oa,{title:"Skills",icon:"itemimages/book3.gif",loading:a,values:[{color:"partial",value:s,name:`${s} / ${n.length} softcore permed`},{color:"complete",value:o,name:`${o} / ${n.length} hardcore permed`}],max:n.length,children:c.map(([d,h])=>{const g=h.every(p=>{var b;return((b=t[p.id])==null?void 0:b[1])===qn.HARDCORE});return _.jsx(o5e,{bucket:Number(d),cls:u[Number(d)],medal:g,children:_.jsx(yn,{columns:6,spacing:1,children:h.map(p=>{switch(p.id){case 191:case 192:case 193:if(f.push(p),p.id!==193)return null;const b=[...f];return f.length=0,_.jsx(a5e,{groupName:"Drippy Skill",skills:b,statuses:b.map(y=>{var v;return((v=t[y.id])==null?void 0:v[1])??qn.NONE})},p.id);default:return _.jsx(xt,{id:p.id},p.id)}})})},d)})})}function u5e(e){switch(e){case ts.HAVE:return"complete";case ts.HAVE_OUTFIT:return"partial";default:return null}}function l5e(e){switch(e){case ts.HAVE:return"Have";case ts.HAVE_OUTFIT:return"Have necessary outfit";default:return"Do not have"}}function c5e({tattoo:e,status:t}){return _.jsx(eo,{type:"tattoo",name:e.name,image:`otherimages/sigils/${e.image}.gif`,sourceWidth:50,state:u5e(t),title:l5e(t)})}const f5e=ls("outfitTattoos");function d5e(){const[e,t]=C.useState("name"),r=ke(f5e),n=ke(l=>l.tattoos),i=C.useMemo(()=>n.filter(l=>l.outfit!==void 0).toSorted(ev(e)),[n,e]),a=ke(l=>l.loading.tattoos||!1),o=C.useMemo(()=>r.filter(l=>l[1]===ts.HAVE).length,[r]),s=C.useMemo(()=>r.filter(l=>l[1]===ts.HAVE_OUTFIT).length,[r]),u=C.useMemo(()=>r.reduce((l,c)=>({...l,[c[0]]:c}),{}),[r]);return _.jsxs(oa,{title:"Tattoos",icon:"itemimages/palette.gif",loading:a,values:[{color:"partial",value:s,name:`${s} / ${i.length} tattoos unlocked`},{color:"complete",value:o,name:`${o} / ${i.length} tattoos unlocked`}],max:i.length,children:[_.jsx(tv,{onChange:t,value:e,alphabeticalKey:"name",chronologicalKey:"outfit"}),_.jsx(yn,{columns:[4,null,6],spacing:1,children:i.map(l=>{var c;return _.jsx(c5e,{tattoo:l,status:((c=u[l.outfit])==null?void 0:c[1])??0},Array.isArray(l.image)?l.image[0]:l.image)})})]})}function p5e(e){switch(e){case A0.HAVE:return"complete";default:return null}}function h5e(e){switch(e){case A0.HAVE:return"Have";default:return"Do not have"}}function m5e({trophy:e,status:t}){return _.jsx(eo,{type:"trophy",name:e.name,image:`otherimages/trophy/${e.image}.gif`,sourceWidth:100,state:p5e(t),title:h5e(t)})}const g5e=ls("trophies");function v5e(){const[e,t]=C.useState("id"),r=ke(g5e),n=ke(u=>u.trophies),i=C.useMemo(()=>n.toSorted(ev(e)),[n,e]),a=ke(u=>u.loading.trophies||!1),o=C.useMemo(()=>r.filter(u=>u[1]==A0.HAVE).length,[r]),s=C.useMemo(()=>r.reduce((u,l)=>({...u,[l[0]]:l}),{}),[r]);return _.jsxs(oa,{title:"Trophies",icon:"itemimages/trophy.gif",loading:a,values:[{color:"complete",value:o,name:`${o} / ${i.length} tattoos unlocked`}],max:i.length,children:[_.jsx(tv,{onChange:t,value:e,alphabeticalKey:"name",chronologicalKey:"id"}),_.jsx(yn,{columns:[3,null,6],spacing:1,children:i.map(u=>{var l;return _.jsx(m5e,{trophy:u,status:((l=s[u.id])==null?void 0:l[1])??0},u.id)})})]})}function y5e(){return _.jsxs(xS,{allowMultiple:!0,children:[_.jsx(X3e,{}),_.jsx(s5e,{}),_.jsx(n5e,{}),_.jsx(H3e,{}),_.jsx(d5e,{}),_.jsx(v5e,{})]})}var b5e=nZ({displayName:"QuestionOutlineIcon",path:_.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),_.jsx("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),_.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]})});function Xn(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function sr(e){Xn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Mu(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var x5e={};function w5e(){return x5e}function PT(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function mh(e,t){Xn(2,arguments);var r=sr(e),n=sr(t),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function S5e(e,t){Xn(2,arguments);var r=sr(e),n=sr(t),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function A5e(e,t){return Xn(2,arguments),sr(e).getTime()-sr(t).getTime()}var TT={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},C5e="trunc";function _5e(e){return e?TT[e]:TT[C5e]}function k5e(e){Xn(1,arguments);var t=sr(e);return t.setHours(23,59,59,999),t}function E5e(e){Xn(1,arguments);var t=sr(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function D5e(e){Xn(1,arguments);var t=sr(e);return k5e(t).getTime()===E5e(t).getTime()}function P5e(e,t){Xn(2,arguments);var r=sr(e),n=sr(t),i=mh(r,n),a=Math.abs(S5e(r,n)),o;if(a<1)o=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);var s=mh(r,n)===-i;D5e(sr(e))&&a===1&&mh(e,n)===1&&(s=!1),o=i*(a-Number(s))}return o===0?0:o}function T5e(e,t,r){Xn(2,arguments);var n=A5e(e,t)/1e3;return _5e(r==null?void 0:r.roundingMethod)(n)}var O5e={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"}},$5e=function(t,r,n){var i,a=O5e[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};const M5e=$5e;function h1(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var B5e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},I5e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},R5e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},j5e={date:h1({formats:B5e,defaultWidth:"full"}),time:h1({formats:I5e,defaultWidth:"full"}),dateTime:h1({formats:R5e,defaultWidth:"full"})};const F5e=j5e;var N5e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},L5e=function(t,r,n,i){return N5e[t]};const z5e=L5e;function Yl(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}var V5e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},q5e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},U5e={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"]},H5e={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"]},W5e={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"}},G5e={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"}},K5e=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Y5e={ordinalNumber:K5e,era:Yl({values:V5e,defaultWidth:"wide"}),quarter:Yl({values:q5e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Yl({values:U5e,defaultWidth:"wide"}),day:Yl({values:H5e,defaultWidth:"wide"}),dayPeriod:Yl({values:W5e,defaultWidth:"wide",formattingValues:G5e,defaultFormattingWidth:"wide"})};const X5e=Y5e;function Xl(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?J5e(s,function(f){return f.test(o)}):Q5e(s,function(f){return f.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var c=t.slice(o.length);return{value:l,rest:c}}}function Q5e(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function J5e(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var ePe=/^(\d+)(th|st|nd|rd)?/i,tPe=/\d+/i,rPe={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},nPe={any:[/^b/i,/^(a|c)/i]},iPe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},aPe={any:[/1/i,/2/i,/3/i,/4/i]},oPe={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},sPe={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]},uPe={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},lPe={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]},cPe={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},fPe={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}},dPe={ordinalNumber:Z5e({matchPattern:ePe,parsePattern:tPe,valueCallback:function(t){return parseInt(t,10)}}),era:Xl({matchPatterns:rPe,defaultMatchWidth:"wide",parsePatterns:nPe,defaultParseWidth:"any"}),quarter:Xl({matchPatterns:iPe,defaultMatchWidth:"wide",parsePatterns:aPe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Xl({matchPatterns:oPe,defaultMatchWidth:"wide",parsePatterns:sPe,defaultParseWidth:"any"}),day:Xl({matchPatterns:uPe,defaultMatchWidth:"wide",parsePatterns:lPe,defaultParseWidth:"any"}),dayPeriod:Xl({matchPatterns:cPe,defaultMatchWidth:"any",parsePatterns:fPe,defaultParseWidth:"any"})};const pPe=dPe;var hPe={code:"en-US",formatDistance:M5e,formatLong:F5e,formatRelative:z5e,localize:X5e,match:pPe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const mPe=hPe;function SR(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function gPe(e){return SR({},e)}var OT=1440,vPe=2520,m1=43200,yPe=86400;function bPe(e,t,r){var n,i;Xn(2,arguments);var a=w5e(),o=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:a.locale)!==null&&n!==void 0?n:mPe;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=mh(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var u=SR(gPe(r),{addSuffix:!!(r!=null&&r.addSuffix),comparison:s}),l,c;s>0?(l=sr(t),c=sr(e)):(l=sr(e),c=sr(t));var f=T5e(c,l),d=(PT(c)-PT(l))/1e3,h=Math.round((f-d)/60),g;if(h<2)return r!=null&&r.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,u):f<10?o.formatDistance("lessThanXSeconds",10,u):f<20?o.formatDistance("lessThanXSeconds",20,u):f<40?o.formatDistance("halfAMinute",0,u):f<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):h===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",h,u);if(h<45)return o.formatDistance("xMinutes",h,u);if(h<90)return o.formatDistance("aboutXHours",1,u);if(hs.playerId),t=ke(s=>s.favouritePlayerId),r=t===e,n=r?"star_full":"star",i=r?"Stop remembering this player":`Remember this player${t?` (currently your favourite is #${t})`:""}`,a=nA(),o=C.useCallback(s=>{s.preventDefault(),a(g6(r?null:e))},[a,r,e]);return _.jsx(SS,{size:"xs",onClick:o,"aria-label":i,title:i,icon:_.jsx(_0,{height:"60%",src:`/${n}.png`})})}function APe({current:e,data:t}){return t>=e?null:_.jsx(IS,{p:2,label:`This snapshot was made with an older version of greenbox (v${t}) and some data may be rendered incorrectly.`,children:_.jsx(n0,{height:"60%",src:"/warning.png"})})}function CPe({meta:e,direct:t}){const[r,n]=C.useState(new Date),i=C.useMemo(()=>new Date(e.timestamp),[e.timestamp]),a=C.useMemo(()=>xPe(i,{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"}),[i]);C.useEffect(()=>{const s=setInterval(()=>n(new Date),6e4);return()=>clearInterval(s)},[]);const o=C.useMemo(()=>bPe(i,r,{addSuffix:!0}),[r,i]);return _.jsxs(i0,{fontSize:"large",spacing:"0.25em",wrap:"wrap",children:[_.jsx(Mi,{title:`r${e.revision}`,children:`${t?"Private s":"S"}napshot`})," ",_.jsx(Mi,{children:"by"})," ",_.jsx(Mi,{fontWeight:"bold",title:`Player #${e.id}`,children:e.name})," ",_.jsx(Mi,{children:"from"})," ",_.jsx(Mi,{title:a,children:o}),_.jsx(APe,{current:Jae,data:e.version}),!t&&_.jsx(SPe,{})]})}function _Pe(){const{toggleColorMode:e}=nd(),t=Vh("dark","light"),r=Vh("moon","sun"),n=`Switch to ${t} mode`,i=C.useCallback(a=>{a.preventDefault(),e()},[e]);return _.jsx(SS,{size:"xs",onClick:i,"aria-label":n,title:n,icon:_.jsx(_0,{height:"60%",src:`/${r}.png`})})}const kPe=` +This reloads the general information Greenbox needs to know about the Kingdom of Loathing. +Press it if some new content is not appearing at all. +It will not collect any new information about you specifically - you still need to run the command in KoLmafia! +`;function EPe({meta:e,direct:t,loading:r,error:n,errorMessage:i}){const a=nA(),o=C.useCallback(()=>{a(h6(!0))},[a]);return _.jsxs(Hi,{as:"section",alignItems:"stretch",py:2,children:[_.jsxs(i0,{alignItems:"center",flex:1,maxWidth:"100%",wrap:"wrap",children:[_.jsx(Lo,{as:"h1",children:"Greenbox"}),_.jsx(bn,{children:_.jsx(_Pe,{})}),_.jsx(bn,{flex:1}),_.jsx(bn,{textAlign:"right",children:e?_.jsx(CPe,{direct:t,meta:e}):r?_.jsx(iA,{}):n?_.jsxs(vS,{status:"error",fontSize:"md",children:[_.jsx(gS,{}),i]}):null})]}),_.jsxs(Hi,{children:[_.jsx(Mi,{children:"To get the data from your account, first install the script by running"}),_.jsx(L2,{p:2,borderRadius:5,children:"git checkout loathers/greenbox release"}),_.jsxs(Mi,{children:["in KoLmafia's Graphical CLI. Once that's done, you can update the data at this link whenever you like by running ",_.jsx(L2,{children:"greenbox"}),"."]}),_.jsx(Hi,{direction:"row-reverse",pt:3,children:_.jsx(IS,{p:2,label:kPe,children:_.jsxs(wS,{size:"xs",colorScheme:"red",onClick:o,children:["Force update game data ",_.jsx(b5e,{ml:1})]})})})]})]})}function DPe(){const[e]=mD("d",NS),[t]=mD("u",Kne),r=ke(f=>f.favouritePlayerId),n=nA();C.useEffect(()=>{const f=t||r;f&&n(ph(f))},[t,n,r]),C.useEffect(()=>{e&&n(m6(e))},[e,n]),C.useEffect(()=>{n(h6(!1))},[n]);const i=xZ(),a=C.useRef(),o=ke(f=>f.playerData),s=ke(f=>f.loading),u=ke(f=>f.error),l=ke(f=>f.errorMessage),c="clash-toast";return C.useEffect(()=>{s.wikiClashes&&!i.isActive(c)?a.current=i({description:"Detecting name clashes for wiki links (takes a few seconds)...",duration:null,id:c}):a.current&&(u.wikiClashes?i.update(a.current,{description:"Clash detection errored (probably don't support web workers)",status:"error",duration:2e3}):i.update(a.current,{description:"Clash detection complete",status:"success",duration:2e3}))},[s.wikiClashes]),_.jsxs(W8,{maxWidth:"1000px",width:"100%",children:[_.jsx(EPe,{direct:!!e,meta:o==null?void 0:o.meta,loading:s.playerData,error:u.playerData,errorMessage:l.playerData}),_.jsxs(g9,{isLazy:!0,variant:"enclosed",children:[_.jsxs(v9,{children:[_.jsx(H2,{children:"General"}),_.jsx(H2,{children:"Clan Dungeons"})]}),_.jsxs(y9,{children:[_.jsx(U2,{p:0,children:_.jsx(y5e,{})}),_.jsx(U2,{children:_.jsx(N3e,{})})]})]})]})}function PPe(){return _.jsx(SZ,{theme:w6,children:_.jsx(Rne,{store:v6,children:_.jsx(D9,{persistor:Koe,children:_.jsx(sie,{adapter:yie,children:_.jsx(DPe,{})})})})})}g1.createRoot(document.getElementById("root")).render(_.jsxs(q.StrictMode,{children:[_.jsx(c7,{initialColorMode:w6.config.initialColorMode}),_.jsx(PPe,{})]})); diff --git a/index.html b/index.html index beb9a47..5f027e4 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Greenbox - loathers.net - +