import{r as T,g as Mv,T as Th,c as ss,j as N,G as Tv,s as Eh,a as Ph,e as Hu,_ as te,b as C,d as dt,f as It,C as Ev,i as Pv,h as Nv,k as Av,u as Tn,l as Ra,m as $v,D as Ov,n as as,o as tt,p as At,q as Uf,t as Ws,v as Lv,w as Rv,x as Dv,y as Hf,z as dl,A as Nh,B as bv,E as Le,F as Ri,H as jv,I as Wf,J as Bf,P as W,K as Fv,L as zv}from"./mui-icons-DSJWgROT.js";function Iv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ah={exports:{}},nt={},$h={exports:{}},Oh={};/**
 * @license React
 * scheduler.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.
 */(function(e){function t(A,D){var I=A.length;A.push(D);e:for(;0<I;){var X=I-1>>>1,Q=A[X];if(0<i(Q,D))A[X]=D,A[I]=Q,I=X;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var D=A[0],I=A.pop();if(I!==D){A[0]=I;e:for(var X=0,Q=A.length,Pe=Q>>>1;X<Pe;){var fe=2*(X+1)-1,ge=A[fe],de=fe+1,Re=A[de];if(0>i(ge,I))de<Q&&0>i(Re,ge)?(A[X]=Re,A[de]=I,X=de):(A[X]=ge,A[fe]=I,X=fe);else if(de<Q&&0>i(Re,I))A[X]=Re,A[de]=I,X=de;else break e}}return D}function i(A,D){var I=A.sortIndex-D.sortIndex;return I!==0?I:A.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,d=3,h=!1,v=!1,g=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=A)r(u),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(u)}}function x(A){if(g=!1,y(A),!v)if(n(a)!==null)v=!0,H(_);else{var D=n(u);D!==null&&V(x,D.startTime-A)}}function _(A,D){v=!1,g&&(g=!1,m(M),M=-1),h=!0;var I=d;try{for(y(D),f=n(a);f!==null&&(!(f.expirationTime>D)||A&&!E());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var Q=X(f.expirationTime<=D);D=e.unstable_now(),typeof Q=="function"?f.callback=Q:f===n(a)&&r(a),y(D)}else r(a);f=n(a)}if(f!==null)var Pe=!0;else{var fe=n(u);fe!==null&&V(x,fe.startTime-D),Pe=!1}return Pe}finally{f=null,d=I,h=!1}}var w=!1,S=null,M=-1,$=5,P=-1;function E(){return!(e.unstable_now()-P<$)}function b(){if(S!==null){var A=e.unstable_now();P=A;var D=!0;try{D=S(!0,A)}finally{D?O():(w=!1,S=null)}}else w=!1}var O;if(typeof p=="function")O=function(){p(b)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,U=j.port2;j.port1.onmessage=b,O=function(){U.postMessage(null)}}else O=function(){k(b,0)};function H(A){S=A,w||(w=!0,O())}function V(A,D){M=k(function(){A(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,H(_))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(A){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var I=d;d=D;try{return A()}finally{d=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,D){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var I=d;d=A;try{return D()}finally{d=I}},e.unstable_scheduleCallback=function(A,D,I){var X=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?X+I:X):I=X,A){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=I+Q,A={id:c++,callback:D,priorityLevel:A,startTime:I,expirationTime:Q,sortIndex:-1},I>X?(A.sortIndex=I,t(u,A),n(a)===null&&A===n(u)&&(g?(m(M),M=-1):g=!0,V(x,I-X))):(A.sortIndex=Q,t(a,A),v||h||(v=!0,H(_))),A},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(A){var D=d;return function(){var I=d;d=D;try{return A.apply(this,arguments)}finally{d=I}}}})(Oh);$h.exports=Oh;var Uv=$h.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 Lh=T,Ze=Uv;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Rh=new Set,Di={};function lr(e,t){Rr(e,t),Rr(e+"Capture",t)}function Rr(e,t){for(Di[e]=t,e=0;e<t.length;e++)Rh.add(t[e])}var Qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Da=Object.prototype.hasOwnProperty,Hv=/^[: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]*$/,Vf={},Yf={};function Wv(e){return Da.call(Yf,e)?!0:Da.call(Vf,e)?!1:Hv.test(e)?Yf[e]=!0:(Vf[e]=!0,!1)}function Bv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vv(e,t,n,r){if(t===null||typeof t>"u"||Bv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Fe(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ee[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ee[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ee[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ee[e]=new Fe(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){Ee[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ee[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ee[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ee[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ee[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wu=/[\-:]([a-z])/g;function Bu(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(Wu,Bu);Ee[t]=new Fe(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(Wu,Bu);Ee[t]=new Fe(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(Wu,Bu);Ee[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ee[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ee.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ee[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,t,n,r){var i=Ee.hasOwnProperty(t)?Ee[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vv(t,n,i,r)&&(n=null),r||i===null?Wv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nn=Lh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,To=Symbol.for("react.element"),hr=Symbol.for("react.portal"),mr=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),ba=Symbol.for("react.profiler"),Dh=Symbol.for("react.provider"),bh=Symbol.for("react.context"),Xu=Symbol.for("react.forward_ref"),ja=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Qu=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),jh=Symbol.for("react.offscreen"),Xf=Symbol.iterator;function ri(e){return e===null||typeof e!="object"?null:(e=Xf&&e[Xf]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Object.assign,Bs;function gi(e){if(Bs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bs=t&&t[1]||""}return`
`+Bs+e}var Vs=!1;function Ys(e,t){if(!e||Vs)return"";Vs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),l=i.length-1,s=o.length-1;1<=l&&0<=s&&i[l]!==o[s];)s--;for(;1<=l&&0<=s;l--,s--)if(i[l]!==o[s]){if(l!==1||s!==1)do if(l--,s--,0>s||i[l]!==o[s]){var a=`
`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Vs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gi(e):""}function Yv(e){switch(e.tag){case 5:return gi(e.type);case 16:return gi("Lazy");case 13:return gi("Suspense");case 19:return gi("SuspenseList");case 0:case 2:case 15:return e=Ys(e.type,!1),e;case 11:return e=Ys(e.type.render,!1),e;case 1:return e=Ys(e.type,!0),e;default:return""}}function za(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 mr:return"Fragment";case hr:return"Portal";case ba:return"Profiler";case Yu:return"StrictMode";case ja:return"Suspense";case Fa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bh:return(e.displayName||"Context")+".Consumer";case Dh:return(e._context.displayName||"Context")+".Provider";case Xu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qu:return t=e.displayName||null,t!==null?t:za(e.type)||"Memo";case an:t=e._payload,e=e._init;try{return za(e(t))}catch{}}return null}function Xv(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 za(t);case 8:return t===Yu?"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 En(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qv(e){var t=Fh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eo(e){e._valueTracker||(e._valueTracker=Qv(e))}function zh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pl(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 Ia(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=En(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ih(e,t){t=t.checked,t!=null&&Vu(e,"checked",t,!1)}function Ua(e,t){Ih(e,t);var n=En(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ha(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ha(e,t.type,En(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ha(e,t,n){(t!=="number"||pl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vi=Array.isArray;function Tr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+En(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return ue({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(vi(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:En(n)}}function Uh(e,t){var n=En(t.value),r=En(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function qf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Hh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ba(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Hh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Po,Wh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Po=Po||document.createElement("div"),Po.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Po.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _i={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},Gv=["Webkit","ms","Moz","O"];Object.keys(_i).forEach(function(e){Gv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_i[t]=_i[e]})});function Bh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_i.hasOwnProperty(e)&&_i[e]?(""+t).trim():t+"px"}function Vh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Bh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Kv=ue({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 Va(e,t){if(t){if(Kv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Ya(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 Xa=null;function Gu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,Er=null,Pr=null;function Zf(e){if(e=po(e)){if(typeof Qa!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ps(t),Qa(e.stateNode,e.type,t))}}function Yh(e){Er?Pr?Pr.push(e):Pr=[e]:Er=e}function Xh(){if(Er){var e=Er,t=Pr;if(Pr=Er=null,Zf(e),t)for(e=0;e<t.length;e++)Zf(t[e])}}function Qh(e,t){return e(t)}function Gh(){}var Xs=!1;function Kh(e,t,n){if(Xs)return e(t,n);Xs=!0;try{return Qh(e,t,n)}finally{Xs=!1,(Er!==null||Pr!==null)&&(Gh(),Xh())}}function ji(e,t){var n=e.stateNode;if(n===null)return null;var r=ps(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var Ga=!1;if(Qt)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){Ga=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{Ga=!1}function qv(e,t,n,r,i,o,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ki=!1,hl=null,ml=!1,Ka=null,Zv={onError:function(e){ki=!0,hl=e}};function Jv(e,t,n,r,i,o,l,s,a){ki=!1,hl=null,qv.apply(Zv,arguments)}function ey(e,t,n,r,i,o,l,s,a){if(Jv.apply(this,arguments),ki){if(ki){var u=hl;ki=!1,hl=null}else throw Error(R(198));ml||(ml=!0,Ka=u)}}function sr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function qh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Jf(e){if(sr(e)!==e)throw Error(R(188))}function ty(e){var t=e.alternate;if(!t){if(t=sr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Jf(i),e;if(o===r)return Jf(i),t;o=o.sibling}throw Error(R(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Zh(e){return e=ty(e),e!==null?Jh(e):null}function Jh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jh(e);if(t!==null)return t;e=e.sibling}return null}var em=Ze.unstable_scheduleCallback,ed=Ze.unstable_cancelCallback,ny=Ze.unstable_shouldYield,ry=Ze.unstable_requestPaint,pe=Ze.unstable_now,iy=Ze.unstable_getCurrentPriorityLevel,Ku=Ze.unstable_ImmediatePriority,tm=Ze.unstable_UserBlockingPriority,gl=Ze.unstable_NormalPriority,oy=Ze.unstable_LowPriority,nm=Ze.unstable_IdlePriority,us=null,Dt=null;function ly(e){if(Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(us,e,void 0,(e.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:uy,sy=Math.log,ay=Math.LN2;function uy(e){return e>>>=0,e===0?32:31-(sy(e)/ay|0)|0}var No=64,Ao=4194304;function yi(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 vl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=yi(s):(o&=l,o!==0&&(r=yi(o)))}else l=n&~i,l!==0?r=yi(l):o!==0&&(r=yi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Tt(t),i=1<<n,r|=e[n],t&=~i;return r}function cy(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fy(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Tt(o),s=1<<l,a=i[l];a===-1?(!(s&n)||s&r)&&(i[l]=cy(s,t)):a<=t&&(e.expiredLanes|=s),o&=~s}}function qa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rm(){var e=No;return No<<=1,!(No&4194240)&&(No=64),e}function Qs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function co(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function dy(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Tt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function qu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ee=0;function im(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var om,Zu,lm,sm,am,Za=!1,$o=[],gn=null,vn=null,yn=null,Fi=new Map,zi=new Map,cn=[],py="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function td(e,t){switch(e){case"focusin":case"focusout":gn=null;break;case"dragenter":case"dragleave":vn=null;break;case"mouseover":case"mouseout":yn=null;break;case"pointerover":case"pointerout":Fi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zi.delete(t.pointerId)}}function oi(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=po(t),t!==null&&Zu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hy(e,t,n,r,i){switch(t){case"focusin":return gn=oi(gn,e,t,n,r,i),!0;case"dragenter":return vn=oi(vn,e,t,n,r,i),!0;case"mouseover":return yn=oi(yn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Fi.set(o,oi(Fi.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,zi.set(o,oi(zi.get(o)||null,e,t,n,r,i)),!0}return!1}function um(e){var t=Hn(e.target);if(t!==null){var n=sr(t);if(n!==null){if(t=n.tag,t===13){if(t=qh(n),t!==null){e.blockedOn=t,am(e.priority,function(){lm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ja(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xa=r,n.target.dispatchEvent(r),Xa=null}else return t=po(n),t!==null&&Zu(t),e.blockedOn=n,!1;t.shift()}return!0}function nd(e,t,n){Zo(e)&&n.delete(t)}function my(){Za=!1,gn!==null&&Zo(gn)&&(gn=null),vn!==null&&Zo(vn)&&(vn=null),yn!==null&&Zo(yn)&&(yn=null),Fi.forEach(nd),zi.forEach(nd)}function li(e,t){e.blockedOn===t&&(e.blockedOn=null,Za||(Za=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,my)))}function Ii(e){function t(i){return li(i,e)}if(0<$o.length){li($o[0],e);for(var n=1;n<$o.length;n++){var r=$o[n];r.blockedOn===e&&(r.blockedOn=null)}}for(gn!==null&&li(gn,e),vn!==null&&li(vn,e),yn!==null&&li(yn,e),Fi.forEach(t),zi.forEach(t),n=0;n<cn.length;n++)r=cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<cn.length&&(n=cn[0],n.blockedOn===null);)um(n),n.blockedOn===null&&cn.shift()}var Nr=nn.ReactCurrentBatchConfig,yl=!0;function gy(e,t,n,r){var i=ee,o=Nr.transition;Nr.transition=null;try{ee=1,Ju(e,t,n,r)}finally{ee=i,Nr.transition=o}}function vy(e,t,n,r){var i=ee,o=Nr.transition;Nr.transition=null;try{ee=4,Ju(e,t,n,r)}finally{ee=i,Nr.transition=o}}function Ju(e,t,n,r){if(yl){var i=Ja(e,t,n,r);if(i===null)ia(e,t,r,xl,n),td(e,r);else if(hy(i,e,t,n,r))r.stopPropagation();else if(td(e,r),t&4&&-1<py.indexOf(e)){for(;i!==null;){var o=po(i);if(o!==null&&om(o),o=Ja(e,t,n,r),o===null&&ia(e,t,r,xl,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ia(e,t,r,null,n)}}var xl=null;function Ja(e,t,n,r){if(xl=null,e=Gu(r),e=Hn(e),e!==null)if(t=sr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=qh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xl=e,null}function cm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(iy()){case Ku:return 1;case tm:return 4;case gl:case oy:return 16;case nm:return 536870912;default:return 16}default:return 16}}var dn=null,ec=null,Jo=null;function fm(){if(Jo)return Jo;var e,t=ec,n=t.length,r,i="value"in dn?dn.value:dn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return Jo=i.slice(e,1<r?1-r:void 0)}function el(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Oo(){return!0}function rd(){return!1}function rt(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Oo:rd,this.isPropagationStopped=rd,this}return ue(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Oo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Oo)},persist:function(){},isPersistent:Oo}),t}var ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=rt(ei),fo=ue({},ei,{view:0,detail:0}),yy=rt(fo),Gs,Ks,si,cs=ue({},fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==si&&(si&&e.type==="mousemove"?(Gs=e.screenX-si.screenX,Ks=e.screenY-si.screenY):Ks=Gs=0,si=e),Gs)},movementY:function(e){return"movementY"in e?e.movementY:Ks}}),id=rt(cs),xy=ue({},cs,{dataTransfer:0}),wy=rt(xy),_y=ue({},fo,{relatedTarget:0}),qs=rt(_y),ky=ue({},ei,{animationName:0,elapsedTime:0,pseudoElement:0}),Sy=rt(ky),Cy=ue({},ei,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),My=rt(Cy),Ty=ue({},ei,{data:0}),od=rt(Ty),Ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Py={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ay(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ny[e])?!!t[e]:!1}function nc(){return Ay}var $y=ue({},fo,{key:function(e){if(e.key){var t=Ey[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=el(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Py[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nc,charCode:function(e){return e.type==="keypress"?el(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?el(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Oy=rt($y),Ly=ue({},cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ld=rt(Ly),Ry=ue({},fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nc}),Dy=rt(Ry),by=ue({},ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),jy=rt(by),Fy=ue({},cs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zy=rt(Fy),Iy=[9,13,27,32],rc=Qt&&"CompositionEvent"in window,Si=null;Qt&&"documentMode"in document&&(Si=document.documentMode);var Uy=Qt&&"TextEvent"in window&&!Si,dm=Qt&&(!rc||Si&&8<Si&&11>=Si),sd=" ",ad=!1;function pm(e,t){switch(e){case"keyup":return Iy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gr=!1;function Hy(e,t){switch(e){case"compositionend":return hm(t);case"keypress":return t.which!==32?null:(ad=!0,sd);case"textInput":return e=t.data,e===sd&&ad?null:e;default:return null}}function Wy(e,t){if(gr)return e==="compositionend"||!rc&&pm(e,t)?(e=fm(),Jo=ec=dn=null,gr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dm&&t.locale!=="ko"?null:t.data;default:return null}}var By={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ud(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!By[e.type]:t==="textarea"}function mm(e,t,n,r){Yh(r),t=wl(t,"onChange"),0<t.length&&(n=new tc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ci=null,Ui=null;function Vy(e){Tm(e,0)}function fs(e){var t=xr(e);if(zh(t))return e}function Yy(e,t){if(e==="change")return t}var gm=!1;if(Qt){var Zs;if(Qt){var Js="oninput"in document;if(!Js){var cd=document.createElement("div");cd.setAttribute("oninput","return;"),Js=typeof cd.oninput=="function"}Zs=Js}else Zs=!1;gm=Zs&&(!document.documentMode||9<document.documentMode)}function fd(){Ci&&(Ci.detachEvent("onpropertychange",vm),Ui=Ci=null)}function vm(e){if(e.propertyName==="value"&&fs(Ui)){var t=[];mm(t,Ui,e,Gu(e)),Kh(Vy,t)}}function Xy(e,t,n){e==="focusin"?(fd(),Ci=t,Ui=n,Ci.attachEvent("onpropertychange",vm)):e==="focusout"&&fd()}function Qy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fs(Ui)}function Gy(e,t){if(e==="click")return fs(t)}function Ky(e,t){if(e==="input"||e==="change")return fs(t)}function qy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:qy;function Hi(e,t){if(Pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Da.call(t,i)||!Pt(e[i],t[i]))return!1}return!0}function dd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pd(e,t){var n=dd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dd(n)}}function ym(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ym(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xm(){for(var e=window,t=pl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pl(e.document)}return t}function ic(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 Zy(e){var t=xm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ym(n.ownerDocument.documentElement,n)){if(r!==null&&ic(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=pd(n,o);var l=pd(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Jy=Qt&&"documentMode"in document&&11>=document.documentMode,vr=null,eu=null,Mi=null,tu=!1;function hd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tu||vr==null||vr!==pl(r)||(r=vr,"selectionStart"in r&&ic(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mi&&Hi(Mi,r)||(Mi=r,r=wl(eu,"onSelect"),0<r.length&&(t=new tc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Lo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yr={animationend:Lo("Animation","AnimationEnd"),animationiteration:Lo("Animation","AnimationIteration"),animationstart:Lo("Animation","AnimationStart"),transitionend:Lo("Transition","TransitionEnd")},ea={},wm={};Qt&&(wm=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);function ds(e){if(ea[e])return ea[e];if(!yr[e])return e;var t=yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wm)return ea[e]=t[n];return e}var _m=ds("animationend"),km=ds("animationiteration"),Sm=ds("animationstart"),Cm=ds("transitionend"),Mm=new Map,md="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function An(e,t){Mm.set(e,t),lr(t,[e])}for(var ta=0;ta<md.length;ta++){var na=md[ta],e1=na.toLowerCase(),t1=na[0].toUpperCase()+na.slice(1);An(e1,"on"+t1)}An(_m,"onAnimationEnd");An(km,"onAnimationIteration");An(Sm,"onAnimationStart");An("dblclick","onDoubleClick");An("focusin","onFocus");An("focusout","onBlur");An(Cm,"onTransitionEnd");Rr("onMouseEnter",["mouseout","mouseover"]);Rr("onMouseLeave",["mouseout","mouseover"]);Rr("onPointerEnter",["pointerout","pointerover"]);Rr("onPointerLeave",["pointerout","pointerover"]);lr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));lr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));lr("onBeforeInput",["compositionend","keypress","textInput","paste"]);lr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));lr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));lr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),n1=new Set("cancel close invalid load scroll toggle".split(" ").concat(xi));function gd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ey(r,t,void 0,e),e.currentTarget=null}function Tm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==o&&i.isPropagationStopped())break e;gd(i,s,u),o=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==o&&i.isPropagationStopped())break e;gd(i,s,u),o=a}}}if(ml)throw e=Ka,ml=!1,Ka=null,e}function ie(e,t){var n=t[lu];n===void 0&&(n=t[lu]=new Set);var r=e+"__bubble";n.has(r)||(Em(t,e,2,!1),n.add(r))}function ra(e,t,n){var r=0;t&&(r|=4),Em(n,e,r,t)}var Ro="_reactListening"+Math.random().toString(36).slice(2);function Wi(e){if(!e[Ro]){e[Ro]=!0,Rh.forEach(function(n){n!=="selectionchange"&&(n1.has(n)||ra(n,!1,e),ra(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ro]||(t[Ro]=!0,ra("selectionchange",!1,t))}}function Em(e,t,n,r){switch(cm(t)){case 1:var i=gy;break;case 4:i=vy;break;default:i=Ju}n=i.bind(null,t,n,e),i=void 0,!Ga||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ia(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;l=l.return}for(;s!==null;){if(l=Hn(s),l===null)return;if(a=l.tag,a===5||a===6){r=o=l;continue e}s=s.parentNode}}r=r.return}Kh(function(){var u=o,c=Gu(n),f=[];e:{var d=Mm.get(e);if(d!==void 0){var h=tc,v=e;switch(e){case"keypress":if(el(n)===0)break e;case"keydown":case"keyup":h=Oy;break;case"focusin":v="focus",h=qs;break;case"focusout":v="blur",h=qs;break;case"beforeblur":case"afterblur":h=qs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=wy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Dy;break;case _m:case km:case Sm:h=Sy;break;case Cm:h=jy;break;case"scroll":h=yy;break;case"wheel":h=zy;break;case"copy":case"cut":case"paste":h=My;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ld}var g=(t&4)!==0,k=!g&&e==="scroll",m=g?d!==null?d+"Capture":null:d;g=[];for(var p=u,y;p!==null;){y=p;var x=y.stateNode;if(y.tag===5&&x!==null&&(y=x,m!==null&&(x=ji(p,m),x!=null&&g.push(Bi(p,x,y)))),k)break;p=p.return}0<g.length&&(d=new h(d,v,null,n,c),f.push({event:d,listeners:g}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Xa&&(v=n.relatedTarget||n.fromElement)&&(Hn(v)||v[Gt]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=u,v=v?Hn(v):null,v!==null&&(k=sr(v),v!==k||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(g=id,x="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=ld,x="onPointerLeave",m="onPointerEnter",p="pointer"),k=h==null?d:xr(h),y=v==null?d:xr(v),d=new g(x,p+"leave",h,n,c),d.target=k,d.relatedTarget=y,x=null,Hn(c)===u&&(g=new g(m,p+"enter",v,n,c),g.target=y,g.relatedTarget=k,x=g),k=x,h&&v)t:{for(g=h,m=v,p=0,y=g;y;y=fr(y))p++;for(y=0,x=m;x;x=fr(x))y++;for(;0<p-y;)g=fr(g),p--;for(;0<y-p;)m=fr(m),y--;for(;p--;){if(g===m||m!==null&&g===m.alternate)break t;g=fr(g),m=fr(m)}g=null}else g=null;h!==null&&vd(f,d,h,g,!1),v!==null&&k!==null&&vd(f,k,v,g,!0)}}e:{if(d=u?xr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var _=Yy;else if(ud(d))if(gm)_=Ky;else{_=Qy;var w=Xy}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=Gy);if(_&&(_=_(e,u))){mm(f,_,n,c);break e}w&&w(e,d,u),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&Ha(d,"number",d.value)}switch(w=u?xr(u):window,e){case"focusin":(ud(w)||w.contentEditable==="true")&&(vr=w,eu=u,Mi=null);break;case"focusout":Mi=eu=vr=null;break;case"mousedown":tu=!0;break;case"contextmenu":case"mouseup":case"dragend":tu=!1,hd(f,n,c);break;case"selectionchange":if(Jy)break;case"keydown":case"keyup":hd(f,n,c)}var S;if(rc)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else gr?pm(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(dm&&n.locale!=="ko"&&(gr||M!=="onCompositionStart"?M==="onCompositionEnd"&&gr&&(S=fm()):(dn=c,ec="value"in dn?dn.value:dn.textContent,gr=!0)),w=wl(u,M),0<w.length&&(M=new od(M,e,null,n,c),f.push({event:M,listeners:w}),S?M.data=S:(S=hm(n),S!==null&&(M.data=S)))),(S=Uy?Hy(e,n):Wy(e,n))&&(u=wl(u,"onBeforeInput"),0<u.length&&(c=new od("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=S))}Tm(f,t)})}function Bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ji(e,n),o!=null&&r.unshift(Bi(e,o,i)),o=ji(e,t),o!=null&&r.push(Bi(e,o,i))),e=e.return}return r}function fr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vd(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=ji(n,o),a!=null&&l.unshift(Bi(n,a,s))):i||(a=ji(n,o),a!=null&&l.push(Bi(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var r1=/\r\n?/g,i1=/\u0000|\uFFFD/g;function yd(e){return(typeof e=="string"?e:""+e).replace(r1,`
`).replace(i1,"")}function Do(e,t,n){if(t=yd(t),yd(e)!==t&&n)throw Error(R(425))}function _l(){}var nu=null,ru=null;function iu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ou=typeof setTimeout=="function"?setTimeout:void 0,o1=typeof clearTimeout=="function"?clearTimeout:void 0,xd=typeof Promise=="function"?Promise:void 0,l1=typeof queueMicrotask=="function"?queueMicrotask:typeof xd<"u"?function(e){return xd.resolve(null).then(e).catch(s1)}:ou;function s1(e){setTimeout(function(){throw e})}function oa(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ii(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ii(t)}function xn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function wd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ti=Math.random().toString(36).slice(2),Rt="__reactFiber$"+ti,Vi="__reactProps$"+ti,Gt="__reactContainer$"+ti,lu="__reactEvents$"+ti,a1="__reactListeners$"+ti,u1="__reactHandles$"+ti;function Hn(e){var t=e[Rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gt]||n[Rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wd(e);e!==null;){if(n=e[Rt])return n;e=wd(e)}return t}e=n,n=e.parentNode}return null}function po(e){return e=e[Rt]||e[Gt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ps(e){return e[Vi]||null}var su=[],wr=-1;function $n(e){return{current:e}}function oe(e){0>wr||(e.current=su[wr],su[wr]=null,wr--)}function re(e,t){wr++,su[wr]=e.current,e.current=t}var Pn={},Oe=$n(Pn),We=$n(!1),Jn=Pn;function Dr(e,t){var n=e.type.contextTypes;if(!n)return Pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Be(e){return e=e.childContextTypes,e!=null}function kl(){oe(We),oe(Oe)}function _d(e,t,n){if(Oe.current!==Pn)throw Error(R(168));re(Oe,t),re(We,n)}function Pm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,Xv(e)||"Unknown",i));return ue({},n,r)}function Sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pn,Jn=Oe.current,re(Oe,e),re(We,We.current),!0}function kd(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Pm(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,oe(We),oe(Oe),re(Oe,e)):oe(We),re(We,n)}var Ht=null,hs=!1,la=!1;function Nm(e){Ht===null?Ht=[e]:Ht.push(e)}function c1(e){hs=!0,Nm(e)}function On(){if(!la&&Ht!==null){la=!0;var e=0,t=ee;try{var n=Ht;for(ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ht=null,hs=!1}catch(i){throw Ht!==null&&(Ht=Ht.slice(e+1)),em(Ku,On),i}finally{ee=t,la=!1}}return null}var _r=[],kr=0,Cl=null,Ml=0,st=[],at=0,er=null,Wt=1,Bt="";function zn(e,t){_r[kr++]=Ml,_r[kr++]=Cl,Cl=e,Ml=t}function Am(e,t,n){st[at++]=Wt,st[at++]=Bt,st[at++]=er,er=e;var r=Wt;e=Bt;var i=32-Tt(r)-1;r&=~(1<<i),n+=1;var o=32-Tt(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Wt=1<<32-Tt(t)+i|n<<i|r,Bt=o+e}else Wt=1<<o|n<<i|r,Bt=e}function oc(e){e.return!==null&&(zn(e,1),Am(e,1,0))}function lc(e){for(;e===Cl;)Cl=_r[--kr],_r[kr]=null,Ml=_r[--kr],_r[kr]=null;for(;e===er;)er=st[--at],st[at]=null,Bt=st[--at],st[at]=null,Wt=st[--at],st[at]=null}var qe=null,Ke=null,le=!1,St=null;function $m(e,t){var n=ct(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,qe=e,Ke=xn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qe=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=er!==null?{id:Wt,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,qe=e,Ke=null,!0):!1;default:return!1}}function au(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uu(e){if(le){var t=Ke;if(t){var n=t;if(!Sd(e,t)){if(au(e))throw Error(R(418));t=xn(n.nextSibling);var r=qe;t&&Sd(e,t)?$m(r,n):(e.flags=e.flags&-4097|2,le=!1,qe=e)}}else{if(au(e))throw Error(R(418));e.flags=e.flags&-4097|2,le=!1,qe=e}}}function Cd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qe=e}function bo(e){if(e!==qe)return!1;if(!le)return Cd(e),le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!iu(e.type,e.memoizedProps)),t&&(t=Ke)){if(au(e))throw Om(),Error(R(418));for(;t;)$m(e,t),t=xn(t.nextSibling)}if(Cd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ke=xn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=qe?xn(e.stateNode.nextSibling):null;return!0}function Om(){for(var e=Ke;e;)e=xn(e.nextSibling)}function br(){Ke=qe=null,le=!1}function sc(e){St===null?St=[e]:St.push(e)}var f1=nn.ReactCurrentBatchConfig;function _t(e,t){if(e&&e.defaultProps){t=ue({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Tl=$n(null),El=null,Sr=null,ac=null;function uc(){ac=Sr=El=null}function cc(e){var t=Tl.current;oe(Tl),e._currentValue=t}function cu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ar(e,t){El=e,ac=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(ac!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(El===null)throw Error(R(308));Sr=e,El.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var Wn=null;function fc(e){Wn===null?Wn=[e]:Wn.push(e)}function Lm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,fc(t)):(n.next=i.next,i.next=n),t.interleaved=n,Kt(e,r)}function Kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var un=!1;function dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Kt(e,n)}return i=r.interleaved,i===null?(t.next=t,fc(r)):(t.next=i.next,i.next=t),r.interleaved=t,Kt(e,n)}function tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qu(e,n)}}function Md(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Pl(e,t,n,r){var i=e.updateQueue;un=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?o=u:l.next=u,l=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;l=0,c=u=a=null,s=o;do{var d=s.lane,h=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,g=s;switch(d=t,h=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){f=v.call(h,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,d=typeof v=="function"?v.call(h,f,d):v,d==null)break e;f=ue({},f,d);break e;case 2:un=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,a=f):c=c.next=h,l|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);nr|=l,e.lanes=l,e.memoizedState=f}}function Td(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(R(191,i));i.call(r)}}}var Dm=new Lh.Component().refs;function fu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ue({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ms={isMounted:function(e){return(e=e._reactInternals)?sr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=je(),i=kn(e),o=Xt(r,i);o.payload=t,n!=null&&(o.callback=n),t=wn(e,o,i),t!==null&&(Et(t,e,i,r),tl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=je(),i=kn(e),o=Xt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=wn(e,o,i),t!==null&&(Et(t,e,i,r),tl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=je(),r=kn(e),i=Xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=wn(e,i,r),t!==null&&(Et(t,e,r,n),tl(t,e,r))}};function Ed(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Hi(n,r)||!Hi(i,o):!0}function bm(e,t,n){var r=!1,i=Pn,o=t.contextType;return typeof o=="object"&&o!==null?o=mt(o):(i=Be(t)?Jn:Oe.current,r=t.contextTypes,o=(r=r!=null)?Dr(e,i):Pn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ms,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Pd(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ms.enqueueReplaceState(t,t.state,null)}function du(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Dm,dc(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=mt(o):(o=Be(t)?Jn:Oe.current,i.context=Dr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(fu(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ms.enqueueReplaceState(i,i.state,null),Pl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ai(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var s=i.refs;s===Dm&&(s=i.refs={}),l===null?delete s[o]:s[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function jo(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nd(e){var t=e._init;return t(e._payload)}function jm(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=Sn(m,p),m.index=0,m.sibling=null,m}function o(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,p,y,x){return p===null||p.tag!==6?(p=pa(y,m.mode,x),p.return=m,p):(p=i(p,y),p.return=m,p)}function a(m,p,y,x){var _=y.type;return _===mr?c(m,p,y.props.children,x,y.key):p!==null&&(p.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===an&&Nd(_)===p.type)?(x=i(p,y.props),x.ref=ai(m,p,y),x.return=m,x):(x=sl(y.type,y.key,y.props,null,m.mode,x),x.ref=ai(m,p,y),x.return=m,x)}function u(m,p,y,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=ha(y,m.mode,x),p.return=m,p):(p=i(p,y.children||[]),p.return=m,p)}function c(m,p,y,x,_){return p===null||p.tag!==7?(p=Gn(y,m.mode,x,_),p.return=m,p):(p=i(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=pa(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case To:return y=sl(p.type,p.key,p.props,null,m.mode,y),y.ref=ai(m,null,p),y.return=m,y;case hr:return p=ha(p,m.mode,y),p.return=m,p;case an:var x=p._init;return f(m,x(p._payload),y)}if(vi(p)||ri(p))return p=Gn(p,m.mode,y,null),p.return=m,p;jo(m,p)}return null}function d(m,p,y,x){var _=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:s(m,p,""+y,x);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case To:return y.key===_?a(m,p,y,x):null;case hr:return y.key===_?u(m,p,y,x):null;case an:return _=y._init,d(m,p,_(y._payload),x)}if(vi(y)||ri(y))return _!==null?null:c(m,p,y,x,null);jo(m,y)}return null}function h(m,p,y,x,_){if(typeof x=="string"&&x!==""||typeof x=="number")return m=m.get(y)||null,s(p,m,""+x,_);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case To:return m=m.get(x.key===null?y:x.key)||null,a(p,m,x,_);case hr:return m=m.get(x.key===null?y:x.key)||null,u(p,m,x,_);case an:var w=x._init;return h(m,p,y,w(x._payload),_)}if(vi(x)||ri(x))return m=m.get(y)||null,c(p,m,x,_,null);jo(p,x)}return null}function v(m,p,y,x){for(var _=null,w=null,S=p,M=p=0,$=null;S!==null&&M<y.length;M++){S.index>M?($=S,S=null):$=S.sibling;var P=d(m,S,y[M],x);if(P===null){S===null&&(S=$);break}e&&S&&P.alternate===null&&t(m,S),p=o(P,p,M),w===null?_=P:w.sibling=P,w=P,S=$}if(M===y.length)return n(m,S),le&&zn(m,M),_;if(S===null){for(;M<y.length;M++)S=f(m,y[M],x),S!==null&&(p=o(S,p,M),w===null?_=S:w.sibling=S,w=S);return le&&zn(m,M),_}for(S=r(m,S);M<y.length;M++)$=h(S,m,M,y[M],x),$!==null&&(e&&$.alternate!==null&&S.delete($.key===null?M:$.key),p=o($,p,M),w===null?_=$:w.sibling=$,w=$);return e&&S.forEach(function(E){return t(m,E)}),le&&zn(m,M),_}function g(m,p,y,x){var _=ri(y);if(typeof _!="function")throw Error(R(150));if(y=_.call(y),y==null)throw Error(R(151));for(var w=_=null,S=p,M=p=0,$=null,P=y.next();S!==null&&!P.done;M++,P=y.next()){S.index>M?($=S,S=null):$=S.sibling;var E=d(m,S,P.value,x);if(E===null){S===null&&(S=$);break}e&&S&&E.alternate===null&&t(m,S),p=o(E,p,M),w===null?_=E:w.sibling=E,w=E,S=$}if(P.done)return n(m,S),le&&zn(m,M),_;if(S===null){for(;!P.done;M++,P=y.next())P=f(m,P.value,x),P!==null&&(p=o(P,p,M),w===null?_=P:w.sibling=P,w=P);return le&&zn(m,M),_}for(S=r(m,S);!P.done;M++,P=y.next())P=h(S,m,M,P.value,x),P!==null&&(e&&P.alternate!==null&&S.delete(P.key===null?M:P.key),p=o(P,p,M),w===null?_=P:w.sibling=P,w=P);return e&&S.forEach(function(b){return t(m,b)}),le&&zn(m,M),_}function k(m,p,y,x){if(typeof y=="object"&&y!==null&&y.type===mr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case To:e:{for(var _=y.key,w=p;w!==null;){if(w.key===_){if(_=y.type,_===mr){if(w.tag===7){n(m,w.sibling),p=i(w,y.props.children),p.return=m,m=p;break e}}else if(w.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===an&&Nd(_)===w.type){n(m,w.sibling),p=i(w,y.props),p.ref=ai(m,w,y),p.return=m,m=p;break e}n(m,w);break}else t(m,w);w=w.sibling}y.type===mr?(p=Gn(y.props.children,m.mode,x,y.key),p.return=m,m=p):(x=sl(y.type,y.key,y.props,null,m.mode,x),x.ref=ai(m,p,y),x.return=m,m=x)}return l(m);case hr:e:{for(w=y.key;p!==null;){if(p.key===w)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=i(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=ha(y,m.mode,x),p.return=m,m=p}return l(m);case an:return w=y._init,k(m,p,w(y._payload),x)}if(vi(y))return v(m,p,y,x);if(ri(y))return g(m,p,y,x);jo(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,y),p.return=m,m=p):(n(m,p),p=pa(y,m.mode,x),p.return=m,m=p),l(m)):n(m,p)}return k}var jr=jm(!0),Fm=jm(!1),ho={},bt=$n(ho),Yi=$n(ho),Xi=$n(ho);function Bn(e){if(e===ho)throw Error(R(174));return e}function pc(e,t){switch(re(Xi,t),re(Yi,e),re(bt,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ba(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ba(t,e)}oe(bt),re(bt,t)}function Fr(){oe(bt),oe(Yi),oe(Xi)}function zm(e){Bn(Xi.current);var t=Bn(bt.current),n=Ba(t,e.type);t!==n&&(re(Yi,e),re(bt,n))}function hc(e){Yi.current===e&&(oe(bt),oe(Yi))}var se=$n(0);function Nl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 sa=[];function mc(){for(var e=0;e<sa.length;e++)sa[e]._workInProgressVersionPrimary=null;sa.length=0}var nl=nn.ReactCurrentDispatcher,aa=nn.ReactCurrentBatchConfig,tr=0,ae=null,ve=null,_e=null,Al=!1,Ti=!1,Qi=0,d1=0;function Ne(){throw Error(R(321))}function gc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pt(e[n],t[n]))return!1;return!0}function vc(e,t,n,r,i,o){if(tr=o,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nl.current=e===null||e.memoizedState===null?g1:v1,e=n(r,i),Ti){o=0;do{if(Ti=!1,Qi=0,25<=o)throw Error(R(301));o+=1,_e=ve=null,t.updateQueue=null,nl.current=y1,e=n(r,i)}while(Ti)}if(nl.current=$l,t=ve!==null&&ve.next!==null,tr=0,_e=ve=ae=null,Al=!1,t)throw Error(R(300));return e}function yc(){var e=Qi!==0;return Qi=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?ae.memoizedState=_e=e:_e=_e.next=e,_e}function gt(){if(ve===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ve.next;var t=_e===null?ae.memoizedState:_e.next;if(t!==null)_e=t,ve=e;else{if(e===null)throw Error(R(310));ve=e,e={memoizedState:ve.memoizedState,baseState:ve.baseState,baseQueue:ve.baseQueue,queue:ve.queue,next:null},_e===null?ae.memoizedState=_e=e:_e=_e.next=e}return _e}function Gi(e,t){return typeof t=="function"?t(e):t}function ua(e){var t=gt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=ve,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=l=null,a=null,u=o;do{var c=u.lane;if((tr&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=f,l=r):a=a.next=f,ae.lanes|=c,nr|=c}u=u.next}while(u!==null&&u!==o);a===null?l=r:a.next=s,Pt(r,t.memoizedState)||(Ue=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ae.lanes|=o,nr|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ca(e){var t=gt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);Pt(o,t.memoizedState)||(Ue=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Im(){}function Um(e,t){var n=ae,r=gt(),i=t(),o=!Pt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ue=!0),r=r.queue,xc(Bm.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||_e!==null&&_e.memoizedState.tag&1){if(n.flags|=2048,Ki(9,Wm.bind(null,n,r,i,t),void 0,null),ke===null)throw Error(R(349));tr&30||Hm(n,t,i)}return i}function Hm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wm(e,t,n,r){t.value=n,t.getSnapshot=r,Vm(t)&&Ym(e)}function Bm(e,t,n){return n(function(){Vm(t)&&Ym(e)})}function Vm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pt(e,n)}catch{return!0}}function Ym(e){var t=Kt(e,1);t!==null&&Et(t,e,1,-1)}function Ad(e){var t=Lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e},t.queue=e,e=e.dispatch=m1.bind(null,ae,e),[t.memoizedState,e]}function Ki(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Xm(){return gt().memoizedState}function rl(e,t,n,r){var i=Lt();ae.flags|=e,i.memoizedState=Ki(1|t,n,void 0,r===void 0?null:r)}function gs(e,t,n,r){var i=gt();r=r===void 0?null:r;var o=void 0;if(ve!==null){var l=ve.memoizedState;if(o=l.destroy,r!==null&&gc(r,l.deps)){i.memoizedState=Ki(t,n,o,r);return}}ae.flags|=e,i.memoizedState=Ki(1|t,n,o,r)}function $d(e,t){return rl(8390656,8,e,t)}function xc(e,t){return gs(2048,8,e,t)}function Qm(e,t){return gs(4,2,e,t)}function Gm(e,t){return gs(4,4,e,t)}function Km(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qm(e,t,n){return n=n!=null?n.concat([e]):null,gs(4,4,Km.bind(null,t,e),n)}function wc(){}function Zm(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Jm(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function e0(e,t,n){return tr&21?(Pt(n,t)||(n=rm(),ae.lanes|=n,nr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ue=!0),e.memoizedState=n)}function p1(e,t){var n=ee;ee=n!==0&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{ee=n,aa.transition=r}}function t0(){return gt().memoizedState}function h1(e,t,n){var r=kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},n0(e))r0(t,n);else if(n=Lm(e,t,n,r),n!==null){var i=je();Et(n,e,r,i),i0(n,t,r)}}function m1(e,t,n){var r=kn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(n0(e))r0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,Pt(s,l)){var a=t.interleaved;a===null?(i.next=i,fc(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Lm(e,t,i,r),n!==null&&(i=je(),Et(n,e,r,i),i0(n,t,r))}}function n0(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function r0(e,t){Ti=Al=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qu(e,n)}}var $l={readContext:mt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},g1={readContext:mt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:$d,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rl(4194308,4,Km.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return rl(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=h1.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Ad,useDebugValue:wc,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Ad(!1),t=e[0];return e=p1.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,i=Lt();if(le){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ke===null)throw Error(R(349));tr&30||Hm(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,$d(Bm.bind(null,r,o,e),[e]),r.flags|=2048,Ki(9,Wm.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Lt(),t=ke.identifierPrefix;if(le){var n=Bt,r=Wt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=d1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},v1={readContext:mt,useCallback:Zm,useContext:mt,useEffect:xc,useImperativeHandle:qm,useInsertionEffect:Qm,useLayoutEffect:Gm,useMemo:Jm,useReducer:ua,useRef:Xm,useState:function(){return ua(Gi)},useDebugValue:wc,useDeferredValue:function(e){var t=gt();return e0(t,ve.memoizedState,e)},useTransition:function(){var e=ua(Gi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Im,useSyncExternalStore:Um,useId:t0,unstable_isNewReconciler:!1},y1={readContext:mt,useCallback:Zm,useContext:mt,useEffect:xc,useImperativeHandle:qm,useInsertionEffect:Qm,useLayoutEffect:Gm,useMemo:Jm,useReducer:ca,useRef:Xm,useState:function(){return ca(Gi)},useDebugValue:wc,useDeferredValue:function(e){var t=gt();return ve===null?t.memoizedState=e:e0(t,ve.memoizedState,e)},useTransition:function(){var e=ca(Gi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:Im,useSyncExternalStore:Um,useId:t0,unstable_isNewReconciler:!1};function zr(e,t){try{var n="",r=t;do n+=Yv(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function fa(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var x1=typeof WeakMap=="function"?WeakMap:Map;function o0(e,t,n){n=Xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ll||(Ll=!0,Su=r),pu(e,t)},n}function l0(e,t,n){n=Xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){pu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){pu(e,t),typeof r!="function"&&(_n===null?_n=new Set([this]):_n.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Od(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new x1;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=L1.bind(null,e,t,n),t.then(e,e))}function Ld(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Rd(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xt(-1,1),t.tag=2,wn(n,t,1))),n.lanes|=1),e)}var w1=nn.ReactCurrentOwner,Ue=!1;function De(e,t,n,r){t.child=e===null?Fm(t,null,n,r):jr(t,e.child,n,r)}function Dd(e,t,n,r,i){n=n.render;var o=t.ref;return Ar(t,i),r=vc(e,t,n,r,o,i),n=yc(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qt(e,t,i)):(le&&n&&oc(t),t.flags|=1,De(e,t,r,i),t.child)}function bd(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Pc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,s0(e,t,o,r,i)):(e=sl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Hi,n(l,r)&&e.ref===t.ref)return qt(e,t,i)}return t.flags|=1,e=Sn(o,r),e.ref=t.ref,e.return=t,t.child=e}function s0(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Hi(o,r)&&e.ref===t.ref)if(Ue=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ue=!0);else return t.lanes=e.lanes,qt(e,t,i)}return hu(e,t,n,r,i)}function a0(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(Mr,Ge),Ge|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(Mr,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,re(Mr,Ge),Ge|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,re(Mr,Ge),Ge|=r;return De(e,t,i,n),t.child}function u0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hu(e,t,n,r,i){var o=Be(n)?Jn:Oe.current;return o=Dr(t,o),Ar(t,i),n=vc(e,t,n,r,o,i),r=yc(),e!==null&&!Ue?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qt(e,t,i)):(le&&r&&oc(t),t.flags|=1,De(e,t,n,i),t.child)}function jd(e,t,n,r,i){if(Be(n)){var o=!0;Sl(t)}else o=!1;if(Ar(t,i),t.stateNode===null)il(e,t),bm(t,n,r),du(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=mt(u):(u=Be(n)?Jn:Oe.current,u=Dr(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Pd(t,l,r,u),un=!1;var d=t.memoizedState;l.state=d,Pl(t,r,l,i),a=t.memoizedState,s!==r||d!==a||We.current||un?(typeof c=="function"&&(fu(t,n,c,r),a=t.memoizedState),(s=un||Ed(t,n,s,r,d,a,u))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Rm(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:_t(t.type,s),l.props=u,f=t.pendingProps,d=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=mt(a):(a=Be(n)?Jn:Oe.current,a=Dr(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||d!==a)&&Pd(t,l,r,a),un=!1,d=t.memoizedState,l.state=d,Pl(t,r,l,i);var v=t.memoizedState;s!==f||d!==v||We.current||un?(typeof h=="function"&&(fu(t,n,h,r),v=t.memoizedState),(u=un||Ed(t,n,u,r,d,v,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,v,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,v,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),l.props=r,l.state=v,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return mu(e,t,n,r,o,i)}function mu(e,t,n,r,i,o){u0(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&kd(t,n,!1),qt(e,t,o);r=t.stateNode,w1.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=jr(t,e.child,null,o),t.child=jr(t,null,s,o)):De(e,t,s,o),t.memoizedState=r.state,i&&kd(t,n,!0),t.child}function c0(e){var t=e.stateNode;t.pendingContext?_d(e,t.pendingContext,t.pendingContext!==t.context):t.context&&_d(e,t.context,!1),pc(e,t.containerInfo)}function Fd(e,t,n,r,i){return br(),sc(i),t.flags|=256,De(e,t,n,r),t.child}var gu={dehydrated:null,treeContext:null,retryLane:0};function vu(e){return{baseLanes:e,cachePool:null,transitions:null}}function f0(e,t,n){var r=t.pendingProps,i=se.current,o=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),re(se,i&1),e===null)return uu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=xs(l,r,0,null),e=Gn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=vu(n),t.memoizedState=gu,e):_c(t,l));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return _1(e,t,l,r,s,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Sn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Sn(s,o):(o=Gn(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?vu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=gu,r}return o=e.child,e=o.sibling,r=Sn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function _c(e,t){return t=xs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fo(e,t,n,r){return r!==null&&sc(r),jr(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _1(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=fa(Error(R(422))),Fo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=xs({mode:"visible",children:r.children},i,0,null),o=Gn(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&jr(t,e.child,null,l),t.child.memoizedState=vu(l),t.memoizedState=gu,o);if(!(t.mode&1))return Fo(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(R(419)),r=fa(o,r,void 0),Fo(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ue||s){if(r=ke,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Kt(e,i),Et(r,e,i,-1))}return Ec(),r=fa(Error(R(421))),Fo(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=R1.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ke=xn(i.nextSibling),qe=t,le=!0,St=null,e!==null&&(st[at++]=Wt,st[at++]=Bt,st[at++]=er,Wt=e.id,Bt=e.overflow,er=t),t=_c(t,r.children),t.flags|=4096,t)}function zd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),cu(e.return,t,n)}function da(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function d0(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(De(e,t,r.children,n),r=se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zd(e,n,t);else if(e.tag===19)zd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(re(se,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Nl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),da(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Nl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}da(t,!0,n,null,o);break;case"together":da(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function il(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function k1(e,t,n){switch(t.tag){case 3:c0(t),br();break;case 5:zm(t);break;case 1:Be(t.type)&&Sl(t);break;case 4:pc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;re(Tl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(se,se.current&1),t.flags|=128,null):n&t.child.childLanes?f0(e,t,n):(re(se,se.current&1),e=qt(e,t,n),e!==null?e.sibling:null);re(se,se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return d0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),re(se,se.current),r)break;return null;case 22:case 23:return t.lanes=0,a0(e,t,n)}return qt(e,t,n)}var p0,yu,h0,m0;p0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};yu=function(){};h0=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Bn(bt.current);var o=null;switch(n){case"input":i=Ia(e,i),r=Ia(e,r),o=[];break;case"select":i=ue({},i,{value:void 0}),r=ue({},r,{value:void 0}),o=[];break;case"textarea":i=Wa(e,i),r=Wa(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_l)}Va(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Di.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Di.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ie("scroll",e),o||s===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};m0=function(e,t,n,r){n!==r&&(t.flags|=4)};function ui(e,t){if(!le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function S1(e,t,n){var r=t.pendingProps;switch(lc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Be(t.type)&&kl(),Ae(t),null;case 3:return r=t.stateNode,Fr(),oe(We),oe(Oe),mc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(bo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,St!==null&&(Tu(St),St=null))),yu(e,t),Ae(t),null;case 5:hc(t);var i=Bn(Xi.current);if(n=t.type,e!==null&&t.stateNode!=null)h0(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Ae(t),null}if(e=Bn(bt.current),bo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Rt]=t,r[Vi]=o,e=(t.mode&1)!==0,n){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(i=0;i<xi.length;i++)ie(xi[i],r);break;case"source":ie("error",r);break;case"img":case"image":case"link":ie("error",r),ie("load",r);break;case"details":ie("toggle",r);break;case"input":Qf(r,o),ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ie("invalid",r);break;case"textarea":Kf(r,o),ie("invalid",r)}Va(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var s=o[l];l==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Do(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Do(r.textContent,s,e),i=["children",""+s]):Di.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&ie("scroll",r)}switch(n){case"input":Eo(r),Gf(r,o,!0);break;case"textarea":Eo(r),qf(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=_l)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Hh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Rt]=t,e[Vi]=r,p0(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ya(n,r),n){case"dialog":ie("cancel",e),ie("close",e),i=r;break;case"iframe":case"object":case"embed":ie("load",e),i=r;break;case"video":case"audio":for(i=0;i<xi.length;i++)ie(xi[i],e);i=r;break;case"source":ie("error",e),i=r;break;case"img":case"image":case"link":ie("error",e),ie("load",e),i=r;break;case"details":ie("toggle",e),i=r;break;case"input":Qf(e,r),i=Ia(e,r),ie("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ue({},r,{value:void 0}),ie("invalid",e);break;case"textarea":Kf(e,r),i=Wa(e,r),ie("invalid",e);break;default:i=r}Va(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="style"?Vh(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Wh(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&bi(e,a):typeof a=="number"&&bi(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Di.hasOwnProperty(o)?a!=null&&o==="onScroll"&&ie("scroll",e):a!=null&&Vu(e,o,a,l))}switch(n){case"input":Eo(e),Gf(e,r,!1);break;case"textarea":Eo(e),qf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+En(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Tr(e,!!r.multiple,o,!1):r.defaultValue!=null&&Tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=_l)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ae(t),null;case 6:if(e&&t.stateNode!=null)m0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=Bn(Xi.current),Bn(bt.current),bo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Rt]=t,(o=r.nodeValue!==n)&&(e=qe,e!==null))switch(e.tag){case 3:Do(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Do(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Rt]=t,t.stateNode=r}return Ae(t),null;case 13:if(oe(se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(le&&Ke!==null&&t.mode&1&&!(t.flags&128))Om(),br(),t.flags|=98560,o=!1;else if(o=bo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(R(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(R(317));o[Rt]=t}else br(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ae(t),o=!1}else St!==null&&(Tu(St),St=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||se.current&1?ye===0&&(ye=3):Ec())),t.updateQueue!==null&&(t.flags|=4),Ae(t),null);case 4:return Fr(),yu(e,t),e===null&&Wi(t.stateNode.containerInfo),Ae(t),null;case 10:return cc(t.type._context),Ae(t),null;case 17:return Be(t.type)&&kl(),Ae(t),null;case 19:if(oe(se),o=t.memoizedState,o===null)return Ae(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)ui(o,!1);else{if(ye!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Nl(e),l!==null){for(t.flags|=128,ui(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return re(se,se.current&1|2),t.child}e=e.sibling}o.tail!==null&&pe()>Ir&&(t.flags|=128,r=!0,ui(o,!1),t.lanes=4194304)}else{if(!r)if(e=Nl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ui(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!le)return Ae(t),null}else 2*pe()-o.renderingStartTime>Ir&&n!==1073741824&&(t.flags|=128,r=!0,ui(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pe(),t.sibling=null,n=se.current,re(se,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return Tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function C1(e,t){switch(lc(t),t.tag){case 1:return Be(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fr(),oe(We),oe(Oe),mc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hc(t),null;case 13:if(oe(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(se),null;case 4:return Fr(),null;case 10:return cc(t.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var zo=!1,$e=!1,M1=typeof WeakSet=="function"?WeakSet:Set,z=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(e,t,r)}else n.current=null}function xu(e,t,n){try{n()}catch(r){ce(e,t,r)}}var Id=!1;function T1(e,t){if(nu=yl,e=xm(),ic(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=l+i),f!==o||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(s=l),d===o&&++c===r&&(a=l),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ru={focusedElem:e,selectionRange:n},yl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,k=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:_t(t.type,g),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){ce(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return v=Id,Id=!1,v}function Ei(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&xu(t,n,o)}i=i.next}while(i!==r)}}function vs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function g0(e){var t=e.alternate;t!==null&&(e.alternate=null,g0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Vi],delete t[lu],delete t[a1],delete t[u1])),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 v0(e){return e.tag===5||e.tag===3||e.tag===4}function Ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||v0(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 _u(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_l));else if(r!==4&&(e=e.child,e!==null))for(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ku(e,t,n),e=e.sibling;e!==null;)ku(e,t,n),e=e.sibling}var Me=null,kt=!1;function sn(e,t,n){for(n=n.child;n!==null;)y0(e,t,n),n=n.sibling}function y0(e,t,n){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(us,n)}catch{}switch(n.tag){case 5:$e||Cr(n,t);case 6:var r=Me,i=kt;Me=null,sn(e,t,n),Me=r,kt=i,Me!==null&&(kt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(kt?(e=Me,n=n.stateNode,e.nodeType===8?oa(e.parentNode,n):e.nodeType===1&&oa(e,n),Ii(e)):oa(Me,n.stateNode));break;case 4:r=Me,i=kt,Me=n.stateNode.containerInfo,kt=!0,sn(e,t,n),Me=r,kt=i;break;case 0:case 11:case 14:case 15:if(!$e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&xu(n,t,l),i=i.next}while(i!==r)}sn(e,t,n);break;case 1:if(!$e&&(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ce(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?($e=(r=$e)||n.memoizedState!==null,sn(e,t,n),$e=r):sn(e,t,n);break;default:sn(e,t,n)}}function Hd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new M1),t.forEach(function(r){var i=D1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:Me=s.stateNode,kt=!1;break e;case 3:Me=s.stateNode.containerInfo,kt=!0;break e;case 4:Me=s.stateNode.containerInfo,kt=!0;break e}s=s.return}if(Me===null)throw Error(R(160));y0(o,l,i),Me=null,kt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ce(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)x0(t,e),t=t.sibling}function x0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wt(t,e),Ot(e),r&4){try{Ei(3,e,e.return),vs(3,e)}catch(g){ce(e,e.return,g)}try{Ei(5,e,e.return)}catch(g){ce(e,e.return,g)}}break;case 1:wt(t,e),Ot(e),r&512&&n!==null&&Cr(n,n.return);break;case 5:if(wt(t,e),Ot(e),r&512&&n!==null&&Cr(n,n.return),e.flags&32){var i=e.stateNode;try{bi(i,"")}catch(g){ce(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Ih(i,o),Ya(s,l);var u=Ya(s,o);for(l=0;l<a.length;l+=2){var c=a[l],f=a[l+1];c==="style"?Vh(i,f):c==="dangerouslySetInnerHTML"?Wh(i,f):c==="children"?bi(i,f):Vu(i,c,f,u)}switch(s){case"input":Ua(i,o);break;case"textarea":Uh(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Tr(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?Tr(i,!!o.multiple,o.defaultValue,!0):Tr(i,!!o.multiple,o.multiple?[]:"",!1))}i[Vi]=o}catch(g){ce(e,e.return,g)}}break;case 6:if(wt(t,e),Ot(e),r&4){if(e.stateNode===null)throw Error(R(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){ce(e,e.return,g)}}break;case 3:if(wt(t,e),Ot(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ii(t.containerInfo)}catch(g){ce(e,e.return,g)}break;case 4:wt(t,e),Ot(e);break;case 13:wt(t,e),Ot(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Cc=pe())),r&4&&Hd(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?($e=(u=$e)||c,wt(t,e),$e=u):wt(t,e),Ot(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(f=z=c;z!==null;){switch(d=z,h=d.child,d.tag){case 0:case 11:case 14:case 15:Ei(4,d,d.return);break;case 1:Cr(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){ce(r,n,g)}}break;case 5:Cr(d,d.return);break;case 22:if(d.memoizedState!==null){Bd(f);continue}}h!==null?(h.return=d,z=h):Bd(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,a=f.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Bh("display",l))}catch(g){ce(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){ce(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:wt(t,e),Ot(e),r&4&&Hd(e);break;case 21:break;default:wt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(v0(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(bi(i,""),r.flags&=-33);var o=Ud(e);ku(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Ud(e);_u(e,s,l);break;default:throw Error(R(161))}}catch(a){ce(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function E1(e,t,n){z=e,w0(e)}function w0(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||zo;if(!l){var s=i.alternate,a=s!==null&&s.memoizedState!==null||$e;s=zo;var u=$e;if(zo=l,($e=a)&&!u)for(z=i;z!==null;)l=z,a=l.child,l.tag===22&&l.memoizedState!==null?Vd(i):a!==null?(a.return=l,z=a):Vd(i);for(;o!==null;)z=o,w0(o),o=o.sibling;z=i,zo=s,$e=u}Wd(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,z=o):Wd(e)}}function Wd(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:$e||vs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!$e)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:_t(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Td(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Td(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ii(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}$e||t.flags&512&&wu(t)}catch(d){ce(t,t.return,d)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function Bd(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Vd(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vs(4,t)}catch(a){ce(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ce(t,i,a)}}var o=t.return;try{wu(t)}catch(a){ce(t,o,a)}break;case 5:var l=t.return;try{wu(t)}catch(a){ce(t,l,a)}}}catch(a){ce(t,t.return,a)}if(t===e){z=null;break}var s=t.sibling;if(s!==null){s.return=t.return,z=s;break}z=t.return}}var P1=Math.ceil,Ol=nn.ReactCurrentDispatcher,kc=nn.ReactCurrentOwner,pt=nn.ReactCurrentBatchConfig,K=0,ke=null,me=null,Te=0,Ge=0,Mr=$n(0),ye=0,qi=null,nr=0,ys=0,Sc=0,Pi=null,ze=null,Cc=0,Ir=1/0,Ut=null,Ll=!1,Su=null,_n=null,Io=!1,pn=null,Rl=0,Ni=0,Cu=null,ol=-1,ll=0;function je(){return K&6?pe():ol!==-1?ol:ol=pe()}function kn(e){return e.mode&1?K&2&&Te!==0?Te&-Te:f1.transition!==null?(ll===0&&(ll=rm()),ll):(e=ee,e!==0||(e=window.event,e=e===void 0?16:cm(e.type)),e):1}function Et(e,t,n,r){if(50<Ni)throw Ni=0,Cu=null,Error(R(185));co(e,n,r),(!(K&2)||e!==ke)&&(e===ke&&(!(K&2)&&(ys|=n),ye===4&&fn(e,Te)),Ve(e,r),n===1&&K===0&&!(t.mode&1)&&(Ir=pe()+500,hs&&On()))}function Ve(e,t){var n=e.callbackNode;fy(e,t);var r=vl(e,e===ke?Te:0);if(r===0)n!==null&&ed(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ed(n),t===1)e.tag===0?c1(Yd.bind(null,e)):Nm(Yd.bind(null,e)),l1(function(){!(K&6)&&On()}),n=null;else{switch(im(r)){case 1:n=Ku;break;case 4:n=tm;break;case 16:n=gl;break;case 536870912:n=nm;break;default:n=gl}n=P0(n,_0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _0(e,t){if(ol=-1,ll=0,K&6)throw Error(R(327));var n=e.callbackNode;if($r()&&e.callbackNode!==n)return null;var r=vl(e,e===ke?Te:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Dl(e,r);else{t=r;var i=K;K|=2;var o=S0();(ke!==e||Te!==t)&&(Ut=null,Ir=pe()+500,Qn(e,t));do try{$1();break}catch(s){k0(e,s)}while(!0);uc(),Ol.current=o,K=i,me!==null?t=0:(ke=null,Te=0,t=ye)}if(t!==0){if(t===2&&(i=qa(e),i!==0&&(r=i,t=Mu(e,i))),t===1)throw n=qi,Qn(e,0),fn(e,r),Ve(e,pe()),n;if(t===6)fn(e,r);else{if(i=e.current.alternate,!(r&30)&&!N1(i)&&(t=Dl(e,r),t===2&&(o=qa(e),o!==0&&(r=o,t=Mu(e,o))),t===1))throw n=qi,Qn(e,0),fn(e,r),Ve(e,pe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:In(e,ze,Ut);break;case 3:if(fn(e,r),(r&130023424)===r&&(t=Cc+500-pe(),10<t)){if(vl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){je(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ou(In.bind(null,e,ze,Ut),t);break}In(e,ze,Ut);break;case 4:if(fn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Tt(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*P1(r/1960))-r,10<r){e.timeoutHandle=ou(In.bind(null,e,ze,Ut),r);break}In(e,ze,Ut);break;case 5:In(e,ze,Ut);break;default:throw Error(R(329))}}}return Ve(e,pe()),e.callbackNode===n?_0.bind(null,e):null}function Mu(e,t){var n=Pi;return e.current.memoizedState.isDehydrated&&(Qn(e,t).flags|=256),e=Dl(e,t),e!==2&&(t=ze,ze=n,t!==null&&Tu(t)),e}function Tu(e){ze===null?ze=e:ze.push.apply(ze,e)}function N1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Pt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fn(e,t){for(t&=~Sc,t&=~ys,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tt(t),r=1<<n;e[n]=-1,t&=~r}}function Yd(e){if(K&6)throw Error(R(327));$r();var t=vl(e,0);if(!(t&1))return Ve(e,pe()),null;var n=Dl(e,t);if(e.tag!==0&&n===2){var r=qa(e);r!==0&&(t=r,n=Mu(e,r))}if(n===1)throw n=qi,Qn(e,0),fn(e,t),Ve(e,pe()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,In(e,ze,Ut),Ve(e,pe()),null}function Mc(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(Ir=pe()+500,hs&&On())}}function rr(e){pn!==null&&pn.tag===0&&!(K&6)&&$r();var t=K;K|=1;var n=pt.transition,r=ee;try{if(pt.transition=null,ee=1,e)return e()}finally{ee=r,pt.transition=n,K=t,!(K&6)&&On()}}function Tc(){Ge=Mr.current,oe(Mr)}function Qn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,o1(n)),me!==null)for(n=me.return;n!==null;){var r=n;switch(lc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kl();break;case 3:Fr(),oe(We),oe(Oe),mc();break;case 5:hc(r);break;case 4:Fr();break;case 13:oe(se);break;case 19:oe(se);break;case 10:cc(r.type._context);break;case 22:case 23:Tc()}n=n.return}if(ke=e,me=e=Sn(e.current,null),Te=Ge=t,ye=0,qi=null,Sc=ys=nr=0,ze=Pi=null,Wn!==null){for(t=0;t<Wn.length;t++)if(n=Wn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}Wn=null}return e}function k0(e,t){do{var n=me;try{if(uc(),nl.current=$l,Al){for(var r=ae.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Al=!1}if(tr=0,_e=ve=ae=null,Ti=!1,Qi=0,kc.current=null,n===null||n.return===null){ye=1,qi=t,me=null;break}e:{var o=e,l=n.return,s=n,a=t;if(t=Te,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Ld(l);if(h!==null){h.flags&=-257,Rd(h,l,s,o,t),h.mode&1&&Od(o,u,t),t=h,a=u;var v=t.updateQueue;if(v===null){var g=new Set;g.add(a),t.updateQueue=g}else v.add(a);break e}else{if(!(t&1)){Od(o,u,t),Ec();break e}a=Error(R(426))}}else if(le&&s.mode&1){var k=Ld(l);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Rd(k,l,s,o,t),sc(zr(a,s));break e}}o=a=zr(a,s),ye!==4&&(ye=2),Pi===null?Pi=[o]:Pi.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=o0(o,a,t);Md(o,m);break e;case 1:s=a;var p=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(_n===null||!_n.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=l0(o,s,t);Md(o,x);break e}}o=o.return}while(o!==null)}M0(n)}catch(_){t=_,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function S0(){var e=Ol.current;return Ol.current=$l,e===null?$l:e}function Ec(){(ye===0||ye===3||ye===2)&&(ye=4),ke===null||!(nr&268435455)&&!(ys&268435455)||fn(ke,Te)}function Dl(e,t){var n=K;K|=2;var r=S0();(ke!==e||Te!==t)&&(Ut=null,Qn(e,t));do try{A1();break}catch(i){k0(e,i)}while(!0);if(uc(),K=n,Ol.current=r,me!==null)throw Error(R(261));return ke=null,Te=0,ye}function A1(){for(;me!==null;)C0(me)}function $1(){for(;me!==null&&!ny();)C0(me)}function C0(e){var t=E0(e.alternate,e,Ge);e.memoizedProps=e.pendingProps,t===null?M0(e):me=t,kc.current=null}function M0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=C1(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ye=6,me=null;return}}else if(n=S1(n,t,Ge),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ye===0&&(ye=5)}function In(e,t,n){var r=ee,i=pt.transition;try{pt.transition=null,ee=1,O1(e,t,n,r)}finally{pt.transition=i,ee=r}return null}function O1(e,t,n,r){do $r();while(pn!==null);if(K&6)throw Error(R(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(dy(e,o),e===ke&&(me=ke=null,Te=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Io||(Io=!0,P0(gl,function(){return $r(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=pt.transition,pt.transition=null;var l=ee;ee=1;var s=K;K|=4,kc.current=null,T1(e,n),x0(n,e),Zy(ru),yl=!!nu,ru=nu=null,e.current=n,E1(n),ry(),K=s,ee=l,pt.transition=o}else e.current=n;if(Io&&(Io=!1,pn=e,Rl=i),o=e.pendingLanes,o===0&&(_n=null),ly(n.stateNode),Ve(e,pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ll)throw Ll=!1,e=Su,Su=null,e;return Rl&1&&e.tag!==0&&$r(),o=e.pendingLanes,o&1?e===Cu?Ni++:(Ni=0,Cu=e):Ni=0,On(),null}function $r(){if(pn!==null){var e=im(Rl),t=pt.transition,n=ee;try{if(pt.transition=null,ee=16>e?16:e,pn===null)var r=!1;else{if(e=pn,pn=null,Rl=0,K&6)throw Error(R(331));var i=K;for(K|=4,z=e.current;z!==null;){var o=z,l=o.child;if(z.flags&16){var s=o.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:Ei(8,c,o)}var f=c.child;if(f!==null)f.return=c,z=f;else for(;z!==null;){c=z;var d=c.sibling,h=c.return;if(g0(c),c===u){z=null;break}if(d!==null){d.return=h,z=d;break}z=h}}}var v=o.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var k=g.sibling;g.sibling=null,g=k}while(g!==null)}}z=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,z=l;else e:for(;z!==null;){if(o=z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ei(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,z=m;break e}z=o.return}}var p=e.current;for(z=p;z!==null;){l=z;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,z=y;else e:for(l=p;z!==null;){if(s=z,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:vs(9,s)}}catch(_){ce(s,s.return,_)}if(s===l){z=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,z=x;break e}z=s.return}}if(K=i,On(),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(us,e)}catch{}r=!0}return r}finally{ee=n,pt.transition=t}}return!1}function Xd(e,t,n){t=zr(n,t),t=o0(e,t,1),e=wn(e,t,1),t=je(),e!==null&&(co(e,1,t),Ve(e,t))}function ce(e,t,n){if(e.tag===3)Xd(e,e,n);else for(;t!==null;){if(t.tag===3){Xd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_n===null||!_n.has(r))){e=zr(n,e),e=l0(t,e,1),t=wn(t,e,1),e=je(),t!==null&&(co(t,1,e),Ve(t,e));break}}t=t.return}}function L1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=je(),e.pingedLanes|=e.suspendedLanes&n,ke===e&&(Te&n)===n&&(ye===4||ye===3&&(Te&130023424)===Te&&500>pe()-Cc?Qn(e,0):Sc|=n),Ve(e,t)}function T0(e,t){t===0&&(e.mode&1?(t=Ao,Ao<<=1,!(Ao&130023424)&&(Ao=4194304)):t=1);var n=je();e=Kt(e,t),e!==null&&(co(e,t,n),Ve(e,n))}function R1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T0(e,n)}function D1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),T0(e,n)}var E0;E0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,k1(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,le&&t.flags&1048576&&Am(t,Ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;il(e,t),e=t.pendingProps;var i=Dr(t,Oe.current);Ar(t,n),i=vc(null,t,r,e,i,n);var o=yc();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,Be(r)?(o=!0,Sl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dc(t),i.updater=ms,t.stateNode=i,i._reactInternals=t,du(t,r,e,n),t=mu(null,t,r,!0,o,n)):(t.tag=0,le&&o&&oc(t),De(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(il(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=j1(r),e=_t(r,e),i){case 0:t=hu(null,t,r,e,n);break e;case 1:t=jd(null,t,r,e,n);break e;case 11:t=Dd(null,t,r,e,n);break e;case 14:t=bd(null,t,r,_t(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_t(r,i),hu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_t(r,i),jd(e,t,r,i,n);case 3:e:{if(c0(t),e===null)throw Error(R(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Rm(e,t),Pl(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zr(Error(R(423)),t),t=Fd(e,t,r,n,i);break e}else if(r!==i){i=zr(Error(R(424)),t),t=Fd(e,t,r,n,i);break e}else for(Ke=xn(t.stateNode.containerInfo.firstChild),qe=t,le=!0,St=null,n=Fm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(br(),r===i){t=qt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return zm(t),e===null&&uu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,iu(r,i)?l=null:o!==null&&iu(r,o)&&(t.flags|=32),u0(e,t),De(e,t,l,n),t.child;case 6:return e===null&&uu(t),null;case 13:return f0(e,t,n);case 4:return pc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jr(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_t(r,i),Dd(e,t,r,i,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,re(Tl,r._currentValue),r._currentValue=l,o!==null)if(Pt(o.value,l)){if(o.children===i.children&&!We.current){t=qt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Xt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),cu(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(R(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),cu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}De(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ar(t,n),i=mt(i),r=r(i),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,i=_t(r,t.pendingProps),i=_t(r.type,i),bd(e,t,r,i,n);case 15:return s0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_t(r,i),il(e,t),t.tag=1,Be(r)?(e=!0,Sl(t)):e=!1,Ar(t,n),bm(t,r,i),du(t,r,i,n),mu(null,t,r,!0,e,n);case 19:return d0(e,t,n);case 22:return a0(e,t,n)}throw Error(R(156,t.tag))};function P0(e,t){return em(e,t)}function b1(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,n,r){return new b1(e,t,n,r)}function Pc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function j1(e){if(typeof e=="function")return Pc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xu)return 11;if(e===Qu)return 14}return 2}function Sn(e,t){var n=e.alternate;return n===null?(n=ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sl(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Pc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case mr:return Gn(n.children,i,o,t);case Yu:l=8,i|=8;break;case ba:return e=ct(12,n,t,i|2),e.elementType=ba,e.lanes=o,e;case ja:return e=ct(13,n,t,i),e.elementType=ja,e.lanes=o,e;case Fa:return e=ct(19,n,t,i),e.elementType=Fa,e.lanes=o,e;case jh:return xs(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dh:l=10;break e;case bh:l=9;break e;case Xu:l=11;break e;case Qu:l=14;break e;case an:l=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=ct(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Gn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function xs(e,t,n,r){return e=ct(22,e,r,t),e.elementType=jh,e.lanes=n,e.stateNode={isHidden:!1},e}function pa(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function ha(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function F1(e,t,n,r,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=Qs(0),this.expirationTimes=Qs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Nc(e,t,n,r,i,o,l,s,a){return e=new F1(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ct(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dc(o),e}function z1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function N0(e){if(!e)return Pn;e=e._reactInternals;e:{if(sr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(Be(n))return Pm(e,n,t)}return t}function A0(e,t,n,r,i,o,l,s,a){return e=Nc(n,r,!0,e,i,o,l,s,a),e.context=N0(null),n=e.current,r=je(),i=kn(n),o=Xt(r,i),o.callback=t??null,wn(n,o,i),e.current.lanes=i,co(e,i,r),Ve(e,r),e}function ws(e,t,n,r){var i=t.current,o=je(),l=kn(i);return n=N0(n),t.context===null?t.context=n:t.pendingContext=n,t=Xt(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=wn(i,t,l),e!==null&&(Et(e,i,l,o),tl(e,i,l)),l}function bl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Qd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ac(e,t){Qd(e,t),(e=e.alternate)&&Qd(e,t)}function I1(){return null}var $0=typeof reportError=="function"?reportError:function(e){console.error(e)};function $c(e){this._internalRoot=e}_s.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));ws(e,t,null,null)};_s.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rr(function(){ws(null,e,null,null)}),t[Gt]=null}};function _s(e){this._internalRoot=e}_s.prototype.unstable_scheduleHydration=function(e){if(e){var t=sm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cn.length&&t!==0&&t<cn[n].priority;n++);cn.splice(n,0,e),n===0&&um(e)}};function Oc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gd(){}function U1(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=bl(l);o.call(u)}}var l=A0(t,r,e,0,null,!1,!1,"",Gd);return e._reactRootContainer=l,e[Gt]=l.current,Wi(e.nodeType===8?e.parentNode:e),rr(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=bl(a);s.call(u)}}var a=Nc(e,0,!1,null,null,!1,!1,"",Gd);return e._reactRootContainer=a,e[Gt]=a.current,Wi(e.nodeType===8?e.parentNode:e),rr(function(){ws(t,a,n,r)}),a}function Ss(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var s=i;i=function(){var a=bl(l);s.call(a)}}ws(t,l,e,i)}else l=U1(n,t,e,i,r);return bl(l)}om=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yi(t.pendingLanes);n!==0&&(qu(t,n|1),Ve(t,pe()),!(K&6)&&(Ir=pe()+500,On()))}break;case 13:rr(function(){var r=Kt(e,1);if(r!==null){var i=je();Et(r,e,1,i)}}),Ac(e,1)}};Zu=function(e){if(e.tag===13){var t=Kt(e,134217728);if(t!==null){var n=je();Et(t,e,134217728,n)}Ac(e,134217728)}};lm=function(e){if(e.tag===13){var t=kn(e),n=Kt(e,t);if(n!==null){var r=je();Et(n,e,t,r)}Ac(e,t)}};sm=function(){return ee};am=function(e,t){var n=ee;try{return ee=e,t()}finally{ee=n}};Qa=function(e,t,n){switch(t){case"input":if(Ua(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ps(r);if(!i)throw Error(R(90));zh(r),Ua(r,i)}}}break;case"textarea":Uh(e,n);break;case"select":t=n.value,t!=null&&Tr(e,!!n.multiple,t,!1)}};Qh=Mc;Gh=rr;var H1={usingClientEntryPoint:!1,Events:[po,xr,ps,Yh,Xh,Mc]},ci={findFiberByHostInstance:Hn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},W1={bundleType:ci.bundleType,version:ci.version,rendererPackageName:ci.rendererPackageName,rendererConfig:ci.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zh(e),e===null?null:e.stateNode},findFiberByHostInstance:ci.findFiberByHostInstance||I1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uo.isDisabled&&Uo.supportsFiber)try{us=Uo.inject(W1),Dt=Uo}catch{}}nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H1;nt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Oc(t))throw Error(R(200));return z1(e,t,null,n)};nt.createRoot=function(e,t){if(!Oc(e))throw Error(R(299));var n=!1,r="",i=$0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Nc(e,1,!1,null,null,n,!1,r,i),e[Gt]=t.current,Wi(e.nodeType===8?e.parentNode:e),new $c(t)};nt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Zh(t),e=e===null?null:e.stateNode,e};nt.flushSync=function(e){return rr(e)};nt.hydrate=function(e,t,n){if(!ks(t))throw Error(R(200));return Ss(null,e,t,!0,n)};nt.hydrateRoot=function(e,t,n){if(!Oc(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=$0;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=A0(t,null,e,1,n??null,i,!1,o,l),e[Gt]=t.current,Wi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new _s(t)};nt.render=function(e,t,n){if(!ks(t))throw Error(R(200));return Ss(null,e,t,!1,n)};nt.unmountComponentAtNode=function(e){if(!ks(e))throw Error(R(40));return e._reactRootContainer?(rr(function(){Ss(null,null,e,!1,function(){e._reactRootContainer=null,e[Gt]=null})}),!0):!1};nt.unstable_batchedUpdates=Mc;nt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ks(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Ss(e,t,n,!1,r)};nt.version="18.2.0-next-9e3b772b8-20220608";function O0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O0)}catch(e){console.error(e)}}O0(),Ah.exports=nt;var Cs=Ah.exports;const B1=Mv(Cs),YM=Iv({__proto__:null,default:B1},[Cs]);function V1(e){return Object.keys(e).length===0}function Lc(e=null){const t=T.useContext(Th);return!t||V1(t)?e:t}const Y1=ss();function Ms(e=Y1){return Lc(e)}function XM({styles:e,themeId:t,defaultTheme:n={}}){const r=Ms(n),i=typeof e=="function"?e(t&&r[t]||r):e;return N.jsx(Tv,{styles:i})}const X1=["className","component"];function Q1(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=Eh("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Ph);return T.forwardRef(function(a,u){const c=Ms(n),f=Hu(a),{className:d,component:h="div"}=f,v=te(f,X1);return N.jsx(o,C({as:h,ref:u,className:dt(d,i?i(r):r),theme:t&&c[t]||c},v))})}const G1=It("MuiBox",["root"]),K1=Q1({defaultClassName:G1.root,generateClassName:Ev.generate}),q1=["ownerState"],Z1=["variants"],J1=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ex(e){return Object.keys(e).length===0}function tx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ma(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const nx=ss(),rx=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ho({defaultTheme:e,theme:t,themeId:n}){return ex(t)?e:t[n]||t}function ix(e){return e?(t,n)=>n[e]:null}function al(e,t){let{ownerState:n}=t,r=te(t,q1);const i=typeof e=="function"?e(C({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>al(o,C({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let s=te(i,Z1);return o.forEach(a=>{let u=!0;typeof a.props=="function"?u=a.props(C({ownerState:n},r,n)):Object.keys(a.props).forEach(c=>{(n==null?void 0:n[c])!==a.props[c]&&r[c]!==a.props[c]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof a.style=="function"?a.style(C({ownerState:n},r,n)):a.style))}),s}return i}function ox(e={}){const{themeId:t,defaultTheme:n=nx,rootShouldForwardProp:r=ma,slotShouldForwardProp:i=ma}=e,o=l=>Ph(C({},l,{theme:Ho(C({},l,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(l,s={})=>{Pv(l,_=>_.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=ix(rx(u))}=s,h=te(s,J1),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=f||!1;let k,m=ma;u==="Root"||u==="root"?m=r:u?m=i:tx(l)&&(m=void 0);const p=Eh(l,C({shouldForwardProp:m,label:k},h)),y=_=>typeof _=="function"&&_.__emotion_real!==_||Nv(_)?w=>al(_,C({},w,{theme:Ho({theme:w.theme,defaultTheme:n,themeId:t})})):_,x=(_,...w)=>{let S=y(_);const M=w?w.map(y):[];a&&d&&M.push(E=>{const b=Ho(C({},E,{defaultTheme:n,themeId:t}));if(!b.components||!b.components[a]||!b.components[a].styleOverrides)return null;const O=b.components[a].styleOverrides,j={};return Object.entries(O).forEach(([U,H])=>{j[U]=al(H,C({},E,{theme:b}))}),d(E,j)}),a&&!v&&M.push(E=>{var b;const O=Ho(C({},E,{defaultTheme:n,themeId:t})),j=O==null||(b=O.components)==null||(b=b[a])==null?void 0:b.variants;return al({variants:j},C({},E,{theme:O}))}),g||M.push(o);const $=M.length-w.length;if(Array.isArray(_)&&$>0){const E=new Array($).fill("");S=[..._,...E],S.raw=[..._.raw,...E]}const P=p(S,...M);return l.muiName&&(P.muiName=l.muiName),P};return p.withConfig&&(x.withConfig=p.withConfig),x}}const L0=ox();function R0(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Av(t.components[n].defaultProps,r)}function Rc({props:e,name:t,defaultTheme:n,themeId:r}){let i=Ms(n);return r&&(i=i[r]||i),R0({theme:i,name:t,props:e})}function lx(e,t,n,r,i){const[o,l]=T.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Tn(()=>{let s=!0;if(!n)return;const a=n(e),u=()=>{s&&l(a.matches)};return u(),a.addListener(u),()=>{s=!1,a.removeListener(u)}},[e,n]),o}const D0=T.useSyncExternalStore;function sx(e,t,n,r,i){const o=T.useCallback(()=>t,[t]),l=T.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[s,a]=T.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,n,e]);return D0(a,s,l)}function QM(e,t={}){const n=Lc(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:s=!1}=R0({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(D0!==void 0?sx:lx)(a,i,o,l,s)}function Dc(e,t=0,n=1){return $v(e,t,n)}function ax(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ts(e){if(e.type)return e;if(e.charAt(0)==="#")return Ts(ax(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ra(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Ra(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function bc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function GM(e,t){return e=Ts(e),t=Dc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,bc(e)}function KM(e,t){if(e=Ts(e),t=Dc(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return bc(e)}function qM(e,t){if(e=Ts(e),t=Dc(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return bc(e)}const b0=T.createContext(null);function j0(){return T.useContext(b0)}const ux=typeof Symbol=="function"&&Symbol.for,cx=ux?Symbol.for("mui.nested"):"__THEME_NESTED__";function fx(e,t){return typeof t=="function"?t(e):C({},e,t)}function dx(e){const{children:t,theme:n}=e,r=j0(),i=T.useMemo(()=>{const o=r===null?n:fx(r,n);return o!=null&&(o[cx]=r!==null),o},[n,r]);return N.jsx(b0.Provider,{value:i,children:t})}const px=["value"],F0=T.createContext();function hx(e){let{value:t}=e,n=te(e,px);return N.jsx(F0.Provider,C({value:t??!0},n))}const ZM=()=>{const e=T.useContext(F0);return e??!1},Kd={};function qd(e,t,n,r=!1){return T.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),l=e?C({},t,{[e]:o}):o;return r?()=>l:l}return e?C({},t,{[e]:n}):C({},t,n)},[e,t,n,r])}function mx(e){const{children:t,theme:n,themeId:r}=e,i=Lc(Kd),o=j0()||Kd,l=qd(r,i,n),s=qd(r,o,n,!0),a=l.direction==="rtl";return N.jsx(dx,{theme:s,children:N.jsx(Th.Provider,{value:l,children:N.jsx(hx,{value:a,children:N.jsx(Ov,{value:l==null?void 0:l.components,children:t})})})})}function Ur(e){"@babel/helpers - typeof";return Ur=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},Ur(e)}const JM=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ur}},Symbol.toStringTag,{value:"Module"}));function gx(e,t){if(Ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eT(e){var t=gx(e,"string");return Ur(t)=="symbol"?t:t+""}const vx=["className","component","disableGutters","fixed","maxWidth","classes"],yx=ss(),xx=L0("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${as(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),wx=e=>Rc({props:e,name:"MuiContainer",defaultTheme:yx}),_x=(e,t)=>{const n=a=>At(t,a),{classes:r,fixed:i,disableGutters:o,maxWidth:l}=e,s={root:["root",l&&`maxWidth${as(String(l))}`,i&&"fixed",o&&"disableGutters"]};return tt(s,n,r)};function tT(e={}){const{createStyledComponent:t=xx,useThemeProps:n=wx,componentName:r="MuiContainer"}=e,i=t(({theme:l,ownerState:s})=>C({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}),({theme:l,ownerState:s})=>s.fixed&&Object.keys(l.breakpoints.values).reduce((a,u)=>{const c=u,f=l.breakpoints.values[c];return f!==0&&(a[l.breakpoints.up(c)]={maxWidth:`${f}${l.breakpoints.unit}`}),a},{}),({theme:l,ownerState:s})=>C({},s.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[l.breakpoints.up(s.maxWidth)]:{maxWidth:`${l.breakpoints.values[s.maxWidth]}${l.breakpoints.unit}`}}));return T.forwardRef(function(s,a){const u=n(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:v="lg"}=u,g=te(u,vx),k=C({},u,{component:f,disableGutters:d,fixed:h,maxWidth:v}),m=_x(k,r);return N.jsx(i,C({as:f,ownerState:k,className:dt(m.root,c),ref:a},g))})}const kx=["component","direction","spacing","divider","children","className","useFlexGap"],Sx=ss(),Cx=L0("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Mx(e){return Rc({props:e,name:"MuiStack",defaultTheme:Sx})}function Tx(e,t){const n=T.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o<n.length-1&&r.push(T.cloneElement(t,{key:`separator-${o}`})),r),[])}const Ex=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Px=({ownerState:e,theme:t})=>{let n=C({display:"flex",flexDirection:"column"},Uf({theme:t},Ws({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Lv(t),i=Object.keys(t.breakpoints.values).reduce((a,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(a[u]=!0),a),{}),o=Ws({values:e.direction,base:i}),l=Ws({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((a,u,c)=>{if(!o[a]){const d=u>0?o[c[u-1]]:"column";o[a]=d}}),n=Rv(n,Uf({theme:t},l,(a,u)=>e.useFlexGap?{gap:Hf(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Ex(u?o[u]:e.direction)}`]:Hf(r,a)}}))}return n=Dv(t.breakpoints,n),n};function nT(e={}){const{createStyledComponent:t=Cx,useThemeProps:n=Mx,componentName:r="MuiStack"}=e,i=()=>tt({root:["root"]},a=>At(r,a),{}),o=t(Px);return T.forwardRef(function(a,u){const c=n(a),f=Hu(c),{component:d="div",direction:h="column",spacing:v=0,divider:g,children:k,className:m,useFlexGap:p=!1}=f,y=te(f,kx),x={direction:h,spacing:v,useFlexGap:p},_=i();return N.jsx(o,C({as:d,ownerState:x,ref:u,className:dt(_.root,m)},y,{children:g?Tx(k,g):k}))})}function Zd(e){return String(parseFloat(e)).length===String(e).length}function Nx(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function jn(e){return parseFloat(e)}function Ax(e){return(t,n)=>{const r=Nx(t);if(r===n)return t;let i=jn(t);r!=="px"&&(r==="em"||r==="rem")&&(i=jn(t)*jn(e));let o=i;if(n!=="px")if(n==="em")o=i/jn(e);else if(n==="rem")o=i/jn(e);else return t;return parseFloat(o.toFixed(5))+n}}function $x({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n<r-e?n:r}function Ox({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function Lx({cssProperty:e,min:t,max:n,unit:r="rem",breakpoints:i=[600,900,1200],transform:o=null}){const l={[e]:`${t}${r}`},s=(n-t)/i[i.length-1];return i.forEach(a=>{let u=t+s*a;o!==null&&(u=o(u)),l[`@media (min-width:${a}px)`]={[e]:`${Math.round(u*1e4)/1e4}${r}`}}),l}function rT(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:i=2,variants:o=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,l=C({},e);l.typography=C({},l.typography);const s=l.typography,a=Ax(s.htmlFontSize),u=n.map(c=>l.breakpoints.values[c]);return o.forEach(c=>{const f=s[c];if(!f)return;const d=parseFloat(a(f.fontSize,"rem"));if(d<=1)return;const h=d,v=1+(h-1)/i;let{lineHeight:g}=f;if(!Zd(g)&&!r)throw new Error(Ra(6));Zd(g)||(g=parseFloat(a(g,"rem"))/parseFloat(d));let k=null;r||(k=m=>$x({size:m,grid:Ox({pixels:4,lineHeight:g,htmlFontSize:s.htmlFontSize})})),s[c]=C({},f,Lx({cssProperty:"fontSize",min:v,max:h,unit:"rem",breakpoints:u,transform:k}))}),l}function mo(){const e=Ms(Nh);return e[dl]||e}function Es({props:e,name:t}){return Rc({props:e,name:t,defaultTheme:Nh,themeId:dl})}const Rx=["theme"];function iT(e){let{theme:t}=e,n=te(e,Rx);const r=t[dl];let i=r||t;return typeof t!="function"&&(r&&!r.vars?i=C({},r,{vars:null}):t&&!t.vars&&(i=C({},t,{vars:null}))),N.jsx(mx,C({},n,{themeId:r?dl:void 0,theme:i}))}const oT=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Dx(e){return At("MuiTypography",e)}It("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bx=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jx=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:l}=e,s={root:["root",o,e.align!=="inherit"&&`align${as(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return tt(s,Dx,l)},Fx=Le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${as(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>C({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Jd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ix=e=>zx[e]||e,ga=T.forwardRef(function(t,n){const r=bv({props:t,name:"MuiTypography"}),i=Ix(r.color),o=Hu(C({},r,{color:i})),{align:l="inherit",className:s,component:a,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=Jd}=o,v=te(o,bx),g=C({},o,{align:l,color:i,className:s,component:a,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),k=a||(f?"p":h[d]||Jd[d])||"span",m=jx(g);return N.jsx(Fx,C({as:k,ref:n,ownerState:g,className:dt(m.root,s)},v))});var Ye="top",vt="bottom",yt="right",Xe="left",jc="auto",go=[Ye,vt,yt,Xe],Hr="start",Zi="end",Ux="clippingParents",z0="viewport",fi="popper",Hx="reference",ep=go.reduce(function(e,t){return e.concat([t+"-"+Hr,t+"-"+Zi])},[]),I0=[].concat(go,[jc]).reduce(function(e,t){return e.concat([t,t+"-"+Hr,t+"-"+Zi])},[]),Wx="beforeRead",Bx="read",Vx="afterRead",Yx="beforeMain",Xx="main",Qx="afterMain",Gx="beforeWrite",Kx="write",qx="afterWrite",Zx=[Wx,Bx,Vx,Yx,Xx,Qx,Gx,Kx,qx];function zt(e){return e?(e.nodeName||"").toLowerCase():null}function Je(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ir(e){var t=Je(e).Element;return e instanceof t||e instanceof Element}function ht(e){var t=Je(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fc(e){if(typeof ShadowRoot>"u")return!1;var t=Je(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Jx(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ht(o)||!zt(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(l){var s=i[l];s===!1?o.removeAttribute(l):o.setAttribute(l,s===!0?"":s)}))})}function ew(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=l.reduce(function(a,u){return a[u]="",a},{});!ht(i)||!zt(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(a){i.removeAttribute(a)}))})}}const tw={name:"applyStyles",enabled:!0,phase:"write",fn:Jx,effect:ew,requires:["computeStyles"]};function jt(e){return e.split("-")[0]}var Kn=Math.max,jl=Math.min,Wr=Math.round;function Eu(){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 U0(){return!/^((?!chrome|android).)*safari/i.test(Eu())}function Br(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ht(e)&&(i=e.offsetWidth>0&&Wr(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Wr(r.height)/e.offsetHeight||1);var l=ir(e)?Je(e):window,s=l.visualViewport,a=!U0()&&n,u=(r.left+(a&&s?s.offsetLeft:0))/i,c=(r.top+(a&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function zc(e){var t=Br(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function H0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zt(e){return Je(e).getComputedStyle(e)}function nw(e){return["table","td","th"].indexOf(zt(e))>=0}function Ln(e){return((ir(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ps(e){return zt(e)==="html"?e:e.assignedSlot||e.parentNode||(Fc(e)?e.host:null)||Ln(e)}function tp(e){return!ht(e)||Zt(e).position==="fixed"?null:e.offsetParent}function rw(e){var t=/firefox/i.test(Eu()),n=/Trident/i.test(Eu());if(n&&ht(e)){var r=Zt(e);if(r.position==="fixed")return null}var i=Ps(e);for(Fc(i)&&(i=i.host);ht(i)&&["html","body"].indexOf(zt(i))<0;){var o=Zt(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function vo(e){for(var t=Je(e),n=tp(e);n&&nw(n)&&Zt(n).position==="static";)n=tp(n);return n&&(zt(n)==="html"||zt(n)==="body"&&Zt(n).position==="static")?t:n||rw(e)||t}function Ic(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ai(e,t,n){return Kn(e,jl(t,n))}function iw(e,t,n){var r=Ai(e,t,n);return r>n?n:r}function W0(){return{top:0,right:0,bottom:0,left:0}}function B0(e){return Object.assign({},W0(),e)}function V0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ow=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,B0(typeof t!="number"?t:V0(t,go))};function lw(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,l=n.modifiersData.popperOffsets,s=jt(n.placement),a=Ic(s),u=[Xe,yt].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!l)){var f=ow(i.padding,n),d=zc(o),h=a==="y"?Ye:Xe,v=a==="y"?vt:yt,g=n.rects.reference[c]+n.rects.reference[a]-l[a]-n.rects.popper[c],k=l[a]-n.rects.reference[a],m=vo(o),p=m?a==="y"?m.clientHeight||0:m.clientWidth||0:0,y=g/2-k/2,x=f[h],_=p-d[c]-f[v],w=p/2-d[c]/2+y,S=Ai(x,w,_),M=a;n.modifiersData[r]=(t={},t[M]=S,t.centerOffset=S-w,t)}}function sw(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||H0(t.elements.popper,i)&&(t.elements.arrow=i))}const aw={name:"arrow",enabled:!0,phase:"main",fn:lw,effect:sw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vr(e){return e.split("-")[1]}var uw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cw(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Wr(n*i)/i||0,y:Wr(r*i)/i||0}}function np(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,l=e.offsets,s=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=l.x,h=d===void 0?0:d,v=l.y,g=v===void 0?0:v,k=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=k.x,g=k.y;var m=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),y=Xe,x=Ye,_=window;if(u){var w=vo(n),S="clientHeight",M="clientWidth";if(w===Je(n)&&(w=Ln(n),Zt(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",M="scrollWidth")),w=w,i===Ye||(i===Xe||i===yt)&&o===Zi){x=vt;var $=f&&w===_&&_.visualViewport?_.visualViewport.height:w[S];g-=$-r.height,g*=a?1:-1}if(i===Xe||(i===Ye||i===vt)&&o===Zi){y=yt;var P=f&&w===_&&_.visualViewport?_.visualViewport.width:w[M];h-=P-r.width,h*=a?1:-1}}var E=Object.assign({position:s},u&&uw),b=c===!0?cw({x:h,y:g},Je(n)):{x:h,y:g};if(h=b.x,g=b.y,a){var O;return Object.assign({},E,(O={},O[x]=p?"0":"",O[y]=m?"0":"",O.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",O))}return Object.assign({},E,(t={},t[x]=p?g+"px":"",t[y]=m?h+"px":"",t.transform="",t))}function fw(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,l=o===void 0?!0:o,s=n.roundOffsets,a=s===void 0?!0:s,u={placement:jt(t.placement),variation:Vr(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,np(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,np(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fw,data:{}};var Wo={passive:!0};function pw(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,l=r.resize,s=l===void 0?!0:l,a=Je(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,Wo)}),s&&a.addEventListener("resize",n.update,Wo),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Wo)}),s&&a.removeEventListener("resize",n.update,Wo)}}const hw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pw,data:{}};var mw={left:"right",right:"left",bottom:"top",top:"bottom"};function ul(e){return e.replace(/left|right|bottom|top/g,function(t){return mw[t]})}var gw={start:"end",end:"start"};function rp(e){return e.replace(/start|end/g,function(t){return gw[t]})}function Uc(e){var t=Je(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Hc(e){return Br(Ln(e)).left+Uc(e).scrollLeft}function vw(e,t){var n=Je(e),r=Ln(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,a=0;if(i){o=i.width,l=i.height;var u=U0();(u||!u&&t==="fixed")&&(s=i.offsetLeft,a=i.offsetTop)}return{width:o,height:l,x:s+Hc(e),y:a}}function yw(e){var t,n=Ln(e),r=Uc(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Kn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Kn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Hc(e),a=-r.scrollTop;return Zt(i||n).direction==="rtl"&&(s+=Kn(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:l,x:s,y:a}}function Wc(e){var t=Zt(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Y0(e){return["html","body","#document"].indexOf(zt(e))>=0?e.ownerDocument.body:ht(e)&&Wc(e)?e:Y0(Ps(e))}function $i(e,t){var n;t===void 0&&(t=[]);var r=Y0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Je(r),l=i?[o].concat(o.visualViewport||[],Wc(r)?r:[]):r,s=t.concat(l);return i?s:s.concat($i(Ps(l)))}function Pu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xw(e,t){var n=Br(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ip(e,t,n){return t===z0?Pu(vw(e,n)):ir(t)?xw(t,n):Pu(yw(Ln(e)))}function ww(e){var t=$i(Ps(e)),n=["absolute","fixed"].indexOf(Zt(e).position)>=0,r=n&&ht(e)?vo(e):e;return ir(r)?t.filter(function(i){return ir(i)&&H0(i,r)&&zt(i)!=="body"}):[]}function _w(e,t,n,r){var i=t==="clippingParents"?ww(e):[].concat(t),o=[].concat(i,[n]),l=o[0],s=o.reduce(function(a,u){var c=ip(e,u,r);return a.top=Kn(c.top,a.top),a.right=jl(c.right,a.right),a.bottom=jl(c.bottom,a.bottom),a.left=Kn(c.left,a.left),a},ip(e,l,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function X0(e){var t=e.reference,n=e.element,r=e.placement,i=r?jt(r):null,o=r?Vr(r):null,l=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,a;switch(i){case Ye:a={x:l,y:t.y-n.height};break;case vt:a={x:l,y:t.y+t.height};break;case yt:a={x:t.x+t.width,y:s};break;case Xe:a={x:t.x-n.width,y:s};break;default:a={x:t.x,y:t.y}}var u=i?Ic(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Hr:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Zi:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function Ji(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,l=o===void 0?e.strategy:o,s=n.boundary,a=s===void 0?Ux:s,u=n.rootBoundary,c=u===void 0?z0:u,f=n.elementContext,d=f===void 0?fi:f,h=n.altBoundary,v=h===void 0?!1:h,g=n.padding,k=g===void 0?0:g,m=B0(typeof k!="number"?k:V0(k,go)),p=d===fi?Hx:fi,y=e.rects.popper,x=e.elements[v?p:d],_=_w(ir(x)?x:x.contextElement||Ln(e.elements.popper),a,c,l),w=Br(e.elements.reference),S=X0({reference:w,element:y,placement:i}),M=Pu(Object.assign({},y,S)),$=d===fi?M:w,P={top:_.top-$.top+m.top,bottom:$.bottom-_.bottom+m.bottom,left:_.left-$.left+m.left,right:$.right-_.right+m.right},E=e.modifiersData.offset;if(d===fi&&E){var b=E[i];Object.keys(P).forEach(function(O){var j=[yt,vt].indexOf(O)>=0?1:-1,U=[Ye,vt].indexOf(O)>=0?"y":"x";P[O]+=b[U]*j})}return P}function kw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,l=n.padding,s=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?I0:a,c=Vr(r),f=c?s?ep:ep.filter(function(v){return Vr(v)===c}):go,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,g){return v[g]=Ji(e,{placement:g,boundary:i,rootBoundary:o,padding:l})[jt(g)],v},{});return Object.keys(h).sort(function(v,g){return h[v]-h[g]})}function Sw(e){if(jt(e)===jc)return[];var t=ul(e);return[rp(e),t,rp(t)]}function Cw(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,l=n.altAxis,s=l===void 0?!0:l,a=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,g=n.allowedAutoPlacements,k=t.options.placement,m=jt(k),p=m===k,y=a||(p||!v?[ul(k)]:Sw(k)),x=[k].concat(y).reduce(function(fe,ge){return fe.concat(jt(ge)===jc?kw(t,{placement:ge,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:g}):ge)},[]),_=t.rects.reference,w=t.rects.popper,S=new Map,M=!0,$=x[0],P=0;P<x.length;P++){var E=x[P],b=jt(E),O=Vr(E)===Hr,j=[Ye,vt].indexOf(b)>=0,U=j?"width":"height",H=Ji(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),V=j?O?yt:Xe:O?vt:Ye;_[U]>w[U]&&(V=ul(V));var A=ul(V),D=[];if(o&&D.push(H[b]<=0),s&&D.push(H[V]<=0,H[A]<=0),D.every(function(fe){return fe})){$=E,M=!1;break}S.set(E,D)}if(M)for(var I=v?3:1,X=function(ge){var de=x.find(function(Re){var Qe=S.get(Re);if(Qe)return Qe.slice(0,ge).every(function(F){return F})});if(de)return $=de,"break"},Q=I;Q>0;Q--){var Pe=X(Q);if(Pe==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const Mw={name:"flip",enabled:!0,phase:"main",fn:Cw,requiresIfExists:["offset"],data:{_skip:!1}};function op(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lp(e){return[Ye,yt,vt,Xe].some(function(t){return e[t]>=0})}function Tw(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,l=Ji(t,{elementContext:"reference"}),s=Ji(t,{altBoundary:!0}),a=op(l,r),u=op(s,i,o),c=lp(a),f=lp(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Ew={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tw};function Pw(e,t,n){var r=jt(e),i=[Xe,Ye].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=o[0],s=o[1];return l=l||0,s=(s||0)*i,[Xe,yt].indexOf(r)>=0?{x:s,y:l}:{x:l,y:s}}function Nw(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,l=I0.reduce(function(c,f){return c[f]=Pw(f,t.rects,o),c},{}),s=l[t.placement],a=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}const Aw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nw};function $w(e){var t=e.state,n=e.name;t.modifiersData[n]=X0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ow={name:"popperOffsets",enabled:!0,phase:"read",fn:$w,data:{}};function Lw(e){return e==="x"?"y":"x"}function Rw(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,l=n.altAxis,s=l===void 0?!1:l,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,v=n.tetherOffset,g=v===void 0?0:v,k=Ji(t,{boundary:a,rootBoundary:u,padding:f,altBoundary:c}),m=jt(t.placement),p=Vr(t.placement),y=!p,x=Ic(m),_=Lw(x),w=t.modifiersData.popperOffsets,S=t.rects.reference,M=t.rects.popper,$=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,b={x:0,y:0};if(w){if(o){var O,j=x==="y"?Ye:Xe,U=x==="y"?vt:yt,H=x==="y"?"height":"width",V=w[x],A=V+k[j],D=V-k[U],I=h?-M[H]/2:0,X=p===Hr?S[H]:M[H],Q=p===Hr?-M[H]:-S[H],Pe=t.elements.arrow,fe=h&&Pe?zc(Pe):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W0(),de=ge[j],Re=ge[U],Qe=Ai(0,S[H],fe[H]),F=y?S[H]/2-I-Qe-de-P.mainAxis:X-Qe-de-P.mainAxis,B=y?-S[H]/2+I+Qe+Re+P.mainAxis:Q+Qe+Re+P.mainAxis,Y=t.elements.arrow&&vo(t.elements.arrow),L=Y?x==="y"?Y.clientTop||0:Y.clientLeft||0:0,he=(O=E==null?void 0:E[x])!=null?O:0,J=V+F-he-L,Ce=V+B-he,we=Ai(h?jl(A,J):A,V,h?Kn(D,Ce):D);w[x]=we,b[x]=we-V}if(s){var it,Co=x==="x"?Ye:Xe,Cv=x==="x"?vt:yt,bn=w[_],Mo=_==="y"?"height":"width",Df=bn+k[Co],bf=bn-k[Cv],Hs=[Ye,Xe].indexOf(m)!==-1,jf=(it=E==null?void 0:E[_])!=null?it:0,Ff=Hs?Df:bn-S[Mo]-M[Mo]-jf+P.altAxis,zf=Hs?bn+S[Mo]+M[Mo]-jf-P.altAxis:bf,If=h&&Hs?iw(Ff,bn,zf):Ai(h?Ff:Df,bn,h?zf:bf);w[_]=If,b[_]=If-bn}t.modifiersData[r]=b}}const Dw={name:"preventOverflow",enabled:!0,phase:"main",fn:Rw,requiresIfExists:["offset"]};function bw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jw(e){return e===Je(e)||!ht(e)?Uc(e):bw(e)}function Fw(e){var t=e.getBoundingClientRect(),n=Wr(t.width)/e.offsetWidth||1,r=Wr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zw(e,t,n){n===void 0&&(n=!1);var r=ht(t),i=ht(t)&&Fw(t),o=Ln(t),l=Br(e,i,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((zt(t)!=="body"||Wc(o))&&(s=jw(t)),ht(t)?(a=Br(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Hc(o))),{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function Iw(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var l=[].concat(o.requires||[],o.requiresIfExists||[]);l.forEach(function(s){if(!n.has(s)){var a=t.get(s);a&&i(a)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Uw(e){var t=Iw(e);return Zx.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Hw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ww(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var sp={placement:"bottom",modifiers:[],strategy:"absolute"};function ap(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Bw(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?sp:i;return function(s,a,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},sp,o),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},f=[],d=!1,h={state:c,setOptions:function(m){var p=typeof m=="function"?m(c.options):m;g(),c.options=Object.assign({},o,c.options,p),c.scrollParents={reference:ir(s)?$i(s):s.contextElement?$i(s.contextElement):[],popper:$i(a)};var y=Uw(Ww([].concat(r,c.options.modifiers)));return c.orderedModifiers=y.filter(function(x){return x.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var m=c.elements,p=m.reference,y=m.popper;if(ap(p,y)){c.rects={reference:zw(p,vo(y),c.options.strategy==="fixed"),popper:zc(y)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var x=0;x<c.orderedModifiers.length;x++){if(c.reset===!0){c.reset=!1,x=-1;continue}var _=c.orderedModifiers[x],w=_.fn,S=_.options,M=S===void 0?{}:S,$=_.name;typeof w=="function"&&(c=w({state:c,options:M,name:$,instance:h})||c)}}}},update:Hw(function(){return new Promise(function(k){h.forceUpdate(),k(c)})}),destroy:function(){g(),d=!0}};if(!ap(s,a))return h;h.setOptions(u).then(function(k){!d&&u.onFirstUpdate&&u.onFirstUpdate(k)});function v(){c.orderedModifiers.forEach(function(k){var m=k.name,p=k.options,y=p===void 0?{}:p,x=k.effect;if(typeof x=="function"){var _=x({state:c,name:m,instance:h,options:y}),w=function(){};f.push(_||w)}})}function g(){f.forEach(function(k){return k()}),f=[]}return h}}var Vw=[hw,Ow,dw,tw,Aw,Mw,Dw,aw,Ew],Yw=Bw({defaultModifiers:Vw});function Xw(e){return typeof e=="string"}function Qw(e,t,n){return e===void 0||Xw(e)?t:C({},t,{ownerState:C({},t.ownerState,n)})}const Gw={disableDefaultClasses:!1},Kw=T.createContext(Gw);function qw(e){const{disableDefaultClasses:t}=T.useContext(Kw);return n=>t?"":e(n)}function Zw(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Jw(e,t,n){return typeof e=="function"?e(t,n):e}function up(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function e2(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=dt(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),v=C({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=C({},n,i,r);return h.length>0&&(g.className=h),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const l=Zw(C({},i,r)),s=up(r),a=up(i),u=t(l),c=dt(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=C({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),d=C({},u,n,a,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const t2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Nt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,l=te(e,t2),s=o?{}:Jw(r,i),{props:a,internalRef:u}=e2(C({},l,{externalSlotProps:s})),c=Ri(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Qw(n,C({},a,{ref:c}),i)}function G(e){return function(){return e}}const Q0=Math.cos,Fl=Math.sin,$t=Math.sqrt,cp=1e-12,zl=Math.PI,qn=2*zl,Nu=Math.PI,Au=2*Nu,Un=1e-6,n2=Au-Un;function G0(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function r2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return G0;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class i2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?G0:r2(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,l){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,s=this._y1,a=r-t,u=i-n,c=l-t,f=s-n,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Un)if(!(Math.abs(f*a-u*c)>Un)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-l,v=i-s,g=a*a+u*u,k=h*h+v*v,m=Math.sqrt(g),p=Math.sqrt(d),y=o*Math.tan((Nu-Math.acos((g+d-k)/(2*m*p)))/2),x=y/p,_=y/m;Math.abs(x-1)>Un&&this._append`L${t+x*c},${n+x*f}`,this._append`A${o},${o},0,0,${+(f*h>c*v)},${this._x1=t+_*a},${this._y1=n+_*u}`}}arc(t,n,r,i,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),a=r*Math.sin(i),u=t+s,c=n+a,f=1^l,d=l?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Un||Math.abs(this._y1-c)>Un)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%Au+Au),d>n2?this._append`A${r},${r},0,1,${f},${t-s},${n-a}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Un&&this._append`A${r},${r},0,${+(d>=Nu)},${f},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Bc(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new i2(t)}function Ns(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function K0(e){this._context=e}K0.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 Vc(e){return new K0(e)}function q0(e){return e[0]}function Z0(e){return e[1]}function J0(e,t){var n=G(!0),r=null,i=Vc,o=null,l=Bc(s);e=typeof e=="function"?e:e===void 0?q0:G(e),t=typeof t=="function"?t:t===void 0?Z0:G(t);function s(a){var u,c=(a=Ns(a)).length,f,d=!1,h;for(r==null&&(o=i(h=l())),u=0;u<=c;++u)!(u<c&&n(f=a[u],u,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(f,u,a),+t(f,u,a));if(h)return o=null,h+""||null}return s.x=function(a){return arguments.length?(e=typeof a=="function"?a:G(+a),s):e},s.y=function(a){return arguments.length?(t=typeof a=="function"?a:G(+a),s):t},s.defined=function(a){return arguments.length?(n=typeof a=="function"?a:G(!!a),s):n},s.curve=function(a){return arguments.length?(i=a,r!=null&&(o=i(r)),s):i},s.context=function(a){return arguments.length?(a==null?r=o=null:o=i(r=a),s):r},s}function o2(e,t,n){var r=null,i=G(!0),o=null,l=Vc,s=null,a=Bc(u);e=typeof e=="function"?e:e===void 0?q0:G(+e),t=typeof t=="function"?t:G(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Z0:G(+n);function u(f){var d,h,v,g=(f=Ns(f)).length,k,m=!1,p,y=new Array(g),x=new Array(g);for(o==null&&(s=l(p=a())),d=0;d<=g;++d){if(!(d<g&&i(k=f[d],d,f))===m)if(m=!m)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=d-1;v>=h;--v)s.point(y[v],x[v]);s.lineEnd(),s.areaEnd()}m&&(y[d]=+e(k,d,f),x[d]=+t(k,d,f),s.point(r?+r(k,d,f):y[d],n?+n(k,d,f):x[d]))}if(p)return s=null,p+""||null}function c(){return J0().defined(i).curve(l).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:G(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:G(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:G(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:G(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:G(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:G(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:G(!!f),u):i},u.curve=function(f){return arguments.length?(l=f,o!=null&&(s=l(o)),u):l},u.context=function(f){return arguments.length?(f==null?o=s=null:s=l(o=f),u):o},u}function l2(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function s2(e){return e}function a2(){var e=s2,t=l2,n=null,r=G(0),i=G(qn),o=G(0);function l(s){var a,u=(s=Ns(s)).length,c,f,d=0,h=new Array(u),v=new Array(u),g=+r.apply(this,arguments),k=Math.min(qn,Math.max(-qn,i.apply(this,arguments)-g)),m,p=Math.min(Math.abs(k)/u,o.apply(this,arguments)),y=p*(k<0?-1:1),x;for(a=0;a<u;++a)(x=v[h[a]=a]=+e(s[a],a,s))>0&&(d+=x);for(t!=null?h.sort(function(_,w){return t(v[_],v[w])}):n!=null&&h.sort(function(_,w){return n(s[_],s[w])}),a=0,f=d?(k-u*y)/d:0;a<u;++a,g=m)c=h[a],x=v[c],m=g+(x>0?x*f:0)+y,v[c]={data:s[c],index:a,value:x,startAngle:g,endAngle:m,padAngle:p};return v}return l.value=function(s){return arguments.length?(e=typeof s=="function"?s:G(+s),l):e},l.sortValues=function(s){return arguments.length?(t=s,n=null,l):t},l.sort=function(s){return arguments.length?(n=s,t=null,l):n},l.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:G(+s),l):r},l.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:G(+s),l):i},l.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:G(+s),l):o},l}class eg{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function lT(e){return new eg(e,!0)}function sT(e){return new eg(e,!1)}const tg={draw(e,t){const n=$t(t/zl);e.moveTo(n,0),e.arc(0,0,n,0,qn)}},u2={draw(e,t){const n=$t(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ng=$t(1/3),c2=ng*2,f2={draw(e,t){const n=$t(t/c2),r=n*ng;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},d2={draw(e,t){const n=$t(t),r=-n/2;e.rect(r,r,n,n)}},p2=.8908130915292852,rg=Fl(zl/10)/Fl(7*zl/10),h2=Fl(qn/10)*rg,m2=-Q0(qn/10)*rg,g2={draw(e,t){const n=$t(t*p2),r=h2*n,i=m2*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const l=qn*o/5,s=Q0(l),a=Fl(l);e.lineTo(a*n,-s*n),e.lineTo(s*r-a*i,a*r+s*i)}e.closePath()}},va=$t(3),v2={draw(e,t){const n=-$t(t/(va*3));e.moveTo(0,n*2),e.lineTo(-va*n,-n),e.lineTo(va*n,-n),e.closePath()}},ot=-.5,lt=$t(3)/2,$u=1/$t(12),y2=($u/2+1)*3,x2={draw(e,t){const n=$t(t/y2),r=n/2,i=n*$u,o=r,l=n*$u+n,s=-o,a=l;e.moveTo(r,i),e.lineTo(o,l),e.lineTo(s,a),e.lineTo(ot*r-lt*i,lt*r+ot*i),e.lineTo(ot*o-lt*l,lt*o+ot*l),e.lineTo(ot*s-lt*a,lt*s+ot*a),e.lineTo(ot*r+lt*i,ot*i-lt*r),e.lineTo(ot*o+lt*l,ot*l-lt*o),e.lineTo(ot*s+lt*a,ot*a-lt*s),e.closePath()}},w2=[tg,u2,f2,d2,g2,v2,x2];function _2(e,t){let n=null,r=Bc(i);e=typeof e=="function"?e:G(e||tg),t=typeof t=="function"?t:G(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:G(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:G(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Il(){}function Ul(e,t,n){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+n)/6)}function ig(e){this._context=e}ig.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:Ul(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:Ul(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aT(e){return new ig(e)}function og(e){this._context=e}og.prototype={areaStart:Il,areaEnd:Il,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:Ul(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uT(e){return new og(e)}function lg(e){this._context=e}lg.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ul(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cT(e){return new lg(e)}function fp(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Yc(e,t){this._context=e,this._k=(1-t)/6}Yc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fp(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:fp(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new Yc(r,t)}return n.tension=function(r){return e(+r)},n})(0);function k2(e,t,n){var r=e._x1,i=e._y1,o=e._x2,l=e._y2;if(e._l01_a>cp){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,a=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/a,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/a}if(e._l23_a>cp){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,l=(l*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,l,e._x2,e._y2)}function sg(e,t){this._context=e,this._alpha=t}sg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:k2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const S2=function e(t){function n(r){return t?new sg(r,t):new Yc(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ag(e){this._context=e}ag.prototype={areaStart:Il,areaEnd:Il,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 fT(e){return new ag(e)}function dp(e){return e<0?-1:1}function pp(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),l=(n-e._y1)/(i||r<0&&-0),s=(o*i+l*r)/(r+i);return(dp(o)+dp(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(s))||0}function hp(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ya(e,t,n){var r=e._x0,i=e._y0,o=e._x1,l=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,l-s*n,o,l)}function Hl(e){this._context=e}Hl.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:ya(this,this._t0,hp(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 n=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,ya(this,hp(this,n=pp(this,e,t)),n);break;default:ya(this,this._t0,n=pp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ug(e){this._context=new cg(e)}(ug.prototype=Object.create(Hl.prototype)).point=function(e,t){Hl.prototype.point.call(this,t,e)};function cg(e){this._context=e}cg.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,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function mp(e){return new Hl(e)}function C2(e){return new ug(e)}function fg(e){this._context=e}fg.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=gp(e),i=gp(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function gp(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),l=new Array(n);for(i[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(i[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(l[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function M2(e){return new fg(e)}function As(e,t){this._context=e,this._t=t}As.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function T2(e){return new As(e,.5)}function E2(e){return new As(e,0)}function P2(e){return new As(e,1)}function Yr(e,t){if((l=e.length)>1)for(var n=1,r,i,o=e[t[0]],l,s=o.length;n<l;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Xr(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function N2(e,t){return e[t]}function A2(e){const t=[];return t.key=e,t}function dg(){var e=G([]),t=Xr,n=Yr,r=N2;function i(o){var l=Array.from(e.apply(this,arguments),A2),s,a=l.length,u=-1,c;for(const f of o)for(s=0,++u;s<a;++s)(l[s][u]=[0,+r(f,l[s].key,u,o)]).data=f;for(s=0,c=Ns(t(l));s<a;++s)l[c[s]].index=s;return n(l,c),l}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:G(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:G(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Xr:typeof o=="function"?o:G(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Yr,i):n},i}function $2(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,l;i<o;++i){for(l=n=0;n<r;++n)l+=e[n][i][1]||0;if(l)for(n=0;n<r;++n)e[n][i][1]/=l}Yr(e,t)}}function O2(e,t){if((a=e.length)>0)for(var n,r=0,i,o,l,s,a,u=e[t[0]].length;r<u;++r)for(l=s=0,n=0;n<a;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=l,i[1]=l+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function L2(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var l=0,s=0;l<i;++l)s+=e[l][n][1]||0;r[n][1]+=r[n][0]=-s/2}Yr(e,t)}}function R2(e,t){if(!(!((l=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,l;r<o;++r){for(var s=0,a=0,u=0;s<l;++s){for(var c=e[t[s]],f=c[r][1]||0,d=c[r-1][1]||0,h=(f-d)/2,v=0;v<s;++v){var g=e[t[v]],k=g[r][1]||0,m=g[r-1][1]||0;h+=k-m}a+=f,u+=h*f}i[r-1][1]+=i[r-1][0]=n,a&&(n-=u/a)}i[r-1][1]+=i[r-1][0]=n,Yr(e,t)}}function pg(e){var t=e.map(D2);return Xr(e).sort(function(n,r){return t[n]-t[r]})}function D2(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function hg(e){var t=e.map(mg);return Xr(e).sort(function(n,r){return t[n]-t[r]})}function mg(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function b2(e){return hg(e).reverse()}function j2(e){var t=e.length,n,r,i=e.map(mg),o=pg(e),l=0,s=0,a=[],u=[];for(n=0;n<t;++n)r=o[n],l<s?(l+=i[r],a.push(r)):(s+=i[r],u.push(r));return u.reverse().concat(a)}function F2(e){return Xr(e).reverse()}function Cn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function z2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Xc(e){let t,n,r;e.length!==2?(t=Cn,n=(s,a)=>Cn(e(s),a),r=(s,a)=>e(s)-a):(t=e===Cn||e===z2?e:I2,n=e,r=e);function i(s,a,u=0,c=s.length){if(u<c){if(t(a,a)!==0)return c;do{const f=u+c>>>1;n(s[f],a)<0?u=f+1:c=f}while(u<c)}return u}function o(s,a,u=0,c=s.length){if(u<c){if(t(a,a)!==0)return c;do{const f=u+c>>>1;n(s[f],a)<=0?u=f+1:c=f}while(u<c)}return u}function l(s,a,u=0,c=s.length){const f=i(s,a,u,c-1);return f>u&&r(s[f-1],a)>-r(s[f],a)?f-1:f}return{left:i,center:l,right:o}}function I2(){return 0}function gg(e){return e===null?NaN:+e}function*U2(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const H2=Xc(Cn),yo=H2.right;Xc(gg).center;class vp extends Map{constructor(t,n=V2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(yp(this,t))}has(t){return super.has(yp(this,t))}set(t,n){return super.set(W2(this,t),n)}delete(t){return super.delete(B2(this,t))}}function yp({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function W2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function B2({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function V2(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Y2(e=Cn){if(e===Cn)return vg;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function vg(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const X2=Math.sqrt(50),Q2=Math.sqrt(10),G2=Math.sqrt(2);function Wl(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),l=o>=X2?10:o>=Q2?5:o>=G2?2:1;let s,a,u;return i<0?(u=Math.pow(10,-i)/l,s=Math.round(e*u),a=Math.round(t*u),s/u<e&&++s,a/u>t&&--a,u=-u):(u=Math.pow(10,i)*l,s=Math.round(e/u),a=Math.round(t/u),s*u<e&&++s,a*u>t&&--a),a<s&&.5<=n&&n<2?Wl(e,t,n*2):[s,a,u]}function Ou(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,l]=r?Wl(t,e,n):Wl(e,t,n);if(!(o>=i))return[];const s=o-i+1,a=new Array(s);if(r)if(l<0)for(let u=0;u<s;++u)a[u]=(o-u)/-l;else for(let u=0;u<s;++u)a[u]=(o-u)*l;else if(l<0)for(let u=0;u<s;++u)a[u]=(i+u)/-l;else for(let u=0;u<s;++u)a[u]=(i+u)*l;return a}function Lu(e,t,n){return t=+t,e=+e,n=+n,Wl(e,t,n)[2]}function Ru(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Lu(t,e,n):Lu(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function xp(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function wp(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function yg(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?vg:Y2(i);r>n;){if(r-n>600){const a=r-n+1,u=t-n+1,c=Math.log(a),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(a-f)/a)*(u-a/2<0?-1:1),h=Math.max(n,Math.floor(t-u*f/a+d)),v=Math.min(r,Math.floor(t+(a-u)*f/a+d));yg(e,t,h,v,i)}const o=e[t];let l=n,s=r;for(di(e,n,t),i(e[r],o)>0&&di(e,n,r);l<s;){for(di(e,l,s),++l,--s;i(e[l],o)<0;)++l;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?di(e,n,s):(++s,di(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function di(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function K2(e,t,n){if(e=Float64Array.from(U2(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return wp(e);if(t>=1)return xp(e);var r,i=(r-1)*t,o=Math.floor(i),l=xp(yg(e,o).subarray(0,o+1)),s=wp(e.subarray(o+1));return l+(s-l)*(i-o)}}function q2(e,t,n=gg){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),l=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return l+(s-l)*(i-o)}}function Z2(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function xt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function rn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const _p=Symbol("implicit");function xg(){var e=new vp,t=[],n=[],r=_p;function i(o){let l=e.get(o);if(l===void 0){if(r!==_p)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new vp;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return xg(t,n).unknown(r)},xt.apply(i,arguments),i}function Bl(){var e=xg().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,l,s=!1,a=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,h=i<r,v=h?i:r,g=h?r:i;o=(g-v)/Math.max(1,d-a+u*2),s&&(o=Math.floor(o)),v+=(g-v-o*(d-a))*c,l=o*(1-a),s&&(v=Math.round(v),l=Math.round(l));var k=Z2(d).map(function(m){return v+o*m});return n(h?k.reverse():k)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(a=Math.min(1,u=+d),f()):a},e.paddingInner=function(d){return arguments.length?(a=Math.min(1,d),f()):a},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Bl(t(),[r,i]).round(s).paddingInner(a).paddingOuter(u).align(c)},xt.apply(f(),arguments)}function wg(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return wg(t())},e}function kp(){return wg(Bl.apply(null,arguments).paddingInner(1))}function Qc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _g(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xo(){}var eo=.7,Vl=1/eo,Or="\\s*([+-]?\\d+)\\s*",to="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J2=/^#([0-9a-f]{3,8})$/,e_=new RegExp(`^rgb\\(${Or},${Or},${Or}\\)$`),t_=new RegExp(`^rgb\\(${Ft},${Ft},${Ft}\\)$`),n_=new RegExp(`^rgba\\(${Or},${Or},${Or},${to}\\)$`),r_=new RegExp(`^rgba\\(${Ft},${Ft},${Ft},${to}\\)$`),i_=new RegExp(`^hsl\\(${to},${Ft},${Ft}\\)$`),o_=new RegExp(`^hsla\\(${to},${Ft},${Ft},${to}\\)$`),Sp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qc(xo,Nn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Cp,formatHex:Cp,formatHex8:l_,formatHsl:s_,formatRgb:Mp,toString:Mp});function Cp(){return this.rgb().formatHex()}function l_(){return this.rgb().formatHex8()}function s_(){return kg(this).formatHsl()}function Mp(){return this.rgb().formatRgb()}function Nn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=J2.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Tp(t):n===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Bo(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Bo(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=e_.exec(e))?new He(t[1],t[2],t[3],1):(t=t_.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=n_.exec(e))?Bo(t[1],t[2],t[3],t[4]):(t=r_.exec(e))?Bo(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=i_.exec(e))?Np(t[1],t[2]/100,t[3]/100,1):(t=o_.exec(e))?Np(t[1],t[2]/100,t[3]/100,t[4]):Sp.hasOwnProperty(e)?Tp(Sp[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function Tp(e){return new He(e>>16&255,e>>8&255,e&255,1)}function Bo(e,t,n,r){return r<=0&&(e=t=n=NaN),new He(e,t,n,r)}function a_(e){return e instanceof xo||(e=Nn(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function Du(e,t,n,r){return arguments.length===1?a_(e):new He(e,t,n,r??1)}function He(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Qc(He,Du,_g(xo,{brighter(e){return e=e==null?Vl:Math.pow(Vl,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?eo:Math.pow(eo,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(Zn(this.r),Zn(this.g),Zn(this.b),Yl(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:Ep,formatHex:Ep,formatHex8:u_,formatRgb:Pp,toString:Pp}));function Ep(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}`}function u_(){return`#${Vn(this.r)}${Vn(this.g)}${Vn(this.b)}${Vn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pp(){const e=Yl(this.opacity);return`${e===1?"rgb(":"rgba("}${Zn(this.r)}, ${Zn(this.g)}, ${Zn(this.b)}${e===1?")":`, ${e})`}`}function Yl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vn(e){return e=Zn(e),(e<16?"0":"")+e.toString(16)}function Np(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ct(e,t,n,r)}function kg(e){if(e instanceof Ct)return new Ct(e.h,e.s,e.l,e.opacity);if(e instanceof xo||(e=Nn(e)),!e)return new Ct;if(e instanceof Ct)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,s=o-i,a=(o+i)/2;return s?(t===o?l=(n-r)/s+(n<r)*6:n===o?l=(r-t)/s+2:l=(t-n)/s+4,s/=a<.5?o+i:2-o-i,l*=60):s=a>0&&a<1?0:l,new Ct(l,s,a,e.opacity)}function c_(e,t,n,r){return arguments.length===1?kg(e):new Ct(e,t,n,r??1)}function Ct(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Qc(Ct,c_,_g(xo,{brighter(e){return e=e==null?Vl:Math.pow(Vl,e),new Ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?eo:Math.pow(eo,e),new Ct(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new He(xa(e>=240?e-240:e+120,i,r),xa(e,i,r),xa(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ct(Ap(this.h),Vo(this.s),Vo(this.l),Yl(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=Yl(this.opacity);return`${e===1?"hsl(":"hsla("}${Ap(this.h)}, ${Vo(this.s)*100}%, ${Vo(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ap(e){return e=(e||0)%360,e<0?e+360:e}function Vo(e){return Math.max(0,Math.min(1,e||0))}function xa(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Gc=e=>()=>e;function f_(e,t){return function(n){return e+n*t}}function d_(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function p_(e){return(e=+e)==1?Sg:function(t,n){return n-t?d_(t,n,e):Gc(isNaN(t)?n:t)}}function Sg(e,t){var n=t-e;return n?f_(e,n):Gc(isNaN(e)?t:e)}const $p=function e(t){var n=p_(t);function r(i,o){var l=n((i=Du(i)).r,(o=Du(o)).r),s=n(i.g,o.g),a=n(i.b,o.b),u=Sg(i.opacity,o.opacity);return function(c){return i.r=l(c),i.g=s(c),i.b=a(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function h_(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function m_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function g_(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)i[l]=ni(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(s){for(l=0;l<r;++l)o[l]=i[l](s);return o}}function v_(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Xl(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function y_(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=ni(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var bu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wa=new RegExp(bu.source,"g");function x_(e){return function(){return e}}function w_(e){return function(t){return e(t)+""}}function __(e,t){var n=bu.lastIndex=wa.lastIndex=0,r,i,o,l=-1,s=[],a=[];for(e=e+"",t=t+"";(r=bu.exec(e))&&(i=wa.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[l]?s[l]+=o:s[++l]=o),(r=r[0])===(i=i[0])?s[l]?s[l]+=i:s[++l]=i:(s[++l]=null,a.push({i:l,x:Xl(r,i)})),n=wa.lastIndex;return n<t.length&&(o=t.slice(n),s[l]?s[l]+=o:s[++l]=o),s.length<2?a[0]?w_(a[0].x):x_(t):(t=a.length,function(u){for(var c=0,f;c<t;++c)s[(f=a[c]).i]=f.x(u);return s.join("")})}function ni(e,t){var n=typeof t,r;return t==null||n==="boolean"?Gc(t):(n==="number"?Xl:n==="string"?(r=Nn(t))?(t=r,$p):__:t instanceof Nn?$p:t instanceof Date?v_:m_(t)?h_:Array.isArray(t)?g_:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?y_:Xl)(e,t)}function Kc(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function k_(e,t){t===void 0&&(t=e,e=ni);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(l){var s=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[s](l-s)}}function S_(e){return function(){return e}}function Ql(e){return+e}var Op=[0,1];function be(e){return e}function ju(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:S_(isNaN(t)?NaN:.5)}function C_(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function M_(e,t,n){var r=e[0],i=e[1],o=t[0],l=t[1];return i<r?(r=ju(i,r),o=n(l,o)):(r=ju(r,i),o=n(o,l)),function(s){return o(r(s))}}function T_(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)i[l]=ju(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(s){var a=yo(e,s,1,r)-1;return o[a](i[a](s))}}function wo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $s(){var e=Op,t=Op,n=ni,r,i,o,l=be,s,a,u;function c(){var d=Math.min(e.length,t.length);return l!==be&&(l=C_(e[0],e[d-1])),s=d>2?T_:M_,a=u=null,f}function f(d){return d==null||isNaN(d=+d)?o:(a||(a=s(e.map(r),t,n)))(r(l(d)))}return f.invert=function(d){return l(i((u||(u=s(t,e.map(r),Xl)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Ql),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),n=Kc,c()},f.clamp=function(d){return arguments.length?(l=d?!0:be,c()):l!==be},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(o=d,f):o},function(d,h){return r=d,i=h,c()}}function qc(){return $s()(be,be)}function E_(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Qr(e){return e=Gl(Math.abs(e)),e?e[1]:NaN}function P_(e,t){return function(n,r){for(var i=n.length,o=[],l=0,s=e[0],a=0;i>0&&s>0&&(a+s+1>r&&(s=Math.max(1,r-a)),o.push(n.substring(i-=s,i+s)),!((a+=s+1)>r));)s=e[l=(l+1)%e.length];return o.reverse().join(t)}}function N_(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var A_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function no(e){if(!(t=A_.exec(e)))throw new Error("invalid format: "+e);var t;return new Zc({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]})}no.prototype=Zc.prototype;function Zc(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+""}Zc.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 $_(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Cg;function O_(e,t){var n=Gl(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Cg=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Gl(e,Math.max(0,t+o-1))[0]}function Lp(e,t){var n=Gl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Rp={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:E_,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)=>Lp(e*100,t),r:Lp,s:O_,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Dp(e){return e}var bp=Array.prototype.map,jp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function L_(e){var t=e.grouping===void 0||e.thousands===void 0?Dp:P_(bp.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?Dp:N_(bp.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",a=e.nan===void 0?"NaN":e.nan+"";function u(f){f=no(f);var d=f.fill,h=f.align,v=f.sign,g=f.symbol,k=f.zero,m=f.width,p=f.comma,y=f.precision,x=f.trim,_=f.type;_==="n"?(p=!0,_="g"):Rp[_]||(y===void 0&&(y=12),x=!0,_="g"),(k||d==="0"&&h==="=")&&(k=!0,d="0",h="=");var w=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",S=g==="$"?r:/[%p]/.test(_)?l:"",M=Rp[_],$=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function P(E){var b=w,O=S,j,U,H;if(_==="c")O=M(E)+O,E="";else{E=+E;var V=E<0||1/E<0;if(E=isNaN(E)?a:M(Math.abs(E),y),x&&(E=$_(E)),V&&+E==0&&v!=="+"&&(V=!1),b=(V?v==="("?v:s:v==="-"||v==="("?"":v)+b,O=(_==="s"?jp[8+Cg/3]:"")+O+(V&&v==="("?")":""),$){for(j=-1,U=E.length;++j<U;)if(H=E.charCodeAt(j),48>H||H>57){O=(H===46?i+E.slice(j+1):E.slice(j))+O,E=E.slice(0,j);break}}}p&&!k&&(E=t(E,1/0));var A=b.length+E.length+O.length,D=A<m?new Array(m-A+1).join(d):"";switch(p&&k&&(E=t(D+E,D.length?m-O.length:1/0),D=""),h){case"<":E=b+E+O+D;break;case"=":E=b+D+E+O;break;case"^":E=D.slice(0,A=D.length>>1)+b+E+O+D.slice(A);break;default:E=D+b+E+O;break}return o(E)}return P.toString=function(){return f+""},P}function c(f,d){var h=u((f=no(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(Qr(d)/3)))*3,g=Math.pow(10,-v),k=jp[8+v/3];return function(m){return h(g*m)+k}}return{format:u,formatPrefix:c}}var Yo,Jc,Mg;R_({thousands:",",grouping:[3],currency:["$",""]});function R_(e){return Yo=L_(e),Jc=Yo.format,Mg=Yo.formatPrefix,Yo}function D_(e){return Math.max(0,-Qr(Math.abs(e)))}function b_(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Qr(t)/3)))*3-Qr(Math.abs(e)))}function j_(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Qr(t)-Qr(e))+1}function F_(e,t,n,r){var i=Ru(e,t,n),o;switch(r=no(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=b_(i,l))&&(r.precision=o),Mg(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=j_(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=D_(i))&&(r.precision=o-(r.type==="%")*2);break}}return Jc(r)}function Rn(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ou(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return F_(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,l=r[i],s=r[o],a,u,c=10;for(s<l&&(u=l,l=s,s=u,u=i,i=o,o=u);c-- >0;){if(u=Lu(l,s,n),u===a)return r[i]=l,r[o]=s,t(r);if(u>0)l=Math.floor(l/u)*u,s=Math.ceil(s/u)*u;else if(u<0)l=Math.ceil(l*u)/u,s=Math.floor(s*u)/u;else break;a=u}return e},e}function Tg(){var e=qc();return e.copy=function(){return wo(e,Tg())},xt.apply(e,arguments),Rn(e)}function z_(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Ql),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return z_(e).unknown(t)},e=arguments.length?Array.from(e,Ql):[0,1],Rn(n)}function Eg(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],l;return o<i&&(l=n,n=r,r=l,l=i,i=o,o=l),e[n]=t.floor(i),e[r]=t.ceil(o),e}function Fp(e){return Math.log(e)}function zp(e){return Math.exp(e)}function I_(e){return-Math.log(-e)}function U_(e){return-Math.exp(-e)}function H_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function W_(e){return e===10?H_:e===Math.E?Math.exp:t=>Math.pow(e,t)}function B_(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 Ip(e){return(t,n)=>-e(-t,n)}function ef(e){const t=e(Fp,zp),n=t.domain;let r=10,i,o;function l(){return i=B_(r),o=W_(r),n()[0]<0?(i=Ip(i),o=Ip(o),e(I_,U_)):e(Fp,zp),t}return t.base=function(s){return arguments.length?(r=+s,l()):r},t.domain=function(s){return arguments.length?(n(s),l()):n()},t.ticks=s=>{const a=n();let u=a[0],c=a[a.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),h=i(c),v,g;const k=s==null?10:+s;let m=[];if(!(r%1)&&h-d<k){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(v=1;v<r;++v)if(g=d<0?v/o(-d):v*o(d),!(g<u)){if(g>c)break;m.push(g)}}else for(;d<=h;++d)for(v=r-1;v>=1;--v)if(g=d>0?v/o(-d):v*o(d),!(g<u)){if(g>c)break;m.push(g)}m.length*2<k&&(m=Ou(u,c,k))}else m=Ou(d,h,Math.min(h-d,k)).map(o);return f?m.reverse():m},t.tickFormat=(s,a)=>{if(s==null&&(s=10),a==null&&(a=r===10?"s":","),typeof a!="function"&&(!(r%1)&&(a=no(a)).precision==null&&(a.trim=!0),a=Jc(a)),s===1/0)return a;const u=Math.max(1,r*s/t.ticks().length);return c=>{let f=c/o(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=u?a(c):""}},t.nice=()=>n(Eg(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function Pg(){const e=ef($s()).domain([1,10]);return e.copy=()=>wo(e,Pg()).base(e.base()),xt.apply(e,arguments),e}function Up(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Hp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function tf(e){var t=1,n=e(Up(t),Hp(t));return n.constant=function(r){return arguments.length?e(Up(t=+r),Hp(t)):t},Rn(n)}function V_(){var e=tf($s());return e.copy=function(){return wo(e,V_()).constant(e.constant())},xt.apply(e,arguments)}function Wp(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Y_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function X_(e){return e<0?-e*e:e*e}function nf(e){var t=e(be,be),n=1;function r(){return n===1?e(be,be):n===.5?e(Y_,X_):e(Wp(n),Wp(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Rn(t)}function rf(){var e=nf($s());return e.copy=function(){return wo(e,rf()).exponent(e.exponent())},xt.apply(e,arguments),e}function Q_(){return rf.apply(null,arguments).exponent(.5)}function Bp(e){return Math.sign(e)*e*e}function G_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function K_(){var e=qc(),t=[0,1],n=!1,r;function i(o){var l=G_(e(o));return isNaN(l)?r:n?Math.round(l):l}return i.invert=function(o){return e.invert(Bp(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Ql)).map(Bp)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return K_(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},xt.apply(i,arguments),Rn(i)}function q_(){var e=[],t=[],n=[],r;function i(){var l=0,s=Math.max(1,t.length);for(n=new Array(s-1);++l<s;)n[l-1]=q2(e,l/s);return o}function o(l){return l==null||isNaN(l=+l)?r:t[yo(n,l)]}return o.invertExtent=function(l){var s=t.indexOf(l);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let s of l)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Cn),i()},o.range=function(l){return arguments.length?(t=Array.from(l),i()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return q_().domain(e).range(t).unknown(r)},xt.apply(o,arguments)}function Z_(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function l(a){return a!=null&&a<=a?i[yo(r,a,0,n)]:o}function s(){var a=-1;for(r=new Array(n);++a<n;)r[a]=((a+1)*t-(a-n)*e)/(n+1);return l}return l.domain=function(a){return arguments.length?([e,t]=a,e=+e,t=+t,s()):[e,t]},l.range=function(a){return arguments.length?(n=(i=Array.from(a)).length-1,s()):i.slice()},l.invertExtent=function(a){var u=i.indexOf(a);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},l.unknown=function(a){return arguments.length&&(o=a),l},l.thresholds=function(){return r.slice()},l.copy=function(){return Z_().domain([e,t]).range(i).unknown(o)},xt.apply(Rn(l),arguments)}function J_(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[yo(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return J_().domain(e).range(t).unknown(n)},xt.apply(i,arguments)}const _a=new Date,ka=new Date;function xe(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const l=i(o),s=i.ceil(o);return o-l<s-o?l:s},i.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),i.range=(o,l,s)=>{const a=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<l)||!(s>0))return a;let u;do a.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<l);return a},i.filter=o=>xe(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,s)=>{if(l>=l)if(s<0)for(;++s<=0;)for(;t(l,-1),!o(l););else for(;--s>=0;)for(;t(l,1),!o(l););}),n&&(i.count=(o,l)=>(_a.setTime(+o),ka.setTime(+l),e(_a),e(ka),Math.floor(n(_a,ka))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?l=>r(l)%o===0:l=>i.count(0,l)%o===0):i)),i}const Kl=xe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Kl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Kl);Kl.range;const Vt=1e3,ft=Vt*60,Yt=ft*60,Jt=Yt*24,of=Jt*7,Vp=Jt*30,Sa=Jt*365,Yn=xe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Vt)},(e,t)=>(t-e)/Vt,e=>e.getUTCSeconds());Yn.range;const lf=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vt)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getMinutes());lf.range;const sf=xe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCMinutes());sf.range;const af=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vt-e.getMinutes()*ft)},(e,t)=>{e.setTime(+e+t*Yt)},(e,t)=>(t-e)/Yt,e=>e.getHours());af.range;const uf=xe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Yt)},(e,t)=>(t-e)/Yt,e=>e.getUTCHours());uf.range;const _o=xe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ft)/Jt,e=>e.getDate()-1);_o.range;const Os=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Jt,e=>e.getUTCDate()-1);Os.range;const Ng=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Jt,e=>Math.floor(e/Jt));Ng.range;function ar(e){return xe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ft)/of)}const Ls=ar(0),ql=ar(1),ek=ar(2),tk=ar(3),Gr=ar(4),nk=ar(5),rk=ar(6);Ls.range;ql.range;ek.range;tk.range;Gr.range;nk.range;rk.range;function ur(e){return xe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/of)}const Rs=ur(0),Zl=ur(1),ik=ur(2),ok=ur(3),Kr=ur(4),lk=ur(5),sk=ur(6);Rs.range;Zl.range;ik.range;ok.range;Kr.range;lk.range;sk.range;const cf=xe(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());cf.range;const ff=xe(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());ff.range;const en=xe(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());en.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});en.range;const tn=xe(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());tn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});tn.range;function Ag(e,t,n,r,i,o){const l=[[Yn,1,Vt],[Yn,5,5*Vt],[Yn,15,15*Vt],[Yn,30,30*Vt],[o,1,ft],[o,5,5*ft],[o,15,15*ft],[o,30,30*ft],[i,1,Yt],[i,3,3*Yt],[i,6,6*Yt],[i,12,12*Yt],[r,1,Jt],[r,2,2*Jt],[n,1,of],[t,1,Vp],[t,3,3*Vp],[e,1,Sa]];function s(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const h=f&&typeof f.range=="function"?f:a(u,c,f),v=h?h.range(u,+c+1):[];return d?v.reverse():v}function a(u,c,f){const d=Math.abs(c-u)/f,h=Xc(([,,k])=>k).right(l,d);if(h===l.length)return e.every(Ru(u/Sa,c/Sa,f));if(h===0)return Kl.every(Math.max(Ru(u,c,f),1));const[v,g]=l[d/l[h-1][2]<l[h][2]/d?h-1:h];return v.every(g)}return[s,a]}const[ak,uk]=Ag(tn,ff,Rs,Ng,uf,sf),[ck,fk]=Ag(en,cf,Ls,_o,af,lf);function Ca(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ma(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function pi(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function dk(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,l=e.shortDays,s=e.months,a=e.shortMonths,u=hi(i),c=mi(i),f=hi(o),d=mi(o),h=hi(l),v=mi(l),g=hi(s),k=mi(s),m=hi(a),p=mi(a),y={a:V,A,b:D,B:I,c:null,d:qp,e:qp,f:Dk,g:Vk,G:Xk,H:Ok,I:Lk,j:Rk,L:$g,m:bk,M:jk,p:X,q:Q,Q:eh,s:th,S:Fk,u:zk,U:Ik,V:Uk,w:Hk,W:Wk,x:null,X:null,y:Bk,Y:Yk,Z:Qk,"%":Jp},x={a:Pe,A:fe,b:ge,B:de,c:null,d:Zp,e:Zp,f:Zk,g:aS,G:cS,H:Gk,I:Kk,j:qk,L:Lg,m:Jk,M:eS,p:Re,q:Qe,Q:eh,s:th,S:tS,u:nS,U:rS,V:iS,w:oS,W:lS,x:null,X:null,y:sS,Y:uS,Z:fS,"%":Jp},_={a:P,A:E,b,B:O,c:j,d:Gp,e:Gp,f:Pk,g:Qp,G:Xp,H:Kp,I:Kp,j:Ck,L:Ek,m:Sk,M:Mk,p:$,q:kk,Q:Ak,s:$k,S:Tk,u:vk,U:yk,V:xk,w:gk,W:wk,x:U,X:H,y:Qp,Y:Xp,Z:_k,"%":Nk};y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x);function w(F,B){return function(Y){var L=[],he=-1,J=0,Ce=F.length,we,it,Co;for(Y instanceof Date||(Y=new Date(+Y));++he<Ce;)F.charCodeAt(he)===37&&(L.push(F.slice(J,he)),(it=Yp[we=F.charAt(++he)])!=null?we=F.charAt(++he):it=we==="e"?" ":"0",(Co=B[we])&&(we=Co(Y,it)),L.push(we),J=he+1);return L.push(F.slice(J,he)),L.join("")}}function S(F,B){return function(Y){var L=pi(1900,void 0,1),he=M(L,F,Y+="",0),J,Ce;if(he!=Y.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if(B&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(J=Ma(pi(L.y,0,1)),Ce=J.getUTCDay(),J=Ce>4||Ce===0?Zl.ceil(J):Zl(J),J=Os.offset(J,(L.V-1)*7),L.y=J.getUTCFullYear(),L.m=J.getUTCMonth(),L.d=J.getUTCDate()+(L.w+6)%7):(J=Ca(pi(L.y,0,1)),Ce=J.getDay(),J=Ce>4||Ce===0?ql.ceil(J):ql(J),J=_o.offset(J,(L.V-1)*7),L.y=J.getFullYear(),L.m=J.getMonth(),L.d=J.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),Ce="Z"in L?Ma(pi(L.y,0,1)).getUTCDay():Ca(pi(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(Ce+5)%7:L.w+L.U*7-(Ce+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,Ma(L)):Ca(L)}}function M(F,B,Y,L){for(var he=0,J=B.length,Ce=Y.length,we,it;he<J;){if(L>=Ce)return-1;if(we=B.charCodeAt(he++),we===37){if(we=B.charAt(he++),it=_[we in Yp?B.charAt(he++):we],!it||(L=it(F,Y,L))<0)return-1}else if(we!=Y.charCodeAt(L++))return-1}return L}function $(F,B,Y){var L=u.exec(B.slice(Y));return L?(F.p=c.get(L[0].toLowerCase()),Y+L[0].length):-1}function P(F,B,Y){var L=h.exec(B.slice(Y));return L?(F.w=v.get(L[0].toLowerCase()),Y+L[0].length):-1}function E(F,B,Y){var L=f.exec(B.slice(Y));return L?(F.w=d.get(L[0].toLowerCase()),Y+L[0].length):-1}function b(F,B,Y){var L=m.exec(B.slice(Y));return L?(F.m=p.get(L[0].toLowerCase()),Y+L[0].length):-1}function O(F,B,Y){var L=g.exec(B.slice(Y));return L?(F.m=k.get(L[0].toLowerCase()),Y+L[0].length):-1}function j(F,B,Y){return M(F,t,B,Y)}function U(F,B,Y){return M(F,n,B,Y)}function H(F,B,Y){return M(F,r,B,Y)}function V(F){return l[F.getDay()]}function A(F){return o[F.getDay()]}function D(F){return a[F.getMonth()]}function I(F){return s[F.getMonth()]}function X(F){return i[+(F.getHours()>=12)]}function Q(F){return 1+~~(F.getMonth()/3)}function Pe(F){return l[F.getUTCDay()]}function fe(F){return o[F.getUTCDay()]}function ge(F){return a[F.getUTCMonth()]}function de(F){return s[F.getUTCMonth()]}function Re(F){return i[+(F.getUTCHours()>=12)]}function Qe(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var B=w(F+="",y);return B.toString=function(){return F},B},parse:function(F){var B=S(F+="",!1);return B.toString=function(){return F},B},utcFormat:function(F){var B=w(F+="",x);return B.toString=function(){return F},B},utcParse:function(F){var B=S(F+="",!0);return B.toString=function(){return F},B}}}var Yp={"-":"",_:" ",0:"0"},Se=/^\s*\d+/,pk=/^%/,hk=/[\\^$*+?|[\]().{}]/g;function Z(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function mk(e){return e.replace(hk,"\\$&")}function hi(e){return new RegExp("^(?:"+e.map(mk).join("|")+")","i")}function mi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function gk(e,t,n){var r=Se.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vk(e,t,n){var r=Se.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function yk(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xk(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function wk(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Xp(e,t,n){var r=Se.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Qp(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _k(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function kk(e,t,n){var r=Se.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Sk(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Gp(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ck(e,t,n){var r=Se.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Kp(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Mk(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Tk(e,t,n){var r=Se.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ek(e,t,n){var r=Se.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Pk(e,t,n){var r=Se.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nk(e,t,n){var r=pk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ak(e,t,n){var r=Se.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $k(e,t,n){var r=Se.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function qp(e,t){return Z(e.getDate(),t,2)}function Ok(e,t){return Z(e.getHours(),t,2)}function Lk(e,t){return Z(e.getHours()%12||12,t,2)}function Rk(e,t){return Z(1+_o.count(en(e),e),t,3)}function $g(e,t){return Z(e.getMilliseconds(),t,3)}function Dk(e,t){return $g(e,t)+"000"}function bk(e,t){return Z(e.getMonth()+1,t,2)}function jk(e,t){return Z(e.getMinutes(),t,2)}function Fk(e,t){return Z(e.getSeconds(),t,2)}function zk(e){var t=e.getDay();return t===0?7:t}function Ik(e,t){return Z(Ls.count(en(e)-1,e),t,2)}function Og(e){var t=e.getDay();return t>=4||t===0?Gr(e):Gr.ceil(e)}function Uk(e,t){return e=Og(e),Z(Gr.count(en(e),e)+(en(e).getDay()===4),t,2)}function Hk(e){return e.getDay()}function Wk(e,t){return Z(ql.count(en(e)-1,e),t,2)}function Bk(e,t){return Z(e.getFullYear()%100,t,2)}function Vk(e,t){return e=Og(e),Z(e.getFullYear()%100,t,2)}function Yk(e,t){return Z(e.getFullYear()%1e4,t,4)}function Xk(e,t){var n=e.getDay();return e=n>=4||n===0?Gr(e):Gr.ceil(e),Z(e.getFullYear()%1e4,t,4)}function Qk(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Z(t/60|0,"0",2)+Z(t%60,"0",2)}function Zp(e,t){return Z(e.getUTCDate(),t,2)}function Gk(e,t){return Z(e.getUTCHours(),t,2)}function Kk(e,t){return Z(e.getUTCHours()%12||12,t,2)}function qk(e,t){return Z(1+Os.count(tn(e),e),t,3)}function Lg(e,t){return Z(e.getUTCMilliseconds(),t,3)}function Zk(e,t){return Lg(e,t)+"000"}function Jk(e,t){return Z(e.getUTCMonth()+1,t,2)}function eS(e,t){return Z(e.getUTCMinutes(),t,2)}function tS(e,t){return Z(e.getUTCSeconds(),t,2)}function nS(e){var t=e.getUTCDay();return t===0?7:t}function rS(e,t){return Z(Rs.count(tn(e)-1,e),t,2)}function Rg(e){var t=e.getUTCDay();return t>=4||t===0?Kr(e):Kr.ceil(e)}function iS(e,t){return e=Rg(e),Z(Kr.count(tn(e),e)+(tn(e).getUTCDay()===4),t,2)}function oS(e){return e.getUTCDay()}function lS(e,t){return Z(Zl.count(tn(e)-1,e),t,2)}function sS(e,t){return Z(e.getUTCFullYear()%100,t,2)}function aS(e,t){return e=Rg(e),Z(e.getUTCFullYear()%100,t,2)}function uS(e,t){return Z(e.getUTCFullYear()%1e4,t,4)}function cS(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Kr(e):Kr.ceil(e),Z(e.getUTCFullYear()%1e4,t,4)}function fS(){return"+0000"}function Jp(){return"%"}function eh(e){return+e}function th(e){return Math.floor(+e/1e3)}var dr,Dg,bg;dS({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 dS(e){return dr=dk(e),Dg=dr.format,dr.parse,bg=dr.utcFormat,dr.utcParse,dr}function pS(e){return new Date(e)}function hS(e){return e instanceof Date?+e:+new Date(+e)}function df(e,t,n,r,i,o,l,s,a,u){var c=qc(),f=c.invert,d=c.domain,h=u(".%L"),v=u(":%S"),g=u("%I:%M"),k=u("%I %p"),m=u("%a %d"),p=u("%b %d"),y=u("%B"),x=u("%Y");function _(w){return(a(w)<w?h:s(w)<w?v:l(w)<w?g:o(w)<w?k:r(w)<w?i(w)<w?m:p:n(w)<w?y:x)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?d(Array.from(w,hS)):d().map(pS)},c.ticks=function(w){var S=d();return e(S[0],S[S.length-1],w??10)},c.tickFormat=function(w,S){return S==null?_:u(S)},c.nice=function(w){var S=d();return(!w||typeof w.range!="function")&&(w=t(S[0],S[S.length-1],w??10)),w?d(Eg(S,w)):c},c.copy=function(){return wo(c,df(e,t,n,r,i,o,l,s,a,u))},c}function mS(){return xt.apply(df(ck,fk,en,cf,Ls,_o,af,lf,Yn,Dg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gS(){return xt.apply(df(ak,uk,tn,ff,Rs,Os,uf,sf,Yn,bg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ds(){var e=0,t=1,n,r,i,o,l=be,s=!1,a;function u(f){return f==null||isNaN(f=+f)?a:l(i===0?.5:(f=(o(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(l=f,u):l};function c(f){return function(d){var h,v;return arguments.length?([h,v]=d,l=f(h,v),u):[l(0),l(1)]}}return u.range=c(ni),u.rangeRound=c(Kc),u.unknown=function(f){return arguments.length?(a=f,u):a},function(f){return o=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function Dn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function vS(){var e=Rn(Ds()(be));return e.copy=function(){return Dn(e,vS())},rn.apply(e,arguments)}function yS(){var e=ef(Ds()).domain([1,10]);return e.copy=function(){return Dn(e,yS()).base(e.base())},rn.apply(e,arguments)}function xS(){var e=tf(Ds());return e.copy=function(){return Dn(e,xS()).constant(e.constant())},rn.apply(e,arguments)}function jg(){var e=nf(Ds());return e.copy=function(){return Dn(e,jg()).exponent(e.exponent())},rn.apply(e,arguments)}function dT(){return jg.apply(null,arguments).exponent(.5)}function wS(){var e=[],t=be;function n(r){if(r!=null&&!isNaN(r=+r))return t((yo(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Cn),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>K2(e,o/r))},n.copy=function(){return wS(t).domain(e)},rn.apply(n,arguments)}function bs(){var e=0,t=.5,n=1,r=1,i,o,l,s,a,u=be,c,f=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+c(g))-o)*(r*g<r*o?s:a),u(f?Math.max(0,Math.min(1,g)):g))}h.domain=function(g){return arguments.length?([e,t,n]=g,i=c(e=+e),o=c(t=+t),l=c(n=+n),s=i===o?0:.5/(o-i),a=o===l?0:.5/(l-o),r=o<i?-1:1,h):[e,t,n]},h.clamp=function(g){return arguments.length?(f=!!g,h):f},h.interpolator=function(g){return arguments.length?(u=g,h):u};function v(g){return function(k){var m,p,y;return arguments.length?([m,p,y]=k,u=k_(g,[m,p,y]),h):[u(0),u(.5),u(1)]}}return h.range=v(ni),h.rangeRound=v(Kc),h.unknown=function(g){return arguments.length?(d=g,h):d},function(g){return c=g,i=g(e),o=g(t),l=g(n),s=i===o?0:.5/(o-i),a=o===l?0:.5/(l-o),r=o<i?-1:1,h}}function _S(){var e=Rn(bs()(be));return e.copy=function(){return Dn(e,_S())},rn.apply(e,arguments)}function kS(){var e=ef(bs()).domain([.1,1,10]);return e.copy=function(){return Dn(e,kS()).base(e.base())},rn.apply(e,arguments)}function SS(){var e=tf(bs());return e.copy=function(){return Dn(e,SS()).constant(e.constant())},rn.apply(e,arguments)}function Fg(){var e=nf(bs());return e.copy=function(){return Dn(e,Fg()).exponent(e.exponent())},rn.apply(e,arguments)}function pT(){return Fg.apply(null,arguments).exponent(.5)}const zg="base";function CS(e){return`${zg}--${e}`}function MS(e,t){return`${zg}-${e}-${t}`}function TS(e,t){const n=jv[t];return n?CS(n):MS(e,t)}function ES(e){return typeof e=="function"?e():e}const PS=T.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[l,s]=T.useState(null),a=Ri(T.isValidElement(r)?r.ref:null,n);if(Tn(()=>{o||s(ES(i)||document.body)},[i,o]),Tn(()=>{if(l&&!o)return Wf(n,l),()=>{Wf(n,null)}},[n,l,o]),o){if(T.isValidElement(r)){const u={ref:a};return T.cloneElement(r,u)}return N.jsx(T.Fragment,{children:r})}return N.jsx(T.Fragment,{children:l&&Cs.createPortal(r,l)})});function Ig(e){const{children:t,defer:n=!1,fallback:r=null}=e,[i,o]=T.useState(!1);return Tn(()=>{n||o(!0)},[n]),T.useEffect(()=>{n&&o(!0)},[n]),N.jsx(T.Fragment,{children:i?t:r})}const NS="Popper";function AS(e){return TS(NS,e)}const $S=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],OS=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function LS(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Fu(e){return typeof e=="function"?e():e}function RS(e){return e.nodeType!==void 0}const DS=()=>tt({root:["root"]},qw(AS)),bS={},jS=T.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:l,disablePortal:s,modifiers:a,open:u,placement:c,popperOptions:f,popperRef:d,slotProps:h={},slots:v={},TransitionProps:g}=t,k=te(t,$S),m=T.useRef(null),p=Ri(m,n),y=T.useRef(null),x=Ri(y,d),_=T.useRef(x);Tn(()=>{_.current=x},[x]),T.useImperativeHandle(d,()=>y.current,[]);const w=LS(c,l),[S,M]=T.useState(w),[$,P]=T.useState(Fu(i));T.useEffect(()=>{y.current&&y.current.forceUpdate()}),T.useEffect(()=>{i&&P(Fu(i))},[i]),Tn(()=>{if(!$||!u)return;const U=A=>{M(A.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{U(A)}}];a!=null&&(H=H.concat(a)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const V=Yw($,m.current,C({placement:w},f,{modifiers:H}));return _.current(V),()=>{V.destroy(),_.current(null)}},[$,s,a,u,f,w]);const E={placement:S};g!==null&&(E.TransitionProps=g);const b=DS(),O=(r=v.root)!=null?r:"div",j=Nt({elementType:O,externalSlotProps:h.root,externalForwardedProps:k,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:b.root});return N.jsx(O,C({},j,{children:typeof o=="function"?o(E):o}))}),FS=T.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:l="ltr",disablePortal:s=!1,keepMounted:a=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:d=bS,popperRef:h,style:v,transition:g=!1,slotProps:k={},slots:m={}}=t,p=te(t,OS),[y,x]=T.useState(!0),_=()=>{x(!1)},w=()=>{x(!0)};if(!a&&!c&&(!g||y))return null;let S;if(o)S=o;else if(r){const P=Fu(r);S=P&&RS(P)?Bf(P).body:Bf(null).body}const M=!c&&a&&(!g||y)?"none":void 0,$=g?{in:c,onEnter:_,onExited:w}:void 0;return N.jsx(PS,{disablePortal:s,container:S,children:N.jsx(jS,C({anchorEl:r,direction:l,disablePortal:s,modifiers:u,ref:n,open:g?!y:c,placement:f,popperOptions:d,popperRef:h,slotProps:k,slots:m},p,{style:C({position:"fixed",top:0,left:0,display:M},v),TransitionProps:$,children:i}))})}),Ta={appearance:pg,ascending:hg,descending:b2,insideOut:j2,none:Xr,reverse:F2},Ea={expand:$2,diverging:O2,none:Yr,silhouette:L2,wiggle:R2},Ug=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,i=[],o={};return n.forEach(l=>{const{stack:s,stackOrder:a,stackOffset:u}=t[l];if(s===void 0)i.push({ids:[l],stackingOrder:Ta.none,stackingOffset:Ea.none});else if(o[s]===void 0){var c,f;o[s]=i.length,i.push({ids:[l],stackingOrder:Ta[(c=a??(r==null?void 0:r.stackOrder))!=null?c:"none"],stackingOffset:Ea[(f=u??(r==null?void 0:r.stackOffset))!=null?f:"diverging"]})}else i[o[s]].ids.push(l),a!==void 0&&(i[o[s]].stackingOrder=Ta[a]),u!==void 0&&(i[o[s]].stackingOffset=Ea[u])}),i};function pf(e,t){const n={};return Object.keys(e).forEach(r=>{var i;n[r]=C({},e[r],{valueFormatter:(i=e[r].valueFormatter)!=null?i:t})}),n}const zS=(e,t)=>{var n;const{seriesOrder:r,series:i}=e,o=Ug(e),l=(n=t)!=null?n:[];r.forEach(a=>{const u=i[a].data;if(u!==void 0)u.forEach((c,f)=>{l.length<=f?l.push({[a]:c}):l[f][a]=c});else if(t===void 0)throw new Error([`MUI-X-Charts: bar series with id='${a}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
`))});const s={};return o.forEach(a=>{const{ids:u,stackingOffset:c,stackingOrder:f}=a,d=dg().keys(u.map(h=>{const v=i[h].dataKey;return i[h].data===void 0&&v!==void 0?v:h})).value((h,v)=>{var g;return(g=h[v])!=null?g:0}).order(f).offset(c)(l);u.forEach((h,v)=>{const g=i[h].dataKey;s[h]=C({layout:"vertical"},i[h],{data:g?t.map(k=>{const m=k[g];return typeof m!="number"?0:m}):i[h].data,stackedData:d[v].map(([k,m])=>[k,m])})})}),{seriesOrder:r,stackingGroups:o,series:pf(s,a=>a==null?void 0:a.toLocaleString())}},IS=({series:e,seriesOrder:t})=>({series:pf(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),US=(e,t)=>{var n;const{seriesOrder:r,series:i}=e,o=Ug(C({},e,{defaultStrategy:{stackOffset:"none"}})),l=(n=t)!=null?n:[];r.forEach(a=>{const u=i[a].data;u!==void 0&&u.forEach((c,f)=>{l.length<=f?l.push({[a]:c}):l[f][a]=c})});const s={};return o.forEach(a=>{const{ids:u,stackingOrder:c,stackingOffset:f}=a,d=dg().keys(u.map(h=>{const v=i[h].dataKey;return i[h].data===void 0&&v!==void 0?v:h})).value((h,v)=>{var g;return(g=h[v])!=null?g:0}).order(c).offset(f)(l);u.forEach((h,v)=>{const g=i[h].dataKey;s[h]=C({},i[h],{data:g?t.map(k=>{const m=k[g];return typeof m!="number"?null:m}):i[h].data,stackedData:d[v].map(([k,m])=>[k,m])})})}),{seriesOrder:r,stackingGroups:o,series:pf(s,a=>a==null?void 0:a.toLocaleString())}},HS=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},WS=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(i=>{var o,l,s,a;const u=a2().startAngle(2*Math.PI*((o=n[i].startAngle)!=null?o:0)/360).endAngle(2*Math.PI*((l=n[i].endAngle)!=null?l:360)/360).padAngle(2*Math.PI*((s=n[i].paddingAngle)!=null?s:0)/360).sortValues(HS((a=n[i].sortingValues)!=null?a:"none"))(n[i].data.map(c=>c.value));r[i]=C({valueFormatter:c=>c.value.toLocaleString()},n[i],{data:n[i].data.map((c,f)=>{var d;return C({},c,{id:(d=c.id)!=null?d:`auto-generated-pie-id-${i}-${f}`},u[f])}).map(c=>{var f,d,h;return C({},c,{formattedValue:(f=(d=(h=n[i]).valueFormatter)==null?void 0:d.call(h,c))!=null?f:c.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},BS=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function VS(e,t,n=BS){return e.type==="pie"?C({},e,{data:e.data.map((r,i)=>C({color:n[i%n.length]},r))}):C({color:n[t%n.length]},e)}const YS=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],XS=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],QS=e=>e==="dark"?XS:YS,on=T.createContext({}),Pa={bar:zS,scatter:IS,line:US,pie:WS},GS=(e,t,n)=>{const r={};e.forEach((o,l)=>{var s;const{id:a=`auto-generated-id-${l}`,type:u}=o;if(r[u]===void 0&&(r[u]={series:{},seriesOrder:[]}),((s=r[u])==null?void 0:s.series[a])!==void 0)throw new Error(`MUI-X-Charts: series' id "${a}" is not unique`);r[u].series[a]=C({id:a},VS(o,l,t)),r[u].seriesOrder.push(a)});const i={};return Object.keys(Pa).forEach(o=>{if(r[o]!==void 0){var l,s;i[o]=(l=(s=Pa[o])==null?void 0:s.call(Pa,r[o],n))!=null?l:r[o]}}),i};function KS(e){const{series:t,dataset:n,colors:r=QS,children:i}=e,o=mo(),l=T.useMemo(()=>GS(t,typeof r=="function"?r(o.palette.mode):r,n),[t,r,o.palette.mode,n]);return N.jsx(on.Provider,{value:l,children:i})}const Hg=e=>{var t,n;const{axis:r}=e,i=Math.min(...(t=r.data)!=null?t:[]),o=Math.max(...(n=r.data)!=null?n:[]);return[i,o]},Wg=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(i=>t[i].yAxisKey===n.id||r&&t[i].yAxisKey===void 0).reduce((i,o)=>{const[l,s]=t[o].stackedData.reduce((a,u)=>[Math.min(...u,...a[0]===null?[]:[a[0]]),Math.max(...u,...a[1]===null?[]:[a[1]])],t[o].stackedData[0]);return[i[0]===null?l:Math.min(l,i[0]),i[1]===null?s:Math.max(s,i[1])]},[null,null])},qS=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?Wg(e):Hg(e),ZS=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?Hg(e):Wg(e),Jl=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],JS=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(i=>t[i].xAxisKey===n.id||t[i].xAxisKey===void 0&&r).reduce((i,o)=>{const l=t[o].data.reduce((s,{x:a})=>Jl(s,[a,a]),[null,null]);return Jl(i,l)},[null,null])},eC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(i=>t[i].yAxisKey===n.id||t[i].yAxisKey===void 0&&r).reduce((i,o)=>{const l=t[o].data.reduce((s,{y:a})=>Jl(s,[a,a]),[null,null]);return Jl(i,l)},[null,null])},tC=e=>{var t,n;const{axis:r}=e,i=Math.min(...(t=r.data)!=null?t:[]),o=Math.max(...(n=r.data)!=null?n:[]);return[i,o]};function nC(e,t){return t.length===0?[null,null]:t.reduce((n,r)=>{const[i,o]=e(r);return n[0]===null?[Math.min(i,o),Math.max(i,o)]:[Math.min(i,o,n[0]),Math.max(i,o,n[1])]},e(t[0]))}const rC=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(i=>t[i].yAxisKey===n.id||r&&t[i].yAxisKey===void 0).reduce((i,o)=>{const{area:l,stackedData:s}=t[o],c=nC(l!==void 0?h=>h:h=>[h[1],h[1]],s);if(i[0]===null)return c;if(c[0]===null)return i;const[f,d]=c;return[Math.min(f,i[0]),Math.max(d,i[1])]},[null,null])};function nh(e){return e.scaleType==="band"}function rh(e){return e.scaleType==="point"}function ih(e,t,n){switch(e){case"log":return Pg(t,n);case"pow":return rf(t,n);case"sqrt":return Q_(t,n);case"time":return mS(t,n);case"utc":return gS(t,n);default:return Tg(t,n)}}const ro="DEFAULT_X_AXIS_KEY",oh="DEFAULT_Y_AXIS_KEY",iC={top:50,bottom:50,left:50,right:50},oC=(e,t,n)=>{const r=C({},iC,n);return T.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},cr=T.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400}),hf=T.createContext({current:null});function lC(e){const{width:t,height:n,margin:r,svgRef:i,children:o}=e,l=oC(t,n,r);return N.jsx(hf.Provider,{value:i,children:N.jsx(cr.Provider,{value:l,children:o})})}function io(e){return e.bandwidth!==void 0}function lh(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:i,domain:o}=e,l=n===void 0?999:Math.floor(Math.abs(o[1]-o[0])/n),s=t===void 0?2:Math.ceil(Math.abs(o[1]-o[0])/t),a=r??Math.floor(Math.abs(i[1]-i[0])/50);return Math.min(l,Math.max(s,a))}function Bg(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:i}=e;return T.useMemo(()=>{if(io(t)){const l=t.domain();return t.bandwidth()>0?[...l.map(a=>{var u;return{value:a,formattedValue:(u=r==null?void 0:r(a))!=null?u:`${a}`,offset:t(a)-(t.step()-t.bandwidth())/2,labelOffset:t.step()/2}}),{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:(typeof i=="function"&&l.filter(i)||typeof i=="object"&&i||l).map(a=>{var u;return{value:a,formattedValue:(u=r==null?void 0:r(a))!=null?u:`${a}`,offset:t(a),labelOffset:0}})}return(typeof i=="object"?i:t.ticks(n)).map(l=>{var s;return{value:l,formattedValue:(s=r==null?void 0:r(l))!=null?s:t.tickFormat(n)(l),offset:t(l),labelOffset:0}})},[n,t,r,i])}const sh=.2,sC=.1,aC={bar:qS,scatter:JS,line:tC},uC={bar:ZS,scatter:eC,line:rC},et=T.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function cC(e){const{xAxis:t,yAxis:n,dataset:r,children:i}=e,o=T.useContext(on),l=T.useContext(cr),s=T.useMemo(()=>t==null?void 0:t.map(c=>{const f=c.dataKey;if(f===void 0||c.data!==void 0)return c;if(r===void 0)throw Error("MUI-X-Charts: x-axis uses `dataKey` but no `dataset` is provided.");return C({},c,{data:r.map(d=>d[f])})}),[t,r]),a=T.useMemo(()=>n==null?void 0:n.map(c=>{const f=c.dataKey;if(f===void 0||c.data!==void 0)return c;if(r===void 0)throw Error("MUI-X-Charts: y-axis uses `dataKey` but no `dataset` is provided.");return C({},c,{data:r.map(d=>d[f])})}),[n,r]),u=T.useMemo(()=>{var c,f;const d=(p,y,x,_,w)=>{var S,M;const $=_[y],P=(S=(M=o[y])==null?void 0:M.series)!=null?S:{},[E,b]=$({series:P,axis:x,isDefaultAxis:w}),[O,j]=p;return O===null||j===null?[E,b]:E===null||b===null?[O,j]:[Math.min(E,O),Math.max(b,j)]},h=(p,y,x)=>Object.keys(y).reduce((w,S)=>d(w,S,p,y,x),[null,null]),v=[...(c=s==null?void 0:s.map((p,y)=>C({id:`deaultized-x-axis-${y}`},p)))!=null?c:[],...s===void 0||s.findIndex(({id:p})=>p===ro)===-1?[{id:ro,scaleType:"linear"}]:[]],g={};v.forEach((p,y)=>{var x,_,w,S,M;const $=y===0,[P,E]=h(p,aC,$),b=p.reverse?[l.left+l.width,l.left]:[l.left,l.left+l.width];if(nh(p)){var O,j;const X=(O=p.categoryGapRatio)!=null?O:sh,Q=(j=p.barGapRatio)!=null?j:sC;g[p.id]=C({categoryGapRatio:X,barGapRatio:Q},p,{scale:Bl(p.data,b).paddingInner(X).paddingOuter(X/2),tickNumber:p.data.length})}if(rh(p)&&(g[p.id]=C({},p,{scale:kp(p.data,b),tickNumber:p.data.length})),p.scaleType==="band"||p.scaleType==="point")return;const U=(x=p.scaleType)!=null?x:"linear",H=[(_=p.min)!=null?_:P,(w=p.max)!=null?w:E],V=lh(C({},p,{range:b,domain:H})),A=ih(U,H,b).nice(V),D=A.domain(),I=[(S=p.min)!=null?S:D[0],(M=p.max)!=null?M:D[1]];g[p.id]=C({},p,{scaleType:U,scale:A.domain(I),tickNumber:V})});const k=[...(f=a==null?void 0:a.map((p,y)=>C({id:`deaultized-y-axis-${y}`},p)))!=null?f:[],...a===void 0||a.findIndex(({id:p})=>p===oh)===-1?[{id:oh,scaleType:"linear"}]:[]],m={};return k.forEach((p,y)=>{var x,_,w,S,M;const $=y===0,[P,E]=h(p,uC,$),b=p.reverse?[l.top,l.top+l.height]:[l.top+l.height,l.top];if(nh(p)){var O;const I=(O=p.categoryGapRatio)!=null?O:sh;m[p.id]=C({categoryGapRatio:I,barGapRatio:0},p,{scale:Bl(p.data,[b[1],b[0]]).paddingInner(I).paddingOuter(I/2),tickNumber:p.data.length})}if(rh(p)&&(m[p.id]=C({},p,{scale:kp(p.data,[b[1],b[0]]),tickNumber:p.data.length})),p.scaleType==="band"||p.scaleType==="point")return;const j=(x=p.scaleType)!=null?x:"linear",U=[(_=p.min)!=null?_:P,(w=p.max)!=null?w:E],H=lh(C({},p,{range:b,domain:U})),V=ih(j,U,b).nice(H),A=V.domain(),D=[(S=p.min)!=null?S:A[0],(M=p.max)!=null?M:A[1]];m[p.id]=C({},p,{scaleType:j,scale:V.domain(D),tickNumber:H})}),{xAxis:g,yAxis:m,xAxisIds:v.map(({id:p})=>p),yAxisIds:k.map(({id:p})=>p)}},[l.height,l.left,l.top,l.width,o,s,a]);return N.jsx(et.Provider,{value:u,children:i})}const ln=T.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),fC=(e,t)=>{switch(t.type){case"enterItem":return C({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:C({},e,{item:null});case"updateAxis":return C({},e,{axis:t.data});default:return e}};function dC(e){const{children:t}=e,[n,r]=T.useReducer(fC,{item:null,axis:{x:null,y:null}}),i=T.useMemo(()=>C({},n,{dispatch:r}),[n]);return N.jsx(ln.Provider,{value:i,children:t})}const mf={highlighted:"none",faded:"none"},Vg=T.createContext({item:null,scope:mf,dispatch:()=>null}),pC=(e,t)=>{switch(t.type){case"enterItem":return C({},e,{item:t.item,scope:C({},mf,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:C({},e,{item:null});default:return e}};function hC(e){const{children:t}=e,[n,r]=T.useReducer(pC,{item:null,scope:mf}),i=T.useMemo(()=>C({},n,{dispatch:r}),[n]);return N.jsx(Vg.Provider,{value:i,children:t})}const gf=e=>{const{dispatch:t}=T.useContext(ln),{dispatch:n}=T.useContext(Vg);return i=>({onMouseEnter:()=>{t({type:"enterItem",data:i}),n({type:"enterItem",item:i,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:i}),n({type:"leaveItem",item:i})}})},vf=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},yf=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},mC=["id","classes","color","highlightScope","slots","slotProps"];function gC(e){return At("MuiAreaElement",e)}It("MuiAreaElement",["root","highlighted","faded"]);const vC=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:i}=e,o={root:["root",`series-${n}`,i&&"highlighted",r&&"faded"]};return tt(o,gC,t)},Yg=Le("path",{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Nn(e.color).brighter(1).formatHex():Nn(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));Yg.propTypes={as:W.elementType,ownerState:W.shape({classes:W.object,color:W.string.isRequired,id:W.string.isRequired,isFaded:W.bool.isRequired,isHighlighted:W.bool.isRequired}).isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};function yC(e){var t;const{id:n,classes:r,color:i,highlightScope:o,slots:l,slotProps:s}=e,a=te(e,mC),u=gf(o),{item:c}=T.useContext(ln),f=vf(c,{type:"line",seriesId:n},o),d=!f&&yf(c,{type:"line",seriesId:n},o),h={id:n,classes:r,color:i,isFaded:d,isHighlighted:f},v=vC(h),g=(t=l==null?void 0:l.area)!=null?t:Yg,k=Nt({elementType:g,externalSlotProps:s==null?void 0:s.area,additionalProps:C({},a,u({type:"line",seriesId:n}),{className:v.root}),ownerState:h});return N.jsx(g,C({},k))}function qr(e){return io(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function Xg(e){switch(e){case"catmullRom":return S2.alpha(.5);case"linear":return Vc;case"monotoneX":return mp;case"monotoneY":return C2;case"natural":return M2;case"step":return T2;case"stepBefore":return E2;case"stepAfter":return P2;default:return mp}}const xC=["slots","slotProps"];function wC(e){const{slots:t,slotProps:n}=e,r=te(e,xC),i=T.useContext(on).line,o=T.useContext(et);if(i===void 0)return null;const{series:l,stackingGroups:s}=i,{xAxis:a,yAxis:u,xAxisIds:c,yAxisIds:f}=o,d=c[0],h=f[0];return N.jsx("g",C({},r,{children:s.flatMap(({ids:v})=>v.flatMap(g=>{var k;const{xAxisKey:m=d,yAxisKey:p=h,stackedData:y,data:x,connectNulls:_}=l[g],w=qr(a[m].scale),S=u[p].scale,M=a[m].data,$=o2().x(O=>w(O.x)).defined((O,j)=>_||x[j]!=null).y0(O=>O.y&&S(O.y[0])).y1(O=>O.y&&S(O.y[1])),P=Xg(l[g].curve),E=(k=M==null?void 0:M.map((O,j)=>({x:O,y:y[j]})))!=null?k:[],b=_?E.filter((O,j)=>x[j]!=null):E;return!!l[g].area&&N.jsx(yC,{id:g,d:$.curve(P)(b)||void 0,color:l[g].color,highlightScope:l[g].highlightScope,slots:t,slotProps:n},g)}))}))}const _C=["id","classes","color","highlightScope","slots","slotProps"];function kC(e){return At("MuiLineElement",e)}It("MuiLineElement",["root","highlighted","faded"]);const SC=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:i}=e,o={root:["root",`series-${n}`,i&&"highlighted",r&&"faded"]};return tt(o,kC,t)},Qg=Le("path",{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.isHighlighted?Nn(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));Qg.propTypes={as:W.elementType,ownerState:W.shape({classes:W.object,color:W.string.isRequired,id:W.string.isRequired,isFaded:W.bool.isRequired,isHighlighted:W.bool.isRequired}).isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};function CC(e){var t;const{id:n,classes:r,color:i,highlightScope:o,slots:l,slotProps:s}=e,a=te(e,_C),u=gf(o),{item:c}=T.useContext(ln),f=vf(c,{type:"line",seriesId:n},o),d=!f&&yf(c,{type:"line",seriesId:n},o),h={id:n,classes:r,color:i,isFaded:d,isHighlighted:f},v=SC(h),g=(t=l==null?void 0:l.line)!=null?t:Qg,k=Nt({elementType:g,externalSlotProps:s==null?void 0:s.line,additionalProps:C({},a,u({type:"line",seriesId:n}),{className:v.root}),ownerState:h});return N.jsx(g,C({},k))}const MC=["slots","slotProps"];function TC(e){const{slots:t,slotProps:n}=e,r=te(e,MC),i=T.useContext(on).line,o=T.useContext(et);if(i===void 0)return null;const{series:l,stackingGroups:s}=i,{xAxis:a,yAxis:u,xAxisIds:c,yAxisIds:f}=o,d=c[0],h=f[0];return N.jsx("g",C({},r,{children:s.flatMap(({ids:v})=>v.flatMap(g=>{var k;const{xAxisKey:m=d,yAxisKey:p=h,stackedData:y,data:x,connectNulls:_}=l[g],w=qr(a[m].scale),S=u[p].scale,M=a[m].data,$=J0().x(O=>w(O.x)).defined((O,j)=>_||x[j]!=null).y(O=>S(O.y[1])),P=Xg(l[g].curve),E=(k=M==null?void 0:M.map((O,j)=>({x:O,y:y[j]})))!=null?k:[],b=_?E.filter((O,j)=>x[j]!=null):E;return N.jsx(CC,{id:g,d:$.curve(P)(b)||void 0,color:l[g].color,highlightScope:l[g].highlightScope,slots:t,slotProps:n},g)}))}))}var EC=Object.defineProperty,PC=(e,t)=>{for(var n in t)EC(e,n,{get:t[n],enumerable:!0})},or={};PC(or,{assign:()=>LC,colors:()=>Mn,createStringInterpolator:()=>Mf,skipAnimation:()=>tv,to:()=>ev,willAdvance:()=>Tf});var xf=So(),q=e=>ko(e,xf),wf=So();q.write=e=>ko(e,wf);var js=So();q.onStart=e=>ko(e,js);var _f=So();q.onFrame=e=>ko(e,_f);var kf=So();q.onFinish=e=>ko(e,kf);var Lr=[];q.setTimeout=(e,t)=>{const n=q.now()+t,r=()=>{const o=Lr.findIndex(l=>l.cancel==r);~o&&Lr.splice(o,1),mn-=~o?1:0},i={time:n,handler:e,cancel:r};return Lr.splice(Gg(n),0,i),mn+=1,Kg(),i};var Gg=e=>~(~Lr.findIndex(t=>t.time>e)||~Lr.length);q.cancel=e=>{js.delete(e),_f.delete(e),kf.delete(e),xf.delete(e),wf.delete(e)};q.sync=e=>{zu=!0,q.batchedUpdates(e),zu=!1};q.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,q.onStart(n)}return r.handler=e,r.cancel=()=>{js.delete(n),t=null},r};var Sf=typeof window<"u"?window.requestAnimationFrame:()=>{};q.use=e=>Sf=e;q.now=typeof performance<"u"?()=>performance.now():Date.now;q.batchedUpdates=e=>e();q.catch=console.error;q.frameLoop="always";q.advance=()=>{q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Zg()};var hn=-1,mn=0,zu=!1;function ko(e,t){zu?(t.delete(e),e(0)):(t.add(e),Kg())}function Kg(){hn<0&&(hn=0,q.frameLoop!=="demand"&&Sf(qg))}function NC(){hn=-1}function qg(){~hn&&(Sf(qg),q.batchedUpdates(Zg))}function Zg(){const e=hn;hn=q.now();const t=Gg(hn);if(t&&(Jg(Lr.splice(0,t),n=>n.handler()),mn-=t),!mn){NC();return}js.flush(),xf.flush(e?Math.min(64,hn-e):16.667),_f.flush(),wf.flush(),kf.flush()}function So(){let e=new Set,t=e;return{add(n){mn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return mn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,mn-=t.size,Jg(t,r=>r(n)&&e.add(r)),mn+=e.size,t=e)}}}function Jg(e,t){e.forEach(n=>{try{t(n)}catch(r){q.catch(r)}})}function AC(){}var $C=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ne={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function OC(e,t){if(ne.arr(e)){if(!ne.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ie=(e,t)=>e.forEach(t);function es(e,t,n){if(ne.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var wi=e=>ne.und(e)?[]:ne.arr(e)?e:[e],Cf=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Mf,ev,Mn=null,tv=!1,Tf=AC,LC=e=>{e.to&&(ev=e.to),e.now&&(q.now=e.now),e.colors!==void 0&&(Mn=e.colors),e.skipAnimation!=null&&(tv=e.skipAnimation),e.createStringInterpolator&&(Mf=e.createStringInterpolator),e.requestAnimationFrame&&q.use(e.requestAnimationFrame),e.batchedUpdates&&(q.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Tf=e.willAdvance),e.frameLoop&&(q.frameLoop=e.frameLoop)},Oi=new Set,ut=[],Na=[],ts=0,Ef={get idle(){return!Oi.size&&!ut.length},start(e){ts>e.priority?(Oi.add(e),q.onStart(RC)):(nv(e),q(Iu))},advance:Iu,sort(e){if(ts)q.onFrame(()=>Ef.sort(e));else{const t=ut.indexOf(e);~t&&(ut.splice(t,1),rv(e))}},clear(){ut=[],Oi.clear()}};function RC(){Oi.forEach(nv),Oi.clear(),q(Iu)}function nv(e){ut.includes(e)||rv(e)}function rv(e){ut.splice(DC(ut,t=>t.priority>e.priority),0,e)}function Iu(e){const t=Na;for(let n=0;n<ut.length;n++){const r=ut[n];ts=r.priority,r.idle||(Tf(r),r.advance(e),r.idle||t.push(r))}return ts=0,Na=ut,Na.length=0,ut=t,ut.length>0}function DC(e,t){const n=e.findIndex(t);return n<0?e.length:n}var bC={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Mt="[-+]?\\d*\\.?\\d+",ns=Mt+"%";function Fs(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var jC=new RegExp("rgb"+Fs(Mt,Mt,Mt)),FC=new RegExp("rgba"+Fs(Mt,Mt,Mt,Mt)),zC=new RegExp("hsl"+Fs(Mt,ns,ns)),IC=new RegExp("hsla"+Fs(Mt,ns,ns,Mt)),UC=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,HC=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,WC=/^#([0-9a-fA-F]{6})$/,BC=/^#([0-9a-fA-F]{8})$/;function VC(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=WC.exec(e))?parseInt(t[1]+"ff",16)>>>0:Mn&&Mn[e]!==void 0?Mn[e]:(t=jC.exec(e))?(pr(t[1])<<24|pr(t[2])<<16|pr(t[3])<<8|255)>>>0:(t=FC.exec(e))?(pr(t[1])<<24|pr(t[2])<<16|pr(t[3])<<8|ch(t[4]))>>>0:(t=UC.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=BC.exec(e))?parseInt(t[1],16)>>>0:(t=HC.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=zC.exec(e))?(ah(uh(t[1]),Xo(t[2]),Xo(t[3]))|255)>>>0:(t=IC.exec(e))?(ah(uh(t[1]),Xo(t[2]),Xo(t[3]))|ch(t[4]))>>>0:null}function Aa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ah(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Aa(i,r,e+1/3),l=Aa(i,r,e),s=Aa(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(l*255)<<16|Math.round(s*255)<<8}function pr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function uh(e){return(parseFloat(e)%360+360)%360/360}function ch(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Xo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function fh(e){let t=VC(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var oo=(e,t,n)=>{if(ne.fun(e))return e;if(ne.arr(e))return oo({range:e,output:t,extrapolate:n});if(ne.str(e.output[0]))return Mf(e);const r=e,i=r.output,o=r.range||[0,1],l=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",a=r.easing||(u=>u);return u=>{const c=XC(u,o);return YC(u,o[c],o[c+1],i[c],i[c+1],a,l,s,r.map)}};function YC(e,t,n,r,i,o,l,s,a){let u=a?a(e):e;if(u<t){if(l==="identity")return u;l==="clamp"&&(u=t)}if(u>n){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function XC(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var lo=Symbol.for("FluidValue.get"),so=Symbol.for("FluidValue.observers"),Zr=e=>!!(e&&e[lo]),Jr=e=>e&&e[lo]?e[lo]():e;function QC(e,t){e.eventObserved?e.eventObserved(t):e(t)}function rs(e,t){const n=e[so];n&&n.forEach(r=>{QC(r,t)})}var iv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");GC(this,e)}},GC=(e,t)=>ov(e,lo,t);function Pf(e,t){if(e[lo]){let n=e[so];n||ov(e,so,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function is(e,t){const n=e[so];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[so]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var ov=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),cl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,KC=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,dh=new RegExp(`(${cl.source})(%|[a-z]+)`,"i"),qC=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,zs=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,lv=e=>{const[t,n]=ZC(e);if(!t||Cf())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&zs.test(n))return lv(n);if(n)return n}return e},ZC=e=>{const t=zs.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},$a,JC=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,sv=e=>{$a||($a=Mn?new RegExp(`(${Object.keys(Mn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Jr(o).replace(zs,lv).replace(KC,fh).replace($a,fh)),n=t.map(o=>o.match(cl).map(Number)),i=n[0].map((o,l)=>n.map(s=>{if(!(l in s))throw Error('The arity of each "output" value must be equal');return s[l]})).map(o=>oo({...e,output:o}));return o=>{var a;const l=!dh.test(t[0])&&((a=t.find(u=>dh.test(u)))==null?void 0:a.replace(cl,""));let s=0;return t[0].replace(cl,()=>`${i[s++](o)}${l||""}`).replace(qC,JC)}},av="react-spring: ",uv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${av}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},e3=uv(console.warn);function t3(){e3(`${av}The "interpolate" function is deprecated in v9 (use "to" instead)`)}uv(console.warn);function cv(e){return ne.str(e)&&(e[0]=="#"||/\d/.test(e)||!Cf()&&zs.test(e)||e in(Mn||{}))}var Nf=Cf()?T.useEffect:T.useLayoutEffect,n3=()=>{const e=T.useRef(!1);return Nf(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function r3(){const e=T.useState()[1],t=n3();return()=>{t.current&&e(Math.random())}}function i3(e,t){const[n]=T.useState(()=>({inputs:t,result:e()})),r=T.useRef(),i=r.current;let o=i;return o?t&&o.inputs&&o3(t,o.inputs)||(o={inputs:t,result:e()}):o=n,T.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function o3(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var l3=e=>T.useEffect(e,s3),s3=[],ao=Symbol.for("Animated:node"),a3=e=>!!e&&e[ao]===e,Af=e=>e&&e[ao],fv=(e,t)=>$C(e,ao,t),$f=e=>e&&e[ao]&&e[ao].getPayload(),dv=class{constructor(){fv(this,this)}getPayload(){return this.payload||[]}},Is=class extends dv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ne.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Is(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ne.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ne.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Of=class extends Is{constructor(e){super(0),this._string=null,this._toString=oo({output:[e,e]})}static create(e){return new Of(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ne.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=oo({output:[this.getValue(),e]})),this._value=0,super.reset()}},os={dependencies:null},Us=class extends dv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return es(this.source,(n,r)=>{a3(n)?t[r]=n.getValue(e):Zr(n)?t[r]=Jr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ie(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return es(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){os.dependencies&&Zr(e)&&os.dependencies.add(e);const t=$f(e);t&&Ie(t,n=>this.add(n))}},pv=class extends Us{constructor(e){super(e)}static create(e){return new pv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(u3)),!0)}};function u3(e){return(cv(e)?Of:Is).create(e)}function c3(e){const t=Af(e);return t?t.constructor:ne.arr(e)?pv:cv(e)?Of:Is}var ph=(e,t)=>{const n=!ne.fun(e)||e.prototype&&e.prototype.isReactComponent;return T.forwardRef((r,i)=>{const o=T.useRef(null),l=n&&T.useCallback(v=>{o.current=p3(i,v)},[i]),[s,a]=d3(r,t),u=r3(),c=()=>{const v=o.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,s.getValue(!0)):!1)===!1&&u()},f=new f3(c,a),d=T.useRef();Nf(()=>(d.current=f,Ie(a,v=>Pf(v,f)),()=>{d.current&&(Ie(d.current.deps,v=>is(v,d.current)),q.cancel(d.current.update))})),T.useEffect(c,[]),l3(()=>()=>{const v=d.current;Ie(v.deps,g=>is(g,v))});const h=t.getComponentProps(s.getValue());return T.createElement(e,{...h,ref:l})})},f3=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&q.write(this.update)}};function d3(e,t){const n=new Set;return os.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Us(e),os.dependencies=null,[e,n]}function p3(e,t){return e&&(ne.fun(e)?e(t):e.current=t),t}var hh=Symbol.for("AnimatedComponent"),h3=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Us(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=l=>{const s=mh(l)||"Anonymous";return ne.str(l)?l=o[l]||(o[l]=ph(l,i)):l=l[hh]||(l[hh]=ph(l,i)),l.displayName=`Animated(${s})`,l};return es(e,(l,s)=>{ne.arr(e)&&(s=mh(l)),o[s]=o(l)}),{animated:o}},mh=e=>ne.str(e)?e:e&&ne.str(e.displayName)?e.displayName:ne.fun(e)&&e.name||null,gh=e=>e instanceof hv,m3=1,hv=class extends iv{constructor(){super(...arguments),this.id=m3++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Af(this);return e&&e.getValue()}to(...e){return or.to(this,e)}interpolate(...e){return t3(),or.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){rs(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ef.sort(this),rs(this,{type:"priority",parent:this,priority:e})}},Lf=({children:e,...t})=>{const n=T.useContext(ls),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=i3(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=ls;return T.createElement(o,{value:t},e)},ls=g3(Lf,{});Lf.Provider=ls.Provider;Lf.Consumer=ls.Consumer;function g3(e,t){return Object.assign(e,T.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var v3=class extends hv{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=oo(...t);const n=this._get(),r=c3(n);fv(this,r.create(n))}advance(e){const t=this._get(),n=this.get();OC(t,n)||(Af(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&vh(this._active)&&Oa(this)}_get(){const e=ne.arr(this.source)?this.source.map(Jr):wi(Jr(this.source));return this.calc(...e)}_start(){this.idle&&!vh(this._active)&&(this.idle=!1,Ie($f(this),e=>{e.done=!1}),or.skipAnimation?(q.batchedUpdates(()=>this.advance()),Oa(this)):Ef.start(this))}_attach(){let e=1;Ie(wi(this.source),t=>{Zr(t)&&Pf(t,this),gh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ie(wi(this.source),e=>{Zr(e)&&is(e,this)}),this._active.clear(),Oa(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=wi(this.source).reduce((t,n)=>Math.max(t,(gh(n)?n.priority:0)+1),0))}};function y3(e){return e.idle!==!1}function vh(e){return!e.size||Array.from(e).every(y3)}function Oa(e){e.idle||(e.idle=!0,Ie($f(e),t=>{t.done=!0}),rs(e,{type:"idle",parent:e}))}or.assign({createStringInterpolator:sv,to:(e,t)=>new v3(e,t)});var mv=/^--/;function x3(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!mv.test(e)&&!(Li.hasOwnProperty(e)&&Li[e])?t+"px":(""+t).trim()}var yh={};function w3(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:o,scrollLeft:l,viewBox:s,...a}=t,u=Object.values(a),c=Object.keys(a).map(f=>n||e.hasAttribute(f)?f:yh[f]||(yh[f]=f.replace(/([A-Z])/g,d=>"-"+d.toLowerCase())));i!==void 0&&(e.textContent=i);for(const f in r)if(r.hasOwnProperty(f)){const d=x3(f,r[f]);mv.test(f)?e.style.setProperty(f,d):e.style[f]=d}c.forEach((f,d)=>{e.setAttribute(f,u[d])}),o!==void 0&&(e.scrollTop=o),l!==void 0&&(e.scrollLeft=l),s!==void 0&&e.setAttribute("viewBox",s)}var Li={animationIterationCount:!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,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},_3=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),k3=["Webkit","Ms","Moz","O"];Li=Object.keys(Li).reduce((e,t)=>(k3.forEach(n=>e[_3(n,t)]=e[t]),e),Li);var S3=/^(matrix|translate|scale|rotate|skew)/,C3=/^(translate)/,M3=/^(rotate|skew)/,La=(e,t)=>ne.num(e)&&e!==0?e+t:e,fl=(e,t)=>ne.arr(e)?e.every(n=>fl(n,t)):ne.num(e)?e===t:parseFloat(e)===t,T3=class extends Us{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(l=>[`translate3d(${l.map(s=>La(s,"px")).join(",")})`,fl(l,0)])),es(r,(l,s)=>{if(s==="transform")i.push([l||""]),o.push(a=>[a,a===""]);else if(S3.test(s)){if(delete r[s],ne.und(l))return;const a=C3.test(s)?"px":M3.test(s)?"deg":"";i.push(wi(l)),o.push(s==="rotate3d"?([u,c,f,d])=>[`rotate3d(${u},${c},${f},${La(d,a)})`,fl(d,0)]:u=>[`${s}(${u.map(c=>La(c,a)).join(",")})`,fl(u,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new E3(i,o)),super(r)}},E3=class extends iv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ie(this.inputs,(n,r)=>{const i=Jr(n[0]),[o,l]=this.transforms[r](ne.arr(i)?i:n.map(Jr));e+=" "+o,t=t&&l}),t?"none":e}observerAdded(e){e==1&&Ie(this.inputs,t=>Ie(t,n=>Zr(n)&&Pf(n,this)))}observerRemoved(e){e==0&&Ie(this.inputs,t=>Ie(t,n=>Zr(n)&&is(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),rs(this,e)}},P3=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];or.assign({batchedUpdates:Cs.unstable_batchedUpdates,createStringInterpolator:sv,colors:bC});h3(P3,{applyAnimatedValues:w3,createAnimatedStyle:e=>new T3(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n});const N3=()=>{Nf(()=>{const e=window.matchMedia("(prefers-reduced-motion)"),t=n=>{or.assign({skipAnimation:n.matches||void 0})};return t(e),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[])},A3=e=>{const t=T.useContext(hf),{width:n,height:r,top:i,left:o}=T.useContext(cr),{xAxis:l,yAxis:s,xAxisIds:a,yAxisIds:u}=T.useContext(et),{dispatch:c}=T.useContext(ln),f=a[0],d=u[0],h=T.useRef({x:-1,y:-1});T.useEffect(()=>{const v=t.current;if(v===null||e)return()=>{};const g=(p,y)=>{if(f===null)return null;const{scale:x,data:_}=p;if(!io(x)){const S=x.invert(y);if(_===void 0)return{value:S};const M=_==null?void 0:_.findIndex(($,P)=>$>S&&(P===0||Math.abs(S-$)<=Math.abs(S-_[P-1]))||$<=S&&(P===_.length-1||Math.abs(S-$)<Math.abs(S-_[P+1])));return{value:M!==void 0&&M>=0?_[M]:S,index:M}}const w=x.bandwidth()===0?Math.floor((y-Math.min(...x.range())+x.step()/2)/x.step()):Math.floor((y-Math.min(...x.range()))/x.step());return w<0||w>=_.length?null:{index:w,value:_[w]}},k=()=>{h.current={x:-1,y:-1},c({type:"updateAxis",data:{x:null,y:null}})},m=p=>{const y=t.current.createSVGPoint();y.x=p.clientX,y.y=p.clientY;const x=y.matrixTransform(t.current.getScreenCTM().inverse());h.current={x:x.x,y:x.y};const _=x.x<o||x.x>o+n,w=x.y<i||x.y>i+r;if(_||w){c({type:"updateAxis",data:{x:null,y:null}});return}const S=g(l[f],x.x),M=g(s[d],x.y);c({type:"updateAxis",data:{x:S,y:M}})};return v.addEventListener("mouseout",k),v.addEventListener("mousemove",m),()=>{v.removeEventListener("mouseout",k),v.removeEventListener("mousemove",m)}},[t,c,o,n,i,r,d,s,f,l,e])},$3=["children","width","height","viewBox","disableAxisListener","className"],O3=Le("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),L3=T.forwardRef(function(t,n){const{children:r,width:i,height:o,viewBox:l,disableAxisListener:s=!1}=t,a=te(t,$3),u=C({width:i,height:o,x:0,y:0},l);return A3(s),N.jsxs(O3,C({width:i,height:o,viewBox:`${u.x} ${u.y} ${u.width} ${u.height}`,ref:n},a,{children:[N.jsx("title",{children:t.title}),N.jsx("desc",{children:t.desc}),r]}))}),R3=T.forwardRef(function(t,n){const{width:r,height:i,series:o,margin:l,xAxis:s,yAxis:a,colors:u,dataset:c,sx:f,title:d,desc:h,disableAxisListener:v,children:g}=t,k=T.useRef(null),m=Ri(n,k);return N3(),N.jsx(lC,{width:r,height:i,margin:l,svgRef:k,children:N.jsx(KS,{series:o,colors:u,dataset:c,children:N.jsx(cC,{xAxis:s,yAxis:a,dataset:c,children:N.jsx(dC,{children:N.jsx(hC,{children:N.jsx(L3,{width:r,height:i,ref:m,sx:f,title:d,desc:h,disableAxisListener:v,children:g})})})})})})}),D3=["width","height"],b3=(e,t)=>{const n=T.useRef(null),r=T.useRef(!1),[i,o]=T.useState(0),[l,s]=T.useState(0),a=T.useCallback(()=>{const u=n==null?void 0:n.current;if(!u)return;const f=Fv(u).getComputedStyle(u),d=Math.floor(parseFloat(f.height))||0,h=Math.floor(parseFloat(f.width))||0;o(h),s(d)},[]);return T.useEffect(()=>{r.current=!0},[]),Tn(()=>{if(e!==void 0&&t!==void 0)return()=>{};a();const u=n.current;if(typeof ResizeObserver>"u")return()=>{};let c;const f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{a()})});return u&&f.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&f.unobserve(u)}},[a,t,e]),[n,e??i,t??l]},j3=Le("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),F3=T.forwardRef(function(t,n){const{width:r,height:i}=t,o=te(t,D3),[l,s,a]=b3(r,i);return N.jsx(j3,{ref:l,ownerState:{width:r,height:i},children:s&&a?N.jsx(R3,C({},o,{width:s,height:a,ref:n})):null})});function z3(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const I3=["x","y","id","classes","color","shape","dataIndex","highlightScope"];function U3(e){return At("MuiMarkElement",e)}It("MuiMarkElement",["root","highlighted","faded"]);const H3=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:i}=e,o={root:["root",`series-${n}`,i&&"highlighted",r&&"faded"]};return tt(o,U3,t)},gv=Le("path",{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2}));gv.propTypes={as:W.elementType,ownerState:W.shape({classes:W.object,color:W.string.isRequired,id:W.string.isRequired,isFaded:W.bool.isRequired,isHighlighted:W.bool.isRequired,x:W.number.isRequired,y:W.number.isRequired}).isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};function W3(e){var t;const{x:n,y:r,id:i,classes:o,color:l,shape:s,dataIndex:a,highlightScope:u}=e,c=te(e,I3),f=gf(u),{item:d,axis:h}=T.useContext(ln),v=((t=h.x)==null?void 0:t.index)===a||vf(d,{type:"line",seriesId:i},u),g=!v&&yf(d,{type:"line",seriesId:i},u),k={id:i,classes:o,isHighlighted:v,isFaded:g,color:l,x:n,y:r},m=H3(k);return N.jsx(gv,C({},c,{ownerState:k,className:m.root,d:_2(w2[z3(s)])()},f({type:"line",seriesId:i,dataIndex:a})))}const B3=["slots","slotProps"];function V3(e){var t;const{slots:n,slotProps:r}=e,i=te(e,B3),o=T.useContext(on).line,l=T.useContext(et),s=(t=n==null?void 0:n.mark)!=null?t:W3;if(o===void 0)return null;const{series:a,stackingGroups:u}=o,{xAxis:c,yAxis:f,xAxisIds:d,yAxisIds:h}=l,v=d[0],g=h[0];return N.jsx("g",C({},i,{children:u.flatMap(({ids:k})=>k.flatMap(m=>{const{xAxisKey:p=v,yAxisKey:y=g,stackedData:x,data:_,showMark:w=!0}=a[m];if(w===!1)return null;const S=qr(c[p].scale),M=f[y].scale,$=c[p].data,P=c[p].scale.range(),E=M.range(),b=({x:O,y:j})=>!(O<Math.min(...P)||O>Math.max(...P)||j<Math.min(...E)||j>Math.max(...E));if($===void 0)throw new Error(`MUI-X-Charts: ${p===ro?"The first `xAxis`":`The x-axis with id "${p}"`} should have data property to be able to display a line plot`);return $==null?void 0:$.map((O,j)=>{const U=_[j]==null?null:x[j][1];return{x:S(O),y:U===null?null:M(U),position:O,value:U,index:j}}).filter(({x:O,y:j,index:U,position:H,value:V})=>V===null||j===null||!b({x:O,y:j})?!1:w===!0?!0:w({x:O,y:j,index:U,position:H,value:V})).map(({x:O,y:j,index:U})=>N.jsx(s,C({id:m,dataIndex:U,shape:"circle",color:a[m].color,x:O,y:j,highlightScope:a[m].highlightScope},r==null?void 0:r.mark),`${m}-${U}`))}))}))}function vv(e){return At("MuiChartsAxis",e)}const Qo=It("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),yv=Le("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Qo.tickLabel}`]:C({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${Qo.label}`]:C({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${Qo.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Qo.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),Y3=()=>!(typeof window<"u"&&window.document&&window.setTimeout),Fn={widthCache:{},cacheCount:0},X3=2e3,Q3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},G3=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],xh="mui_measurement_span";function xv(e,t){return G3.indexOf(e)>=0&&t===+t?`${t}px`:t}function wv(e){return e.split("").reduce((r,i)=>i===i.toUpperCase()?[...r,"-",i.toLowerCase()]:[...r,i],[]).join("")}const K3=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${wv(n)}:${xv(n,e[n])};`,""),q3=(e,t={})=>{if(e==null||Y3())return{width:0,height:0};const n=`${e}`,r=K3(t),i=`${n}-${r}`;if(Fn.widthCache[i])return Fn.widthCache[i];try{let o=document.getElementById(xh);o===null&&(o=document.createElement("span"),o.setAttribute("id",xh),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));const l=C({},Q3,t);Object.keys(l).map(u=>(o.style[wv(u)]=xv(u,l[u]),u)),o.textContent=n;const s=o.getBoundingClientRect(),a={width:s.width,height:s.height};return Fn.widthCache[i]=a,Fn.cacheCount+1>X3?(Fn.cacheCount=0,Fn.widthCache={}):Fn.cacheCount+=1,a}catch{return{width:0,height:0}}};function Rf({style:e,needsComputation:t,text:n}){return n.split(`
`).map(r=>C({text:r},t?q3(r,e):{width:0,height:0}))}const Z3=["x","y","style","text","ownerState"],J3=["angle","textAnchor","dominantBaseline"];function uo(e){const{x:t,y:n,style:r,text:i}=e,o=te(e,Z3),l=r??{},{angle:s,textAnchor:a,dominantBaseline:u}=l,c=te(l,J3),f=T.useMemo(()=>Rf({style:c,needsComputation:i.includes(`
`),text:i}),[c,i]);let d;switch(u){case"hanging":d=0;break;case"central":d=(f.length-1)/2*-f[0].height;break;default:d=(f.length-1)*-f[0].height;break}const h=[];return s&&h.push(`rotate(${s}, ${t}, ${n})`),h.length&&(o.transform=h.join(" ")),N.jsx("text",C({},o,{x:t,y:n,textAnchor:a,dominantBaseline:u,style:c,children:f.map((v,g)=>N.jsx("tspan",{x:t,dy:`${g===0?d:f[0].height}px`,dominantBaseline:u,children:v.text},g))}))}const wh=5;function eM(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r<wh)return e;if(r>90-wh)return t;const i=r*Math.PI/180,o=Math.atan2(t,e);return i<o?e/Math.cos(i):t/Math.sin(i)}function tM(e=!1){const[t,n]=T.useState(!1);return Tn(()=>{e||n(!0)},[e]),T.useEffect(()=>{e&&n(!0)},[e]),t}const nM=["scale","tickNumber","reverse"],rM=e=>{const{classes:t,position:n}=e;return tt({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},vv,t)};function iM(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:r,isMounted:i}){const o=e.map(u=>{if(!i||u.formattedValue===void 0)return C({},u,{width:0,height:0});const c=Rf({style:t,needsComputation:!0,text:u.formattedValue});return C({},u,{width:Math.max(...c.map(f=>f.width)),height:Math.max(c.length*c[0].height)})});if(typeof n=="function")return o.map((u,c)=>C({},u,{skipLabel:!n(u.value,c)}));let l=0,s=0;const a=r?-1:1;return o.map((u,c)=>{const{width:f,offset:d,labelOffset:h,height:v}=u,g=eM(f,v,t==null?void 0:t.angle),k=d+h,m=1.2;return l=k-a*(m*g)/2,c>0&&a*l<a*s?C({},u,{skipLabel:!0}):(s=k+a*(m*g)/2,u)})}const _h={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function kh(e){var t,n,r,i,o;const l=Es({props:C({},_h,e),name:"MuiChartsXAxis"}),{xAxisIds:s}=T.useContext(et),a=T.useContext(et),u=(t=l.axisId)!=null?t:s[0],{xAxis:{[u]:{scale:c,tickNumber:f,reverse:d}}}=a,h=te(a.xAxis[u],nM),v=tM(),g=C({},_h,h,l),{position:k,disableLine:m,disableTicks:p,tickLabelStyle:y,label:x,labelStyle:_,tickFontSize:w,labelFontSize:S,tickSize:M,valueFormatter:$,slots:P,slotProps:E,tickInterval:b,tickLabelInterval:O}=g,j=mo(),U=rM(C({},g,{theme:j})),{left:H,top:V,width:A,height:D}=T.useContext(cr),I=p?4:M,X=k==="bottom"?1:-1,Q=(n=P==null?void 0:P.axisLine)!=null?n:"line",Pe=(r=P==null?void 0:P.axisTick)!=null?r:"line",fe=(i=P==null?void 0:P.axisTickLabel)!=null?i:uo,ge=(o=P==null?void 0:P.axisLabel)!=null?o:uo,de=Nt({elementType:fe,externalSlotProps:E==null?void 0:E.axisTickLabel,additionalProps:{style:C({textAnchor:"middle",dominantBaseline:k==="bottom"?"hanging":"auto",fontSize:w??12},y),className:U.tickLabel},className:U.tickLabel,ownerState:{}}),Re=Bg({scale:c,tickNumber:f,valueFormatter:$,tickInterval:b}),Qe=iM(Re,{tickLabelStyle:de.style,tickLabelInterval:O,reverse:d,isMounted:v}),F={x:H+A/2,y:X*(I+22)},B=Nt({elementType:ge,externalSlotProps:E==null?void 0:E.axisLabel,additionalProps:{style:C({fontSize:S??14,textAnchor:"middle",dominantBaseline:k==="bottom"?"hanging":"auto"},_)},ownerState:{}});return N.jsxs(yv,{transform:`translate(0, ${k==="bottom"?V+D:V})`,className:U.root,children:[!m&&N.jsx(Q,C({x1:c.range()[0],x2:c.range()[1],className:U.line},E==null?void 0:E.axisLine)),Qe.map(({formattedValue:Y,offset:L,labelOffset:he,skipLabel:J},Ce)=>{const we=he??0,it=X*(I+3);return N.jsxs("g",{transform:`translate(${L}, 0)`,className:U.tickContainer,children:[!p&&N.jsx(Pe,C({y2:X*I,className:U.tick},E==null?void 0:E.axisTick)),Y!==void 0&&!J&&N.jsx(fe,C({x:we,y:it},de,{text:Y.toString()}))]},Ce)}),x&&N.jsx("g",{className:U.label,children:N.jsx(ge,C({},F,B,{text:x}))})]})}const oM=["scale","tickNumber"],lM=e=>{const{classes:t,position:n}=e;return tt({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},vv,t)},Sh={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function Ch(e){var t,n,r,i,o;const l=Es({props:C({},Sh,e),name:"MuiChartsYAxis"}),{yAxisIds:s}=T.useContext(et),a=T.useContext(et),u=(t=l.axisId)!=null?t:s[0],{yAxis:{[u]:{scale:c,tickNumber:f}}}=a,d=te(a.yAxis[u],oM),h=C({},Sh,d,l),{position:v,disableLine:g,disableTicks:k,tickFontSize:m,label:p,labelFontSize:y,labelStyle:x,tickLabelStyle:_,tickSize:w,valueFormatter:S,slots:M,slotProps:$}=h,P=mo(),E=lM(C({},h,{theme:P})),{left:b,top:O,width:j,height:U}=T.useContext(cr),H=k?4:w,V=Bg({scale:c,tickNumber:f,valueFormatter:S}),A=v==="right"?1:-1,D={x:A*(m+H+10),y:O+U/2},I=(n=M==null?void 0:M.axisLine)!=null?n:"line",X=(r=M==null?void 0:M.axisTick)!=null?r:"line",Q=(i=M==null?void 0:M.axisTickLabel)!=null?i:uo,Pe=(o=M==null?void 0:M.axisLabel)!=null?o:uo,fe=Nt({elementType:Q,externalSlotProps:$==null?void 0:$.axisTickLabel,additionalProps:{style:C({fontSize:m,textAnchor:v==="right"?"start":"end",dominantBaseline:"central"},_),className:E.tickLabel},ownerState:{}}),ge=Nt({elementType:Pe,externalSlotProps:$==null?void 0:$.axisLabel,additionalProps:{style:C({fontSize:y,angle:A*90,textAnchor:"middle",dominantBaseline:"auto"},x)},ownerState:{}});return N.jsxs(yv,{transform:`translate(${v==="right"?b+j:b}, 0)`,className:E.root,children:[!g&&N.jsx(I,C({y1:c.range()[0],y2:c.range()[1],className:E.line},$==null?void 0:$.axisLine)),V.map(({formattedValue:de,offset:Re,labelOffset:Qe},F)=>{const B=A*(H+2),Y=Qe;return N.jsxs("g",{transform:`translate(0, ${Re})`,className:E.tickContainer,children:[!k&&N.jsx(X,C({x2:A*H,className:E.tick},$==null?void 0:$.axisTick)),de!==void 0&&N.jsx(Q,C({x:B,y:Y,text:de.toString()},fe))]},F)}),p&&N.jsx("g",{className:E.label,children:N.jsx(Pe,C({},D,ge,{text:p}))})]})}const Go=e=>{if(e==null)return null;if(typeof e=="object"){var t;return(t=e.axisId)!=null?t:null}return e},Ko=(e,t,n)=>typeof e=="object"?C({},e,{slots:C({},t,e==null?void 0:e.slots),slotProps:C({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function sM(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:i,slots:o,slotProps:l}=e,{xAxis:s,xAxisIds:a,yAxis:u,yAxisIds:c}=T.useContext(et),f=Go(n===void 0?c[0]:n),d=Go(i===void 0?a[0]:i),h=Go(t),v=Go(r);if(h!==null&&!s[h])throw Error([`MUI-X-Charts: id used for top axis "${h}" is not defined.`,`Available ids are: ${a.join(", ")}.`].join(`
`));if(f!==null&&!u[f])throw Error([`MUI-X-Charts: id used for left axis "${f}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(`
`));if(v!==null&&!u[v])throw Error([`MUI-X-Charts: id used for right axis "${v}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(`
`));if(d!==null&&!s[d])throw Error([`MUI-X-Charts: id used for bottom axis "${d}" is not defined.`,`Available ids are: ${a.join(", ")}.`].join(`
`));const g=Ko(t,o,l),k=Ko(i,o,l),m=Ko(n,o,l),p=Ko(r,o,l);return N.jsxs(T.Fragment,{children:[h&&N.jsx(kh,C({},g,{position:"top",axisId:h})),d&&N.jsx(kh,C({},k,{position:"bottom",axisId:d})),f&&N.jsx(Ch,C({},m,{position:"left",axisId:f})),v&&N.jsx(Ch,C({},p,{position:"right",axisId:v}))]})}function aM(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function uM(){const e=T.useContext(hf),[t,n]=T.useState(null);return T.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const i=()=>{n(null)},o=l=>{n({x:l.clientX,y:l.clientY})};return r.addEventListener("mouseout",i),r.addEventListener("mousemove",o),()=>{r.removeEventListener("mouseout",i),r.removeEventListener("mousemove",o)}},[e]),t}function cM(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function fM(e){return At("MuiChartsTooltip",e)}const Mh=It("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),_v=Le("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),kv=Le("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),Uu=Le("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),Xn=Le("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${Mh.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${Mh.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),Sv=Le(K1,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function dM(e){const{series:t,itemData:n,sx:r,classes:i}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:o,color:l}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},s=t.valueFormatter(t.data[n.dataIndex]);return N.jsx(_v,{sx:r,className:i.root,children:N.jsx(kv,{className:i.table,children:N.jsx("tbody",{children:N.jsxs(Uu,{className:i.row,children:[N.jsx(Xn,{className:dt(i.markCell,i.cell),children:N.jsx(Sv,{ownerState:{color:l},className:i.mark})}),N.jsx(Xn,{className:dt(i.labelCell,i.cell),children:o}),N.jsx(Xn,{className:dt(i.valueCell,i.cell),children:s})]})})})})}function pM(e){const{content:t,itemData:n,sx:r,classes:i,contentProps:o}=e,l=T.useContext(on)[n.type].series[n.seriesId],s=t??dM,a=Nt({elementType:s,externalSlotProps:o,additionalProps:{itemData:n,series:l,sx:r,classes:i},ownerState:{}});return N.jsx(s,C({},a))}function hM(e){var t;const{series:n,axis:r,dataIndex:i,axisValue:o,sx:l,classes:s}=e;if(i==null)return null;const a=(t=r.valueFormatter)!=null?t:u=>u.toLocaleString();return N.jsx(_v,{sx:l,className:s.root,children:N.jsxs(kv,{className:s.table,children:[o!=null&&!r.hideTooltip&&N.jsx("thead",{children:N.jsx(Uu,{children:N.jsx(Xn,{colSpan:3,children:N.jsx(ga,{children:a(o)})})})}),N.jsx("tbody",{children:n.map(({color:u,id:c,label:f,valueFormatter:d,data:h})=>{const v=d(h[i]);return v==null?null:N.jsxs(Uu,{className:s.row,children:[N.jsx(Xn,{className:dt(s.markCell,s.cell),children:N.jsx(Sv,{ownerState:{color:u},boxShadow:1,className:s.mark})}),N.jsx(Xn,{className:dt(s.labelCell,s.cell),children:f?N.jsx(ga,{children:f}):null}),N.jsx(Xn,{className:dt(s.valueCell,s.cell),children:N.jsx(ga,{children:v})})]},c)})})]})})}function mM(e){const{content:t,contentProps:n,axisData:r,sx:i,classes:o}=e,l=(r.x&&r.x.index)!==void 0,s=l?r.x&&r.x.index:r.y&&r.y.index,a=l?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:f,yAxis:d}=T.useContext(et),h=T.useContext(on),v=l?u[0]:f[0],g=T.useMemo(()=>{const y=[];return Object.keys(h).filter(x=>["bar","line","scatter"].includes(x)).forEach(x=>{h[x].seriesOrder.forEach(_=>{const w=h[x].series[_],S=l?w.xAxisKey:w.yAxisKey;(S===void 0||S===v)&&y.push(h[x].series[_])})}),y},[v,l,h]),k=T.useMemo(()=>l?c[v]:d[v],[v,l,c,d]),m=t??hM,p=Nt({elementType:m,externalSlotProps:n,additionalProps:{axisData:r,series:g,axis:k,dataIndex:s,axisValue:a,sx:i,classes:o},ownerState:{}});return N.jsx(m,C({},p))}const gM=e=>{const{classes:t}=e;return tt({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},fM,t)},vM=Le(FS,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function yM(e){var t,n,r;const i=Es({props:e,name:"MuiChartsTooltip"}),{trigger:o="axis",itemContent:l,axisContent:s,slots:a,slotProps:u}=i,c=uM(),{item:f,axis:d}=T.useContext(ln),h=o==="item"?f:d,v=cM(o,h),g=c!==null&&v,k=gM({classes:i.classes}),m=(t=a==null?void 0:a.popper)!=null?t:vM,p=Nt({elementType:m,externalSlotProps:u==null?void 0:u.popper,additionalProps:{open:g,placement:"right-start",anchorEl:aM(c)},ownerState:{}});return o==="none"?null:N.jsx(Ig,{children:g&&N.jsx(m,C({},p,{children:o==="item"?N.jsx(pM,{itemData:h,content:(n=a==null?void 0:a.itemContent)!=null?n:l,contentProps:u==null?void 0:u.itemContent,sx:{mx:2},classes:k}):N.jsx(mM,{axisData:h,content:(r=a==null?void 0:a.axisContent)!=null?r:s,contentProps:u==null?void 0:u.axisContent,sx:{mx:2},classes:k})}))})}const xM=e=>{const{seriesOrder:t,series:n}=e;return t.map(i=>({color:n[i].color,label:n[i].label,id:i})).filter(i=>i.label!==void 0)},wM=e=>{const{seriesOrder:t,series:n}=e;return t.map(i=>({color:n[i].color,label:n[i].label,id:i})).filter(i=>i.label!==void 0)},_M=e=>{const{seriesOrder:t,series:n}=e;return t.map(i=>({color:n[i].color,label:n[i].label,id:i})).filter(i=>i.label!==void 0)},kM=e=>{const{seriesOrder:t,series:n}=e;return t.flatMap(r=>n[r].data.map(i=>({color:i.color,label:i.label,id:i.id})).filter(i=>i.label!==void 0))},SM={bar:xM,scatter:wM,line:_M,pie:kM};function CM(e){return Object.keys(e).flatMap(t=>SM[t](e[t]))}function MM(e){return At("MuiChartsLegend",e)}It("MuiChartsLegend",["root","series","mark","label","column","row"]);const TM=["rotate","dominantBaseline"],EM=["label"],PM=e=>{const{classes:t,direction:n}=e;return tt({root:["root",n],mark:["mark"],label:["label"],series:["series"]},MM,t)},NM=Le("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AM={position:{horizontal:"middle",vertical:"top"},direction:"row"},$M=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:C({left:0,right:0,top:0,bottom:0},e);function OM(e){const{hidden:t,position:n,direction:r,seriesToDisplay:i,drawingArea:o,classes:l,itemMarkWidth:s=20,itemMarkHeight:a=20,markGap:u=5,itemGap:c=10,padding:f=10,labelStyle:d}=e,h=mo(),v=T.useMemo(()=>C({},h.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(h.vars||h).palette.text.primary,lineHeight:1},d),[d,h]),g=T.useMemo(()=>$M(f),[f]),k=T.useCallback((w,S={})=>{const M=te(S,TM),$=Rf({style:M,needsComputation:!0,text:w}),P={innerWidth:s+u+Math.max(...$.map(E=>E.width)),innerHeight:Math.max(a,$.length*$[0].height)};return C({},P,{outerWidth:P.innerWidth+c,outerHeight:P.innerHeight+c})},[c,a,s,u]),m=o.left+o.width+o.right,p=o.top+o.height+o.bottom,y=m-g.left-g.right,x=p-g.top-g.bottom,_=T.useMemo(()=>{let w=0,S=0,M=0,$=0,P=0;const E=[0],b=i.map(U=>{let{label:H}=U,V=te(U,EM);const A=k(H,v),D=C({},V,{label:H,positionX:w,positionY:S,innerHeight:A.innerHeight,innerWidth:A.innerWidth,outerHeight:A.outerHeight,outerWidth:A.outerWidth,rowIndex:P});return r==="row"&&(w+A.innerWidth>y&&(w=0,S+=E[P],P+=1,E.length<=P&&E.push(0),D.positionX=w,D.positionY=S,D.rowIndex=P),M=Math.max(M,w+A.outerWidth),$=Math.max($,S+A.outerHeight),E[P]=Math.max(E[P],A.outerHeight),w+=A.outerWidth),r==="column"&&(S+A.innerHeight>x&&(w=M+c,S=0,P=0,D.positionX=w,D.positionY=S,D.rowIndex=P),E.length<=P&&E.push(0),M=Math.max(M,w+A.outerWidth),$=Math.max($,S+A.outerHeight),P+=1,S+=A.outerHeight),D});let O=0,j=0;switch(n.horizontal){case"left":O=g.left;break;case"right":O=m-g.right-M;break;default:O=(m-M)/2;break}switch(n.vertical){case"top":j=g.top;break;case"bottom":j=p-g.bottom-$;break;default:j=(p-$)/2;break}return b.map(U=>C({},U,{positionX:U.positionX+O,positionY:U.positionY+j+(r==="row"?E[U.rowIndex]/2:U.outerHeight/2)}))},[i,n.horizontal,n.vertical,k,v,r,y,x,c,g.left,g.right,g.top,g.bottom,m,p]);return t?null:N.jsx(Ig,{children:N.jsx(NM,{className:l.root,children:_.map(({id:w,label:S,color:M,positionX:$,positionY:P})=>N.jsxs("g",{className:l.series,transform:`translate(${$} ${P})`,children:[N.jsx("rect",{className:l.mark,y:-a/2,width:s,height:a,fill:M}),N.jsx(uo,{style:v,text:S,x:s+u,y:0})]},w))})})}function LM(e){var t;const n=Es({props:C({},AM,e),name:"MuiChartsLegend"}),{position:r,direction:i,hidden:o,slots:l,slotProps:s}=n,a=mo(),u=PM(C({},n,{theme:a})),c=T.useContext(cr),f=T.useContext(on),d=CM(f),h=(t=l==null?void 0:l.legend)!=null?t:OM,v=Nt({elementType:h,externalSlotProps:s==null?void 0:s.legend,additionalProps:{position:r,direction:i,classes:u,drawingArea:c,series:f,hidden:o,seriesToDisplay:d},ownerState:{}});return N.jsx(h,C({},v))}function RM(e){return At("MuiChartsAxisHighlight",e)}It("MuiChartsAxisHighlight",["root"]);const DM=()=>tt({root:["root"]},RM),qo=Le("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>C({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function bM(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:i,yAxisIds:o,yAxis:l}=T.useContext(et),s=DM(),a=r[0],u=o[0],c=i[a].scale,f=l[u].scale,{axis:d}=T.useContext(ln),h=qr(c),v=qr(f);return N.jsxs(T.Fragment,{children:[t==="band"&&d.x!==null&&io(c)&&N.jsx(qo,{d:`M ${c(d.x.value)-(c.step()-c.bandwidth())/2} ${f.range()[0]} l ${c.step()} 0 l 0 ${f.range()[1]-f.range()[0]} l ${-c.step()} 0 Z`,className:s.root,ownerState:{axisHighlight:"band"}}),n==="band"&&d.y!==null&&io(f)&&N.jsx(qo,{d:`M ${c.range()[0]} ${f(d.y.value)-(f.step()-f.bandwidth())/2} l 0 ${f.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-f.step()} Z`,className:s.root,ownerState:{axisHighlight:"band"}}),t==="line"&&d.x!==null&&N.jsx(qo,{d:`M ${h(d.x.value)} ${f.range()[0]} L ${h(d.x.value)} ${f.range()[1]}`,className:s.root,ownerState:{axisHighlight:"line"}}),n==="line"&&d.y!==null&&N.jsx(qo,{d:`M ${c.range()[0]} ${v(d.y.value)} L ${c.range()[1]} ${v(d.y.value)}`,className:s.root,ownerState:{axisHighlight:"line"}})]})}function jM(e){const{id:t,offset:n}=e,{left:r,top:i,width:o,height:l}=T.useContext(cr),s=C({top:0,right:0,bottom:0,left:0},n);return N.jsx("clipPath",{id:t,children:N.jsx("rect",{x:r-s.left,y:i-s.top,width:o+s.left+s.right,height:l+s.top+s.bottom})})}const FM=["x","y","id","classes","color"];function zM(e){return At("MuiHighlightElement",e)}It("MuiHighlightElement",["root"]);const IM=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return tt(r,zM,t)},UM=Le("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function HM(e){const{x:t,y:n,id:r,classes:i,color:o}=e,l=te(e,FM),s={id:r,classes:i,color:o,x:t,y:n},a=IM(s);return N.jsx(UM,C({},l,{ownerState:s,className:a.root,cx:0,cy:0,r:l.r===void 0?5:l.r}))}const WM=["slots","slotProps"];function BM(e){var t,n;const{slots:r,slotProps:i}=e,o=te(e,WM),l=T.useContext(on).line,s=T.useContext(et),{axis:a}=T.useContext(ln),u=(t=a.x)==null?void 0:t.index;if(u===void 0||l===void 0)return null;const{series:c,stackingGroups:f}=l,{xAxis:d,yAxis:h,xAxisIds:v,yAxisIds:g}=s,k=v[0],m=g[0],p=(n=r==null?void 0:r.lineHighlight)!=null?n:HM;return N.jsx("g",C({},o,{children:f.flatMap(({ids:y})=>y.flatMap(x=>{const{xAxisKey:_=k,yAxisKey:w=m,stackedData:S,data:M,disableHighlight:$}=c[x];if($||M[u]==null)return null;const P=qr(d[_].scale),E=h[w].scale,b=d[_].data;if(b===void 0)throw new Error(`MUI-X-Charts: ${_===ro?"The first `xAxis`":`The x-axis with id "${_}"`} should have data property to be able to display a line plot.`);const O=P(b[u]),j=E(S[u][1]);return N.jsx(p,C({id:x,color:c[x].color,x:O,y:j},i==null?void 0:i.lineHighlight),`${x}`)}))}))}const hT=T.forwardRef(function(t,n){const{xAxis:r,yAxis:i,series:o,width:l,height:s,margin:a,colors:u,dataset:c,sx:f,tooltip:d,axisHighlight:h={x:"line"},disableLineItemHighlight:v,legend:g,topAxis:k,leftAxis:m,rightAxis:p,bottomAxis:y,children:x,slots:_,slotProps:w}=t,M=`${zv()}-clip-path`;return N.jsxs(F3,{ref:n,series:o.map($=>C({disableHighlight:!!v,type:"line"},$)),width:l,height:s,margin:a,xAxis:r??[{id:ro,scaleType:"point",data:Array.from({length:Math.max(...o.map($=>{var P,E;return((P=(E=$.data)!=null?E:c)!=null?P:[]).length}))},($,P)=>P)}],yAxis:i,colors:u,dataset:c,sx:f,disableAxisListener:(d==null?void 0:d.trigger)!=="axis"&&(h==null?void 0:h.x)==="none"&&(h==null?void 0:h.y)==="none",children:[N.jsxs("g",{clipPath:`url(#${M})`,children:[N.jsx(wC,{slots:_,slotProps:w}),N.jsx(TC,{slots:_,slotProps:w})]}),N.jsx(sM,{topAxis:k,leftAxis:m,rightAxis:p,bottomAxis:y,slots:_,slotProps:w}),N.jsx(bM,C({},h)),N.jsx(V3,{slots:_,slotProps:w}),N.jsx(BM,{slots:_,slotProps:w}),N.jsx(LM,C({},g,{slots:_,slotProps:w})),N.jsx(yM,C({},d,{slots:_,slotProps:w})),N.jsx(jM,{id:M}),x]})});export{vS as $,g2 as A,d2 as B,f2 as C,u2 as D,tg as E,Bl as F,XM as G,_S as H,kS as I,Fg as J,pT as K,hT as L,SS as M,z_ as N,_p as O,Tg as P,Pg as Q,B1 as R,_2 as S,ga as T,xg as U,kp as V,rf as W,q_ as X,Z_ as Y,K_ as Z,Ur as _,Q1 as a,yS as a0,jg as a1,wS as a2,dT as a3,xS as a4,Q_ as a5,V_ as a6,J_ as a7,mS as a8,gS as a9,F_ as aa,dg as ab,Xr as ac,R2 as ad,L2 as ae,Yr as af,$2 as ag,o2 as ah,J0 as ai,E2 as aj,P2 as ak,T2 as al,M2 as am,C2 as an,mp as ao,Vc as ap,fT as aq,sT as ar,lT as as,aT as at,cT as au,uT as av,YM as aw,rT as ax,nT as b,Yw as c,ZM as d,Nx as e,GM as f,oT as g,KM as h,eT as i,Es as j,Nt as k,qM as l,QM as m,Ms as n,Jw as o,iT as p,cx as q,Cs as r,L0 as s,jn as t,mo as u,j0 as v,JM as w,tT as x,x2 as y,v2 as z};
