@sailingrotevista/rotevista-webapp 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _A={exports:{}},Qd={},bA={exports:{}},Ee={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var wc=Symbol.for("react.element"),GL=Symbol.for("react.portal"),KL=Symbol.for("react.fragment"),qL=Symbol.for("react.strict_mode"),XL=Symbol.for("react.profiler"),YL=Symbol.for("react.provider"),QL=Symbol.for("react.context"),JL=Symbol.for("react.forward_ref"),eN=Symbol.for("react.suspense"),tN=Symbol.for("react.memo"),nN=Symbol.for("react.lazy"),Y1=Symbol.iterator;function rN(e){return e===null||typeof e!="object"?null:(e=Y1&&e[Y1]||e["@@iterator"],typeof e=="function"?e:null)}var wA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},SA=Object.assign,PA={};function js(e,t,n){this.props=e,this.context=t,this.refs=PA,this.updater=n||wA}js.prototype.isReactComponent={};js.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};js.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function OA(){}OA.prototype=js.prototype;function w0(e,t,n){this.props=e,this.context=t,this.refs=PA,this.updater=n||wA}var S0=w0.prototype=new OA;S0.constructor=w0;SA(S0,js.prototype);S0.isPureReactComponent=!0;var Q1=Array.isArray,TA=Object.prototype.hasOwnProperty,P0={current:null},AA={key:!0,ref:!0,__self:!0,__source:!0};function EA(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)TA.call(t,r)&&!AA.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),f=0;f<l;f++)u[f]=arguments[f+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:wc,type:e,key:o,ref:s,props:i,_owner:P0.current}}function iN(e,t){return{$$typeof:wc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function O0(e){return typeof e=="object"&&e!==null&&e.$$typeof===wc}function oN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var J1=/\/+/g;function Sm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?oN(""+e.key):t.toString(36)}function oh(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case wc:case GL:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Sm(s,0):r,Q1(i)?(n="",e!=null&&(n=e.replace(J1,"$&/")+"/"),oh(i,t,n,"",function(f){return f})):i!=null&&(O0(i)&&(i=iN(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(J1,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Q1(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Sm(o,l);s+=oh(o,t,n,u,i)}else if(u=rN(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Sm(o,l++),s+=oh(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function wf(e,t,n){if(e==null)return e;var r=[],i=0;return oh(e,r,"","",function(o){return t.call(n,o,i++)}),r}function aN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var an={current:null},ah={transition:null},sN={ReactCurrentDispatcher:an,ReactCurrentBatchConfig:ah,ReactCurrentOwner:P0};function kA(){throw Error("act(...) is not supported in production builds of React.")}Ee.Children={map:wf,forEach:function(e,t,n){wf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wf(e,function(){t++}),t},toArray:function(e){return wf(e,function(t){return t})||[]},only:function(e){if(!O0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ee.Component=js;Ee.Fragment=KL;Ee.Profiler=XL;Ee.PureComponent=w0;Ee.StrictMode=qL;Ee.Suspense=eN;Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sN;Ee.act=kA;Ee.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=SA({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=P0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)TA.call(t,u)&&!AA.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var f=0;f<u;f++)l[f]=arguments[f+2];r.children=l}return{$$typeof:wc,type:e.type,key:i,ref:o,props:r,_owner:s}};Ee.createContext=function(e){return e={$$typeof:QL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:YL,_context:e},e.Consumer=e};Ee.createElement=EA;Ee.createFactory=function(e){var t=EA.bind(null,e);return t.type=e,t};Ee.createRef=function(){return{current:null}};Ee.forwardRef=function(e){return{$$typeof:JL,render:e}};Ee.isValidElement=O0;Ee.lazy=function(e){return{$$typeof:nN,_payload:{_status:-1,_result:e},_init:aN}};Ee.memo=function(e,t){return{$$typeof:tN,type:e,compare:t===void 0?null:t}};Ee.startTransition=function(e){var t=ah.transition;ah.transition={};try{e()}finally{ah.transition=t}};Ee.unstable_act=kA;Ee.useCallback=function(e,t){return an.current.useCallback(e,t)};Ee.useContext=function(e){return an.current.useContext(e)};Ee.useDebugValue=function(){};Ee.useDeferredValue=function(e){return an.current.useDeferredValue(e)};Ee.useEffect=function(e,t){return an.current.useEffect(e,t)};Ee.useId=function(){return an.current.useId()};Ee.useImperativeHandle=function(e,t,n){return an.current.useImperativeHandle(e,t,n)};Ee.useInsertionEffect=function(e,t){return an.current.useInsertionEffect(e,t)};Ee.useLayoutEffect=function(e,t){return an.current.useLayoutEffect(e,t)};Ee.useMemo=function(e,t){return an.current.useMemo(e,t)};Ee.useReducer=function(e,t,n){return an.current.useReducer(e,t,n)};Ee.useRef=function(e){return an.current.useRef(e)};Ee.useState=function(e){return an.current.useState(e)};Ee.useSyncExternalStore=function(e,t,n){return an.current.useSyncExternalStore(e,t,n)};Ee.useTransition=function(){return an.current.useTransition()};Ee.version="18.3.1";bA.exports=Ee;var j=bA.exports;const I=Ue(j);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var lN=j,uN=Symbol.for("react.element"),cN=Symbol.for("react.fragment"),fN=Object.prototype.hasOwnProperty,hN=lN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dN={key:!0,ref:!0,__self:!0,__source:!0};function CA(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)fN.call(t,r)&&!dN.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:uN,type:e,key:o,ref:s,props:i,_owner:hN.current}}Qd.Fragment=cN;Qd.jsx=CA;Qd.jsxs=CA;_A.exports=Qd;var T=_A.exports,Bv={},MA={exports:{}},Cn={},jA={exports:{}},$A={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(D,G){var V=D.length;D.push(G);e:for(;0<V;){var te=V-1>>>1,J=D[te];if(0<i(J,G))D[te]=G,D[V]=J,V=te;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var G=D[0],V=D.pop();if(V!==G){D[0]=V;e:for(var te=0,J=D.length,ae=J>>>1;te<ae;){var he=2*(te+1)-1,de=D[he],fe=he+1,Fe=D[fe];if(0>i(de,V))fe<J&&0>i(Fe,de)?(D[te]=Fe,D[fe]=V,te=fe):(D[te]=de,D[he]=V,te=he);else if(fe<J&&0>i(Fe,V))D[te]=Fe,D[fe]=V,te=fe;else break e}}return G}function i(D,G){var V=D.sortIndex-G.sortIndex;return V!==0?V:D.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],f=[],h=1,d=null,m=3,v=!1,_=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(D){for(var G=n(f);G!==null;){if(G.callback===null)r(f);else if(G.startTime<=D)r(f),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(f)}}function E(D){if(x=!1,w(D),!_)if(n(u)!==null)_=!0,q(P);else{var G=n(f);G!==null&&X(E,G.startTime-D)}}function P(D,G){_=!1,x&&(x=!1,y(M),M=-1),v=!0;var V=m;try{for(w(G),d=n(u);d!==null&&(!(d.expirationTime>G)||D&&!B());){var te=d.callback;if(typeof te=="function"){d.callback=null,m=d.priorityLevel;var J=te(d.expirationTime<=G);G=e.unstable_now(),typeof J=="function"?d.callback=J:d===n(u)&&r(u),w(G)}else r(u);d=n(u)}if(d!==null)var ae=!0;else{var he=n(f);he!==null&&X(E,he.startTime-G),ae=!1}return ae}finally{d=null,m=V,v=!1}}var A=!1,C=null,M=-1,$=5,z=-1;function B(){return!(e.unstable_now()-z<$)}function R(){if(C!==null){var D=e.unstable_now();z=D;var G=!0;try{G=C(!0,D)}finally{G?Q():(A=!1,C=null)}}else A=!1}var Q;if(typeof b=="function")Q=function(){b(R)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,K=H.port2;H.port1.onmessage=R,Q=function(){K.postMessage(null)}}else Q=function(){S(R,0)};function q(D){C=D,A||(A=!0,Q())}function X(D,G){M=S(function(){D(e.unstable_now())},G)}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(D){D.callback=null},e.unstable_continueExecution=function(){_||v||(_=!0,q(P))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var G=3;break;default:G=m}var V=m;m=G;try{return D()}finally{m=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,G){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var V=m;m=D;try{return G()}finally{m=V}},e.unstable_scheduleCallback=function(D,G,V){var te=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?te+V:te):V=te,D){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=V+J,D={id:h++,callback:G,priorityLevel:D,startTime:V,expirationTime:J,sortIndex:-1},V>te?(D.sortIndex=V,t(f,D),n(u)===null&&D===n(f)&&(x?(y(M),M=-1):x=!0,X(E,V-te))):(D.sortIndex=J,t(u,D),_||v||(_=!0,q(P))),D},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(D){var G=m;return function(){var V=m;m=G;try{return D.apply(this,arguments)}finally{m=V}}}})($A);jA.exports=$A;var pN=jA.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var mN=j,An=pN;function re(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 LA=new Set,yu={};function Yo(e,t){Qa(e,t),Qa(e+"Capture",t)}function Qa(e,t){for(yu[e]=t,e=0;e<t.length;e++)LA.add(t[e])}var ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fv=Object.prototype.hasOwnProperty,vN=/^[: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]*$/,eb={},tb={};function gN(e){return Fv.call(tb,e)?!0:Fv.call(eb,e)?!1:vN.test(e)?tb[e]=!0:(eb[e]=!0,!1)}function yN(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 xN(e,t,n,r){if(t===null||typeof t>"u"||yN(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 sn(e,t,n,r,i,o,s){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=s}var Ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ut[e]=new sn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ut[t]=new sn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new sn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new sn(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){Ut[e]=new sn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new sn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ut[e]=new sn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ut[e]=new sn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ut[e]=new sn(e,5,!1,e.toLowerCase(),null,!1,!1)});var T0=/[\-:]([a-z])/g;function A0(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(T0,A0);Ut[t]=new sn(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(T0,A0);Ut[t]=new sn(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(T0,A0);Ut[t]=new sn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new sn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ut.xlinkHref=new sn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ut[e]=new sn(e,1,!1,e.toLowerCase(),null,!0,!0)});function E0(e,t,n,r){var i=Ut.hasOwnProperty(t)?Ut[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xN(t,n,i,r)&&(n=null),r||i===null?gN(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 mi=mN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sf=Symbol.for("react.element"),ba=Symbol.for("react.portal"),wa=Symbol.for("react.fragment"),k0=Symbol.for("react.strict_mode"),Vv=Symbol.for("react.profiler"),NA=Symbol.for("react.provider"),IA=Symbol.for("react.context"),C0=Symbol.for("react.forward_ref"),Uv=Symbol.for("react.suspense"),Wv=Symbol.for("react.suspense_list"),M0=Symbol.for("react.memo"),Ei=Symbol.for("react.lazy"),DA=Symbol.for("react.offscreen"),nb=Symbol.iterator;function Sl(e){return e===null||typeof e!="object"?null:(e=nb&&e[nb]||e["@@iterator"],typeof e=="function"?e:null)}var lt=Object.assign,Pm;function Wl(e){if(Pm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Pm=t&&t[1]||""}return`
|
|
34
|
+
`+Pm+e}var Om=!1;function Tm(e,t){if(!e||Om)return"";Om=!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(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Om=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wl(e):""}function _N(e){switch(e.tag){case 5:return Wl(e.type);case 16:return Wl("Lazy");case 13:return Wl("Suspense");case 19:return Wl("SuspenseList");case 0:case 2:case 15:return e=Tm(e.type,!1),e;case 11:return e=Tm(e.type.render,!1),e;case 1:return e=Tm(e.type,!0),e;default:return""}}function Hv(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 wa:return"Fragment";case ba:return"Portal";case Vv:return"Profiler";case k0:return"StrictMode";case Uv:return"Suspense";case Wv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case IA:return(e.displayName||"Context")+".Consumer";case NA:return(e._context.displayName||"Context")+".Provider";case C0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M0:return t=e.displayName||null,t!==null?t:Hv(e.type)||"Memo";case Ei:t=e._payload,e=e._init;try{return Hv(e(t))}catch{}}return null}function bN(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 Hv(t);case 8:return t===k0?"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 Gi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function RA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wN(e){var t=RA(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pf(e){e._valueTracker||(e._valueTracker=wN(e))}function zA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=RA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _h(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 Zv(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gi(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 BA(e,t){t=t.checked,t!=null&&E0(e,"checked",t,!1)}function Gv(e,t){BA(e,t);var n=Gi(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")?Kv(e,t.type,n):t.hasOwnProperty("defaultValue")&&Kv(e,t.type,Gi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ib(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 Kv(e,t,n){(t!=="number"||_h(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hl=Array.isArray;function Fa(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=""+Gi(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 qv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(re(91));return lt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ob(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(re(92));if(Hl(n)){if(1<n.length)throw Error(re(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Gi(n)}}function FA(e,t){var n=Gi(t.value),r=Gi(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 ab(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function VA(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 Xv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?VA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Of,UA=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(Of=Of||document.createElement("div"),Of.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Of.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jl={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},SN=["Webkit","ms","Moz","O"];Object.keys(Jl).forEach(function(e){SN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jl[t]=Jl[e]})});function WA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jl.hasOwnProperty(e)&&Jl[e]?(""+t).trim():t+"px"}function HA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=WA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var PN=lt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yv(e,t){if(t){if(PN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function Qv(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 Jv=null;function j0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eg=null,Va=null,Ua=null;function sb(e){if(e=Oc(e)){if(typeof eg!="function")throw Error(re(280));var t=e.stateNode;t&&(t=rp(t),eg(e.stateNode,e.type,t))}}function ZA(e){Va?Ua?Ua.push(e):Ua=[e]:Va=e}function GA(){if(Va){var e=Va,t=Ua;if(Ua=Va=null,sb(e),t)for(e=0;e<t.length;e++)sb(t[e])}}function KA(e,t){return e(t)}function qA(){}var Am=!1;function XA(e,t,n){if(Am)return e(t,n);Am=!0;try{return KA(e,t,n)}finally{Am=!1,(Va!==null||Ua!==null)&&(qA(),GA())}}function _u(e,t){var n=e.stateNode;if(n===null)return null;var r=rp(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(re(231,t,typeof n));return n}var tg=!1;if(ai)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){tg=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{tg=!1}function ON(e,t,n,r,i,o,s,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(h){this.onError(h)}}var eu=!1,bh=null,wh=!1,ng=null,TN={onError:function(e){eu=!0,bh=e}};function AN(e,t,n,r,i,o,s,l,u){eu=!1,bh=null,ON.apply(TN,arguments)}function EN(e,t,n,r,i,o,s,l,u){if(AN.apply(this,arguments),eu){if(eu){var f=bh;eu=!1,bh=null}else throw Error(re(198));wh||(wh=!0,ng=f)}}function Qo(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 YA(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 lb(e){if(Qo(e)!==e)throw Error(re(188))}function kN(e){var t=e.alternate;if(!t){if(t=Qo(e),t===null)throw Error(re(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 lb(i),e;if(o===r)return lb(i),t;o=o.sibling}throw Error(re(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(re(189))}}if(n.alternate!==r)throw Error(re(190))}if(n.tag!==3)throw Error(re(188));return n.stateNode.current===n?e:t}function QA(e){return e=kN(e),e!==null?JA(e):null}function JA(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=JA(e);if(t!==null)return t;e=e.sibling}return null}var e2=An.unstable_scheduleCallback,ub=An.unstable_cancelCallback,CN=An.unstable_shouldYield,MN=An.unstable_requestPaint,mt=An.unstable_now,jN=An.unstable_getCurrentPriorityLevel,$0=An.unstable_ImmediatePriority,t2=An.unstable_UserBlockingPriority,Sh=An.unstable_NormalPriority,$N=An.unstable_LowPriority,n2=An.unstable_IdlePriority,Jd=null,Er=null;function LN(e){if(Er&&typeof Er.onCommitFiberRoot=="function")try{Er.onCommitFiberRoot(Jd,e,void 0,(e.current.flags&128)===128)}catch{}}var dr=Math.clz32?Math.clz32:DN,NN=Math.log,IN=Math.LN2;function DN(e){return e>>>=0,e===0?32:31-(NN(e)/IN|0)|0}var Tf=64,Af=4194304;function Zl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ph(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Zl(l):(o&=s,o!==0&&(r=Zl(o)))}else s=n&~i,s!==0?r=Zl(s):o!==0&&(r=Zl(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-dr(t),i=1<<n,r|=e[n],t&=~i;return r}function RN(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 zN(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-dr(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=RN(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}function rg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function r2(){var e=Tf;return Tf<<=1,!(Tf&4194240)&&(Tf=64),e}function Em(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Sc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dr(t),e[t]=n}function BN(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-dr(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function L0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-dr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ze=0;function i2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var o2,N0,a2,s2,l2,ig=!1,Ef=[],Ri=null,zi=null,Bi=null,bu=new Map,wu=new Map,Mi=[],FN="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 cb(e,t){switch(e){case"focusin":case"focusout":Ri=null;break;case"dragenter":case"dragleave":zi=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wu.delete(t.pointerId)}}function Ol(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=Oc(t),t!==null&&N0(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function VN(e,t,n,r,i){switch(t){case"focusin":return Ri=Ol(Ri,e,t,n,r,i),!0;case"dragenter":return zi=Ol(zi,e,t,n,r,i),!0;case"mouseover":return Bi=Ol(Bi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return bu.set(o,Ol(bu.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,wu.set(o,Ol(wu.get(o)||null,e,t,n,r,i)),!0}return!1}function u2(e){var t=To(e.target);if(t!==null){var n=Qo(t);if(n!==null){if(t=n.tag,t===13){if(t=YA(n),t!==null){e.blockedOn=t,l2(e.priority,function(){a2(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 sh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=og(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Jv=r,n.target.dispatchEvent(r),Jv=null}else return t=Oc(n),t!==null&&N0(t),e.blockedOn=n,!1;t.shift()}return!0}function fb(e,t,n){sh(e)&&n.delete(t)}function UN(){ig=!1,Ri!==null&&sh(Ri)&&(Ri=null),zi!==null&&sh(zi)&&(zi=null),Bi!==null&&sh(Bi)&&(Bi=null),bu.forEach(fb),wu.forEach(fb)}function Tl(e,t){e.blockedOn===t&&(e.blockedOn=null,ig||(ig=!0,An.unstable_scheduleCallback(An.unstable_NormalPriority,UN)))}function Su(e){function t(i){return Tl(i,e)}if(0<Ef.length){Tl(Ef[0],e);for(var n=1;n<Ef.length;n++){var r=Ef[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ri!==null&&Tl(Ri,e),zi!==null&&Tl(zi,e),Bi!==null&&Tl(Bi,e),bu.forEach(t),wu.forEach(t),n=0;n<Mi.length;n++)r=Mi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Mi.length&&(n=Mi[0],n.blockedOn===null);)u2(n),n.blockedOn===null&&Mi.shift()}var Wa=mi.ReactCurrentBatchConfig,Oh=!0;function WN(e,t,n,r){var i=ze,o=Wa.transition;Wa.transition=null;try{ze=1,I0(e,t,n,r)}finally{ze=i,Wa.transition=o}}function HN(e,t,n,r){var i=ze,o=Wa.transition;Wa.transition=null;try{ze=4,I0(e,t,n,r)}finally{ze=i,Wa.transition=o}}function I0(e,t,n,r){if(Oh){var i=og(e,t,n,r);if(i===null)Rm(e,t,r,Th,n),cb(e,r);else if(VN(i,e,t,n,r))r.stopPropagation();else if(cb(e,r),t&4&&-1<FN.indexOf(e)){for(;i!==null;){var o=Oc(i);if(o!==null&&o2(o),o=og(e,t,n,r),o===null&&Rm(e,t,r,Th,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Rm(e,t,r,null,n)}}var Th=null;function og(e,t,n,r){if(Th=null,e=j0(r),e=To(e),e!==null)if(t=Qo(e),t===null)e=null;else if(n=t.tag,n===13){if(e=YA(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 Th=e,null}function c2(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(jN()){case $0:return 1;case t2:return 4;case Sh:case $N:return 16;case n2:return 536870912;default:return 16}default:return 16}}var Li=null,D0=null,lh=null;function f2(){if(lh)return lh;var e,t=D0,n=t.length,r,i="value"in Li?Li.value:Li.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return lh=i.slice(e,1<r?1-r:void 0)}function uh(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 kf(){return!0}function hb(){return!1}function Mn(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?kf:hb,this.isPropagationStopped=hb,this}return lt(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=kf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=kf)},persist:function(){},isPersistent:kf}),t}var $s={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},R0=Mn($s),Pc=lt({},$s,{view:0,detail:0}),ZN=Mn(Pc),km,Cm,Al,ep=lt({},Pc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:z0,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!==Al&&(Al&&e.type==="mousemove"?(km=e.screenX-Al.screenX,Cm=e.screenY-Al.screenY):Cm=km=0,Al=e),km)},movementY:function(e){return"movementY"in e?e.movementY:Cm}}),db=Mn(ep),GN=lt({},ep,{dataTransfer:0}),KN=Mn(GN),qN=lt({},Pc,{relatedTarget:0}),Mm=Mn(qN),XN=lt({},$s,{animationName:0,elapsedTime:0,pseudoElement:0}),YN=Mn(XN),QN=lt({},$s,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),JN=Mn(QN),eI=lt({},$s,{data:0}),pb=Mn(eI),tI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nI={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"},rI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rI[e])?!!t[e]:!1}function z0(){return iI}var oI=lt({},Pc,{key:function(e){if(e.key){var t=tI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=uh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:z0,charCode:function(e){return e.type==="keypress"?uh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?uh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),aI=Mn(oI),sI=lt({},ep,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mb=Mn(sI),lI=lt({},Pc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:z0}),uI=Mn(lI),cI=lt({},$s,{propertyName:0,elapsedTime:0,pseudoElement:0}),fI=Mn(cI),hI=lt({},ep,{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}),dI=Mn(hI),pI=[9,13,27,32],B0=ai&&"CompositionEvent"in window,tu=null;ai&&"documentMode"in document&&(tu=document.documentMode);var mI=ai&&"TextEvent"in window&&!tu,h2=ai&&(!B0||tu&&8<tu&&11>=tu),vb=" ",gb=!1;function d2(e,t){switch(e){case"keyup":return pI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function p2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sa=!1;function vI(e,t){switch(e){case"compositionend":return p2(t);case"keypress":return t.which!==32?null:(gb=!0,vb);case"textInput":return e=t.data,e===vb&&gb?null:e;default:return null}}function gI(e,t){if(Sa)return e==="compositionend"||!B0&&d2(e,t)?(e=f2(),lh=D0=Li=null,Sa=!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 h2&&t.locale!=="ko"?null:t.data;default:return null}}var yI={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 yb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yI[e.type]:t==="textarea"}function m2(e,t,n,r){ZA(r),t=Ah(t,"onChange"),0<t.length&&(n=new R0("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nu=null,Pu=null;function xI(e){T2(e,0)}function tp(e){var t=Ta(e);if(zA(t))return e}function _I(e,t){if(e==="change")return t}var v2=!1;if(ai){var jm;if(ai){var $m="oninput"in document;if(!$m){var xb=document.createElement("div");xb.setAttribute("oninput","return;"),$m=typeof xb.oninput=="function"}jm=$m}else jm=!1;v2=jm&&(!document.documentMode||9<document.documentMode)}function _b(){nu&&(nu.detachEvent("onpropertychange",g2),Pu=nu=null)}function g2(e){if(e.propertyName==="value"&&tp(Pu)){var t=[];m2(t,Pu,e,j0(e)),XA(xI,t)}}function bI(e,t,n){e==="focusin"?(_b(),nu=t,Pu=n,nu.attachEvent("onpropertychange",g2)):e==="focusout"&&_b()}function wI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tp(Pu)}function SI(e,t){if(e==="click")return tp(t)}function PI(e,t){if(e==="input"||e==="change")return tp(t)}function OI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vr=typeof Object.is=="function"?Object.is:OI;function Ou(e,t){if(vr(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(!Fv.call(t,i)||!vr(e[i],t[i]))return!1}return!0}function bb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wb(e,t){var n=bb(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=bb(n)}}function y2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function x2(){for(var e=window,t=_h();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_h(e.document)}return t}function F0(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 TI(e){var t=x2(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&y2(n.ownerDocument.documentElement,n)){if(r!==null&&F0(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=wb(n,o);var s=wb(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 AI=ai&&"documentMode"in document&&11>=document.documentMode,Pa=null,ag=null,ru=null,sg=!1;function Sb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sg||Pa==null||Pa!==_h(r)||(r=Pa,"selectionStart"in r&&F0(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}),ru&&Ou(ru,r)||(ru=r,r=Ah(ag,"onSelect"),0<r.length&&(t=new R0("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pa)))}function Cf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Oa={animationend:Cf("Animation","AnimationEnd"),animationiteration:Cf("Animation","AnimationIteration"),animationstart:Cf("Animation","AnimationStart"),transitionend:Cf("Transition","TransitionEnd")},Lm={},_2={};ai&&(_2=document.createElement("div").style,"AnimationEvent"in window||(delete Oa.animationend.animation,delete Oa.animationiteration.animation,delete Oa.animationstart.animation),"TransitionEvent"in window||delete Oa.transitionend.transition);function np(e){if(Lm[e])return Lm[e];if(!Oa[e])return e;var t=Oa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _2)return Lm[e]=t[n];return e}var b2=np("animationend"),w2=np("animationiteration"),S2=np("animationstart"),P2=np("transitionend"),O2=new Map,Pb="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 Yi(e,t){O2.set(e,t),Yo(t,[e])}for(var Nm=0;Nm<Pb.length;Nm++){var Im=Pb[Nm],EI=Im.toLowerCase(),kI=Im[0].toUpperCase()+Im.slice(1);Yi(EI,"on"+kI)}Yi(b2,"onAnimationEnd");Yi(w2,"onAnimationIteration");Yi(S2,"onAnimationStart");Yi("dblclick","onDoubleClick");Yi("focusin","onFocus");Yi("focusout","onBlur");Yi(P2,"onTransitionEnd");Qa("onMouseEnter",["mouseout","mouseover"]);Qa("onMouseLeave",["mouseout","mouseover"]);Qa("onPointerEnter",["pointerout","pointerover"]);Qa("onPointerLeave",["pointerout","pointerover"]);Yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gl="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(" "),CI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gl));function Ob(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,EN(r,t,void 0,e),e.currentTarget=null}function T2(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 s=r.length-1;0<=s;s--){var l=r[s],u=l.instance,f=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;Ob(i,l,f),o=u}else for(s=0;s<r.length;s++){if(l=r[s],u=l.instance,f=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;Ob(i,l,f),o=u}}}if(wh)throw e=ng,wh=!1,ng=null,e}function qe(e,t){var n=t[hg];n===void 0&&(n=t[hg]=new Set);var r=e+"__bubble";n.has(r)||(A2(t,e,2,!1),n.add(r))}function Dm(e,t,n){var r=0;t&&(r|=4),A2(n,e,r,t)}var Mf="_reactListening"+Math.random().toString(36).slice(2);function Tu(e){if(!e[Mf]){e[Mf]=!0,LA.forEach(function(n){n!=="selectionchange"&&(CI.has(n)||Dm(n,!1,e),Dm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mf]||(t[Mf]=!0,Dm("selectionchange",!1,t))}}function A2(e,t,n,r){switch(c2(t)){case 1:var i=WN;break;case 4:i=HN;break;default:i=I0}n=i.bind(null,t,n,e),i=void 0,!tg||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 Rm(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;l!==null;){if(s=To(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}XA(function(){var f=o,h=j0(n),d=[];e:{var m=O2.get(e);if(m!==void 0){var v=R0,_=e;switch(e){case"keypress":if(uh(n)===0)break e;case"keydown":case"keyup":v=aI;break;case"focusin":_="focus",v=Mm;break;case"focusout":_="blur",v=Mm;break;case"beforeblur":case"afterblur":v=Mm;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":v=db;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=KN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=uI;break;case b2:case w2:case S2:v=YN;break;case P2:v=fI;break;case"scroll":v=ZN;break;case"wheel":v=dI;break;case"copy":case"cut":case"paste":v=JN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=mb}var x=(t&4)!==0,S=!x&&e==="scroll",y=x?m!==null?m+"Capture":null:m;x=[];for(var b=f,w;b!==null;){w=b;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,y!==null&&(E=_u(b,y),E!=null&&x.push(Au(b,E,w)))),S)break;b=b.return}0<x.length&&(m=new v(m,_,null,n,h),d.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==Jv&&(_=n.relatedTarget||n.fromElement)&&(To(_)||_[si]))break e;if((v||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,v?(_=n.relatedTarget||n.toElement,v=f,_=_?To(_):null,_!==null&&(S=Qo(_),_!==S||_.tag!==5&&_.tag!==6)&&(_=null)):(v=null,_=f),v!==_)){if(x=db,E="onMouseLeave",y="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(x=mb,E="onPointerLeave",y="onPointerEnter",b="pointer"),S=v==null?m:Ta(v),w=_==null?m:Ta(_),m=new x(E,b+"leave",v,n,h),m.target=S,m.relatedTarget=w,E=null,To(h)===f&&(x=new x(y,b+"enter",_,n,h),x.target=w,x.relatedTarget=S,E=x),S=E,v&&_)t:{for(x=v,y=_,b=0,w=x;w;w=ga(w))b++;for(w=0,E=y;E;E=ga(E))w++;for(;0<b-w;)x=ga(x),b--;for(;0<w-b;)y=ga(y),w--;for(;b--;){if(x===y||y!==null&&x===y.alternate)break t;x=ga(x),y=ga(y)}x=null}else x=null;v!==null&&Tb(d,m,v,x,!1),_!==null&&S!==null&&Tb(d,S,_,x,!0)}}e:{if(m=f?Ta(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var P=_I;else if(yb(m))if(v2)P=PI;else{P=wI;var A=bI}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=SI);if(P&&(P=P(e,f))){m2(d,P,n,h);break e}A&&A(e,m,f),e==="focusout"&&(A=m._wrapperState)&&A.controlled&&m.type==="number"&&Kv(m,"number",m.value)}switch(A=f?Ta(f):window,e){case"focusin":(yb(A)||A.contentEditable==="true")&&(Pa=A,ag=f,ru=null);break;case"focusout":ru=ag=Pa=null;break;case"mousedown":sg=!0;break;case"contextmenu":case"mouseup":case"dragend":sg=!1,Sb(d,n,h);break;case"selectionchange":if(AI)break;case"keydown":case"keyup":Sb(d,n,h)}var C;if(B0)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 Sa?d2(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(h2&&n.locale!=="ko"&&(Sa||M!=="onCompositionStart"?M==="onCompositionEnd"&&Sa&&(C=f2()):(Li=h,D0="value"in Li?Li.value:Li.textContent,Sa=!0)),A=Ah(f,M),0<A.length&&(M=new pb(M,e,null,n,h),d.push({event:M,listeners:A}),C?M.data=C:(C=p2(n),C!==null&&(M.data=C)))),(C=mI?vI(e,n):gI(e,n))&&(f=Ah(f,"onBeforeInput"),0<f.length&&(h=new pb("onBeforeInput","beforeinput",null,n,h),d.push({event:h,listeners:f}),h.data=C))}T2(d,t)})}function Au(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ah(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=_u(e,n),o!=null&&r.unshift(Au(e,o,i)),o=_u(e,t),o!=null&&r.push(Au(e,o,i))),e=e.return}return r}function ga(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Tb(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,u=l.alternate,f=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&f!==null&&(l=f,i?(u=_u(n,o),u!=null&&s.unshift(Au(n,u,l))):i||(u=_u(n,o),u!=null&&s.push(Au(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var MI=/\r\n?/g,jI=/\u0000|\uFFFD/g;function Ab(e){return(typeof e=="string"?e:""+e).replace(MI,`
|
|
38
|
+
`).replace(jI,"")}function jf(e,t,n){if(t=Ab(t),Ab(e)!==t&&n)throw Error(re(425))}function Eh(){}var lg=null,ug=null;function cg(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 fg=typeof setTimeout=="function"?setTimeout:void 0,$I=typeof clearTimeout=="function"?clearTimeout:void 0,Eb=typeof Promise=="function"?Promise:void 0,LI=typeof queueMicrotask=="function"?queueMicrotask:typeof Eb<"u"?function(e){return Eb.resolve(null).then(e).catch(NI)}:fg;function NI(e){setTimeout(function(){throw e})}function zm(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),Su(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Su(t)}function Fi(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 kb(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 Ls=Math.random().toString(36).slice(2),Or="__reactFiber$"+Ls,Eu="__reactProps$"+Ls,si="__reactContainer$"+Ls,hg="__reactEvents$"+Ls,II="__reactListeners$"+Ls,DI="__reactHandles$"+Ls;function To(e){var t=e[Or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[si]||n[Or]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kb(e);e!==null;){if(n=e[Or])return n;e=kb(e)}return t}e=n,n=e.parentNode}return null}function Oc(e){return e=e[Or]||e[si],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ta(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(re(33))}function rp(e){return e[Eu]||null}var dg=[],Aa=-1;function Qi(e){return{current:e}}function Qe(e){0>Aa||(e.current=dg[Aa],dg[Aa]=null,Aa--)}function Ke(e,t){Aa++,dg[Aa]=e.current,e.current=t}var Ki={},en=Qi(Ki),hn=Qi(!1),Fo=Ki;function Ja(e,t){var n=e.type.contextTypes;if(!n)return Ki;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 dn(e){return e=e.childContextTypes,e!=null}function kh(){Qe(hn),Qe(en)}function Cb(e,t,n){if(en.current!==Ki)throw Error(re(168));Ke(en,t),Ke(hn,n)}function E2(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(re(108,bN(e)||"Unknown",i));return lt({},n,r)}function Ch(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ki,Fo=en.current,Ke(en,e),Ke(hn,hn.current),!0}function Mb(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=E2(e,t,Fo),r.__reactInternalMemoizedMergedChildContext=e,Qe(hn),Qe(en),Ke(en,e)):Qe(hn),Ke(hn,n)}var Gr=null,ip=!1,Bm=!1;function k2(e){Gr===null?Gr=[e]:Gr.push(e)}function RI(e){ip=!0,k2(e)}function Ji(){if(!Bm&&Gr!==null){Bm=!0;var e=0,t=ze;try{var n=Gr;for(ze=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Gr=null,ip=!1}catch(i){throw Gr!==null&&(Gr=Gr.slice(e+1)),e2($0,Ji),i}finally{ze=t,Bm=!1}}return null}var Ea=[],ka=0,Mh=null,jh=0,Fn=[],Vn=0,Vo=null,qr=1,Xr="";function xo(e,t){Ea[ka++]=jh,Ea[ka++]=Mh,Mh=e,jh=t}function C2(e,t,n){Fn[Vn++]=qr,Fn[Vn++]=Xr,Fn[Vn++]=Vo,Vo=e;var r=qr;e=Xr;var i=32-dr(r)-1;r&=~(1<<i),n+=1;var o=32-dr(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,qr=1<<32-dr(t)+i|n<<i|r,Xr=o+e}else qr=1<<o|n<<i|r,Xr=e}function V0(e){e.return!==null&&(xo(e,1),C2(e,1,0))}function U0(e){for(;e===Mh;)Mh=Ea[--ka],Ea[ka]=null,jh=Ea[--ka],Ea[ka]=null;for(;e===Vo;)Vo=Fn[--Vn],Fn[Vn]=null,Xr=Fn[--Vn],Fn[Vn]=null,qr=Fn[--Vn],Fn[Vn]=null}var On=null,Pn=null,et=!1,cr=null;function M2(e,t){var n=Wn(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 jb(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,On=e,Pn=Fi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,On=e,Pn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vo!==null?{id:qr,overflow:Xr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Wn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,On=e,Pn=null,!0):!1;default:return!1}}function pg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function mg(e){if(et){var t=Pn;if(t){var n=t;if(!jb(e,t)){if(pg(e))throw Error(re(418));t=Fi(n.nextSibling);var r=On;t&&jb(e,t)?M2(r,n):(e.flags=e.flags&-4097|2,et=!1,On=e)}}else{if(pg(e))throw Error(re(418));e.flags=e.flags&-4097|2,et=!1,On=e}}}function $b(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;On=e}function $f(e){if(e!==On)return!1;if(!et)return $b(e),et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!cg(e.type,e.memoizedProps)),t&&(t=Pn)){if(pg(e))throw j2(),Error(re(418));for(;t;)M2(e,t),t=Fi(t.nextSibling)}if($b(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Pn=Fi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Pn=null}}else Pn=On?Fi(e.stateNode.nextSibling):null;return!0}function j2(){for(var e=Pn;e;)e=Fi(e.nextSibling)}function es(){Pn=On=null,et=!1}function W0(e){cr===null?cr=[e]:cr.push(e)}var zI=mi.ReactCurrentBatchConfig;function El(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(re(309));var r=n.stateNode}if(!r)throw Error(re(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(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(re(284));if(!n._owner)throw Error(re(290,e))}return e}function Lf(e,t){throw e=Object.prototype.toString.call(t),Error(re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lb(e){var t=e._init;return t(e._payload)}function $2(e){function t(y,b){if(e){var w=y.deletions;w===null?(y.deletions=[b],y.flags|=16):w.push(b)}}function n(y,b){if(!e)return null;for(;b!==null;)t(y,b),b=b.sibling;return null}function r(y,b){for(y=new Map;b!==null;)b.key!==null?y.set(b.key,b):y.set(b.index,b),b=b.sibling;return y}function i(y,b){return y=Hi(y,b),y.index=0,y.sibling=null,y}function o(y,b,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<b?(y.flags|=2,b):w):(y.flags|=2,b)):(y.flags|=1048576,b)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,b,w,E){return b===null||b.tag!==6?(b=Gm(w,y.mode,E),b.return=y,b):(b=i(b,w),b.return=y,b)}function u(y,b,w,E){var P=w.type;return P===wa?h(y,b,w.props.children,E,w.key):b!==null&&(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Ei&&Lb(P)===b.type)?(E=i(b,w.props),E.ref=El(y,b,w),E.return=y,E):(E=vh(w.type,w.key,w.props,null,y.mode,E),E.ref=El(y,b,w),E.return=y,E)}function f(y,b,w,E){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=Km(w,y.mode,E),b.return=y,b):(b=i(b,w.children||[]),b.return=y,b)}function h(y,b,w,E,P){return b===null||b.tag!==7?(b=Io(w,y.mode,E,P),b.return=y,b):(b=i(b,w),b.return=y,b)}function d(y,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Gm(""+b,y.mode,w),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Sf:return w=vh(b.type,b.key,b.props,null,y.mode,w),w.ref=El(y,null,b),w.return=y,w;case ba:return b=Km(b,y.mode,w),b.return=y,b;case Ei:var E=b._init;return d(y,E(b._payload),w)}if(Hl(b)||Sl(b))return b=Io(b,y.mode,w,null),b.return=y,b;Lf(y,b)}return null}function m(y,b,w,E){var P=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:l(y,b,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Sf:return w.key===P?u(y,b,w,E):null;case ba:return w.key===P?f(y,b,w,E):null;case Ei:return P=w._init,m(y,b,P(w._payload),E)}if(Hl(w)||Sl(w))return P!==null?null:h(y,b,w,E,null);Lf(y,w)}return null}function v(y,b,w,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return y=y.get(w)||null,l(b,y,""+E,P);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Sf:return y=y.get(E.key===null?w:E.key)||null,u(b,y,E,P);case ba:return y=y.get(E.key===null?w:E.key)||null,f(b,y,E,P);case Ei:var A=E._init;return v(y,b,w,A(E._payload),P)}if(Hl(E)||Sl(E))return y=y.get(w)||null,h(b,y,E,P,null);Lf(b,E)}return null}function _(y,b,w,E){for(var P=null,A=null,C=b,M=b=0,$=null;C!==null&&M<w.length;M++){C.index>M?($=C,C=null):$=C.sibling;var z=m(y,C,w[M],E);if(z===null){C===null&&(C=$);break}e&&C&&z.alternate===null&&t(y,C),b=o(z,b,M),A===null?P=z:A.sibling=z,A=z,C=$}if(M===w.length)return n(y,C),et&&xo(y,M),P;if(C===null){for(;M<w.length;M++)C=d(y,w[M],E),C!==null&&(b=o(C,b,M),A===null?P=C:A.sibling=C,A=C);return et&&xo(y,M),P}for(C=r(y,C);M<w.length;M++)$=v(C,y,M,w[M],E),$!==null&&(e&&$.alternate!==null&&C.delete($.key===null?M:$.key),b=o($,b,M),A===null?P=$:A.sibling=$,A=$);return e&&C.forEach(function(B){return t(y,B)}),et&&xo(y,M),P}function x(y,b,w,E){var P=Sl(w);if(typeof P!="function")throw Error(re(150));if(w=P.call(w),w==null)throw Error(re(151));for(var A=P=null,C=b,M=b=0,$=null,z=w.next();C!==null&&!z.done;M++,z=w.next()){C.index>M?($=C,C=null):$=C.sibling;var B=m(y,C,z.value,E);if(B===null){C===null&&(C=$);break}e&&C&&B.alternate===null&&t(y,C),b=o(B,b,M),A===null?P=B:A.sibling=B,A=B,C=$}if(z.done)return n(y,C),et&&xo(y,M),P;if(C===null){for(;!z.done;M++,z=w.next())z=d(y,z.value,E),z!==null&&(b=o(z,b,M),A===null?P=z:A.sibling=z,A=z);return et&&xo(y,M),P}for(C=r(y,C);!z.done;M++,z=w.next())z=v(C,y,M,z.value,E),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?M:z.key),b=o(z,b,M),A===null?P=z:A.sibling=z,A=z);return e&&C.forEach(function(R){return t(y,R)}),et&&xo(y,M),P}function S(y,b,w,E){if(typeof w=="object"&&w!==null&&w.type===wa&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Sf:e:{for(var P=w.key,A=b;A!==null;){if(A.key===P){if(P=w.type,P===wa){if(A.tag===7){n(y,A.sibling),b=i(A,w.props.children),b.return=y,y=b;break e}}else if(A.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Ei&&Lb(P)===A.type){n(y,A.sibling),b=i(A,w.props),b.ref=El(y,A,w),b.return=y,y=b;break e}n(y,A);break}else t(y,A);A=A.sibling}w.type===wa?(b=Io(w.props.children,y.mode,E,w.key),b.return=y,y=b):(E=vh(w.type,w.key,w.props,null,y.mode,E),E.ref=El(y,b,w),E.return=y,y=E)}return s(y);case ba:e:{for(A=w.key;b!==null;){if(b.key===A)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(y,b.sibling),b=i(b,w.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=Km(w,y.mode,E),b.return=y,y=b}return s(y);case Ei:return A=w._init,S(y,b,A(w._payload),E)}if(Hl(w))return _(y,b,w,E);if(Sl(w))return x(y,b,w,E);Lf(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(n(y,b.sibling),b=i(b,w),b.return=y,y=b):(n(y,b),b=Gm(w,y.mode,E),b.return=y,y=b),s(y)):n(y,b)}return S}var ts=$2(!0),L2=$2(!1),$h=Qi(null),Lh=null,Ca=null,H0=null;function Z0(){H0=Ca=Lh=null}function G0(e){var t=$h.current;Qe($h),e._currentValue=t}function vg(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 Ha(e,t){Lh=e,H0=Ca=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(cn=!0),e.firstContext=null)}function Kn(e){var t=e._currentValue;if(H0!==e)if(e={context:e,memoizedValue:t,next:null},Ca===null){if(Lh===null)throw Error(re(308));Ca=e,Lh.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var Ao=null;function K0(e){Ao===null?Ao=[e]:Ao.push(e)}function N2(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,K0(t)):(n.next=i.next,i.next=n),t.interleaved=n,li(e,r)}function li(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 ki=!1;function q0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function I2(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 ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$e&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,li(e,n)}return i=r.interleaved,i===null?(t.next=t,K0(r)):(t.next=i.next,i.next=t),r.interleaved=t,li(e,n)}function ch(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,L0(e,n)}}function Nb(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,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 Nh(e,t,n,r){var i=e.updateQueue;ki=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,f=u.next;u.next=null,s===null?o=f:s.next=f,s=u;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==s&&(l===null?h.firstBaseUpdate=f:l.next=f,h.lastBaseUpdate=u))}if(o!==null){var d=i.baseState;s=0,h=f=u=null,l=o;do{var m=l.lane,v=l.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var _=e,x=l;switch(m=t,v=n,x.tag){case 1:if(_=x.payload,typeof _=="function"){d=_.call(v,d,m);break e}d=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=x.payload,m=typeof _=="function"?_.call(v,d,m):_,m==null)break e;d=lt({},d,m);break e;case 2:ki=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(f=h=v,u=d):h=h.next=v,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(h===null&&(u=d),i.baseState=u,i.firstBaseUpdate=f,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Wo|=s,e.lanes=s,e.memoizedState=d}}function Ib(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(re(191,i));i.call(r)}}}var Tc={},kr=Qi(Tc),ku=Qi(Tc),Cu=Qi(Tc);function Eo(e){if(e===Tc)throw Error(re(174));return e}function X0(e,t){switch(Ke(Cu,t),Ke(ku,e),Ke(kr,Tc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xv(t,e)}Qe(kr),Ke(kr,t)}function ns(){Qe(kr),Qe(ku),Qe(Cu)}function D2(e){Eo(Cu.current);var t=Eo(kr.current),n=Xv(t,e.type);t!==n&&(Ke(ku,e),Ke(kr,n))}function Y0(e){ku.current===e&&(Qe(kr),Qe(ku))}var it=Qi(0);function Ih(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 Fm=[];function Q0(){for(var e=0;e<Fm.length;e++)Fm[e]._workInProgressVersionPrimary=null;Fm.length=0}var fh=mi.ReactCurrentDispatcher,Vm=mi.ReactCurrentBatchConfig,Uo=0,st=null,St=null,jt=null,Dh=!1,iu=!1,Mu=0,BI=0;function Zt(){throw Error(re(321))}function J0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vr(e[n],t[n]))return!1;return!0}function ex(e,t,n,r,i,o){if(Uo=o,st=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fh.current=e===null||e.memoizedState===null?WI:HI,e=n(r,i),iu){o=0;do{if(iu=!1,Mu=0,25<=o)throw Error(re(301));o+=1,jt=St=null,t.updateQueue=null,fh.current=ZI,e=n(r,i)}while(iu)}if(fh.current=Rh,t=St!==null&&St.next!==null,Uo=0,jt=St=st=null,Dh=!1,t)throw Error(re(300));return e}function tx(){var e=Mu!==0;return Mu=0,e}function Pr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?st.memoizedState=jt=e:jt=jt.next=e,jt}function qn(){if(St===null){var e=st.alternate;e=e!==null?e.memoizedState:null}else e=St.next;var t=jt===null?st.memoizedState:jt.next;if(t!==null)jt=t,St=e;else{if(e===null)throw Error(re(310));St=e,e={memoizedState:St.memoizedState,baseState:St.baseState,baseQueue:St.baseQueue,queue:St.queue,next:null},jt===null?st.memoizedState=jt=e:jt=jt.next=e}return jt}function ju(e,t){return typeof t=="function"?t(e):t}function Um(e){var t=qn(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=St,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,u=null,f=o;do{var h=f.lane;if((Uo&h)===h)u!==null&&(u=u.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var d={lane:h,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};u===null?(l=u=d,s=r):u=u.next=d,st.lanes|=h,Wo|=h}f=f.next}while(f!==null&&f!==o);u===null?s=r:u.next=l,vr(r,t.memoizedState)||(cn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,st.lanes|=o,Wo|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wm(e){var t=qn(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);vr(o,t.memoizedState)||(cn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function R2(){}function z2(e,t){var n=st,r=qn(),i=t(),o=!vr(r.memoizedState,i);if(o&&(r.memoizedState=i,cn=!0),r=r.queue,nx(V2.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||jt!==null&&jt.memoizedState.tag&1){if(n.flags|=2048,$u(9,F2.bind(null,n,r,i,t),void 0,null),$t===null)throw Error(re(349));Uo&30||B2(n,t,i)}return i}function B2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function F2(e,t,n,r){t.value=n,t.getSnapshot=r,U2(t)&&W2(e)}function V2(e,t,n){return n(function(){U2(t)&&W2(e)})}function U2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vr(e,n)}catch{return!0}}function W2(e){var t=li(e,1);t!==null&&pr(t,e,1,-1)}function Db(e){var t=Pr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ju,lastRenderedState:e},t.queue=e,e=e.dispatch=UI.bind(null,st,e),[t.memoizedState,e]}function $u(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.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 H2(){return qn().memoizedState}function hh(e,t,n,r){var i=Pr();st.flags|=e,i.memoizedState=$u(1|t,n,void 0,r===void 0?null:r)}function op(e,t,n,r){var i=qn();r=r===void 0?null:r;var o=void 0;if(St!==null){var s=St.memoizedState;if(o=s.destroy,r!==null&&J0(r,s.deps)){i.memoizedState=$u(t,n,o,r);return}}st.flags|=e,i.memoizedState=$u(1|t,n,o,r)}function Rb(e,t){return hh(8390656,8,e,t)}function nx(e,t){return op(2048,8,e,t)}function Z2(e,t){return op(4,2,e,t)}function G2(e,t){return op(4,4,e,t)}function K2(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 q2(e,t,n){return n=n!=null?n.concat([e]):null,op(4,4,K2.bind(null,t,e),n)}function rx(){}function X2(e,t){var n=qn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&J0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Y2(e,t){var n=qn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&J0(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Q2(e,t,n){return Uo&21?(vr(n,t)||(n=r2(),st.lanes|=n,Wo|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,cn=!0),e.memoizedState=n)}function FI(e,t){var n=ze;ze=n!==0&&4>n?n:4,e(!0);var r=Vm.transition;Vm.transition={};try{e(!1),t()}finally{ze=n,Vm.transition=r}}function J2(){return qn().memoizedState}function VI(e,t,n){var r=Wi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eE(e))tE(t,n);else if(n=N2(e,t,n,r),n!==null){var i=on();pr(n,e,r,i),nE(n,t,r)}}function UI(e,t,n){var r=Wi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eE(e))tE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,vr(l,s)){var u=t.interleaved;u===null?(i.next=i,K0(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=N2(e,t,i,r),n!==null&&(i=on(),pr(n,e,r,i),nE(n,t,r))}}function eE(e){var t=e.alternate;return e===st||t!==null&&t===st}function tE(e,t){iu=Dh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,L0(e,n)}}var Rh={readContext:Kn,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useInsertionEffect:Zt,useLayoutEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useMutableSource:Zt,useSyncExternalStore:Zt,useId:Zt,unstable_isNewReconciler:!1},WI={readContext:Kn,useCallback:function(e,t){return Pr().memoizedState=[e,t===void 0?null:t],e},useContext:Kn,useEffect:Rb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hh(4194308,4,K2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hh(4194308,4,e,t)},useInsertionEffect:function(e,t){return hh(4,2,e,t)},useMemo:function(e,t){var n=Pr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pr();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=VI.bind(null,st,e),[r.memoizedState,e]},useRef:function(e){var t=Pr();return e={current:e},t.memoizedState=e},useState:Db,useDebugValue:rx,useDeferredValue:function(e){return Pr().memoizedState=e},useTransition:function(){var e=Db(!1),t=e[0];return e=FI.bind(null,e[1]),Pr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=st,i=Pr();if(et){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),$t===null)throw Error(re(349));Uo&30||B2(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Rb(V2.bind(null,r,o,e),[e]),r.flags|=2048,$u(9,F2.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Pr(),t=$t.identifierPrefix;if(et){var n=Xr,r=qr;n=(r&~(1<<32-dr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=BI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},HI={readContext:Kn,useCallback:X2,useContext:Kn,useEffect:nx,useImperativeHandle:q2,useInsertionEffect:Z2,useLayoutEffect:G2,useMemo:Y2,useReducer:Um,useRef:H2,useState:function(){return Um(ju)},useDebugValue:rx,useDeferredValue:function(e){var t=qn();return Q2(t,St.memoizedState,e)},useTransition:function(){var e=Um(ju)[0],t=qn().memoizedState;return[e,t]},useMutableSource:R2,useSyncExternalStore:z2,useId:J2,unstable_isNewReconciler:!1},ZI={readContext:Kn,useCallback:X2,useContext:Kn,useEffect:nx,useImperativeHandle:q2,useInsertionEffect:Z2,useLayoutEffect:G2,useMemo:Y2,useReducer:Wm,useRef:H2,useState:function(){return Wm(ju)},useDebugValue:rx,useDeferredValue:function(e){var t=qn();return St===null?t.memoizedState=e:Q2(t,St.memoizedState,e)},useTransition:function(){var e=Wm(ju)[0],t=qn().memoizedState;return[e,t]},useMutableSource:R2,useSyncExternalStore:z2,useId:J2,unstable_isNewReconciler:!1};function sr(e,t){if(e&&e.defaultProps){t=lt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:lt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ap={isMounted:function(e){return(e=e._reactInternals)?Qo(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=on(),i=Wi(e),o=ei(r,i);o.payload=t,n!=null&&(o.callback=n),t=Vi(e,o,i),t!==null&&(pr(t,e,i,r),ch(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=on(),i=Wi(e),o=ei(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Vi(e,o,i),t!==null&&(pr(t,e,i,r),ch(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=on(),r=Wi(e),i=ei(n,r);i.tag=2,t!=null&&(i.callback=t),t=Vi(e,i,r),t!==null&&(pr(t,e,r,n),ch(t,e,r))}};function zb(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ou(n,r)||!Ou(i,o):!0}function rE(e,t,n){var r=!1,i=Ki,o=t.contextType;return typeof o=="object"&&o!==null?o=Kn(o):(i=dn(t)?Fo:en.current,r=t.contextTypes,o=(r=r!=null)?Ja(e,i):Ki),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ap,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Bb(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&&ap.enqueueReplaceState(t,t.state,null)}function yg(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},q0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Kn(o):(o=dn(t)?Fo:en.current,i.context=Ja(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(gg(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&&ap.enqueueReplaceState(i,i.state,null),Nh(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function rs(e,t){try{var n="",r=t;do n+=_N(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Hm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var GI=typeof WeakMap=="function"?WeakMap:Map;function iE(e,t,n){n=ei(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bh||(Bh=!0,kg=r),xg(e,t)},n}function oE(e,t,n){n=ei(-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(){xg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){xg(e,t),typeof r!="function"&&(Ui===null?Ui=new Set([this]):Ui.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Fb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new GI;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=sD.bind(null,e,t,n),t.then(e,e))}function Vb(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 Ub(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=ei(-1,1),t.tag=2,Vi(n,t,1))),n.lanes|=1),e)}var KI=mi.ReactCurrentOwner,cn=!1;function nn(e,t,n,r){t.child=e===null?L2(t,null,n,r):ts(t,e.child,n,r)}function Wb(e,t,n,r,i){n=n.render;var o=t.ref;return Ha(t,i),r=ex(e,t,n,r,o,i),n=tx(),e!==null&&!cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(et&&n&&V0(t),t.flags|=1,nn(e,t,r,i),t.child)}function Hb(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!fx(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,aE(e,t,o,r,i)):(e=vh(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ou,n(s,r)&&e.ref===t.ref)return ui(e,t,i)}return t.flags|=1,e=Hi(o,r),e.ref=t.ref,e.return=t,t.child=e}function aE(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ou(o,r)&&e.ref===t.ref)if(cn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(cn=!0);else return t.lanes=e.lanes,ui(e,t,i)}return _g(e,t,n,r,i)}function sE(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},Ke(ja,bn),bn|=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,Ke(ja,bn),bn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ke(ja,bn),bn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ke(ja,bn),bn|=r;return nn(e,t,i,n),t.child}function lE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _g(e,t,n,r,i){var o=dn(n)?Fo:en.current;return o=Ja(t,o),Ha(t,i),n=ex(e,t,n,r,o,i),r=tx(),e!==null&&!cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ui(e,t,i)):(et&&r&&V0(t),t.flags|=1,nn(e,t,n,i),t.child)}function Zb(e,t,n,r,i){if(dn(n)){var o=!0;Ch(t)}else o=!1;if(Ha(t,i),t.stateNode===null)dh(e,t),rE(t,n,r),yg(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=Kn(f):(f=dn(n)?Fo:en.current,f=Ja(t,f));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==f)&&Bb(t,s,r,f),ki=!1;var m=t.memoizedState;s.state=m,Nh(t,r,s,i),u=t.memoizedState,l!==r||m!==u||hn.current||ki?(typeof h=="function"&&(gg(t,n,h,r),u=t.memoizedState),(l=ki||zb(t,n,l,r,m,u,f))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=f,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,I2(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:sr(t.type,l),s.props=f,d=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Kn(u):(u=dn(n)?Fo:en.current,u=Ja(t,u));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||m!==u)&&Bb(t,s,r,u),ki=!1,m=t.memoizedState,s.state=m,Nh(t,r,s,i);var _=t.memoizedState;l!==d||m!==_||hn.current||ki?(typeof v=="function"&&(gg(t,n,v,r),_=t.memoizedState),(f=ki||zb(t,n,f,r,m,_,u)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,_,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,_,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=_),s.props=r,s.state=_,s.context=u,r=f):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return bg(e,t,n,r,o,i)}function bg(e,t,n,r,i,o){lE(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Mb(t,n,!1),ui(e,t,o);r=t.stateNode,KI.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ts(t,e.child,null,o),t.child=ts(t,null,l,o)):nn(e,t,l,o),t.memoizedState=r.state,i&&Mb(t,n,!0),t.child}function uE(e){var t=e.stateNode;t.pendingContext?Cb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cb(e,t.context,!1),X0(e,t.containerInfo)}function Gb(e,t,n,r,i){return es(),W0(i),t.flags|=256,nn(e,t,n,r),t.child}var wg={dehydrated:null,treeContext:null,retryLane:0};function Sg(e){return{baseLanes:e,cachePool:null,transitions:null}}function cE(e,t,n){var r=t.pendingProps,i=it.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ke(it,i&1),e===null)return mg(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=up(s,r,0,null),e=Io(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Sg(n),t.memoizedState=wg,e):ix(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return qI(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Hi(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Hi(l,o):(o=Io(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Sg(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=wg,r}return o=e.child,e=o.sibling,r=Hi(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 ix(e,t){return t=up({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Nf(e,t,n,r){return r!==null&&W0(r),ts(t,e.child,null,n),e=ix(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qI(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Hm(Error(re(422))),Nf(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=up({mode:"visible",children:r.children},i,0,null),o=Io(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ts(t,e.child,null,s),t.child.memoizedState=Sg(s),t.memoizedState=wg,o);if(!(t.mode&1))return Nf(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(re(419)),r=Hm(o,r,void 0),Nf(e,t,s,r)}if(l=(s&e.childLanes)!==0,cn||l){if(r=$t,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,li(e,i),pr(r,e,i,-1))}return cx(),r=Hm(Error(re(421))),Nf(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=lD.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Pn=Fi(i.nextSibling),On=t,et=!0,cr=null,e!==null&&(Fn[Vn++]=qr,Fn[Vn++]=Xr,Fn[Vn++]=Vo,qr=e.id,Xr=e.overflow,Vo=t),t=ix(t,r.children),t.flags|=4096,t)}function Kb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vg(e.return,t,n)}function Zm(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 fE(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(nn(e,t,r.children,n),r=it.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&&Kb(e,n,t);else if(e.tag===19)Kb(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(Ke(it,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&&Ih(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zm(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&&Ih(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zm(t,!0,n,null,o);break;case"together":Zm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function dh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ui(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wo|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,n=Hi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function XI(e,t,n){switch(t.tag){case 3:uE(t),es();break;case 5:D2(t);break;case 1:dn(t.type)&&Ch(t);break;case 4:X0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ke($h,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ke(it,it.current&1),t.flags|=128,null):n&t.child.childLanes?cE(e,t,n):(Ke(it,it.current&1),e=ui(e,t,n),e!==null?e.sibling:null);Ke(it,it.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ke(it,it.current),r)break;return null;case 22:case 23:return t.lanes=0,sE(e,t,n)}return ui(e,t,n)}var hE,Pg,dE,pE;hE=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}};Pg=function(){};dE=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Eo(kr.current);var o=null;switch(n){case"input":i=Zv(e,i),r=Zv(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=qv(e,i),r=qv(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Eh)}Yv(n,r);var s;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(yu.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var u=r[f];if(l=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&u!==l&&(u!=null||l!=null))if(f==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(f,n)),n=u;else f==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(f,u)):f==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(f,""+u):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(yu.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&qe("scroll",e),o||l===u||(o=[])):(o=o||[]).push(f,u))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};pE=function(e,t,n,r){n!==r&&(t.flags|=4)};function kl(e,t){if(!et)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 Gt(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 YI(e,t,n){var r=t.pendingProps;switch(U0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(t),null;case 1:return dn(t.type)&&kh(),Gt(t),null;case 3:return r=t.stateNode,ns(),Qe(hn),Qe(en),Q0(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($f(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,cr!==null&&(jg(cr),cr=null))),Pg(e,t),Gt(t),null;case 5:Y0(t);var i=Eo(Cu.current);if(n=t.type,e!==null&&t.stateNode!=null)dE(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(re(166));return Gt(t),null}if(e=Eo(kr.current),$f(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Or]=t,r[Eu]=o,e=(t.mode&1)!==0,n){case"dialog":qe("cancel",r),qe("close",r);break;case"iframe":case"object":case"embed":qe("load",r);break;case"video":case"audio":for(i=0;i<Gl.length;i++)qe(Gl[i],r);break;case"source":qe("error",r);break;case"img":case"image":case"link":qe("error",r),qe("load",r);break;case"details":qe("toggle",r);break;case"input":rb(r,o),qe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},qe("invalid",r);break;case"textarea":ob(r,o),qe("invalid",r)}Yv(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&jf(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&jf(r.textContent,l,e),i=["children",""+l]):yu.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&qe("scroll",r)}switch(n){case"input":Pf(r),ib(r,o,!0);break;case"textarea":Pf(r),ab(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Eh)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=VA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Or]=t,e[Eu]=r,hE(e,t,!1,!1),t.stateNode=e;e:{switch(s=Qv(n,r),n){case"dialog":qe("cancel",e),qe("close",e),i=r;break;case"iframe":case"object":case"embed":qe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Gl.length;i++)qe(Gl[i],e);i=r;break;case"source":qe("error",e),i=r;break;case"img":case"image":case"link":qe("error",e),qe("load",e),i=r;break;case"details":qe("toggle",e),i=r;break;case"input":rb(e,r),i=Zv(e,r),qe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=lt({},r,{value:void 0}),qe("invalid",e);break;case"textarea":ob(e,r),i=qv(e,r),qe("invalid",e);break;default:i=r}Yv(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?HA(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&UA(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&xu(e,u):typeof u=="number"&&xu(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(yu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&qe("scroll",e):u!=null&&E0(e,o,u,s))}switch(n){case"input":Pf(e),ib(e,r,!1);break;case"textarea":Pf(e),ab(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Gi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Fa(e,!!r.multiple,o,!1):r.defaultValue!=null&&Fa(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Eh)}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 Gt(t),null;case 6:if(e&&t.stateNode!=null)pE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(re(166));if(n=Eo(Cu.current),Eo(kr.current),$f(t)){if(r=t.stateNode,n=t.memoizedProps,r[Or]=t,(o=r.nodeValue!==n)&&(e=On,e!==null))switch(e.tag){case 3:jf(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&jf(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Or]=t,t.stateNode=r}return Gt(t),null;case 13:if(Qe(it),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(et&&Pn!==null&&t.mode&1&&!(t.flags&128))j2(),es(),t.flags|=98560,o=!1;else if(o=$f(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(re(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(re(317));o[Or]=t}else es(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gt(t),o=!1}else cr!==null&&(jg(cr),cr=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||it.current&1?Pt===0&&(Pt=3):cx())),t.updateQueue!==null&&(t.flags|=4),Gt(t),null);case 4:return ns(),Pg(e,t),e===null&&Tu(t.stateNode.containerInfo),Gt(t),null;case 10:return G0(t.type._context),Gt(t),null;case 17:return dn(t.type)&&kh(),Gt(t),null;case 19:if(Qe(it),o=t.memoizedState,o===null)return Gt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)kl(o,!1);else{if(Pt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ih(e),s!==null){for(t.flags|=128,kl(o,!1),r=s.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,s=o.alternate,s===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=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ke(it,it.current&1|2),t.child}e=e.sibling}o.tail!==null&&mt()>is&&(t.flags|=128,r=!0,kl(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ih(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!et)return Gt(t),null}else 2*mt()-o.renderingStartTime>is&&n!==1073741824&&(t.flags|=128,r=!0,kl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=mt(),t.sibling=null,n=it.current,Ke(it,r?n&1|2:n&1),t):(Gt(t),null);case 22:case 23:return ux(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bn&1073741824&&(Gt(t),t.subtreeFlags&6&&(t.flags|=8192)):Gt(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function QI(e,t){switch(U0(t),t.tag){case 1:return dn(t.type)&&kh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ns(),Qe(hn),Qe(en),Q0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Y0(t),null;case 13:if(Qe(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));es()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qe(it),null;case 4:return ns(),null;case 10:return G0(t.type._context),null;case 22:case 23:return ux(),null;case 24:return null;default:return null}}var If=!1,Xt=!1,JI=typeof WeakSet=="function"?WeakSet:Set,le=null;function Ma(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ft(e,t,r)}else n.current=null}function Og(e,t,n){try{n()}catch(r){ft(e,t,r)}}var qb=!1;function eD(e,t){if(lg=Oh,e=x2(),F0(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 s=0,l=-1,u=-1,f=0,h=0,d=e,m=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(u=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)m=d,d=v;for(;;){if(d===e)break t;if(m===n&&++f===i&&(l=s),m===o&&++h===r&&(u=s),(v=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=v}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ug={focusedElem:e,selectionRange:n},Oh=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var x=_.memoizedProps,S=_.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:sr(t.type,x),S);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(E){ft(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return _=qb,qb=!1,_}function ou(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&&Og(t,n,o)}i=i.next}while(i!==r)}}function sp(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 Tg(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 mE(e){var t=e.alternate;t!==null&&(e.alternate=null,mE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Or],delete t[Eu],delete t[hg],delete t[II],delete t[DI])),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 vE(e){return e.tag===5||e.tag===3||e.tag===4}function Xb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vE(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 Ag(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=Eh));else if(r!==4&&(e=e.child,e!==null))for(Ag(e,t,n),e=e.sibling;e!==null;)Ag(e,t,n),e=e.sibling}function Eg(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(Eg(e,t,n),e=e.sibling;e!==null;)Eg(e,t,n),e=e.sibling}var zt=null,lr=!1;function Oi(e,t,n){for(n=n.child;n!==null;)gE(e,t,n),n=n.sibling}function gE(e,t,n){if(Er&&typeof Er.onCommitFiberUnmount=="function")try{Er.onCommitFiberUnmount(Jd,n)}catch{}switch(n.tag){case 5:Xt||Ma(n,t);case 6:var r=zt,i=lr;zt=null,Oi(e,t,n),zt=r,lr=i,zt!==null&&(lr?(e=zt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):zt.removeChild(n.stateNode));break;case 18:zt!==null&&(lr?(e=zt,n=n.stateNode,e.nodeType===8?zm(e.parentNode,n):e.nodeType===1&&zm(e,n),Su(e)):zm(zt,n.stateNode));break;case 4:r=zt,i=lr,zt=n.stateNode.containerInfo,lr=!0,Oi(e,t,n),zt=r,lr=i;break;case 0:case 11:case 14:case 15:if(!Xt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Og(n,t,s),i=i.next}while(i!==r)}Oi(e,t,n);break;case 1:if(!Xt&&(Ma(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ft(n,t,l)}Oi(e,t,n);break;case 21:Oi(e,t,n);break;case 22:n.mode&1?(Xt=(r=Xt)||n.memoizedState!==null,Oi(e,t,n),Xt=r):Oi(e,t,n);break;default:Oi(e,t,n)}}function Yb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new JI),t.forEach(function(r){var i=uD.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ir(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,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:zt=l.stateNode,lr=!1;break e;case 3:zt=l.stateNode.containerInfo,lr=!0;break e;case 4:zt=l.stateNode.containerInfo,lr=!0;break e}l=l.return}if(zt===null)throw Error(re(160));gE(o,s,i),zt=null,lr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(f){ft(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yE(t,e),t=t.sibling}function yE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ir(t,e),Sr(e),r&4){try{ou(3,e,e.return),sp(3,e)}catch(x){ft(e,e.return,x)}try{ou(5,e,e.return)}catch(x){ft(e,e.return,x)}}break;case 1:ir(t,e),Sr(e),r&512&&n!==null&&Ma(n,n.return);break;case 5:if(ir(t,e),Sr(e),r&512&&n!==null&&Ma(n,n.return),e.flags&32){var i=e.stateNode;try{xu(i,"")}catch(x){ft(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&BA(i,o),Qv(l,s);var f=Qv(l,o);for(s=0;s<u.length;s+=2){var h=u[s],d=u[s+1];h==="style"?HA(i,d):h==="dangerouslySetInnerHTML"?UA(i,d):h==="children"?xu(i,d):E0(i,h,d,f)}switch(l){case"input":Gv(i,o);break;case"textarea":FA(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Fa(i,!!o.multiple,v,!1):m!==!!o.multiple&&(o.defaultValue!=null?Fa(i,!!o.multiple,o.defaultValue,!0):Fa(i,!!o.multiple,o.multiple?[]:"",!1))}i[Eu]=o}catch(x){ft(e,e.return,x)}}break;case 6:if(ir(t,e),Sr(e),r&4){if(e.stateNode===null)throw Error(re(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){ft(e,e.return,x)}}break;case 3:if(ir(t,e),Sr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Su(t.containerInfo)}catch(x){ft(e,e.return,x)}break;case 4:ir(t,e),Sr(e);break;case 13:ir(t,e),Sr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(sx=mt())),r&4&&Yb(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Xt=(f=Xt)||h,ir(t,e),Xt=f):ir(t,e),Sr(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!h&&e.mode&1)for(le=e,h=e.child;h!==null;){for(d=le=h;le!==null;){switch(m=le,v=m.child,m.tag){case 0:case 11:case 14:case 15:ou(4,m,m.return);break;case 1:Ma(m,m.return);var _=m.stateNode;if(typeof _.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(x){ft(r,n,x)}}break;case 5:Ma(m,m.return);break;case 22:if(m.memoizedState!==null){Jb(d);continue}}v!==null?(v.return=m,le=v):Jb(d)}h=h.sibling}e:for(h=null,d=e;;){if(d.tag===5){if(h===null){h=d;try{i=d.stateNode,f?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=d.stateNode,u=d.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=WA("display",s))}catch(x){ft(e,e.return,x)}}}else if(d.tag===6){if(h===null)try{d.stateNode.nodeValue=f?"":d.memoizedProps}catch(x){ft(e,e.return,x)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ir(t,e),Sr(e),r&4&&Yb(e);break;case 21:break;default:ir(t,e),Sr(e)}}function Sr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(vE(n)){var r=n;break e}n=n.return}throw Error(re(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(xu(i,""),r.flags&=-33);var o=Xb(e);Eg(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Xb(e);Ag(e,l,s);break;default:throw Error(re(161))}}catch(u){ft(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tD(e,t,n){le=e,xE(e)}function xE(e,t,n){for(var r=(e.mode&1)!==0;le!==null;){var i=le,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||If;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||Xt;l=If;var f=Xt;if(If=s,(Xt=u)&&!f)for(le=i;le!==null;)s=le,u=s.child,s.tag===22&&s.memoizedState!==null?ew(i):u!==null?(u.return=s,le=u):ew(i);for(;o!==null;)le=o,xE(o),o=o.sibling;le=i,If=l,Xt=f}Qb(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,le=o):Qb(e)}}function Qb(e){for(;le!==null;){var t=le;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xt||sp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:sr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ib(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ib(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var d=h.dehydrated;d!==null&&Su(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}Xt||t.flags&512&&Tg(t)}catch(m){ft(t,t.return,m)}}if(t===e){le=null;break}if(n=t.sibling,n!==null){n.return=t.return,le=n;break}le=t.return}}function Jb(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var n=t.sibling;if(n!==null){n.return=t.return,le=n;break}le=t.return}}function ew(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sp(4,t)}catch(u){ft(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){ft(t,i,u)}}var o=t.return;try{Tg(t)}catch(u){ft(t,o,u)}break;case 5:var s=t.return;try{Tg(t)}catch(u){ft(t,s,u)}}}catch(u){ft(t,t.return,u)}if(t===e){le=null;break}var l=t.sibling;if(l!==null){l.return=t.return,le=l;break}le=t.return}}var nD=Math.ceil,zh=mi.ReactCurrentDispatcher,ox=mi.ReactCurrentOwner,Zn=mi.ReactCurrentBatchConfig,$e=0,$t=null,yt=null,Vt=0,bn=0,ja=Qi(0),Pt=0,Lu=null,Wo=0,lp=0,ax=0,au=null,un=null,sx=0,is=1/0,Hr=null,Bh=!1,kg=null,Ui=null,Df=!1,Ni=null,Fh=0,su=0,Cg=null,ph=-1,mh=0;function on(){return $e&6?mt():ph!==-1?ph:ph=mt()}function Wi(e){return e.mode&1?$e&2&&Vt!==0?Vt&-Vt:zI.transition!==null?(mh===0&&(mh=r2()),mh):(e=ze,e!==0||(e=window.event,e=e===void 0?16:c2(e.type)),e):1}function pr(e,t,n,r){if(50<su)throw su=0,Cg=null,Error(re(185));Sc(e,n,r),(!($e&2)||e!==$t)&&(e===$t&&(!($e&2)&&(lp|=n),Pt===4&&ji(e,Vt)),pn(e,r),n===1&&$e===0&&!(t.mode&1)&&(is=mt()+500,ip&&Ji()))}function pn(e,t){var n=e.callbackNode;zN(e,t);var r=Ph(e,e===$t?Vt:0);if(r===0)n!==null&&ub(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ub(n),t===1)e.tag===0?RI(tw.bind(null,e)):k2(tw.bind(null,e)),LI(function(){!($e&6)&&Ji()}),n=null;else{switch(i2(r)){case 1:n=$0;break;case 4:n=t2;break;case 16:n=Sh;break;case 536870912:n=n2;break;default:n=Sh}n=AE(n,_E.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _E(e,t){if(ph=-1,mh=0,$e&6)throw Error(re(327));var n=e.callbackNode;if(Za()&&e.callbackNode!==n)return null;var r=Ph(e,e===$t?Vt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Vh(e,r);else{t=r;var i=$e;$e|=2;var o=wE();($t!==e||Vt!==t)&&(Hr=null,is=mt()+500,No(e,t));do try{oD();break}catch(l){bE(e,l)}while(!0);Z0(),zh.current=o,$e=i,yt!==null?t=0:($t=null,Vt=0,t=Pt)}if(t!==0){if(t===2&&(i=rg(e),i!==0&&(r=i,t=Mg(e,i))),t===1)throw n=Lu,No(e,0),ji(e,r),pn(e,mt()),n;if(t===6)ji(e,r);else{if(i=e.current.alternate,!(r&30)&&!rD(i)&&(t=Vh(e,r),t===2&&(o=rg(e),o!==0&&(r=o,t=Mg(e,o))),t===1))throw n=Lu,No(e,0),ji(e,r),pn(e,mt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(re(345));case 2:_o(e,un,Hr);break;case 3:if(ji(e,r),(r&130023424)===r&&(t=sx+500-mt(),10<t)){if(Ph(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){on(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=fg(_o.bind(null,e,un,Hr),t);break}_o(e,un,Hr);break;case 4:if(ji(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-dr(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=mt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nD(r/1960))-r,10<r){e.timeoutHandle=fg(_o.bind(null,e,un,Hr),r);break}_o(e,un,Hr);break;case 5:_o(e,un,Hr);break;default:throw Error(re(329))}}}return pn(e,mt()),e.callbackNode===n?_E.bind(null,e):null}function Mg(e,t){var n=au;return e.current.memoizedState.isDehydrated&&(No(e,t).flags|=256),e=Vh(e,t),e!==2&&(t=un,un=n,t!==null&&jg(t)),e}function jg(e){un===null?un=e:un.push.apply(un,e)}function rD(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(!vr(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 ji(e,t){for(t&=~ax,t&=~lp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-dr(t),r=1<<n;e[n]=-1,t&=~r}}function tw(e){if($e&6)throw Error(re(327));Za();var t=Ph(e,0);if(!(t&1))return pn(e,mt()),null;var n=Vh(e,t);if(e.tag!==0&&n===2){var r=rg(e);r!==0&&(t=r,n=Mg(e,r))}if(n===1)throw n=Lu,No(e,0),ji(e,t),pn(e,mt()),n;if(n===6)throw Error(re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_o(e,un,Hr),pn(e,mt()),null}function lx(e,t){var n=$e;$e|=1;try{return e(t)}finally{$e=n,$e===0&&(is=mt()+500,ip&&Ji())}}function Ho(e){Ni!==null&&Ni.tag===0&&!($e&6)&&Za();var t=$e;$e|=1;var n=Zn.transition,r=ze;try{if(Zn.transition=null,ze=1,e)return e()}finally{ze=r,Zn.transition=n,$e=t,!($e&6)&&Ji()}}function ux(){bn=ja.current,Qe(ja)}function No(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$I(n)),yt!==null)for(n=yt.return;n!==null;){var r=n;switch(U0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kh();break;case 3:ns(),Qe(hn),Qe(en),Q0();break;case 5:Y0(r);break;case 4:ns();break;case 13:Qe(it);break;case 19:Qe(it);break;case 10:G0(r.type._context);break;case 22:case 23:ux()}n=n.return}if($t=e,yt=e=Hi(e.current,null),Vt=bn=t,Pt=0,Lu=null,ax=lp=Wo=0,un=au=null,Ao!==null){for(t=0;t<Ao.length;t++)if(n=Ao[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Ao=null}return e}function bE(e,t){do{var n=yt;try{if(Z0(),fh.current=Rh,Dh){for(var r=st.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Dh=!1}if(Uo=0,jt=St=st=null,iu=!1,Mu=0,ox.current=null,n===null||n.return===null){Pt=1,Lu=t,yt=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=Vt,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=u,h=l,d=h.tag;if(!(h.mode&1)&&(d===0||d===11||d===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=Vb(s);if(v!==null){v.flags&=-257,Ub(v,s,l,o,t),v.mode&1&&Fb(o,f,t),t=v,u=f;var _=t.updateQueue;if(_===null){var x=new Set;x.add(u),t.updateQueue=x}else _.add(u);break e}else{if(!(t&1)){Fb(o,f,t),cx();break e}u=Error(re(426))}}else if(et&&l.mode&1){var S=Vb(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Ub(S,s,l,o,t),W0(rs(u,l));break e}}o=u=rs(u,l),Pt!==4&&(Pt=2),au===null?au=[o]:au.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=iE(o,u,t);Nb(o,y);break e;case 1:l=u;var b=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ui===null||!Ui.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=oE(o,l,t);Nb(o,E);break e}}o=o.return}while(o!==null)}PE(n)}catch(P){t=P,yt===n&&n!==null&&(yt=n=n.return);continue}break}while(!0)}function wE(){var e=zh.current;return zh.current=Rh,e===null?Rh:e}function cx(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),$t===null||!(Wo&268435455)&&!(lp&268435455)||ji($t,Vt)}function Vh(e,t){var n=$e;$e|=2;var r=wE();($t!==e||Vt!==t)&&(Hr=null,No(e,t));do try{iD();break}catch(i){bE(e,i)}while(!0);if(Z0(),$e=n,zh.current=r,yt!==null)throw Error(re(261));return $t=null,Vt=0,Pt}function iD(){for(;yt!==null;)SE(yt)}function oD(){for(;yt!==null&&!CN();)SE(yt)}function SE(e){var t=TE(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?PE(e):yt=t,ox.current=null}function PE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=QI(n,t),n!==null){n.flags&=32767,yt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pt=6,yt=null;return}}else if(n=YI(n,t,bn),n!==null){yt=n;return}if(t=t.sibling,t!==null){yt=t;return}yt=t=e}while(t!==null);Pt===0&&(Pt=5)}function _o(e,t,n){var r=ze,i=Zn.transition;try{Zn.transition=null,ze=1,aD(e,t,n,r)}finally{Zn.transition=i,ze=r}return null}function aD(e,t,n,r){do Za();while(Ni!==null);if($e&6)throw Error(re(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(re(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(BN(e,o),e===$t&&(yt=$t=null,Vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Df||(Df=!0,AE(Sh,function(){return Za(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Zn.transition,Zn.transition=null;var s=ze;ze=1;var l=$e;$e|=4,ox.current=null,eD(e,n),yE(n,e),TI(ug),Oh=!!lg,ug=lg=null,e.current=n,tD(n),MN(),$e=l,ze=s,Zn.transition=o}else e.current=n;if(Df&&(Df=!1,Ni=e,Fh=i),o=e.pendingLanes,o===0&&(Ui=null),LN(n.stateNode),pn(e,mt()),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(Bh)throw Bh=!1,e=kg,kg=null,e;return Fh&1&&e.tag!==0&&Za(),o=e.pendingLanes,o&1?e===Cg?su++:(su=0,Cg=e):su=0,Ji(),null}function Za(){if(Ni!==null){var e=i2(Fh),t=Zn.transition,n=ze;try{if(Zn.transition=null,ze=16>e?16:e,Ni===null)var r=!1;else{if(e=Ni,Ni=null,Fh=0,$e&6)throw Error(re(331));var i=$e;for($e|=4,le=e.current;le!==null;){var o=le,s=o.child;if(le.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var f=l[u];for(le=f;le!==null;){var h=le;switch(h.tag){case 0:case 11:case 15:ou(8,h,o)}var d=h.child;if(d!==null)d.return=h,le=d;else for(;le!==null;){h=le;var m=h.sibling,v=h.return;if(mE(h),h===f){le=null;break}if(m!==null){m.return=v,le=m;break}le=v}}}var _=o.alternate;if(_!==null){var x=_.child;if(x!==null){_.child=null;do{var S=x.sibling;x.sibling=null,x=S}while(x!==null)}}le=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,le=s;else e:for(;le!==null;){if(o=le,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ou(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,le=y;break e}le=o.return}}var b=e.current;for(le=b;le!==null;){s=le;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,le=w;else e:for(s=b;le!==null;){if(l=le,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:sp(9,l)}}catch(P){ft(l,l.return,P)}if(l===s){le=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,le=E;break e}le=l.return}}if($e=i,Ji(),Er&&typeof Er.onPostCommitFiberRoot=="function")try{Er.onPostCommitFiberRoot(Jd,e)}catch{}r=!0}return r}finally{ze=n,Zn.transition=t}}return!1}function nw(e,t,n){t=rs(n,t),t=iE(e,t,1),e=Vi(e,t,1),t=on(),e!==null&&(Sc(e,1,t),pn(e,t))}function ft(e,t,n){if(e.tag===3)nw(e,e,n);else for(;t!==null;){if(t.tag===3){nw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ui===null||!Ui.has(r))){e=rs(n,e),e=oE(t,e,1),t=Vi(t,e,1),e=on(),t!==null&&(Sc(t,1,e),pn(t,e));break}}t=t.return}}function sD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=on(),e.pingedLanes|=e.suspendedLanes&n,$t===e&&(Vt&n)===n&&(Pt===4||Pt===3&&(Vt&130023424)===Vt&&500>mt()-sx?No(e,0):ax|=n),pn(e,t)}function OE(e,t){t===0&&(e.mode&1?(t=Af,Af<<=1,!(Af&130023424)&&(Af=4194304)):t=1);var n=on();e=li(e,t),e!==null&&(Sc(e,t,n),pn(e,n))}function lD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),OE(e,n)}function uD(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(re(314))}r!==null&&r.delete(t),OE(e,n)}var TE;TE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||hn.current)cn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return cn=!1,XI(e,t,n);cn=!!(e.flags&131072)}else cn=!1,et&&t.flags&1048576&&C2(t,jh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dh(e,t),e=t.pendingProps;var i=Ja(t,en.current);Ha(t,n),i=ex(null,t,r,e,i,n);var o=tx();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,dn(r)?(o=!0,Ch(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,q0(t),i.updater=ap,t.stateNode=i,i._reactInternals=t,yg(t,r,e,n),t=bg(null,t,r,!0,o,n)):(t.tag=0,et&&o&&V0(t),nn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=fD(r),e=sr(r,e),i){case 0:t=_g(null,t,r,e,n);break e;case 1:t=Zb(null,t,r,e,n);break e;case 11:t=Wb(null,t,r,e,n);break e;case 14:t=Hb(null,t,r,sr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sr(r,i),_g(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sr(r,i),Zb(e,t,r,i,n);case 3:e:{if(uE(t),e===null)throw Error(re(387));r=t.pendingProps,o=t.memoizedState,i=o.element,I2(e,t),Nh(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=rs(Error(re(423)),t),t=Gb(e,t,r,n,i);break e}else if(r!==i){i=rs(Error(re(424)),t),t=Gb(e,t,r,n,i);break e}else for(Pn=Fi(t.stateNode.containerInfo.firstChild),On=t,et=!0,cr=null,n=L2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(es(),r===i){t=ui(e,t,n);break e}nn(e,t,r,n)}t=t.child}return t;case 5:return D2(t),e===null&&mg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,cg(r,i)?s=null:o!==null&&cg(r,o)&&(t.flags|=32),lE(e,t),nn(e,t,s,n),t.child;case 6:return e===null&&mg(t),null;case 13:return cE(e,t,n);case 4:return X0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ts(t,null,r,n):nn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sr(r,i),Wb(e,t,r,i,n);case 7:return nn(e,t,t.pendingProps,n),t.child;case 8:return nn(e,t,t.pendingProps.children,n),t.child;case 12:return nn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ke($h,r._currentValue),r._currentValue=s,o!==null)if(vr(o.value,s)){if(o.children===i.children&&!hn.current){t=ui(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=ei(-1,n&-n),u.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?u.next=u:(u.next=h.next,h.next=u),f.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),vg(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(re(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),vg(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}nn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ha(t,n),i=Kn(i),r=r(i),t.flags|=1,nn(e,t,r,n),t.child;case 14:return r=t.type,i=sr(r,t.pendingProps),i=sr(r.type,i),Hb(e,t,r,i,n);case 15:return aE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sr(r,i),dh(e,t),t.tag=1,dn(r)?(e=!0,Ch(t)):e=!1,Ha(t,n),rE(t,r,i),yg(t,r,i,n),bg(null,t,r,!0,e,n);case 19:return fE(e,t,n);case 22:return sE(e,t,n)}throw Error(re(156,t.tag))};function AE(e,t){return e2(e,t)}function cD(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 Wn(e,t,n,r){return new cD(e,t,n,r)}function fx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fD(e){if(typeof e=="function")return fx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===C0)return 11;if(e===M0)return 14}return 2}function Hi(e,t){var n=e.alternate;return n===null?(n=Wn(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 vh(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")fx(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wa:return Io(n.children,i,o,t);case k0:s=8,i|=8;break;case Vv:return e=Wn(12,n,t,i|2),e.elementType=Vv,e.lanes=o,e;case Uv:return e=Wn(13,n,t,i),e.elementType=Uv,e.lanes=o,e;case Wv:return e=Wn(19,n,t,i),e.elementType=Wv,e.lanes=o,e;case DA:return up(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case NA:s=10;break e;case IA:s=9;break e;case C0:s=11;break e;case M0:s=14;break e;case Ei:s=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=Wn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Io(e,t,n,r){return e=Wn(7,e,r,t),e.lanes=n,e}function up(e,t,n,r){return e=Wn(22,e,r,t),e.elementType=DA,e.lanes=n,e.stateNode={isHidden:!1},e}function Gm(e,t,n){return e=Wn(6,e,null,t),e.lanes=n,e}function Km(e,t,n){return t=Wn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hD(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=Em(0),this.expirationTimes=Em(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Em(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hx(e,t,n,r,i,o,s,l,u){return e=new hD(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Wn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},q0(o),e}function dD(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ba,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function EE(e){if(!e)return Ki;e=e._reactInternals;e:{if(Qo(e)!==e||e.tag!==1)throw Error(re(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(re(171))}if(e.tag===1){var n=e.type;if(dn(n))return E2(e,n,t)}return t}function kE(e,t,n,r,i,o,s,l,u){return e=hx(n,r,!0,e,i,o,s,l,u),e.context=EE(null),n=e.current,r=on(),i=Wi(n),o=ei(r,i),o.callback=t??null,Vi(n,o,i),e.current.lanes=i,Sc(e,i,r),pn(e,r),e}function cp(e,t,n,r){var i=t.current,o=on(),s=Wi(i);return n=EE(n),t.context===null?t.context=n:t.pendingContext=n,t=ei(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Vi(i,t,s),e!==null&&(pr(e,i,s,o),ch(e,i,s)),s}function Uh(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 rw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dx(e,t){rw(e,t),(e=e.alternate)&&rw(e,t)}function pD(){return null}var CE=typeof reportError=="function"?reportError:function(e){console.error(e)};function px(e){this._internalRoot=e}fp.prototype.render=px.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(re(409));cp(e,t,null,null)};fp.prototype.unmount=px.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ho(function(){cp(null,e,null,null)}),t[si]=null}};function fp(e){this._internalRoot=e}fp.prototype.unstable_scheduleHydration=function(e){if(e){var t=s2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mi.length&&t!==0&&t<Mi[n].priority;n++);Mi.splice(n,0,e),n===0&&u2(e)}};function mx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function iw(){}function mD(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=Uh(s);o.call(f)}}var s=kE(t,r,e,0,null,!1,!1,"",iw);return e._reactRootContainer=s,e[si]=s.current,Tu(e.nodeType===8?e.parentNode:e),Ho(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=Uh(u);l.call(f)}}var u=hx(e,0,!1,null,null,!1,!1,"",iw);return e._reactRootContainer=u,e[si]=u.current,Tu(e.nodeType===8?e.parentNode:e),Ho(function(){cp(t,u,n,r)}),u}function dp(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var u=Uh(s);l.call(u)}}cp(t,s,e,i)}else s=mD(n,t,e,i,r);return Uh(s)}o2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Zl(t.pendingLanes);n!==0&&(L0(t,n|1),pn(t,mt()),!($e&6)&&(is=mt()+500,Ji()))}break;case 13:Ho(function(){var r=li(e,1);if(r!==null){var i=on();pr(r,e,1,i)}}),dx(e,1)}};N0=function(e){if(e.tag===13){var t=li(e,134217728);if(t!==null){var n=on();pr(t,e,134217728,n)}dx(e,134217728)}};a2=function(e){if(e.tag===13){var t=Wi(e),n=li(e,t);if(n!==null){var r=on();pr(n,e,t,r)}dx(e,t)}};s2=function(){return ze};l2=function(e,t){var n=ze;try{return ze=e,t()}finally{ze=n}};eg=function(e,t,n){switch(t){case"input":if(Gv(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=rp(r);if(!i)throw Error(re(90));zA(r),Gv(r,i)}}}break;case"textarea":FA(e,n);break;case"select":t=n.value,t!=null&&Fa(e,!!n.multiple,t,!1)}};KA=lx;qA=Ho;var vD={usingClientEntryPoint:!1,Events:[Oc,Ta,rp,ZA,GA,lx]},Cl={findFiberByHostInstance:To,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gD={bundleType:Cl.bundleType,version:Cl.version,rendererPackageName:Cl.rendererPackageName,rendererConfig:Cl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=QA(e),e===null?null:e.stateNode},findFiberByHostInstance:Cl.findFiberByHostInstance||pD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rf.isDisabled&&Rf.supportsFiber)try{Jd=Rf.inject(gD),Er=Rf}catch{}}Cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vD;Cn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mx(t))throw Error(re(200));return dD(e,t,null,n)};Cn.createRoot=function(e,t){if(!mx(e))throw Error(re(299));var n=!1,r="",i=CE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=hx(e,1,!1,null,null,n,!1,r,i),e[si]=t.current,Tu(e.nodeType===8?e.parentNode:e),new px(t)};Cn.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(re(188)):(e=Object.keys(e).join(","),Error(re(268,e)));return e=QA(t),e=e===null?null:e.stateNode,e};Cn.flushSync=function(e){return Ho(e)};Cn.hydrate=function(e,t,n){if(!hp(t))throw Error(re(200));return dp(null,e,t,!0,n)};Cn.hydrateRoot=function(e,t,n){if(!mx(e))throw Error(re(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=CE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=kE(t,null,e,1,n??null,i,!1,o,s),e[si]=t.current,Tu(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 fp(t)};Cn.render=function(e,t,n){if(!hp(t))throw Error(re(200));return dp(null,e,t,!1,n)};Cn.unmountComponentAtNode=function(e){if(!hp(e))throw Error(re(40));return e._reactRootContainer?(Ho(function(){dp(null,null,e,!1,function(){e._reactRootContainer=null,e[si]=null})}),!0):!1};Cn.unstable_batchedUpdates=lx;Cn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!hp(n))throw Error(re(200));if(e==null||e._reactInternals===void 0)throw Error(re(38));return dp(e,t,n,!1,r)};Cn.version="18.3.1-next-f1338f8080-20240426";function ME(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ME)}catch(e){console.error(e)}}ME(),MA.exports=Cn;var yD=MA.exports,ow=yD;Bv.createRoot=ow.createRoot,Bv.hydrateRoot=ow.hydrateRoot;const vx=j.createContext({});function gx(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const pp=j.createContext(null),yx=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class xD extends j.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function _D({children:e,isPresent:t}){const n=j.useId(),r=j.useRef(null),i=j.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=j.useContext(yx);return j.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:f}=i.current;if(t||!r.current||!s||!l)return;r.current.dataset.motionPopId=n;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(`
|
|
41
|
+
[data-motion-pop-id="${n}"] {
|
|
42
|
+
position: absolute !important;
|
|
43
|
+
width: ${s}px !important;
|
|
44
|
+
height: ${l}px !important;
|
|
45
|
+
top: ${u}px !important;
|
|
46
|
+
left: ${f}px !important;
|
|
47
|
+
}
|
|
48
|
+
`),()=>{document.head.removeChild(h)}},[t]),T.jsx(xD,{isPresent:t,childRef:r,sizeRef:i,children:j.cloneElement(e,{ref:r})})}const bD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=gx(wD),u=j.useId(),f=j.useCallback(d=>{l.set(d,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),h=j.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:f,register:d=>(l.set(d,!1),()=>l.delete(d))}),o?[Math.random(),f]:[n,f]);return j.useMemo(()=>{l.forEach((d,m)=>l.set(m,!1))},[n]),j.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=T.jsx(_D,{isPresent:n,children:e})),T.jsx(pp.Provider,{value:h,children:e})};function wD(){return new Map}function jE(e=!0){const t=j.useContext(pp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=j.useId();j.useEffect(()=>{e&&i(o)},[e]);const s=j.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const zf=e=>e.key||"";function aw(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const xx=typeof window<"u",$E=xx?j.useLayoutEffect:j.useEffect,SD=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[l,u]=jE(s),f=j.useMemo(()=>aw(e),[e]),h=s&&!l?[]:f.map(zf),d=j.useRef(!0),m=j.useRef(f),v=gx(()=>new Map),[_,x]=j.useState(f),[S,y]=j.useState(f);$E(()=>{d.current=!1,m.current=f;for(let E=0;E<S.length;E++){const P=zf(S[E]);h.includes(P)?v.delete(P):v.get(P)!==!0&&v.set(P,!1)}},[S,h.length,h.join("-")]);const b=[];if(f!==_){let E=[...f];for(let P=0;P<S.length;P++){const A=S[P],C=zf(A);h.includes(C)||(E.splice(P,0,A),b.push(A))}o==="wait"&&b.length&&(E=b),y(aw(E)),x(f);return}const{forceRender:w}=j.useContext(vx);return T.jsx(T.Fragment,{children:S.map(E=>{const P=zf(E),A=s&&!l?!1:f===S||h.includes(P),C=()=>{if(v.has(P))v.set(P,!0);else return;let M=!0;v.forEach($=>{$||(M=!1)}),M&&(w==null||w(),y(m.current),s&&(u==null||u()),r&&r())};return T.jsx(bD,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:A?void 0:C,children:E},P)})})},Tn=e=>e;let LE=Tn;function _x(e){let t;return()=>(t===void 0&&(t=e()),t)}const os=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ti=e=>e*1e3,ni=e=>e/1e3,PD={useManualTiming:!1};function OD(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(f){o.has(f)&&(u.schedule(f),e()),f(s)}const u={schedule:(f,h=!1,d=!1)=>{const v=d&&r?t:n;return h&&o.add(f),v.has(f)||v.add(f),f},cancel:f=>{n.delete(f),o.delete(f)},process:f=>{if(s=f,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,u.process(f))}};return u}const Bf=["read","resolveKeyframes","update","preRender","render","postRender"],TD=40;function NE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Bf.reduce((y,b)=>(y[b]=OD(o),y),{}),{read:l,resolveKeyframes:u,update:f,preRender:h,render:d,postRender:m}=s,v=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,TD),1),i.timestamp=y,i.isProcessing=!0,l.process(i),u.process(i),f.process(i),h.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},_=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Bf.reduce((y,b)=>{const w=s[b];return y[b]=(E,P=!1,A=!1)=>(n||_(),w.schedule(E,P,A)),y},{}),cancel:y=>{for(let b=0;b<Bf.length;b++)s[Bf[b]].cancel(y)},state:i,steps:s}}const{schedule:Je,cancel:qi,state:Bt,steps:qm}=NE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Tn,!0),IE=j.createContext({strict:!1}),sw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},as={};for(const e in sw)as[e]={isEnabled:t=>sw[e].some(n=>!!t[n])};function AD(e){for(const t in e)as[t]={...as[t],...e[t]}}const ED=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Wh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ED.has(e)}let DE=e=>!Wh(e);function kD(e){e&&(DE=t=>t.startsWith("on")?!Wh(t):e(t))}try{kD(require("@emotion/is-prop-valid").default)}catch{}function CD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(DE(i)||n===!0&&Wh(i)||!t&&!Wh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function MD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const mp=j.createContext({});function Nu(e){return typeof e=="string"||Array.isArray(e)}function vp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const bx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wx=["initial",...bx];function gp(e){return vp(e.animate)||wx.some(t=>Nu(e[t]))}function RE(e){return!!(gp(e)||e.variants)}function jD(e,t){if(gp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Nu(n)?n:void 0,animate:Nu(r)?r:void 0}}return e.inherit!==!1?t:{}}function $D(e){const{initial:t,animate:n}=jD(e,j.useContext(mp));return j.useMemo(()=>({initial:t,animate:n}),[lw(t),lw(n)])}function lw(e){return Array.isArray(e)?e.join(" "):e}const LD=Symbol.for("motionComponentSymbol");function $a(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ND(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):$a(n)&&(n.current=r))},[t])}const Sx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ID="framerAppearId",zE="data-"+Sx(ID),{schedule:Px}=NE(queueMicrotask,!1),BE=j.createContext({});function DD(e,t,n,r,i){var o,s;const{visualElement:l}=j.useContext(mp),u=j.useContext(IE),f=j.useContext(pp),h=j.useContext(yx).reducedMotion,d=j.useRef(null);r=r||u.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const m=d.current,v=j.useContext(BE);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&RD(d.current,n,i,v);const _=j.useRef(!1);j.useInsertionEffect(()=>{m&&_.current&&m.update(n,f)});const x=n[zE],S=j.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,x)));return $E(()=>{m&&(_.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Px.render(m.render),S.current&&m.animationState&&m.animationState.animateChanges())}),j.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,x)}),S.current=!1))}),m}function RD(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:FE(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&$a(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function FE(e){if(e)return e.options.allowProjection!==!1?e.projection:FE(e.parent)}function zD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&AD(e);function l(f,h){let d;const m={...j.useContext(yx),...f,layoutId:BD(f)},{isStatic:v}=m,_=$D(f),x=r(f,v);if(!v&&xx){FD();const S=VD(m);d=S.MeasureLayout,_.visualElement=DD(i,x,m,t,S.ProjectionNode)}return T.jsxs(mp.Provider,{value:_,children:[d&&_.visualElement?T.jsx(d,{visualElement:_.visualElement,...m}):null,n(i,f,ND(x,_.visualElement,h),x,v,_.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const u=j.forwardRef(l);return u[LD]=i,u}function BD({layoutId:e}){const t=j.useContext(vx).id;return t&&e!==void 0?t+"-"+e:e}function FD(e,t){j.useContext(IE).strict}function VD(e){const{drag:t,layout:n}=as;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const UD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ox(e){return typeof e!="string"||e.includes("-")?!1:!!(UD.indexOf(e)>-1||/[A-Z]/u.test(e))}function uw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Tx(e,t,n,r){if(typeof t=="function"){const[i,o]=uw(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=uw(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const $g=e=>Array.isArray(e),WD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),HD=e=>$g(e)?e[e.length-1]||0:e,Jt=e=>!!(e&&e.getVelocity);function gh(e){const t=Jt(e)?e.get():e;return WD(t)?t.toValue():t}function ZD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:GD(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const VE=e=>(t,n)=>{const r=j.useContext(mp),i=j.useContext(pp),o=()=>ZD(e,t,r,i);return n?o():gx(o)};function GD(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=gh(o[m]);let{initial:s,animate:l}=e;const u=gp(e),f=RE(e);t&&f&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const d=h?l:s;if(d&&typeof d!="boolean"&&!vp(d)){const m=Array.isArray(d)?d:[d];for(let v=0;v<m.length;v++){const _=Tx(e,m[v]);if(_){const{transitionEnd:x,transition:S,...y}=_;for(const b in y){let w=y[b];if(Array.isArray(w)){const E=h?w.length-1:0;w=w[E]}w!==null&&(i[b]=w)}for(const b in x)i[b]=x[b]}}}return i}const Ns=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Jo=new Set(Ns),UE=e=>t=>typeof t=="string"&&t.startsWith(e),WE=UE("--"),KD=UE("var(--"),Ax=e=>KD(e)?qD.test(e.split("/*")[0].trim()):!1,qD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,HE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ci=(e,t,n)=>n>t?t:n<e?e:n,Is={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Iu={...Is,transform:e=>ci(0,1,e)},Ff={...Is,default:1},Ac=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ti=Ac("deg"),Cr=Ac("%"),ye=Ac("px"),XD=Ac("vh"),YD=Ac("vw"),cw={...Cr,parse:e=>Cr.parse(e)/100,transform:e=>Cr.transform(e*100)},QD={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye},JD={rotate:Ti,rotateX:Ti,rotateY:Ti,rotateZ:Ti,scale:Ff,scaleX:Ff,scaleY:Ff,scaleZ:Ff,skew:Ti,skewX:Ti,skewY:Ti,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Iu,originX:cw,originY:cw,originZ:ye},fw={...Is,transform:Math.round},Ex={...QD,...JD,zIndex:fw,size:ye,fillOpacity:Iu,strokeOpacity:Iu,numOctaves:fw},eR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tR=Ns.length;function nR(e,t,n){let r="",i=!0;for(let o=0;o<tR;o++){const s=Ns[o],l=e[s];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(s.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||n){const f=HE(l,Ex[s]);if(!u){i=!1;const h=eR[s]||s;r+=`${h}(${f}) `}n&&(t[s]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function kx(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,l=!1;for(const u in t){const f=t[u];if(Jo.has(u)){s=!0;continue}else if(WE(u)){i[u]=f;continue}else{const h=HE(f,Ex[u]);u.startsWith("origin")?(l=!0,o[u]=h):r[u]=h}}if(t.transform||(s||n?r.transform=nR(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${f} ${h}`}}const rR={offset:"stroke-dashoffset",array:"stroke-dasharray"},iR={offset:"strokeDashoffset",array:"strokeDasharray"};function oR(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?rR:iR;e[o.offset]=ye.transform(-r);const s=ye.transform(t),l=ye.transform(n);e[o.array]=`${s} ${l}`}function hw(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function aR(e,t,n){const r=hw(t,e.x,e.width),i=hw(n,e.y,e.height);return`${r} ${i}`}function Cx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...f},h,d){if(kx(e,f,d),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v,dimensions:_}=e;m.transform&&(_&&(v.transform=m.transform),delete m.transform),_&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=aR(_,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&oR(m,s,l,u,!1)}const Mx=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ZE=()=>({...Mx(),attrs:{}}),jx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function GE(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const KE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qE(e,t,n,r){GE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(KE.has(i)?i:Sx(i),t.attrs[i])}const Hh={};function sR(e){Object.assign(Hh,e)}function XE(e,{layout:t,layoutId:n}){return Jo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hh[e]||e==="opacity")}function $x(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(Jt(i[s])||t.style&&Jt(t.style[s])||XE(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function YE(e,t,n){const r=$x(e,t,n);for(const i in e)if(Jt(e[i])||Jt(t[i])){const o=Ns.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function lR(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const dw=["x","y","width","height","cx","cy","r"],uR={useVisualState:VE({scrapeMotionValuesFromProps:YE,createRenderState:ZE,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(Jo.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l<dw.length;l++){const u=dw[l];e[u]!==t[u]&&(s=!0)}s&&Je.read(()=>{lR(n,r),Je.render(()=>{Cx(r,i,jx(n.tagName),e.transformTemplate),qE(n,r)})})}})},cR={useVisualState:VE({scrapeMotionValuesFromProps:$x,createRenderState:Mx})};function QE(e,t,n){for(const r in t)!Jt(t[r])&&!XE(r,n)&&(e[r]=t[r])}function fR({transformTemplate:e},t){return j.useMemo(()=>{const n=Mx();return kx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hR(e,t){const n=e.style||{},r={};return QE(r,n,e),Object.assign(r,fR(e,t)),r}function dR(e,t){const n={},r=hR(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function pR(e,t,n,r){const i=j.useMemo(()=>{const o=ZE();return Cx(o,t,jx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};QE(o,e.style,e),i.style={...o,...i.style}}return i}function mR(e=!1){return(n,r,i,{latestValues:o},s)=>{const u=(Ox(n)?pR:dR)(r,o,s,n),f=CD(r,typeof n=="string",e),h=n!==j.Fragment?{...f,...u,ref:i}:{},{children:d}=r,m=j.useMemo(()=>Jt(d)?d.get():d,[d]);return j.createElement(n,{...h,children:m})}}function vR(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Ox(r)?uR:cR,preloadedFeatures:e,useRender:mR(i),createVisualElement:t,Component:r};return zD(s)}}function JE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function yp(e,t,n){const r=e.getProps();return Tx(r,t,n!==void 0?n:r.custom,e)}const gR=_x(()=>window.ScrollTimeline!==void 0);class yR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(gR()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class xR extends yR{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Lx(e,t){return e?e[t]||e.default||e:void 0}const Lg=2e4;function ek(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Lg;)t+=n,r=e.next(t);return t>=Lg?1/0:t}function Nx(e){return typeof e=="function"}function pw(e,t){e.timeline=t,e.onfinish=null}const Ix=e=>Array.isArray(e)&&typeof e[0]=="number",_R={linearEasing:void 0};function bR(e,t){const n=_x(e);return()=>{var r;return(r=_R[t])!==null&&r!==void 0?r:n()}}const Zh=bR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tk=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(os(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function nk(e){return!!(typeof e=="function"&&Zh()||!e||typeof e=="string"&&(e in Ng||Zh())||Ix(e)||Array.isArray(e)&&e.every(nk))}const Kl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ng={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kl([0,.65,.55,1]),circOut:Kl([.55,0,1,.45]),backIn:Kl([.31,.01,.66,-.59]),backOut:Kl([.33,1.53,.69,.99])};function rk(e,t){if(e)return typeof e=="function"&&Zh()?tk(e,t):Ix(e)?Kl(e):Array.isArray(e)?e.map(n=>rk(n,t)||Ng.easeOut):Ng[e]}const ar={x:!1,y:!1};function ik(){return ar.x||ar.y}function wR(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function ok(e,t){const n=wR(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function mw(e){return t=>{t.pointerType==="touch"||ik()||e(t)}}function SR(e,t,n={}){const[r,i,o]=ok(e,n),s=mw(l=>{const{target:u}=l,f=t(l);if(typeof f!="function"||!u)return;const h=mw(d=>{f(d),u.removeEventListener("pointerleave",h)});u.addEventListener("pointerleave",h,i)});return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const ak=(e,t)=>t?e===t?!0:ak(e,t.parentElement):!1,Dx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,PR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function OR(e){return PR.has(e.tagName)||e.tabIndex!==-1}const ql=new WeakSet;function vw(e){return t=>{t.key==="Enter"&&e(t)}}function Xm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const TR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=vw(()=>{if(ql.has(n))return;Xm(n,"down");const i=vw(()=>{Xm(n,"up")}),o=()=>Xm(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gw(e){return Dx(e)&&!ik()}function AR(e,t,n={}){const[r,i,o]=ok(e,n),s=l=>{const u=l.currentTarget;if(!gw(l)||ql.has(u))return;ql.add(u);const f=t(l),h=(v,_)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),!(!gw(v)||!ql.has(u))&&(ql.delete(u),typeof f=="function"&&f(v,{success:_}))},d=v=>{h(v,n.useGlobalTarget||ak(u,v.target))},m=v=>{h(v,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",m,i)};return r.forEach(l=>{!OR(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l.addEventListener("focus",f=>TR(f,i),i)}),o}function ER(e){return e==="x"||e==="y"?ar[e]?null:(ar[e]=!0,()=>{ar[e]=!1}):ar.x||ar.y?null:(ar.x=ar.y=!0,()=>{ar.x=ar.y=!1})}const sk=new Set(["width","height","top","left","right","bottom",...Ns]);let yh;function kR(){yh=void 0}const Mr={now:()=>(yh===void 0&&Mr.set(Bt.isProcessing||PD.useManualTiming?Bt.timestamp:performance.now()),yh),set:e=>{yh=e,queueMicrotask(kR)}};function Rx(e,t){e.indexOf(t)===-1&&e.push(t)}function zx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bx{constructor(){this.subscriptions=[]}add(t){return Rx(this.subscriptions,t),()=>zx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function lk(e,t){return t?e*(1e3/t):0}const yw=30,CR=e=>!isNaN(parseFloat(e));class MR{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Mr.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bx);const r=this.events[t].add(n);return t==="change"?()=>{r(),Je.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yw);return lk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Du(e,t){return new MR(e,t)}function jR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Du(n))}function $R(e,t){const n=yp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=HD(o[s]);jR(e,s,l)}}function LR(e){return!!(Jt(e)&&e.add)}function Ig(e,t){const n=e.getValue("willChange");if(LR(n))return n.add(t)}function uk(e){return e.props[zE]}const ck=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,NR=1e-7,IR=12;function DR(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=ck(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>NR&&++l<IR);return s}function Ec(e,t,n,r){if(e===t&&n===r)return Tn;const i=o=>DR(o,0,1,e,n);return o=>o===0||o===1?o:ck(i(o),t,r)}const fk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hk=e=>t=>1-e(1-t),dk=Ec(.33,1.53,.69,.99),Fx=hk(dk),pk=fk(Fx),mk=e=>(e*=2)<1?.5*Fx(e):.5*(2-Math.pow(2,-10*(e-1))),Vx=e=>1-Math.sin(Math.acos(e)),vk=hk(Vx),gk=fk(Vx),yk=e=>/^0[^.\s]+$/u.test(e);function RR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yk(e):!0}const lu=e=>Math.round(e*1e5)/1e5,Ux=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zR(e){return e==null}const BR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wx=(e,t)=>n=>!!(typeof n=="string"&&BR.test(n)&&n.startsWith(e)||t&&!zR(n)&&Object.prototype.hasOwnProperty.call(n,t)),xk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(Ux);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},FR=e=>ci(0,255,e),Ym={...Is,transform:e=>Math.round(FR(e))},ko={test:Wx("rgb","red"),parse:xk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ym.transform(e)+", "+Ym.transform(t)+", "+Ym.transform(n)+", "+lu(Iu.transform(r))+")"};function VR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Dg={test:Wx("#"),parse:VR,transform:ko.transform},La={test:Wx("hsl","hue"),parse:xk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Cr.transform(lu(t))+", "+Cr.transform(lu(n))+", "+lu(Iu.transform(r))+")"},Kt={test:e=>ko.test(e)||Dg.test(e)||La.test(e),parse:e=>ko.test(e)?ko.parse(e):La.test(e)?La.parse(e):Dg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ko.transform(e):La.transform(e)},UR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ux))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(UR))===null||n===void 0?void 0:n.length)||0)>0}const _k="number",bk="color",HR="var",ZR="var(",xw="${}",GR=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ru(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(GR,u=>(Kt.test(u)?(r.color.push(o),i.push(bk),n.push(Kt.parse(u))):u.startsWith(ZR)?(r.var.push(o),i.push(HR),n.push(u)):(r.number.push(o),i.push(_k),n.push(parseFloat(u))),++o,xw)).split(xw);return{values:n,split:l,indexes:r,types:i}}function wk(e){return Ru(e).values}function Sk(e){const{split:t,types:n}=Ru(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const l=n[s];l===_k?o+=lu(i[s]):l===bk?o+=Kt.transform(i[s]):o+=i[s]}return o}}const KR=e=>typeof e=="number"?0:e;function qR(e){const t=wk(e);return Sk(e)(t.map(KR))}const Xi={test:WR,parse:wk,createTransformer:Sk,getAnimatableNone:qR},XR=new Set(["brightness","contrast","saturate","opacity"]);function YR(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ux)||[];if(!r)return e;const i=n.replace(r,"");let o=XR.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const QR=/\b([a-z-]*)\(.*?\)/gu,Rg={...Xi,getAnimatableNone:e=>{const t=e.match(QR);return t?t.map(YR).join(" "):e}},JR={...Ex,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:Rg,WebkitFilter:Rg},Hx=e=>JR[e];function Pk(e,t){let n=Hx(e);return n!==Rg&&(n=Xi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const e5=new Set(["auto","none","0"]);function t5(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!e5.has(o)&&Ru(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Pk(n,i)}const _w=e=>e===Is||e===ye,bw=(e,t)=>parseFloat(e.split(", ")[t]),ww=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return bw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?bw(o[1],e):0}},n5=new Set(["x","y","z"]),r5=Ns.filter(e=>!n5.has(e));function i5(e){const t=[];return r5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ss={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ww(4,13),y:ww(5,14)};ss.translateX=ss.x;ss.translateY=ss.y;const Do=new Set;let zg=!1,Bg=!1;function Ok(){if(Bg){const e=Array.from(Do).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=i5(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Bg=!1,zg=!1,Do.forEach(e=>e.complete()),Do.clear()}function Tk(){Do.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bg=!0)})}function o5(){Tk(),Ok()}class Zx{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Do.add(this),zg||(zg=!0,Je.read(Tk),Je.resolveKeyframes(Ok))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Do.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Do.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ak=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),a5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function s5(e){const t=a5.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Ek(e,t,n=1){const[r,i]=s5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Ak(s)?parseFloat(s):s}return Ax(i)?Ek(i,t,n+1):i}const kk=e=>t=>t.test(e),l5={test:e=>e==="auto",parse:e=>e},Ck=[Is,ye,Cr,Ti,YD,XD,l5],Sw=e=>Ck.find(kk(e));class Mk extends Zx{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),Ax(f))){const h=Ek(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!sk.has(r)||t.length!==2)return;const[i,o]=t,s=Sw(i),l=Sw(o);if(s!==l)if(_w(s)&&_w(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)RR(t[i])&&r.push(i);r.length&&t5(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ss[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,l=i[s];i[s]=ss[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const Pw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xi.test(e)||e==="0")&&!e.startsWith("url("));function u5(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function c5(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Pw(i,t),l=Pw(o,t);return!s||!l?!1:u5(e)||(n==="spring"||Nx(n))&&r}const f5=e=>e!==null;function xp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(f5),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const h5=40;class jk{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Mr.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>h5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&o5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:u,isGenerator:f}=this.options;if(!f&&!c5(t,r,i,o))if(s)this.options.duration=0;else{u&&u(xp(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ot=(e,t,n)=>e+(t-e)*n;function Qm(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 d5({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;i=Qm(u,l,e+1/3),o=Qm(u,l,e),s=Qm(u,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Gh(e,t){return n=>n>0?t:e}const Jm=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},p5=[Dg,ko,La],m5=e=>p5.find(t=>t.test(e));function Ow(e){const t=m5(e);if(!t)return!1;let n=t.parse(e);return t===La&&(n=d5(n)),n}const Tw=(e,t)=>{const n=Ow(e),r=Ow(t);if(!n||!r)return Gh(e,t);const i={...n};return o=>(i.red=Jm(n.red,r.red,o),i.green=Jm(n.green,r.green,o),i.blue=Jm(n.blue,r.blue,o),i.alpha=ot(n.alpha,r.alpha,o),ko.transform(i))},v5=(e,t)=>n=>t(e(n)),kc=(...e)=>e.reduce(v5),Fg=new Set(["none","hidden"]);function g5(e,t){return Fg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function y5(e,t){return n=>ot(e,t,n)}function Gx(e){return typeof e=="number"?y5:typeof e=="string"?Ax(e)?Gh:Kt.test(e)?Tw:b5:Array.isArray(e)?$k:typeof e=="object"?Kt.test(e)?Tw:x5:Gh}function $k(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Gx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function x5(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Gx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function _5(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],l=e.indexes[s][i[s]],u=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=u,i[s]++}return r}const b5=(e,t)=>{const n=Xi.createTransformer(t),r=Ru(e),i=Ru(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Fg.has(e)&&!i.values.length||Fg.has(t)&&!r.values.length?g5(e,t):kc($k(_5(r,i),i.values),n):Gh(e,t)};function Lk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):Gx(e)(e,t)}const w5=5;function Nk(e,t,n){const r=Math.max(t-w5,0);return lk(n-e(r),t-r)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ev=.001;function S5({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:r=ct.mass}){let i,o,s=1-t;s=ci(ct.minDamping,ct.maxDamping,s),e=ci(ct.minDuration,ct.maxDuration,ni(e)),s<1?(i=f=>{const h=f*s,d=h*e,m=h-n,v=Vg(f,s),_=Math.exp(-d);return ev-m/v*_},o=f=>{const d=f*s*e,m=d*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,_=Math.exp(-d),x=Vg(Math.pow(f,2),s);return(-i(f)+ev>0?-1:1)*((m-v)*_)/x}):(i=f=>{const h=Math.exp(-f*e),d=(f-n)*e+1;return-ev+h*d},o=f=>{const h=Math.exp(-f*e),d=(n-f)*(e*e);return h*d});const l=5/e,u=O5(i,o,l);if(e=ti(e),isNaN(u))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const P5=12;function O5(e,t,n){let r=n;for(let i=1;i<P5;i++)r=r-e(r)/t(r);return r}function Vg(e,t){return e*Math.sqrt(1-t*t)}const T5=["duration","bounce"],A5=["stiffness","damping","mass"];function Aw(e,t){return t.some(n=>e[n]!==void 0)}function E5(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!Aw(e,A5)&&Aw(e,T5))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ci(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ct.mass,stiffness:i,damping:o}}else{const n=S5(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function Ik(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:f,mass:h,duration:d,velocity:m,isResolvedFromDuration:v}=E5({...n,velocity:-ni(n.velocity||0)}),_=m||0,x=f/(2*Math.sqrt(u*h)),S=s-o,y=ni(Math.sqrt(u/h)),b=Math.abs(S)<5;r||(r=b?ct.restSpeed.granular:ct.restSpeed.default),i||(i=b?ct.restDelta.granular:ct.restDelta.default);let w;if(x<1){const P=Vg(y,x);w=A=>{const C=Math.exp(-x*y*A);return s-C*((_+x*y*S)/P*Math.sin(P*A)+S*Math.cos(P*A))}}else if(x===1)w=P=>s-Math.exp(-y*P)*(S+(_+y*S)*P);else{const P=y*Math.sqrt(x*x-1);w=A=>{const C=Math.exp(-x*y*A),M=Math.min(P*A,300);return s-C*((_+x*y*S)*Math.sinh(M)+P*S*Math.cosh(M))/P}}const E={calculatedDuration:v&&d||null,next:P=>{const A=w(P);if(v)l.done=P>=d;else{let C=0;x<1&&(C=P===0?ti(_):Nk(w,P,A));const M=Math.abs(C)<=r,$=Math.abs(s-A)<=i;l.done=M&&$}return l.value=l.done?s:A,l},toString:()=>{const P=Math.min(ek(E),Lg),A=tk(C=>E.next(P*C).value,P,30);return P+"ms "+A}};return E}function Ew({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:f=.5,restSpeed:h}){const d=e[0],m={done:!1,value:d},v=M=>l!==void 0&&M<l||u!==void 0&&M>u,_=M=>l===void 0?u:u===void 0||Math.abs(l-M)<Math.abs(u-M)?l:u;let x=n*t;const S=d+x,y=s===void 0?S:s(S);y!==S&&(x=y-d);const b=M=>-x*Math.exp(-M/r),w=M=>y+b(M),E=M=>{const $=b(M),z=w(M);m.done=Math.abs($)<=f,m.value=m.done?y:z};let P,A;const C=M=>{v(m.value)&&(P=M,A=Ik({keyframes:[m.value,_(m.value)],velocity:Nk(w,M,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:h}))};return C(0),{calculatedDuration:null,next:M=>{let $=!1;return!A&&P===void 0&&($=!0,E(M),C(M)),P!==void 0&&M>=P?A.next(M-P):(!$&&E(M),m)}}}const k5=Ec(.42,0,1,1),C5=Ec(0,0,.58,1),Dk=Ec(.42,0,.58,1),M5=e=>Array.isArray(e)&&typeof e[0]!="number",j5={linear:Tn,easeIn:k5,easeInOut:Dk,easeOut:C5,circIn:Vx,circInOut:gk,circOut:vk,backIn:Fx,backInOut:pk,backOut:dk,anticipate:mk},kw=e=>{if(Ix(e)){LE(e.length===4);const[t,n,r,i]=e;return Ec(t,n,r,i)}else if(typeof e=="string")return j5[e];return e};function $5(e,t,n){const r=[],i=n||Lk,o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const u=Array.isArray(t)?t[s]||Tn:t;l=kc(u,l)}r.push(l)}return r}function L5(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(LE(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=$5(t,r,i),u=l.length,f=h=>{if(s&&h<e[0])return t[0];let d=0;if(u>1)for(;d<e.length-2&&!(h<e[d+1]);d++);const m=os(e[d],e[d+1],h);return l[d](m)};return n?h=>f(ci(e[0],e[o-1],h)):f}function N5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=os(0,t,r);e.push(ot(n,1,i))}}function I5(e){const t=[0];return N5(t,e.length-1),t}function D5(e,t){return e.map(n=>n*t)}function R5(e,t){return e.map(()=>t||Dk).splice(0,e.length-1)}function Kh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=M5(r)?r.map(kw):kw(r),o={done:!1,value:t[0]},s=D5(n&&n.length===t.length?n:I5(t),e),l=L5(s,t,{ease:Array.isArray(i)?i:R5(t,i)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const z5=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Je.update(t,!0),stop:()=>qi(t),now:()=>Bt.isProcessing?Bt.timestamp:Mr.now()}},B5={decay:Ew,inertia:Ew,tween:Kh,keyframes:Kh,spring:Ik},F5=e=>e/100;class Kx extends jk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Zx,l=(u,f)=>this.onKeyframesResolved(u,f);this.resolver=new s(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=Nx(n)?n:B5[n]||Kh;let u,f;l!==Kh&&typeof t[0]!="number"&&(u=kc(F5,Lk(t[0],t[1])),t=[0,100]);const h=l({...this.options,keyframes:t});o==="mirror"&&(f=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=ek(h));const{calculatedDuration:d}=h,m=d+i,v=m*(r+1)-i;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:m,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:f,totalDuration:h,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:v,repeatType:_,repeatDelay:x,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-m*(this.speed>=0?1:-1),b=this.speed>=0?y<0:y>h;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let w=this.currentTime,E=o;if(v){const M=Math.min(this.currentTime,h)/d;let $=Math.floor(M),z=M%1;!z&&M>=1&&(z=1),z===1&&$--,$=Math.min($,v+1),!!($%2)&&(_==="reverse"?(z=1-z,x&&(z-=x/d)):_==="mirror"&&(E=s)),w=ci(0,1,z)*d}const P=b?{done:!1,value:u[0]}:E.next(w);l&&(P.value=l(P.value));let{done:A}=P;!b&&f!==null&&(A=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return C&&i!==void 0&&(P.value=xp(u,this.options,i)),S&&S(P.value),C&&this.finish(),P}get duration(){const{resolved:t}=this;return t?ni(t.calculatedDuration):0}get time(){return ni(this.currentTime)}set time(t){t=ti(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ni(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=z5,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const V5=new Set(["opacity","clipPath","filter","transform"]);function U5(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const h=rk(l,i);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const W5=_x(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),qh=10,H5=2e4;function Z5(e){return Nx(e.type)||e.type==="spring"||!nk(e.ease)}function G5(e,t){const n=new Kx({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<H5;)r=n.sample(o),i.push(r.value),o+=qh;return{times:void 0,keyframes:i,duration:o-qh,ease:"linear"}}const Rk={anticipate:mk,backInOut:pk,circInOut:gk};function K5(e){return e in Rk}class Cw extends jk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Mk(o,(s,l)=>this.onKeyframesResolved(s,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:l,name:u,startTime:f}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Zh()&&K5(o)&&(o=Rk[o]),Z5(this.options)){const{onComplete:d,onUpdate:m,motionValue:v,element:_,...x}=this.options,S=G5(t,x);t=S.keyframes,t.length===1&&(t[1]=t[0]),r=S.duration,i=S.times,o=S.ease,s="keyframes"}const h=U5(l.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(pw(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:d}=this.options;l.set(xp(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ni(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ni(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ti(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Tn;const{animation:r}=n;pw(r,t)}return Tn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:h,onComplete:d,element:m,...v}=this.options,_=new Kx({...v,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),x=ti(this.time);f.setWithVelocity(_.sample(x-qh).value,_.sample(x).value,qh)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:f}=n.owner.getProps();return W5()&&r&&V5.has(r)&&!u&&!f&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const q5={type:"spring",stiffness:500,damping:25,restSpeed:10},X5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Y5={type:"keyframes",duration:.8},Q5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},J5=(e,{keyframes:t})=>t.length>2?Y5:Jo.has(e)?e.startsWith("scale")?X5(t[1]):q5:Q5;function e3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:f,...h}){return!!Object.keys(h).length}const qx=(e,t,n,r={},i,o)=>s=>{const l=Lx(r,e)||{},u=l.delay||r.delay||0;let{elapsed:f=0}=r;f=f-ti(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-f,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};e3(l)||(h={...h,...J5(e,h)}),h.duration&&(h.duration=ti(h.duration)),h.repeatDelay&&(h.repeatDelay=ti(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let d=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(d=!0)),d&&!o&&t.get()!==void 0){const m=xp(h.keyframes,l);if(m!==void 0)return Je.update(()=>{h.onUpdate(m),h.onComplete()}),new xR([])}return!o&&Cw.supports(h)?new Cw(h):new Kx(h)};function t3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function zk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const f=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const m=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),v=u[d];if(v===void 0||h&&t3(h,d))continue;const _={delay:n,...Lx(s||{},d)};let x=!1;if(window.MotionHandoffAnimation){const y=uk(e);if(y){const b=window.MotionHandoffAnimation(y,d,Je);b!==null&&(_.startTime=b,x=!0)}}Ig(e,d),m.start(qx(d,m,v,e.shouldReduceMotion&&sk.has(d)?{type:!1}:_,e,x));const S=m.animation;S&&f.push(S)}return l&&Promise.all(f).then(()=>{Je.update(()=>{l&&$R(e,l)})}),f}function Ug(e,t,n={}){var r;const i=yp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(zk(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:d,staggerDirection:m}=o;return n3(e,t,h+f,d,m,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[s,l]:[l,s];return f().then(()=>h())}else return Promise.all([s(),l(n.delay)])}function n3(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>l-f*r;return Array.from(e.variantChildren).sort(r3).forEach((f,h)=>{f.notify("AnimationStart",t),s.push(Ug(f,t,{...o,delay:n+u(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(s)}function r3(e,t){return e.sortNodePosition(t)}function i3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Ug(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Ug(e,t,n);else{const i=typeof t=="function"?yp(e,t,n.custom):t;r=Promise.all(zk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const o3=wx.length;function Bk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Bk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<o3;n++){const r=wx[n],i=e.props[r];(Nu(i)||i===!1)&&(t[r]=i)}return t}const a3=[...bx].reverse(),s3=bx.length;function l3(e){return t=>Promise.all(t.map(({animation:n,options:r})=>i3(e,n,r)))}function u3(e){let t=l3(e),n=Mw(),r=!0;const i=u=>(f,h)=>{var d;const m=yp(e,h,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(m){const{transition:v,transitionEnd:_,...x}=m;f={...f,...x,..._}}return f};function o(u){t=u(e)}function s(u){const{props:f}=e,h=Bk(e.parent)||{},d=[],m=new Set;let v={},_=1/0;for(let S=0;S<s3;S++){const y=a3[S],b=n[y],w=f[y]!==void 0?f[y]:h[y],E=Nu(w),P=y===u?b.isActive:null;P===!1&&(_=S);let A=w===h[y]&&w!==f[y]&&E;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...v},!b.isActive&&P===null||!w&&!b.prevProp||vp(w)||typeof w=="boolean")continue;const C=c3(b.prevProp,w);let M=C||y===u&&b.isActive&&!A&&E||S>_&&E,$=!1;const z=Array.isArray(w)?w:[w];let B=z.reduce(i(y),{});P===!1&&(B={});const{prevResolvedValues:R={}}=b,Q={...R,...B},H=X=>{M=!0,m.has(X)&&($=!0,m.delete(X)),b.needsAnimating[X]=!0;const D=e.getValue(X);D&&(D.liveStyle=!1)};for(const X in Q){const D=B[X],G=R[X];if(v.hasOwnProperty(X))continue;let V=!1;$g(D)&&$g(G)?V=!JE(D,G):V=D!==G,V?D!=null?H(X):m.add(X):D!==void 0&&m.has(X)?H(X):b.protectedKeys[X]=!0}b.prevProp=w,b.prevResolvedValues=B,b.isActive&&(v={...v,...B}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(A&&C)||$)&&d.push(...z.map(X=>({animation:X,options:{type:y}})))}if(m.size){const S={};m.forEach(y=>{const b=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),S[y]=b??null}),d.push({animation:S})}let x=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(d):Promise.resolve()}function l(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;const d=s(u);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Mw(),r=!0}}}function c3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!JE(t,e):!1}function go(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mw(){return{animate:go(!0),whileInView:go(),whileHover:go(),whileTap:go(),whileDrag:go(),whileFocus:go(),exit:go()}}class eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class f3 extends eo{constructor(t){super(t),t.animationState||(t.animationState=u3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let h3=0;class d3 extends eo{constructor(){super(...arguments),this.id=h3++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const p3={animation:{Feature:f3},exit:{Feature:d3}};function zu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Cc(e){return{point:{x:e.pageX,y:e.pageY}}}const m3=e=>t=>Dx(t)&&e(t,Cc(t));function uu(e,t,n,r){return zu(e,t,m3(n),r)}const jw=(e,t)=>Math.abs(e-t);function v3(e,t){const n=jw(e.x,t.x),r=jw(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=nv(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=v3(d.offset,{x:0,y:0})>=3;if(!m&&!v)return;const{point:_}=d,{timestamp:x}=Bt;this.history.push({..._,timestamp:x});const{onStart:S,onMove:y}=this.handlers;m||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=tv(m,this.transformPagePoint),Je.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:v,onSessionEnd:_,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=nv(d.type==="pointercancel"?this.lastMoveEventInfo:tv(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,S),_&&_(d,S)},!Dx(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Cc(t),l=tv(s,this.transformPagePoint),{point:u}=l,{timestamp:f}=Bt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,nv(l,this.history)),this.removeListeners=kc(uu(this.contextWindow,"pointermove",this.handlePointerMove),uu(this.contextWindow,"pointerup",this.handlePointerUp),uu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qi(this.updatePoint)}}function tv(e,t){return t?{point:t(e.point)}:e}function $w(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nv({point:e},t){return{point:e,delta:$w(e,Vk(t)),offset:$w(e,g3(t)),velocity:y3(t,.1)}}function g3(e){return e[0]}function Vk(e){return e[e.length-1]}function y3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Vk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ti(t)));)n--;if(!r)return{x:0,y:0};const o=ni(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const Uk=1e-4,x3=1-Uk,_3=1+Uk,Wk=.01,b3=0-Wk,w3=0+Wk;function En(e){return e.max-e.min}function S3(e,t,n){return Math.abs(e-t)<=n}function Lw(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=En(n)/En(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=x3&&e.scale<=_3||isNaN(e.scale))&&(e.scale=1),(e.translate>=b3&&e.translate<=w3||isNaN(e.translate))&&(e.translate=0)}function cu(e,t,n,r){Lw(e.x,t.x,n.x,r?r.originX:void 0),Lw(e.y,t.y,n.y,r?r.originY:void 0)}function Nw(e,t,n){e.min=n.min+t.min,e.max=e.min+En(t)}function P3(e,t,n){Nw(e.x,t.x,n.x),Nw(e.y,t.y,n.y)}function Iw(e,t,n){e.min=t.min-n.min,e.max=e.min+En(t)}function fu(e,t,n){Iw(e.x,t.x,n.x),Iw(e.y,t.y,n.y)}function O3(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ot(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function Dw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function T3(e,{top:t,left:n,bottom:r,right:i}){return{x:Dw(e.x,n,i),y:Dw(e.y,t,r)}}function Rw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function A3(e,t){return{x:Rw(e.x,t.x),y:Rw(e.y,t.y)}}function E3(e,t){let n=.5;const r=En(e),i=En(t);return i>r?n=os(t.min,t.max-r,e.min):r>i&&(n=os(e.min,e.max-i,t.min)),ci(0,1,n)}function k3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Wg=.35;function C3(e=Wg){return e===!1?e=0:e===!0&&(e=Wg),{x:zw(e,"left","right"),y:zw(e,"top","bottom")}}function zw(e,t,n){return{min:Bw(e,t),max:Bw(e,n)}}function Bw(e,t){return typeof e=="number"?e:e[t]||0}const Fw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Na=()=>({x:Fw(),y:Fw()}),Vw=()=>({min:0,max:0}),pt=()=>({x:Vw(),y:Vw()});function zn(e){return[e("x"),e("y")]}function Hk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function M3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function j3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function rv(e){return e===void 0||e===1}function Hg({scale:e,scaleX:t,scaleY:n}){return!rv(e)||!rv(t)||!rv(n)}function bo(e){return Hg(e)||Zk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zk(e){return Uw(e.x)||Uw(e.y)}function Uw(e){return e&&e!=="0%"}function Xh(e,t,n){const r=e-n,i=t*r;return n+i}function Ww(e,t,n,r,i){return i!==void 0&&(e=Xh(e,i,r)),Xh(e,n,r)+t}function Zg(e,t=0,n=1,r,i){e.min=Ww(e.min,t,n,r,i),e.max=Ww(e.max,t,n,r,i)}function Gk(e,{x:t,y:n}){Zg(e.x,t.translate,t.scale,t.originPoint),Zg(e.y,n.translate,n.scale,n.originPoint)}const Hw=.999999999999,Zw=1.0000000000001;function $3(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Da(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Gk(e,s)),r&&bo(o.latestValues)&&Da(e,o.latestValues))}t.x<Zw&&t.x>Hw&&(t.x=1),t.y<Zw&&t.y>Hw&&(t.y=1)}function Ia(e,t){e.min=e.min+t,e.max=e.max+t}function Gw(e,t,n,r,i=.5){const o=ot(e.min,e.max,i);Zg(e,t,n,o,r)}function Da(e,t){Gw(e.x,t.x,t.scaleX,t.scale,t.originX),Gw(e.y,t.y,t.scaleY,t.scale,t.originY)}function Kk(e,t){return Hk(j3(e.getBoundingClientRect(),t))}function L3(e,t,n){const r=Kk(e,n),{scroll:i}=t;return i&&(Ia(r.x,i.offset.x),Ia(r.y,i.offset.y)),r}const qk=({current:e})=>e?e.ownerDocument.defaultView:null,N3=new WeakMap;class I3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cc(h).point)},o=(h,d)=>{const{drag:m,dragPropagation:v,onDragStart:_}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ER(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zn(S=>{let y=this.getAxisMotionValue(S).get()||0;if(Cr.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[S];w&&(y=En(w)*(parseFloat(y)/100))}}this.originPoint[S]=y}),_&&Je.postRender(()=>_(h,d)),Ig(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(h,d)=>{const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:_,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:S}=d;if(v&&this.currentDirection===null){this.currentDirection=D3(S),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),x&&x(h,d)},l=(h,d)=>this.stop(h,d),u=()=>zn(h=>{var d;return this.getAnimationState(h)==="paused"&&((d=this.getAxisMotionValue(h).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new Fk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:qk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Je.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Vf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=O3(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&$a(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=T3(i.layoutBox,n):this.constraints=!1,this.elastic=C3(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&zn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=k3(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!$a(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=L3(r,i.root,this.visualElement.getTransformPagePoint());let s=A3(i.layout.layoutBox,o);if(n){const l=n(M3(s));this.hasMutatedConstraints=!!l,l&&(s=Hk(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},f=zn(h=>{if(!Vf(h,n,this.currentDirection))return;let d=u&&u[h]||{};s&&(d={min:0,max:0});const m=i?200:1e6,v=i?40:1e7,_={type:"inertia",velocity:r?t[h]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(h,_)});return Promise.all(f).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ig(this.visualElement,t),r.start(qx(t,r,0,n,this.visualElement,!1))}stopAnimation(){zn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){zn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){zn(n=>{const{drag:r}=this.getProps();if(!Vf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-ot(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!$a(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};zn(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();i[s]=E3({min:u,max:u},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),zn(s=>{if(!Vf(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:f}=this.constraints[s];l.set(ot(u,f,i[s]))})}addListeners(){if(!this.visualElement.current)return;N3.set(this.visualElement,this);const t=this.visualElement.current,n=uu(t,"pointerdown",u=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();$a(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Je.read(r);const s=zu(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(zn(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=u[h].translate,d.set(d.get()+u[h].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Wg,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Vf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function D3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class R3 extends eo{constructor(t){super(t),this.removeGroupControls=Tn,this.removeListeners=Tn,this.controls=new I3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Kw=e=>(t,n)=>{e&&Je.postRender(()=>e(t,n))};class z3 extends eo{constructor(){super(...arguments),this.removePointerDownListener=Tn}onPointerDown(t){this.session=new Fk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Kw(t),onStart:Kw(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Je.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=uu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function qw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=qw(e,t.target.x),r=qw(e,t.target.y);return`${n}% ${r}%`}},B3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Xi.parse(e);if(i.length>5)return r;const o=Xi.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=u;const f=ot(l,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=f),typeof i[3+s]=="number"&&(i[3+s]/=f),o(i)}};class F3 extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;sR(V3),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),xh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Je.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Px.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xk(e){const[t,n]=jE(),r=j.useContext(vx);return T.jsx(F3,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(BE),isPresent:t,safeToRemove:n})}const V3={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:B3};function U3(e,t,n){const r=Jt(e)?e:Du(e);return r.start(qx("",r,t,n)),r.animation}function W3(e){return e instanceof SVGElement&&e.tagName!=="svg"}const H3=(e,t)=>e.depth-t.depth;class Z3{constructor(){this.children=[],this.isDirty=!1}add(t){Rx(this.children,t),this.isDirty=!0}remove(t){zx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(H3),this.isDirty=!1,this.children.forEach(t)}}function G3(e,t){const n=Mr.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(qi(r),e(o-t))};return Je.read(r,!0),()=>qi(r)}const Yk=["TopLeft","TopRight","BottomLeft","BottomRight"],K3=Yk.length,Xw=e=>typeof e=="string"?parseFloat(e):e,Yw=e=>typeof e=="number"||ye.test(e);function q3(e,t,n,r,i,o){i?(e.opacity=ot(0,n.opacity!==void 0?n.opacity:1,X3(r)),e.opacityExit=ot(t.opacity!==void 0?t.opacity:1,0,Y3(r))):o&&(e.opacity=ot(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<K3;s++){const l=`border${Yk[s]}Radius`;let u=Qw(t,l),f=Qw(n,l);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Yw(u)===Yw(f)?(e[l]=Math.max(ot(Xw(u),Xw(f),r),0),(Cr.test(f)||Cr.test(u))&&(e[l]+="%")):e[l]=f}(t.rotate||n.rotate)&&(e.rotate=ot(t.rotate||0,n.rotate||0,r))}function Qw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const X3=Qk(0,.5,vk),Y3=Qk(.5,.95,Tn);function Qk(e,t,n){return r=>r<e?0:r>t?1:n(os(e,t,r))}function Jw(e,t){e.min=t.min,e.max=t.max}function Nn(e,t){Jw(e.x,t.x),Jw(e.y,t.y)}function eS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function tS(e,t,n,r,i){return e-=t,e=Xh(e,1/n,r),i!==void 0&&(e=Xh(e,1/i,r)),e}function Q3(e,t=0,n=1,r=.5,i,o=e,s=e){if(Cr.test(t)&&(t=parseFloat(t),t=ot(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=ot(o.min,o.max,r);e===o&&(l-=t),e.min=tS(e.min,t,n,l,i),e.max=tS(e.max,t,n,l,i)}function nS(e,t,[n,r,i],o,s){Q3(e,t[n],t[r],t[i],t.scale,o,s)}const J3=["x","scaleX","originX"],ez=["y","scaleY","originY"];function rS(e,t,n,r){nS(e.x,t,J3,n?n.x:void 0,r?r.x:void 0),nS(e.y,t,ez,n?n.y:void 0,r?r.y:void 0)}function iS(e){return e.translate===0&&e.scale===1}function Jk(e){return iS(e.x)&&iS(e.y)}function oS(e,t){return e.min===t.min&&e.max===t.max}function tz(e,t){return oS(e.x,t.x)&&oS(e.y,t.y)}function aS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function eC(e,t){return aS(e.x,t.x)&&aS(e.y,t.y)}function sS(e){return En(e.x)/En(e.y)}function lS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nz{constructor(){this.members=[]}add(t){Rx(this.members,t),t.scheduleRender()}remove(t){if(zx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rz(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:h,rotateX:d,rotateY:m,skewX:v,skewY:_}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),d&&(r+=`rotateX(${d}deg) `),m&&(r+=`rotateY(${m}deg) `),v&&(r+=`skewX(${v}deg) `),_&&(r+=`skewY(${_}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const wo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Xl=typeof window<"u"&&window.MotionDebug!==void 0,iv=["","X","Y","Z"],iz={visibility:"hidden"},uS=1e3;let oz=0;function ov(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function tC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=uk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Je,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&tC(r)}function nC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=oz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xl&&(wo.totalNodes=wo.resolvedTargetDeltas=wo.recalculatedProjection=0),this.nodes.forEach(lz),this.nodes.forEach(dz),this.nodes.forEach(pz),this.nodes.forEach(uz),Xl&&window.MotionDebug.record(wo)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Z3)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Bx),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const u=this.eventHandlers.get(s);u&&u.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=W3(s),this.instance=s;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(f||u)&&(this.isLayoutDirty=!0),e){let d;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=G3(m,250),xh.hasAnimatedSinceResize&&(xh.hasAnimatedSinceResize=!1,this.nodes.forEach(fS))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeTargetChanged:v,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||xz,{onLayoutAnimationStart:S,onLayoutAnimationComplete:y}=h.getProps(),b=!this.targetLayout||!eC(this.targetLayout,_)||v,w=!m&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||m&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const E={...Lx(x,"layout"),onPlay:S,onComplete:y};(h.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else m||fS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mz),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const d=this.path[h];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cS);return}this.isUpdating||this.nodes.forEach(fz),this.isUpdating=!1,this.nodes.forEach(hz),this.nodes.forEach(az),this.nodes.forEach(sz),this.clearAllSnapshots();const l=Mr.now();Bt.delta=ci(0,1e3/60,l-Bt.timestamp),Bt.timestamp=l,Bt.isProcessing=!0,qm.update.process(Bt),qm.preRender.process(Bt),qm.render.process(Bt),Bt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Px.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cz),this.sharedNodes.forEach(vz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Je.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Je.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=pt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Jk(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;s&&(l||bo(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return s&&(u=this.removeTransform(u)),_z(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:l}=this.options;if(!l)return pt();const u=l.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(bz))){const{scroll:h}=this.root;h&&(Ia(u.x,h.offset.x),Ia(u.y,h.offset.y))}return u}removeElementScroll(s){var l;const u=pt();if(Nn(u,s),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:d,options:m}=h;h!==this.root&&d&&m.layoutScroll&&(d.wasRoot&&Nn(u,s),Ia(u.x,d.offset.x),Ia(u.y,d.offset.y))}return u}applyTransform(s,l=!1){const u=pt();Nn(u,s);for(let f=0;f<this.path.length;f++){const h=this.path[f];!l&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Da(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),bo(h.latestValues)&&Da(u,h.latestValues)}return bo(this.latestValues)&&Da(u,this.latestValues),u}removeTransform(s){const l=pt();Nn(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!bo(f.latestValues))continue;Hg(f.latestValues)&&f.updateSnapshot();const h=pt(),d=f.measurePageBox();Nn(h,d),rS(l,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return bo(this.latestValues)&&rS(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(s||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:m}=this.options;if(!(!this.layout||!(d||m))){if(this.resolvedRelativeTargetAt=Bt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pt(),this.relativeTargetOrigin=pt(),fu(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=pt(),this.targetWithTransforms=pt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Nn(this.target,this.layout.layoutBox),Gk(this.target,this.targetDelta)):Nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=pt(),this.relativeTargetOrigin=pt(),fu(this.relativeTargetOrigin,this.target,v.target),Nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Xl&&wo.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Hg(this.parent.latestValues)||Zk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Bt.timestamp&&(f=!1),f)return;const{layout:h,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||d))return;Nn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;$3(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=pt());const{target:_}=l;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(eS(this.prevProjectionDelta.x,this.projectionDelta.x),eS(this.prevProjectionDelta.y,this.projectionDelta.y)),cu(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!lS(this.projectionDelta.x,this.prevProjectionDelta.x)||!lS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Xl&&wo.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),s){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Na(),this.projectionDelta=Na(),this.projectionDeltaWithTransform=Na()}setAnimationOrigin(s,l=!1){const u=this.snapshot,f=u?u.latestValues:{},h={...this.latestValues},d=Na();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=pt(),v=u?u.source:void 0,_=this.layout?this.layout.source:void 0,x=v!==_,S=this.getStack(),y=!S||S.members.length<=1,b=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(yz));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;hS(d.x,s.x,P),hS(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fu(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gz(this.relativeTarget,this.relativeTargetOrigin,m,P),w&&tz(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=pt()),Nn(w,this.relativeTarget)),x&&(this.animationValues=h,q3(h,f,this.latestValues,P,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Je.update(()=>{xh.hasAnimatedSinceResize=!0,this.currentAnimation=U3(0,uS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:f,latestValues:h}=s;if(!(!l||!u||!f)){if(this!==s&&this.layout&&f&&rC(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||pt();const d=En(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const m=En(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}Nn(l,u),Da(l,h),cu(this.projectionDeltaWithTransform,this.layoutCorrected,l,h)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new nz),this.sharedNodes.get(s).add(l);const f=l.options.initialPromotionConfig;l.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:u}={}){const f=this.getStack();f&&f.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const f={};u.z&&ov("z",s,f,this.animationValues);for(let h=0;h<iv.length;h++)ov(`rotate${iv[h]}`,s,f,this.animationValues),ov(`skew${iv[h]}`,s,f,this.animationValues);s.render();for(const h in f)s.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);s.scheduleRender()}getProjectionStyles(s){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return iz;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=gh(s==null?void 0:s.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=gh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!bo(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const m=d.animationValues||d.latestValues;this.applyTransformsToTarget(),f.transform=rz(this.projectionDeltaWithTransform,this.treeScale,m),h&&(f.transform=h(m,f.transform));const{x:v,y:_}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${_.origin*100}% 0`,d.animationValues?f.opacity=d===this?(u=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:f.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in Hh){if(m[x]===void 0)continue;const{correct:S,applyTo:y}=Hh[x],b=f.transform==="none"?m[x]:S(m[x],d);if(y){const w=y.length;for(let E=0;E<w;E++)f[y[E]]=b}else f[x]=b}return this.options.layoutId&&(f.pointerEvents=d===this?gh(s==null?void 0:s.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(cS),this.root.sharedNodes.clear()}}}function az(e){e.updateLayout()}function sz(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?zn(d=>{const m=s?n.measuredBox[d]:n.layoutBox[d],v=En(m);m.min=r[d].min,m.max=m.min+v}):rC(o,n.layoutBox,r)&&zn(d=>{const m=s?n.measuredBox[d]:n.layoutBox[d],v=En(r[d]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+v)});const l=Na();cu(l,r,n.layoutBox);const u=Na();s?cu(u,e.applyTransform(i,!0),n.measuredBox):cu(u,r,n.layoutBox);const f=!Jk(l);let h=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:m,layout:v}=d;if(m&&v){const _=pt();fu(_,n.layoutBox,m.layoutBox);const x=pt();fu(x,r,v.layoutBox),eC(_,x)||(h=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=_,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function lz(e){Xl&&wo.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function uz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cz(e){e.clearSnapshot()}function cS(e){e.clearMeasurements()}function fz(e){e.isLayoutDirty=!1}function hz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dz(e){e.resolveTargetDelta()}function pz(e){e.calcProjection()}function mz(e){e.resetSkewAndRotation()}function vz(e){e.removeLeadSnapshot()}function hS(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dS(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function gz(e,t,n,r){dS(e.x,t.x,n.x,r),dS(e.y,t.y,n.y,r)}function yz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xz={duration:.45,ease:[.4,0,.1,1]},pS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mS=pS("applewebkit/")&&!pS("chrome/")?Math.round:Tn;function vS(e){e.min=mS(e.min),e.max=mS(e.max)}function _z(e){vS(e.x),vS(e.y)}function rC(e,t,n){return e==="position"||e==="preserve-aspect"&&!S3(sS(t),sS(n),.2)}function bz(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const wz=nC({attachResizeListener:(e,t)=>zu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),av={current:void 0},iC=nC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!av.current){const e=new wz({});e.mount(window),e.setOptions({layoutScroll:!0}),av.current=e}return av.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Sz={pan:{Feature:z3},drag:{Feature:R3,ProjectionNode:iC,MeasureLayout:Xk}};function gS(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Je.postRender(()=>o(t,Cc(t)))}class Pz extends eo{mount(){const{current:t}=this.node;t&&(this.unmount=SR(t,n=>(gS(this.node,n,"Start"),r=>gS(this.node,r,"End"))))}unmount(){}}class Oz extends eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=kc(zu(this.node.current,"focus",()=>this.onFocus()),zu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yS(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Je.postRender(()=>o(t,Cc(t)))}class Tz extends eo{mount(){const{current:t}=this.node;t&&(this.unmount=AR(t,n=>(yS(this.node,n,"Start"),(r,{success:i})=>yS(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Gg=new WeakMap,sv=new WeakMap,Az=e=>{const t=Gg.get(e.target);t&&t(e)},Ez=e=>{e.forEach(Az)};function kz({root:e,...t}){const n=e||document;sv.has(n)||sv.set(n,{});const r=sv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ez,{root:e,...t})),r[i]}function Cz(e,t,n){const r=kz(t);return Gg.set(e,n),r.observe(e),()=>{Gg.delete(e),r.unobserve(e)}}const Mz={some:0,all:1};class jz extends eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Mz[i]},l=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:d}=this.node.getProps(),m=f?h:d;m&&m(u)};return Cz(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some($z(t,n))&&this.startObserver()}unmount(){}}function $z({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Lz={inView:{Feature:jz},tap:{Feature:Tz},focus:{Feature:Oz},hover:{Feature:Pz}},Nz={layout:{ProjectionNode:iC,MeasureLayout:Xk}},Kg={current:null},oC={current:!1};function Iz(){if(oC.current=!0,!!xx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kg.current=e.matches;e.addListener(t),t()}else Kg.current=!1}const Dz=[...Ck,Kt,Xi],Rz=e=>Dz.find(kk(e)),xS=new WeakMap;function zz(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Jt(i))e.addValue(r,i);else if(Jt(o))e.addValue(r,Du(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Du(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const _S=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Bz{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Mr.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Je.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:h}=s;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=gp(n),this.isVariantNode=RE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const _=m[v];u[v]!==void 0&&Jt(_)&&_.set(u[v],!1)}}mount(t){this.current=t,xS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),oC.current||Iz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Kg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xS.delete(this.current),this.projection&&this.projection.unmount(),qi(this.notifyUpdate),qi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Jo.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Je.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in as){const n=as[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):pt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<_S.length;r++){const i=_S[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=zz(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Du(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Ak(i)||yk(i))?i=parseFloat(i):!Rz(i)&&Xi.test(n)&&(i=Pk(t,n)),this.setBaseTarget(t,Jt(i)?i.get():i)),Jt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Tx(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Jt(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class aC extends Bz{constructor(){super(...arguments),this.KeyframeResolver=Mk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Jt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fz(e){return window.getComputedStyle(e)}class Vz extends aC{constructor(){super(...arguments),this.type="html",this.renderInstance=GE}readValueFromInstance(t,n){if(Jo.has(n)){const r=Hx(n);return r&&r.default||0}else{const r=Fz(t),i=(WE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Kk(t,n)}build(t,n,r){kx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $x(t,n,r)}}class Uz extends aC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=pt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Jo.has(n)){const r=Hx(n);return r&&r.default||0}return n=KE.has(n)?n:Sx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return YE(t,n,r)}build(t,n,r){Cx(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){qE(t,n,r,i)}mount(t){this.isSVGTag=jx(t.tagName),super.mount(t)}}const Wz=(e,t)=>Ox(e)?new Uz(t):new Vz(t,{allowProjection:e!==j.Fragment}),Hz=vR({...p3,...Lz,...Sz,...Nz},Wz),Zz=MD(Hz);/**
|
|
49
|
+
* @license lucide-react v0.344.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var Gz={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
54
|
+
* @license lucide-react v0.344.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/const Kz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Pe=(e,t)=>{const n=j.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:u,...f},h)=>j.createElement("svg",{ref:h,...Gz,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${Kz(e)}`,l].join(" "),...f},[...t.map(([d,m])=>j.createElement(d,m)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
|
|
59
|
+
* @license lucide-react v0.344.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/const qz=Pe("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
|
64
|
+
* @license lucide-react v0.344.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const Xz=Pe("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
69
|
+
* @license lucide-react v0.344.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const Yz=Pe("Anchor",[["path",{d:"M12 22V8",key:"qkxhtm"}],["path",{d:"M5 12H2a10 10 0 0 0 20 0h-3",key:"1hv3nh"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]]);/**
|
|
74
|
+
* @license lucide-react v0.344.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const Qz=Pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
79
|
+
* @license lucide-react v0.344.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const Jz=Pe("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
|
|
84
|
+
* @license lucide-react v0.344.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const e4=Pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
89
|
+
* @license lucide-react v0.344.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const sC=Pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
94
|
+
* @license lucide-react v0.344.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const t4=Pe("CloudDrizzle",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M8 19v1",key:"1dk2by"}],["path",{d:"M8 14v1",key:"84yxot"}],["path",{d:"M16 19v1",key:"v220m7"}],["path",{d:"M16 14v1",key:"g12gj6"}],["path",{d:"M12 21v1",key:"q8vafk"}],["path",{d:"M12 16v1",key:"1mx6rx"}]]);/**
|
|
99
|
+
* @license lucide-react v0.344.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const n4=Pe("CloudLightning",[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973",key:"1cez44"}],["path",{d:"m13 12-3 5h4l-3 5",key:"1t22er"}]]);/**
|
|
104
|
+
* @license lucide-react v0.344.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const r4=Pe("CloudRain",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
|
109
|
+
* @license lucide-react v0.344.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const i4=Pe("CloudSun",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]]);/**
|
|
114
|
+
* @license lucide-react v0.344.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const bS=Pe("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
|
|
119
|
+
* @license lucide-react v0.344.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const o4=Pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
124
|
+
* @license lucide-react v0.344.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const a4=Pe("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);/**
|
|
129
|
+
* @license lucide-react v0.344.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const s4=Pe("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
|
|
134
|
+
* @license lucide-react v0.344.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const l4=Pe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
139
|
+
* @license lucide-react v0.344.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const u4=Pe("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
|
|
144
|
+
* @license lucide-react v0.344.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const c4=Pe("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
149
|
+
* @license lucide-react v0.344.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const f4=Pe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
154
|
+
* @license lucide-react v0.344.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const h4=Pe("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
159
|
+
* @license lucide-react v0.344.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const lC=Pe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
164
|
+
* @license lucide-react v0.344.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const uC=Pe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
169
|
+
* @license lucide-react v0.344.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const wS=Pe("Navigation2",[["polygon",{points:"12 2 19 21 12 17 5 21 12 2",key:"x8c0qg"}]]);/**
|
|
174
|
+
* @license lucide-react v0.344.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const d4=Pe("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
|
|
179
|
+
* @license lucide-react v0.344.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const cC=Pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
184
|
+
* @license lucide-react v0.344.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const p4=Pe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
189
|
+
* @license lucide-react v0.344.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const m4=Pe("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
|
|
194
|
+
* @license lucide-react v0.344.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const v4=Pe("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|
199
|
+
* @license lucide-react v0.344.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const g4=Pe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
204
|
+
* @license lucide-react v0.344.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const y4=Pe("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);/**
|
|
209
|
+
* @license lucide-react v0.344.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const x4=Pe("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
214
|
+
* @license lucide-react v0.344.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const SS=Pe("Snowflake",[["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"m20 16-4-4 4-4",key:"rquw4f"}],["path",{d:"m4 8 4 4-4 4",key:"12s3z9"}],["path",{d:"m16 4-4 4-4-4",key:"1tumq1"}],["path",{d:"m8 20 4-4 4 4",key:"9p200w"}]]);/**
|
|
219
|
+
* @license lucide-react v0.344.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const _4=Pe("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0Z",key:"u5qfb7"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);/**
|
|
224
|
+
* @license lucide-react v0.344.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const Xx=Pe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
229
|
+
* @license lucide-react v0.344.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const fC=Pe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
|
|
234
|
+
* @license lucide-react v0.344.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const hC=Pe("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/**
|
|
239
|
+
* @license lucide-react v0.344.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const b4=Pe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
244
|
+
* @license lucide-react v0.344.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const w4=Pe("Triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);/**
|
|
249
|
+
* @license lucide-react v0.344.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const S4=Pe("Wind",[["path",{d:"M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2",key:"1k4u03"}],["path",{d:"M9.6 4.6A2 2 0 1 1 11 8H2",key:"b7d0fd"}],["path",{d:"M12.6 19.4A2 2 0 1 0 14 16H2",key:"1p5cb3"}]]);/**
|
|
254
|
+
* @license lucide-react v0.344.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const PS=Pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
259
|
+
* @license lucide-react v0.344.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const P4=Pe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),O4=()=>{const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.startsWith("192.168.")?"https://192.168.111.240:1881":`https://${e}:1881`},T4=()=>{const[e,t]=j.useState(null),[n,r]=j.useState(null),[i,o]=j.useState(0),[s,l]=j.useState(!0),[u,f]=j.useState(null),[h,d]=j.useState(!1),m=O4(),v=`${m}/api/boat`,_=`${m}/api/boat/control`,x=j.useRef(!1),S=j.useCallback(async()=>{if(x.current)return;x.current=!0;const w=new AbortController,E=setTimeout(()=>w.abort(),4e3);try{const P=await fetch(v,{signal:w.signal});if(clearTimeout(E),!P.ok)throw new Error(`Errore Server: ${P.status}`);const A=await P.json();t(A),r(new Date),l(!1),f(null),d(!1)}catch(P){clearTimeout(E),P.name!=="AbortError"&&(console.error("Fetch Error:",P),f(P.message)),l(!0),d(!1)}finally{x.current=!1}},[v]),y=async(w,E)=>{d(!0);try{if(!(await fetch(_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({device:w,state:E})})).ok)throw new Error("Comando fallito");setTimeout(S,1e3)}catch(P){console.error("Errore invio comando:",P),d(!1)}};j.useEffect(()=>{let w=null;const E=()=>{w&&(clearInterval(w),w=null),document.hidden||(S(),w=setInterval(S,5e3))};return E(),document.addEventListener("visibilitychange",E),window.addEventListener("pageshow",E),window.addEventListener("focus",E),window.addEventListener("online",E),()=>{w&&clearInterval(w),document.removeEventListener("visibilitychange",E),window.removeEventListener("pageshow",E),window.removeEventListener("focus",E),window.removeEventListener("online",E)}},[]),j.useEffect(()=>{const w=setInterval(()=>{if(!document.hidden)if(n){const E=Math.floor((new Date-n)/1e3);o(E),l(E>30),E>=8&&!h&&!x.current&&S()}else x.current||S()},1e3);return()=>clearInterval(w)},[n,h,S]);const b=i<15?"bg-green-500":i<30?"bg-orange-500":"bg-red-500";return{data:e,secondsSinceLastUpdate:i,isDataStale:s,statusColor:b,isUpdating:h,error:u,apiUrl:m,toggleSwitch:(w,E)=>y(w,E),setShoreLimit:w=>y("shore_limit",w)}};function A4(e,t){const n=j.useRef(t);j.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function E4(e,t,n){t.center!==n.center&&e.setLatLng(t.center),t.radius!=null&&t.radius!==n.radius&&e.setRadius(t.radius)}const k4=1;function C4(e){return Object.freeze({__version:k4,map:e})}function Yx(e,t){return Object.freeze({...e,...t})}const dC=j.createContext(null),pC=dC.Provider;function Qx(){const e=j.useContext(dC);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function mC(e){function t(n,r){const{instance:i,context:o}=e(n).current;return j.useImperativeHandle(r,()=>i),n.children==null?null:I.createElement(pC,{value:o},n.children)}return j.forwardRef(t)}function M4(e){function t(n,r){const{instance:i}=e(n).current;return j.useImperativeHandle(r,()=>i),null}return j.forwardRef(t)}function vC(e,t){const n=j.useRef();j.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function Jx(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}var qg={exports:{}};/* @preserve
|
|
264
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
265
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
266
|
+
*/(function(e,t){(function(n,r){r(t)})(Ul,function(n){var r="1.9.4";function i(a){var c,p,g,O;for(p=1,g=arguments.length;p<g;p++){O=arguments[p];for(c in O)a[c]=O[c]}return a}var o=Object.create||function(){function a(){}return function(c){return a.prototype=c,new a}}();function s(a,c){var p=Array.prototype.slice;if(a.bind)return a.bind.apply(a,p.call(arguments,1));var g=p.call(arguments,2);return function(){return a.apply(c,g.length?g.concat(p.call(arguments)):arguments)}}var l=0;function u(a){return"_leaflet_id"in a||(a._leaflet_id=++l),a._leaflet_id}function f(a,c,p){var g,O,k,N;return N=function(){g=!1,O&&(k.apply(p,O),O=!1)},k=function(){g?O=arguments:(a.apply(p,arguments),setTimeout(N,c),g=!0)},k}function h(a,c,p){var g=c[1],O=c[0],k=g-O;return a===g&&p?a:((a-O)%k+k)%k+O}function d(){return!1}function m(a,c){if(c===!1)return a;var p=Math.pow(10,c===void 0?6:c);return Math.round(a*p)/p}function v(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function _(a){return v(a).split(/\s+/)}function x(a,c){Object.prototype.hasOwnProperty.call(a,"options")||(a.options=a.options?o(a.options):{});for(var p in c)a.options[p]=c[p];return a.options}function S(a,c,p){var g=[];for(var O in a)g.push(encodeURIComponent(p?O.toUpperCase():O)+"="+encodeURIComponent(a[O]));return(!c||c.indexOf("?")===-1?"?":"&")+g.join("&")}var y=/\{ *([\w_ -]+) *\}/g;function b(a,c){return a.replace(y,function(p,g){var O=c[g];if(O===void 0)throw new Error("No value provided for variable "+p);return typeof O=="function"&&(O=O(c)),O})}var w=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function E(a,c){for(var p=0;p<a.length;p++)if(a[p]===c)return p;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function A(a){return window["webkit"+a]||window["moz"+a]||window["ms"+a]}var C=0;function M(a){var c=+new Date,p=Math.max(0,16-(c-C));return C=c+p,window.setTimeout(a,p)}var $=window.requestAnimationFrame||A("RequestAnimationFrame")||M,z=window.cancelAnimationFrame||A("CancelAnimationFrame")||A("CancelRequestAnimationFrame")||function(a){window.clearTimeout(a)};function B(a,c,p){if(p&&$===M)a.call(c);else return $.call(window,s(a,c))}function R(a){a&&z.call(window,a)}var Q={__proto__:null,extend:i,create:o,bind:s,get lastId(){return l},stamp:u,throttle:f,wrapNum:h,falseFn:d,formatNum:m,trim:v,splitWords:_,setOptions:x,getParamString:S,template:b,isArray:w,indexOf:E,emptyImageUrl:P,requestFn:$,cancelFn:z,requestAnimFrame:B,cancelAnimFrame:R};function H(){}H.extend=function(a){var c=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},p=c.__super__=this.prototype,g=o(p);g.constructor=c,c.prototype=g;for(var O in this)Object.prototype.hasOwnProperty.call(this,O)&&O!=="prototype"&&O!=="__super__"&&(c[O]=this[O]);return a.statics&&i(c,a.statics),a.includes&&(K(a.includes),i.apply(null,[g].concat(a.includes))),i(g,a),delete g.statics,delete g.includes,g.options&&(g.options=p.options?o(p.options):{},i(g.options,a.options)),g._initHooks=[],g.callInitHooks=function(){if(!this._initHooksCalled){p.callInitHooks&&p.callInitHooks.call(this),this._initHooksCalled=!0;for(var k=0,N=g._initHooks.length;k<N;k++)g._initHooks[k].call(this)}},c},H.include=function(a){var c=this.prototype.options;return i(this.prototype,a),a.options&&(this.prototype.options=c,this.mergeOptions(a.options)),this},H.mergeOptions=function(a){return i(this.prototype.options,a),this},H.addInitHook=function(a){var c=Array.prototype.slice.call(arguments,1),p=typeof a=="function"?a:function(){this[a].apply(this,c)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(p),this};function K(a){if(!(typeof L>"u"||!L||!L.Mixin)){a=w(a)?a:[a];for(var c=0;c<a.length;c++)a[c]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var q={on:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c);else{a=_(a);for(var O=0,k=a.length;O<k;O++)this._on(a[O],c,p)}return this},off:function(a,c,p){if(!arguments.length)delete this._events;else if(typeof a=="object")for(var g in a)this._off(g,a[g],c);else{a=_(a);for(var O=arguments.length===1,k=0,N=a.length;k<N;k++)O?this._off(a[k]):this._off(a[k],c,p)}return this},_on:function(a,c,p,g){if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}if(this._listens(a,c,p)===!1){p===this&&(p=void 0);var O={fn:c,ctx:p};g&&(O.once=!0),this._events=this._events||{},this._events[a]=this._events[a]||[],this._events[a].push(O)}},_off:function(a,c,p){var g,O,k;if(this._events&&(g=this._events[a],!!g)){if(arguments.length===1){if(this._firingCount)for(O=0,k=g.length;O<k;O++)g[O].fn=d;delete this._events[a];return}if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}var N=this._listens(a,c,p);if(N!==!1){var F=g[N];this._firingCount&&(F.fn=d,this._events[a]=g=g.slice()),g.splice(N,1)}}},fire:function(a,c,p){if(!this.listens(a,p))return this;var g=i({},c,{type:a,target:this,sourceTarget:c&&c.sourceTarget||this});if(this._events){var O=this._events[a];if(O){this._firingCount=this._firingCount+1||1;for(var k=0,N=O.length;k<N;k++){var F=O[k],W=F.fn;F.once&&this.off(a,W,F.ctx),W.call(F.ctx||this,g)}this._firingCount--}}return p&&this._propagateEvent(g),this},listens:function(a,c,p,g){typeof a!="string"&&console.warn('"string" type argument expected');var O=c;typeof c!="function"&&(g=!!c,O=void 0,p=void 0);var k=this._events&&this._events[a];if(k&&k.length&&this._listens(a,O,p)!==!1)return!0;if(g){for(var N in this._eventParents)if(this._eventParents[N].listens(a,c,p,g))return!0}return!1},_listens:function(a,c,p){if(!this._events)return!1;var g=this._events[a]||[];if(!c)return!!g.length;p===this&&(p=void 0);for(var O=0,k=g.length;O<k;O++)if(g[O].fn===c&&g[O].ctx===p)return O;return!1},once:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c,!0);else{a=_(a);for(var O=0,k=a.length;O<k;O++)this._on(a[O],c,p,!0)}return this},addEventParent:function(a){return this._eventParents=this._eventParents||{},this._eventParents[u(a)]=a,this},removeEventParent:function(a){return this._eventParents&&delete this._eventParents[u(a)],this},_propagateEvent:function(a){for(var c in this._eventParents)this._eventParents[c].fire(a.type,i({layer:a.target,propagatedFrom:a.target},a),!0)}};q.addEventListener=q.on,q.removeEventListener=q.clearAllEventListeners=q.off,q.addOneTimeEventListener=q.once,q.fireEvent=q.fire,q.hasEventListeners=q.listens;var X=H.extend(q);function D(a,c,p){this.x=p?Math.round(a):a,this.y=p?Math.round(c):c}var G=Math.trunc||function(a){return a>0?Math.floor(a):Math.ceil(a)};D.prototype={clone:function(){return new D(this.x,this.y)},add:function(a){return this.clone()._add(V(a))},_add:function(a){return this.x+=a.x,this.y+=a.y,this},subtract:function(a){return this.clone()._subtract(V(a))},_subtract:function(a){return this.x-=a.x,this.y-=a.y,this},divideBy:function(a){return this.clone()._divideBy(a)},_divideBy:function(a){return this.x/=a,this.y/=a,this},multiplyBy:function(a){return this.clone()._multiplyBy(a)},_multiplyBy:function(a){return this.x*=a,this.y*=a,this},scaleBy:function(a){return new D(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new D(this.x/a.x,this.y/a.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=G(this.x),this.y=G(this.y),this},distanceTo:function(a){a=V(a);var c=a.x-this.x,p=a.y-this.y;return Math.sqrt(c*c+p*p)},equals:function(a){return a=V(a),a.x===this.x&&a.y===this.y},contains:function(a){return a=V(a),Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function V(a,c,p){return a instanceof D?a:w(a)?new D(a[0],a[1]):a==null?a:typeof a=="object"&&"x"in a&&"y"in a?new D(a.x,a.y):new D(a,c,p)}function te(a,c){if(a)for(var p=c?[a,c]:a,g=0,O=p.length;g<O;g++)this.extend(p[g])}te.prototype={extend:function(a){var c,p;if(!a)return this;if(a instanceof D||typeof a[0]=="number"||"x"in a)c=p=V(a);else if(a=J(a),c=a.min,p=a.max,!c||!p)return this;return!this.min&&!this.max?(this.min=c.clone(),this.max=p.clone()):(this.min.x=Math.min(c.x,this.min.x),this.max.x=Math.max(p.x,this.max.x),this.min.y=Math.min(c.y,this.min.y),this.max.y=Math.max(p.y,this.max.y)),this},getCenter:function(a){return V((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,a)},getBottomLeft:function(){return V(this.min.x,this.max.y)},getTopRight:function(){return V(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(a){var c,p;return typeof a[0]=="number"||a instanceof D?a=V(a):a=J(a),a instanceof te?(c=a.min,p=a.max):c=p=a,c.x>=this.min.x&&p.x<=this.max.x&&c.y>=this.min.y&&p.y<=this.max.y},intersects:function(a){a=J(a);var c=this.min,p=this.max,g=a.min,O=a.max,k=O.x>=c.x&&g.x<=p.x,N=O.y>=c.y&&g.y<=p.y;return k&&N},overlaps:function(a){a=J(a);var c=this.min,p=this.max,g=a.min,O=a.max,k=O.x>c.x&&g.x<p.x,N=O.y>c.y&&g.y<p.y;return k&&N},isValid:function(){return!!(this.min&&this.max)},pad:function(a){var c=this.min,p=this.max,g=Math.abs(c.x-p.x)*a,O=Math.abs(c.y-p.y)*a;return J(V(c.x-g,c.y-O),V(p.x+g,p.y+O))},equals:function(a){return a?(a=J(a),this.min.equals(a.getTopLeft())&&this.max.equals(a.getBottomRight())):!1}};function J(a,c){return!a||a instanceof te?a:new te(a,c)}function ae(a,c){if(a)for(var p=c?[a,c]:a,g=0,O=p.length;g<O;g++)this.extend(p[g])}ae.prototype={extend:function(a){var c=this._southWest,p=this._northEast,g,O;if(a instanceof de)g=a,O=a;else if(a instanceof ae){if(g=a._southWest,O=a._northEast,!g||!O)return this}else return a?this.extend(fe(a)||he(a)):this;return!c&&!p?(this._southWest=new de(g.lat,g.lng),this._northEast=new de(O.lat,O.lng)):(c.lat=Math.min(g.lat,c.lat),c.lng=Math.min(g.lng,c.lng),p.lat=Math.max(O.lat,p.lat),p.lng=Math.max(O.lng,p.lng)),this},pad:function(a){var c=this._southWest,p=this._northEast,g=Math.abs(c.lat-p.lat)*a,O=Math.abs(c.lng-p.lng)*a;return new ae(new de(c.lat-g,c.lng-O),new de(p.lat+g,p.lng+O))},getCenter:function(){return new de((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new de(this.getNorth(),this.getWest())},getSouthEast:function(){return new de(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(a){typeof a[0]=="number"||a instanceof de||"lat"in a?a=fe(a):a=he(a);var c=this._southWest,p=this._northEast,g,O;return a instanceof ae?(g=a.getSouthWest(),O=a.getNorthEast()):g=O=a,g.lat>=c.lat&&O.lat<=p.lat&&g.lng>=c.lng&&O.lng<=p.lng},intersects:function(a){a=he(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),O=a.getNorthEast(),k=O.lat>=c.lat&&g.lat<=p.lat,N=O.lng>=c.lng&&g.lng<=p.lng;return k&&N},overlaps:function(a){a=he(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),O=a.getNorthEast(),k=O.lat>c.lat&&g.lat<p.lat,N=O.lng>c.lng&&g.lng<p.lng;return k&&N},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(a,c){return a?(a=he(a),this._southWest.equals(a.getSouthWest(),c)&&this._northEast.equals(a.getNorthEast(),c)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function he(a,c){return a instanceof ae?a:new ae(a,c)}function de(a,c,p){if(isNaN(a)||isNaN(c))throw new Error("Invalid LatLng object: ("+a+", "+c+")");this.lat=+a,this.lng=+c,p!==void 0&&(this.alt=+p)}de.prototype={equals:function(a,c){if(!a)return!1;a=fe(a);var p=Math.max(Math.abs(this.lat-a.lat),Math.abs(this.lng-a.lng));return p<=(c===void 0?1e-9:c)},toString:function(a){return"LatLng("+m(this.lat,a)+", "+m(this.lng,a)+")"},distanceTo:function(a){return Re.distance(this,fe(a))},wrap:function(){return Re.wrapLatLng(this)},toBounds:function(a){var c=180*a/40075017,p=c/Math.cos(Math.PI/180*this.lat);return he([this.lat-c,this.lng-p],[this.lat+c,this.lng+p])},clone:function(){return new de(this.lat,this.lng,this.alt)}};function fe(a,c,p){return a instanceof de?a:w(a)&&typeof a[0]!="object"?a.length===3?new de(a[0],a[1],a[2]):a.length===2?new de(a[0],a[1]):null:a==null?a:typeof a=="object"&&"lat"in a?new de(a.lat,"lng"in a?a.lng:a.lon,a.alt):c===void 0?null:new de(a,c,p)}var Fe={latLngToPoint:function(a,c){var p=this.projection.project(a),g=this.scale(c);return this.transformation._transform(p,g)},pointToLatLng:function(a,c){var p=this.scale(c),g=this.transformation.untransform(a,p);return this.projection.unproject(g)},project:function(a){return this.projection.project(a)},unproject:function(a){return this.projection.unproject(a)},scale:function(a){return 256*Math.pow(2,a)},zoom:function(a){return Math.log(a/256)/Math.LN2},getProjectedBounds:function(a){if(this.infinite)return null;var c=this.projection.bounds,p=this.scale(a),g=this.transformation.transform(c.min,p),O=this.transformation.transform(c.max,p);return new te(g,O)},infinite:!1,wrapLatLng:function(a){var c=this.wrapLng?h(a.lng,this.wrapLng,!0):a.lng,p=this.wrapLat?h(a.lat,this.wrapLat,!0):a.lat,g=a.alt;return new de(p,c,g)},wrapLatLngBounds:function(a){var c=a.getCenter(),p=this.wrapLatLng(c),g=c.lat-p.lat,O=c.lng-p.lng;if(g===0&&O===0)return a;var k=a.getSouthWest(),N=a.getNorthEast(),F=new de(k.lat-g,k.lng-O),W=new de(N.lat-g,N.lng-O);return new ae(F,W)}},Re=i({},Fe,{wrapLng:[-180,180],R:6371e3,distance:function(a,c){var p=Math.PI/180,g=a.lat*p,O=c.lat*p,k=Math.sin((c.lat-a.lat)*p/2),N=Math.sin((c.lng-a.lng)*p/2),F=k*k+Math.cos(g)*Math.cos(O)*N*N,W=2*Math.atan2(Math.sqrt(F),Math.sqrt(1-F));return this.R*W}}),oe=6378137,ve={R:oe,MAX_LATITUDE:85.0511287798,project:function(a){var c=Math.PI/180,p=this.MAX_LATITUDE,g=Math.max(Math.min(p,a.lat),-p),O=Math.sin(g*c);return new D(this.R*a.lng*c,this.R*Math.log((1+O)/(1-O))/2)},unproject:function(a){var c=180/Math.PI;return new de((2*Math.atan(Math.exp(a.y/this.R))-Math.PI/2)*c,a.x*c/this.R)},bounds:function(){var a=oe*Math.PI;return new te([-a,-a],[a,a])}()};function U(a,c,p,g){if(w(a)){this._a=a[0],this._b=a[1],this._c=a[2],this._d=a[3];return}this._a=a,this._b=c,this._c=p,this._d=g}U.prototype={transform:function(a,c){return this._transform(a.clone(),c)},_transform:function(a,c){return c=c||1,a.x=c*(this._a*a.x+this._b),a.y=c*(this._c*a.y+this._d),a},untransform:function(a,c){return c=c||1,new D((a.x/c-this._b)/this._a,(a.y/c-this._d)/this._c)}};function Z(a,c,p,g){return new U(a,c,p,g)}var me=i({},Re,{code:"EPSG:3857",projection:ve,transformation:function(){var a=.5/(Math.PI*ve.R);return Z(a,.5,-a,.5)}()}),ce=i({},me,{code:"EPSG:900913"});function Te(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function _e(a,c){var p="",g,O,k,N,F,W;for(g=0,k=a.length;g<k;g++){for(F=a[g],O=0,N=F.length;O<N;O++)W=F[O],p+=(O?"L":"M")+W.x+" "+W.y;p+=c?pe.svg?"z":"x":""}return p||"M0 0"}var Ce=document.documentElement.style,nt="ActiveXObject"in window,At=nt&&!document.addEventListener,Wt="msLaunchUri"in navigator&&!("documentMode"in document),ut=yn("webkit"),Nt=yn("android"),gn=yn("android 2")||yn("android 3"),Jn=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),yr=Nt&&yn("Google")&&Jn<537&&!("AudioNode"in window),xi=!!window.opera,Qs=!Wt&&yn("chrome"),Js=yn("gecko")&&!ut&&!xi&&!nt,Rc=!Qs&&yn("safari"),el=yn("phantom"),tl="OTransition"in Ce,zc=navigator.platform.indexOf("Win")===0,nl=nt&&"transition"in Ce,oa="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!gn,rl="MozPerspective"in Ce,Bc=!window.L_DISABLE_3D&&(nl||oa||rl)&&!tl&&!el,_i=typeof orientation<"u"||yn("mobile"),Fc=_i&&ut,Vc=_i&&oa,il=!window.PointerEvent&&window.MSPointerEvent,ol=!!(window.PointerEvent||il),al="ontouchstart"in window||!!window.TouchEvent,Uc=!window.L_NO_TOUCH&&(al||ol),Wc=_i&&xi,Hc=_i&&Js,Zc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Gc=function(){var a=!1;try{var c=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",d,c),window.removeEventListener("testPassiveEventSupport",d,c)}catch{}return a}(),Kc=function(){return!!document.createElement("canvas").getContext}(),aa=!!(document.createElementNS&&Te("svg").createSVGRect),qc=!!aa&&function(){var a=document.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Xc=!aa&&function(){try{var a=document.createElement("div");a.innerHTML='<v:shape adj="1"/>';var c=a.firstChild;return c.style.behavior="url(#default#VML)",c&&typeof c.adj=="object"}catch{return!1}}(),Yc=navigator.platform.indexOf("Mac")===0,Qc=navigator.platform.indexOf("Linux")===0;function yn(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var pe={ie:nt,ielt9:At,edge:Wt,webkit:ut,android:Nt,android23:gn,androidStock:yr,opera:xi,chrome:Qs,gecko:Js,safari:Rc,phantom:el,opera12:tl,win:zc,ie3d:nl,webkit3d:oa,gecko3d:rl,any3d:Bc,mobile:_i,mobileWebkit:Fc,mobileWebkit3d:Vc,msPointer:il,pointer:ol,touch:Uc,touchNative:al,mobileOpera:Wc,mobileGecko:Hc,retina:Zc,passiveEvents:Gc,canvas:Kc,svg:aa,vml:Xc,inlineSvg:qc,mac:Yc,linux:Qc},sl=pe.msPointer?"MSPointerDown":"pointerdown",ll=pe.msPointer?"MSPointerMove":"pointermove",ul=pe.msPointer?"MSPointerUp":"pointerup",cl=pe.msPointer?"MSPointerCancel":"pointercancel",sa={touchstart:sl,touchmove:ll,touchend:ul,touchcancel:cl},fl={touchstart:of,touchmove:so,touchend:so,touchcancel:so},Dr={},hl=!1;function Jc(a,c,p){return c==="touchstart"&&rf(),fl[c]?(p=fl[c].bind(this,p),a.addEventListener(sa[c],p,!1),p):(console.warn("wrong event specified:",c),d)}function ef(a,c,p){if(!sa[c]){console.warn("wrong event specified:",c);return}a.removeEventListener(sa[c],p,!1)}function tf(a){Dr[a.pointerId]=a}function nf(a){Dr[a.pointerId]&&(Dr[a.pointerId]=a)}function dl(a){delete Dr[a.pointerId]}function rf(){hl||(document.addEventListener(sl,tf,!0),document.addEventListener(ll,nf,!0),document.addEventListener(ul,dl,!0),document.addEventListener(cl,dl,!0),hl=!0)}function so(a,c){if(c.pointerType!==(c.MSPOINTER_TYPE_MOUSE||"mouse")){c.touches=[];for(var p in Dr)c.touches.push(Dr[p]);c.changedTouches=[c],a(c)}}function of(a,c){c.MSPOINTER_TYPE_TOUCH&&c.pointerType===c.MSPOINTER_TYPE_TOUCH&&Dt(c),so(a,c)}function af(a){var c={},p,g;for(g in a)p=a[g],c[g]=p&&p.bind?p.bind(a):p;return a=c,c.type="dblclick",c.detail=2,c.isTrusted=!1,c._simulated=!0,c}var sf=200;function lf(a,c){a.addEventListener("dblclick",c);var p=0,g;function O(k){if(k.detail!==1){g=k.detail;return}if(!(k.pointerType==="mouse"||k.sourceCapabilities&&!k.sourceCapabilities.firesTouchEvents)){var N=d1(k);if(!(N.some(function(W){return W instanceof HTMLLabelElement&&W.attributes.for})&&!N.some(function(W){return W instanceof HTMLInputElement||W instanceof HTMLSelectElement}))){var F=Date.now();F-p<=sf?(g++,g===2&&c(af(k))):g=1,p=F}}}return a.addEventListener("click",O),{dblclick:c,simDblclick:O}}function uf(a,c){a.removeEventListener("dblclick",c.dblclick),a.removeEventListener("click",c.simDblclick)}var la=It(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bi=It(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),pl=bi==="webkitTransition"||bi==="OTransition"?bi+"End":"transitionend";function ml(a){return typeof a=="string"?document.getElementById(a):a}function wi(a,c){var p=a.style[c]||a.currentStyle&&a.currentStyle[c];if((!p||p==="auto")&&document.defaultView){var g=document.defaultView.getComputedStyle(a,null);p=g?g[c]:null}return p==="auto"?null:p}function Me(a,c,p){var g=document.createElement(a);return g.className=c||"",p&&p.appendChild(g),g}function He(a){var c=a.parentNode;c&&c.removeChild(a)}function lo(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function Rr(a){var c=a.parentNode;c&&c.lastChild!==a&&c.appendChild(a)}function zr(a){var c=a.parentNode;c&&c.firstChild!==a&&c.insertBefore(a,c.firstChild)}function ua(a,c){if(a.classList!==void 0)return a.classList.contains(c);var p=Et(a);return p.length>0&&new RegExp("(^|\\s)"+c+"(\\s|$)").test(p)}function be(a,c){if(a.classList!==void 0)for(var p=_(c),g=0,O=p.length;g<O;g++)a.classList.add(p[g]);else if(!ua(a,c)){var k=Et(a);_t(a,(k?k+" ":"")+c)}}function ne(a,c){a.classList!==void 0?a.classList.remove(c):_t(a,v((" "+Et(a)+" ").replace(" "+c+" "," ")))}function _t(a,c){a.className.baseVal===void 0?a.className=c:a.className.baseVal=c}function Et(a){return a.correspondingElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function dt(a,c){"opacity"in a.style?a.style.opacity=c:"filter"in a.style&&kt(a,c)}function kt(a,c){var p=!1,g="DXImageTransform.Microsoft.Alpha";try{p=a.filters.item(g)}catch{if(c===1)return}c=Math.round(c*100),p?(p.Enabled=c!==100,p.Opacity=c):a.style.filter+=" progid:"+g+"(opacity="+c+")"}function It(a){for(var c=document.documentElement.style,p=0;p<a.length;p++)if(a[p]in c)return a[p];return!1}function rt(a,c,p){var g=c||new D(0,0);a.style[la]=(pe.ie3d?"translate("+g.x+"px,"+g.y+"px)":"translate3d("+g.x+"px,"+g.y+"px,0)")+(p?" scale("+p+")":"")}function Ie(a,c){a._leaflet_pos=c,pe.any3d?rt(a,c):(a.style.left=c.x+"px",a.style.top=c.y+"px")}function xn(a){return a._leaflet_pos||new D(0,0)}var er,Ht,tr;if("onselectstart"in document)er=function(){we(window,"selectstart",Dt)},Ht=function(){Ze(window,"selectstart",Dt)};else{var jn=It(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);er=function(){if(jn){var a=document.documentElement.style;tr=a[jn],a[jn]="none"}},Ht=function(){jn&&(document.documentElement.style[jn]=tr,tr=void 0)}}function xr(){we(window,"dragstart",Dt)}function uo(){Ze(window,"dragstart",Dt)}var co,fo;function ca(a){for(;a.tabIndex===-1;)a=a.parentNode;a.style&&(ho(),co=a,fo=a.style.outlineStyle,a.style.outlineStyle="none",we(window,"keydown",ho))}function ho(){co&&(co.style.outlineStyle=fo,co=void 0,fo=void 0,Ze(window,"keydown",ho))}function f1(a){do a=a.parentNode;while((!a.offsetWidth||!a.offsetHeight)&&a!==document.body);return a}function am(a){var c=a.getBoundingClientRect();return{x:c.width/a.offsetWidth||1,y:c.height/a.offsetHeight||1,boundingClientRect:c}}var J$={__proto__:null,TRANSFORM:la,TRANSITION:bi,TRANSITION_END:pl,get:ml,getStyle:wi,create:Me,remove:He,empty:lo,toFront:Rr,toBack:zr,hasClass:ua,addClass:be,removeClass:ne,setClass:_t,getClass:Et,setOpacity:dt,testProp:It,setTransform:rt,setPosition:Ie,getPosition:xn,get disableTextSelection(){return er},get enableTextSelection(){return Ht},disableImageDrag:xr,enableImageDrag:uo,preventOutline:ca,restoreOutline:ho,getSizedParentNode:f1,getScale:am};function we(a,c,p,g){if(c&&typeof c=="object")for(var O in c)lm(a,O,c[O],p);else{c=_(c);for(var k=0,N=c.length;k<N;k++)lm(a,c[k],p,g)}return this}var _r="_leaflet_events";function Ze(a,c,p,g){if(arguments.length===1)h1(a),delete a[_r];else if(c&&typeof c=="object")for(var O in c)um(a,O,c[O],p);else if(c=_(c),arguments.length===2)h1(a,function(F){return E(c,F)!==-1});else for(var k=0,N=c.length;k<N;k++)um(a,c[k],p,g);return this}function h1(a,c){for(var p in a[_r]){var g=p.split(/\d/)[0];(!c||c(g))&&um(a,g,null,null,p)}}var sm={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function lm(a,c,p,g){var O=c+u(p)+(g?"_"+u(g):"");if(a[_r]&&a[_r][O])return this;var k=function(F){return p.call(g||a,F||window.event)},N=k;!pe.touchNative&&pe.pointer&&c.indexOf("touch")===0?k=Jc(a,c,k):pe.touch&&c==="dblclick"?k=lf(a,k):"addEventListener"in a?c==="touchstart"||c==="touchmove"||c==="wheel"||c==="mousewheel"?a.addEventListener(sm[c]||c,k,pe.passiveEvents?{passive:!1}:!1):c==="mouseenter"||c==="mouseleave"?(k=function(F){F=F||window.event,fm(a,F)&&N(F)},a.addEventListener(sm[c],k,!1)):a.addEventListener(c,N,!1):a.attachEvent("on"+c,k),a[_r]=a[_r]||{},a[_r][O]=k}function um(a,c,p,g,O){O=O||c+u(p)+(g?"_"+u(g):"");var k=a[_r]&&a[_r][O];if(!k)return this;!pe.touchNative&&pe.pointer&&c.indexOf("touch")===0?ef(a,c,k):pe.touch&&c==="dblclick"?uf(a,k):"removeEventListener"in a?a.removeEventListener(sm[c]||c,k,!1):a.detachEvent("on"+c,k),a[_r][O]=null}function po(a){return a.stopPropagation?a.stopPropagation():a.originalEvent?a.originalEvent._stopped=!0:a.cancelBubble=!0,this}function cm(a){return lm(a,"wheel",po),this}function vl(a){return we(a,"mousedown touchstart dblclick contextmenu",po),a._leaflet_disable_click=!0,this}function Dt(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,this}function mo(a){return Dt(a),po(a),this}function d1(a){if(a.composedPath)return a.composedPath();for(var c=[],p=a.target;p;)c.push(p),p=p.parentNode;return c}function p1(a,c){if(!c)return new D(a.clientX,a.clientY);var p=am(c),g=p.boundingClientRect;return new D((a.clientX-g.left)/p.x-c.clientLeft,(a.clientY-g.top)/p.y-c.clientTop)}var eL=pe.linux&&pe.chrome?window.devicePixelRatio:pe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function m1(a){return pe.edge?a.wheelDeltaY/2:a.deltaY&&a.deltaMode===0?-a.deltaY/eL:a.deltaY&&a.deltaMode===1?-a.deltaY*20:a.deltaY&&a.deltaMode===2?-a.deltaY*60:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?-a.detail*20:a.detail?a.detail/-32765*60:0}function fm(a,c){var p=c.relatedTarget;if(!p)return!0;try{for(;p&&p!==a;)p=p.parentNode}catch{return!1}return p!==a}var tL={__proto__:null,on:we,off:Ze,stopPropagation:po,disableScrollPropagation:cm,disableClickPropagation:vl,preventDefault:Dt,stop:mo,getPropagationPath:d1,getMousePosition:p1,getWheelDelta:m1,isExternalTarget:fm,addListener:we,removeListener:Ze},v1=X.extend({run:function(a,c,p,g){this.stop(),this._el=a,this._inProgress=!0,this._duration=p||.25,this._easeOutPower=1/Math.max(g||.5,.2),this._startPos=xn(a),this._offset=c.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=B(this._animate,this),this._step()},_step:function(a){var c=+new Date-this._startTime,p=this._duration*1e3;c<p?this._runFrame(this._easeOut(c/p),a):(this._runFrame(1),this._complete())},_runFrame:function(a,c){var p=this._startPos.add(this._offset.multiplyBy(a));c&&p._round(),Ie(this._el,p),this.fire("step")},_complete:function(){R(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(a){return 1-Math.pow(1-a,this._easeOutPower)}}),je=X.extend({options:{crs:me,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(a,c){c=x(this,c),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(a),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),c.maxBounds&&this.setMaxBounds(c.maxBounds),c.zoom!==void 0&&(this._zoom=this._limitZoom(c.zoom)),c.center&&c.zoom!==void 0&&this.setView(fe(c.center),c.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=bi&&pe.any3d&&!pe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),we(this._proxy,pl,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(a,c,p){if(c=c===void 0?this._zoom:this._limitZoom(c),a=this._limitCenter(fe(a),c,this.options.maxBounds),p=p||{},this._stop(),this._loaded&&!p.reset&&p!==!0){p.animate!==void 0&&(p.zoom=i({animate:p.animate},p.zoom),p.pan=i({animate:p.animate,duration:p.duration},p.pan));var g=this._zoom!==c?this._tryAnimatedZoom&&this._tryAnimatedZoom(a,c,p.zoom):this._tryAnimatedPan(a,p.pan);if(g)return clearTimeout(this._sizeTimer),this}return this._resetView(a,c,p.pan&&p.pan.noMoveStart),this},setZoom:function(a,c){return this._loaded?this.setView(this.getCenter(),a,{zoom:c}):(this._zoom=a,this)},zoomIn:function(a,c){return a=a||(pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+a,c)},zoomOut:function(a,c){return a=a||(pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-a,c)},setZoomAround:function(a,c,p){var g=this.getZoomScale(c),O=this.getSize().divideBy(2),k=a instanceof D?a:this.latLngToContainerPoint(a),N=k.subtract(O).multiplyBy(1-1/g),F=this.containerPointToLatLng(O.add(N));return this.setView(F,c,{zoom:p})},_getBoundsCenterZoom:function(a,c){c=c||{},a=a.getBounds?a.getBounds():he(a);var p=V(c.paddingTopLeft||c.padding||[0,0]),g=V(c.paddingBottomRight||c.padding||[0,0]),O=this.getBoundsZoom(a,!1,p.add(g));if(O=typeof c.maxZoom=="number"?Math.min(c.maxZoom,O):O,O===1/0)return{center:a.getCenter(),zoom:O};var k=g.subtract(p).divideBy(2),N=this.project(a.getSouthWest(),O),F=this.project(a.getNorthEast(),O),W=this.unproject(N.add(F).divideBy(2).add(k),O);return{center:W,zoom:O}},fitBounds:function(a,c){if(a=he(a),!a.isValid())throw new Error("Bounds are not valid.");var p=this._getBoundsCenterZoom(a,c);return this.setView(p.center,p.zoom,c)},fitWorld:function(a){return this.fitBounds([[-90,-180],[90,180]],a)},panTo:function(a,c){return this.setView(a,this._zoom,{pan:c})},panBy:function(a,c){if(a=V(a).round(),c=c||{},!a.x&&!a.y)return this.fire("moveend");if(c.animate!==!0&&!this.getSize().contains(a))return this._resetView(this.unproject(this.project(this.getCenter()).add(a)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new v1,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),c.noMoveStart||this.fire("movestart"),c.animate!==!1){be(this._mapPane,"leaflet-pan-anim");var p=this._getMapPanePos().subtract(a).round();this._panAnim.run(this._mapPane,p,c.duration||.25,c.easeLinearity)}else this._rawPanBy(a),this.fire("move").fire("moveend");return this},flyTo:function(a,c,p){if(p=p||{},p.animate===!1||!pe.any3d)return this.setView(a,c,p);this._stop();var g=this.project(this.getCenter()),O=this.project(a),k=this.getSize(),N=this._zoom;a=fe(a),c=c===void 0?N:c;var F=Math.max(k.x,k.y),W=F*this.getZoomScale(N,c),ee=O.distanceTo(g)||1,se=1.42,xe=se*se;function Oe(vt){var bf=vt?-1:1,UL=vt?W:F,WL=W*W-F*F+bf*xe*xe*ee*ee,HL=2*UL*xe*ee,wm=WL/HL,X1=Math.sqrt(wm*wm+1)-wm,ZL=X1<1e-9?-18:Math.log(X1);return ZL}function tn(vt){return(Math.exp(vt)-Math.exp(-vt))/2}function Ct(vt){return(Math.exp(vt)+Math.exp(-vt))/2}function Ln(vt){return tn(vt)/Ct(vt)}var ln=Oe(0);function va(vt){return F*(Ct(ln)/Ct(ln+se*vt))}function zL(vt){return F*(Ct(ln)*Ln(ln+se*vt)-tn(ln))/xe}function BL(vt){return 1-Math.pow(1-vt,1.5)}var FL=Date.now(),K1=(Oe(1)-ln)/se,VL=p.duration?1e3*p.duration:1e3*K1*.8;function q1(){var vt=(Date.now()-FL)/VL,bf=BL(vt)*K1;vt<=1?(this._flyToFrame=B(q1,this),this._move(this.unproject(g.add(O.subtract(g).multiplyBy(zL(bf)/ee)),N),this.getScaleZoom(F/va(bf),N),{flyTo:!0})):this._move(a,c)._moveEnd(!0)}return this._moveStart(!0,p.noMoveStart),q1.call(this),this},flyToBounds:function(a,c){var p=this._getBoundsCenterZoom(a,c);return this.flyTo(p.center,p.zoom,c)},setMaxBounds:function(a){return a=he(a),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),a.isValid()?(this.options.maxBounds=a,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(a){var c=this.options.minZoom;return this.options.minZoom=a,this._loaded&&c!==a&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(a):this},setMaxZoom:function(a){var c=this.options.maxZoom;return this.options.maxZoom=a,this._loaded&&c!==a&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,c){this._enforcingBounds=!0;var p=this.getCenter(),g=this._limitCenter(p,this._zoom,he(a));return p.equals(g)||this.panTo(g,c),this._enforcingBounds=!1,this},panInside:function(a,c){c=c||{};var p=V(c.paddingTopLeft||c.padding||[0,0]),g=V(c.paddingBottomRight||c.padding||[0,0]),O=this.project(this.getCenter()),k=this.project(a),N=this.getPixelBounds(),F=J([N.min.add(p),N.max.subtract(g)]),W=F.getSize();if(!F.contains(k)){this._enforcingBounds=!0;var ee=k.subtract(F.getCenter()),se=F.extend(k).getSize().subtract(W);O.x+=ee.x<0?-se.x:se.x,O.y+=ee.y<0?-se.y:se.y,this.panTo(this.unproject(O),c),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=i({animate:!1,pan:!0},a===!0?{animate:!0}:a);var c=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var p=this.getSize(),g=c.divideBy(2).round(),O=p.divideBy(2).round(),k=g.subtract(O);return!k.x&&!k.y?this:(a.animate&&a.pan?this.panBy(k):(a.pan&&this._rawPanBy(k),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:c,newSize:p}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(a){if(a=this._locateOptions=i({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=s(this._handleGeolocationResponse,this),p=s(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,p,a):navigator.geolocation.getCurrentPosition(c,p,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var c=a.code,p=a.message||(c===1?"permission denied":c===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:c,message:"Geolocation error: "+p+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var c=a.coords.latitude,p=a.coords.longitude,g=new de(c,p),O=g.toBounds(a.coords.accuracy*2),k=this._locateOptions;if(k.setView){var N=this.getBoundsZoom(O);this.setView(g,k.maxZoom?Math.min(N,k.maxZoom):N)}var F={latlng:g,bounds:O,timestamp:a.timestamp};for(var W in a.coords)typeof a.coords[W]=="number"&&(F[W]=a.coords[W]);this.fire("locationfound",F)}},addHandler:function(a,c){if(!c)return this;var p=this[a]=new c(this);return this._handlers.push(p),this.options[a]&&p.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),He(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(R(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var a;for(a in this._layers)this._layers[a].remove();for(a in this._panes)He(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,c){var p="leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),g=Me("div",p,c||this._mapPane);return a&&(this._panes[a]=g),g},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),c=this.unproject(a.getBottomLeft()),p=this.unproject(a.getTopRight());return new ae(c,p)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,c,p){a=he(a),p=V(p||[0,0]);var g=this.getZoom()||0,O=this.getMinZoom(),k=this.getMaxZoom(),N=a.getNorthWest(),F=a.getSouthEast(),W=this.getSize().subtract(p),ee=J(this.project(F,g),this.project(N,g)).getSize(),se=pe.any3d?this.options.zoomSnap:1,xe=W.x/ee.x,Oe=W.y/ee.y,tn=c?Math.max(xe,Oe):Math.min(xe,Oe);return g=this.getScaleZoom(tn,g),se&&(g=Math.round(g/(se/100))*(se/100),g=c?Math.ceil(g/se)*se:Math.floor(g/se)*se),Math.max(O,Math.min(k,g))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new D(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(a,c){var p=this._getTopLeftPoint(a,c);return new te(p,p.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(a===void 0?this.getZoom():a)},getPane:function(a){return typeof a=="string"?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,c){var p=this.options.crs;return c=c===void 0?this._zoom:c,p.scale(a)/p.scale(c)},getScaleZoom:function(a,c){var p=this.options.crs;c=c===void 0?this._zoom:c;var g=p.zoom(a*p.scale(c));return isNaN(g)?1/0:g},project:function(a,c){return c=c===void 0?this._zoom:c,this.options.crs.latLngToPoint(fe(a),c)},unproject:function(a,c){return c=c===void 0?this._zoom:c,this.options.crs.pointToLatLng(V(a),c)},layerPointToLatLng:function(a){var c=V(a).add(this.getPixelOrigin());return this.unproject(c)},latLngToLayerPoint:function(a){var c=this.project(fe(a))._round();return c._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(fe(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(he(a))},distance:function(a,c){return this.options.crs.distance(fe(a),fe(c))},containerPointToLayerPoint:function(a){return V(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return V(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var c=this.containerPointToLayerPoint(V(a));return this.layerPointToLatLng(c)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(fe(a)))},mouseEventToContainerPoint:function(a){return p1(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var c=this._container=ml(a);if(c){if(c._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");we(c,"scroll",this._onScroll,this),this._containerId=u(c)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&pe.any3d,be(a,"leaflet-container"+(pe.touch?" leaflet-touch":"")+(pe.retina?" leaflet-retina":"")+(pe.ielt9?" leaflet-oldie":"")+(pe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var c=wi(a,"position");c!=="absolute"&&c!=="relative"&&c!=="fixed"&&c!=="sticky"&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ie(this._mapPane,new D(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(be(a.markerPane,"leaflet-zoom-hide"),be(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,c,p){Ie(this._mapPane,new D(0,0));var g=!this._loaded;this._loaded=!0,c=this._limitZoom(c),this.fire("viewprereset");var O=this._zoom!==c;this._moveStart(O,p)._move(a,c)._moveEnd(O),this.fire("viewreset"),g&&this.fire("load")},_moveStart:function(a,c){return a&&this.fire("zoomstart"),c||this.fire("movestart"),this},_move:function(a,c,p,g){c===void 0&&(c=this._zoom);var O=this._zoom!==c;return this._zoom=c,this._lastCenter=a,this._pixelOrigin=this._getNewPixelOrigin(a),g?p&&p.pinch&&this.fire("zoom",p):((O||p&&p.pinch)&&this.fire("zoom",p),this.fire("move",p)),this},_moveEnd:function(a){return a&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return R(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(a){Ie(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[u(this._container)]=this;var c=a?Ze:we;c(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&c(window,"resize",this._onResize,this),pe.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){R(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,c){for(var p=[],g,O=c==="mouseout"||c==="mouseover",k=a.target||a.srcElement,N=!1;k;){if(g=this._targets[u(k)],g&&(c==="click"||c==="preclick")&&this._draggableMoved(g)){N=!0;break}if(g&&g.listens(c,!0)&&(O&&!fm(k,a)||(p.push(g),O))||k===this._container)break;k=k.parentNode}return!p.length&&!N&&!O&&this.listens(c,!0)&&(p=[this]),p},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var c=a.target||a.srcElement;if(!(!this._loaded||c._leaflet_disable_events||a.type==="click"&&this._isClickDisabled(c))){var p=a.type;p==="mousedown"&&ca(c),this._fireDOMEvent(a,p)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,c,p){if(a.type==="click"){var g=i({},a);g.type="preclick",this._fireDOMEvent(g,g.type,p)}var O=this._findEventTargets(a,c);if(p){for(var k=[],N=0;N<p.length;N++)p[N].listens(c,!0)&&k.push(p[N]);O=k.concat(O)}if(O.length){c==="contextmenu"&&Dt(a);var F=O[0],W={originalEvent:a};if(a.type!=="keypress"&&a.type!=="keydown"&&a.type!=="keyup"){var ee=F.getLatLng&&(!F._radius||F._radius<=10);W.containerPoint=ee?this.latLngToContainerPoint(F.getLatLng()):this.mouseEventToContainerPoint(a),W.layerPoint=this.containerPointToLayerPoint(W.containerPoint),W.latlng=ee?F.getLatLng():this.layerPointToLatLng(W.layerPoint)}for(N=0;N<O.length;N++)if(O[N].fire(c,W,!0),W.originalEvent._stopped||O[N].options.bubblingMouseEvents===!1&&E(this._mouseEvents,c)!==-1)return}},_draggableMoved:function(a){return a=a.dragging&&a.dragging.enabled()?a:this,a.dragging&&a.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var a=0,c=this._handlers.length;a<c;a++)this._handlers[a].disable()},whenReady:function(a,c){return this._loaded?a.call(c||this,{target:this}):this.on("load",a,c),this},_getMapPanePos:function(){return xn(this._mapPane)||new D(0,0)},_moved:function(){var a=this._getMapPanePos();return a&&!a.equals([0,0])},_getTopLeftPoint:function(a,c){var p=a&&c!==void 0?this._getNewPixelOrigin(a,c):this.getPixelOrigin();return p.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(a,c){var p=this.getSize()._divideBy(2);return this.project(a,c)._subtract(p)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(a,c,p){var g=this._getNewPixelOrigin(p,c);return this.project(a,c)._subtract(g)},_latLngBoundsToNewLayerBounds:function(a,c,p){var g=this._getNewPixelOrigin(p,c);return J([this.project(a.getSouthWest(),c)._subtract(g),this.project(a.getNorthWest(),c)._subtract(g),this.project(a.getSouthEast(),c)._subtract(g),this.project(a.getNorthEast(),c)._subtract(g)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(a){return this.latLngToLayerPoint(a).subtract(this._getCenterLayerPoint())},_limitCenter:function(a,c,p){if(!p)return a;var g=this.project(a,c),O=this.getSize().divideBy(2),k=new te(g.subtract(O),g.add(O)),N=this._getBoundsOffset(k,p,c);return Math.abs(N.x)<=1&&Math.abs(N.y)<=1?a:this.unproject(g.add(N),c)},_limitOffset:function(a,c){if(!c)return a;var p=this.getPixelBounds(),g=new te(p.min.add(a),p.max.add(a));return a.add(this._getBoundsOffset(g,c))},_getBoundsOffset:function(a,c,p){var g=J(this.project(c.getNorthEast(),p),this.project(c.getSouthWest(),p)),O=g.min.subtract(a.min),k=g.max.subtract(a.max),N=this._rebound(O.x,-k.x),F=this._rebound(O.y,-k.y);return new D(N,F)},_rebound:function(a,c){return a+c>0?Math.round(a-c)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(c))},_limitZoom:function(a){var c=this.getMinZoom(),p=this.getMaxZoom(),g=pe.any3d?this.options.zoomSnap:1;return g&&(a=Math.round(a/g)*g),Math.max(c,Math.min(p,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ne(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,c){var p=this._getCenterOffset(a)._trunc();return(c&&c.animate)!==!0&&!this.getSize().contains(p)?!1:(this.panBy(p,c),!0)},_createAnimProxy:function(){var a=this._proxy=Me("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(c){var p=la,g=this._proxy.style[p];rt(this._proxy,this.project(c.center,c.zoom),this.getZoomScale(c.zoom,1)),g===this._proxy.style[p]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){He(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),c=this.getZoom();rt(this._proxy,this.project(a,c),this.getZoomScale(c,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,c,p){if(this._animatingZoom)return!0;if(p=p||{},!this._zoomAnimated||p.animate===!1||this._nothingToAnimate()||Math.abs(c-this._zoom)>this.options.zoomAnimationThreshold)return!1;var g=this.getZoomScale(c),O=this._getCenterOffset(a)._divideBy(1-1/g);return p.animate!==!0&&!this.getSize().contains(O)?!1:(B(function(){this._moveStart(!0,p.noMoveStart||!1)._animateZoom(a,c,!0)},this),!0)},_animateZoom:function(a,c,p,g){this._mapPane&&(p&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=c,be(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:c,noUpdate:g}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ne(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function nL(a,c){return new je(a,c)}var nr=H.extend({options:{position:"topright"},initialize:function(a){x(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var c=this._map;return c&&c.removeControl(this),this.options.position=a,c&&c.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var c=this._container=this.onAdd(a),p=this.getPosition(),g=a._controlCorners[p];return be(c,"leaflet-control"),p.indexOf("bottom")!==-1?g.insertBefore(c,g.firstChild):g.appendChild(c),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(He(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),gl=function(a){return new nr(a)};je.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},c="leaflet-",p=this._controlContainer=Me("div",c+"control-container",this._container);function g(O,k){var N=c+O+" "+c+k;a[O+k]=Me("div",N,p)}g("top","left"),g("top","right"),g("bottom","left"),g("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)He(this._controlCorners[a]);He(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var g1=nr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,c,p,g){return p<g?-1:g<p?1:0}},initialize:function(a,c,p){x(this,p),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var g in a)this._addLayer(a[g],g);for(g in c)this._addLayer(c[g],g,!0)},onAdd:function(a){this._initLayout(),this._update(),this._map=a,a.on("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(a){return nr.prototype.addTo.call(this,a),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(a,c){return this._addLayer(a,c),this._map?this._update():this},addOverlay:function(a,c){return this._addLayer(a,c,!0),this._map?this._update():this},removeLayer:function(a){a.off("add remove",this._onLayerChange,this);var c=this._getLayer(u(a));return c&&this._layers.splice(this._layers.indexOf(c),1),this._map?this._update():this},expand:function(){be(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var a=this._map.getSize().y-(this._container.offsetTop+50);return a<this._section.clientHeight?(be(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=a+"px"):ne(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ne(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var a="leaflet-control-layers",c=this._container=Me("div",a),p=this.options.collapsed;c.setAttribute("aria-haspopup",!0),vl(c),cm(c);var g=this._section=Me("section",a+"-list");p&&(this._map.on("click",this.collapse,this),we(c,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var O=this._layersLink=Me("a",a+"-toggle",c);O.href="#",O.title="Layers",O.setAttribute("role","button"),we(O,{keydown:function(k){k.keyCode===13&&this._expandSafely()},click:function(k){Dt(k),this._expandSafely()}},this),p||this.expand(),this._baseLayersList=Me("div",a+"-base",g),this._separator=Me("div",a+"-separator",g),this._overlaysList=Me("div",a+"-overlays",g),c.appendChild(g)},_getLayer:function(a){for(var c=0;c<this._layers.length;c++)if(this._layers[c]&&u(this._layers[c].layer)===a)return this._layers[c]},_addLayer:function(a,c,p){this._map&&a.on("add remove",this._onLayerChange,this),this._layers.push({layer:a,name:c,overlay:p}),this.options.sortLayers&&this._layers.sort(s(function(g,O){return this.options.sortFunction(g.layer,O.layer,g.name,O.name)},this)),this.options.autoZIndex&&a.setZIndex&&(this._lastZIndex++,a.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;lo(this._baseLayersList),lo(this._overlaysList),this._layerControlInputs=[];var a,c,p,g,O=0;for(p=0;p<this._layers.length;p++)g=this._layers[p],this._addItem(g),c=c||g.overlay,a=a||!g.overlay,O+=g.overlay?0:1;return this.options.hideSingleBase&&(a=a&&O>1,this._baseLayersList.style.display=a?"":"none"),this._separator.style.display=c&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var c=this._getLayer(u(a.target)),p=c.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;p&&this._map.fire(p,c)},_createRadioElement:function(a,c){var p='<input type="radio" class="leaflet-control-layers-selector" name="'+a+'"'+(c?' checked="checked"':"")+"/>",g=document.createElement("div");return g.innerHTML=p,g.firstChild},_addItem:function(a){var c=document.createElement("label"),p=this._map.hasLayer(a.layer),g;a.overlay?(g=document.createElement("input"),g.type="checkbox",g.className="leaflet-control-layers-selector",g.defaultChecked=p):g=this._createRadioElement("leaflet-base-layers_"+u(this),p),this._layerControlInputs.push(g),g.layerId=u(a.layer),we(g,"click",this._onInputClick,this);var O=document.createElement("span");O.innerHTML=" "+a.name;var k=document.createElement("span");c.appendChild(k),k.appendChild(g),k.appendChild(O);var N=a.overlay?this._overlaysList:this._baseLayersList;return N.appendChild(c),this._checkDisabledLayers(),c},_onInputClick:function(){if(!this._preventClick){var a=this._layerControlInputs,c,p,g=[],O=[];this._handlingClick=!0;for(var k=a.length-1;k>=0;k--)c=a[k],p=this._getLayer(c.layerId).layer,c.checked?g.push(p):c.checked||O.push(p);for(k=0;k<O.length;k++)this._map.hasLayer(O[k])&&this._map.removeLayer(O[k]);for(k=0;k<g.length;k++)this._map.hasLayer(g[k])||this._map.addLayer(g[k]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var a=this._layerControlInputs,c,p,g=this._map.getZoom(),O=a.length-1;O>=0;O--)c=a[O],p=this._getLayer(c.layerId).layer,c.disabled=p.options.minZoom!==void 0&&g<p.options.minZoom||p.options.maxZoom!==void 0&&g>p.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var a=this._section;this._preventClick=!0,we(a,"click",Dt),this.expand();var c=this;setTimeout(function(){Ze(a,"click",Dt),c._preventClick=!1})}}),rL=function(a,c,p){return new g1(a,c,p)},hm=nr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(a){var c="leaflet-control-zoom",p=Me("div",c+" leaflet-bar"),g=this.options;return this._zoomInButton=this._createButton(g.zoomInText,g.zoomInTitle,c+"-in",p,this._zoomIn),this._zoomOutButton=this._createButton(g.zoomOutText,g.zoomOutTitle,c+"-out",p,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),p},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(a.shiftKey?3:1))},_zoomOut:function(a){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,c,p,g,O){var k=Me("a",p,g);return k.innerHTML=a,k.href="#",k.title=c,k.setAttribute("role","button"),k.setAttribute("aria-label",c),vl(k),we(k,"click",mo),we(k,"click",O,this),we(k,"click",this._refocusOnMap,this),k},_updateDisabled:function(){var a=this._map,c="leaflet-disabled";ne(this._zoomInButton,c),ne(this._zoomOutButton,c),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(be(this._zoomOutButton,c),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(be(this._zoomInButton,c),this._zoomInButton.setAttribute("aria-disabled","true"))}});je.mergeOptions({zoomControl:!0}),je.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new hm,this.addControl(this.zoomControl))});var iL=function(a){return new hm(a)},y1=nr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var c="leaflet-control-scale",p=Me("div",c),g=this.options;return this._addScales(g,c+"-line",p),a.on(g.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),p},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,c,p){a.metric&&(this._mScale=Me("div",c,p)),a.imperial&&(this._iScale=Me("div",c,p))},_update:function(){var a=this._map,c=a.getSize().y/2,p=a.distance(a.containerPointToLatLng([0,c]),a.containerPointToLatLng([this.options.maxWidth,c]));this._updateScales(p)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var c=this._getRoundNum(a),p=c<1e3?c+" m":c/1e3+" km";this._updateScale(this._mScale,p,c/a)},_updateImperial:function(a){var c=a*3.2808399,p,g,O;c>5280?(p=c/5280,g=this._getRoundNum(p),this._updateScale(this._iScale,g+" mi",g/p)):(O=this._getRoundNum(c),this._updateScale(this._iScale,O+" ft",O/c))},_updateScale:function(a,c,p){a.style.width=Math.round(this.options.maxWidth*p)+"px",a.innerHTML=c},_getRoundNum:function(a){var c=Math.pow(10,(Math.floor(a)+"").length-1),p=a/c;return p=p>=10?10:p>=5?5:p>=3?3:p>=2?2:1,c*p}}),oL=function(a){return new y1(a)},aL='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',dm=nr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(pe.inlineSvg?aL+" ":"")+"Leaflet</a>"},initialize:function(a){x(this,a),this._attributions={}},onAdd:function(a){a.attributionControl=this,this._container=Me("div","leaflet-control-attribution"),vl(this._container);for(var c in a._layers)a._layers[c].getAttribution&&this.addAttribution(a._layers[c].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var c in this._attributions)this._attributions[c]&&a.push(c);var p=[];this.options.prefix&&p.push(this.options.prefix),a.length&&p.push(a.join(", ")),this._container.innerHTML=p.join(' <span aria-hidden="true">|</span> ')}}});je.mergeOptions({attributionControl:!0}),je.addInitHook(function(){this.options.attributionControl&&new dm().addTo(this)});var sL=function(a){return new dm(a)};nr.Layers=g1,nr.Zoom=hm,nr.Scale=y1,nr.Attribution=dm,gl.layers=rL,gl.zoom=iL,gl.scale=oL,gl.attribution=sL;var br=H.extend({initialize:function(a){this._map=a},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});br.addTo=function(a,c){return a.addHandler(c,this),this};var lL={Events:q},x1=pe.touch?"touchstart mousedown":"mousedown",Si=X.extend({options:{clickTolerance:3},initialize:function(a,c,p,g){x(this,g),this._element=a,this._dragStartTarget=c||a,this._preventOutline=p},enable:function(){this._enabled||(we(this._dragStartTarget,x1,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Si._dragging===this&&this.finishDrag(!0),Ze(this._dragStartTarget,x1,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!ua(this._element,"leaflet-zoom-anim"))){if(a.touches&&a.touches.length!==1){Si._dragging===this&&this.finishDrag();return}if(!(Si._dragging||a.shiftKey||a.which!==1&&a.button!==1&&!a.touches)&&(Si._dragging=this,this._preventOutline&&ca(this._element),xr(),er(),!this._moving)){this.fire("down");var c=a.touches?a.touches[0]:a,p=f1(this._element);this._startPoint=new D(c.clientX,c.clientY),this._startPos=xn(this._element),this._parentScale=am(p);var g=a.type==="mousedown";we(document,g?"mousemove":"touchmove",this._onMove,this),we(document,g?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(a){if(this._enabled){if(a.touches&&a.touches.length>1){this._moved=!0;return}var c=a.touches&&a.touches.length===1?a.touches[0]:a,p=new D(c.clientX,c.clientY)._subtract(this._startPoint);!p.x&&!p.y||Math.abs(p.x)+Math.abs(p.y)<this.options.clickTolerance||(p.x/=this._parentScale.x,p.y/=this._parentScale.y,Dt(a),this._moved||(this.fire("dragstart"),this._moved=!0,be(document.body,"leaflet-dragging"),this._lastTarget=a.target||a.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),be(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(p),this._moving=!0,this._lastEvent=a,this._updatePosition())}},_updatePosition:function(){var a={originalEvent:this._lastEvent};this.fire("predrag",a),Ie(this._element,this._newPos),this.fire("drag",a)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(a){ne(document.body,"leaflet-dragging"),this._lastTarget&&(ne(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ze(document,"mousemove touchmove",this._onMove,this),Ze(document,"mouseup touchend touchcancel",this._onUp,this),uo(),Ht();var c=this._moved&&this._moving;this._moving=!1,Si._dragging=!1,c&&this.fire("dragend",{noInertia:a,distance:this._newPos.distanceTo(this._startPos)})}});function _1(a,c,p){var g,O=[1,4,2,8],k,N,F,W,ee,se,xe,Oe;for(k=0,se=a.length;k<se;k++)a[k]._code=vo(a[k],c);for(F=0;F<4;F++){for(xe=O[F],g=[],k=0,se=a.length,N=se-1;k<se;N=k++)W=a[k],ee=a[N],W._code&xe?ee._code&xe||(Oe=cf(ee,W,xe,c,p),Oe._code=vo(Oe,c),g.push(Oe)):(ee._code&xe&&(Oe=cf(ee,W,xe,c,p),Oe._code=vo(Oe,c),g.push(Oe)),g.push(W));a=g}return a}function b1(a,c){var p,g,O,k,N,F,W,ee,se;if(!a||a.length===0)throw new Error("latlngs not passed");$n(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var xe=fe([0,0]),Oe=he(a),tn=Oe.getNorthWest().distanceTo(Oe.getSouthWest())*Oe.getNorthEast().distanceTo(Oe.getNorthWest());tn<1700&&(xe=pm(a));var Ct=a.length,Ln=[];for(p=0;p<Ct;p++){var ln=fe(a[p]);Ln.push(c.project(fe([ln.lat-xe.lat,ln.lng-xe.lng])))}for(F=W=ee=0,p=0,g=Ct-1;p<Ct;g=p++)O=Ln[p],k=Ln[g],N=O.y*k.x-k.y*O.x,W+=(O.x+k.x)*N,ee+=(O.y+k.y)*N,F+=N*3;F===0?se=Ln[0]:se=[W/F,ee/F];var va=c.unproject(V(se));return fe([va.lat+xe.lat,va.lng+xe.lng])}function pm(a){for(var c=0,p=0,g=0,O=0;O<a.length;O++){var k=fe(a[O]);c+=k.lat,p+=k.lng,g++}return fe([c/g,p/g])}var uL={__proto__:null,clipPolygon:_1,polygonCenter:b1,centroid:pm};function w1(a,c){if(!c||!a.length)return a.slice();var p=c*c;return a=hL(a,p),a=fL(a,p),a}function S1(a,c,p){return Math.sqrt(yl(a,c,p,!0))}function cL(a,c,p){return yl(a,c,p)}function fL(a,c){var p=a.length,g=typeof Uint8Array<"u"?Uint8Array:Array,O=new g(p);O[0]=O[p-1]=1,mm(a,O,c,0,p-1);var k,N=[];for(k=0;k<p;k++)O[k]&&N.push(a[k]);return N}function mm(a,c,p,g,O){var k=0,N,F,W;for(F=g+1;F<=O-1;F++)W=yl(a[F],a[g],a[O],!0),W>k&&(N=F,k=W);k>p&&(c[N]=1,mm(a,c,p,g,N),mm(a,c,p,N,O))}function hL(a,c){for(var p=[a[0]],g=1,O=0,k=a.length;g<k;g++)dL(a[g],a[O])>c&&(p.push(a[g]),O=g);return O<k-1&&p.push(a[k-1]),p}var P1;function O1(a,c,p,g,O){var k=g?P1:vo(a,p),N=vo(c,p),F,W,ee;for(P1=N;;){if(!(k|N))return[a,c];if(k&N)return!1;F=k||N,W=cf(a,c,F,p,O),ee=vo(W,p),F===k?(a=W,k=ee):(c=W,N=ee)}}function cf(a,c,p,g,O){var k=c.x-a.x,N=c.y-a.y,F=g.min,W=g.max,ee,se;return p&8?(ee=a.x+k*(W.y-a.y)/N,se=W.y):p&4?(ee=a.x+k*(F.y-a.y)/N,se=F.y):p&2?(ee=W.x,se=a.y+N*(W.x-a.x)/k):p&1&&(ee=F.x,se=a.y+N*(F.x-a.x)/k),new D(ee,se,O)}function vo(a,c){var p=0;return a.x<c.min.x?p|=1:a.x>c.max.x&&(p|=2),a.y<c.min.y?p|=4:a.y>c.max.y&&(p|=8),p}function dL(a,c){var p=c.x-a.x,g=c.y-a.y;return p*p+g*g}function yl(a,c,p,g){var O=c.x,k=c.y,N=p.x-O,F=p.y-k,W=N*N+F*F,ee;return W>0&&(ee=((a.x-O)*N+(a.y-k)*F)/W,ee>1?(O=p.x,k=p.y):ee>0&&(O+=N*ee,k+=F*ee)),N=a.x-O,F=a.y-k,g?N*N+F*F:new D(O,k)}function $n(a){return!w(a[0])||typeof a[0][0]!="object"&&typeof a[0][0]<"u"}function T1(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),$n(a)}function A1(a,c){var p,g,O,k,N,F,W,ee;if(!a||a.length===0)throw new Error("latlngs not passed");$n(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var se=fe([0,0]),xe=he(a),Oe=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Oe<1700&&(se=pm(a));var tn=a.length,Ct=[];for(p=0;p<tn;p++){var Ln=fe(a[p]);Ct.push(c.project(fe([Ln.lat-se.lat,Ln.lng-se.lng])))}for(p=0,g=0;p<tn-1;p++)g+=Ct[p].distanceTo(Ct[p+1])/2;if(g===0)ee=Ct[0];else for(p=0,k=0;p<tn-1;p++)if(N=Ct[p],F=Ct[p+1],O=N.distanceTo(F),k+=O,k>g){W=(k-g)/O,ee=[F.x-W*(F.x-N.x),F.y-W*(F.y-N.y)];break}var ln=c.unproject(V(ee));return fe([ln.lat+se.lat,ln.lng+se.lng])}var pL={__proto__:null,simplify:w1,pointToSegmentDistance:S1,closestPointOnSegment:cL,clipSegment:O1,_getEdgeIntersection:cf,_getBitCode:vo,_sqClosestPointOnSegment:yl,isFlat:$n,_flat:T1,polylineCenter:A1},vm={project:function(a){return new D(a.lng,a.lat)},unproject:function(a){return new de(a.y,a.x)},bounds:new te([-180,-90],[180,90])},gm={R:6378137,R_MINOR:6356752314245179e-9,bounds:new te([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(a){var c=Math.PI/180,p=this.R,g=a.lat*c,O=this.R_MINOR/p,k=Math.sqrt(1-O*O),N=k*Math.sin(g),F=Math.tan(Math.PI/4-g/2)/Math.pow((1-N)/(1+N),k/2);return g=-p*Math.log(Math.max(F,1e-10)),new D(a.lng*c*p,g)},unproject:function(a){for(var c=180/Math.PI,p=this.R,g=this.R_MINOR/p,O=Math.sqrt(1-g*g),k=Math.exp(-a.y/p),N=Math.PI/2-2*Math.atan(k),F=0,W=.1,ee;F<15&&Math.abs(W)>1e-7;F++)ee=O*Math.sin(N),ee=Math.pow((1-ee)/(1+ee),O/2),W=Math.PI/2-2*Math.atan(k*ee)-N,N+=W;return new de(N*c,a.x*c/p)}},mL={__proto__:null,LonLat:vm,Mercator:gm,SphericalMercator:ve},vL=i({},Re,{code:"EPSG:3395",projection:gm,transformation:function(){var a=.5/(Math.PI*gm.R);return Z(a,.5,-a,.5)}()}),E1=i({},Re,{code:"EPSG:4326",projection:vm,transformation:Z(1/180,1,-1/180,.5)}),gL=i({},Fe,{projection:vm,transformation:Z(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,c){var p=c.lng-a.lng,g=c.lat-a.lat;return Math.sqrt(p*p+g*g)},infinite:!0});Fe.Earth=Re,Fe.EPSG3395=vL,Fe.EPSG3857=me,Fe.EPSG900913=ce,Fe.EPSG4326=E1,Fe.Simple=gL;var rr=X.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[u(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[u(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var c=a.target;if(c.hasLayer(this)){if(this._map=c,this._zoomAnimated=c._zoomAnimated,this.getEvents){var p=this.getEvents();c.on(p,this),this.once("remove",function(){c.off(p,this)},this)}this.onAdd(c),this.fire("add"),c.fire("layeradd",{layer:this})}}});je.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var c=u(a);return this._layers[c]?this:(this._layers[c]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a),this)},removeLayer:function(a){var c=u(a);return this._layers[c]?(this._loaded&&a.onRemove(this),delete this._layers[c],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return u(a)in this._layers},eachLayer:function(a,c){for(var p in this._layers)a.call(c,this._layers[p]);return this},_addLayers:function(a){a=a?w(a)?a:[a]:[];for(var c=0,p=a.length;c<p;c++)this.addLayer(a[c])},_addZoomLimit:function(a){(!isNaN(a.options.maxZoom)||!isNaN(a.options.minZoom))&&(this._zoomBoundLayers[u(a)]=a,this._updateZoomLevels())},_removeZoomLimit:function(a){var c=u(a);this._zoomBoundLayers[c]&&(delete this._zoomBoundLayers[c],this._updateZoomLevels())},_updateZoomLevels:function(){var a=1/0,c=-1/0,p=this._getZoomSpan();for(var g in this._zoomBoundLayers){var O=this._zoomBoundLayers[g].options;a=O.minZoom===void 0?a:Math.min(a,O.minZoom),c=O.maxZoom===void 0?c:Math.max(c,O.maxZoom)}this._layersMaxZoom=c===-1/0?void 0:c,this._layersMinZoom=a===1/0?void 0:a,p!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var fa=rr.extend({initialize:function(a,c){x(this,c),this._layers={};var p,g;if(a)for(p=0,g=a.length;p<g;p++)this.addLayer(a[p])},addLayer:function(a){var c=this.getLayerId(a);return this._layers[c]=a,this._map&&this._map.addLayer(a),this},removeLayer:function(a){var c=a in this._layers?a:this.getLayerId(a);return this._map&&this._layers[c]&&this._map.removeLayer(this._layers[c]),delete this._layers[c],this},hasLayer:function(a){var c=typeof a=="number"?a:this.getLayerId(a);return c in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(a){var c=Array.prototype.slice.call(arguments,1),p,g;for(p in this._layers)g=this._layers[p],g[a]&&g[a].apply(g,c);return this},onAdd:function(a){this.eachLayer(a.addLayer,a)},onRemove:function(a){this.eachLayer(a.removeLayer,a)},eachLayer:function(a,c){for(var p in this._layers)a.call(c,this._layers[p]);return this},getLayer:function(a){return this._layers[a]},getLayers:function(){var a=[];return this.eachLayer(a.push,a),a},setZIndex:function(a){return this.invoke("setZIndex",a)},getLayerId:function(a){return u(a)}}),yL=function(a,c){return new fa(a,c)},Br=fa.extend({addLayer:function(a){return this.hasLayer(a)?this:(a.addEventParent(this),fa.prototype.addLayer.call(this,a),this.fire("layeradd",{layer:a}))},removeLayer:function(a){return this.hasLayer(a)?(a in this._layers&&(a=this._layers[a]),a.removeEventParent(this),fa.prototype.removeLayer.call(this,a),this.fire("layerremove",{layer:a})):this},setStyle:function(a){return this.invoke("setStyle",a)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var a=new ae;for(var c in this._layers){var p=this._layers[c];a.extend(p.getBounds?p.getBounds():p.getLatLng())}return a}}),xL=function(a,c){return new Br(a,c)},ha=H.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(a){x(this,a)},createIcon:function(a){return this._createIcon("icon",a)},createShadow:function(a){return this._createIcon("shadow",a)},_createIcon:function(a,c){var p=this._getIconUrl(a);if(!p){if(a==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var g=this._createImg(p,c&&c.tagName==="IMG"?c:null);return this._setIconStyles(g,a),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),g},_setIconStyles:function(a,c){var p=this.options,g=p[c+"Size"];typeof g=="number"&&(g=[g,g]);var O=V(g),k=V(c==="shadow"&&p.shadowAnchor||p.iconAnchor||O&&O.divideBy(2,!0));a.className="leaflet-marker-"+c+" "+(p.className||""),k&&(a.style.marginLeft=-k.x+"px",a.style.marginTop=-k.y+"px"),O&&(a.style.width=O.x+"px",a.style.height=O.y+"px")},_createImg:function(a,c){return c=c||document.createElement("img"),c.src=a,c},_getIconUrl:function(a){return pe.retina&&this.options[a+"RetinaUrl"]||this.options[a+"Url"]}});function _L(a){return new ha(a)}var xl=ha.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(a){return typeof xl.imagePath!="string"&&(xl.imagePath=this._detectIconPath()),(this.options.imagePath||xl.imagePath)+ha.prototype._getIconUrl.call(this,a)},_stripUrl:function(a){var c=function(p,g,O){var k=g.exec(p);return k&&k[O]};return a=c(a,/^url\((['"])?(.+)\1\)$/,2),a&&c(a,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var a=Me("div","leaflet-default-icon-path",document.body),c=wi(a,"background-image")||wi(a,"backgroundImage");if(document.body.removeChild(a),c=this._stripUrl(c),c)return c;var p=document.querySelector('link[href$="leaflet.css"]');return p?p.href.substring(0,p.href.length-11-1):""}}),k1=br.extend({initialize:function(a){this._marker=a},addHooks:function(){var a=this._marker._icon;this._draggable||(this._draggable=new Si(a,a,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),be(a,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ne(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(a){var c=this._marker,p=c._map,g=this._marker.options.autoPanSpeed,O=this._marker.options.autoPanPadding,k=xn(c._icon),N=p.getPixelBounds(),F=p.getPixelOrigin(),W=J(N.min._subtract(F).add(O),N.max._subtract(F).subtract(O));if(!W.contains(k)){var ee=V((Math.max(W.max.x,k.x)-W.max.x)/(N.max.x-W.max.x)-(Math.min(W.min.x,k.x)-W.min.x)/(N.min.x-W.min.x),(Math.max(W.max.y,k.y)-W.max.y)/(N.max.y-W.max.y)-(Math.min(W.min.y,k.y)-W.min.y)/(N.min.y-W.min.y)).multiplyBy(g);p.panBy(ee,{animate:!1}),this._draggable._newPos._add(ee),this._draggable._startPos._add(ee),Ie(c._icon,this._draggable._newPos),this._onDrag(a),this._panRequest=B(this._adjustPan.bind(this,a))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(a){this._marker.options.autoPan&&(R(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,a)))},_onDrag:function(a){var c=this._marker,p=c._shadow,g=xn(c._icon),O=c._map.layerPointToLatLng(g);p&&Ie(p,g),c._latlng=O,a.latlng=O,a.oldLatLng=this._oldLatLng,c.fire("move",a).fire("drag",a)},_onDragEnd:function(a){R(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",a)}}),ff=rr.extend({options:{icon:new xl,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(a,c){x(this,c),this._latlng=fe(a)},onAdd:function(a){this._zoomAnimated=this._zoomAnimated&&a.options.markerZoomAnimation,this._zoomAnimated&&a.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(a){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&a.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(a){var c=this._latlng;return this._latlng=fe(a),this.update(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},setZIndexOffset:function(a){return this.options.zIndexOffset=a,this.update()},getIcon:function(){return this.options.icon},setIcon:function(a){return this.options.icon=a,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var a=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(a)}return this},_initIcon:function(){var a=this.options,c="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),p=a.icon.createIcon(this._icon),g=!1;p!==this._icon&&(this._icon&&this._removeIcon(),g=!0,a.title&&(p.title=a.title),p.tagName==="IMG"&&(p.alt=a.alt||"")),be(p,c),a.keyboard&&(p.tabIndex="0",p.setAttribute("role","button")),this._icon=p,a.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&we(p,"focus",this._panOnFocus,this);var O=a.icon.createShadow(this._shadow),k=!1;O!==this._shadow&&(this._removeShadow(),k=!0),O&&(be(O,c),O.alt=""),this._shadow=O,a.opacity<1&&this._updateOpacity(),g&&this.getPane().appendChild(this._icon),this._initInteraction(),O&&k&&this.getPane(a.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ze(this._icon,"focus",this._panOnFocus,this),He(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&He(this._shadow),this._shadow=null},_setPos:function(a){this._icon&&Ie(this._icon,a),this._shadow&&Ie(this._shadow,a),this._zIndex=a.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(a){this._icon&&(this._icon.style.zIndex=this._zIndex+a)},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center).round();this._setPos(c)},_initInteraction:function(){if(this.options.interactive&&(be(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),k1)){var a=this.options.draggable;this.dragging&&(a=this.dragging.enabled(),this.dragging.disable()),this.dragging=new k1(this),a&&this.dragging.enable()}},setOpacity:function(a){return this.options.opacity=a,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var a=this.options.opacity;this._icon&&dt(this._icon,a),this._shadow&&dt(this._shadow,a)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var a=this._map;if(a){var c=this.options.icon.options,p=c.iconSize?V(c.iconSize):V(0,0),g=c.iconAnchor?V(c.iconAnchor):V(0,0);a.panInside(this._latlng,{paddingTopLeft:g,paddingBottomRight:p.subtract(g)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function bL(a,c){return new ff(a,c)}var Pi=rr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(a){this._renderer=a.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(a){return x(this,a),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&a&&Object.prototype.hasOwnProperty.call(a,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),hf=Pi.extend({options:{fill:!0,radius:10},initialize:function(a,c){x(this,c),this._latlng=fe(a),this._radius=this.options.radius},setLatLng:function(a){var c=this._latlng;return this._latlng=fe(a),this.redraw(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(a){return this.options.radius=this._radius=a,this.redraw()},getRadius:function(){return this._radius},setStyle:function(a){var c=a&&a.radius||this._radius;return Pi.prototype.setStyle.call(this,a),this.setRadius(c),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var a=this._radius,c=this._radiusY||a,p=this._clickTolerance(),g=[a+p,c+p];this._pxBounds=new te(this._point.subtract(g),this._point.add(g))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(a){return a.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function wL(a,c){return new hf(a,c)}var ym=hf.extend({initialize:function(a,c,p){if(typeof c=="number"&&(c=i({},p,{radius:c})),x(this,c),this._latlng=fe(a),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(a){return this._mRadius=a,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var a=[this._radius,this._radiusY||this._radius];return new ae(this._map.layerPointToLatLng(this._point.subtract(a)),this._map.layerPointToLatLng(this._point.add(a)))},setStyle:Pi.prototype.setStyle,_project:function(){var a=this._latlng.lng,c=this._latlng.lat,p=this._map,g=p.options.crs;if(g.distance===Re.distance){var O=Math.PI/180,k=this._mRadius/Re.R/O,N=p.project([c+k,a]),F=p.project([c-k,a]),W=N.add(F).divideBy(2),ee=p.unproject(W).lat,se=Math.acos((Math.cos(k*O)-Math.sin(c*O)*Math.sin(ee*O))/(Math.cos(c*O)*Math.cos(ee*O)))/O;(isNaN(se)||se===0)&&(se=k/Math.cos(Math.PI/180*c)),this._point=W.subtract(p.getPixelOrigin()),this._radius=isNaN(se)?0:W.x-p.project([ee,a-se]).x,this._radiusY=W.y-N.y}else{var xe=g.unproject(g.project(this._latlng).subtract([this._mRadius,0]));this._point=p.latLngToLayerPoint(this._latlng),this._radius=this._point.x-p.latLngToLayerPoint(xe).x}this._updateBounds()}});function SL(a,c,p){return new ym(a,c,p)}var Fr=Pi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(a,c){x(this,c),this._setLatLngs(a)},getLatLngs:function(){return this._latlngs},setLatLngs:function(a){return this._setLatLngs(a),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(a){for(var c=1/0,p=null,g=yl,O,k,N=0,F=this._parts.length;N<F;N++)for(var W=this._parts[N],ee=1,se=W.length;ee<se;ee++){O=W[ee-1],k=W[ee];var xe=g(a,O,k,!0);xe<c&&(c=xe,p=g(a,O,k))}return p&&(p.distance=Math.sqrt(c)),p},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return A1(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(a,c){return c=c||this._defaultShape(),a=fe(a),c.push(a),this._bounds.extend(a),this.redraw()},_setLatLngs:function(a){this._bounds=new ae,this._latlngs=this._convertLatLngs(a)},_defaultShape:function(){return $n(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(a){for(var c=[],p=$n(a),g=0,O=a.length;g<O;g++)p?(c[g]=fe(a[g]),this._bounds.extend(c[g])):c[g]=this._convertLatLngs(a[g]);return c},_project:function(){var a=new te;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,a),this._bounds.isValid()&&a.isValid()&&(this._rawPxBounds=a,this._updateBounds())},_updateBounds:function(){var a=this._clickTolerance(),c=new D(a,a);this._rawPxBounds&&(this._pxBounds=new te([this._rawPxBounds.min.subtract(c),this._rawPxBounds.max.add(c)]))},_projectLatlngs:function(a,c,p){var g=a[0]instanceof de,O=a.length,k,N;if(g){for(N=[],k=0;k<O;k++)N[k]=this._map.latLngToLayerPoint(a[k]),p.extend(N[k]);c.push(N)}else for(k=0;k<O;k++)this._projectLatlngs(a[k],c,p)},_clipPoints:function(){var a=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}var c=this._parts,p,g,O,k,N,F,W;for(p=0,O=0,k=this._rings.length;p<k;p++)for(W=this._rings[p],g=0,N=W.length;g<N-1;g++)F=O1(W[g],W[g+1],a,g,!0),F&&(c[O]=c[O]||[],c[O].push(F[0]),(F[1]!==W[g+1]||g===N-2)&&(c[O].push(F[1]),O++))}},_simplifyPoints:function(){for(var a=this._parts,c=this.options.smoothFactor,p=0,g=a.length;p<g;p++)a[p]=w1(a[p],c)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(a,c){var p,g,O,k,N,F,W=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(p=0,k=this._parts.length;p<k;p++)for(F=this._parts[p],g=0,N=F.length,O=N-1;g<N;O=g++)if(!(!c&&g===0)&&S1(a,F[O],F[g])<=W)return!0;return!1}});function PL(a,c){return new Fr(a,c)}Fr._flat=T1;var da=Fr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return b1(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(a){var c=Fr.prototype._convertLatLngs.call(this,a),p=c.length;return p>=2&&c[0]instanceof de&&c[0].equals(c[p-1])&&c.pop(),c},_setLatLngs:function(a){Fr.prototype._setLatLngs.call(this,a),$n(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return $n(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,c=this.options.weight,p=new D(c,c);if(a=new te(a.min.subtract(p),a.max.add(p)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}for(var g=0,O=this._rings.length,k;g<O;g++)k=_1(this._rings[g],a,!0),k.length&&this._parts.push(k)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(a){var c=!1,p,g,O,k,N,F,W,ee;if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(k=0,W=this._parts.length;k<W;k++)for(p=this._parts[k],N=0,ee=p.length,F=ee-1;N<ee;F=N++)g=p[N],O=p[F],g.y>a.y!=O.y>a.y&&a.x<(O.x-g.x)*(a.y-g.y)/(O.y-g.y)+g.x&&(c=!c);return c||Fr.prototype._containsPoint.call(this,a,!0)}});function OL(a,c){return new da(a,c)}var Vr=Br.extend({initialize:function(a,c){x(this,c),this._layers={},a&&this.addData(a)},addData:function(a){var c=w(a)?a:a.features,p,g,O;if(c){for(p=0,g=c.length;p<g;p++)O=c[p],(O.geometries||O.geometry||O.features||O.coordinates)&&this.addData(O);return this}var k=this.options;if(k.filter&&!k.filter(a))return this;var N=df(a,k);return N?(N.feature=vf(a),N.defaultOptions=N.options,this.resetStyle(N),k.onEachFeature&&k.onEachFeature(a,N),this.addLayer(N)):this},resetStyle:function(a){return a===void 0?this.eachLayer(this.resetStyle,this):(a.options=i({},a.defaultOptions),this._setLayerStyle(a,this.options.style),this)},setStyle:function(a){return this.eachLayer(function(c){this._setLayerStyle(c,a)},this)},_setLayerStyle:function(a,c){a.setStyle&&(typeof c=="function"&&(c=c(a.feature)),a.setStyle(c))}});function df(a,c){var p=a.type==="Feature"?a.geometry:a,g=p?p.coordinates:null,O=[],k=c&&c.pointToLayer,N=c&&c.coordsToLatLng||xm,F,W,ee,se;if(!g&&!p)return null;switch(p.type){case"Point":return F=N(g),C1(k,a,F,c);case"MultiPoint":for(ee=0,se=g.length;ee<se;ee++)F=N(g[ee]),O.push(C1(k,a,F,c));return new Br(O);case"LineString":case"MultiLineString":return W=pf(g,p.type==="LineString"?0:1,N),new Fr(W,c);case"Polygon":case"MultiPolygon":return W=pf(g,p.type==="Polygon"?1:2,N),new da(W,c);case"GeometryCollection":for(ee=0,se=p.geometries.length;ee<se;ee++){var xe=df({geometry:p.geometries[ee],type:"Feature",properties:a.properties},c);xe&&O.push(xe)}return new Br(O);case"FeatureCollection":for(ee=0,se=p.features.length;ee<se;ee++){var Oe=df(p.features[ee],c);Oe&&O.push(Oe)}return new Br(O);default:throw new Error("Invalid GeoJSON object.")}}function C1(a,c,p,g){return a?a(c,p):new ff(p,g&&g.markersInheritOptions&&g)}function xm(a){return new de(a[1],a[0],a[2])}function pf(a,c,p){for(var g=[],O=0,k=a.length,N;O<k;O++)N=c?pf(a[O],c-1,p):(p||xm)(a[O]),g.push(N);return g}function _m(a,c){return a=fe(a),a.alt!==void 0?[m(a.lng,c),m(a.lat,c),m(a.alt,c)]:[m(a.lng,c),m(a.lat,c)]}function mf(a,c,p,g){for(var O=[],k=0,N=a.length;k<N;k++)O.push(c?mf(a[k],$n(a[k])?0:c-1,p,g):_m(a[k],g));return!c&&p&&O.length>0&&O.push(O[0].slice()),O}function pa(a,c){return a.feature?i({},a.feature,{geometry:c}):vf(c)}function vf(a){return a.type==="Feature"||a.type==="FeatureCollection"?a:{type:"Feature",properties:{},geometry:a}}var bm={toGeoJSON:function(a){return pa(this,{type:"Point",coordinates:_m(this.getLatLng(),a)})}};ff.include(bm),ym.include(bm),hf.include(bm),Fr.include({toGeoJSON:function(a){var c=!$n(this._latlngs),p=mf(this._latlngs,c?1:0,!1,a);return pa(this,{type:(c?"Multi":"")+"LineString",coordinates:p})}}),da.include({toGeoJSON:function(a){var c=!$n(this._latlngs),p=c&&!$n(this._latlngs[0]),g=mf(this._latlngs,p?2:c?1:0,!0,a);return c||(g=[g]),pa(this,{type:(p?"Multi":"")+"Polygon",coordinates:g})}}),fa.include({toMultiPoint:function(a){var c=[];return this.eachLayer(function(p){c.push(p.toGeoJSON(a).geometry.coordinates)}),pa(this,{type:"MultiPoint",coordinates:c})},toGeoJSON:function(a){var c=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(c==="MultiPoint")return this.toMultiPoint(a);var p=c==="GeometryCollection",g=[];return this.eachLayer(function(O){if(O.toGeoJSON){var k=O.toGeoJSON(a);if(p)g.push(k.geometry);else{var N=vf(k);N.type==="FeatureCollection"?g.push.apply(g,N.features):g.push(N)}}}),p?pa(this,{geometries:g,type:"GeometryCollection"}):{type:"FeatureCollection",features:g}}});function M1(a,c){return new Vr(a,c)}var TL=M1,gf=rr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,c,p){this._url=a,this._bounds=he(c),x(this,p)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(be(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){He(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&Rr(this._image),this},bringToBack:function(){return this._map&&zr(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=he(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a=this._url.tagName==="IMG",c=this._image=a?this._url:Me("img");if(be(c,"leaflet-image-layer"),this._zoomAnimated&&be(c,"leaflet-zoom-animated"),this.options.className&&be(c,this.options.className),c.onselectstart=d,c.onmousemove=d,c.onload=s(this.fire,this,"load"),c.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),a){this._url=c.src;return}c.src=this._url,c.alt=this.options.alt},_animateZoom:function(a){var c=this._map.getZoomScale(a.zoom),p=this._map._latLngBoundsToNewLayerBounds(this._bounds,a.zoom,a.center).min;rt(this._image,p,c)},_reset:function(){var a=this._image,c=new te(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),p=c.getSize();Ie(a,c.min),a.style.width=p.x+"px",a.style.height=p.y+"px"},_updateOpacity:function(){dt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),AL=function(a,c,p){return new gf(a,c,p)},j1=gf.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var a=this._url.tagName==="VIDEO",c=this._image=a?this._url:Me("video");if(be(c,"leaflet-image-layer"),this._zoomAnimated&&be(c,"leaflet-zoom-animated"),this.options.className&&be(c,this.options.className),c.onselectstart=d,c.onmousemove=d,c.onloadeddata=s(this.fire,this,"load"),a){for(var p=c.getElementsByTagName("source"),g=[],O=0;O<p.length;O++)g.push(p[O].src);this._url=p.length>0?g:[c.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(c.style,"objectFit")&&(c.style.objectFit="fill"),c.autoplay=!!this.options.autoplay,c.loop=!!this.options.loop,c.muted=!!this.options.muted,c.playsInline=!!this.options.playsInline;for(var k=0;k<this._url.length;k++){var N=Me("source");N.src=this._url[k],c.appendChild(N)}}});function EL(a,c,p){return new j1(a,c,p)}var $1=gf.extend({_initImage:function(){var a=this._image=this._url;be(a,"leaflet-image-layer"),this._zoomAnimated&&be(a,"leaflet-zoom-animated"),this.options.className&&be(a,this.options.className),a.onselectstart=d,a.onmousemove=d}});function kL(a,c,p){return new $1(a,c,p)}var wr=rr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(a,c){a&&(a instanceof de||w(a))?(this._latlng=fe(a),x(this,c)):(x(this,a),this._source=c),this.options.content&&(this._content=this.options.content)},openOn:function(a){return a=arguments.length?a:this._source._map,a.hasLayer(this)||a.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(a){return this._map?this.close():(arguments.length?this._source=a:a=this._source,this._prepareOpen(),this.openOn(a._map)),this},onAdd:function(a){this._zoomAnimated=a._zoomAnimated,this._container||this._initLayout(),a._fadeAnimated&&dt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),a._fadeAnimated&&dt(this._container,1),this.bringToFront(),this.options.interactive&&(be(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(a){a._fadeAnimated?(dt(this._container,0),this._removeTimeout=setTimeout(s(He,void 0,this._container),200)):He(this._container),this.options.interactive&&(ne(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(a){return this._latlng=fe(a),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(a){return this._content=a,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var a={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Rr(this._container),this},bringToBack:function(){return this._map&&zr(this._container),this},_prepareOpen:function(a){var c=this._source;if(!c._map)return!1;if(c instanceof Br){c=null;var p=this._source._layers;for(var g in p)if(p[g]._map){c=p[g];break}if(!c)return!1;this._source=c}if(!a)if(c.getCenter)a=c.getCenter();else if(c.getLatLng)a=c.getLatLng();else if(c.getBounds)a=c.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(a),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var a=this._contentNode,c=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof c=="string")a.innerHTML=c;else{for(;a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(c)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var a=this._map.latLngToLayerPoint(this._latlng),c=V(this.options.offset),p=this._getAnchor();this._zoomAnimated?Ie(this._container,a.add(p)):c=c.add(a).add(p);var g=this._containerBottom=-c.y,O=this._containerLeft=-Math.round(this._containerWidth/2)+c.x;this._container.style.bottom=g+"px",this._container.style.left=O+"px"}},_getAnchor:function(){return[0,0]}});je.include({_initOverlay:function(a,c,p,g){var O=c;return O instanceof a||(O=new a(g).setContent(c)),p&&O.setLatLng(p),O}}),rr.include({_initOverlay:function(a,c,p,g){var O=p;return O instanceof a?(x(O,g),O._source=this):(O=c&&!g?c:new a(g,this),O.setContent(p)),O}});var yf=wr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(a){return a=arguments.length?a:this._source._map,!a.hasLayer(this)&&a._popup&&a._popup.options.autoClose&&a.removeLayer(a._popup),a._popup=this,wr.prototype.openOn.call(this,a)},onAdd:function(a){wr.prototype.onAdd.call(this,a),a.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Pi||this._source.on("preclick",po))},onRemove:function(a){wr.prototype.onRemove.call(this,a),a.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Pi||this._source.off("preclick",po))},getEvents:function(){var a=wr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(a.preclick=this.close),this.options.keepInView&&(a.moveend=this._adjustPan),a},_initLayout:function(){var a="leaflet-popup",c=this._container=Me("div",a+" "+(this.options.className||"")+" leaflet-zoom-animated"),p=this._wrapper=Me("div",a+"-content-wrapper",c);if(this._contentNode=Me("div",a+"-content",p),vl(c),cm(this._contentNode),we(c,"contextmenu",po),this._tipContainer=Me("div",a+"-tip-container",c),this._tip=Me("div",a+"-tip",this._tipContainer),this.options.closeButton){var g=this._closeButton=Me("a",a+"-close-button",c);g.setAttribute("role","button"),g.setAttribute("aria-label","Close popup"),g.href="#close",g.innerHTML='<span aria-hidden="true">×</span>',we(g,"click",function(O){Dt(O),this.close()},this)}},_updateLayout:function(){var a=this._contentNode,c=a.style;c.width="",c.whiteSpace="nowrap";var p=a.offsetWidth;p=Math.min(p,this.options.maxWidth),p=Math.max(p,this.options.minWidth),c.width=p+1+"px",c.whiteSpace="",c.height="";var g=a.offsetHeight,O=this.options.maxHeight,k="leaflet-popup-scrolled";O&&g>O?(c.height=O+"px",be(a,k)):ne(a,k),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),p=this._getAnchor();Ie(this._container,c.add(p))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var a=this._map,c=parseInt(wi(this._container,"marginBottom"),10)||0,p=this._container.offsetHeight+c,g=this._containerWidth,O=new D(this._containerLeft,-p-this._containerBottom);O._add(xn(this._container));var k=a.layerPointToContainerPoint(O),N=V(this.options.autoPanPadding),F=V(this.options.autoPanPaddingTopLeft||N),W=V(this.options.autoPanPaddingBottomRight||N),ee=a.getSize(),se=0,xe=0;k.x+g+W.x>ee.x&&(se=k.x+g-ee.x+W.x),k.x-se-F.x<0&&(se=k.x-F.x),k.y+p+W.y>ee.y&&(xe=k.y+p-ee.y+W.y),k.y-xe-F.y<0&&(xe=k.y-F.y),(se||xe)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([se,xe]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),CL=function(a,c){return new yf(a,c)};je.mergeOptions({closePopupOnClick:!0}),je.include({openPopup:function(a,c,p){return this._initOverlay(yf,a,c,p).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),rr.include({bindPopup:function(a,c){return this._popup=this._initOverlay(yf,this._popup,a,c),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof Br||(this._popup._source=this),this._popup._prepareOpen(a||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(a){return this._popup&&this._popup.setContent(a),this},getPopup:function(){return this._popup},_openPopup:function(a){if(!(!this._popup||!this._map)){mo(a);var c=a.layer||a.target;if(this._popup._source===c&&!(c instanceof Pi)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng);return}this._popup._source=c,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){a.originalEvent.keyCode===13&&this._openPopup(a)}});var xf=wr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){wr.prototype.onAdd.call(this,a),this.setOpacity(this.options.opacity),a.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(a){wr.prototype.onRemove.call(this,a),a.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var a=wr.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){var a="leaflet-tooltip",c=a+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Me("div",c),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var c,p,g=this._map,O=this._container,k=g.latLngToContainerPoint(g.getCenter()),N=g.layerPointToContainerPoint(a),F=this.options.direction,W=O.offsetWidth,ee=O.offsetHeight,se=V(this.options.offset),xe=this._getAnchor();F==="top"?(c=W/2,p=ee):F==="bottom"?(c=W/2,p=0):F==="center"?(c=W/2,p=ee/2):F==="right"?(c=0,p=ee/2):F==="left"?(c=W,p=ee/2):N.x<k.x?(F="right",c=0,p=ee/2):(F="left",c=W+(se.x+xe.x)*2,p=ee/2),a=a.subtract(V(c,p,!0)).add(se).add(xe),ne(O,"leaflet-tooltip-right"),ne(O,"leaflet-tooltip-left"),ne(O,"leaflet-tooltip-top"),ne(O,"leaflet-tooltip-bottom"),be(O,"leaflet-tooltip-"+F),Ie(O,a)},_updatePosition:function(){var a=this._map.latLngToLayerPoint(this._latlng);this._setPosition(a)},setOpacity:function(a){this.options.opacity=a,this._container&&dt(this._container,a)},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center);this._setPosition(c)},_getAnchor:function(){return V(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),ML=function(a,c){return new xf(a,c)};je.include({openTooltip:function(a,c,p){return this._initOverlay(xf,a,c,p).openOn(this),this},closeTooltip:function(a){return a.close(),this}}),rr.include({bindTooltip:function(a,c){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(xf,this._tooltip,a,c),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(a){if(!(!a&&this._tooltipHandlersAdded)){var c=a?"off":"on",p={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?p.add=this._openTooltip:(p.mouseover=this._openTooltip,p.mouseout=this.closeTooltip,p.click=this._openTooltip,this._map?this._addFocusListeners():p.add=this._addFocusListeners),this._tooltip.options.sticky&&(p.mousemove=this._moveTooltip),this[c](p),this._tooltipHandlersAdded=!a}},openTooltip:function(a){return this._tooltip&&(this instanceof Br||(this._tooltip._source=this),this._tooltip._prepareOpen(a)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(a){return this._tooltip&&this._tooltip.setContent(a),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(a){var c=typeof a.getElement=="function"&&a.getElement();c&&(we(c,"focus",function(){this._tooltip._source=a,this.openTooltip()},this),we(c,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(a){var c=typeof a.getElement=="function"&&a.getElement();c&&c.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(a){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var c=this;this._map.once("moveend",function(){c._openOnceFlag=!1,c._openTooltip(a)});return}this._tooltip._source=a.layer||a.target,this.openTooltip(this._tooltip.options.sticky?a.latlng:void 0)}},_moveTooltip:function(a){var c=a.latlng,p,g;this._tooltip.options.sticky&&a.originalEvent&&(p=this._map.mouseEventToContainerPoint(a.originalEvent),g=this._map.containerPointToLayerPoint(p),c=this._map.layerPointToLatLng(g)),this._tooltip.setLatLng(c)}});var L1=ha.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(a){var c=a&&a.tagName==="DIV"?a:document.createElement("div"),p=this.options;if(p.html instanceof Element?(lo(c),c.appendChild(p.html)):c.innerHTML=p.html!==!1?p.html:"",p.bgPos){var g=V(p.bgPos);c.style.backgroundPosition=-g.x+"px "+-g.y+"px"}return this._setIconStyles(c,"icon"),c},createShadow:function(){return null}});function jL(a){return new L1(a)}ha.Default=xl;var _l=rr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:pe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(a){x(this,a)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(a){a._addZoomLimit(this)},onRemove:function(a){this._removeAllTiles(),He(this._container),a._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Rr(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(zr(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(a){return this.options.opacity=a,this._updateOpacity(),this},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var a=this._clampZoom(this._map.getZoom());a!==this._tileZoom&&(this._tileZoom=a,this._updateLevels()),this._update()}return this},getEvents:function(){var a={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),a.move=this._onMove),this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},createTile:function(){return document.createElement("div")},getTileSize:function(){var a=this.options.tileSize;return a instanceof D?a:new D(a,a)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(a){for(var c=this.getPane().children,p=-a(-1/0,1/0),g=0,O=c.length,k;g<O;g++)k=c[g].style.zIndex,c[g]!==this._container&&k&&(p=a(p,+k));isFinite(p)&&(this.options.zIndex=p+a(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!pe.ielt9){dt(this._container,this.options.opacity);var a=+new Date,c=!1,p=!1;for(var g in this._tiles){var O=this._tiles[g];if(!(!O.current||!O.loaded)){var k=Math.min(1,(a-O.loaded)/200);dt(O.el,k),k<1?c=!0:(O.active?p=!0:this._onOpaqueTile(O),O.active=!0)}}p&&!this._noPrune&&this._pruneTiles(),c&&(R(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=Me("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var a=this._tileZoom,c=this.options.maxZoom;if(a!==void 0){for(var p in this._levels)p=Number(p),this._levels[p].el.children.length||p===a?(this._levels[p].el.style.zIndex=c-Math.abs(a-p),this._onUpdateLevel(p)):(He(this._levels[p].el),this._removeTilesAtZoom(p),this._onRemoveLevel(p),delete this._levels[p]);var g=this._levels[a],O=this._map;return g||(g=this._levels[a]={},g.el=Me("div","leaflet-tile-container leaflet-zoom-animated",this._container),g.el.style.zIndex=c,g.origin=O.project(O.unproject(O.getPixelOrigin()),a).round(),g.zoom=a,this._setZoomTransform(g,O.getCenter(),O.getZoom()),d(g.el.offsetWidth),this._onCreateLevel(g)),this._level=g,g}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var a,c,p=this._map.getZoom();if(p>this.options.maxZoom||p<this.options.minZoom){this._removeAllTiles();return}for(a in this._tiles)c=this._tiles[a],c.retain=c.current;for(a in this._tiles)if(c=this._tiles[a],c.current&&!c.active){var g=c.coords;this._retainParent(g.x,g.y,g.z,g.z-5)||this._retainChildren(g.x,g.y,g.z,g.z+2)}for(a in this._tiles)this._tiles[a].retain||this._removeTile(a)}},_removeTilesAtZoom:function(a){for(var c in this._tiles)this._tiles[c].coords.z===a&&this._removeTile(c)},_removeAllTiles:function(){for(var a in this._tiles)this._removeTile(a)},_invalidateAll:function(){for(var a in this._levels)He(this._levels[a].el),this._onRemoveLevel(Number(a)),delete this._levels[a];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(a,c,p,g){var O=Math.floor(a/2),k=Math.floor(c/2),N=p-1,F=new D(+O,+k);F.z=+N;var W=this._tileCoordsToKey(F),ee=this._tiles[W];return ee&&ee.active?(ee.retain=!0,!0):(ee&&ee.loaded&&(ee.retain=!0),N>g?this._retainParent(O,k,N,g):!1)},_retainChildren:function(a,c,p,g){for(var O=2*a;O<2*a+2;O++)for(var k=2*c;k<2*c+2;k++){var N=new D(O,k);N.z=p+1;var F=this._tileCoordsToKey(N),W=this._tiles[F];if(W&&W.active){W.retain=!0;continue}else W&&W.loaded&&(W.retain=!0);p+1<g&&this._retainChildren(O,k,p+1,g)}},_resetView:function(a){var c=a&&(a.pinch||a.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),c,c)},_animateZoom:function(a){this._setView(a.center,a.zoom,!0,a.noUpdate)},_clampZoom:function(a){var c=this.options;return c.minNativeZoom!==void 0&&a<c.minNativeZoom?c.minNativeZoom:c.maxNativeZoom!==void 0&&c.maxNativeZoom<a?c.maxNativeZoom:a},_setView:function(a,c,p,g){var O=Math.round(c);this.options.maxZoom!==void 0&&O>this.options.maxZoom||this.options.minZoom!==void 0&&O<this.options.minZoom?O=void 0:O=this._clampZoom(O);var k=this.options.updateWhenZooming&&O!==this._tileZoom;(!g||k)&&(this._tileZoom=O,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),O!==void 0&&this._update(a),p||this._pruneTiles(),this._noPrune=!!p),this._setZoomTransforms(a,c)},_setZoomTransforms:function(a,c){for(var p in this._levels)this._setZoomTransform(this._levels[p],a,c)},_setZoomTransform:function(a,c,p){var g=this._map.getZoomScale(p,a.zoom),O=a.origin.multiplyBy(g).subtract(this._map._getNewPixelOrigin(c,p)).round();pe.any3d?rt(a.el,O,g):Ie(a.el,O)},_resetGrid:function(){var a=this._map,c=a.options.crs,p=this._tileSize=this.getTileSize(),g=this._tileZoom,O=this._map.getPixelWorldBounds(this._tileZoom);O&&(this._globalTileRange=this._pxBoundsToTileRange(O)),this._wrapX=c.wrapLng&&!this.options.noWrap&&[Math.floor(a.project([0,c.wrapLng[0]],g).x/p.x),Math.ceil(a.project([0,c.wrapLng[1]],g).x/p.y)],this._wrapY=c.wrapLat&&!this.options.noWrap&&[Math.floor(a.project([c.wrapLat[0],0],g).y/p.x),Math.ceil(a.project([c.wrapLat[1],0],g).y/p.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(a){var c=this._map,p=c._animatingZoom?Math.max(c._animateToZoom,c.getZoom()):c.getZoom(),g=c.getZoomScale(p,this._tileZoom),O=c.project(a,this._tileZoom).floor(),k=c.getSize().divideBy(g*2);return new te(O.subtract(k),O.add(k))},_update:function(a){var c=this._map;if(c){var p=this._clampZoom(c.getZoom());if(a===void 0&&(a=c.getCenter()),this._tileZoom!==void 0){var g=this._getTiledPixelBounds(a),O=this._pxBoundsToTileRange(g),k=O.getCenter(),N=[],F=this.options.keepBuffer,W=new te(O.getBottomLeft().subtract([F,-F]),O.getTopRight().add([F,-F]));if(!(isFinite(O.min.x)&&isFinite(O.min.y)&&isFinite(O.max.x)&&isFinite(O.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var ee in this._tiles){var se=this._tiles[ee].coords;(se.z!==this._tileZoom||!W.contains(new D(se.x,se.y)))&&(this._tiles[ee].current=!1)}if(Math.abs(p-this._tileZoom)>1){this._setView(a,p);return}for(var xe=O.min.y;xe<=O.max.y;xe++)for(var Oe=O.min.x;Oe<=O.max.x;Oe++){var tn=new D(Oe,xe);if(tn.z=this._tileZoom,!!this._isValidTile(tn)){var Ct=this._tiles[this._tileCoordsToKey(tn)];Ct?Ct.current=!0:N.push(tn)}}if(N.sort(function(ln,va){return ln.distanceTo(k)-va.distanceTo(k)}),N.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ln=document.createDocumentFragment();for(Oe=0;Oe<N.length;Oe++)this._addTile(N[Oe],Ln);this._level.el.appendChild(Ln)}}}},_isValidTile:function(a){var c=this._map.options.crs;if(!c.infinite){var p=this._globalTileRange;if(!c.wrapLng&&(a.x<p.min.x||a.x>p.max.x)||!c.wrapLat&&(a.y<p.min.y||a.y>p.max.y))return!1}if(!this.options.bounds)return!0;var g=this._tileCoordsToBounds(a);return he(this.options.bounds).overlaps(g)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var c=this._map,p=this.getTileSize(),g=a.scaleBy(p),O=g.add(p),k=c.unproject(g,a.z),N=c.unproject(O,a.z);return[k,N]},_tileCoordsToBounds:function(a){var c=this._tileCoordsToNwSe(a),p=new ae(c[0],c[1]);return this.options.noWrap||(p=this._map.wrapLatLngBounds(p)),p},_tileCoordsToKey:function(a){return a.x+":"+a.y+":"+a.z},_keyToTileCoords:function(a){var c=a.split(":"),p=new D(+c[0],+c[1]);return p.z=+c[2],p},_removeTile:function(a){var c=this._tiles[a];c&&(He(c.el),delete this._tiles[a],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){be(a,"leaflet-tile");var c=this.getTileSize();a.style.width=c.x+"px",a.style.height=c.y+"px",a.onselectstart=d,a.onmousemove=d,pe.ielt9&&this.options.opacity<1&&dt(a,this.options.opacity)},_addTile:function(a,c){var p=this._getTilePos(a),g=this._tileCoordsToKey(a),O=this.createTile(this._wrapCoords(a),s(this._tileReady,this,a));this._initTile(O),this.createTile.length<2&&B(s(this._tileReady,this,a,null,O)),Ie(O,p),this._tiles[g]={el:O,coords:a,current:!0},c.appendChild(O),this.fire("tileloadstart",{tile:O,coords:a})},_tileReady:function(a,c,p){c&&this.fire("tileerror",{error:c,tile:p,coords:a});var g=this._tileCoordsToKey(a);p=this._tiles[g],p&&(p.loaded=+new Date,this._map._fadeAnimated?(dt(p.el,0),R(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(p.active=!0,this._pruneTiles()),c||(be(p.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:p.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),pe.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var c=new D(this._wrapX?h(a.x,this._wrapX):a.x,this._wrapY?h(a.y,this._wrapY):a.y);return c.z=a.z,c},_pxBoundsToTileRange:function(a){var c=this.getTileSize();return new te(a.min.unscaleBy(c).floor(),a.max.unscaleBy(c).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});function $L(a){return new _l(a)}var ma=_l.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,c){this._url=a,c=x(this,c),c.detectRetina&&pe.retina&&c.maxZoom>0?(c.tileSize=Math.floor(c.tileSize/2),c.zoomReverse?(c.zoomOffset--,c.minZoom=Math.min(c.maxZoom,c.minZoom+1)):(c.zoomOffset++,c.maxZoom=Math.max(c.minZoom,c.maxZoom-1)),c.minZoom=Math.max(0,c.minZoom)):c.zoomReverse?c.minZoom=Math.min(c.maxZoom,c.minZoom):c.maxZoom=Math.max(c.minZoom,c.maxZoom),typeof c.subdomains=="string"&&(c.subdomains=c.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,c){return this._url===a&&c===void 0&&(c=!0),this._url=a,c||this.redraw(),this},createTile:function(a,c){var p=document.createElement("img");return we(p,"load",s(this._tileOnLoad,this,c,p)),we(p,"error",s(this._tileOnError,this,c,p)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(p.referrerPolicy=this.options.referrerPolicy),p.alt="",p.src=this.getTileUrl(a),p},getTileUrl:function(a){var c={r:pe.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var p=this._globalTileRange.max.y-a.y;this.options.tms&&(c.y=p),c["-y"]=p}return b(this._url,i(c,this.options))},_tileOnLoad:function(a,c){pe.ielt9?setTimeout(s(a,this,null,c),0):a(null,c)},_tileOnError:function(a,c,p){var g=this.options.errorTileUrl;g&&c.getAttribute("src")!==g&&(c.src=g),a(p,c)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,c=this.options.maxZoom,p=this.options.zoomReverse,g=this.options.zoomOffset;return p&&(a=c-a),a+g},_getSubdomain:function(a){var c=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[c]},_abortLoading:function(){var a,c;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&(c=this._tiles[a].el,c.onload=d,c.onerror=d,!c.complete)){c.src=P;var p=this._tiles[a].coords;He(c),delete this._tiles[a],this.fire("tileabort",{tile:c,coords:p})}},_removeTile:function(a){var c=this._tiles[a];if(c)return c.el.setAttribute("src",P),_l.prototype._removeTile.call(this,a)},_tileReady:function(a,c,p){if(!(!this._map||p&&p.getAttribute("src")===P))return _l.prototype._tileReady.call(this,a,c,p)}});function N1(a,c){return new ma(a,c)}var I1=ma.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,c){this._url=a;var p=i({},this.defaultWmsParams);for(var g in c)g in this.options||(p[g]=c[g]);c=x(this,c);var O=c.detectRetina&&pe.retina?2:1,k=this.getTileSize();p.width=k.x*O,p.height=k.y*O,this.wmsParams=p},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var c=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[c]=this._crs.code,ma.prototype.onAdd.call(this,a)},getTileUrl:function(a){var c=this._tileCoordsToNwSe(a),p=this._crs,g=J(p.project(c[0]),p.project(c[1])),O=g.min,k=g.max,N=(this._wmsVersion>=1.3&&this._crs===E1?[O.y,O.x,k.y,k.x]:[O.x,O.y,k.x,k.y]).join(","),F=ma.prototype.getTileUrl.call(this,a);return F+S(this.wmsParams,F,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+N},setParams:function(a,c){return i(this.wmsParams,a),c||this.redraw(),this}});function LL(a,c){return new I1(a,c)}ma.WMS=I1,N1.wms=LL;var Ur=rr.extend({options:{padding:.1},initialize:function(a){x(this,a),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),be(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,c){var p=this._map.getZoomScale(c,this._zoom),g=this._map.getSize().multiplyBy(.5+this.options.padding),O=this._map.project(this._center,c),k=g.multiplyBy(-p).add(O).subtract(this._map._getNewPixelOrigin(a,c));pe.any3d?rt(this._container,k,p):Ie(this._container,k)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var a in this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,c=this._map.getSize(),p=this._map.containerPointToLayerPoint(c.multiplyBy(-a)).round();this._bounds=new te(p,p.add(c.multiplyBy(1+a*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),D1=Ur.extend({options:{tolerance:0},getEvents:function(){var a=Ur.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ur.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");we(a,"mousemove",this._onMouseMove,this),we(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),we(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){R(this._redrawRequest),delete this._ctx,He(this._container),Ze(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var a;this._redrawBounds=null;for(var c in this._layers)a=this._layers[c],a._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ur.prototype._update.call(this);var a=this._bounds,c=this._container,p=a.getSize(),g=pe.retina?2:1;Ie(c,a.min),c.width=g*p.x,c.height=g*p.y,c.style.width=p.x+"px",c.style.height=p.y+"px",pe.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){Ur.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[u(a)]=a;var c=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=c),this._drawLast=c,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var c=a._order,p=c.next,g=c.prev;p?p.prev=g:this._drawLast=g,g?g.next=p:this._drawFirst=p,delete a._order,delete this._layers[u(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)},_updateDashArray:function(a){if(typeof a.options.dashArray=="string"){var c=a.options.dashArray.split(/[, ]+/),p=[],g,O;for(O=0;O<c.length;O++){if(g=Number(c[O]),isNaN(g))return;p.push(g)}a.options._dashArray=p}else a.options._dashArray=a.options.dashArray},_requestRedraw:function(a){this._map&&(this._extendRedrawBounds(a),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(a){if(a._pxBounds){var c=(a.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new te,this._redrawBounds.extend(a._pxBounds.min.subtract([c,c])),this._redrawBounds.extend(a._pxBounds.max.add([c,c]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var a=this._redrawBounds;if(a){var c=a.getSize();this._ctx.clearRect(a.min.x,a.min.y,c.x,c.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var a,c=this._redrawBounds;if(this._ctx.save(),c){var p=c.getSize();this._ctx.beginPath(),this._ctx.rect(c.min.x,c.min.y,p.x,p.y),this._ctx.clip()}this._drawing=!0;for(var g=this._drawFirst;g;g=g.next)a=g.layer,(!c||a._pxBounds&&a._pxBounds.intersects(c))&&a._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(a,c){if(this._drawing){var p,g,O,k,N=a._parts,F=N.length,W=this._ctx;if(F){for(W.beginPath(),p=0;p<F;p++){for(g=0,O=N[p].length;g<O;g++)k=N[p][g],W[g?"lineTo":"moveTo"](k.x,k.y);c&&W.closePath()}this._fillStroke(W,a)}}},_updateCircle:function(a){if(!(!this._drawing||a._empty())){var c=a._point,p=this._ctx,g=Math.max(Math.round(a._radius),1),O=(Math.max(Math.round(a._radiusY),1)||g)/g;O!==1&&(p.save(),p.scale(1,O)),p.beginPath(),p.arc(c.x,c.y/O,g,0,Math.PI*2,!1),O!==1&&p.restore(),this._fillStroke(p,a)}},_fillStroke:function(a,c){var p=c.options;p.fill&&(a.globalAlpha=p.fillOpacity,a.fillStyle=p.fillColor||p.color,a.fill(p.fillRule||"evenodd")),p.stroke&&p.weight!==0&&(a.setLineDash&&a.setLineDash(c.options&&c.options._dashArray||[]),a.globalAlpha=p.opacity,a.lineWidth=p.weight,a.strokeStyle=p.color,a.lineCap=p.lineCap,a.lineJoin=p.lineJoin,a.stroke())},_onClick:function(a){for(var c=this._map.mouseEventToLayerPoint(a),p,g,O=this._drawFirst;O;O=O.next)p=O.layer,p.options.interactive&&p._containsPoint(c)&&(!(a.type==="click"||a.type==="preclick")||!this._map._draggableMoved(p))&&(g=p);this._fireEvent(g?[g]:!1,a)},_onMouseMove:function(a){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var c=this._map.mouseEventToLayerPoint(a);this._handleMouseHover(a,c)}},_handleMouseOut:function(a){var c=this._hoveredLayer;c&&(ne(this._container,"leaflet-interactive"),this._fireEvent([c],a,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(a,c){if(!this._mouseHoverThrottled){for(var p,g,O=this._drawFirst;O;O=O.next)p=O.layer,p.options.interactive&&p._containsPoint(c)&&(g=p);g!==this._hoveredLayer&&(this._handleMouseOut(a),g&&(be(this._container,"leaflet-interactive"),this._fireEvent([g],a,"mouseover"),this._hoveredLayer=g)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,a),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(a,c,p){this._map._fireDOMEvent(c,p||c.type,a)},_bringToFront:function(a){var c=a._order;if(c){var p=c.next,g=c.prev;if(p)p.prev=g;else return;g?g.next=p:p&&(this._drawFirst=p),c.prev=this._drawLast,this._drawLast.next=c,c.next=null,this._drawLast=c,this._requestRedraw(a)}},_bringToBack:function(a){var c=a._order;if(c){var p=c.next,g=c.prev;if(g)g.next=p;else return;p?p.prev=g:g&&(this._drawLast=g),c.prev=null,c.next=this._drawFirst,this._drawFirst.prev=c,this._drawFirst=c,this._requestRedraw(a)}}});function R1(a){return pe.canvas?new D1(a):null}var bl=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(a){return document.createElement("<lvml:"+a+' class="lvml">')}}catch{}return function(a){return document.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),NL={_initContainer:function(){this._container=Me("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ur.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var c=a._container=bl("shape");be(c,"leaflet-vml-shape "+(this.options.className||"")),c.coordsize="1 1",a._path=bl("path"),c.appendChild(a._path),this._updateStyle(a),this._layers[u(a)]=a},_addPath:function(a){var c=a._container;this._container.appendChild(c),a.options.interactive&&a.addInteractiveTarget(c)},_removePath:function(a){var c=a._container;He(c),a.removeInteractiveTarget(c),delete this._layers[u(a)]},_updateStyle:function(a){var c=a._stroke,p=a._fill,g=a.options,O=a._container;O.stroked=!!g.stroke,O.filled=!!g.fill,g.stroke?(c||(c=a._stroke=bl("stroke")),O.appendChild(c),c.weight=g.weight+"px",c.color=g.color,c.opacity=g.opacity,g.dashArray?c.dashStyle=w(g.dashArray)?g.dashArray.join(" "):g.dashArray.replace(/( *, *)/g," "):c.dashStyle="",c.endcap=g.lineCap.replace("butt","flat"),c.joinstyle=g.lineJoin):c&&(O.removeChild(c),a._stroke=null),g.fill?(p||(p=a._fill=bl("fill")),O.appendChild(p),p.color=g.fillColor||g.color,p.opacity=g.fillOpacity):p&&(O.removeChild(p),a._fill=null)},_updateCircle:function(a){var c=a._point.round(),p=Math.round(a._radius),g=Math.round(a._radiusY||p);this._setPath(a,a._empty()?"M0 0":"AL "+c.x+","+c.y+" "+p+","+g+" 0,"+65535*360)},_setPath:function(a,c){a._path.v=c},_bringToFront:function(a){Rr(a._container)},_bringToBack:function(a){zr(a._container)}},_f=pe.vml?bl:Te,wl=Ur.extend({_initContainer:function(){this._container=_f("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=_f("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){He(this._container),Ze(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ur.prototype._update.call(this);var a=this._bounds,c=a.getSize(),p=this._container;(!this._svgSize||!this._svgSize.equals(c))&&(this._svgSize=c,p.setAttribute("width",c.x),p.setAttribute("height",c.y)),Ie(p,a.min),p.setAttribute("viewBox",[a.min.x,a.min.y,c.x,c.y].join(" ")),this.fire("update")}},_initPath:function(a){var c=a._path=_f("path");a.options.className&&be(c,a.options.className),a.options.interactive&&be(c,"leaflet-interactive"),this._updateStyle(a),this._layers[u(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){He(a._path),a.removeInteractiveTarget(a._path),delete this._layers[u(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var c=a._path,p=a.options;c&&(p.stroke?(c.setAttribute("stroke",p.color),c.setAttribute("stroke-opacity",p.opacity),c.setAttribute("stroke-width",p.weight),c.setAttribute("stroke-linecap",p.lineCap),c.setAttribute("stroke-linejoin",p.lineJoin),p.dashArray?c.setAttribute("stroke-dasharray",p.dashArray):c.removeAttribute("stroke-dasharray"),p.dashOffset?c.setAttribute("stroke-dashoffset",p.dashOffset):c.removeAttribute("stroke-dashoffset")):c.setAttribute("stroke","none"),p.fill?(c.setAttribute("fill",p.fillColor||p.color),c.setAttribute("fill-opacity",p.fillOpacity),c.setAttribute("fill-rule",p.fillRule||"evenodd")):c.setAttribute("fill","none"))},_updatePoly:function(a,c){this._setPath(a,_e(a._parts,c))},_updateCircle:function(a){var c=a._point,p=Math.max(Math.round(a._radius),1),g=Math.max(Math.round(a._radiusY),1)||p,O="a"+p+","+g+" 0 1,0 ",k=a._empty()?"M0 0":"M"+(c.x-p)+","+c.y+O+p*2+",0 "+O+-p*2+",0 ";this._setPath(a,k)},_setPath:function(a,c){a._path.setAttribute("d",c)},_bringToFront:function(a){Rr(a._path)},_bringToBack:function(a){zr(a._path)}});pe.vml&&wl.include(NL);function z1(a){return pe.svg||pe.vml?new wl(a):null}je.include({getRenderer:function(a){var c=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return c||(c=this._renderer=this._createRenderer()),this.hasLayer(c)||this.addLayer(c),c},_getPaneRenderer:function(a){if(a==="overlayPane"||a===void 0)return!1;var c=this._paneRenderers[a];return c===void 0&&(c=this._createRenderer({pane:a}),this._paneRenderers[a]=c),c},_createRenderer:function(a){return this.options.preferCanvas&&R1(a)||z1(a)}});var B1=da.extend({initialize:function(a,c){da.prototype.initialize.call(this,this._boundsToLatLngs(a),c)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return a=he(a),[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});function IL(a,c){return new B1(a,c)}wl.create=_f,wl.pointsToPath=_e,Vr.geometryToLayer=df,Vr.coordsToLatLng=xm,Vr.coordsToLatLngs=pf,Vr.latLngToCoords=_m,Vr.latLngsToCoords=mf,Vr.getFeature=pa,Vr.asFeature=vf,je.mergeOptions({boxZoom:!0});var F1=br.extend({initialize:function(a){this._map=a,this._container=a._container,this._pane=a._panes.overlayPane,this._resetStateTimeout=0,a.on("unload",this._destroy,this)},addHooks:function(){we(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ze(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){He(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||a.which!==1&&a.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),er(),xr(),this._startPoint=this._map.mouseEventToContainerPoint(a),we(document,{contextmenu:mo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=Me("div","leaflet-zoom-box",this._container),be(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var c=new te(this._point,this._startPoint),p=c.getSize();Ie(this._box,c.min),this._box.style.width=p.x+"px",this._box.style.height=p.y+"px"},_finish:function(){this._moved&&(He(this._box),ne(this._container,"leaflet-crosshair")),Ht(),uo(),Ze(document,{contextmenu:mo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if(!(a.which!==1&&a.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var c=new ae(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(c).fire("boxzoomend",{boxZoomBounds:c})}},_onKeyDown:function(a){a.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});je.addInitHook("addHandler","boxZoom",F1),je.mergeOptions({doubleClickZoom:!0});var V1=br.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var c=this._map,p=c.getZoom(),g=c.options.zoomDelta,O=a.originalEvent.shiftKey?p-g:p+g;c.options.doubleClickZoom==="center"?c.setZoom(O):c.setZoomAround(a.containerPoint,O)}});je.addInitHook("addHandler","doubleClickZoom",V1),je.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var U1=br.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new Si(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}be(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ne(this._map._container,"leaflet-grab"),ne(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var c=he(this._map.options.maxBounds);this._offsetLimit=J(this._map.latLngToContainerPoint(c.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(c.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;a.fire("movestart").fire("dragstart"),a.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(a){if(this._map.options.inertia){var c=this._lastTime=+new Date,p=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(p),this._times.push(c),this._prunePositions(c)}this._map.fire("move",a).fire("drag",a)},_prunePositions:function(a){for(;this._positions.length>1&&a-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var a=this._map.getSize().divideBy(2),c=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=c.subtract(a).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(a,c){return a-(a-c)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var a=this._draggable._newPos.subtract(this._draggable._startPos),c=this._offsetLimit;a.x<c.min.x&&(a.x=this._viscousLimit(a.x,c.min.x)),a.y<c.min.y&&(a.y=this._viscousLimit(a.y,c.min.y)),a.x>c.max.x&&(a.x=this._viscousLimit(a.x,c.max.x)),a.y>c.max.y&&(a.y=this._viscousLimit(a.y,c.max.y)),this._draggable._newPos=this._draggable._startPos.add(a)}},_onPreDragWrap:function(){var a=this._worldWidth,c=Math.round(a/2),p=this._initialWorldOffset,g=this._draggable._newPos.x,O=(g-c+p)%a+c-p,k=(g+c+p)%a-c-p,N=Math.abs(O+p)<Math.abs(k+p)?O:k;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=N},_onDragEnd:function(a){var c=this._map,p=c.options,g=!p.inertia||a.noInertia||this._times.length<2;if(c.fire("dragend",a),g)c.fire("moveend");else{this._prunePositions(+new Date);var O=this._lastPos.subtract(this._positions[0]),k=(this._lastTime-this._times[0])/1e3,N=p.easeLinearity,F=O.multiplyBy(N/k),W=F.distanceTo([0,0]),ee=Math.min(p.inertiaMaxSpeed,W),se=F.multiplyBy(ee/W),xe=ee/(p.inertiaDeceleration*N),Oe=se.multiplyBy(-xe/2).round();!Oe.x&&!Oe.y?c.fire("moveend"):(Oe=c._limitOffset(Oe,c.options.maxBounds),B(function(){c.panBy(Oe,{duration:xe,easeLinearity:N,noMoveStart:!0,animate:!0})}))}}});je.addInitHook("addHandler","dragging",U1),je.mergeOptions({keyboard:!0,keyboardPanDelta:80});var W1=br.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(a){this._map=a,this._setPanDelta(a.options.keyboardPanDelta),this._setZoomDelta(a.options.zoomDelta)},addHooks:function(){var a=this._map._container;a.tabIndex<=0&&(a.tabIndex="0"),we(a,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ze(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var a=document.body,c=document.documentElement,p=a.scrollTop||c.scrollTop,g=a.scrollLeft||c.scrollLeft;this._map._container.focus(),window.scrollTo(g,p)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(a){var c=this._panKeys={},p=this.keyCodes,g,O;for(g=0,O=p.left.length;g<O;g++)c[p.left[g]]=[-1*a,0];for(g=0,O=p.right.length;g<O;g++)c[p.right[g]]=[a,0];for(g=0,O=p.down.length;g<O;g++)c[p.down[g]]=[0,a];for(g=0,O=p.up.length;g<O;g++)c[p.up[g]]=[0,-1*a]},_setZoomDelta:function(a){var c=this._zoomKeys={},p=this.keyCodes,g,O;for(g=0,O=p.zoomIn.length;g<O;g++)c[p.zoomIn[g]]=a;for(g=0,O=p.zoomOut.length;g<O;g++)c[p.zoomOut[g]]=-a},_addHooks:function(){we(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ze(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(a){if(!(a.altKey||a.ctrlKey||a.metaKey)){var c=a.keyCode,p=this._map,g;if(c in this._panKeys){if(!p._panAnim||!p._panAnim._inProgress)if(g=this._panKeys[c],a.shiftKey&&(g=V(g).multiplyBy(3)),p.options.maxBounds&&(g=p._limitOffset(V(g),p.options.maxBounds)),p.options.worldCopyJump){var O=p.wrapLatLng(p.unproject(p.project(p.getCenter()).add(g)));p.panTo(O)}else p.panBy(g)}else if(c in this._zoomKeys)p.setZoom(p.getZoom()+(a.shiftKey?3:1)*this._zoomKeys[c]);else if(c===27&&p._popup&&p._popup.options.closeOnEscapeKey)p.closePopup();else return;mo(a)}}});je.addInitHook("addHandler","keyboard",W1),je.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var H1=br.extend({addHooks:function(){we(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ze(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(a){var c=m1(a),p=this._map.options.wheelDebounceTime;this._delta+=c,this._lastMousePos=this._map.mouseEventToContainerPoint(a),this._startTime||(this._startTime=+new Date);var g=Math.max(p-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),g),mo(a)},_performZoom:function(){var a=this._map,c=a.getZoom(),p=this._map.options.zoomSnap||0;a._stop();var g=this._delta/(this._map.options.wheelPxPerZoomLevel*4),O=4*Math.log(2/(1+Math.exp(-Math.abs(g))))/Math.LN2,k=p?Math.ceil(O/p)*p:O,N=a._limitZoom(c+(this._delta>0?k:-k))-c;this._delta=0,this._startTime=null,N&&(a.options.scrollWheelZoom==="center"?a.setZoom(c+N):a.setZoomAround(this._lastMousePos,c+N))}});je.addInitHook("addHandler","scrollWheelZoom",H1);var DL=600;je.mergeOptions({tapHold:pe.touchNative&&pe.safari&&pe.mobile,tapTolerance:15});var Z1=br.extend({addHooks:function(){we(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ze(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),a.touches.length===1){var c=a.touches[0];this._startPos=this._newPos=new D(c.clientX,c.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(we(document,"touchend",Dt),we(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",c))},this),DL),we(document,"touchend touchcancel contextmenu",this._cancel,this),we(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){Ze(document,"touchend",Dt),Ze(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),Ze(document,"touchend touchcancel contextmenu",this._cancel,this),Ze(document,"touchmove",this._onMove,this)},_onMove:function(a){var c=a.touches[0];this._newPos=new D(c.clientX,c.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(a,c){var p=new MouseEvent(a,{bubbles:!0,cancelable:!0,view:window,screenX:c.screenX,screenY:c.screenY,clientX:c.clientX,clientY:c.clientY});p._simulated=!0,c.target.dispatchEvent(p)}});je.addInitHook("addHandler","tapHold",Z1),je.mergeOptions({touchZoom:pe.touch,bounceAtZoomLimits:!0});var G1=br.extend({addHooks:function(){be(this._map._container,"leaflet-touch-zoom"),we(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ne(this._map._container,"leaflet-touch-zoom"),Ze(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var c=this._map;if(!(!a.touches||a.touches.length!==2||c._animatingZoom||this._zooming)){var p=c.mouseEventToContainerPoint(a.touches[0]),g=c.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=c.getSize()._divideBy(2),this._startLatLng=c.containerPointToLatLng(this._centerPoint),c.options.touchZoom!=="center"&&(this._pinchStartLatLng=c.containerPointToLatLng(p.add(g)._divideBy(2))),this._startDist=p.distanceTo(g),this._startZoom=c.getZoom(),this._moved=!1,this._zooming=!0,c._stop(),we(document,"touchmove",this._onTouchMove,this),we(document,"touchend touchcancel",this._onTouchEnd,this),Dt(a)}},_onTouchMove:function(a){if(!(!a.touches||a.touches.length!==2||!this._zooming)){var c=this._map,p=c.mouseEventToContainerPoint(a.touches[0]),g=c.mouseEventToContainerPoint(a.touches[1]),O=p.distanceTo(g)/this._startDist;if(this._zoom=c.getScaleZoom(O,this._startZoom),!c.options.bounceAtZoomLimits&&(this._zoom<c.getMinZoom()&&O<1||this._zoom>c.getMaxZoom()&&O>1)&&(this._zoom=c._limitZoom(this._zoom)),c.options.touchZoom==="center"){if(this._center=this._startLatLng,O===1)return}else{var k=p._add(g)._divideBy(2)._subtract(this._centerPoint);if(O===1&&k.x===0&&k.y===0)return;this._center=c.unproject(c.project(this._pinchStartLatLng,this._zoom).subtract(k),this._zoom)}this._moved||(c._moveStart(!0,!1),this._moved=!0),R(this._animRequest);var N=s(c._move,c,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(N,this,!0),Dt(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,R(this._animRequest),Ze(document,"touchmove",this._onTouchMove,this),Ze(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});je.addInitHook("addHandler","touchZoom",G1),je.BoxZoom=F1,je.DoubleClickZoom=V1,je.Drag=U1,je.Keyboard=W1,je.ScrollWheelZoom=H1,je.TapHold=Z1,je.TouchZoom=G1,n.Bounds=te,n.Browser=pe,n.CRS=Fe,n.Canvas=D1,n.Circle=ym,n.CircleMarker=hf,n.Class=H,n.Control=nr,n.DivIcon=L1,n.DivOverlay=wr,n.DomEvent=tL,n.DomUtil=J$,n.Draggable=Si,n.Evented=X,n.FeatureGroup=Br,n.GeoJSON=Vr,n.GridLayer=_l,n.Handler=br,n.Icon=ha,n.ImageOverlay=gf,n.LatLng=de,n.LatLngBounds=ae,n.Layer=rr,n.LayerGroup=fa,n.LineUtil=pL,n.Map=je,n.Marker=ff,n.Mixin=lL,n.Path=Pi,n.Point=D,n.PolyUtil=uL,n.Polygon=da,n.Polyline=Fr,n.Popup=yf,n.PosAnimation=v1,n.Projection=mL,n.Rectangle=B1,n.Renderer=Ur,n.SVG=wl,n.SVGOverlay=$1,n.TileLayer=ma,n.Tooltip=xf,n.Transformation=U,n.Util=Q,n.VideoOverlay=j1,n.bind=s,n.bounds=J,n.canvas=R1,n.circle=SL,n.circleMarker=wL,n.control=gl,n.divIcon=jL,n.extend=i,n.featureGroup=xL,n.geoJSON=M1,n.geoJson=TL,n.gridLayer=$L,n.icon=_L,n.imageOverlay=AL,n.latLng=fe,n.latLngBounds=he,n.layerGroup=yL,n.map=nL,n.marker=bL,n.point=V,n.polygon=OL,n.polyline=PL,n.popup=CL,n.rectangle=IL,n.setOptions=x,n.stamp=u,n.svg=z1,n.svgOverlay=kL,n.tileLayer=N1,n.tooltip=ML,n.transformation=Z,n.version=r,n.videoOverlay=EL;var RL=window.L;n.noConflict=function(){return window.L=RL,this},window.L=n})})(qg,qg.exports);var Ds=qg.exports;const mn=Ue(Ds);function _p(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function e_(e,t){return t==null?function(r,i){const o=j.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=j.useRef();o.current||(o.current=e(r,i));const s=j.useRef(r),{instance:l}=o.current;return j.useEffect(function(){s.current!==r&&(t(l,r,s.current),s.current=r)},[l,r,i]),o}}function gC(e,t){j.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function yC(e){return function(n){const r=Qx(),i=e(Jx(n,r),r);return A4(r.map,n.attribution),vC(i.current,n.eventHandlers),gC(i.current,r),i}}function j4(e,t){const n=j.useRef();j.useEffect(function(){if(t.pathOptions!==n.current){const i=t.pathOptions??{};e.instance.setStyle(i),n.current=i}},[e,t])}function $4(e){return function(n){const r=Qx(),i=e(Jx(n,r),r);return vC(i.current,n.eventHandlers),gC(i.current,r),j4(i.current,n),i}}function L4(e,t){const n=e_(e,t),r=yC(n);return mC(r)}function xC(e,t){const n=e_(e,t),r=$4(n);return mC(r)}function N4(e,t){const n=e_(e,t),r=yC(n);return M4(r)}function I4(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function t_(){return Qx().map}function _C(e){const t=t_();return j.useEffect(function(){return t.on(e),function(){t.off(e)}},[t,e]),t}const Kr=xC(function({center:t,children:n,...r},i){const o=new Ds.Circle(t,r);return _p(o,Yx(i,{overlayContainer:o}))},E4);function Xg(){return Xg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xg.apply(this,arguments)}function D4({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:l,whenReady:u,zoom:f,...h},d){const[m]=j.useState({className:i,id:o,style:l}),[v,_]=j.useState(null);j.useImperativeHandle(d,()=>(v==null?void 0:v.map)??null,[v]);const x=j.useCallback(y=>{if(y!==null&&v===null){const b=new Ds.Map(y,h);n!=null&&f!=null?b.setView(n,f):e!=null&&b.fitBounds(e,t),u!=null&&b.whenReady(u),_(C4(b))}},[]);j.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const S=v?I.createElement(pC,{value:v},r):s??null;return I.createElement("div",Xg({},m,{ref:x}),S)}const bC=j.forwardRef(D4),Bn=L4(function({position:t,...n},r){const i=new Ds.Marker(t,n);return _p(i,Yx(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),Ga=xC(function({positions:t,...n},r){const i=new Ds.Polyline(t,n);return _p(i,Yx(r,{overlayContainer:i}))},function(t,n,r){n.positions!==r.positions&&t.setLatLngs(n.positions)}),Yg=N4(function({url:t,...n},r){const i=new Ds.TileLayer(t,Jx(n,r));return _p(i,r)},function(t,n,r){I4(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),R4=new mn.DivIcon({html:'<div style="font-size: 20px; opacity: 0.8; filter: drop-shadow(0 0 5px black);">⛵</div>',className:"boat-marker",iconSize:[30,30],iconAnchor:[15,15]}),z4=e=>new mn.DivIcon({html:`<div style="font-size: 18px; color: ${e?"#ef4444":"rgba(255, 255, 255, 0.85)"}; filter: drop-shadow(0 0 3px black); transition: color 0.5s ease-in-out;">⚓︎</div>`,className:"anchor-marker",iconSize:[20,20],iconAnchor:[10,10]}),B4=new mn.DivIcon({html:'<div style="font-size: 18px; color: #ef4444; filter: drop-shadow(0 0 3px black);">⚓︎</div>',className:"nearby-anchor-marker animate-pulse",iconSize:[20,20],iconAnchor:[10,10]}),Uf=(e,t)=>{if(e==null||isNaN(e))return"";const n=t?e>=0?"N":"S":e>=0?"E":"W",r=Math.abs(e),i=Math.floor(r),o=((r-i)*60).toFixed(4);return`${i}° ${o}'${n}`},F4=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},V4=(e,t,n,r)=>{if(e==="LOCKED"||e==="LEARNING"||e==="SETTLING"||e==="IN_PORTO")return 18;if(n>0&&n<=25&&(r||t<3.5)){if(t<1.5)return 18;if(t<3)return 17;if(t<5)return 15}return t>8?11:(t>5,13)},U4=e=>e>=19?[{r:15,label:"15m"},{r:30,label:"30m"},{r:45,label:"45m"}]:e===18?[{r:25,label:"25m"},{r:50,label:"50m"},{r:75,label:"75m"}]:e===17?[{r:50,label:"50m"},{r:100,label:"100m"},{r:150,label:"150m"}]:e===16?[{r:100,label:"100m"},{r:200,label:"200m"},{r:300,label:"300m"}]:e===15?[{r:250,label:"250m"},{r:500,label:"500m"},{r:750,label:"750m"}]:e===14?[{r:500,label:"500m"},{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"}]:e===13?[{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"},{r:3704,label:"2 NM"}]:[{r:1852,label:"1 NM"},{r:3704,label:"2 NM"},{r:9260,label:"5 NM"}],W4=(e,t,n,r)=>{const i=Math.PI/180,o=r*463,s=e+o*Math.cos(n*i)/111139,l=t+o*Math.sin(n*i)/(111139*Math.cos(e*i));return[s,l]},H4=e=>{let t="rgba(225, 225, 225, 0.85)";return e==="RED"?t="#ef4444":e==="ORANGE"&&(t="#f97316"),new mn.DivIcon({html:`<div style="width: 8px; height: 8px; background-color: ${t}; border-radius: 50%; border: 1.2px solid rgba(0, 0, 0, 0.6); box-shadow: 0 0 3px rgba(0,0,0,0.5);"></div>`,className:"stationary-vessel-marker",iconSize:[8,8],iconAnchor:[4,4]})},Z4=e=>e.risk==="RED"?"#ef4444":e.risk==="ORANGE"?"#f97316":e.color||"rgba(225, 225, 225, 0.85)",n_=e=>e>=18?{nameSize:"15px",subSize:"11px",emojiSize:"26px",markerSize:20,iconSize:[400,64],iconAnchor:[-14,32]}:e<=14?{nameSize:"10px",subSize:"7.5px",emojiSize:"16px",markerSize:12,iconSize:[280,42],iconAnchor:[-8,21]}:{nameSize:"13px",subSize:"9.5px",emojiSize:"22px",markerSize:16,iconSize:[350,56],iconAnchor:[-12,28]},G4=(e,t,n)=>{const r=n_(n);return new mn.DivIcon({html:`<div style="transform: rotate(${e}deg); font-size: ${r.markerSize}px; color: ${t}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;">▲</div>`,className:"moving-vessel-marker",iconSize:[r.markerSize,r.markerSize],iconAnchor:[r.markerSize/2,r.markerSize/2]})},wC=e=>{const t=parseInt(e)||0;return t===36?"⛵":t===37?"🛥️":t===30?"🐟":t>=50&&t<=59?"👨🏻✈️":t===31||t===32||t===52?"🚜":t>=60&&t<=69?"⛴️":t>=70&&t<=79?"📦":t>=80&&t<=89?"🛢️":t>=40&&t<=49?"🚤":""},K4=(e,t,n,r,i,o,s)=>{let l="rgba(225, 225, 225, 0.85)",u="";if(t==="RED"?(l="#ef4444",u=`(${n} - ${r}m)`):t==="ORANGE"?(l="#f97316",u=`(${n} - ${r}m)`):r<=200&&(u=`${r}m`),i>=120){let d=Math.round(i/60);u=u?`${u} • RIT: ${d} MIN`:`RIT: ${d} MIN`}const f=wC(o),h=n_(s);return new mn.DivIcon({html:`
|
|
267
|
+
<div style="display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase;">
|
|
268
|
+
${f?`<span style="font-size: ${h.emojiSize}; line-height: 1;">${f}</span>`:""}
|
|
269
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15;">
|
|
270
|
+
<span style="font-size: ${h.nameSize}; font-weight: 900; color: ${l}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;">${e}</span>
|
|
271
|
+
${u?`<span style="font-size: ${h.subSize}; font-weight: 900; color: ${l}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 1px;">(${u})</span>`:""}
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
`,className:"ais-vessel-label",iconSize:h.iconSize,iconAnchor:h.iconAnchor})},q4=(e,t,n,r,i,o,s,l,u,f,h)=>{let d="";l>=120&&(d=` • RIT: ${Math.round(l/60)} MIN`);let m=`${t} kn${d}`,v="";if(o==="RED"){let S=s||"COLLISIONE!",y=i?` (${i})`:"",b=r!==null&&r>=0?` IN ${Math.round(r)} MIN`:"";v=`🚨 ${S} - CPA: ${n}m${y}${b}`}else r!==null&&r>=0&&(v=`CPA: ${n}m (${i}) IN ${Math.round(r)} MIN`);const _=wC(f),x=n_(h);return new mn.DivIcon({html:`
|
|
275
|
+
<div style="display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase;">
|
|
276
|
+
${_?`<span style="font-size: ${x.emojiSize}; line-height: 1;">${_}</span>`:""}
|
|
277
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15;">
|
|
278
|
+
<span style="font-size: ${x.nameSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;">${e}</span>
|
|
279
|
+
<span style="font-size: ${x.subSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 1px;">${m}</span>
|
|
280
|
+
${v?`<span style="font-size: ${x.nameSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 2px;">${v}</span>`:""}
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
`,className:"ais-moving-label",iconSize:x.iconSize,iconAnchor:x.iconAnchor})},X4=e=>!e||e<50?"text-gray-300":e<195||e>255?"text-red-500":e<210||e>245?"text-orange-500":"text-gray-400",Y4=(e,t,n,r)=>{const i=Math.abs(e),o=r&&n>180,s=o?t*n:1200,l=i/(s>100?s:1200);return l>.9?"text-red-500 animate-pulse font-black":l>.7?"text-orange-500 font-black":o&&i>1e3?"text-yellow-400 font-black":"text-gray-100"},OS=e=>e==null?"text-white":e<=-12?"text-blue-600":e<-4?"text-blue-400":e<4?"text-orange-500":e<=9?"text-white":e<=12?"text-orange-500":"text-red-500",Q4=({coords:e,anchorCoords:t,isAnchored:n,trailSegments:r,autoFollow:i,setAutoFollow:o,isMapFull:s,setIsMapFull:l,smartZoom:u,onZoomChange:f})=>{const h=t_(),d=j.useRef(!1);_C({dragstart:()=>{o(!1)},zoomstart:y=>{y&&y.originalEvent&&(d.current=!0)},zoomend:()=>{f&&f(h.getZoom())}}),j.useEffect(()=>{f&&f(h.getZoom())},[h,f]);const m=y=>{d.current=!0;const b=h.getZoom(),w=y==="in"?b+1:b-1;h.setZoom(w),f&&f(w)},v=j.useMemo(()=>n&&t&&t[0]&&t[1]?t:e,[n,t,e]),[_,x]=v,S=j.useRef(!0);return j.useEffect(()=>{const y=setTimeout(()=>{if(h.invalidateSize(!1),i&&_!==0){const w=d.current?h.getZoom():u;h.setView([_,x],w,{animate:!1})}},60),b=setTimeout(()=>{h.invalidateSize(!1)},300);return()=>{clearTimeout(y),clearTimeout(b)}},[s,i,_,x,u,h]),j.useEffect(()=>{if(!i||_===0)return;const y=requestAnimationFrame(()=>{const b=h.getZoom();S.current?(d.current=!1,h.setView([_,x],u,{animate:!1}),S.current=!1,f&&f(u)):!d.current&&b!==u?h.flyTo([_,x],u,{duration:.8}):h.panTo([_,x],{animate:!0,duration:1,easeLinearity:.25})});return()=>cancelAnimationFrame(y)},[i,_,x,u,h,f]),T.jsxs(T.Fragment,{children:[r.map((y,b)=>T.jsx(Ga,{positions:y.positions,color:y.color,weight:y.weight,opacity:y.opacity,lineCap:"round",lineJoin:"round",smoothFactor:0},`trail-seg-${b}`)),T.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 flex flex-col gap-3 z-[1000]",children:[T.jsx("button",{onClick:()=>m("in"),className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:T.jsx(cC,{size:24})}),T.jsx("button",{onClick:()=>m("out"),className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:T.jsx(lC,{size:24})}),T.jsx("button",{onClick:()=>{d.current=!1,o(!0),h.flyTo(v,u,{duration:.6})},className:`w-12 h-12 rounded-2xl backdrop-blur-xl border transition-all flex items-center justify-center shadow-xl active:scale-90 ${i?"bg-cyan-500/40 border-cyan-400 shadow-[0_0_20px_rgba(6,182,212,0.3)]":"bg-black/50 border-white/20"}`,children:T.jsx(fC,{size:24,className:i?"text-white":"text-gray-300"})}),T.jsx("button",{onClick:y=>{y.stopPropagation(),l(b=>!b)},className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:s?T.jsx(h4,{size:20}):T.jsx(f4,{size:20})})]})]})},J4=({manager:e,onTabChange:t})=>{var Q,H,K,q,X,D,G,V,te,J,ae,he,de,fe,Fe,Re,oe,ve,U,Z,me,ce,Te,_e,Ce,nt,At,Wt,ut,Nt,gn,Jn,yr,xi,Qs,Js,Rc,el,tl,zc,nl,oa,rl,Bc,_i,Fc,Vc,il,ol,al,Uc,Wc,Hc,Zc,Gc,Kc,aa,qc,Xc,Yc,Qc,yn,pe,sl,ll,ul,cl,sa,fl,Dr,hl,Jc,ef,tf,nf,dl,rf,so,of,af,sf,lf,uf,la,bi,pl,ml,wi,Me,He,lo,Rr,zr,ua,be;const{data:n,toggleSwitch:r,apiUrl:i,error:o,isUpdating:s}=e,[l,u]=j.useState(!0),[f,h]=j.useState(!1),[d,m]=j.useState(!1),[v,_]=j.useState(!1),x=parseFloat((Q=n==null?void 0:n.gps)==null?void 0:Q.lat)||36.78,S=parseFloat((H=n==null?void 0:n.gps)==null?void 0:H.lon)||14.54,y=j.useMemo(()=>[x,S],[x,S]),b=((K=n==null?void 0:n.anchor)==null?void 0:K.sog)!==void 0?n.anchor.sog:((q=n==null?void 0:n.gps)==null?void 0:q.sog)||0,w=parseFloat(((X=n==null?void 0:n.anchor)==null?void 0:X.depth)||((D=n==null?void 0:n.environment)==null?void 0:D.depth)||0),E=!!((G=n==null?void 0:n.anchor)!=null&&G.engine_on),P=((V=n==null?void 0:n.anchor)==null?void 0:V.status)||"MOVING",A=P!=="MOVING",C=j.useMemo(()=>V4(P,b,w,E),[P,b,w,E]),[M,$]=j.useState(C);j.useEffect(()=>{h(!!o)},[o]);const z=j.useMemo(()=>{var ne,_t;return A&&((ne=n==null?void 0:n.anchor)!=null&&ne.lat)&&((_t=n==null?void 0:n.anchor)!=null&&_t.lon)?{lat:parseFloat(n.anchor.lat),lon:parseFloat(n.anchor.lon)}:{lat:x,lon:S}},[A,(te=n==null?void 0:n.anchor)==null?void 0:te.lat,(J=n==null?void 0:n.anchor)==null?void 0:J.lon,x,S]),B=j.useMemo(()=>{var ne;return(((ne=n==null?void 0:n.environment)==null?void 0:ne.ais_targets)||[]).some(_t=>_t.risk==="RED"&&_t.riskMsg==="SOPRA TUA ANCORA!")},[(ae=n==null?void 0:n.environment)==null?void 0:ae.ais_targets]),R=j.useMemo(()=>{var xn,er,Ht;const ne=((xn=n==null?void 0:n.environment)==null?void 0:xn.gps_history)||[],_t=((er=n==null?void 0:n.anchor)==null?void 0:er.engine_on)||!1,Et=((Ht=n==null?void 0:n.anchor)==null?void 0:Ht.status)==="MOVING"?_t?"engine":"sail":"anchor",dt={lat:y[0],lon:y[1],m:Et},kt=[...ne,dt];if(kt.length<2)return[];const It=[];let rt=[[parseFloat(kt[0].lat),parseFloat(kt[0].lon)]],Ie=kt[0].m||"sail";for(let tr=1;tr<kt.length;tr++){const jn=kt[tr],xr=parseFloat(jn.lat),uo=parseFloat(jn.lon),co=jn.m||"sail";if(co===Ie)rt.push([xr,uo]);else{rt.push([xr,uo]);let fo="#38bdf8",ca=3,ho=.85;Ie==="engine"?fo="#f97316":Ie==="anchor"&&(fo="rgba(220, 220, 220, 0.55)",ca=2,ho=.6),It.push({positions:rt,color:fo,weight:ca,opacity:ho}),rt=[[xr,uo]],Ie=co}}if(rt.length>=2){let tr="#38bdf8",jn=3,xr=.85;Ie==="engine"?tr="#f97316":Ie==="anchor"&&(tr="rgba(220, 220, 220, 0.55)",jn=2,xr=.6),It.push({positions:rt,color:tr,weight:jn,opacity:xr})}return It},[(he=n==null?void 0:n.environment)==null?void 0:he.gps_history,(de=n==null?void 0:n.anchor)==null?void 0:de.engine_on,(fe=n==null?void 0:n.anchor)==null?void 0:fe.status,y]);return T.jsxs("div",{className:"px-2 pt-5 pb-4 landscape:p-2 landscape:pt-4 space-y-2 landscape:space-y-2",children:[f&&T.jsx("div",{className:"fixed inset-0 z-[5000] flex items-center justify-center p-4 bg-black/80 backdrop-blur-md overflow-y-auto",children:T.jsxs("div",{className:"bg-[#1a1a1a] border border-white/10 p-6 landscape:p-5 rounded-[2rem] shadow-2xl max-w-sm w-full space-y-4 landscape:space-y-3 my-auto",children:[T.jsx("div",{className:"bg-red-500/20 w-12 h-12 rounded-full flex items-center justify-center mx-auto shadow-lg text-red-500",children:T.jsx(Xz,{size:24})}),T.jsxs("div",{className:"space-y-1 text-center",children:[T.jsx("h2",{className:"text-lg font-black uppercase tracking-tight text-white font-mono leading-none",children:"Sicurezza API"}),T.jsx("p",{className:"text-gray-400 text-[11px] font-bold px-2",children:"Autorizza il certificato per ricevere i dati."})]}),T.jsxs("div",{className:"space-y-2 pt-2",children:[T.jsx("button",{onClick:()=>window.open(`${i}`,"_blank"),className:"w-full bg-red-500 hover:bg-red-600 text-white font-black py-3.5 rounded-2xl transition-all shadow-lg active:scale-95 flex items-center justify-center gap-2 uppercase text-[11px] tracking-widest font-mono",children:"1. Autorizza SSL"}),T.jsx("p",{className:"text-[9px] text-gray-300 font-black uppercase tracking-tighter text-center",children:"Poi chiudi la scheda e torna qui"}),T.jsx("button",{onClick:()=>h(!1),className:"w-full bg-white/5 hover:bg-white/10 text-white font-black py-3 rounded-2xl border border-white/10 active:scale-95 uppercase text-[11px] tracking-widest font-mono",children:"2. Ho fatto"})]})]})}),T.jsxs("div",{className:"grid grid-cols-2 gap-2 landscape:gap-2",children:[T.jsx("div",{onClick:()=>t(1),className:"cursor-pointer active:scale-95 transition-transform",children:T.jsx(TS,{title:"BATTERIA",icon:T.jsx(Jz,{className:"text-green-500"}),value:`${((Re=(Fe=n==null?void 0:n.power)==null?void 0:Fe.soc)==null?void 0:Re.toFixed(1))||"-"}%`,sub:T.jsxs("span",{className:((oe=n==null?void 0:n.power)==null?void 0:oe.dc_draw_w)>=0?"text-green-400":"text-gray-100",children:[((ve=n==null?void 0:n.power)==null?void 0:ve.dc_draw_w)>0?`+${Math.round(n.power.dc_draw_w)}`:Math.round(((U=n==null?void 0:n.power)==null?void 0:U.dc_draw_w)||0),T.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]})})}),T.jsx("div",{onClick:()=>t(3),className:"cursor-pointer active:scale-95 transition-transform",children:T.jsx(TS,{title:"BANCHINA",icon:T.jsx(p4,{className:(Z=n==null?void 0:n.power)!=null&&Z.shore_power?"text-green-500":"text-red-500"}),value:(me=n==null?void 0:n.power)!=null&&me.shore_power?"ON":"OFF",sub:T.jsxs("div",{className:"flex flex-col items-end leading-none",children:[T.jsxs("span",{className:Y4((ce=n==null?void 0:n.power)==null?void 0:ce.ac_power_w,(Te=n==null?void 0:n.switches)==null?void 0:Te.shore_limit,(_e=n==null?void 0:n.power)==null?void 0:_e.shore_v,(Ce=n==null?void 0:n.power)==null?void 0:Ce.shore_power),children:[Math.round(((nt=n==null?void 0:n.power)==null?void 0:nt.ac_power_w)||0),T.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]}),((At=n==null?void 0:n.power)==null?void 0:At.shore_power)&&((Wt=n==null?void 0:n.power)==null?void 0:Wt.shore_v)>50&&T.jsxs("span",{className:`${X4((ut=n==null?void 0:n.power)==null?void 0:ut.shore_v)} text-[12px] font-bold mt-1.5`,children:["(",(gn=(Nt=n==null?void 0:n.power)==null?void 0:Nt.shore_v)==null?void 0:gn.toFixed(0),"V)"]})]})})})]}),T.jsxs("div",{className:"flex flex-col md:flex-row gap-2 landscape:gap-2 w-full",children:[T.jsxs("div",{className:"w-full md:w-1/2 grid grid-cols-4 md:grid-cols-2 gap-2",children:[T.jsx("div",{onClick:()=>t(2),className:"cursor-pointer active:scale-95 transition-transform h-full",children:T.jsx(Wf,{icon:T.jsx(hC,{size:18}),title:"POZZ.",val:(Jn=n==null?void 0:n.environment)==null?void 0:Jn.temp_pozzetto,color:"text-yellow-500"})}),T.jsx(Wf,{icon:T.jsx(_4,{size:18}),title:"QUADR.",val:(yr=n==null?void 0:n.environment)==null?void 0:yr.temp_quadrato,color:"text-orange-500"}),T.jsx(Wf,{icon:T.jsx(SS,{size:18}),title:"FRIGO",val:(xi=n==null?void 0:n.environment)==null?void 0:xi.temp_frigo,color:"text-cyan-400",valueColor:OS((Qs=n==null?void 0:n.environment)==null?void 0:Qs.temp_frigo)}),T.jsx(Wf,{icon:T.jsx(SS,{size:18}),title:"FREEZER",val:(Js=n==null?void 0:n.environment)==null?void 0:Js.temp_freezer,color:"text-blue-500",valueColor:OS((Rc=n==null?void 0:n.environment)==null?void 0:Rc.temp_freezer)})]}),T.jsxs("div",{className:`w-full md:w-1/2 bg-white/5 rounded-[2rem] flex flex-col divide-y divide-white/5 border border-white/10 overflow-hidden shadow-xl ${s?"opacity-60 grayscale-[0.5]":"opacity-100"}`,children:[T.jsx(lv,{icon:T.jsx(a4,{className:"text-blue-400"}),name:"Pompa Acqua",isOn:(el=n==null?void 0:n.switches)==null?void 0:el.pump_on,onToggle:ne=>r("pump",ne),disabled:s}),T.jsx(lv,{icon:T.jsx(s4,{className:"text-orange-400"}),name:"Boiler",isOn:(tl=n==null?void 0:n.switches)==null?void 0:tl.boiler_on,onToggle:ne=>r("boiler",ne),disabled:s}),T.jsx(lv,{icon:T.jsx(y4,{className:"text-purple-400"}),name:"Lavatrice",isOn:(zc=n==null?void 0:n.switches)==null?void 0:zc.washing_machine_on,onToggle:ne=>r("washer",ne),disabled:s})]})]}),T.jsxs("div",{className:"space-y-3 pb-24 flex flex-col items-center w-full",children:[!d&&T.jsxs("div",{className:"w-full bg-[#121212]/90 backdrop-blur-xl border border-white/10 p-4 rounded-[2rem] shadow-2xl flex flex-col gap-2.5 text-white",children:[T.jsxs("div",{className:"flex items-center gap-2 w-full",children:[T.jsx(Yz,{size:14,className:`${((nl=n==null?void 0:n.anchor)==null?void 0:nl.status)==="LOCKED"?"text-cyan-400":((oa=n==null?void 0:n.anchor)==null?void 0:oa.status)==="DRAGGING"||((rl=n==null?void 0:n.anchor)==null?void 0:rl.status)==="DRIFTING"?"text-red-500 animate-pulse":((Bc=n==null?void 0:n.anchor)==null?void 0:Bc.status)==="LEARNING"||((_i=n==null?void 0:n.anchor)==null?void 0:_i.status)==="SETTLING"?"text-yellow-400 animate-spin-slow":"text-green-400"}`}),T.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-white font-mono leading-none whitespace-nowrap",children:((Fc=n==null?void 0:n.anchor)==null?void 0:Fc.description)||"In Navigazione"})]}),((Vc=n==null?void 0:n.anchor)==null?void 0:Vc.lat)&&T.jsx("div",{className:"w-full flex items-center justify-between mt-0.5 border-b border-white/5 pb-2",children:T.jsx("span",{onClick:ne=>{var dt,kt,It,rt,Ie,xn,er;if(ne.stopPropagation(),!((dt=n==null?void 0:n.anchor)!=null&&dt.status))return;const Et=n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"||n.anchor.status==="LEARNING"?`⛵ ROTEVISTA: [${n.anchor.description||n.anchor.status}] | D: ${((kt=n.anchor.boat_dist)==null?void 0:kt.toFixed(1))||"0.0"}m | ${Uf(n.anchor.lat,!0)} ${Uf(n.anchor.lon,!1)} | R: ${((It=n.anchor.radius)==null?void 0:It.toFixed(0))||"0"}m | Prec: ±${((rt=n.anchor.std_dev)==null?void 0:rt.toFixed(1))||"0.0"}m | Fondale: ${((Ie=n.anchor.depth)==null?void 0:Ie.toFixed(1))||"0.0"}m | Catena: ${((xn=n.anchor.chain)==null?void 0:xn.toFixed(0))||"0"}m | Volvo: ${n.anchor.engine_on?"ON":"OFF"} (${((er=n.anchor.engine_v)==null?void 0:er.toFixed(1))||"0.0"}V)${n.anchor.score>0?` [Score: ${n.anchor.score}/70]`:""}`:`⛵ ROTEVISTA: ${n.anchor.description||n.anchor.status}`;if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(Et).then(()=>{_(!0),setTimeout(()=>_(!1),2e3)});else{const Ht=document.createElement("textarea");Ht.value=Et,Ht.style.position="fixed",Ht.style.opacity="0",document.body.appendChild(Ht),Ht.focus(),Ht.select(),document.execCommand("copy"),_(!0),setTimeout(()=>_(!1),2e3),document.body.removeChild(Ht)}},className:`text-[10px] font-mono tracking-tight cursor-pointer transition-colors duration-200 uppercase font-black leading-none ${v?"text-green-400 animate-pulse":"text-gray-400 hover:text-white"}`,children:v?"✓ Copiato in appunti":`📌 Posiz: ${Uf(n.anchor.lat,!0)} ${Uf(n.anchor.lon,!1)}`})}),((il=n==null?void 0:n.anchor)==null?void 0:il.status)&&T.jsx("div",{className:`grid ${n.anchor.status==="MOVING"&&(!n.anchor.radius||n.anchor.radius===0)?"grid-cols-2 sm:grid-cols-4":"grid-cols-3"} gap-2 py-2.5 border-t border-b border-white/5 text-center bg-white/[0.01] rounded-2xl`,children:n.anchor.status==="MOVING"&&n.anchor.radius>0?T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),T.jsx("span",{className:"text-sm font-black font-mono mt-0.5 text-gray-500",children:"--"})]}),T.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Raggio Previsto"}),T.jsxs("span",{className:"text-sm font-black font-mono mt-0.5 text-cyan-400",children:[((ol=n.anchor.radius)==null?void 0:ol.toFixed(0))||"0",T.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),T.jsxs("div",{className:"flex flex-col font-mono",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Spazio in Baia"}),T.jsx("span",{className:`text-sm font-black mt-0.5 ${n.anchor.description&&n.anchor.description.includes("Ristretto")?"text-orange-400 animate-pulse":"text-green-400"}`,children:n.anchor.description&&n.anchor.description.includes("Ristretto")?"OCCUPATO":"LIBERO"})]})]}):n.anchor.status==="MOVING"?T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex flex-row items-center justify-center gap-2 px-2 py-1",children:[T.jsx("span",{className:"text-2xl select-none leading-none",children:"🚤"}),T.jsxs("div",{className:"flex flex-col items-start justify-center",children:[T.jsx("span",{className:"text-[8px] font-black uppercase text-yellow-400 tracking-wider leading-none",children:"Motore"}),T.jsx("span",{className:"text-sm font-black font-mono mt-0.5 text-white leading-none",children:((al=n==null?void 0:n.trip)==null?void 0:al.engine_time)||"0m"}),T.jsx("span",{className:"text-[9px] font-bold font-mono text-gray-400 mt-1 leading-none",children:((Uc=n==null?void 0:n.trip)==null?void 0:Uc.engine_nm)||"0.00 NM"})]})]}),T.jsxs("div",{className:"flex flex-row items-center justify-center gap-2 border-l border-white/5 sm:border-r px-2 py-1",children:[T.jsx("span",{className:"text-2xl select-none leading-none",children:"⛵"}),T.jsxs("div",{className:"flex flex-col items-start justify-center",children:[T.jsx("span",{className:"text-[8px] font-black uppercase text-cyan-400 tracking-wider leading-none",children:"Vela"}),T.jsx("span",{className:"text-sm font-black font-mono mt-0.5 text-white leading-none",children:((Wc=n==null?void 0:n.trip)==null?void 0:Wc.sail_time)||"0m"}),T.jsx("span",{className:"text-[9px] font-bold font-mono text-gray-400 mt-1 leading-none",children:((Hc=n==null?void 0:n.trip)==null?void 0:Hc.sail_nm)||"0.00 NM"})]})]}),T.jsxs("div",{className:"flex flex-row items-center justify-center gap-2 border-t sm:border-t-0 border-white/5 sm:border-r px-2 py-1",children:[T.jsx("span",{className:"text-2xl select-none leading-none",children:"⏱️"}),T.jsxs("div",{className:"flex flex-col items-start justify-center",children:[T.jsx("span",{className:"text-[8px] font-black uppercase text-gray-400 tracking-wider leading-none",children:"Tratta Totale"}),T.jsx("span",{className:"text-sm font-black font-mono mt-0.5 text-gray-200 leading-none",children:((Zc=n==null?void 0:n.trip)==null?void 0:Zc.total_nav_time)||"0m"}),T.jsx("span",{className:"text-[9px] font-bold font-mono text-cyan-400 mt-1 leading-none",children:((Gc=n==null?void 0:n.trip)==null?void 0:Gc.total_nm)||"0.00 NM"})]})]}),T.jsxs("div",{className:"flex flex-row items-center justify-center gap-2 border-t sm:border-t-0 border-l border-white/5 sm:border-l-0 px-2 py-1",children:[T.jsx("span",{className:"text-2xl select-none leading-none",children:"⚡"}),T.jsxs("div",{className:"flex flex-col items-start justify-center font-mono",children:[T.jsx("span",{className:"text-[8px] font-black uppercase text-cyan-400 tracking-wider leading-none",children:"SOG"}),T.jsxs("span",{className:"text-sm font-black mt-0.5 text-cyan-400 leading-none",children:[(((Kc=n==null?void 0:n.anchor)==null?void 0:Kc.sog)!==void 0?n.anchor.sog:((aa=n==null?void 0:n.gps)==null?void 0:aa.sog)!==void 0?n.gps.sog:(qc=n==null?void 0:n.gps)!=null&&qc.speed?parseFloat(n.gps.speed)*1.94384:0).toFixed(1),T.jsx("span",{className:"text-[9px] font-bold ml-0.5",children:"kn"})]}),T.jsxs("span",{className:"text-[9px] font-bold text-gray-400 mt-1 leading-none",children:["Prua: ",Math.round(((Xc=n==null?void 0:n.environment)==null?void 0:Xc.heading)!==void 0?n.environment.heading:((Yc=n==null?void 0:n.gps)==null?void 0:Yc.cog)||0),"°"]})]})]})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),T.jsxs("span",{className:`text-sm font-black font-mono mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-500":"text-cyan-400"}`,children:[((Qc=n.anchor.boat_dist)==null?void 0:Qc.toFixed(1))||"0.0",T.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),T.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Raggio Guardia"}),T.jsxs("span",{className:`text-sm font-black font-mono mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-500":"text-white"}`,children:[((yn=n.anchor.radius)==null?void 0:yn.toFixed(0))||"0",T.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),T.jsxs("div",{className:"flex flex-col font-mono",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(pe=n==null?void 0:n.trip)!=null&&pe.anchor_time&&((sl=n==null?void 0:n.trip)==null?void 0:sl.anchor_time)!=="0m"?"Tempo Sosta":"Precisione"}),T.jsx("span",{className:`text-sm font-black mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-400":"text-cyan-400"}`,children:(ll=n==null?void 0:n.trip)!=null&&ll.anchor_time&&((ul=n==null?void 0:n.trip)==null?void 0:ul.anchor_time)!=="0m"?n.trip.anchor_time:n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"Calcolo...":n.anchor.std_dev>0?`±${n.anchor.std_dev.toFixed(1)}m`:"±0.0m"})]})]})}),T.jsxs("div",{className:"flex justify-between items-start w-full font-mono border-t border-white/5 pt-2 mt-0.5",children:[T.jsxs("div",{className:"flex items-start gap-4 flex-shrink-0",children:[T.jsxs("div",{className:"flex flex-col items-start leading-none",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Fondo"}),T.jsx("span",{className:"text-xs font-black text-white mt-1",children:((cl=n==null?void 0:n.anchor)==null?void 0:cl.depth)>0?`${n.anchor.depth.toFixed(1)}m`:"--"})]}),(((sa=n==null?void 0:n.anchor)==null?void 0:sa.chain)>0&&((fl=n==null?void 0:n.anchor)==null?void 0:fl.status)!=="MOVING"||((Dr=n==null?void 0:n.anchor)==null?void 0:Dr.status)==="MOVING"&&((hl=n==null?void 0:n.anchor)==null?void 0:hl.radius)>0&&((Jc=n==null?void 0:n.anchor)==null?void 0:Jc.chain)>0)&&T.jsxs("div",{className:"flex flex-col items-start leading-none border-l border-white/5 pl-3",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:((ef=n==null?void 0:n.anchor)==null?void 0:ef.status)==="MOVING"?"Suggerita":"Catena"}),T.jsxs("span",{className:"text-xs font-black text-white mt-1",children:[n.anchor.chain.toFixed(0),"m"]})]})]}),T.jsxs("div",{className:"flex flex-col items-end leading-none text-right pl-2 truncate flex-1",children:[T.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(tf=n==null?void 0:n.anchor)!=null&&tf.engine_on?"Motore":((nf=n==null?void 0:n.anchor)==null?void 0:nf.status)==="LEARNING"&&((dl=n==null?void 0:n.anchor)!=null&&dl.low_conf_reason)?"Nota":"Stato"}),T.jsx("div",{className:"mt-1",children:(rf=n==null?void 0:n.anchor)!=null&&rf.engine_on?T.jsxs("span",{className:"text-yellow-400 font-black text-xs whitespace-nowrap animate-pulse flex items-center gap-1",children:["⚡ Volvo: ",(so=n.anchor.engine_v)==null?void 0:so.toFixed(1),"V ",n.anchor.status!=="MOVING"&&n.anchor.score>0?`[${n.anchor.score}/70]`:""]}):((of=n==null?void 0:n.anchor)==null?void 0:of.status)==="LEARNING"&&((af=n==null?void 0:n.anchor)!=null&&af.low_conf_reason)?T.jsx("span",{className:"text-orange-400 font-bold text-[9.5px] tracking-tight whitespace-nowrap",children:n.anchor.low_conf_reason}):((sf=n==null?void 0:n.anchor)==null?void 0:sf.status)!=="MOVING"&&((lf=n==null?void 0:n.anchor)==null?void 0:lf.std_dev)>0?T.jsxs("span",{className:"text-gray-300 font-medium text-xs whitespace-nowrap",children:["Prec: ",T.jsxs("span",{className:"text-cyan-400 font-bold",children:["±",n.anchor.std_dev.toFixed(1),"m"]})]}):T.jsx("span",{className:"text-green-400 font-black text-xs uppercase whitespace-nowrap",children:"Ottima"})})]})]}),((uf=n==null?void 0:n.anchor)==null?void 0:uf.status)!=="MOVING"&&((la=n==null?void 0:n.trip)==null?void 0:la.total_nav_time)&&n.trip.total_nav_time!=="0m"&&(()=>{var It,rt;const ne=parseFloat((It=n==null?void 0:n.trip)==null?void 0:It.engine_nm)||0,_t=parseFloat((rt=n==null?void 0:n.trip)==null?void 0:rt.sail_nm)||0,Et=ne+_t,dt=Et>0?Math.round(ne/Et*100):0,kt=Et>0?Math.round(_t/Et*100):0;return T.jsxs("div",{className:"w-full flex flex-col gap-1.5 font-mono border-t border-white/5 pt-2 mt-1",children:[T.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] leading-none",children:[T.jsxs("span",{className:"flex items-center gap-1 text-cyan-400 font-bold",children:[T.jsx("span",{className:"text-xs",children:"⛵"})," Vela"]}),T.jsx("span",{className:"text-white font-medium",children:n.trip.sail_time||"0m"}),T.jsx("span",{className:"text-cyan-400 font-bold text-right text-[10px]",children:n.trip.sail_nm||"0.00 NM"}),T.jsxs("span",{className:"text-gray-500 font-normal text-right text-[9px]",children:["(",kt,"%)"]})]}),T.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] leading-none",children:[T.jsxs("span",{className:"flex items-center gap-1 text-yellow-400 font-bold",children:[T.jsx("span",{className:"text-xs",children:"🚤"})," Motore"]}),T.jsx("span",{className:"text-white font-medium",children:n.trip.engine_time||"0m"}),T.jsx("span",{className:"text-yellow-400 font-bold text-right text-[10px]",children:n.trip.engine_nm||"0.00 NM"}),T.jsxs("span",{className:"text-gray-500 font-normal text-right text-[9px]",children:["(",dt,"%)"]})]}),T.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] border-t border-white/5 pt-1.5 leading-none",children:[T.jsxs("span",{className:"flex items-center gap-1 text-gray-400 font-bold",children:[T.jsx("span",{className:"text-xs",children:"⏱️"})," Totale"]}),T.jsx("span",{className:"text-gray-200 font-medium",children:n.trip.total_nav_time||"0m"}),T.jsx("span",{className:"text-white font-black text-right text-[11px]",children:n.trip.total_nm||"0.00 NM"}),T.jsx("span",{className:"text-right"})]})]})})()]}),T.jsx("div",{className:`${d?"map-full-screen":"h-64 landscape:h-80 w-[88%] rounded-[2.5rem]"} overflow-hidden border border-white/10 shadow-2xl relative isolate transition-opacity duration-200`,children:T.jsxs(bC,{center:y,zoom:C,maxZoom:22,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[T.jsx(Yg,{url:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",maxZoom:22,maxNativeZoom:18,errorTileUrl:""}),T.jsx(Q4,{coords:y,anchorCoords:(bi=n==null?void 0:n.anchor)!=null&&bi.lat&&((pl=n==null?void 0:n.anchor)!=null&&pl.lon)?[parseFloat(n.anchor.lat),parseFloat(n.anchor.lon)]:null,isAnchored:A,trailSegments:R,autoFollow:l,setAutoFollow:u,isMapFull:d,setIsMapFull:m,smartZoom:C,onZoomChange:$}),((ml=n==null?void 0:n.anchor)==null?void 0:ml.lat)&&((wi=n==null?void 0:n.anchor)==null?void 0:wi.lon)&&n.anchor.radius>0&&n.anchor.status==="MOVING"&&T.jsx(Kr,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:n.anchor.description&&n.anchor.description.includes("Ristretto")?"#f97316":"#22d3ee",fillColor:"#22d3ee",fillOpacity:.04,weight:1.5,dashArray:"4, 8",interactive:!1}}),((Me=n==null?void 0:n.anchor)==null?void 0:Me.lat)&&((He=n==null?void 0:n.anchor)==null?void 0:He.lon)&&n.anchor.radius>0&&(n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING")&&T.jsx(Kr,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:"#f97316",fillOpacity:0,weight:1.5,dashArray:"6, 10",interactive:!1}}),((lo=n==null?void 0:n.anchor)==null?void 0:lo.lat)&&((Rr=n==null?void 0:n.anchor)==null?void 0:Rr.lon)&&n.anchor.radius>0&&(n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING")&&T.jsx(Kr,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius+Math.max(15,n.anchor.radius*.3),pathOptions:{color:n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"?"#ef4444":"#22d3ee",fillOpacity:0,weight:1.5,dashArray:"8, 12",interactive:!1}}),U4(M).map(ne=>{const _t=F4(z,ne.r);return T.jsxs(I.Fragment,{children:[T.jsx(Kr,{center:[z.lat,z.lon],radius:ne.r,pathOptions:{color:"#ffffff",weight:1,opacity:.55,fillOpacity:0,dashArray:"4, 12",interactive:!1}}),T.jsx(Bn,{position:_t,icon:new mn.DivIcon({html:`<div style="font-size: 8px; font-weight: 900; color: rgba(255, 255, 255, 0.90); font-family: monospace; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; white-space: nowrap; text-align: right; width: 100%;">${ne.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ring-${ne.r}`)}),(((zr=n==null?void 0:n.environment)==null?void 0:zr.ais_targets)||[]).map(ne=>{var It;const _t=ne.isMoving!==void 0?ne.isMoving:!ne.isAnchored&&ne.sog>=.3,Et=Z4(ne),dt=ne.risk==="RED"||ne.risk==="ORANGE",kt=ne.isTactical!==!1&&(ne.isTactical||dt||M>=15);return T.jsxs(I.Fragment,{children:[kt&&ne.trail&&ne.trail.length>=2&&T.jsx(Ga,{positions:ne.trail.map(rt=>[rt.lat,rt.lon]),color:"#ffffff",weight:1.5,opacity:.4,dashArray:"2, 6",interactive:!1}),_t?T.jsxs(I.Fragment,{children:[kt&&T.jsx(Ga,{positions:[[ne.lat,ne.lon],W4(ne.lat,ne.lon,ne.cog,ne.sog)],pathOptions:{color:Et,weight:2.5,opacity:.8,dashArray:"6, 6"},interactive:!1}),T.jsx(Bn,{position:[ne.lat,ne.lon],icon:G4(ne.cog,Et,M),interactive:!1}),kt&&T.jsx(Bn,{position:[ne.lat,ne.lon],icon:q4(ne.name,ne.sog,ne.cpa,ne.tcpa,ne.crossDir,ne.risk,ne.riskMsg,ne.age,Et,ne.type,M),interactive:!1})]}):T.jsxs(I.Fragment,{children:[T.jsx(Bn,{position:[ne.lat,ne.lon],icon:H4(ne.risk),interactive:!1}),kt&&T.jsx(Bn,{position:[ne.lat,ne.lon],icon:K4(ne.name,ne.risk,ne.riskMsg,ne.dist,ne.age,ne.type,M),interactive:!1}),ne.risk==="RED"&&ne.riskMsg==="SOPRA SUA ANCORA!"&&ne.anchorLat&&ne.anchorLon&&T.jsxs(I.Fragment,{children:[T.jsx(Kr,{center:[ne.anchorLat,ne.anchorLon],radius:((It=n==null?void 0:n.anchor)==null?void 0:It.radius)||15,pathOptions:{color:"#ef4444",weight:1,opacity:.5,fillColor:"#ef4444",fillOpacity:.05,dashArray:"6, 12",interactive:!1}}),T.jsx(Bn,{position:[ne.anchorLat,ne.anchorLon],icon:B4,zIndexOffset:400,interactive:!1})]})]})]},ne.id)}),((ua=n==null?void 0:n.anchor)==null?void 0:ua.lat)&&((be=n==null?void 0:n.anchor)==null?void 0:be.lon)&&n.anchor.status!=="MOVING"&&T.jsx(Bn,{position:[n.anchor.lat,n.anchor.lon],icon:z4(B),zIndexOffset:500}),T.jsx(Bn,{position:y,icon:R4,zIndexOffset:1e3})]})})]})]})},TS=({icon:e,title:t,value:n,sub:r})=>T.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 flex flex-row items-center justify-between shadow-lg text-white group hover:bg-white/10 transition-colors h-full",children:[T.jsxs("div",{className:"flex flex-col",children:[T.jsxs("div",{className:"flex items-center gap-1 text-gray-300 text-[9px] font-black tracking-widest uppercase whitespace-nowrap",children:[e," ",t]}),T.jsx("div",{className:"text-3xl font-black mt-1 tracking-tighter",children:n})]}),T.jsx("div",{className:"text-[18px] text-gray-200 font-black uppercase tracking-tight text-right pl-2 leading-tight",children:r})]}),Wf=({icon:e,title:t,val:n,color:r,valueColor:i="text-white"})=>T.jsxs("div",{className:"bg-white/5 py-4 landscape:py-3 rounded-3xl border border-white/5 flex flex-col items-center gap-1 text-center shadow-md hover:bg-white/10 transition-colors h-full justify-center text-white",children:[T.jsx("div",{className:r,children:e}),T.jsx("div",{className:"text-[8px] font-black text-gray-300 uppercase tracking-tighter mt-1",children:t}),T.jsxs("div",{className:`text-lg font-black ${i}`,children:[(n==null?void 0:n.toFixed(1))||"-","°"]})]}),lv=({icon:e,name:t,isOn:n,onToggle:r,disabled:i})=>T.jsxs("div",{className:`flex flex-1 items-center justify-between p-5 landscape:p-4 bg-white/[0.02] text-white transition-all ${i?"pointer-events-none opacity-40":"hover:bg-white/5"}`,children:[T.jsxs("div",{className:"flex items-center gap-3",children:[I.cloneElement(e,{size:20,className:n?e.props.className:"text-gray-700 opacity-50"}),T.jsx("span",{className:"text-sm font-bold text-white tracking-tight uppercase",children:t})]}),T.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[T.jsx("input",{type:"checkbox",className:"sr-only peer",checked:n||!1,onChange:o=>r(o.target.checked),disabled:i}),T.jsx("div",{className:"w-11 h-6 bg-gray-800 rounded-full peer peer-checked:bg-cyan-500 after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-full shadow-inner"})]})]}),eB=e=>new mn.DivIcon({html:`
|
|
284
|
+
<div style="transform: rotate(${e||0}deg); font-size: 22px; color: #38bdf8; filter: drop-shadow(0 0 5px rgba(0,0,0,0.9)); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;">
|
|
285
|
+
▲
|
|
286
|
+
</div>
|
|
287
|
+
`,className:"own-boat-ais-marker",iconSize:[26,26],iconAnchor:[13,13]}),tB=(e,t,n=14)=>{const i=hu(e.type).color,o=n<=13?6:n===14?8:10,s=n<=13?12:n===14?15:18,l=e.isMoving!==void 0?e.isMoving:!e.isAnchored&&e.sog>=.3,u=t?"border: 2px solid #22d3ee; box-shadow: 0 0 8px #22d3ee;":"border: 1px solid rgba(0,0,0,0.85);";return l?new mn.DivIcon({html:`
|
|
288
|
+
<div style="width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer;">
|
|
289
|
+
<span style="transform: rotate(${e.cog||0}deg); font-size: ${s}px; color: ${i}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; line-height: 1; display: inline-block;">
|
|
290
|
+
▲
|
|
291
|
+
</span>
|
|
292
|
+
</div>
|
|
293
|
+
`,className:"ais-target-moving",iconSize:[32,32],iconAnchor:[16,16]}):new mn.DivIcon({html:`
|
|
294
|
+
<div style="width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer;">
|
|
295
|
+
<div style="width: ${o}px; height: ${o}px; background-color: ${i}; border-radius: 50%; ${u}"></div>
|
|
296
|
+
</div>
|
|
297
|
+
`,className:"ais-target-stationary",iconSize:[32,32],iconAnchor:[16,16]})},nB=(e,t,n,r,i=15)=>{const o=Math.PI/180,s=r*1852*(i/60),l=e+s*Math.cos(n*o)/111139,u=t+s*Math.sin(n*o)/(111139*Math.cos(e*o));return[l,u]},hu=e=>{const t=parseInt(e)||0;return t===36?{emoji:"⛵",label:"Vela",color:"#d946ef"}:t===37?{emoji:"🛥️",label:"Yacht / Motore",color:"#d946ef"}:t===30?{emoji:"🐟",label:"Peschereccio",color:"#ea580c"}:t>=50&&t<=59?{emoji:"👨🏻✈️",label:"Pilota / Servizio",color:"#0284c7"}:t===31||t===32||t===52?{emoji:"🚜",label:"Rimorchiatore",color:"#0284c7"}:t>=60&&t<=69?{emoji:"⛴️",label:"Passeggeri",color:"#2563eb"}:t>=70&&t<=79?{emoji:"📦",label:"Cargo",color:"#16a34a"}:t>=80&&t<=89?{emoji:"🛢️",label:"Cisterna / Tanker",color:"#dc2626"}:t>=40&&t<=49?{emoji:"🚤",label:"Unità Veloce (HSC)",color:"#eab308"}:{emoji:"🚢",label:"Nave",color:"#94a3b8"}},rB=e=>e>=7.5?12:e>=3.5?14:e>=1.5?15:17,iB=e=>e>=19?[{r:15,label:"15m"},{r:30,label:"30m"},{r:45,label:"45m"}]:e===18?[{r:25,label:"25m"},{r:50,label:"50m"},{r:75,label:"75m"}]:e===17?[{r:50,label:"50m"},{r:100,label:"100m"},{r:150,label:"150m"}]:e===16?[{r:100,label:"100m"},{r:200,label:"200m"},{r:300,label:"300m"}]:e===15?[{r:250,label:"250m"},{r:500,label:"500m"},{r:750,label:"750m"}]:e===14?[{r:500,label:"500m"},{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"}]:e===13?[{r:926,label:"0.5 NM"},{r:1852,label:"1 NM"},{r:3704,label:"2 NM"}]:[{r:1852,label:"1 NM"},{r:3704,label:"2 NM"},{r:9260,label:"5 NM"}],oB=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},aB=e=>{const t=e.risk==="RED",n=t?"#ef4444":"#f97316",r=hu(e.type),o=(e.isMoving!==void 0?e.isMoving:!e.isAnchored&&e.sog>=.3)?`${e.sog} kn • ${e.cog}°`:`ALL'ANCORA (${e.dist}m)`;let s="";if(t){const u=e.riskMsg||"COLLISIONE!",f=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"",h=e.cpa!==null&&e.cpa!==void 0?` • CPA: ${e.cpa}m`:"";s=`🚨 ${u}${h}${f}`}else{const u=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"";s=`⚠️ ${e.cpa!==null&&e.cpa!==void 0?`CPA: ${e.cpa}m`:`Dist: ${e.dist}m`}${u}`}const l="-1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000, 0 0 5px #000";return new mn.DivIcon({html:`
|
|
298
|
+
<div style="display: flex; flex-direction: row; align-items: flex-start; gap: 4px; white-space: nowrap; font-family: monospace; line-height: 1.15; pointer-events: none;">
|
|
299
|
+
<span style="font-size: 16px; line-height: 1; filter: drop-shadow(0 0 3px black);">${r.emoji}</span>
|
|
300
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
|
301
|
+
<span style="font-size: 12px; font-weight: 900; color: ${n}; text-shadow: ${l}; text-transform: uppercase;">${e.name||"Sconosciuto"}</span>
|
|
302
|
+
<span style="font-size: 9px; font-weight: 800; color: #ffffff; text-shadow: ${l}; margin-top: 1px;">${o}</span>
|
|
303
|
+
<span style="font-size: 10px; font-weight: 900; color: ${n}; text-shadow: ${l}; margin-top: 1.5px;">${s}</span>
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
`,className:"ais-threat-floating-label",iconSize:[280,48],iconAnchor:[-12,24]})},sB=({centerCoords:e,autoCenter:t,setAutoCenter:n,smartZoom:r,flyTarget:i,isTargetSelected:o,cameraSnapshotRef:s,restoreSignal:l,onZoomChange:u,onBoundsChange:f})=>{const h=t_(),d=j.useRef(!1),m=j.useCallback(()=>{u&&u(h.getZoom()),f&&f(h.getBounds().pad(.15))},[h,u,f]);_C({dragstart:()=>n(!1),zoomstart:_=>{_&&_.originalEvent&&(d.current=!0)},zoomend:m,moveend:m}),j.useEffect(()=>{m()},[m]),j.useEffect(()=>{if(!t||e[0]===0||o)return;const _=h.getZoom();!d.current&&_!==r?h.flyTo(e,r,{duration:.8}):h.panTo(e,{animate:!0,duration:.5})},[t,e,r,o,h]),j.useEffect(()=>{if(i&&i.lat&&i.lon){const _=Math.max(h.getZoom(),15),S=window.innerHeight>window.innerWidth?50:20,y=h.project([i.lat,i.lon],_),b=mn.point(y.x,y.y-S),w=h.unproject(b,_);h.flyTo(w,_,{duration:.8})}},[i,h]),j.useEffect(()=>{if(l&&s.current){const _=s.current;h.flyTo(_.center,_.zoom,{duration:.7}),n(_.autoCenter),s.current=null}},[l,s,h,n]);const v=_=>{d.current=!0;const x=h.getZoom(),S=_==="in"?x+1:x-1;h.setZoom(S),u&&u(S)};return T.jsxs("div",{className:"absolute right-3 bottom-[175px] flex flex-col gap-2.5 z-[1000]",children:[T.jsx("button",{onClick:()=>v("in"),className:"w-12 h-12 rounded-2xl bg-[#161b22]/90 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white active:scale-95 shadow-2xl",children:T.jsx(cC,{size:22})}),T.jsx("button",{onClick:()=>v("out"),className:"w-12 h-12 rounded-2xl bg-[#161b22]/90 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white active:scale-95 shadow-2xl",children:T.jsx(lC,{size:22})}),T.jsx("button",{onClick:()=>{d.current=!1,n(!0),h.flyTo(e,r,{duration:.6})},className:`w-12 h-12 rounded-2xl border transition-all flex items-center justify-center shadow-2xl active:scale-95 ${t?"bg-cyan-500/40 border-cyan-400 text-white shadow-[0_0_15px_rgba(6,182,212,0.4)]":"bg-[#161b22]/90 border-white/20 text-gray-400"}`,children:T.jsx(fC,{size:22})})]})},lB=({manager:e,isNightMode:t=!1,initialMmsi:n=null})=>{var te,J,ae,he,de,fe,Fe,Re,oe,ve;const{data:r}=e,[i,o]=j.useState(!0),[s,l]=j.useState(null),[u,f]=j.useState(!1),[h,d]=j.useState(14),[m,v]=j.useState(null),[_,x]=j.useState(!1),S=U=>{if(U)if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(U).then(()=>{x(!0),setTimeout(()=>x(!1),2e3)});else{const Z=document.createElement("textarea");Z.value=U,Z.style.position="fixed",Z.style.opacity="0",document.body.appendChild(Z),Z.focus(),Z.select(),document.execCommand("copy"),x(!0),setTimeout(()=>x(!1),2e3),document.body.removeChild(Z)}},y=j.useRef(null),b=j.useRef(!1),[w,E]=j.useState(0),[P,A]=j.useState(null),C=parseFloat((te=r==null?void 0:r.gps)==null?void 0:te.lat)||37.9,M=parseFloat((J=r==null?void 0:r.gps)==null?void 0:J.lon)||23.4,$=j.useMemo(()=>[C,M],[C,M]),z=((ae=r==null?void 0:r.environment)==null?void 0:ae.heading)||((he=r==null?void 0:r.gps)==null?void 0:he.cog)||0,B=((de=r==null?void 0:r.anchor)==null?void 0:de.sog)!==void 0?r.anchor.sog:((fe=r==null?void 0:r.gps)==null?void 0:fe.sog)||0,R=j.useMemo(()=>rB(B),[B]),Q=j.useMemo(()=>s&&s.lat&&s.lon?{lat:s.lat,lon:s.lon}:{lat:$[0],lon:$[1]},[s,$]),H=j.useMemo(()=>{var nt,At,Wt;const U=((nt=r==null?void 0:r.environment)==null?void 0:nt.gps_history)||[],me=((At=r==null?void 0:r.anchor)==null?void 0:At.engine_on)||!1?"engine":"sail",ce=U.filter(ut=>ut.m!=="anchor");if(((Wt=r==null?void 0:r.anchor)==null?void 0:Wt.status)==="MOVING"&&ce.push({lat:$[0],lon:$[1],m:me}),ce.length<2)return[];const Te=[];let _e=[[parseFloat(ce[0].lat),parseFloat(ce[0].lon)]],Ce=ce[0].m||"sail";for(let ut=1;ut<ce.length;ut++){const Nt=ce[ut],gn=parseFloat(Nt.lat),Jn=parseFloat(Nt.lon),yr=Nt.m||"sail";if(yr===Ce)_e.push([gn,Jn]);else{_e.push([gn,Jn]);const xi=Ce==="engine"?"#f97316":t?"#38bdf8":"#0284c7";Te.push({positions:_e,color:xi,weight:3,opacity:.85}),_e=[[gn,Jn]],Ce=yr}}if(_e.length>=2){const ut=Ce==="engine"?"#f97316":t?"#38bdf8":"#0284c7";Te.push({positions:_e,color:ut,weight:3,opacity:.85})}return Te},[(Fe=r==null?void 0:r.environment)==null?void 0:Fe.gps_history,(Re=r==null?void 0:r.anchor)==null?void 0:Re.engine_on,(oe=r==null?void 0:r.anchor)==null?void 0:oe.status,$,t]),K=U=>{y.current||(y.current={center:$,zoom:14,autoCenter:i}),l(U),A(U),o(!1)},q=U=>{l(U),A(null)},X=()=>{l(null),A(null),y.current&&E(U=>U+1)},D=()=>{l(null),A(null),f(!1),y.current&&E(U=>U+1)},G=j.useMemo(()=>{var Z;return[...((Z=r==null?void 0:r.environment)==null?void 0:Z.ais_targets)||[]].sort((me,ce)=>{const Te={RED:3,ORANGE:2,GREY:1},_e=Te[me.risk]||1,Ce=Te[ce.risk]||1;if(_e!==Ce)return Ce-_e;const nt=me.cpa!==null&&me.cpa!==void 0&&me.cpa>=0?me.cpa:me.dist,At=ce.cpa!==null&&ce.cpa!==void 0&&ce.cpa>=0?ce.cpa:ce.dist;return nt-At})},[(ve=r==null?void 0:r.environment)==null?void 0:ve.ais_targets]),V=j.useMemo(()=>m?G.filter(U=>U.risk==="RED"||(s==null?void 0:s.id)===U.id?!0:m.contains([U.lat,U.lon])):G,[G,m,s]);return j.useEffect(()=>{if(!n||b.current||G.length===0)return;const U=G.find(Z=>{var ce;return((ce=Z.id)==null?void 0:ce.split(":").pop())===n||Z.id===n});if(U){b.current=!0,K(U);const Z=new URL(window.location.href);Z.searchParams.delete("mmsi"),window.history.replaceState({},"",Z.toString())}},[n,G]),T.jsxs("div",{className:"relative w-full h-[calc(100vh-4rem)] landscape:h-[calc(100vh-3.5rem)] overflow-hidden bg-[#0d1117] text-white",children:[T.jsx("div",{className:"absolute inset-0 z-0",children:T.jsxs(bC,{center:$,zoom:14,maxZoom:20,preferCanvas:!0,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[T.jsx(Yg,{url:t?"https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}":"https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",maxZoom:20,maxNativeZoom:16},t?"esri-dark":"esri-light"),T.jsx(Yg,{url:"https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",maxZoom:18,opacity:t?.85:.75}),H.map((U,Z)=>T.jsx(Ga,{positions:U.positions,color:U.color,weight:U.weight,opacity:U.opacity,lineCap:"round",lineJoin:"round",interactive:!1},`own-nav-trail-${Z}`)),T.jsx(sB,{centerCoords:$,autoCenter:i,setAutoCenter:o,smartZoom:R,flyTarget:P,isTargetSelected:!!s,cameraSnapshotRef:y,restoreSignal:w,onZoomChange:d,onBoundsChange:v}),iB(h).map(U=>{const Z=oB(Q,U.r),me=!!s,ce=me?"#06b6d4":t?"#38bdf8":"#0369a1",Te=me?"#0891b2":t?"#ffffff":"#0f172a",_e=t?"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000":"-1px -1px 0 rgba(255,255,255,0.9), 1px -1px 0 rgba(255,255,255,0.9), -1px 1px 0 rgba(255,255,255,0.9), 1px 1px 0 rgba(255,255,255,0.9)";return T.jsxs(I.Fragment,{children:[T.jsx(Kr,{center:[Q.lat,Q.lon],radius:U.r,pathOptions:{color:ce,weight:me?1.8:1.4,opacity:t?.65:.8,fillOpacity:0,dashArray:me?"6, 6":"5, 8",interactive:!1}}),T.jsx(Bn,{position:Z,icon:new mn.DivIcon({html:`<div style="font-size: 9px; font-weight: 900; color: ${Te}; font-family: monospace; text-shadow: ${_e}; white-space: nowrap; text-align: right; width: 100%;">${U.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ais-ring-${U.r}`)}),V.map(U=>{const Z=U.isMoving!==void 0?U.isMoving:!U.isAnchored&&U.sog>=.3,me=(s==null?void 0:s.id)===U.id,Te=hu(U.type).color,_e=U.risk==="RED",Ce=U.risk==="ORANGE",nt=U.trail&&U.trail.length>=2&&(_e||Ce||me||U.dist<=3704),At=Z&&(_e||Ce||me||U.dist<=5556);return T.jsxs(I.Fragment,{children:[nt&&T.jsx(Ga,{positions:U.trail.map(Wt=>[Wt.lat,Wt.lon]),color:Te,weight:me?2:1.2,opacity:.5,dashArray:"3, 5",interactive:!1}),At&&T.jsx(Ga,{positions:[[U.lat,U.lon],nB(U.lat,U.lon,U.cog,U.sog,15)],color:Te,weight:me?3:2,opacity:.85,dashArray:"6, 6",interactive:!1}),_e&&T.jsx(Kr,{center:[U.lat,U.lon],radius:Math.max(100,(U.sog||1)*45),pathOptions:{color:"#ef4444",weight:2.5,fillColor:"#ef4444",fillOpacity:.15,dashArray:"5, 5",interactive:!1}}),!_e&&Ce&&T.jsx(Kr,{center:[U.lat,U.lon],radius:Math.max(70,(U.sog||1)*35),pathOptions:{color:"#f97316",weight:2,fillColor:"#f97316",fillOpacity:.1,dashArray:"6, 6",interactive:!1}}),me&&T.jsx(Kr,{center:[U.lat,U.lon],radius:Math.max(80,(U.sog||1)*35),pathOptions:{color:"#22d3ee",weight:2.2,fillColor:"#22d3ee",fillOpacity:.18,dashArray:"3, 5",interactive:!1}}),T.jsx(Bn,{position:[U.lat,U.lon],icon:tB(U,me,h),zIndexOffset:_e?700:Ce?500:me?600:100,eventHandlers:{click:()=>q(U)}}),(_e||Ce)&&T.jsx(Bn,{position:[U.lat,U.lon],icon:aB(U),zIndexOffset:_e?800:650,interactive:!1})]},U.id)}),T.jsx(Bn,{position:$,icon:eB(z),zIndexOffset:1e3})]})}),!u&&!s&&T.jsx("div",{className:"absolute top-3 right-3 z-[1001]",children:T.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-2 bg-[#161b22]/90 backdrop-blur-xl border border-white/20 px-3.5 py-2 rounded-2xl shadow-xl active:scale-95 transition-all text-white",children:[T.jsx(wS,{size:15,className:"text-cyan-400"}),T.jsx("span",{className:"text-xs font-black font-mono tracking-wider",children:G.length}),G.some(U=>U.risk==="RED")&&T.jsx("span",{className:"bg-red-500 text-white text-[9px] font-black px-1.5 py-0.5 rounded-md animate-pulse",children:"🚨"}),T.jsx(sC,{size:16,className:"text-gray-400"})]})}),(u||s)&&T.jsx("div",{onPointerDownCapture:U=>U.stopPropagation(),onTouchStartCapture:U=>U.stopPropagation(),className:`absolute top-3 right-3 w-[320px] max-w-[88vw] z-[1001] bg-[#161b22]/95 backdrop-blur-2xl border border-white/15 rounded-3xl shadow-2xl flex flex-col overflow-hidden isolate ${s?"h-auto max-h-[48vh]":"h-[40vh] max-h-[40vh]"}`,children:s?(()=>{var me;const U=hu(s.type),Z=s.age!==void 0?s.age<60?`${s.age}s fa`:`${Math.round(s.age/60)}m fa`:"";return T.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[T.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 pb-2 shrink-0",children:[T.jsxs("button",{onClick:X,className:"flex items-center gap-1 text-[11px] font-black text-cyan-400 hover:text-cyan-300 active:scale-95 transition-transform shrink-0",children:[T.jsx("span",{children:"←"})," LISTA"]}),T.jsxs("div",{className:"text-center truncate px-1 flex-1",children:[T.jsxs("div",{className:"flex items-center justify-center gap-1",children:[T.jsx("span",{className:"text-base",children:U.emoji}),T.jsx("h4",{className:"text-sm font-black uppercase text-white truncate",children:s.name||"Sconosciuto"})]}),T.jsxs("div",{className:"flex items-center justify-center gap-1 mt-0.5",children:[T.jsxs("span",{className:"text-[9.5px] font-bold text-gray-300 uppercase tracking-tight",children:[U.label," •"]}),(me=s.id)!=null&&me.includes("mmsi:")?T.jsx("button",{onClick:()=>S(s.id.split(":").pop()),className:`text-[9.5px] font-bold uppercase flex items-center gap-1 cursor-pointer active:scale-95 transition-all px-1 py-0.5 rounded-md ${_?"text-green-400 bg-green-500/10":"text-cyan-400 hover:text-cyan-300 bg-white/5"}`,title:"Tocca per copiare l'MMSI negli appunti",children:_?T.jsxs(T.Fragment,{children:[T.jsx(e4,{size:11,className:"shrink-0 text-green-400"}),T.jsx("span",{children:"Copiato!"})]}):T.jsxs(T.Fragment,{children:[T.jsx(o4,{size:10,className:"shrink-0 opacity-80"}),T.jsxs("span",{children:["MMSI ",s.id.split(":").pop()]})]})}):T.jsx("span",{className:"text-[9.5px] font-bold text-gray-300 uppercase",children:"MMSI: --"}),Z&&T.jsxs("span",{className:"text-[9.5px] font-bold text-gray-400",children:["• ",Z]})]})]}),T.jsx("button",{onClick:D,className:"text-gray-400 hover:text-white p-1 shrink-0",children:T.jsx(PS,{size:16})})]}),T.jsxs("div",{className:"grid grid-cols-2 gap-1.5 text-[10px] shrink-0",children:[T.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[T.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG / COG"}),T.jsxs("span",{className:"font-bold text-white text-xs",children:[s.sog," kn @ ",s.cog,"°"]})]}),T.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[T.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Distanza"}),T.jsxs("span",{className:"font-bold text-white text-xs",children:[s.dist," m"]})]}),T.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[T.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"CPA Minimo"}),T.jsx("span",{className:"font-bold text-cyan-400 text-xs",children:s.cpa!==null&&s.cpa!==void 0?`${s.cpa} m`:"--"})]}),T.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[T.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Tempo a CPA"}),T.jsx("span",{className:"font-bold text-cyan-400 text-xs",children:s.tcpa!==null&&s.tcpa!==void 0&&s.tcpa>=0?`${Math.round(s.tcpa)} min`:"--"})]})]}),s.sightingTxt&&T.jsxs("div",{className:"bg-cyan-500/10 border border-cyan-500/30 px-2.5 py-1.5 rounded-xl text-[9px] text-cyan-200 shrink-0 flex items-center gap-1.5",children:[T.jsx("span",{className:"text-cyan-400 font-black uppercase shrink-0",children:"👀 Vista:"}),T.jsx("span",{className:"truncate",children:s.sightingTxt})]}),s.crossDir&&T.jsxs("div",{className:"bg-white/5 p-2 rounded-xl text-[9px] text-gray-300 border border-white/5 overflow-y-auto leading-tight max-h-16",children:[T.jsx("span",{className:"text-orange-400 font-bold uppercase block mb-0.5",children:"Analisi Incrocio:"}),s.crossDir]})]})})():T.jsxs("div",{className:"flex flex-col h-full font-mono",children:[T.jsxs("div",{className:"h-10 px-3.5 flex items-center justify-between border-b border-white/10 shrink-0",children:[T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx(wS,{size:14,className:"text-cyan-400"}),T.jsxs("span",{className:"text-[11px] font-black uppercase tracking-wider text-white",children:["Bersagli (",G.length,")"]})]}),T.jsx("button",{onClick:D,className:"text-gray-400 hover:text-white p-1",children:T.jsx(PS,{size:16})})]}),T.jsx("div",{className:"flex-1 overflow-y-auto p-1.5 space-y-1.5",children:G.map(U=>{const Z=U.risk==="RED",me=U.risk==="ORANGE",ce=hu(U.type);return T.jsxs("div",{onClick:()=>K(U),className:`p-2 rounded-xl border transition-all cursor-pointer flex items-center justify-between ${Z?"bg-red-500/15 border-red-500/40 text-red-100":me?"bg-orange-500/15 border-orange-500/40 text-orange-100":"bg-white/5 border-white/5 hover:bg-white/10"}`,children:[T.jsxs("div",{className:"flex flex-col truncate pr-2",children:[T.jsxs("div",{className:"flex items-center gap-1.5 truncate",children:[T.jsx("span",{style:{color:ce.color},className:"text-xs shrink-0",children:ce.emoji}),T.jsx("span",{className:"text-[11px] font-black uppercase text-white truncate",children:U.name||"Sconosciuto"}),Z&&T.jsx("span",{className:"text-red-500 text-[9px] shrink-0",children:"🚨"})]}),T.jsxs("span",{className:"text-[9.5px] font-bold text-gray-300 mt-0.5 tracking-tight leading-tight",children:[ce.label," • ",U.isMoving?`${U.sog}k • ${U.cog}°`:"ALL'ANCORA"]})]}),T.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[T.jsx("span",{className:`text-xs font-black ${Z?"text-red-400":me?"text-orange-400":"text-cyan-400"}`,children:U.cpa!==null&&U.cpa!==void 0?`${U.cpa}m`:`${U.dist}m`}),U.tcpa!==null&&U.tcpa>=0&&T.jsxs("span",{className:"text-[8.5px] font-bold text-gray-300 mt-1",children:["in ",Math.round(U.tcpa),"m"]})]})]},U.id)})})]})})]})};function SC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=SC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Le(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=SC(e))&&(r&&(r+=" "),r+=t);return r}var uB=Array.isArray,vn=uB,cB=typeof Ul=="object"&&Ul&&Ul.Object===Object&&Ul,PC=cB,fB=PC,hB=typeof self=="object"&&self&&self.Object===Object&&self,dB=fB||hB||Function("return this")(),Ir=dB,pB=Ir,mB=pB.Symbol,Mc=mB,AS=Mc,OC=Object.prototype,vB=OC.hasOwnProperty,gB=OC.toString,jl=AS?AS.toStringTag:void 0;function yB(e){var t=vB.call(e,jl),n=e[jl];try{e[jl]=void 0;var r=!0}catch{}var i=gB.call(e);return r&&(t?e[jl]=n:delete e[jl]),i}var xB=yB,_B=Object.prototype,bB=_B.toString;function wB(e){return bB.call(e)}var SB=wB,ES=Mc,PB=xB,OB=SB,TB="[object Null]",AB="[object Undefined]",kS=ES?ES.toStringTag:void 0;function EB(e){return e==null?e===void 0?AB:TB:kS&&kS in Object(e)?PB(e):OB(e)}var vi=EB;function kB(e){return e!=null&&typeof e=="object"}var gi=kB,CB=vi,MB=gi,jB="[object Symbol]";function $B(e){return typeof e=="symbol"||MB(e)&&CB(e)==jB}var Rs=$B,LB=vn,NB=Rs,IB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DB=/^\w*$/;function RB(e,t){if(LB(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||NB(e)?!0:DB.test(e)||!IB.test(e)||t!=null&&e in Object(t)}var r_=RB;function zB(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var to=zB;const zs=Ue(to);var BB=vi,FB=to,VB="[object AsyncFunction]",UB="[object Function]",WB="[object GeneratorFunction]",HB="[object Proxy]";function ZB(e){if(!FB(e))return!1;var t=BB(e);return t==UB||t==WB||t==VB||t==HB}var i_=ZB;const Se=Ue(i_);var GB=Ir,KB=GB["__core-js_shared__"],qB=KB,uv=qB,CS=function(){var e=/[^.]+$/.exec(uv&&uv.keys&&uv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function XB(e){return!!CS&&CS in e}var YB=XB,QB=Function.prototype,JB=QB.toString;function eF(e){if(e!=null){try{return JB.call(e)}catch{}try{return e+""}catch{}}return""}var TC=eF,tF=i_,nF=YB,rF=to,iF=TC,oF=/[\\^$.*+?()[\]{}|]/g,aF=/^\[object .+?Constructor\]$/,sF=Function.prototype,lF=Object.prototype,uF=sF.toString,cF=lF.hasOwnProperty,fF=RegExp("^"+uF.call(cF).replace(oF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hF(e){if(!rF(e)||nF(e))return!1;var t=tF(e)?fF:aF;return t.test(iF(e))}var dF=hF;function pF(e,t){return e==null?void 0:e[t]}var mF=pF,vF=dF,gF=mF;function yF(e,t){var n=gF(e,t);return vF(n)?n:void 0}var ea=yF,xF=ea,_F=xF(Object,"create"),bp=_F,MS=bp;function bF(){this.__data__=MS?MS(null):{},this.size=0}var wF=bF;function SF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var PF=SF,OF=bp,TF="__lodash_hash_undefined__",AF=Object.prototype,EF=AF.hasOwnProperty;function kF(e){var t=this.__data__;if(OF){var n=t[e];return n===TF?void 0:n}return EF.call(t,e)?t[e]:void 0}var CF=kF,MF=bp,jF=Object.prototype,$F=jF.hasOwnProperty;function LF(e){var t=this.__data__;return MF?t[e]!==void 0:$F.call(t,e)}var NF=LF,IF=bp,DF="__lodash_hash_undefined__";function RF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=IF&&t===void 0?DF:t,this}var zF=RF,BF=wF,FF=PF,VF=CF,UF=NF,WF=zF;function Bs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bs.prototype.clear=BF;Bs.prototype.delete=FF;Bs.prototype.get=VF;Bs.prototype.has=UF;Bs.prototype.set=WF;var HF=Bs;function ZF(){this.__data__=[],this.size=0}var GF=ZF;function KF(e,t){return e===t||e!==e&&t!==t}var o_=KF,qF=o_;function XF(e,t){for(var n=e.length;n--;)if(qF(e[n][0],t))return n;return-1}var wp=XF,YF=wp,QF=Array.prototype,JF=QF.splice;function e8(e){var t=this.__data__,n=YF(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():JF.call(t,n,1),--this.size,!0}var t8=e8,n8=wp;function r8(e){var t=this.__data__,n=n8(t,e);return n<0?void 0:t[n][1]}var i8=r8,o8=wp;function a8(e){return o8(this.__data__,e)>-1}var s8=a8,l8=wp;function u8(e,t){var n=this.__data__,r=l8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var c8=u8,f8=GF,h8=t8,d8=i8,p8=s8,m8=c8;function Fs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fs.prototype.clear=f8;Fs.prototype.delete=h8;Fs.prototype.get=d8;Fs.prototype.has=p8;Fs.prototype.set=m8;var Sp=Fs,v8=ea,g8=Ir,y8=v8(g8,"Map"),a_=y8,jS=HF,x8=Sp,_8=a_;function b8(){this.size=0,this.__data__={hash:new jS,map:new(_8||x8),string:new jS}}var w8=b8;function S8(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var P8=S8,O8=P8;function T8(e,t){var n=e.__data__;return O8(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Pp=T8,A8=Pp;function E8(e){var t=A8(this,e).delete(e);return this.size-=t?1:0,t}var k8=E8,C8=Pp;function M8(e){return C8(this,e).get(e)}var j8=M8,$8=Pp;function L8(e){return $8(this,e).has(e)}var N8=L8,I8=Pp;function D8(e,t){var n=I8(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var R8=D8,z8=w8,B8=k8,F8=j8,V8=N8,U8=R8;function Vs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vs.prototype.clear=z8;Vs.prototype.delete=B8;Vs.prototype.get=F8;Vs.prototype.has=V8;Vs.prototype.set=U8;var s_=Vs,AC=s_,W8="Expected a function";function l_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(W8);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(l_.Cache||AC),n}l_.Cache=AC;var EC=l_;const H8=Ue(EC);var Z8=EC,G8=500;function K8(e){var t=Z8(e,function(r){return n.size===G8&&n.clear(),r}),n=t.cache;return t}var q8=K8,X8=q8,Y8=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q8=/\\(\\)?/g,J8=X8(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Y8,function(n,r,i,o){t.push(i?o.replace(Q8,"$1"):r||n)}),t}),e6=J8;function t6(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var u_=t6,$S=Mc,n6=u_,r6=vn,i6=Rs,LS=$S?$S.prototype:void 0,NS=LS?LS.toString:void 0;function kC(e){if(typeof e=="string")return e;if(r6(e))return n6(e,kC)+"";if(i6(e))return NS?NS.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var o6=kC,a6=o6;function s6(e){return e==null?"":a6(e)}var CC=s6,l6=vn,u6=r_,c6=e6,f6=CC;function h6(e,t){return l6(e)?e:u6(e,t)?[e]:c6(f6(e))}var MC=h6,d6=Rs;function p6(e){if(typeof e=="string"||d6(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Op=p6,m6=MC,v6=Op;function g6(e,t){t=m6(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[v6(t[n++])];return n&&n==r?e:void 0}var c_=g6,y6=c_;function x6(e,t,n){var r=e==null?void 0:y6(e,t);return r===void 0?n:r}var jC=x6;const Gn=Ue(jC);function _6(e){return e==null}var b6=_6;const ke=Ue(b6);var w6=vi,S6=vn,P6=gi,O6="[object String]";function T6(e){return typeof e=="string"||!S6(e)&&P6(e)&&w6(e)==O6}var A6=T6;const Zo=Ue(A6);var $C={exports:{}},Be={};/**
|
|
307
|
+
* @license React
|
|
308
|
+
* react-is.production.min.js
|
|
309
|
+
*
|
|
310
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the MIT license found in the
|
|
313
|
+
* LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/var f_=Symbol.for("react.element"),h_=Symbol.for("react.portal"),Tp=Symbol.for("react.fragment"),Ap=Symbol.for("react.strict_mode"),Ep=Symbol.for("react.profiler"),kp=Symbol.for("react.provider"),Cp=Symbol.for("react.context"),E6=Symbol.for("react.server_context"),Mp=Symbol.for("react.forward_ref"),jp=Symbol.for("react.suspense"),$p=Symbol.for("react.suspense_list"),Lp=Symbol.for("react.memo"),Np=Symbol.for("react.lazy"),k6=Symbol.for("react.offscreen"),LC;LC=Symbol.for("react.module.reference");function Yn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case f_:switch(e=e.type,e){case Tp:case Ep:case Ap:case jp:case $p:return e;default:switch(e=e&&e.$$typeof,e){case E6:case Cp:case Mp:case Np:case Lp:case kp:return e;default:return t}}case h_:return t}}}Be.ContextConsumer=Cp;Be.ContextProvider=kp;Be.Element=f_;Be.ForwardRef=Mp;Be.Fragment=Tp;Be.Lazy=Np;Be.Memo=Lp;Be.Portal=h_;Be.Profiler=Ep;Be.StrictMode=Ap;Be.Suspense=jp;Be.SuspenseList=$p;Be.isAsyncMode=function(){return!1};Be.isConcurrentMode=function(){return!1};Be.isContextConsumer=function(e){return Yn(e)===Cp};Be.isContextProvider=function(e){return Yn(e)===kp};Be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===f_};Be.isForwardRef=function(e){return Yn(e)===Mp};Be.isFragment=function(e){return Yn(e)===Tp};Be.isLazy=function(e){return Yn(e)===Np};Be.isMemo=function(e){return Yn(e)===Lp};Be.isPortal=function(e){return Yn(e)===h_};Be.isProfiler=function(e){return Yn(e)===Ep};Be.isStrictMode=function(e){return Yn(e)===Ap};Be.isSuspense=function(e){return Yn(e)===jp};Be.isSuspenseList=function(e){return Yn(e)===$p};Be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tp||e===Ep||e===Ap||e===jp||e===$p||e===k6||typeof e=="object"&&e!==null&&(e.$$typeof===Np||e.$$typeof===Lp||e.$$typeof===kp||e.$$typeof===Cp||e.$$typeof===Mp||e.$$typeof===LC||e.getModuleId!==void 0)};Be.typeOf=Yn;$C.exports=Be;var C6=$C.exports,M6=vi,j6=gi,$6="[object Number]";function L6(e){return typeof e=="number"||j6(e)&&M6(e)==$6}var NC=L6;const N6=Ue(NC);var I6=NC;function D6(e){return I6(e)&&e!=+e}var R6=D6;const Us=Ue(R6);var hr=function(t){return t===0?0:t>0?1:-1},Co=function(t){return Zo(t)&&t.indexOf("%")===t.length-1},ie=function(t){return N6(t)&&!Us(t)},z6=function(t){return ke(t)},Ot=function(t){return ie(t)||Zo(t)},B6=0,jc=function(t){var n=++B6;return"".concat(t||"").concat(n)},Go=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ie(t)&&!Zo(t))return r;var o;if(Co(t)){var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return Us(o)&&(o=r),i&&o>n&&(o=n),o},$i=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},F6=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Un=function(t,n){return ie(t)&&ie(n)?function(r){return t+r*(n-t)}:function(){return n}};function Yh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Gn(r,t))===n})}var V6=function(t,n){return ie(t)&&ie(n)?t-n:Zo(t)&&Zo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Ka(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Qg(e){"@babel/helpers - typeof";return Qg=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},Qg(e)}var U6=["viewBox","children"],W6=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],IS=["points","pathLength"],cv={svg:U6,polygon:IS,polyline:IS},d_=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Qh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!zs(r))return null;var i={};return Object.keys(r).forEach(function(o){d_.includes(o)&&(i[o]=n||function(s){return r[o](r,s)})}),i},H6=function(t,n,r){return function(i){return t(n,r,i),null}},Jh=function(t,n,r){if(!zs(t)||Qg(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var s=t[o];d_.includes(o)&&typeof s=="function"&&(i||(i={}),i[o]=H6(s,n,r))}),i},Z6=["children"],G6=["children"];function DS(e,t){if(e==null)return{};var n=K6(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function K6(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Jg(e){"@babel/helpers - typeof";return Jg=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},Jg(e)}var RS={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ri=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zS=null,fv=null,p_=function e(t){if(t===zS&&Array.isArray(fv))return fv;var n=[];return j.Children.forEach(t,function(r){ke(r)||(C6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),fv=n,zS=t,n};function mr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return ri(i)}):r=[ri(t)],p_(e).forEach(function(i){var o=Gn(i,"type.displayName")||Gn(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function wn(e,t){var n=mr(e,t);return n&&n[0]}var BS=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ie(r)||r<=0||!ie(i)||i<=0)},q6=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],X6=function(t){return t&&t.type&&Zo(t.type)&&q6.indexOf(t.type)>=0},Y6=function(t){return t&&Jg(t)==="object"&&"clipDot"in t},Q6=function(t,n,r,i){var o,s=(o=cv==null?void 0:cv[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Se(t)&&(i&&s.includes(n)||W6.includes(n))||r&&d_.includes(n)},Ae=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(j.isValidElement(t)&&(i=t.props),!zs(i))return null;var o={};return Object.keys(i).forEach(function(s){var l;Q6((l=i)===null||l===void 0?void 0:l[s],s,n,r)&&(o[s]=i[s])}),o},ey=function e(t,n){if(t===n)return!0;var r=j.Children.count(t);if(r!==j.Children.count(n))return!1;if(r===0)return!0;if(r===1)return FS(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],s=n[i];if(Array.isArray(o)||Array.isArray(s)){if(!e(o,s))return!1}else if(!FS(o,s))return!1}return!0},FS=function(t,n){if(ke(t)&&ke(n))return!0;if(!ke(t)&&!ke(n)){var r=t.props||{},i=r.children,o=DS(r,Z6),s=n.props||{},l=s.children,u=DS(s,G6);return i&&l?Ka(o,u)&&ey(i,l):!i&&!l?Ka(o,u):!1}return!1},VS=function(t,n){var r=[],i={};return p_(t).forEach(function(o,s){if(X6(o))r.push(o);else if(o){var l=ri(o.type),u=n[l]||{},f=u.handler,h=u.once;if(f&&(!h||!i[l])){var d=f(o,l,s);r.push(d),i[l]=!0}}}),r},J6=function(t){var n=t&&t.type;return n&&RS[n]?RS[n]:null},eV=function(t,n){return p_(n).indexOf(t)},tV=["children","width","height","viewBox","className","style","title","desc"];function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ty.apply(this,arguments)}function nV(e,t){if(e==null)return{};var n=rV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ny(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,s=e.style,l=e.title,u=e.desc,f=nV(e,tV),h=i||{width:n,height:r,x:0,y:0},d=Le("recharts-surface",o);return I.createElement("svg",ty({},Ae(f,!0,"svg"),{className:d,width:n,height:r,style:s,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),I.createElement("title",null,l),I.createElement("desc",null,u),t)}var iV=["children","className"];function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry.apply(this,arguments)}function oV(e,t){if(e==null)return{};var n=aV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var at=I.forwardRef(function(e,t){var n=e.children,r=e.className,i=oV(e,iV),o=Le("recharts-layer",r);return I.createElement("g",ry({className:o},Ae(i,!0),{ref:t}),n)}),ii=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};function sV(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var lV=sV,uV=lV;function cV(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:uV(e,t,n)}var fV=cV,hV="\\ud800-\\udfff",dV="\\u0300-\\u036f",pV="\\ufe20-\\ufe2f",mV="\\u20d0-\\u20ff",vV=dV+pV+mV,gV="\\ufe0e\\ufe0f",yV="\\u200d",xV=RegExp("["+yV+hV+vV+gV+"]");function _V(e){return xV.test(e)}var IC=_V;function bV(e){return e.split("")}var wV=bV,DC="\\ud800-\\udfff",SV="\\u0300-\\u036f",PV="\\ufe20-\\ufe2f",OV="\\u20d0-\\u20ff",TV=SV+PV+OV,AV="\\ufe0e\\ufe0f",EV="["+DC+"]",iy="["+TV+"]",oy="\\ud83c[\\udffb-\\udfff]",kV="(?:"+iy+"|"+oy+")",RC="[^"+DC+"]",zC="(?:\\ud83c[\\udde6-\\uddff]){2}",BC="[\\ud800-\\udbff][\\udc00-\\udfff]",CV="\\u200d",FC=kV+"?",VC="["+AV+"]?",MV="(?:"+CV+"(?:"+[RC,zC,BC].join("|")+")"+VC+FC+")*",jV=VC+FC+MV,$V="(?:"+[RC+iy+"?",iy,zC,BC,EV].join("|")+")",LV=RegExp(oy+"(?="+oy+")|"+$V+jV,"g");function NV(e){return e.match(LV)||[]}var IV=NV,DV=wV,RV=IC,zV=IV;function BV(e){return RV(e)?zV(e):DV(e)}var FV=BV,VV=fV,UV=IC,WV=FV,HV=CC;function ZV(e){return function(t){t=HV(t);var n=UV(t)?WV(t):void 0,r=n?n[0]:t.charAt(0),i=n?VV(n,1).join(""):t.slice(1);return r[e]()+i}}var GV=ZV,KV=GV,qV=KV("toUpperCase"),XV=qV;const Ip=Ue(XV);function Ge(e){return function(){return e}}const UC=Math.cos,ed=Math.sin,gr=Math.sqrt,td=Math.PI,Dp=2*td,ay=Math.PI,sy=2*ay,So=1e-6,YV=sy-So;function WC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function QV(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return WC;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 JV{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?WC:QV(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,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}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 s=this._x1,l=this._y1,u=r-t,f=i-n,h=s-t,d=l-n,m=h*h+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>So)if(!(Math.abs(d*u-f*h)>So)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-s,_=i-l,x=u*u+f*f,S=v*v+_*_,y=Math.sqrt(x),b=Math.sqrt(m),w=o*Math.tan((ay-Math.acos((x+m-S)/(2*y*b)))/2),E=w/b,P=w/y;Math.abs(E-1)>So&&this._append`L${t+E*h},${n+E*d}`,this._append`A${o},${o},0,0,${+(d*v>h*_)},${this._x1=t+P*u},${this._y1=n+P*f}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),u=r*Math.sin(i),f=t+l,h=n+u,d=1^s,m=s?i-o:o-i;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>So||Math.abs(this._y1-h)>So)&&this._append`L${f},${h}`,r&&(m<0&&(m=m%sy+sy),m>YV?this._append`A${r},${r},0,1,${d},${t-l},${n-u}A${r},${r},0,1,${d},${this._x1=f},${this._y1=h}`:m>So&&this._append`A${r},${r},0,${+(m>=ay)},${d},${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 m_(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 JV(t)}function v_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function HC(e){this._context=e}HC.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 Rp(e){return new HC(e)}function ZC(e){return e[0]}function GC(e){return e[1]}function KC(e,t){var n=Ge(!0),r=null,i=Rp,o=null,s=m_(l);e=typeof e=="function"?e:e===void 0?ZC:Ge(e),t=typeof t=="function"?t:t===void 0?GC:Ge(t);function l(u){var f,h=(u=v_(u)).length,d,m=!1,v;for(r==null&&(o=i(v=s())),f=0;f<=h;++f)!(f<h&&n(d=u[f],f,u))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(d,f,u),+t(d,f,u));if(v)return o=null,v+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:Ge(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Ge(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Ge(!!u),l):n},l.curve=function(u){return arguments.length?(i=u,r!=null&&(o=i(r)),l):i},l.context=function(u){return arguments.length?(u==null?r=o=null:o=i(r=u),l):r},l}function Hf(e,t,n){var r=null,i=Ge(!0),o=null,s=Rp,l=null,u=m_(f);e=typeof e=="function"?e:e===void 0?ZC:Ge(+e),t=typeof t=="function"?t:Ge(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?GC:Ge(+n);function f(d){var m,v,_,x=(d=v_(d)).length,S,y=!1,b,w=new Array(x),E=new Array(x);for(o==null&&(l=s(b=u())),m=0;m<=x;++m){if(!(m<x&&i(S=d[m],m,d))===y)if(y=!y)v=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),_=m-1;_>=v;--_)l.point(w[_],E[_]);l.lineEnd(),l.areaEnd()}y&&(w[m]=+e(S,m,d),E[m]=+t(S,m,d),l.point(r?+r(S,m,d):w[m],n?+n(S,m,d):E[m]))}if(b)return l=null,b+""||null}function h(){return KC().defined(i).curve(s).context(o)}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ge(+d),r=null,f):e},f.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ge(+d),f):e},f.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ge(+d),f):r},f.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ge(+d),n=null,f):t},f.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ge(+d),f):t},f.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ge(+d),f):n},f.lineX0=f.lineY0=function(){return h().x(e).y(t)},f.lineY1=function(){return h().x(e).y(n)},f.lineX1=function(){return h().x(r).y(t)},f.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Ge(!!d),f):i},f.curve=function(d){return arguments.length?(s=d,o!=null&&(l=s(o)),f):s},f.context=function(d){return arguments.length?(d==null?o=l=null:l=s(o=d),f):o},f}class qC{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 eU(e){return new qC(e,!0)}function tU(e){return new qC(e,!1)}const g_={draw(e,t){const n=gr(t/td);e.moveTo(n,0),e.arc(0,0,n,0,Dp)}},nU={draw(e,t){const n=gr(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()}},XC=gr(1/3),rU=XC*2,iU={draw(e,t){const n=gr(t/rU),r=n*XC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},oU={draw(e,t){const n=gr(t),r=-n/2;e.rect(r,r,n,n)}},aU=.8908130915292852,YC=ed(td/10)/ed(7*td/10),sU=ed(Dp/10)*YC,lU=-UC(Dp/10)*YC,uU={draw(e,t){const n=gr(t*aU),r=sU*n,i=lU*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=Dp*o/5,l=UC(s),u=ed(s);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*i,u*r+l*i)}e.closePath()}},hv=gr(3),cU={draw(e,t){const n=-gr(t/(hv*3));e.moveTo(0,n*2),e.lineTo(-hv*n,-n),e.lineTo(hv*n,-n),e.closePath()}},In=-.5,Dn=gr(3)/2,ly=1/gr(12),fU=(ly/2+1)*3,hU={draw(e,t){const n=gr(t/fU),r=n/2,i=n*ly,o=r,s=n*ly+n,l=-o,u=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(l,u),e.lineTo(In*r-Dn*i,Dn*r+In*i),e.lineTo(In*o-Dn*s,Dn*o+In*s),e.lineTo(In*l-Dn*u,Dn*l+In*u),e.lineTo(In*r+Dn*i,In*i-Dn*r),e.lineTo(In*o+Dn*s,In*s-Dn*o),e.lineTo(In*l+Dn*u,In*u-Dn*l),e.closePath()}};function dU(e,t){let n=null,r=m_(i);e=typeof e=="function"?e:Ge(e||g_),t=typeof t=="function"?t:Ge(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:Ge(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ge(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function nd(){}function rd(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 QC(e){this._context=e}QC.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:rd(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:rd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pU(e){return new QC(e)}function JC(e){this._context=e}JC.prototype={areaStart:nd,areaEnd:nd,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:rd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mU(e){return new JC(e)}function eM(e){this._context=e}eM.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:rd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vU(e){return new eM(e)}function tM(e){this._context=e}tM.prototype={areaStart:nd,areaEnd:nd,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 gU(e){return new tM(e)}function US(e){return e<0?-1:1}function WS(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),l=(o*i+s*r)/(r+i);return(US(o)+US(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function HS(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function dv(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,s-l*n,o,s)}function id(e){this._context=e}id.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:dv(this,this._t0,HS(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,dv(this,HS(this,n=WS(this,e,t)),n);break;default:dv(this,this._t0,n=WS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function nM(e){this._context=new rM(e)}(nM.prototype=Object.create(id.prototype)).point=function(e,t){id.prototype.point.call(this,t,e)};function rM(e){this._context=e}rM.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 yU(e){return new id(e)}function xU(e){return new nM(e)}function iM(e){this._context=e}iM.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=ZS(e),i=ZS(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(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 ZS(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[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 _U(e){return new iM(e)}function zp(e,t){this._context=e,this._t=t}zp.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 bU(e){return new zp(e,.5)}function wU(e){return new zp(e,0)}function SU(e){return new zp(e,1)}function ls(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,l=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function uy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function PU(e,t){return e[t]}function OU(e){const t=[];return t.key=e,t}function TU(){var e=Ge([]),t=uy,n=ls,r=PU;function i(o){var s=Array.from(e.apply(this,arguments),OU),l,u=s.length,f=-1,h;for(const d of o)for(l=0,++f;l<u;++l)(s[l][f]=[0,+r(d,s[l].key,f,o)]).data=d;for(l=0,h=v_(t(s));l<u;++l)s[h[l]].index=l;return n(s,h),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ge(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ge(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?uy:typeof o=="function"?o:Ge(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??ls,i):n},i}function AU(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,s;i<o;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}ls(e,t)}}function EU(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var s=0,l=0;s<i;++s)l+=e[s][n][1]||0;r[n][1]+=r[n][0]=-l/2}ls(e,t)}}function kU(e,t){if(!(!((s=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,s;r<o;++r){for(var l=0,u=0,f=0;l<s;++l){for(var h=e[t[l]],d=h[r][1]||0,m=h[r-1][1]||0,v=(d-m)/2,_=0;_<l;++_){var x=e[t[_]],S=x[r][1]||0,y=x[r-1][1]||0;v+=S-y}u+=d,f+=v*d}i[r-1][1]+=i[r-1][0]=n,u&&(n-=f/u)}i[r-1][1]+=i[r-1][0]=n,ls(e,t)}}function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}var CU=["type","size","sizeType"];function cy(){return cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cy.apply(this,arguments)}function GS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function KS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GS(Object(n),!0).forEach(function(r){MU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MU(e,t,n){return t=jU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jU(e){var t=$U(e,"string");return Bu(t)=="symbol"?t:t+""}function $U(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LU(e,t){if(e==null)return{};var n=NU(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NU(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var oM={symbolCircle:g_,symbolCross:nU,symbolDiamond:iU,symbolSquare:oU,symbolStar:uU,symbolTriangle:cU,symbolWye:hU},IU=Math.PI/180,DU=function(t){var n="symbol".concat(Ip(t));return oM[n]||g_},RU=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*IU;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},zU=function(t,n){oM["symbol".concat(Ip(t))]=n},y_=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,s=t.sizeType,l=s===void 0?"area":s,u=LU(t,CU),f=KS(KS({},u),{},{type:r,size:o,sizeType:l}),h=function(){var S=DU(r),y=dU().type(S).size(RU(o,l,r));return y()},d=f.className,m=f.cx,v=f.cy,_=Ae(f,!0);return m===+m&&v===+v&&o===+o?I.createElement("path",cy({},_,{className:Le("recharts-symbols",d),transform:"translate(".concat(m,", ").concat(v,")"),d:h()})):null};y_.registerSymbol=zU;function us(e){"@babel/helpers - typeof";return us=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},us(e)}function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fy.apply(this,arguments)}function qS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function BU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qS(Object(n),!0).forEach(function(r){Fu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sM(r.key),r)}}function UU(e,t,n){return t&&VU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WU(e,t,n){return t=od(t),HU(e,aM()?Reflect.construct(t,n||[],od(e).constructor):t.apply(e,n))}function HU(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZU(e)}function ZU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aM=function(){return!!e})()}function od(e){return od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},od(e)}function GU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hy(e,t)}function hy(e,t){return hy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hy(e,t)}function Fu(e,t,n){return t=sM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sM(e){var t=KU(e,"string");return us(t)=="symbol"?t:t+""}function KU(e,t){if(us(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rn=32,x_=function(e){function t(){return FU(this,t),WU(this,t,arguments)}return GU(t,e),UU(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Rn/2,s=Rn/6,l=Rn/3,u=r.inactive?i:r.color;if(r.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Rn,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,`
|
|
315
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,`
|
|
316
|
+
H`).concat(Rn,"M").concat(2*l,",").concat(o,`
|
|
317
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(Rn/8,"h").concat(Rn,"v").concat(Rn*3/4,"h").concat(-Rn,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var f=BU({},r);return delete f.legendIcon,I.cloneElement(r.legendIcon,f)}return I.createElement(y_,{fill:u,cx:o,cy:o,size:Rn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,u=i.formatter,f=i.inactiveColor,h={x:0,y:0,width:Rn,height:Rn},d={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,_){var x=v.formatter||u,S=Le(Fu(Fu({"recharts-legend-item":!0},"legend-item-".concat(_),!0),"inactive",v.inactive));if(v.type==="none")return null;var y=Se(v.value)?null:v.value;ii(!Se(v.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=v.inactive?f:v.color;return I.createElement("li",fy({className:S,style:d,key:"legend-item-".concat(_)},Jh(r.props,v,_)),I.createElement(ny,{width:s,height:s,viewBox:h,style:m},r.renderIcon(v)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},x?x(y,v,_):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,s=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Fu(x_,"displayName","Legend");Fu(x_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var qU=Sp;function XU(){this.__data__=new qU,this.size=0}var YU=XU;function QU(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var JU=QU;function eW(e){return this.__data__.get(e)}var tW=eW;function nW(e){return this.__data__.has(e)}var rW=nW,iW=Sp,oW=a_,aW=s_,sW=200;function lW(e,t){var n=this.__data__;if(n instanceof iW){var r=n.__data__;if(!oW||r.length<sW-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new aW(r)}return n.set(e,t),this.size=n.size,this}var uW=lW,cW=Sp,fW=YU,hW=JU,dW=tW,pW=rW,mW=uW;function Ws(e){var t=this.__data__=new cW(e);this.size=t.size}Ws.prototype.clear=fW;Ws.prototype.delete=hW;Ws.prototype.get=dW;Ws.prototype.has=pW;Ws.prototype.set=mW;var lM=Ws,vW="__lodash_hash_undefined__";function gW(e){return this.__data__.set(e,vW),this}var yW=gW;function xW(e){return this.__data__.has(e)}var _W=xW,bW=s_,wW=yW,SW=_W;function ad(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bW;++t<n;)this.add(e[t])}ad.prototype.add=ad.prototype.push=wW;ad.prototype.has=SW;var uM=ad;function PW(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var cM=PW;function OW(e,t){return e.has(t)}var fM=OW,TW=uM,AW=cM,EW=fM,kW=1,CW=2;function MW(e,t,n,r,i,o){var s=n&kW,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var d=-1,m=!0,v=n&CW?new TW:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var _=e[d],x=t[d];if(r)var S=s?r(x,_,d,t,e,o):r(_,x,d,e,t,o);if(S!==void 0){if(S)continue;m=!1;break}if(v){if(!AW(t,function(y,b){if(!EW(v,b)&&(_===y||i(_,y,n,r,o)))return v.push(b)})){m=!1;break}}else if(!(_===x||i(_,x,n,r,o))){m=!1;break}}return o.delete(e),o.delete(t),m}var hM=MW,jW=Ir,$W=jW.Uint8Array,LW=$W;function NW(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var IW=NW;function DW(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var __=DW,XS=Mc,YS=LW,RW=o_,zW=hM,BW=IW,FW=__,VW=1,UW=2,WW="[object Boolean]",HW="[object Date]",ZW="[object Error]",GW="[object Map]",KW="[object Number]",qW="[object RegExp]",XW="[object Set]",YW="[object String]",QW="[object Symbol]",JW="[object ArrayBuffer]",e9="[object DataView]",QS=XS?XS.prototype:void 0,pv=QS?QS.valueOf:void 0;function t9(e,t,n,r,i,o,s){switch(n){case e9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JW:return!(e.byteLength!=t.byteLength||!o(new YS(e),new YS(t)));case WW:case HW:case KW:return RW(+e,+t);case ZW:return e.name==t.name&&e.message==t.message;case qW:case YW:return e==t+"";case GW:var l=BW;case XW:var u=r&VW;if(l||(l=FW),e.size!=t.size&&!u)return!1;var f=s.get(e);if(f)return f==t;r|=UW,s.set(e,t);var h=zW(l(e),l(t),r,i,o,s);return s.delete(e),h;case QW:if(pv)return pv.call(e)==pv.call(t)}return!1}var n9=t9;function r9(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var dM=r9,i9=dM,o9=vn;function a9(e,t,n){var r=t(e);return o9(e)?r:i9(r,n(e))}var s9=a9;function l9(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}var u9=l9;function c9(){return[]}var f9=c9,h9=u9,d9=f9,p9=Object.prototype,m9=p9.propertyIsEnumerable,JS=Object.getOwnPropertySymbols,v9=JS?function(e){return e==null?[]:(e=Object(e),h9(JS(e),function(t){return m9.call(e,t)}))}:d9,g9=v9;function y9(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var x9=y9,_9=vi,b9=gi,w9="[object Arguments]";function S9(e){return b9(e)&&_9(e)==w9}var P9=S9,eP=P9,O9=gi,pM=Object.prototype,T9=pM.hasOwnProperty,A9=pM.propertyIsEnumerable,E9=eP(function(){return arguments}())?eP:function(e){return O9(e)&&T9.call(e,"callee")&&!A9.call(e,"callee")},b_=E9,sd={exports:{}};function k9(){return!1}var C9=k9;sd.exports;(function(e,t){var n=Ir,r=C9,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,l=s?n.Buffer:void 0,u=l?l.isBuffer:void 0,f=u||r;e.exports=f})(sd,sd.exports);var mM=sd.exports,M9=9007199254740991,j9=/^(?:0|[1-9]\d*)$/;function $9(e,t){var n=typeof e;return t=t??M9,!!t&&(n=="number"||n!="symbol"&&j9.test(e))&&e>-1&&e%1==0&&e<t}var w_=$9,L9=9007199254740991;function N9(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=L9}var S_=N9,I9=vi,D9=S_,R9=gi,z9="[object Arguments]",B9="[object Array]",F9="[object Boolean]",V9="[object Date]",U9="[object Error]",W9="[object Function]",H9="[object Map]",Z9="[object Number]",G9="[object Object]",K9="[object RegExp]",q9="[object Set]",X9="[object String]",Y9="[object WeakMap]",Q9="[object ArrayBuffer]",J9="[object DataView]",eH="[object Float32Array]",tH="[object Float64Array]",nH="[object Int8Array]",rH="[object Int16Array]",iH="[object Int32Array]",oH="[object Uint8Array]",aH="[object Uint8ClampedArray]",sH="[object Uint16Array]",lH="[object Uint32Array]",Xe={};Xe[eH]=Xe[tH]=Xe[nH]=Xe[rH]=Xe[iH]=Xe[oH]=Xe[aH]=Xe[sH]=Xe[lH]=!0;Xe[z9]=Xe[B9]=Xe[Q9]=Xe[F9]=Xe[J9]=Xe[V9]=Xe[U9]=Xe[W9]=Xe[H9]=Xe[Z9]=Xe[G9]=Xe[K9]=Xe[q9]=Xe[X9]=Xe[Y9]=!1;function uH(e){return R9(e)&&D9(e.length)&&!!Xe[I9(e)]}var cH=uH;function fH(e){return function(t){return e(t)}}var vM=fH,ld={exports:{}};ld.exports;(function(e,t){var n=PC,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(ld,ld.exports);var hH=ld.exports,dH=cH,pH=vM,tP=hH,nP=tP&&tP.isTypedArray,mH=nP?pH(nP):dH,gM=mH,vH=x9,gH=b_,yH=vn,xH=mM,_H=w_,bH=gM,wH=Object.prototype,SH=wH.hasOwnProperty;function PH(e,t){var n=yH(e),r=!n&&gH(e),i=!n&&!r&&xH(e),o=!n&&!r&&!i&&bH(e),s=n||r||i||o,l=s?vH(e.length,String):[],u=l.length;for(var f in e)(t||SH.call(e,f))&&!(s&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||_H(f,u)))&&l.push(f);return l}var OH=PH,TH=Object.prototype;function AH(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||TH;return e===n}var EH=AH;function kH(e,t){return function(n){return e(t(n))}}var yM=kH,CH=yM,MH=CH(Object.keys,Object),jH=MH,$H=EH,LH=jH,NH=Object.prototype,IH=NH.hasOwnProperty;function DH(e){if(!$H(e))return LH(e);var t=[];for(var n in Object(e))IH.call(e,n)&&n!="constructor"&&t.push(n);return t}var RH=DH,zH=i_,BH=S_;function FH(e){return e!=null&&BH(e.length)&&!zH(e)}var $c=FH,VH=OH,UH=RH,WH=$c;function HH(e){return WH(e)?VH(e):UH(e)}var Bp=HH,ZH=s9,GH=g9,KH=Bp;function qH(e){return ZH(e,KH,GH)}var XH=qH,rP=XH,YH=1,QH=Object.prototype,JH=QH.hasOwnProperty;function e7(e,t,n,r,i,o){var s=n&YH,l=rP(e),u=l.length,f=rP(t),h=f.length;if(u!=h&&!s)return!1;for(var d=u;d--;){var m=l[d];if(!(s?m in t:JH.call(t,m)))return!1}var v=o.get(e),_=o.get(t);if(v&&_)return v==t&&_==e;var x=!0;o.set(e,t),o.set(t,e);for(var S=s;++d<u;){m=l[d];var y=e[m],b=t[m];if(r)var w=s?r(b,y,m,t,e,o):r(y,b,m,e,t,o);if(!(w===void 0?y===b||i(y,b,n,r,o):w)){x=!1;break}S||(S=m=="constructor")}if(x&&!S){var E=e.constructor,P=t.constructor;E!=P&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof P=="function"&&P instanceof P)&&(x=!1)}return o.delete(e),o.delete(t),x}var t7=e7,n7=ea,r7=Ir,i7=n7(r7,"DataView"),o7=i7,a7=ea,s7=Ir,l7=a7(s7,"Promise"),u7=l7,c7=ea,f7=Ir,h7=c7(f7,"Set"),xM=h7,d7=ea,p7=Ir,m7=d7(p7,"WeakMap"),v7=m7,dy=o7,py=a_,my=u7,vy=xM,gy=v7,_M=vi,Hs=TC,iP="[object Map]",g7="[object Object]",oP="[object Promise]",aP="[object Set]",sP="[object WeakMap]",lP="[object DataView]",y7=Hs(dy),x7=Hs(py),_7=Hs(my),b7=Hs(vy),w7=Hs(gy),Po=_M;(dy&&Po(new dy(new ArrayBuffer(1)))!=lP||py&&Po(new py)!=iP||my&&Po(my.resolve())!=oP||vy&&Po(new vy)!=aP||gy&&Po(new gy)!=sP)&&(Po=function(e){var t=_M(e),n=t==g7?e.constructor:void 0,r=n?Hs(n):"";if(r)switch(r){case y7:return lP;case x7:return iP;case _7:return oP;case b7:return aP;case w7:return sP}return t});var S7=Po,mv=lM,P7=hM,O7=n9,T7=t7,uP=S7,cP=vn,fP=mM,A7=gM,E7=1,hP="[object Arguments]",dP="[object Array]",Zf="[object Object]",k7=Object.prototype,pP=k7.hasOwnProperty;function C7(e,t,n,r,i,o){var s=cP(e),l=cP(t),u=s?dP:uP(e),f=l?dP:uP(t);u=u==hP?Zf:u,f=f==hP?Zf:f;var h=u==Zf,d=f==Zf,m=u==f;if(m&&fP(e)){if(!fP(t))return!1;s=!0,h=!1}if(m&&!h)return o||(o=new mv),s||A7(e)?P7(e,t,n,r,i,o):O7(e,t,u,n,r,i,o);if(!(n&E7)){var v=h&&pP.call(e,"__wrapped__"),_=d&&pP.call(t,"__wrapped__");if(v||_){var x=v?e.value():e,S=_?t.value():t;return o||(o=new mv),i(x,S,n,r,o)}}return m?(o||(o=new mv),T7(e,t,n,r,i,o)):!1}var M7=C7,j7=M7,mP=gi;function bM(e,t,n,r,i){return e===t?!0:e==null||t==null||!mP(e)&&!mP(t)?e!==e&&t!==t:j7(e,t,n,r,bM,i)}var P_=bM,$7=lM,L7=P_,N7=1,I7=2;function D7(e,t,n,r){var i=n.length,o=i,s=!r;if(e==null)return!o;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=n[i];var u=l[0],f=e[u],h=l[1];if(s&&l[2]){if(f===void 0&&!(u in e))return!1}else{var d=new $7;if(r)var m=r(f,h,u,e,t,d);if(!(m===void 0?L7(h,f,N7|I7,r,d):m))return!1}}return!0}var R7=D7,z7=to;function B7(e){return e===e&&!z7(e)}var wM=B7,F7=wM,V7=Bp;function U7(e){for(var t=V7(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,F7(i)]}return t}var W7=U7;function H7(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var SM=H7,Z7=R7,G7=W7,K7=SM;function q7(e){var t=G7(e);return t.length==1&&t[0][2]?K7(t[0][0],t[0][1]):function(n){return n===e||Z7(n,e,t)}}var X7=q7;function Y7(e,t){return e!=null&&t in Object(e)}var Q7=Y7,J7=MC,eZ=b_,tZ=vn,nZ=w_,rZ=S_,iZ=Op;function oZ(e,t,n){t=J7(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=iZ(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&rZ(i)&&nZ(s,i)&&(tZ(e)||eZ(e)))}var aZ=oZ,sZ=Q7,lZ=aZ;function uZ(e,t){return e!=null&&lZ(e,t,sZ)}var cZ=uZ,fZ=P_,hZ=jC,dZ=cZ,pZ=r_,mZ=wM,vZ=SM,gZ=Op,yZ=1,xZ=2;function _Z(e,t){return pZ(e)&&mZ(t)?vZ(gZ(e),t):function(n){var r=hZ(n,e);return r===void 0&&r===t?dZ(n,e):fZ(t,r,yZ|xZ)}}var bZ=_Z;function wZ(e){return e}var Zs=wZ;function SZ(e){return function(t){return t==null?void 0:t[e]}}var PZ=SZ,OZ=c_;function TZ(e){return function(t){return OZ(t,e)}}var AZ=TZ,EZ=PZ,kZ=AZ,CZ=r_,MZ=Op;function jZ(e){return CZ(e)?EZ(MZ(e)):kZ(e)}var $Z=jZ,LZ=X7,NZ=bZ,IZ=Zs,DZ=vn,RZ=$Z;function zZ(e){return typeof e=="function"?e:e==null?IZ:typeof e=="object"?DZ(e)?NZ(e[0],e[1]):LZ(e):RZ(e)}var no=zZ;function BZ(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var PM=BZ;function FZ(e){return e!==e}var VZ=FZ;function UZ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var WZ=UZ,HZ=PM,ZZ=VZ,GZ=WZ;function KZ(e,t,n){return t===t?GZ(e,t,n):HZ(e,ZZ,n)}var qZ=KZ,XZ=qZ;function YZ(e,t){var n=e==null?0:e.length;return!!n&&XZ(e,t,0)>-1}var QZ=YZ;function JZ(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var eG=JZ;function tG(){}var nG=tG,vv=xM,rG=nG,iG=__,oG=1/0,aG=vv&&1/iG(new vv([,-0]))[1]==oG?function(e){return new vv(e)}:rG,sG=aG,lG=uM,uG=QZ,cG=eG,fG=fM,hG=sG,dG=__,pG=200;function mG(e,t,n){var r=-1,i=uG,o=e.length,s=!0,l=[],u=l;if(n)s=!1,i=cG;else if(o>=pG){var f=t?null:hG(e);if(f)return dG(f);s=!1,i=fG,u=new lG}else u=t?[]:l;e:for(;++r<o;){var h=e[r],d=t?t(h):h;if(h=n||h!==0?h:0,s&&d===d){for(var m=u.length;m--;)if(u[m]===d)continue e;t&&u.push(d),l.push(h)}else i(u,d,n)||(u!==l&&u.push(d),l.push(h))}return l}var vG=mG,gG=no,yG=vG;function xG(e,t){return e&&e.length?yG(e,gG(t)):[]}var _G=xG;const vP=Ue(_G);function OM(e,t,n){return t===!0?vP(e,n):Se(t)?vP(e,t):e}function cs(e){"@babel/helpers - typeof";return cs=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},cs(e)}var bG=["ref"];function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){Fp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AM(r.key),r)}}function SG(e,t,n){return t&&yP(e.prototype,t),n&&yP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function PG(e,t,n){return t=ud(t),OG(e,TM()?Reflect.construct(t,n||[],ud(e).constructor):t.apply(e,n))}function OG(e,t){if(t&&(cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TG(e)}function TG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TM=function(){return!!e})()}function ud(e){return ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ud(e)}function AG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yy(e,t)}function yy(e,t){return yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yy(e,t)}function Fp(e,t,n){return t=AM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AM(e){var t=EG(e,"string");return cs(t)=="symbol"?t:t+""}function EG(e,t){if(cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kG(e,t){if(e==null)return{};var n=CG(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function MG(e){return e.value}function jG(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=kG(t,bG);return I.createElement(x_,n)}var xP=1,qa=function(e){function t(){var n;wG(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=PG(this,t,[].concat(i)),Fp(n,"lastBoundingBox",{width:-1,height:-1}),n}return AG(t,e),SG(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>xP||Math.abs(i.height-this.lastBoundingBox.height)>xP)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Wr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,u=i.margin,f=i.chartWidth,h=i.chartHeight,d,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&o==="vertical"){var v=this.getBBoxSnapshot();d={left:((f||0)-v.width)/2}}else d=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var _=this.getBBoxSnapshot();m={top:((h||0)-_.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Wr(Wr({},d),m)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,s=i.width,l=i.height,u=i.wrapperStyle,f=i.payloadUniqBy,h=i.payload,d=Wr(Wr({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return I.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){r.wrapperNode=v}},jG(o,Wr(Wr({},this.props),{},{payload:OM(h,f,MG)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Wr(Wr({},this.defaultProps),r.props),s=o.layout;return s==="vertical"&&ie(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])}(j.PureComponent);Fp(qa,"displayName","Legend");Fp(qa,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var _P=Mc,$G=b_,LG=vn,bP=_P?_P.isConcatSpreadable:void 0;function NG(e){return LG(e)||$G(e)||!!(bP&&e&&e[bP])}var IG=NG,DG=dM,RG=IG;function EM(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=RG),i||(i=[]);++o<s;){var l=e[o];t>0&&n(l)?t>1?EM(l,t-1,n,r,i):DG(i,l):r||(i[i.length]=l)}return i}var kM=EM;function zG(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),l=s.length;l--;){var u=s[e?l:++i];if(n(o[u],u,o)===!1)break}return t}}var BG=zG,FG=BG,VG=FG(),UG=VG,WG=UG,HG=Bp;function ZG(e,t){return e&&WG(e,t,HG)}var CM=ZG,GG=$c;function KG(e,t){return function(n,r){if(n==null)return n;if(!GG(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o<i)&&r(s[o],o,s)!==!1;);return n}}var qG=KG,XG=CM,YG=qG,QG=YG(XG),O_=QG,JG=O_,eK=$c;function tK(e,t){var n=-1,r=eK(e)?Array(e.length):[];return JG(e,function(i,o,s){r[++n]=t(i,o,s)}),r}var MM=tK;function nK(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var rK=nK,wP=Rs;function iK(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=wP(e),s=t!==void 0,l=t===null,u=t===t,f=wP(t);if(!l&&!f&&!o&&e>t||o&&s&&u&&!l&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!f&&e<t||f&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!u)return-1}return 0}var oK=iK,aK=oK;function sK(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,l=n.length;++r<s;){var u=aK(i[r],o[r]);if(u){if(r>=l)return u;var f=n[r];return u*(f=="desc"?-1:1)}}return e.index-t.index}var lK=sK,gv=u_,uK=c_,cK=no,fK=MM,hK=rK,dK=vM,pK=lK,mK=Zs,vK=vn;function gK(e,t,n){t.length?t=gv(t,function(o){return vK(o)?function(s){return uK(s,o.length===1?o[0]:o)}:o}):t=[mK];var r=-1;t=gv(t,dK(cK));var i=fK(e,function(o,s,l){var u=gv(t,function(f){return f(o)});return{criteria:u,index:++r,value:o}});return hK(i,function(o,s){return pK(o,s,n)})}var yK=gK;function xK(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _K=xK,bK=_K,SP=Math.max;function wK(e,t,n){return t=SP(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=SP(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),bK(e,this,l)}}var SK=wK;function PK(e){return function(){return e}}var OK=PK,TK=ea,AK=function(){try{var e=TK(Object,"defineProperty");return e({},"",{}),e}catch{}}(),jM=AK,EK=OK,PP=jM,kK=Zs,CK=PP?function(e,t){return PP(e,"toString",{configurable:!0,enumerable:!1,value:EK(t),writable:!0})}:kK,MK=CK,jK=800,$K=16,LK=Date.now;function NK(e){var t=0,n=0;return function(){var r=LK(),i=$K-(r-n);if(n=r,i>0){if(++t>=jK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var IK=NK,DK=MK,RK=IK,zK=RK(DK),BK=zK,FK=Zs,VK=SK,UK=BK;function WK(e,t){return UK(VK(e,t,FK),e+"")}var HK=WK,ZK=o_,GK=$c,KK=w_,qK=to;function XK(e,t,n){if(!qK(n))return!1;var r=typeof t;return(r=="number"?GK(n)&&KK(t,n.length):r=="string"&&t in n)?ZK(n[t],e):!1}var Vp=XK,YK=kM,QK=yK,JK=HK,OP=Vp,eq=JK(function(e,t){if(e==null)return[];var n=t.length;return n>1&&OP(e,t[0],t[1])?t=[]:n>2&&OP(t[0],t[1],t[2])&&(t=[t[0]]),QK(e,YK(t,1),[])}),tq=eq;const T_=Ue(tq);function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function xy(){return xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xy.apply(this,arguments)}function nq(e,t){return aq(e)||oq(e,t)||iq(e,t)||rq()}function rq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
318
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iq(e,t){if(e){if(typeof e=="string")return TP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TP(e,t)}}function TP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function aq(e){if(Array.isArray(e))return e}function AP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AP(Object(n),!0).forEach(function(r){sq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sq(e,t,n){return t=lq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lq(e){var t=uq(e,"string");return Vu(t)=="symbol"?t:t+""}function uq(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cq(e){return Array.isArray(e)&&Ot(e[0])&&Ot(e[1])?e.join(" ~ "):e}var fq=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,s=t.itemStyle,l=s===void 0?{}:s,u=t.labelStyle,f=u===void 0?{}:u,h=t.payload,d=t.formatter,m=t.itemSorter,v=t.wrapperClassName,_=t.labelClassName,x=t.label,S=t.labelFormatter,y=t.accessibilityLayer,b=y===void 0?!1:y,w=function(){if(h&&h.length){var R={padding:0,margin:0},Q=(m?T_(h,m):h).map(function(H,K){if(H.type==="none")return null;var q=yv({display:"block",paddingTop:4,paddingBottom:4,color:H.color||"#000"},l),X=H.formatter||d||cq,D=H.value,G=H.name,V=D,te=G;if(X&&V!=null&&te!=null){var J=X(D,G,H,K,h);if(Array.isArray(J)){var ae=nq(J,2);V=ae[0],te=ae[1]}else V=J}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(K),style:q},Ot(te)?I.createElement("span",{className:"recharts-tooltip-item-name"},te):null,Ot(te)?I.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,I.createElement("span",{className:"recharts-tooltip-item-value"},V),I.createElement("span",{className:"recharts-tooltip-item-unit"},H.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:R},Q)}return null},E=yv({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),P=yv({margin:0},f),A=!ke(x),C=A?x:"",M=Le("recharts-default-tooltip",v),$=Le("recharts-tooltip-label",_);A&&S&&h!==void 0&&h!==null&&(C=S(x,h));var z=b?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",xy({className:M,style:E},z),I.createElement("p",{className:$,style:P},I.isValidElement(C)?C:"".concat(C)),w())};function Uu(e){"@babel/helpers - typeof";return Uu=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},Uu(e)}function Gf(e,t,n){return t=hq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hq(e){var t=dq(e,"string");return Uu(t)=="symbol"?t:t+""}function dq(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $l="recharts-tooltip-wrapper",pq={visibility:"hidden"};function mq(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Le($l,Gf(Gf(Gf(Gf({},"".concat($l,"-right"),ie(n)&&t&&ie(t.x)&&n>=t.x),"".concat($l,"-left"),ie(n)&&t&&ie(t.x)&&n<t.x),"".concat($l,"-bottom"),ie(r)&&t&&ie(t.y)&&r>=t.y),"".concat($l,"-top"),ie(r)&&t&&ie(t.y)&&r<t.y))}function EP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,s=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,f=e.viewBoxDimension;if(o&&ie(o[r]))return o[r];var h=n[r]-l-i,d=n[r]+i;if(t[r])return s[r]?h:d;if(s[r]){var m=h,v=u[r];return m<v?Math.max(d,u[r]):Math.max(h,u[r])}var _=d+l,x=u[r]+f;return _>x?Math.max(h,u[r]):Math.max(d,u[r])}function vq(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function gq(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,s=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,f,h,d;return s.height>0&&s.width>0&&n?(h=EP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:u,viewBoxDimension:u.width}),d=EP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:u,viewBoxDimension:u.height}),f=vq({translateX:h,translateY:d,useTranslate3d:l})):f=pq,{cssProperties:f,cssClasses:mq({translateX:h,translateY:d,coordinate:n})}}function fs(e){"@babel/helpers - typeof";return fs=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},fs(e)}function kP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kP(Object(n),!0).forEach(function(r){by(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LM(r.key),r)}}function _q(e,t,n){return t&&xq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bq(e,t,n){return t=cd(t),wq(e,$M()?Reflect.construct(t,n||[],cd(e).constructor):t.apply(e,n))}function wq(e,t){if(t&&(fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sq(e)}function Sq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($M=function(){return!!e})()}function cd(e){return cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cd(e)}function Pq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_y(e,t)}function _y(e,t){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_y(e,t)}function by(e,t,n){return t=LM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LM(e){var t=Oq(e,"string");return fs(t)=="symbol"?t:t+""}function Oq(e,t){if(fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var MP=1,Tq=function(e){function t(){var n;yq(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=bq(this,t,[].concat(i)),by(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),by(n,"handleKeyDown",function(s){if(s.key==="Escape"){var l,u,f,h;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(u=n.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&l!==void 0?l:0,y:(f=(h=n.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&f!==void 0?f:0}})}}),n}return Pq(t,e),_q(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>MP||Math.abs(r.height-this.state.lastBoundingBox.height)>MP)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,f=i.children,h=i.coordinate,d=i.hasPayload,m=i.isAnimationActive,v=i.offset,_=i.position,x=i.reverseDirection,S=i.useTranslate3d,y=i.viewBox,b=i.wrapperStyle,w=gq({allowEscapeViewBox:s,coordinate:h,offsetTopLeft:v,position:_,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:y}),E=w.cssClasses,P=w.cssProperties,A=CP(CP({transition:m&&o?"transform ".concat(l,"ms ").concat(u):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},b);return I.createElement("div",{tabIndex:-1,className:E,style:A,ref:function(M){r.wrapperNode=M}},f)}}])}(j.PureComponent),Aq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Gs={isSsr:Aq()};function hs(e){"@babel/helpers - typeof";return hs=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},hs(e)}function jP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $P(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jP(Object(n),!0).forEach(function(r){A_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IM(r.key),r)}}function Cq(e,t,n){return t&&kq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mq(e,t,n){return t=fd(t),jq(e,NM()?Reflect.construct(t,n||[],fd(e).constructor):t.apply(e,n))}function jq(e,t){if(t&&(hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $q(e)}function $q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NM=function(){return!!e})()}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fd(e)}function Lq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wy(e,t)}function wy(e,t){return wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wy(e,t)}function A_(e,t,n){return t=IM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IM(e){var t=Nq(e,"string");return hs(t)=="symbol"?t:t+""}function Nq(e,t){if(hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Iq(e){return e.dataKey}function Dq(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(fq,t)}var Zr=function(e){function t(){return Eq(this,t),Mq(this,t,arguments)}return Lq(t,e),Cq(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,f=i.content,h=i.coordinate,d=i.filterNull,m=i.isAnimationActive,v=i.offset,_=i.payload,x=i.payloadUniqBy,S=i.position,y=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,E=i.wrapperStyle,P=_??[];d&&P.length&&(P=OM(_.filter(function(C){return C.value!=null&&(C.hide!==!0||r.props.includeHidden)}),x,Iq));var A=P.length>0;return I.createElement(Tq,{allowEscapeViewBox:s,animationDuration:l,animationEasing:u,isAnimationActive:m,active:o,coordinate:h,hasPayload:A,offset:v,position:S,reverseDirection:y,useTranslate3d:b,viewBox:w,wrapperStyle:E},Dq(f,$P($P({},this.props),{},{payload:P})))}}])}(j.PureComponent);A_(Zr,"displayName","Tooltip");A_(Zr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Gs.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Rq=Ir,zq=function(){return Rq.Date.now()},Bq=zq,Fq=/\s/;function Vq(e){for(var t=e.length;t--&&Fq.test(e.charAt(t)););return t}var Uq=Vq,Wq=Uq,Hq=/^\s+/;function Zq(e){return e&&e.slice(0,Wq(e)+1).replace(Hq,"")}var Gq=Zq,Kq=Gq,LP=to,qq=Rs,NP=NaN,Xq=/^[-+]0x[0-9a-f]+$/i,Yq=/^0b[01]+$/i,Qq=/^0o[0-7]+$/i,Jq=parseInt;function eX(e){if(typeof e=="number")return e;if(qq(e))return NP;if(LP(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=LP(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Kq(e);var n=Yq.test(e);return n||Qq.test(e)?Jq(e.slice(2),n?2:8):Xq.test(e)?NP:+e}var DM=eX,tX=to,xv=Bq,IP=DM,nX="Expected a function",rX=Math.max,iX=Math.min;function oX(e,t,n){var r,i,o,s,l,u,f=0,h=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(nX);t=IP(t)||0,tX(n)&&(h=!!n.leading,d="maxWait"in n,o=d?rX(IP(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m);function v(A){var C=r,M=i;return r=i=void 0,f=A,s=e.apply(M,C),s}function _(A){return f=A,l=setTimeout(y,t),h?v(A):s}function x(A){var C=A-u,M=A-f,$=t-C;return d?iX($,o-M):$}function S(A){var C=A-u,M=A-f;return u===void 0||C>=t||C<0||d&&M>=o}function y(){var A=xv();if(S(A))return b(A);l=setTimeout(y,x(A))}function b(A){return l=void 0,m&&r?v(A):(r=i=void 0,s)}function w(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function E(){return l===void 0?s:b(xv())}function P(){var A=xv(),C=S(A);if(r=arguments,i=this,u=A,C){if(l===void 0)return _(u);if(d)return clearTimeout(l),l=setTimeout(y,t),v(u)}return l===void 0&&(l=setTimeout(y,t)),s}return P.cancel=w,P.flush=E,P}var aX=oX,sX=aX,lX=to,uX="Expected a function";function cX(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(uX);return lX(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),sX(e,t,{leading:r,maxWait:t,trailing:i})}var fX=cX;const RM=Ue(fX);function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DP(Object(n),!0).forEach(function(r){hX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hX(e,t,n){return t=dX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dX(e){var t=pX(e,"string");return Wu(t)=="symbol"?t:t+""}function pX(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mX(e,t){return xX(e)||yX(e,t)||gX(e,t)||vX()}function vX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
319
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gX(e,t){if(e){if(typeof e=="string")return RP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RP(e,t)}}function RP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function xX(e){if(Array.isArray(e))return e}var zP=j.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,s=o===void 0?"100%":o,l=e.height,u=l===void 0?"100%":l,f=e.minWidth,h=f===void 0?0:f,d=e.minHeight,m=e.maxHeight,v=e.children,_=e.debounce,x=_===void 0?0:_,S=e.id,y=e.className,b=e.onResize,w=e.style,E=w===void 0?{}:w,P=j.useRef(null),A=j.useRef();A.current=b,j.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var C=j.useState({containerWidth:i.width,containerHeight:i.height}),M=mX(C,2),$=M[0],z=M[1],B=j.useCallback(function(Q,H){z(function(K){var q=Math.round(Q),X=Math.round(H);return K.containerWidth===q&&K.containerHeight===X?K:{containerWidth:q,containerHeight:X}})},[]);j.useEffect(function(){var Q=function(G){var V,te=G[0].contentRect,J=te.width,ae=te.height;B(J,ae),(V=A.current)===null||V===void 0||V.call(A,J,ae)};x>0&&(Q=RM(Q,x,{trailing:!0,leading:!1}));var H=new ResizeObserver(Q),K=P.current.getBoundingClientRect(),q=K.width,X=K.height;return B(q,X),H.observe(P.current),function(){H.disconnect()}},[B,x]);var R=j.useMemo(function(){var Q=$.containerWidth,H=$.containerHeight;if(Q<0||H<0)return null;ii(Co(s)||Co(u),`The width(%s) and height(%s) are both fixed numbers,
|
|
320
|
+
maybe you don't need to use a ResponsiveContainer.`,s,u),ii(!n||n>0,"The aspect(%s) must be greater than zero.",n);var K=Co(s)?Q:s,q=Co(u)?H:u;n&&n>0&&(K?q=K/n:q&&(K=q*n),m&&q>m&&(q=m)),ii(K>0||q>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
321
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
322
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
323
|
+
height and width.`,K,q,s,u,h,d,n);var X=!Array.isArray(v)&&ri(v.type).endsWith("Chart");return I.Children.map(v,function(D){return I.isValidElement(D)?j.cloneElement(D,Kf({width:K,height:q},X?{style:Kf({height:"100%",width:"100%",maxHeight:q,maxWidth:K},D.props.style)}:{})):D})},[n,v,u,m,d,h,$,s]);return I.createElement("div",{id:S?"".concat(S):void 0,className:Le("recharts-responsive-container",y),style:Kf(Kf({},E),{},{width:s,height:u,minWidth:h,minHeight:d,maxHeight:m}),ref:P},R)}),E_=function(t){return null};E_.displayName="Cell";function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}function BP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BP(Object(n),!0).forEach(function(r){_X(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _X(e,t,n){return t=bX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bX(e){var t=wX(e,"string");return Hu(t)=="symbol"?t:t+""}function wX(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ya={widthCache:{},cacheCount:0},SX=2e3,PX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},FP="recharts_measurement_span";function OX(e){var t=Sy({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var du=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Gs.isSsr)return{width:0,height:0};var r=OX(n),i=JSON.stringify({text:t,copyStyle:r});if(ya.widthCache[i])return ya.widthCache[i];try{var o=document.getElementById(FP);o||(o=document.createElement("span"),o.setAttribute("id",FP),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=Sy(Sy({},PX),r);Object.assign(o.style,s),o.textContent="".concat(t);var l=o.getBoundingClientRect(),u={width:l.width,height:l.height};return ya.widthCache[i]=u,++ya.cacheCount>SX&&(ya.cacheCount=0,ya.widthCache={}),u}catch{return{width:0,height:0}}},TX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Zu(e){"@babel/helpers - typeof";return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(e)}function hd(e,t){return CX(e)||kX(e,t)||EX(e,t)||AX()}function AX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
324
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EX(e,t){if(e){if(typeof e=="string")return VP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VP(e,t)}}function VP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function CX(e){if(Array.isArray(e))return e}function MX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$X(r.key),r)}}function jX(e,t,n){return t&&UP(e.prototype,t),n&&UP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $X(e){var t=LX(e,"string");return Zu(t)=="symbol"?t:t+""}function LX(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,HP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,NX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,IX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,zM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},DX=Object.keys(zM),Ra="NaN";function RX(e,t){return e*zM[t]}var qf=function(){function e(t,n){MX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!NX.test(n)&&(this.num=NaN,this.unit=""),DX.includes(n)&&(this.num=RX(t,n),this.unit="px")}return jX(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=IX.exec(n))!==null&&r!==void 0?r:[],o=hd(i,3),s=o[1],l=o[2];return new e(parseFloat(s),l??"")}}])}();function BM(e){if(e.includes(Ra))return Ra;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=WP.exec(t))!==null&&n!==void 0?n:[],i=hd(r,4),o=i[1],s=i[2],l=i[3],u=qf.parse(o??""),f=qf.parse(l??""),h=s==="*"?u.multiply(f):u.divide(f);if(h.isNaN())return Ra;t=t.replace(WP,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,m=(d=HP.exec(t))!==null&&d!==void 0?d:[],v=hd(m,4),_=v[1],x=v[2],S=v[3],y=qf.parse(_??""),b=qf.parse(S??""),w=x==="+"?y.add(b):y.subtract(b);if(w.isNaN())return Ra;t=t.replace(HP,w.toString())}return t}var ZP=/\(([^()]*)\)/;function zX(e){for(var t=e;t.includes("(");){var n=ZP.exec(t),r=hd(n,2),i=r[1];t=t.replace(ZP,BM(i))}return t}function BX(e){var t=e.replace(/\s+/g,"");return t=zX(t),t=BM(t),t}function FX(e){try{return BX(e)}catch{return Ra}}function _v(e){var t=FX(e.slice(5,-1));return t===Ra?"":t}var VX=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],UX=["dx","dy","angle","className","breakAll"];function Py(){return Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Py.apply(this,arguments)}function GP(e,t){if(e==null)return{};var n=WX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function KP(e,t){return KX(e)||GX(e,t)||ZX(e,t)||HX()}function HX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
325
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZX(e,t){if(e){if(typeof e=="string")return qP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qP(e,t)}}function qP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function KX(e){if(Array.isArray(e))return e}var FM=/[ \f\n\r\t\v\u2028\u2029]+/,VM=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];ke(n)||(r?o=n.toString().split(""):o=n.toString().split(FM));var s=o.map(function(u){return{word:u,width:du(u,i).width}}),l=r?0:du(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:l}}catch{return null}},qX=function(t,n,r,i,o){var s=t.maxLines,l=t.children,u=t.style,f=t.breakAll,h=ie(s),d=l,m=function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return K.reduce(function(q,X){var D=X.word,G=X.width,V=q[q.length-1];if(V&&(i==null||o||V.width+G+r<Number(i)))V.words.push(D),V.width+=G+r;else{var te={words:[D],width:G};q.push(te)}return q},[])},v=m(n),_=function(K){return K.reduce(function(q,X){return q.width>X.width?q:X})};if(!h)return v;for(var x="…",S=function(K){var q=d.slice(0,K),X=VM({breakAll:f,style:u,children:q+x}).wordsWithComputedWidth,D=m(X),G=D.length>s||_(D).width>Number(i);return[G,D]},y=0,b=d.length-1,w=0,E;y<=b&&w<=d.length-1;){var P=Math.floor((y+b)/2),A=P-1,C=S(A),M=KP(C,2),$=M[0],z=M[1],B=S(P),R=KP(B,1),Q=R[0];if(!$&&!Q&&(y=P+1),$&&Q&&(b=P-1),!$&&Q){E=z;break}w++}return E||v},XP=function(t){var n=ke(t)?[]:t.toString().split(FM);return[{words:n}]},XX=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,s=t.breakAll,l=t.maxLines;if((n||r)&&!Gs.isSsr){var u,f,h=VM({breakAll:s,children:i,style:o});if(h){var d=h.wordsWithComputedWidth,m=h.spaceWidth;u=d,f=m}else return XP(i);return qX({breakAll:s,children:i,maxLines:l,style:o},u,f,n,r)}return XP(i)},YP="#808080",dd=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,s=t.lineHeight,l=s===void 0?"1em":s,u=t.capHeight,f=u===void 0?"0.71em":u,h=t.scaleToFit,d=h===void 0?!1:h,m=t.textAnchor,v=m===void 0?"start":m,_=t.verticalAnchor,x=_===void 0?"end":_,S=t.fill,y=S===void 0?YP:S,b=GP(t,VX),w=j.useMemo(function(){return XX({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:d,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,d,b.style,b.width]),E=b.dx,P=b.dy,A=b.angle,C=b.className,M=b.breakAll,$=GP(b,UX);if(!Ot(r)||!Ot(o))return null;var z=r+(ie(E)?E:0),B=o+(ie(P)?P:0),R;switch(x){case"start":R=_v("calc(".concat(f,")"));break;case"middle":R=_v("calc(".concat((w.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:R=_v("calc(".concat(w.length-1," * -").concat(l,")"));break}var Q=[];if(d){var H=w[0].width,K=b.width;Q.push("scale(".concat((ie(K)?K/H:1)/H,")"))}return A&&Q.push("rotate(".concat(A,", ").concat(z,", ").concat(B,")")),Q.length&&($.transform=Q.join(" ")),I.createElement("text",Py({},Ae($,!0),{x:z,y:B,className:Le("recharts-text",C),textAnchor:v,fill:y.includes("url")?YP:y}),w.map(function(q,X){var D=q.words.join(M?"":" ");return I.createElement("tspan",{x:z,dy:X===0?R:l,key:"".concat(D,"-").concat(X)},D)}))};function Zi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function YX(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function k_(e){let t,n,r;e.length!==2?(t=Zi,n=(l,u)=>Zi(e(l),u),r=(l,u)=>e(l)-u):(t=e===Zi||e===YX?e:QX,n=e,r=e);function i(l,u,f=0,h=l.length){if(f<h){if(t(u,u)!==0)return h;do{const d=f+h>>>1;n(l[d],u)<0?f=d+1:h=d}while(f<h)}return f}function o(l,u,f=0,h=l.length){if(f<h){if(t(u,u)!==0)return h;do{const d=f+h>>>1;n(l[d],u)<=0?f=d+1:h=d}while(f<h)}return f}function s(l,u,f=0,h=l.length){const d=i(l,u,f,h-1);return d>f&&r(l[d-1],u)>-r(l[d],u)?d-1:d}return{left:i,center:s,right:o}}function QX(){return 0}function UM(e){return e===null?NaN:+e}function*JX(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const eY=k_(Zi),Lc=eY.right;k_(UM).center;class QP extends Map{constructor(t,n=rY){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(JP(this,t))}has(t){return super.has(JP(this,t))}set(t,n){return super.set(tY(this,t),n)}delete(t){return super.delete(nY(this,t))}}function JP({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function tY({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function nY({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function rY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function iY(e=Zi){if(e===Zi)return WM;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 WM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const oY=Math.sqrt(50),aY=Math.sqrt(10),sY=Math.sqrt(2);function pd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=oY?10:o>=aY?5:o>=sY?2:1;let l,u,f;return i<0?(f=Math.pow(10,-i)/s,l=Math.round(e*f),u=Math.round(t*f),l/f<e&&++l,u/f>t&&--u,f=-f):(f=Math.pow(10,i)*s,l=Math.round(e/f),u=Math.round(t/f),l*f<e&&++l,u*f>t&&--u),u<l&&.5<=n&&n<2?pd(e,t,n*2):[l,u,f]}function Oy(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?pd(t,e,n):pd(e,t,n);if(!(o>=i))return[];const l=o-i+1,u=new Array(l);if(r)if(s<0)for(let f=0;f<l;++f)u[f]=(o-f)/-s;else for(let f=0;f<l;++f)u[f]=(o-f)*s;else if(s<0)for(let f=0;f<l;++f)u[f]=(i+f)/-s;else for(let f=0;f<l;++f)u[f]=(i+f)*s;return u}function Ty(e,t,n){return t=+t,e=+e,n=+n,pd(e,t,n)[2]}function Ay(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ty(t,e,n):Ty(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function eO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function tO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function HM(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?WM:iY(i);r>n;){if(r-n>600){const u=r-n+1,f=t-n+1,h=Math.log(u),d=.5*Math.exp(2*h/3),m=.5*Math.sqrt(h*d*(u-d)/u)*(f-u/2<0?-1:1),v=Math.max(n,Math.floor(t-f*d/u+m)),_=Math.min(r,Math.floor(t+(u-f)*d/u+m));HM(e,t,v,_,i)}const o=e[t];let s=n,l=r;for(Ll(e,n,t),i(e[r],o)>0&&Ll(e,n,r);s<l;){for(Ll(e,s,l),++s,--l;i(e[s],o)<0;)++s;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?Ll(e,n,l):(++l,Ll(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Ll(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function lY(e,t,n){if(e=Float64Array.from(JX(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return tO(e);if(t>=1)return eO(e);var r,i=(r-1)*t,o=Math.floor(i),s=eO(HM(e,o).subarray(0,o+1)),l=tO(e.subarray(o+1));return s+(l-s)*(i-o)}}function uY(e,t,n=UM){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),s=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return s+(l-s)*(i-o)}}function cY(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 Qn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function yi(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 Ey=Symbol("implicit");function C_(){var e=new QP,t=[],n=[],r=Ey;function i(o){let s=e.get(o);if(s===void 0){if(r!==Ey)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new QP;for(const s of o)e.has(s)||e.set(s,t.push(s)-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 C_(t,n).unknown(r)},Qn.apply(i,arguments),i}function Gu(){var e=C_().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,l=!1,u=0,f=0,h=.5;delete e.unknown;function d(){var m=t().length,v=i<r,_=v?i:r,x=v?r:i;o=(x-_)/Math.max(1,m-u+f*2),l&&(o=Math.floor(o)),_+=(x-_-o*(m-u))*h,s=o*(1-u),l&&(_=Math.round(_),s=Math.round(s));var S=cY(m).map(function(y){return _+o*y});return n(v?S.reverse():S)}return e.domain=function(m){return arguments.length?(t(m),d()):t()},e.range=function(m){return arguments.length?([r,i]=m,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(m){return[r,i]=m,r=+r,i=+i,l=!0,d()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(m){return arguments.length?(l=!!m,d()):l},e.padding=function(m){return arguments.length?(u=Math.min(1,f=+m),d()):u},e.paddingInner=function(m){return arguments.length?(u=Math.min(1,m),d()):u},e.paddingOuter=function(m){return arguments.length?(f=+m,d()):f},e.align=function(m){return arguments.length?(h=Math.max(0,Math.min(1,m)),d()):h},e.copy=function(){return Gu(t(),[r,i]).round(l).paddingInner(u).paddingOuter(f).align(h)},Qn.apply(d(),arguments)}function ZM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ZM(t())},e}function pu(){return ZM(Gu.apply(null,arguments).paddingInner(1))}function M_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function GM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Nc(){}var Ku=.7,md=1/Ku,Xa="\\s*([+-]?\\d+)\\s*",qu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fY=/^#([0-9a-f]{3,8})$/,hY=new RegExp(`^rgb\\(${Xa},${Xa},${Xa}\\)$`),dY=new RegExp(`^rgb\\(${jr},${jr},${jr}\\)$`),pY=new RegExp(`^rgba\\(${Xa},${Xa},${Xa},${qu}\\)$`),mY=new RegExp(`^rgba\\(${jr},${jr},${jr},${qu}\\)$`),vY=new RegExp(`^hsl\\(${qu},${jr},${jr}\\)$`),gY=new RegExp(`^hsla\\(${qu},${jr},${jr},${qu}\\)$`),nO={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};M_(Nc,Xu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rO,formatHex:rO,formatHex8:yY,formatHsl:xY,formatRgb:iO,toString:iO});function rO(){return this.rgb().formatHex()}function yY(){return this.rgb().formatHex8()}function xY(){return KM(this).formatHsl()}function iO(){return this.rgb().formatRgb()}function Xu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?oO(t):n===3?new fn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Xf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Xf(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=hY.exec(e))?new fn(t[1],t[2],t[3],1):(t=dY.exec(e))?new fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pY.exec(e))?Xf(t[1],t[2],t[3],t[4]):(t=mY.exec(e))?Xf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=vY.exec(e))?lO(t[1],t[2]/100,t[3]/100,1):(t=gY.exec(e))?lO(t[1],t[2]/100,t[3]/100,t[4]):nO.hasOwnProperty(e)?oO(nO[e]):e==="transparent"?new fn(NaN,NaN,NaN,0):null}function oO(e){return new fn(e>>16&255,e>>8&255,e&255,1)}function Xf(e,t,n,r){return r<=0&&(e=t=n=NaN),new fn(e,t,n,r)}function _Y(e){return e instanceof Nc||(e=Xu(e)),e?(e=e.rgb(),new fn(e.r,e.g,e.b,e.opacity)):new fn}function ky(e,t,n,r){return arguments.length===1?_Y(e):new fn(e,t,n,r??1)}function fn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}M_(fn,ky,GM(Nc,{brighter(e){return e=e==null?md:Math.pow(md,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fn(Ro(this.r),Ro(this.g),Ro(this.b),vd(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:aO,formatHex:aO,formatHex8:bY,formatRgb:sO,toString:sO}));function aO(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}`}function bY(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}${Mo((isNaN(this.opacity)?1:this.opacity)*255)}`}function sO(){const e=vd(this.opacity);return`${e===1?"rgb(":"rgba("}${Ro(this.r)}, ${Ro(this.g)}, ${Ro(this.b)}${e===1?")":`, ${e})`}`}function vd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ro(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Mo(e){return e=Ro(e),(e<16?"0":"")+e.toString(16)}function lO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fr(e,t,n,r)}function KM(e){if(e instanceof fr)return new fr(e.h,e.s,e.l,e.opacity);if(e instanceof Nc||(e=Xu(e)),!e)return new fr;if(e instanceof fr)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),s=NaN,l=o-i,u=(o+i)/2;return l?(t===o?s=(n-r)/l+(n<r)*6:n===o?s=(r-t)/l+2:s=(t-n)/l+4,l/=u<.5?o+i:2-o-i,s*=60):l=u>0&&u<1?0:s,new fr(s,l,u,e.opacity)}function wY(e,t,n,r){return arguments.length===1?KM(e):new fr(e,t,n,r??1)}function fr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}M_(fr,wY,GM(Nc,{brighter(e){return e=e==null?md:Math.pow(md,e),new fr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new fr(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 fn(bv(e>=240?e-240:e+120,i,r),bv(e,i,r),bv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new fr(uO(this.h),Yf(this.s),Yf(this.l),vd(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=vd(this.opacity);return`${e===1?"hsl(":"hsla("}${uO(this.h)}, ${Yf(this.s)*100}%, ${Yf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function uO(e){return e=(e||0)%360,e<0?e+360:e}function Yf(e){return Math.max(0,Math.min(1,e||0))}function bv(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 j_=e=>()=>e;function SY(e,t){return function(n){return e+n*t}}function PY(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 OY(e){return(e=+e)==1?qM:function(t,n){return n-t?PY(t,n,e):j_(isNaN(t)?n:t)}}function qM(e,t){var n=t-e;return n?SY(e,n):j_(isNaN(e)?t:e)}const cO=function e(t){var n=OY(t);function r(i,o){var s=n((i=ky(i)).r,(o=ky(o)).r),l=n(i.g,o.g),u=n(i.b,o.b),f=qM(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=l(h),i.b=u(h),i.opacity=f(h),i+""}}return r.gamma=e,r}(1);function TY(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 AY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function EY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Ks(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(l){for(s=0;s<r;++s)o[s]=i[s](l);return o}}function kY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function gd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function CY(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]=Ks(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Cy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wv=new RegExp(Cy.source,"g");function MY(e){return function(){return e}}function jY(e){return function(t){return e(t)+""}}function $Y(e,t){var n=Cy.lastIndex=wv.lastIndex=0,r,i,o,s=-1,l=[],u=[];for(e=e+"",t=t+"";(r=Cy.exec(e))&&(i=wv.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:gd(r,i)})),n=wv.lastIndex;return n<t.length&&(o=t.slice(n),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?jY(u[0].x):MY(t):(t=u.length,function(f){for(var h=0,d;h<t;++h)l[(d=u[h]).i]=d.x(f);return l.join("")})}function Ks(e,t){var n=typeof t,r;return t==null||n==="boolean"?j_(t):(n==="number"?gd:n==="string"?(r=Xu(t))?(t=r,cO):$Y:t instanceof Xu?cO:t instanceof Date?kY:AY(t)?TY:Array.isArray(t)?EY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?CY:gd)(e,t)}function $_(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function LY(e,t){t===void 0&&(t=e,e=Ks);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(s){var l=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[l](s-l)}}function NY(e){return function(){return e}}function yd(e){return+e}var fO=[0,1];function rn(e){return e}function My(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:NY(isNaN(t)?NaN:.5)}function IY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function DY(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=My(i,r),o=n(s,o)):(r=My(r,i),o=n(o,s)),function(l){return o(r(l))}}function RY(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=My(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(l){var u=Lc(e,l,1,r)-1;return o[u](i[u](l))}}function Ic(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Up(){var e=fO,t=fO,n=Ks,r,i,o,s=rn,l,u,f;function h(){var m=Math.min(e.length,t.length);return s!==rn&&(s=IY(e[0],e[m-1])),l=m>2?RY:DY,u=f=null,d}function d(m){return m==null||isNaN(m=+m)?o:(u||(u=l(e.map(r),t,n)))(r(s(m)))}return d.invert=function(m){return s(i((f||(f=l(t,e.map(r),gd)))(m)))},d.domain=function(m){return arguments.length?(e=Array.from(m,yd),h()):e.slice()},d.range=function(m){return arguments.length?(t=Array.from(m),h()):t.slice()},d.rangeRound=function(m){return t=Array.from(m),n=$_,h()},d.clamp=function(m){return arguments.length?(s=m?!0:rn,h()):s!==rn},d.interpolate=function(m){return arguments.length?(n=m,h()):n},d.unknown=function(m){return arguments.length?(o=m,d):o},function(m,v){return r=m,i=v,h()}}function L_(){return Up()(rn,rn)}function zY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xd(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ds(e){return e=xd(Math.abs(e)),e?e[1]:NaN}function BY(e,t){return function(n,r){for(var i=n.length,o=[],s=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),o.push(n.substring(i-=l,i+l)),!((u+=l+1)>r));)l=e[s=(s+1)%e.length];return o.reverse().join(t)}}function FY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var VY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yu(e){if(!(t=VY.exec(e)))throw new Error("invalid format: "+e);var t;return new N_({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]})}Yu.prototype=N_.prototype;function N_(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+""}N_.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 UY(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 _d;function WY(e,t){var n=xd(e,t);if(!n)return _d=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(_d=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+xd(e,Math.max(0,t+o-1))[0]}function hO(e,t){var n=xd(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 dO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:zY,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)=>hO(e*100,t),r:hO,s:WY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pO(e){return e}var mO=Array.prototype.map,vO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function HY(e){var t=e.grouping===void 0||e.thousands===void 0?pO:BY(mO.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?pO:FY(mO.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function f(d,m){d=Yu(d);var v=d.fill,_=d.align,x=d.sign,S=d.symbol,y=d.zero,b=d.width,w=d.comma,E=d.precision,P=d.trim,A=d.type;A==="n"?(w=!0,A="g"):dO[A]||(E===void 0&&(E=12),P=!0,A="g"),(y||v==="0"&&_==="=")&&(y=!0,v="0",_="=");var C=(m&&m.prefix!==void 0?m.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():""),M=(S==="$"?r:/[%p]/.test(A)?s:"")+(m&&m.suffix!==void 0?m.suffix:""),$=dO[A],z=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function B(R){var Q=C,H=M,K,q,X;if(A==="c")H=$(R)+H,R="";else{R=+R;var D=R<0||1/R<0;if(R=isNaN(R)?u:$(Math.abs(R),E),P&&(R=UY(R)),D&&+R==0&&x!=="+"&&(D=!1),Q=(D?x==="("?x:l:x==="-"||x==="("?"":x)+Q,H=(A==="s"&&!isNaN(R)&&_d!==void 0?vO[8+_d/3]:"")+H+(D&&x==="("?")":""),z){for(K=-1,q=R.length;++K<q;)if(X=R.charCodeAt(K),48>X||X>57){H=(X===46?i+R.slice(K+1):R.slice(K))+H,R=R.slice(0,K);break}}}w&&!y&&(R=t(R,1/0));var G=Q.length+R.length+H.length,V=G<b?new Array(b-G+1).join(v):"";switch(w&&y&&(R=t(V+R,V.length?b-H.length:1/0),V=""),_){case"<":R=Q+R+H+V;break;case"=":R=Q+V+R+H;break;case"^":R=V.slice(0,G=V.length>>1)+Q+R+H+V.slice(G);break;default:R=V+Q+R+H;break}return o(R)}return B.toString=function(){return d+""},B}function h(d,m){var v=Math.max(-8,Math.min(8,Math.floor(ds(m)/3)))*3,_=Math.pow(10,-v),x=f((d=Yu(d),d.type="f",d),{suffix:vO[8+v/3]});return function(S){return x(_*S)}}return{format:f,formatPrefix:h}}var Qf,I_,XM;ZY({thousands:",",grouping:[3],currency:["$",""]});function ZY(e){return Qf=HY(e),I_=Qf.format,XM=Qf.formatPrefix,Qf}function GY(e){return Math.max(0,-ds(Math.abs(e)))}function KY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ds(t)/3)))*3-ds(Math.abs(e)))}function qY(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ds(t)-ds(e))+1}function YM(e,t,n,r){var i=Ay(e,t,n),o;switch(r=Yu(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=KY(i,s))&&(r.precision=o),XM(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=qY(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=GY(i))&&(r.precision=o-(r.type==="%")*2);break}}return I_(r)}function ro(e){var t=e.domain;return e.ticks=function(n){var r=t();return Oy(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return YM(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,s=r[i],l=r[o],u,f,h=10;for(l<s&&(f=s,s=l,l=f,f=i,i=o,o=f);h-- >0;){if(f=Ty(s,l,n),f===u)return r[i]=s,r[o]=l,t(r);if(f>0)s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f;else if(f<0)s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f;else break;u=f}return e},e}function bd(){var e=L_();return e.copy=function(){return Ic(e,bd())},Qn.apply(e,arguments),ro(e)}function QM(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,yd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return QM(e).unknown(t)},e=arguments.length?Array.from(e,yd):[0,1],ro(n)}function JM(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function gO(e){return Math.log(e)}function yO(e){return Math.exp(e)}function XY(e){return-Math.log(-e)}function YY(e){return-Math.exp(-e)}function QY(e){return isFinite(e)?+("1e"+e):e<0?0:e}function JY(e){return e===10?QY:e===Math.E?Math.exp:t=>Math.pow(e,t)}function eQ(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 xO(e){return(t,n)=>-e(-t,n)}function D_(e){const t=e(gO,yO),n=t.domain;let r=10,i,o;function s(){return i=eQ(r),o=JY(r),n()[0]<0?(i=xO(i),o=xO(o),e(XY,YY)):e(gO,yO),t}return t.base=function(l){return arguments.length?(r=+l,s()):r},t.domain=function(l){return arguments.length?(n(l),s()):n()},t.ticks=l=>{const u=n();let f=u[0],h=u[u.length-1];const d=h<f;d&&([f,h]=[h,f]);let m=i(f),v=i(h),_,x;const S=l==null?10:+l;let y=[];if(!(r%1)&&v-m<S){if(m=Math.floor(m),v=Math.ceil(v),f>0){for(;m<=v;++m)for(_=1;_<r;++_)if(x=m<0?_/o(-m):_*o(m),!(x<f)){if(x>h)break;y.push(x)}}else for(;m<=v;++m)for(_=r-1;_>=1;--_)if(x=m>0?_/o(-m):_*o(m),!(x<f)){if(x>h)break;y.push(x)}y.length*2<S&&(y=Oy(f,h,S))}else y=Oy(m,v,Math.min(v-m,S)).map(o);return d?y.reverse():y},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Yu(u)).precision==null&&(u.trim=!0),u=I_(u)),l===1/0)return u;const f=Math.max(1,r*l/t.ticks().length);return h=>{let d=h/o(Math.round(i(h)));return d*r<r-.5&&(d*=r),d<=f?u(h):""}},t.nice=()=>n(JM(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function ej(){const e=D_(Up()).domain([1,10]);return e.copy=()=>Ic(e,ej()).base(e.base()),Qn.apply(e,arguments),e}function _O(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function R_(e){var t=1,n=e(_O(t),bO(t));return n.constant=function(r){return arguments.length?e(_O(t=+r),bO(t)):t},ro(n)}function tj(){var e=R_(Up());return e.copy=function(){return Ic(e,tj()).constant(e.constant())},Qn.apply(e,arguments)}function wO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function tQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function nQ(e){return e<0?-e*e:e*e}function z_(e){var t=e(rn,rn),n=1;function r(){return n===1?e(rn,rn):n===.5?e(tQ,nQ):e(wO(n),wO(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ro(t)}function B_(){var e=z_(Up());return e.copy=function(){return Ic(e,B_()).exponent(e.exponent())},Qn.apply(e,arguments),e}function rQ(){return B_.apply(null,arguments).exponent(.5)}function SO(e){return Math.sign(e)*e*e}function iQ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nj(){var e=L_(),t=[0,1],n=!1,r;function i(o){var s=iQ(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert(SO(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,yd)).map(SO)),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 nj(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Qn.apply(i,arguments),ro(i)}function rj(){var e=[],t=[],n=[],r;function i(){var s=0,l=Math.max(1,t.length);for(n=new Array(l-1);++s<l;)n[s-1]=uY(e,s/l);return o}function o(s){return s==null||isNaN(s=+s)?r:t[Lc(n,s)]}return o.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Zi),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return rj().domain(e).range(t).unknown(r)},Qn.apply(o,arguments)}function ij(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(u){return u!=null&&u<=u?i[Lc(r,u,0,n)]:o}function l(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return s}return s.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},s.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,l()):i.slice()},s.invertExtent=function(u){var f=i.indexOf(u);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},s.unknown=function(u){return arguments.length&&(o=u),s},s.thresholds=function(){return r.slice()},s.copy=function(){return ij().domain([e,t]).range(i).unknown(o)},Qn.apply(ro(s),arguments)}function oj(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Lc(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 s=t.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return oj().domain(e).range(t).unknown(n)},Qn.apply(i,arguments)}const Sv=new Date,Pv=new Date;function Tt(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 s=i(o),l=i.ceil(o);return o-s<l-o?s:l},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,l)=>{const u=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o<s)||!(l>0))return u;let f;do u.push(f=new Date(+o)),t(o,l),e(o);while(f<o&&o<s);return u},i.filter=o=>Tt(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!o(s););else for(;--l>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(Sv.setTime(+o),Pv.setTime(+s),e(Sv),e(Pv),Math.floor(n(Sv,Pv))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const wd=Tt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);wd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Tt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):wd);wd.range;const Yr=1e3,Hn=Yr*60,Qr=Hn*60,fi=Qr*24,F_=fi*7,PO=fi*30,Ov=fi*365,jo=Tt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Yr)},(e,t)=>(t-e)/Yr,e=>e.getUTCSeconds());jo.range;const V_=Tt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Yr)},(e,t)=>{e.setTime(+e+t*Hn)},(e,t)=>(t-e)/Hn,e=>e.getMinutes());V_.range;const U_=Tt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Hn)},(e,t)=>(t-e)/Hn,e=>e.getUTCMinutes());U_.range;const W_=Tt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Yr-e.getMinutes()*Hn)},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getHours());W_.range;const H_=Tt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getUTCHours());H_.range;const Dc=Tt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hn)/fi,e=>e.getDate()-1);Dc.range;const Wp=Tt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fi,e=>e.getUTCDate()-1);Wp.range;const aj=Tt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fi,e=>Math.floor(e/fi));aj.range;function ta(e){return Tt(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())*Hn)/F_)}const Hp=ta(0),Sd=ta(1),oQ=ta(2),aQ=ta(3),ps=ta(4),sQ=ta(5),lQ=ta(6);Hp.range;Sd.range;oQ.range;aQ.range;ps.range;sQ.range;lQ.range;function na(e){return Tt(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)/F_)}const Zp=na(0),Pd=na(1),uQ=na(2),cQ=na(3),ms=na(4),fQ=na(5),hQ=na(6);Zp.range;Pd.range;uQ.range;cQ.range;ms.range;fQ.range;hQ.range;const Z_=Tt(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());Z_.range;const G_=Tt(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());G_.range;const hi=Tt(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());hi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tt(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)});hi.range;const di=Tt(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());di.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tt(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)});di.range;function sj(e,t,n,r,i,o){const s=[[jo,1,Yr],[jo,5,5*Yr],[jo,15,15*Yr],[jo,30,30*Yr],[o,1,Hn],[o,5,5*Hn],[o,15,15*Hn],[o,30,30*Hn],[i,1,Qr],[i,3,3*Qr],[i,6,6*Qr],[i,12,12*Qr],[r,1,fi],[r,2,2*fi],[n,1,F_],[t,1,PO],[t,3,3*PO],[e,1,Ov]];function l(f,h,d){const m=h<f;m&&([f,h]=[h,f]);const v=d&&typeof d.range=="function"?d:u(f,h,d),_=v?v.range(f,+h+1):[];return m?_.reverse():_}function u(f,h,d){const m=Math.abs(h-f)/d,v=k_(([,,S])=>S).right(s,m);if(v===s.length)return e.every(Ay(f/Ov,h/Ov,d));if(v===0)return wd.every(Math.max(Ay(f,h,d),1));const[_,x]=s[m/s[v-1][2]<s[v][2]/m?v-1:v];return _.every(x)}return[l,u]}const[dQ,pQ]=sj(di,G_,Zp,aj,H_,U_),[mQ,vQ]=sj(hi,Z_,Hp,Dc,W_,V_);function Tv(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 Av(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 Nl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function gQ(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,f=Il(i),h=Dl(i),d=Il(o),m=Dl(o),v=Il(s),_=Dl(s),x=Il(l),S=Dl(l),y=Il(u),b=Dl(u),w={a:X,A:D,b:G,B:V,c:null,d:CO,e:CO,f:BQ,g:XQ,G:QQ,H:DQ,I:RQ,j:zQ,L:lj,m:FQ,M:VQ,p:te,q:J,Q:$O,s:LO,S:UQ,u:WQ,U:HQ,V:ZQ,w:GQ,W:KQ,x:null,X:null,y:qQ,Y:YQ,Z:JQ,"%":jO},E={a:ae,A:he,b:de,B:fe,c:null,d:MO,e:MO,f:rJ,g:dJ,G:mJ,H:eJ,I:tJ,j:nJ,L:cj,m:iJ,M:oJ,p:Fe,q:Re,Q:$O,s:LO,S:aJ,u:sJ,U:lJ,V:uJ,w:cJ,W:fJ,x:null,X:null,y:hJ,Y:pJ,Z:vJ,"%":jO},P={a:z,A:B,b:R,B:Q,c:H,d:EO,e:EO,f:$Q,g:AO,G:TO,H:kO,I:kO,j:kQ,L:jQ,m:EQ,M:CQ,p:$,q:AQ,Q:NQ,s:IQ,S:MQ,u:wQ,U:SQ,V:PQ,w:bQ,W:OQ,x:K,X:q,y:AO,Y:TO,Z:TQ,"%":LQ};w.x=A(n,w),w.X=A(r,w),w.c=A(t,w),E.x=A(n,E),E.X=A(r,E),E.c=A(t,E);function A(oe,ve){return function(U){var Z=[],me=-1,ce=0,Te=oe.length,_e,Ce,nt;for(U instanceof Date||(U=new Date(+U));++me<Te;)oe.charCodeAt(me)===37&&(Z.push(oe.slice(ce,me)),(Ce=OO[_e=oe.charAt(++me)])!=null?_e=oe.charAt(++me):Ce=_e==="e"?" ":"0",(nt=ve[_e])&&(_e=nt(U,Ce)),Z.push(_e),ce=me+1);return Z.push(oe.slice(ce,me)),Z.join("")}}function C(oe,ve){return function(U){var Z=Nl(1900,void 0,1),me=M(Z,oe,U+="",0),ce,Te;if(me!=U.length)return null;if("Q"in Z)return new Date(Z.Q);if("s"in Z)return new Date(Z.s*1e3+("L"in Z?Z.L:0));if(ve&&!("Z"in Z)&&(Z.Z=0),"p"in Z&&(Z.H=Z.H%12+Z.p*12),Z.m===void 0&&(Z.m="q"in Z?Z.q:0),"V"in Z){if(Z.V<1||Z.V>53)return null;"w"in Z||(Z.w=1),"Z"in Z?(ce=Av(Nl(Z.y,0,1)),Te=ce.getUTCDay(),ce=Te>4||Te===0?Pd.ceil(ce):Pd(ce),ce=Wp.offset(ce,(Z.V-1)*7),Z.y=ce.getUTCFullYear(),Z.m=ce.getUTCMonth(),Z.d=ce.getUTCDate()+(Z.w+6)%7):(ce=Tv(Nl(Z.y,0,1)),Te=ce.getDay(),ce=Te>4||Te===0?Sd.ceil(ce):Sd(ce),ce=Dc.offset(ce,(Z.V-1)*7),Z.y=ce.getFullYear(),Z.m=ce.getMonth(),Z.d=ce.getDate()+(Z.w+6)%7)}else("W"in Z||"U"in Z)&&("w"in Z||(Z.w="u"in Z?Z.u%7:"W"in Z?1:0),Te="Z"in Z?Av(Nl(Z.y,0,1)).getUTCDay():Tv(Nl(Z.y,0,1)).getDay(),Z.m=0,Z.d="W"in Z?(Z.w+6)%7+Z.W*7-(Te+5)%7:Z.w+Z.U*7-(Te+6)%7);return"Z"in Z?(Z.H+=Z.Z/100|0,Z.M+=Z.Z%100,Av(Z)):Tv(Z)}}function M(oe,ve,U,Z){for(var me=0,ce=ve.length,Te=U.length,_e,Ce;me<ce;){if(Z>=Te)return-1;if(_e=ve.charCodeAt(me++),_e===37){if(_e=ve.charAt(me++),Ce=P[_e in OO?ve.charAt(me++):_e],!Ce||(Z=Ce(oe,U,Z))<0)return-1}else if(_e!=U.charCodeAt(Z++))return-1}return Z}function $(oe,ve,U){var Z=f.exec(ve.slice(U));return Z?(oe.p=h.get(Z[0].toLowerCase()),U+Z[0].length):-1}function z(oe,ve,U){var Z=v.exec(ve.slice(U));return Z?(oe.w=_.get(Z[0].toLowerCase()),U+Z[0].length):-1}function B(oe,ve,U){var Z=d.exec(ve.slice(U));return Z?(oe.w=m.get(Z[0].toLowerCase()),U+Z[0].length):-1}function R(oe,ve,U){var Z=y.exec(ve.slice(U));return Z?(oe.m=b.get(Z[0].toLowerCase()),U+Z[0].length):-1}function Q(oe,ve,U){var Z=x.exec(ve.slice(U));return Z?(oe.m=S.get(Z[0].toLowerCase()),U+Z[0].length):-1}function H(oe,ve,U){return M(oe,t,ve,U)}function K(oe,ve,U){return M(oe,n,ve,U)}function q(oe,ve,U){return M(oe,r,ve,U)}function X(oe){return s[oe.getDay()]}function D(oe){return o[oe.getDay()]}function G(oe){return u[oe.getMonth()]}function V(oe){return l[oe.getMonth()]}function te(oe){return i[+(oe.getHours()>=12)]}function J(oe){return 1+~~(oe.getMonth()/3)}function ae(oe){return s[oe.getUTCDay()]}function he(oe){return o[oe.getUTCDay()]}function de(oe){return u[oe.getUTCMonth()]}function fe(oe){return l[oe.getUTCMonth()]}function Fe(oe){return i[+(oe.getUTCHours()>=12)]}function Re(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var ve=A(oe+="",w);return ve.toString=function(){return oe},ve},parse:function(oe){var ve=C(oe+="",!1);return ve.toString=function(){return oe},ve},utcFormat:function(oe){var ve=A(oe+="",E);return ve.toString=function(){return oe},ve},utcParse:function(oe){var ve=C(oe+="",!0);return ve.toString=function(){return oe},ve}}}var OO={"-":"",_:" ",0:"0"},Lt=/^\s*\d+/,yQ=/^%/,xQ=/[\\^$*+?|[\]().{}]/g;function Ne(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 _Q(e){return e.replace(xQ,"\\$&")}function Il(e){return new RegExp("^(?:"+e.map(_Q).join("|")+")","i")}function Dl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function bQ(e,t,n){var r=Lt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wQ(e,t,n){var r=Lt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function SQ(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function PQ(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function OQ(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function TO(e,t,n){var r=Lt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function AO(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function TQ(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 AQ(e,t,n){var r=Lt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function EQ(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function EO(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kQ(e,t,n){var r=Lt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function kO(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function CQ(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function MQ(e,t,n){var r=Lt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function jQ(e,t,n){var r=Lt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $Q(e,t,n){var r=Lt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LQ(e,t,n){var r=yQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function NQ(e,t,n){var r=Lt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function IQ(e,t,n){var r=Lt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function CO(e,t){return Ne(e.getDate(),t,2)}function DQ(e,t){return Ne(e.getHours(),t,2)}function RQ(e,t){return Ne(e.getHours()%12||12,t,2)}function zQ(e,t){return Ne(1+Dc.count(hi(e),e),t,3)}function lj(e,t){return Ne(e.getMilliseconds(),t,3)}function BQ(e,t){return lj(e,t)+"000"}function FQ(e,t){return Ne(e.getMonth()+1,t,2)}function VQ(e,t){return Ne(e.getMinutes(),t,2)}function UQ(e,t){return Ne(e.getSeconds(),t,2)}function WQ(e){var t=e.getDay();return t===0?7:t}function HQ(e,t){return Ne(Hp.count(hi(e)-1,e),t,2)}function uj(e){var t=e.getDay();return t>=4||t===0?ps(e):ps.ceil(e)}function ZQ(e,t){return e=uj(e),Ne(ps.count(hi(e),e)+(hi(e).getDay()===4),t,2)}function GQ(e){return e.getDay()}function KQ(e,t){return Ne(Sd.count(hi(e)-1,e),t,2)}function qQ(e,t){return Ne(e.getFullYear()%100,t,2)}function XQ(e,t){return e=uj(e),Ne(e.getFullYear()%100,t,2)}function YQ(e,t){return Ne(e.getFullYear()%1e4,t,4)}function QQ(e,t){var n=e.getDay();return e=n>=4||n===0?ps(e):ps.ceil(e),Ne(e.getFullYear()%1e4,t,4)}function JQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ne(t/60|0,"0",2)+Ne(t%60,"0",2)}function MO(e,t){return Ne(e.getUTCDate(),t,2)}function eJ(e,t){return Ne(e.getUTCHours(),t,2)}function tJ(e,t){return Ne(e.getUTCHours()%12||12,t,2)}function nJ(e,t){return Ne(1+Wp.count(di(e),e),t,3)}function cj(e,t){return Ne(e.getUTCMilliseconds(),t,3)}function rJ(e,t){return cj(e,t)+"000"}function iJ(e,t){return Ne(e.getUTCMonth()+1,t,2)}function oJ(e,t){return Ne(e.getUTCMinutes(),t,2)}function aJ(e,t){return Ne(e.getUTCSeconds(),t,2)}function sJ(e){var t=e.getUTCDay();return t===0?7:t}function lJ(e,t){return Ne(Zp.count(di(e)-1,e),t,2)}function fj(e){var t=e.getUTCDay();return t>=4||t===0?ms(e):ms.ceil(e)}function uJ(e,t){return e=fj(e),Ne(ms.count(di(e),e)+(di(e).getUTCDay()===4),t,2)}function cJ(e){return e.getUTCDay()}function fJ(e,t){return Ne(Pd.count(di(e)-1,e),t,2)}function hJ(e,t){return Ne(e.getUTCFullYear()%100,t,2)}function dJ(e,t){return e=fj(e),Ne(e.getUTCFullYear()%100,t,2)}function pJ(e,t){return Ne(e.getUTCFullYear()%1e4,t,4)}function mJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ms(e):ms.ceil(e),Ne(e.getUTCFullYear()%1e4,t,4)}function vJ(){return"+0000"}function jO(){return"%"}function $O(e){return+e}function LO(e){return Math.floor(+e/1e3)}var xa,hj,dj;gJ({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 gJ(e){return xa=gQ(e),hj=xa.format,xa.parse,dj=xa.utcFormat,xa.utcParse,xa}function yJ(e){return new Date(e)}function xJ(e){return e instanceof Date?+e:+new Date(+e)}function K_(e,t,n,r,i,o,s,l,u,f){var h=L_(),d=h.invert,m=h.domain,v=f(".%L"),_=f(":%S"),x=f("%I:%M"),S=f("%I %p"),y=f("%a %d"),b=f("%b %d"),w=f("%B"),E=f("%Y");function P(A){return(u(A)<A?v:l(A)<A?_:s(A)<A?x:o(A)<A?S:r(A)<A?i(A)<A?y:b:n(A)<A?w:E)(A)}return h.invert=function(A){return new Date(d(A))},h.domain=function(A){return arguments.length?m(Array.from(A,xJ)):m().map(yJ)},h.ticks=function(A){var C=m();return e(C[0],C[C.length-1],A??10)},h.tickFormat=function(A,C){return C==null?P:f(C)},h.nice=function(A){var C=m();return(!A||typeof A.range!="function")&&(A=t(C[0],C[C.length-1],A??10)),A?m(JM(C,A)):h},h.copy=function(){return Ic(h,K_(e,t,n,r,i,o,s,l,u,f))},h}function _J(){return Qn.apply(K_(mQ,vQ,hi,Z_,Hp,Dc,W_,V_,jo,hj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bJ(){return Qn.apply(K_(dQ,pQ,di,G_,Zp,Wp,H_,U_,jo,dj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gp(){var e=0,t=1,n,r,i,o,s=rn,l=!1,u;function f(d){return d==null||isNaN(d=+d)?u:s(i===0?.5:(d=(o(d)-n)*i,l?Math.max(0,Math.min(1,d)):d))}f.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(d){return arguments.length?(l=!!d,f):l},f.interpolator=function(d){return arguments.length?(s=d,f):s};function h(d){return function(m){var v,_;return arguments.length?([v,_]=m,s=d(v,_),f):[s(0),s(1)]}}return f.range=h(Ks),f.rangeRound=h($_),f.unknown=function(d){return arguments.length?(u=d,f):u},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),f}}function io(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function pj(){var e=ro(Gp()(rn));return e.copy=function(){return io(e,pj())},yi.apply(e,arguments)}function mj(){var e=D_(Gp()).domain([1,10]);return e.copy=function(){return io(e,mj()).base(e.base())},yi.apply(e,arguments)}function vj(){var e=R_(Gp());return e.copy=function(){return io(e,vj()).constant(e.constant())},yi.apply(e,arguments)}function q_(){var e=z_(Gp());return e.copy=function(){return io(e,q_()).exponent(e.exponent())},yi.apply(e,arguments)}function wJ(){return q_.apply(null,arguments).exponent(.5)}function gj(){var e=[],t=rn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Lc(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(Zi),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)=>lY(e,o/r))},n.copy=function(){return gj(t).domain(e)},yi.apply(n,arguments)}function Kp(){var e=0,t=.5,n=1,r=1,i,o,s,l,u,f=rn,h,d=!1,m;function v(x){return isNaN(x=+x)?m:(x=.5+((x=+h(x))-o)*(r*x<r*o?l:u),f(d?Math.max(0,Math.min(1,x)):x))}v.domain=function(x){return arguments.length?([e,t,n]=x,i=h(e=+e),o=h(t=+t),s=h(n=+n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(x){return arguments.length?(d=!!x,v):d},v.interpolator=function(x){return arguments.length?(f=x,v):f};function _(x){return function(S){var y,b,w;return arguments.length?([y,b,w]=S,f=LY(x,[y,b,w]),v):[f(0),f(.5),f(1)]}}return v.range=_(Ks),v.rangeRound=_($_),v.unknown=function(x){return arguments.length?(m=x,v):m},function(x){return h=x,i=x(e),o=x(t),s=x(n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v}}function yj(){var e=ro(Kp()(rn));return e.copy=function(){return io(e,yj())},yi.apply(e,arguments)}function xj(){var e=D_(Kp()).domain([.1,1,10]);return e.copy=function(){return io(e,xj()).base(e.base())},yi.apply(e,arguments)}function _j(){var e=R_(Kp());return e.copy=function(){return io(e,_j()).constant(e.constant())},yi.apply(e,arguments)}function X_(){var e=z_(Kp());return e.copy=function(){return io(e,X_()).exponent(e.exponent())},yi.apply(e,arguments)}function SJ(){return X_.apply(null,arguments).exponent(.5)}const NO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Gu,scaleDiverging:yj,scaleDivergingLog:xj,scaleDivergingPow:X_,scaleDivergingSqrt:SJ,scaleDivergingSymlog:_j,scaleIdentity:QM,scaleImplicit:Ey,scaleLinear:bd,scaleLog:ej,scaleOrdinal:C_,scalePoint:pu,scalePow:B_,scaleQuantile:rj,scaleQuantize:ij,scaleRadial:nj,scaleSequential:pj,scaleSequentialLog:mj,scaleSequentialPow:q_,scaleSequentialQuantile:gj,scaleSequentialSqrt:wJ,scaleSequentialSymlog:vj,scaleSqrt:rQ,scaleSymlog:tj,scaleThreshold:oj,scaleTime:_J,scaleUtc:bJ,tickFormat:YM},Symbol.toStringTag,{value:"Module"}));var PJ=Rs;function OJ(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(s!=null&&(l===void 0?s===s&&!PJ(s):n(s,l)))var l=s,u=o}return u}var bj=OJ;function TJ(e,t){return e>t}var AJ=TJ,EJ=bj,kJ=AJ,CJ=Zs;function MJ(e){return e&&e.length?EJ(e,CJ,kJ):void 0}var jJ=MJ;const Ii=Ue(jJ);function $J(e,t){return e<t}var LJ=$J,NJ=bj,IJ=LJ,DJ=Zs;function RJ(e){return e&&e.length?NJ(e,DJ,IJ):void 0}var zJ=RJ;const qp=Ue(zJ);var BJ=u_,FJ=no,VJ=MM,UJ=vn;function WJ(e,t){var n=UJ(e)?BJ:VJ;return n(e,FJ(t))}var HJ=WJ,ZJ=kM,GJ=HJ;function KJ(e,t){return ZJ(GJ(e,t),1)}var qJ=KJ;const XJ=Ue(qJ);var YJ=P_;function QJ(e,t){return YJ(e,t)}var JJ=QJ;const Qu=Ue(JJ);var qs=1e9,eee={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Q_,tt=!0,Xn="[DecimalError] ",zo=Xn+"Invalid argument: ",Y_=Xn+"Exponent out of range: ",Xs=Math.floor,Oo=Math.pow,tee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Sn,Mt=1e7,Ye=7,wj=9007199254740991,Od=Xs(wj/Ye),ue={};ue.absoluteValue=ue.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ue.comparedTo=ue.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};ue.decimalPlaces=ue.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ye;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ue.dividedBy=ue.div=function(e){return oi(this,new this.constructor(e))};ue.dividedToIntegerBy=ue.idiv=function(e){var t=this,n=t.constructor;return We(oi(t,new n(e),0,1),n.precision)};ue.equals=ue.eq=function(e){return!this.cmp(e)};ue.exponent=function(){return xt(this)};ue.greaterThan=ue.gt=function(e){return this.cmp(e)>0};ue.greaterThanOrEqualTo=ue.gte=function(e){return this.cmp(e)>=0};ue.isInteger=ue.isint=function(){return this.e>this.d.length-2};ue.isNegative=ue.isneg=function(){return this.s<0};ue.isPositive=ue.ispos=function(){return this.s>0};ue.isZero=function(){return this.s===0};ue.lessThan=ue.lt=function(e){return this.cmp(e)<0};ue.lessThanOrEqualTo=ue.lte=function(e){return this.cmp(e)<1};ue.logarithm=ue.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Sn))throw Error(Xn+"NaN");if(n.s<1)throw Error(Xn+(n.s?"NaN":"-Infinity"));return n.eq(Sn)?new r(0):(tt=!1,t=oi(Ju(n,o),Ju(e,o),o),tt=!0,We(t,i))};ue.minus=ue.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Oj(t,e):Sj(t,(e.s=-e.s,e))};ue.modulo=ue.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Xn+"NaN");return n.s?(tt=!1,t=oi(n,e,0,1).times(e),tt=!0,n.minus(t)):We(new r(n),i)};ue.naturalExponential=ue.exp=function(){return Pj(this)};ue.naturalLogarithm=ue.ln=function(){return Ju(this)};ue.negated=ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ue.plus=ue.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sj(t,e):Oj(t,(e.s=-e.s,e))};ue.precision=ue.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(zo+e);if(t=xt(i)+1,r=i.d.length-1,n=r*Ye+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ue.squareRoot=ue.sqrt=function(){var e,t,n,r,i,o,s,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(Xn+"NaN")}for(e=xt(l),tt=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Tr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Xs((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new u(t)):r=new u(i.toString()),n=u.precision,i=s=n+3;;)if(o=r,r=o.plus(oi(l,o,s+2)).times(.5),Tr(o.d).slice(0,s)===(t=Tr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(We(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;s+=4}return tt=!0,We(r,n)};ue.times=ue.mul=function(e){var t,n,r,i,o,s,l,u,f,h=this,d=h.constructor,m=h.d,v=(e=new d(e)).d;if(!h.s||!e.s)return new d(0);for(e.s*=h.s,n=h.e+e.e,u=m.length,f=v.length,u<f&&(o=m,m=v,v=o,s=u,u=f,f=s),o=[],s=u+f,r=s;r--;)o.push(0);for(r=f;--r>=0;){for(t=0,i=u+r;i>r;)l=o[i]+v[r]*m[i-r-1]+t,o[i--]=l%Mt|0,t=l/Mt|0;o[i]=(o[i]+t)%Mt|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,tt?We(e,d.precision):e};ue.toDecimalPlaces=ue.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Nr(e,0,qs),t===void 0?t=r.rounding:Nr(t,0,8),We(n,e+xt(n)+1,t))};ue.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Ko(r,!0):(Nr(e,0,qs),t===void 0?t=i.rounding:Nr(t,0,8),r=We(new i(r),e+1,t),n=Ko(r,!0,e+1)),n};ue.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Ko(i):(Nr(e,0,qs),t===void 0?t=o.rounding:Nr(t,0,8),r=We(new o(i),e+xt(i)+1,t),n=Ko(r.abs(),!1,e+xt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ue.toInteger=ue.toint=function(){var e=this,t=e.constructor;return We(new t(e),xt(e)+1,t.rounding)};ue.toNumber=function(){return+this};ue.toPower=ue.pow=function(e){var t,n,r,i,o,s,l=this,u=l.constructor,f=12,h=+(e=new u(e));if(!e.s)return new u(Sn);if(l=new u(l),!l.s){if(e.s<1)throw Error(Xn+"Infinity");return l}if(l.eq(Sn))return l;if(r=u.precision,e.eq(Sn))return We(l,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=l.s,s){if((n=h<0?-h:h)<=wj){for(i=new u(Sn),t=Math.ceil(r/Ye+4),tt=!1;n%2&&(i=i.times(l),DO(i.d,t)),n=Xs(n/2),n!==0;)l=l.times(l),DO(l.d,t);return tt=!0,e.s<0?new u(Sn).div(i):We(i,r)}}else if(o<0)throw Error(Xn+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,tt=!1,i=e.times(Ju(l,r+f)),tt=!0,i=Pj(i),i.s=o,i};ue.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=xt(i),r=Ko(i,n<=o.toExpNeg||n>=o.toExpPos)):(Nr(e,1,qs),t===void 0?t=o.rounding:Nr(t,0,8),i=We(new o(i),e,t),n=xt(i),r=Ko(i,e<=n||n<=o.toExpNeg,e)),r};ue.toSignificantDigits=ue.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Nr(e,1,qs),t===void 0?t=r.rounding:Nr(t,0,8)),We(new r(n),e,t)};ue.toString=ue.valueOf=ue.val=ue.toJSON=ue[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=xt(e),n=e.constructor;return Ko(e,t<=n.toExpNeg||t>=n.toExpPos)};function Sj(e,t){var n,r,i,o,s,l,u,f,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),tt?We(t,d):t;if(u=e.d,f=t.d,s=e.e,i=t.e,u=u.slice(),o=s-i,o){for(o<0?(r=u,o=-o,l=f.length):(r=f,i=s,l=u.length),s=Math.ceil(d/Ye),l=s>l?s+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=u.length,o=f.length,l-o<0&&(o=l,r=f,f=u,u=r),n=0;o;)n=(u[--o]=u[o]+f[o]+n)/Mt|0,u[o]%=Mt;for(n&&(u.unshift(n),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,tt?We(t,d):t}function Nr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(zo+e)}function Tr(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",n=Ye-r.length,n&&(o+=Ci(n)),o+=r;s=e[t],r=s+"",n=Ye-r.length,n&&(o+=Ci(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var oi=function(){function e(r,i){var o,s=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+s,r[l]=o%Mt|0,s=o/Mt|0;return s&&r.unshift(s),r}function t(r,i,o,s){var l,u;if(o!=s)u=o>s?1:-1;else for(l=u=0;l<o;l++)if(r[l]!=i[l]){u=r[l]>i[l]?1:-1;break}return u}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*Mt+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var l,u,f,h,d,m,v,_,x,S,y,b,w,E,P,A,C,M,$=r.constructor,z=r.s==i.s?1:-1,B=r.d,R=i.d;if(!r.s)return new $(r);if(!i.s)throw Error(Xn+"Division by zero");for(u=r.e-i.e,C=R.length,P=B.length,v=new $(z),_=v.d=[],f=0;R[f]==(B[f]||0);)++f;if(R[f]>(B[f]||0)&&--u,o==null?b=o=$.precision:s?b=o+(xt(r)-xt(i))+1:b=o,b<0)return new $(0);if(b=b/Ye+2|0,f=0,C==1)for(h=0,R=R[0],b++;(f<P||h)&&b--;f++)w=h*Mt+(B[f]||0),_[f]=w/R|0,h=w%R|0;else{for(h=Mt/(R[0]+1)|0,h>1&&(R=e(R,h),B=e(B,h),C=R.length,P=B.length),E=C,x=B.slice(0,C),S=x.length;S<C;)x[S++]=0;M=R.slice(),M.unshift(0),A=R[0],R[1]>=Mt/2&&++A;do h=0,l=t(R,x,C,S),l<0?(y=x[0],C!=S&&(y=y*Mt+(x[1]||0)),h=y/A|0,h>1?(h>=Mt&&(h=Mt-1),d=e(R,h),m=d.length,S=x.length,l=t(d,x,m,S),l==1&&(h--,n(d,C<m?M:R,m))):(h==0&&(l=h=1),d=R.slice()),m=d.length,m<S&&d.unshift(0),n(x,d,S),l==-1&&(S=x.length,l=t(R,x,C,S),l<1&&(h++,n(x,C<S?M:R,S))),S=x.length):l===0&&(h++,x=[0]),_[f++]=h,l&&x[0]?x[S++]=B[E]||0:(x=[B[E]],S=1);while((E++<P||x[0]!==void 0)&&b--)}return _[0]||_.shift(),v.e=u,We(v,s?o+xt(v)+1:o)}}();function Pj(e,t){var n,r,i,o,s,l,u=0,f=0,h=e.constructor,d=h.precision;if(xt(e)>16)throw Error(Y_+xt(e));if(!e.s)return new h(Sn);for(tt=!1,l=d,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(Oo(2,f))/Math.LN10*2+5|0,l+=r,n=i=o=new h(Sn),h.precision=l;;){if(i=We(i.times(e),l),n=n.times(++u),s=o.plus(oi(i,n,l)),Tr(s.d).slice(0,l)===Tr(o.d).slice(0,l)){for(;f--;)o=We(o.times(o),l);return h.precision=d,t==null?(tt=!0,We(o,d)):o}o=s}}function xt(e){for(var t=e.e*Ye,n=e.d[0];n>=10;n/=10)t++;return t}function Ev(e,t,n){if(t>e.LN10.sd())throw tt=!0,n&&(e.precision=n),Error(Xn+"LN10 precision limit exceeded");return We(new e(e.LN10),t)}function Ci(e){for(var t="";e--;)t+="0";return t}function Ju(e,t){var n,r,i,o,s,l,u,f,h,d=1,m=10,v=e,_=v.d,x=v.constructor,S=x.precision;if(v.s<1)throw Error(Xn+(v.s?"NaN":"-Infinity"));if(v.eq(Sn))return new x(0);if(t==null?(tt=!1,f=S):f=t,v.eq(10))return t==null&&(tt=!0),Ev(x,f);if(f+=m,x.precision=f,n=Tr(_),r=n.charAt(0),o=xt(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=Tr(v.d),r=n.charAt(0),d++;o=xt(v),r>1?(v=new x("0."+n),o++):v=new x(r+"."+n.slice(1))}else return u=Ev(x,f+2,S).times(o+""),v=Ju(new x(r+"."+n.slice(1)),f-m).plus(u),x.precision=S,t==null?(tt=!0,We(v,S)):v;for(l=s=v=oi(v.minus(Sn),v.plus(Sn),f),h=We(v.times(v),f),i=3;;){if(s=We(s.times(h),f),u=l.plus(oi(s,new x(i),f)),Tr(u.d).slice(0,f)===Tr(l.d).slice(0,f))return l=l.times(2),o!==0&&(l=l.plus(Ev(x,f+2,S).times(o+""))),l=oi(l,new x(d),f),x.precision=S,t==null?(tt=!0,We(l,S)):l;l=u,i+=2}}function IO(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Xs(n/Ye),e.d=[],r=(n+1)%Ye,n<0&&(r+=Ye),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Ye;r<i;)e.d.push(+t.slice(r,r+=Ye));t=t.slice(r),r=Ye-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),tt&&(e.e>Od||e.e<-Od))throw Error(Y_+n)}else e.s=0,e.e=0,e.d=[0];return e}function We(e,t,n){var r,i,o,s,l,u,f,h,d=e.d;for(s=1,o=d[0];o>=10;o/=10)s++;if(r=t-s,r<0)r+=Ye,i=t,f=d[h=0];else{if(h=Math.ceil((r+1)/Ye),o=d.length,h>=o)return e;for(f=o=d[h],s=1;o>=10;o/=10)s++;r%=Ye,i=r-Ye+s}if(n!==void 0&&(o=Oo(10,s-i-1),l=f/o%10|0,u=t<0||d[h+1]!==void 0||f%o,u=n<4?(l||u)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||u||n==6&&(r>0?i>0?f/Oo(10,s-i):0:d[h-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return u?(o=xt(e),d.length=1,t=t-o-1,d[0]=Oo(10,(Ye-t%Ye)%Ye),e.e=Xs(-t/Ye)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=h,o=1,h--):(d.length=h+1,o=Oo(10,Ye-r),d[h]=i>0?(f/Oo(10,s-i)%Oo(10,i)|0)*o:0),u)for(;;)if(h==0){(d[0]+=o)==Mt&&(d[0]=1,++e.e);break}else{if(d[h]+=o,d[h]!=Mt)break;d[h--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(tt&&(e.e>Od||e.e<-Od))throw Error(Y_+xt(e));return e}function Oj(e,t){var n,r,i,o,s,l,u,f,h,d,m=e.constructor,v=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),tt?We(t,v):t;if(u=e.d,d=t.d,r=t.e,f=e.e,u=u.slice(),s=f-r,s){for(h=s<0,h?(n=u,s=-s,l=d.length):(n=d,r=f,l=u.length),i=Math.max(Math.ceil(v/Ye),l)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=u.length,l=d.length,h=i<l,h&&(l=i),i=0;i<l;i++)if(u[i]!=d[i]){h=u[i]<d[i];break}s=0}for(h&&(n=u,u=d,d=n,t.s=-t.s),l=u.length,i=d.length-l;i>0;--i)u[l++]=0;for(i=d.length;i>s;){if(u[--i]<d[i]){for(o=i;o&&u[--o]===0;)u[o]=Mt-1;--u[o],u[i]+=Mt}u[i]-=d[i]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(t.d=u,t.e=r,tt?We(t,v):t):new m(0)}function Ko(e,t,n){var r,i=xt(e),o=Tr(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+Ci(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ci(-i-1)+o,n&&(r=n-s)>0&&(o+=Ci(r))):i>=s?(o+=Ci(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+Ci(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=Ci(r))),e.s<0?"-"+o:o}function DO(e,t){if(e.length>t)return e.length=t,!0}function Tj(e){var t,n,r;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(zo+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return IO(s,o.toString())}else if(typeof o!="string")throw Error(zo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,tee.test(o))IO(s,o);else throw Error(zo+o)}if(i.prototype=ue,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Tj,i.config=i.set=nee,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function nee(e){if(!e||typeof e!="object")throw Error(Xn+"Object expected");var t,n,r,i=["precision",1,qs,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Xs(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(zo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(zo+n+": "+r);return this}var Q_=Tj(eee);Sn=new Q_(1);const Ve=Q_;function ree(e){return see(e)||aee(e)||oee(e)||iee()}function iee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
326
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oee(e,t){if(e){if(typeof e=="string")return jy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jy(e,t)}}function aee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function see(e){if(Array.isArray(e))return jy(e)}function jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lee=function(t){return t},Aj={},Ej=function(t){return t===Aj},RO=function(t){return function n(){return arguments.length===0||arguments.length===1&&Ej(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},uee=function e(t,n){return t===1?n:RO(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.filter(function(l){return l!==Aj}).length;return s>=t?n.apply(void 0,i):e(t-s,RO(function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var h=i.map(function(d){return Ej(d)?u.shift():d});return n.apply(void 0,ree(h).concat(u))}))})},Xp=function(t){return uee(t.length,t)},$y=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},cee=Xp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),fee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return lee;var i=n.reverse(),o=i[0],s=i.slice(1);return function(){return s.reduce(function(l,u){return u(l)},o.apply(void 0,arguments))}},Ly=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},kj=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return n&&o.every(function(l,u){return l===n[u]})||(n=o,r=t.apply(void 0,o)),r}};function hee(e){var t;return e===0?t=1:t=Math.floor(new Ve(e).abs().log(10).toNumber())+1,t}function dee(e,t,n){for(var r=new Ve(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var pee=Xp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),mee=Xp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),vee=Xp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Yp={rangeStep:dee,getDigitCount:hee,interpolateNumber:pee,uninterpolateNumber:mee,uninterpolateTruncation:vee};function Ny(e){return xee(e)||yee(e)||Cj(e)||gee()}function gee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
327
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function xee(e){if(Array.isArray(e))return Iy(e)}function ec(e,t){return wee(e)||bee(e,t)||Cj(e,t)||_ee()}function _ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cj(e,t){if(e){if(typeof e=="string")return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iy(e,t)}}function Iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bee(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),l;!(r=(l=s.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function wee(e){if(Array.isArray(e))return e}function Mj(e){var t=ec(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function jj(e,t,n){if(e.lte(0))return new Ve(0);var r=Yp.getDigitCount(e.toNumber()),i=new Ve(10).pow(r),o=e.div(i),s=r!==1?.05:.1,l=new Ve(Math.ceil(o.div(s).toNumber())).add(n).mul(s),u=l.mul(i);return t?u:new Ve(Math.ceil(u))}function See(e,t,n){var r=1,i=new Ve(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Ve(10).pow(Yp.getDigitCount(e)-1),i=new Ve(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Ve(Math.floor(e)))}else e===0?i=new Ve(Math.floor((t-1)/2)):n||(i=new Ve(Math.floor(e)));var s=Math.floor((t-1)/2),l=fee(cee(function(u){return i.add(new Ve(u-s).mul(r)).toNumber()}),$y);return l(0,t)}function $j(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Ve(0),tickMin:new Ve(0),tickMax:new Ve(0)};var o=jj(new Ve(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new Ve(0):(s=new Ve(e).add(t).div(2),s=s.sub(new Ve(s).mod(o)));var l=Math.ceil(s.sub(e).div(o).toNumber()),u=Math.ceil(new Ve(t).sub(s).div(o).toNumber()),f=l+u+1;return f>n?$j(e,t,n,r,i+1):(f<n&&(u=t>0?u+(n-f):u,l=t>0?l:l+(n-f)),{step:o,tickMin:s.sub(new Ve(l).mul(o)),tickMax:s.add(new Ve(u).mul(o))})}function Pee(e){var t=ec(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),l=Mj([n,r]),u=ec(l,2),f=u[0],h=u[1];if(f===-1/0||h===1/0){var d=h===1/0?[f].concat(Ny($y(0,i-1).map(function(){return 1/0}))):[].concat(Ny($y(0,i-1).map(function(){return-1/0})),[h]);return n>r?Ly(d):d}if(f===h)return See(f,i,o);var m=$j(f,h,s,o),v=m.step,_=m.tickMin,x=m.tickMax,S=Yp.rangeStep(_,x.add(new Ve(.1).mul(v)),v);return n>r?Ly(S):S}function Oee(e,t){var n=ec(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Mj([r,i]),l=ec(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0)return[r,i];if(u===f)return[u];var h=Math.max(t,2),d=jj(new Ve(f).sub(u).div(h-1),o,0),m=[].concat(Ny(Yp.rangeStep(new Ve(u),new Ve(f).sub(new Ve(.99).mul(d)),d)),[f]);return r>i?Ly(m):m}var Tee=kj(Pee),Aee=kj(Oee),Eee="Invariant failed";function qo(e,t){throw new Error(Eee)}var kee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function vs(e){"@babel/helpers - typeof";return vs=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},vs(e)}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Td.apply(this,arguments)}function Cee(e,t){return Lee(e)||$ee(e,t)||jee(e,t)||Mee()}function Mee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
329
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jee(e,t){if(e){if(typeof e=="string")return zO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zO(e,t)}}function zO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $ee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Lee(e){if(Array.isArray(e))return e}function Nee(e,t){if(e==null)return{};var n=Iee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Iee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ree(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ij(r.key),r)}}function zee(e,t,n){return t&&Ree(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bee(e,t,n){return t=Ad(t),Fee(e,Lj()?Reflect.construct(t,n||[],Ad(e).constructor):t.apply(e,n))}function Fee(e,t){if(t&&(vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vee(e)}function Vee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lj=function(){return!!e})()}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ad(e)}function Uee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dy(e,t)}function Dy(e,t){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Dy(e,t)}function Nj(e,t,n){return t=Ij(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ij(e){var t=Wee(e,"string");return vs(t)=="symbol"?t:t+""}function Wee(e,t){if(vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qp=function(e){function t(){return Dee(this,t),Bee(this,t,arguments)}return Uee(t,e),zee(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,s=r.width,l=r.dataKey,u=r.data,f=r.dataPointFormatter,h=r.xAxis,d=r.yAxis,m=Nee(r,kee),v=Ae(m,!1);this.props.direction==="x"&&h.type!=="number"&&qo();var _=u.map(function(x){var S=f(x,l),y=S.x,b=S.y,w=S.value,E=S.errorVal;if(!E)return null;var P=[],A,C;if(Array.isArray(E)){var M=Cee(E,2);A=M[0],C=M[1]}else A=C=E;if(o==="vertical"){var $=h.scale,z=b+i,B=z+s,R=z-s,Q=$(w-A),H=$(w+C);P.push({x1:H,y1:B,x2:H,y2:R}),P.push({x1:Q,y1:z,x2:H,y2:z}),P.push({x1:Q,y1:B,x2:Q,y2:R})}else if(o==="horizontal"){var K=d.scale,q=y+i,X=q-s,D=q+s,G=K(w-A),V=K(w+C);P.push({x1:X,y1:V,x2:D,y2:V}),P.push({x1:q,y1:G,x2:q,y2:V}),P.push({x1:X,y1:G,x2:D,y2:G})}return I.createElement(at,Td({className:"recharts-errorBar",key:"bar-".concat(P.map(function(te){return"".concat(te.x1,"-").concat(te.x2,"-").concat(te.y1,"-").concat(te.y2)}))},v),P.map(function(te){return I.createElement("line",Td({},te,{key:"line-".concat(te.x1,"-").concat(te.x2,"-").concat(te.y1,"-").concat(te.y2)}))}))});return I.createElement(at,{className:"recharts-errorBars"},_)}}])}(I.Component);Nj(Qp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Nj(Qp,"displayName","ErrorBar");function tc(e){"@babel/helpers - typeof";return tc=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},tc(e)}function BO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(n),!0).forEach(function(r){Hee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hee(e,t,n){return t=Zee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zee(e){var t=Gee(e,"string");return tc(t)=="symbol"?t:t+""}function Gee(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dj=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,s=wn(n,qa);if(!s)return null;var l=qa.defaultProps,u=l!==void 0?yo(yo({},l),s.props):{},f;return s.props&&s.props.payload?f=s.props&&s.props.payload:o==="children"?f=(r||[]).reduce(function(h,d){var m=d.item,v=d.props,_=v.sectors||v.data||[];return h.concat(_.map(function(x){return{type:s.props.iconType||m.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):f=(r||[]).map(function(h){var d=h.item,m=d.type.defaultProps,v=m!==void 0?yo(yo({},m),d.props):{},_=v.dataKey,x=v.name,S=v.legendType,y=v.hide;return{inactive:y,dataKey:_,type:u.iconType||S||"square",color:J_(d),value:x||_,payload:v}}),yo(yo(yo({},u),qa.getWithHeight(s,i)),{},{payload:f,item:s})};function nc(e){"@babel/helpers - typeof";return nc=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},nc(e)}function FO(e){return Yee(e)||Xee(e)||qee(e)||Kee()}function Kee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
330
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qee(e,t){if(e){if(typeof e=="string")return Ry(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ry(e,t)}}function Xee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yee(e){if(Array.isArray(e))return Ry(e)}function Ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(n),!0).forEach(function(r){Ya(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ya(e,t,n){return t=Qee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qee(e){var t=Jee(e,"string");return nc(t)=="symbol"?t:t+""}function Jee(e,t){if(nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kn(e,t,n){return ke(e)||ke(t)?n:Ot(t)?Gn(e,t,n):Se(t)?t(e):n}function mu(e,t,n,r){var i=XJ(e,function(l){return kn(l,t)});if(n==="number"){var o=i.filter(function(l){return ie(l)||parseFloat(l)});return o.length?[qp(o),Ii(o)]:[1/0,-1/0]}var s=r?i.filter(function(l){return!ke(l)}):i;return s.map(function(l){return Ot(l)||l instanceof Date?l:""})}var ete=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var u=o.range,f=0;f<l;f++){var h=f>0?i[f-1].coordinate:i[l-1].coordinate,d=i[f].coordinate,m=f>=l-1?i[0].coordinate:i[f+1].coordinate,v=void 0;if(hr(d-h)!==hr(m-d)){var _=[];if(hr(m-d)===hr(u[1]-u[0])){v=m;var x=d+u[1]-u[0];_[0]=Math.min(x,(x+h)/2),_[1]=Math.max(x,(x+h)/2)}else{v=h;var S=m+u[1]-u[0];_[0]=Math.min(d,(S+d)/2),_[1]=Math.max(d,(S+d)/2)}var y=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(t>y[0]&&t<=y[1]||t>=_[0]&&t<=_[1]){s=i[f].index;break}}else{var b=Math.min(h,m),w=Math.max(h,m);if(t>(b+d)/2&&t<=(w+d)/2){s=i[f].index;break}}}else for(var E=0;E<l;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){s=r[E].index;break}return s},J_=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ht(ht({},t.type.defaultProps),t.props):t.props,s=o.stroke,l=o.fill,u;switch(i){case"Line":u=s;break;case"Area":case"Radar":u=s&&s!=="none"?s:l;break;default:u=l;break}return u},tte=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var s={},l=Object.keys(o),u=0,f=l.length;u<f;u++)for(var h=o[l[u]].stackGroups,d=Object.keys(h),m=0,v=d.length;m<v;m++){var _=h[d[m]],x=_.items,S=_.cateAxisId,y=x.filter(function(C){return ri(C.type).indexOf("Bar")>=0});if(y&&y.length){var b=y[0].type.defaultProps,w=b!==void 0?ht(ht({},b),y[0].props):y[0].props,E=w.barSize,P=w[S];s[P]||(s[P]=[]);var A=ke(E)?n:E;s[P].push({item:y[0],stackList:y.slice(1),barSize:ke(A)?void 0:Go(A,r,0)})}}return s},nte=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,s=o===void 0?[]:o,l=t.maxBarSize,u=s.length;if(u<1)return null;var f=Go(n,i,0,!0),h,d=[];if(s[0].barSize===+s[0].barSize){var m=!1,v=i/u,_=s.reduce(function(E,P){return E+P.barSize||0},0);_+=(u-1)*f,_>=i&&(_-=(u-1)*f,f=0),_>=i&&v>0&&(m=!0,v*=.9,_=u*v);var x=(i-_)/2>>0,S={offset:x-f,size:0};h=s.reduce(function(E,P){var A={item:P.item,position:{offset:S.offset+S.size+f,size:m?v:P.barSize}},C=[].concat(FO(E),[A]);return S=C[C.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(M){C.push({item:M,position:S})}),C},d)}else{var y=Go(r,i,0,!0);i-2*y-(u-1)*f<=0&&(f=0);var b=(i-2*y-(u-1)*f)/u;b>1&&(b>>=0);var w=l===+l?Math.min(b,l):b;h=s.reduce(function(E,P,A){var C=[].concat(FO(E),[{item:P.item,position:{offset:y+(b+f)*A+(b-w)/2,size:w}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(M){C.push({item:M,position:C[C.length-1].position})}),C},d)}return h},rte=function(t,n,r,i){var o=r.children,s=r.width,l=r.margin,u=s-(l.left||0)-(l.right||0),f=Dj({children:o,legendWidth:u});if(f){var h=i||{},d=h.width,m=h.height,v=f.align,_=f.verticalAlign,x=f.layout;if((x==="vertical"||x==="horizontal"&&_==="middle")&&v!=="center"&&ie(t[v]))return ht(ht({},t),{},Ya({},v,t[v]+(d||0)));if((x==="horizontal"||x==="vertical"&&v==="center")&&_!=="middle"&&ie(t[_]))return ht(ht({},t),{},Ya({},_,t[_]+(m||0)))}return t},ite=function(t,n,r){return ke(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Rj=function(t,n,r,i,o){var s=n.props.children,l=mr(s,Qp).filter(function(f){return ite(i,o,f.props.direction)});if(l&&l.length){var u=l.map(function(f){return f.props.dataKey});return t.reduce(function(f,h){var d=kn(h,r);if(ke(d))return f;var m=Array.isArray(d)?[qp(d),Ii(d)]:[d,d],v=u.reduce(function(_,x){var S=kn(h,x,0),y=m[0]-Math.abs(Array.isArray(S)?S[0]:S),b=m[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(y,_[0]),Math.max(b,_[1])]},[1/0,-1/0]);return[Math.min(v[0],f[0]),Math.max(v[1],f[1])]},[1/0,-1/0])}return null},ote=function(t,n,r,i,o){var s=n.map(function(l){return Rj(t,l,r,o,i)}).filter(function(l){return!ke(l)});return s&&s.length?s.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},zj=function(t,n,r,i,o){var s=n.map(function(u){var f=u.props.dataKey;return r==="number"&&f&&Rj(t,u,f,i)||mu(t,f,r,o)});if(r==="number")return s.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);var l={};return s.reduce(function(u,f){for(var h=0,d=f.length;h<d;h++)l[f[h]]||(l[f[h]]=!0,u.push(f[h]));return u},[])},Bj=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Fj=function(t,n,r,i){if(i)return t.map(function(u){return u.coordinate});var o,s,l=t.map(function(u){return u.coordinate===n&&(o=!0),u.coordinate===r&&(s=!0),u.coordinate});return o||l.push(n),s||l.push(r),l},Jr=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,s=t.type,l=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,f=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/u:0;if(f=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?hr(l[0]-l[1])*2*f:f,n&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(d){var m=o?o.indexOf(d):d;return{coordinate:i(m)+f,value:d,offset:f}});return h.filter(function(d){return!Us(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,m){return{coordinate:i(d)+f,value:d,index:m,offset:f}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+f,value:d,offset:f}}):i.domain().map(function(d,m){return{coordinate:i(d)+f,value:o?o[d]:d,index:m,offset:f}})},kv=new WeakMap,Jf=function(t,n){if(typeof n!="function")return t;kv.has(t)||kv.set(t,new WeakMap);var r=kv.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},ate=function(t,n,r){var i=t.scale,o=t.type,s=t.layout,l=t.axisType;if(i==="auto")return s==="radial"&&l==="radiusAxis"?{scale:Gu(),realScaleType:"band"}:s==="radial"&&l==="angleAxis"?{scale:bd(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:pu(),realScaleType:"point"}:o==="category"?{scale:Gu(),realScaleType:"band"}:{scale:bd(),realScaleType:"linear"};if(Zo(i)){var u="scale".concat(Ip(i));return{scale:(NO[u]||pu)(),realScaleType:NO[u]?u:"point"}}return Se(i)?{scale:i}:{scale:pu(),realScaleType:"point"}},UO=1e-4,ste=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-UO,s=Math.max(i[0],i[1])+UO,l=t(n[0]),u=t(n[r-1]);(l<o||l>s||u<o||u>s)&&t.domain([n[0],n[r-1]])}},lte=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},ute=function(t,n){if(!n||n.length!==2||!ie(n[0])||!ie(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!ie(t[0])||t[0]<r)&&(o[0]=r),(!ie(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},cte=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,s=0,l=0;l<n;++l){var u=Us(t[l][r][1])?t[l][r][0]:t[l][r][1];u>=0?(t[l][r][0]=o,t[l][r][1]=o+u,o=t[l][r][1]):(t[l][r][0]=s,t[l][r][1]=s+u,s=t[l][r][1])}},fte=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,s=0;s<n;++s){var l=Us(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},hte={sign:cte,expand:AU,none:ls,silhouette:EU,wiggle:kU,positive:fte},dte=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=hte[r],s=TU().keys(i).value(function(l,u){return+kn(l,u,0)}).order(uy).offset(o);return s(t)},pte=function(t,n,r,i,o,s){if(!t)return null;var l=s?n.reverse():n,u={},f=l.reduce(function(d,m){var v,_=(v=m.type)!==null&&v!==void 0&&v.defaultProps?ht(ht({},m.type.defaultProps),m.props):m.props,x=_.stackId,S=_.hide;if(S)return d;var y=_[r],b=d[y]||{hasStack:!1,stackGroups:{}};if(Ot(x)){var w=b.stackGroups[x]||{numericAxisId:r,cateAxisId:i,items:[]};w.items.push(m),b.hasStack=!0,b.stackGroups[x]=w}else b.stackGroups[jc("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[m]};return ht(ht({},d),{},Ya({},y,b))},u),h={};return Object.keys(f).reduce(function(d,m){var v=f[m];if(v.hasStack){var _={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(x,S){var y=v.stackGroups[S];return ht(ht({},x),{},Ya({},S,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:dte(t,y.items,o)}))},_)}return ht(ht({},d),{},Ya({},m,v))},h)},mte=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,s=n.originalDomain,l=n.allowDecimals,u=r||n.scale;if(u!=="auto"&&u!=="linear")return null;if(o&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var f=t.domain();if(!f.length)return null;var h=Tee(f,o,l);return t.domain([qp(h),Ii(h)]),{niceTicks:h}}if(o&&i==="number"){var d=t.domain(),m=Aee(d,o,l);return{niceTicks:m}}return null};function WO(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ke(i[t.dataKey])){var l=Yh(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=kn(i,ke(s)?t.dataKey:s);return ke(u)?null:t.scale(u)}var HO=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,s=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var u=kn(s,n.dataKey,n.domain[l]);return ke(u)?null:n.scale(u)-o/2+i},vte=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},gte=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ht(ht({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Ot(o)){var s=n[o];if(s){var l=s.items.indexOf(t);return l>=0?s.stackedData[l]:null}}return null},yte=function(t){return t.reduce(function(n,r){return[qp(r.concat([n[0]]).filter(ie)),Ii(r.concat([n[1]]).filter(ie))]},[1/0,-1/0])},Vj=function(t,n,r){return Object.keys(t).reduce(function(i,o){var s=t[o],l=s.stackedData,u=l.reduce(function(f,h){var d=yte(h.slice(n,r+1));return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},ZO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,GO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zy=function(t,n,r){if(Se(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ie(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(ZO.test(t[0])){var o=+ZO.exec(t[0])[1];i[0]=n[0]-o}else Se(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ie(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(GO.test(t[1])){var s=+GO.exec(t[1])[1];i[1]=n[1]+s}else Se(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Ed=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=T_(n,function(d){return d.coordinate}),s=1/0,l=1,u=o.length;l<u;l++){var f=o[l],h=o[l-1];s=Math.min((f.coordinate||0)-(h.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},KO=function(t,n,r){return!t||!t.length||Qu(t,Gn(r,"type.defaultProps.domain"))?n:t},Uj=function(t,n){var r=t.type.defaultProps?ht(ht({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,s=r.unit,l=r.formatter,u=r.tooltipType,f=r.chartType,h=r.hide;return ht(ht({},Ae(t,!1)),{},{dataKey:i,unit:s,formatter:l,name:o||i,color:J_(t),value:kn(n,i),type:u,payload:n,chartType:f,hide:h})};function rc(e){"@babel/helpers - typeof";return rc=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},rc(e)}function qO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function XO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(n),!0).forEach(function(r){xte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xte(e,t,n){return t=_te(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _te(e){var t=bte(e,"string");return rc(t)=="symbol"?t:t+""}function bte(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kd=Math.PI/180,wte=function(t){return t*180/Math.PI},Ft=function(t,n,r,i){return{x:t+Math.cos(-kd*i)*r,y:n+Math.sin(-kd*i)*r}},Ste=function(t,n){var r=t.x,i=t.y,o=n.x,s=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-s,2))},Pte=function(t,n){var r=t.x,i=t.y,o=n.cx,s=n.cy,l=Ste({x:r,y:i},{x:o,y:s});if(l<=0)return{radius:l};var u=(r-o)/l,f=Math.acos(u);return i>s&&(f=2*Math.PI-f),{radius:l,angle:wte(f),angleInRadian:f}},Ote=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),s=Math.min(i,o);return{startAngle:n-s*360,endAngle:r-s*360}},Tte=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),s=Math.floor(i/360),l=Math.min(o,s);return t+l*360},YO=function(t,n){var r=t.x,i=t.y,o=Pte({x:r,y:i},n),s=o.radius,l=o.angle,u=n.innerRadius,f=n.outerRadius;if(s<u||s>f)return!1;if(s===0)return!0;var h=Ote(n),d=h.startAngle,m=h.endAngle,v=l,_;if(d<=m){for(;v>m;)v-=360;for(;v<d;)v+=360;_=v>=d&&v<=m}else{for(;v>d;)v-=360;for(;v<m;)v+=360;_=v>=m&&v<=d}return _?XO(XO({},n),{},{radius:s,angle:Tte(v,n)}):null};function ic(e){"@babel/helpers - typeof";return ic=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},ic(e)}var Ate=["offset"];function Ete(e){return jte(e)||Mte(e)||Cte(e)||kte()}function kte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
331
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cte(e,t){if(e){if(typeof e=="string")return By(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return By(e,t)}}function Mte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jte(e){if(Array.isArray(e))return By(e)}function By(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $te(e,t){if(e==null)return{};var n=Lte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QO(Object(n),!0).forEach(function(r){Nte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nte(e,t,n){return t=Ite(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ite(e){var t=Dte(e,"string");return ic(t)=="symbol"?t:t+""}function Dte(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(this,arguments)}var Rte=function(t){var n=t.value,r=t.formatter,i=ke(t.children)?n:t.children;return Se(r)?r(i):i},zte=function(t,n){var r=hr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Bte=function(t,n,r){var i=t.position,o=t.viewBox,s=t.offset,l=t.className,u=o,f=u.cx,h=u.cy,d=u.innerRadius,m=u.outerRadius,v=u.startAngle,_=u.endAngle,x=u.clockWise,S=(d+m)/2,y=zte(v,_),b=y>=0?1:-1,w,E;i==="insideStart"?(w=v+b*s,E=x):i==="insideEnd"?(w=_-b*s,E=!x):i==="end"&&(w=_+b*s,E=x),E=y<=0?E:!E;var P=Ft(f,h,S,w),A=Ft(f,h,S,w+(E?1:-1)*359),C="M".concat(P.x,",").concat(P.y,`
|
|
332
|
+
A`).concat(S,",").concat(S,",0,1,").concat(E?0:1,`,
|
|
333
|
+
`).concat(A.x,",").concat(A.y),M=ke(t.id)?jc("recharts-radial-line-"):t.id;return I.createElement("text",oc({},r,{dominantBaseline:"central",className:Le("recharts-radial-bar-label",l)}),I.createElement("defs",null,I.createElement("path",{id:M,d:C})),I.createElement("textPath",{xlinkHref:"#".concat(M)},n))},Fte=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,s=o.cx,l=o.cy,u=o.innerRadius,f=o.outerRadius,h=o.startAngle,d=o.endAngle,m=(h+d)/2;if(i==="outside"){var v=Ft(s,l,f+r,m),_=v.x,x=v.y;return{x:_,y:x,textAnchor:_>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"end"};var S=(u+f)/2,y=Ft(s,l,S,m),b=y.x,w=y.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Vte=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,s=n,l=s.x,u=s.y,f=s.width,h=s.height,d=h>=0?1:-1,m=d*i,v=d>0?"end":"start",_=d>0?"start":"end",x=f>=0?1:-1,S=x*i,y=x>0?"end":"start",b=x>0?"start":"end";if(o==="top"){var w={x:l+f/2,y:u-d*i,textAnchor:"middle",verticalAnchor:v};return wt(wt({},w),r?{height:Math.max(u-r.y,0),width:f}:{})}if(o==="bottom"){var E={x:l+f/2,y:u+h+m,textAnchor:"middle",verticalAnchor:_};return wt(wt({},E),r?{height:Math.max(r.y+r.height-(u+h),0),width:f}:{})}if(o==="left"){var P={x:l-S,y:u+h/2,textAnchor:y,verticalAnchor:"middle"};return wt(wt({},P),r?{width:Math.max(P.x-r.x,0),height:h}:{})}if(o==="right"){var A={x:l+f+S,y:u+h/2,textAnchor:b,verticalAnchor:"middle"};return wt(wt({},A),r?{width:Math.max(r.x+r.width-A.x,0),height:h}:{})}var C=r?{width:f,height:h}:{};return o==="insideLeft"?wt({x:l+S,y:u+h/2,textAnchor:b,verticalAnchor:"middle"},C):o==="insideRight"?wt({x:l+f-S,y:u+h/2,textAnchor:y,verticalAnchor:"middle"},C):o==="insideTop"?wt({x:l+f/2,y:u+m,textAnchor:"middle",verticalAnchor:_},C):o==="insideBottom"?wt({x:l+f/2,y:u+h-m,textAnchor:"middle",verticalAnchor:v},C):o==="insideTopLeft"?wt({x:l+S,y:u+m,textAnchor:b,verticalAnchor:_},C):o==="insideTopRight"?wt({x:l+f-S,y:u+m,textAnchor:y,verticalAnchor:_},C):o==="insideBottomLeft"?wt({x:l+S,y:u+h-m,textAnchor:b,verticalAnchor:v},C):o==="insideBottomRight"?wt({x:l+f-S,y:u+h-m,textAnchor:y,verticalAnchor:v},C):zs(o)&&(ie(o.x)||Co(o.x))&&(ie(o.y)||Co(o.y))?wt({x:l+Go(o.x,f),y:u+Go(o.y,h),textAnchor:"end",verticalAnchor:"end"},C):wt({x:l+f/2,y:u+h/2,textAnchor:"middle",verticalAnchor:"middle"},C)},Ute=function(t){return"cx"in t&&ie(t.cx)};function Yt(e){var t=e.offset,n=t===void 0?5:t,r=$te(e,Ate),i=wt({offset:n},r),o=i.viewBox,s=i.position,l=i.value,u=i.children,f=i.content,h=i.className,d=h===void 0?"":h,m=i.textBreakAll;if(!o||ke(l)&&ke(u)&&!j.isValidElement(f)&&!Se(f))return null;if(j.isValidElement(f))return j.cloneElement(f,i);var v;if(Se(f)){if(v=j.createElement(f,i),j.isValidElement(v))return v}else v=Rte(i);var _=Ute(o),x=Ae(i,!0);if(_&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Bte(i,v,x);var S=_?Fte(i):Vte(i);return I.createElement(dd,oc({className:Le("recharts-label",d)},x,S,{breakAll:m}),v)}Yt.displayName="Label";var Wj=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,s=t.endAngle,l=t.r,u=t.radius,f=t.innerRadius,h=t.outerRadius,d=t.x,m=t.y,v=t.top,_=t.left,x=t.width,S=t.height,y=t.clockWise,b=t.labelViewBox;if(b)return b;if(ie(x)&&ie(S)){if(ie(d)&&ie(m))return{x:d,y:m,width:x,height:S};if(ie(v)&&ie(_))return{x:v,y:_,width:x,height:S}}return ie(d)&&ie(m)?{x:d,y:m,width:0,height:0}:ie(n)&&ie(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:s||i||0,innerRadius:f||0,outerRadius:h||u||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},Wte=function(t,n){return t?t===!0?I.createElement(Yt,{key:"label-implicit",viewBox:n}):Ot(t)?I.createElement(Yt,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Yt?j.cloneElement(t,{key:"label-implicit",viewBox:n}):I.createElement(Yt,{key:"label-implicit",content:t,viewBox:n}):Se(t)?I.createElement(Yt,{key:"label-implicit",content:t,viewBox:n}):zs(t)?I.createElement(Yt,oc({viewBox:n},t,{key:"label-implicit"})):null:null},Hte=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=Wj(t),s=mr(i,Yt).map(function(u,f){return j.cloneElement(u,{viewBox:n||o,key:"label-".concat(f)})});if(!r)return s;var l=Wte(t.label,n||o);return[l].concat(Ete(s))};Yt.parseViewBox=Wj;Yt.renderCallByParent=Hte;function Zte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Gte=Zte;const Kte=Ue(Gte);function ac(e){"@babel/helpers - typeof";return ac=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},ac(e)}var qte=["valueAccessor"],Xte=["data","dataKey","clockWise","id","textBreakAll"];function Yte(e){return tne(e)||ene(e)||Jte(e)||Qte()}function Qte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
334
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jte(e,t){if(e){if(typeof e=="string")return Fy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fy(e,t)}}function ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tne(e){if(Array.isArray(e))return Fy(e)}function Fy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cd.apply(this,arguments)}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){nne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nne(e,t,n){return t=rne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rne(e){var t=ine(e,"string");return ac(t)=="symbol"?t:t+""}function ine(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tT(e,t){if(e==null)return{};var n=one(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function one(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ane=function(t){return Array.isArray(t.value)?Kte(t.value):t.value};function $r(e){var t=e.valueAccessor,n=t===void 0?ane:t,r=tT(e,qte),i=r.data,o=r.dataKey,s=r.clockWise,l=r.id,u=r.textBreakAll,f=tT(r,Xte);return!i||!i.length?null:I.createElement(at,{className:"recharts-label-list"},i.map(function(h,d){var m=ke(o)?n(h,d):kn(h&&h.payload,o),v=ke(l)?{}:{id:"".concat(l,"-").concat(d)};return I.createElement(Yt,Cd({},Ae(h,!0),f,v,{parentViewBox:h.parentViewBox,value:m,textBreakAll:u,viewBox:Yt.parseViewBox(ke(s)?h:eT(eT({},h),{},{clockWise:s})),key:"label-".concat(d),index:d}))}))}$r.displayName="LabelList";function sne(e,t){return e?e===!0?I.createElement($r,{key:"labelList-implicit",data:t}):I.isValidElement(e)||Se(e)?I.createElement($r,{key:"labelList-implicit",data:t,content:e}):zs(e)?I.createElement($r,Cd({data:t},e,{key:"labelList-implicit"})):null:null}function lne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=mr(r,$r).map(function(s,l){return j.cloneElement(s,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=sne(e.label,t);return[o].concat(Yte(i))}$r.renderCallByParent=lne;function sc(e){"@babel/helpers - typeof";return sc=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},sc(e)}function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vy.apply(this,arguments)}function nT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nT(Object(n),!0).forEach(function(r){une(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function une(e,t,n){return t=cne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cne(e){var t=fne(e,"string");return sc(t)=="symbol"?t:t+""}function fne(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hne=function(t,n){var r=hr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},eh=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,s=t.sign,l=t.isExternal,u=t.cornerRadius,f=t.cornerIsExternal,h=u*(l?1:-1)+i,d=Math.asin(u/h)/kd,m=f?o:o+s*d,v=Ft(n,r,h,m),_=Ft(n,r,i,m),x=f?o-s*d:o,S=Ft(n,r,h*Math.cos(d*kd),x);return{center:v,circleTangency:_,lineTangency:S,theta:d}},Hj=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.startAngle,l=t.endAngle,u=hne(s,l),f=s+u,h=Ft(n,r,o,s),d=Ft(n,r,o,f),m="M ".concat(h.x,",").concat(h.y,`
|
|
335
|
+
A `).concat(o,",").concat(o,`,0,
|
|
336
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s>f),`,
|
|
337
|
+
`).concat(d.x,",").concat(d.y,`
|
|
338
|
+
`);if(i>0){var v=Ft(n,r,i,s),_=Ft(n,r,i,f);m+="L ".concat(_.x,",").concat(_.y,`
|
|
339
|
+
A `).concat(i,",").concat(i,`,0,
|
|
340
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s<=f),`,
|
|
341
|
+
`).concat(v.x,",").concat(v.y," Z")}else m+="L ".concat(n,",").concat(r," Z");return m},dne=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,f=t.startAngle,h=t.endAngle,d=hr(h-f),m=eh({cx:n,cy:r,radius:o,angle:f,sign:d,cornerRadius:s,cornerIsExternal:u}),v=m.circleTangency,_=m.lineTangency,x=m.theta,S=eh({cx:n,cy:r,radius:o,angle:h,sign:-d,cornerRadius:s,cornerIsExternal:u}),y=S.circleTangency,b=S.lineTangency,w=S.theta,E=u?Math.abs(f-h):Math.abs(f-h)-x-w;if(E<0)return l?"M ".concat(_.x,",").concat(_.y,`
|
|
342
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
343
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
344
|
+
`):Hj({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:h});var P="M ".concat(_.x,",").concat(_.y,`
|
|
345
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,`
|
|
346
|
+
A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(d<0),",").concat(y.x,",").concat(y.y,`
|
|
347
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(b.x,",").concat(b.y,`
|
|
348
|
+
`);if(i>0){var A=eh({cx:n,cy:r,radius:i,angle:f,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),C=A.circleTangency,M=A.lineTangency,$=A.theta,z=eh({cx:n,cy:r,radius:i,angle:h,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),B=z.circleTangency,R=z.lineTangency,Q=z.theta,H=u?Math.abs(f-h):Math.abs(f-h)-$-Q;if(H<0&&s===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(R.x,",").concat(R.y,`
|
|
349
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(B.x,",").concat(B.y,`
|
|
350
|
+
A`).concat(i,",").concat(i,",0,").concat(+(H>180),",").concat(+(d>0),",").concat(C.x,",").concat(C.y,`
|
|
351
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(M.x,",").concat(M.y,"Z")}else P+="L".concat(n,",").concat(r,"Z");return P},pne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Zj=function(t){var n=rT(rT({},pne),t),r=n.cx,i=n.cy,o=n.innerRadius,s=n.outerRadius,l=n.cornerRadius,u=n.forceCornerRadius,f=n.cornerIsExternal,h=n.startAngle,d=n.endAngle,m=n.className;if(s<o||h===d)return null;var v=Le("recharts-sector",m),_=s-o,x=Go(l,_,0,!0),S;return x>0&&Math.abs(h-d)<360?S=dne({cx:r,cy:i,innerRadius:o,outerRadius:s,cornerRadius:Math.min(x,_/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:h,endAngle:d}):S=Hj({cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:h,endAngle:d}),I.createElement("path",Vy({},Ae(n,!0),{className:v,d:S,role:"img"}))};function lc(e){"@babel/helpers - typeof";return lc=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},lc(e)}function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uy.apply(this,arguments)}function iT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iT(Object(n),!0).forEach(function(r){mne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mne(e,t,n){return t=vne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vne(e){var t=gne(e,"string");return lc(t)=="symbol"?t:t+""}function gne(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aT={curveBasisClosed:mU,curveBasisOpen:vU,curveBasis:pU,curveBumpX:eU,curveBumpY:tU,curveLinearClosed:gU,curveLinear:Rp,curveMonotoneX:yU,curveMonotoneY:xU,curveNatural:_U,curveStep:bU,curveStepAfter:SU,curveStepBefore:wU},th=function(t){return t.x===+t.x&&t.y===+t.y},Rl=function(t){return t.x},zl=function(t){return t.y},yne=function(t,n){if(Se(t))return t;var r="curve".concat(Ip(t));return(r==="curveMonotone"||r==="curveBump")&&n?aT["".concat(r).concat(n==="vertical"?"Y":"X")]:aT[r]||Rp},xne=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,s=t.baseLine,l=t.layout,u=t.connectNulls,f=u===void 0?!1:u,h=yne(r,l),d=f?o.filter(function(x){return th(x)}):o,m;if(Array.isArray(s)){var v=f?s.filter(function(x){return th(x)}):s,_=d.map(function(x,S){return oT(oT({},x),{},{base:v[S]})});return l==="vertical"?m=Hf().y(zl).x1(Rl).x0(function(x){return x.base.x}):m=Hf().x(Rl).y1(zl).y0(function(x){return x.base.y}),m.defined(th).curve(h),m(_)}return l==="vertical"&&ie(s)?m=Hf().y(zl).x1(Rl).x0(s):ie(s)?m=Hf().x(Rl).y1(zl).y0(s):m=KC().x(Rl).y(zl),m.defined(th).curve(h),m(d)},vu=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?xne(t):i;return j.createElement("path",Uy({},Ae(t,!1),Qh(t),{className:Le("recharts-curve",n),d:s,ref:o}))},Gj={exports:{}},_ne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bne=_ne,wne=bne;function Kj(){}function qj(){}qj.resetWarningCache=Kj;var Sne=function(){function e(r,i,o,s,l,u){if(u!==wne){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:qj,resetWarningCache:Kj};return n.PropTypes=n,n};Gj.exports=Sne();var Pne=Gj.exports;const De=Ue(Pne),{getOwnPropertyNames:One,getOwnPropertySymbols:Tne}=Object,{hasOwnProperty:Ane}=Object.prototype;function Cv(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function nh(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:o}=i,s=o.get(n),l=o.get(r);if(s&&l)return s===r&&l===n;o.set(n,r),o.set(r,n);const u=e(n,r,i);return o.delete(n),o.delete(r),u}}function Ene(e){return e!=null?e[Symbol.toStringTag]:void 0}function sT(e){return One(e).concat(Tne(e))}const kne=Object.hasOwn||((e,t)=>Ane.call(e,t));function ra(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Cne="__v",Mne="__o",jne="_owner",{getOwnPropertyDescriptor:lT,keys:uT}=Object;function $ne(e,t){return e.byteLength===t.byteLength&&Md(new Uint8Array(e),new Uint8Array(t))}function Lne(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Nne(e,t){return e.byteLength===t.byteLength&&Md(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Ine(e,t){return ra(e.getTime(),t.getTime())}function Dne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Rne(e,t){return e===t}function cT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let s,l,u=0;for(;(s=o.next())&&!s.done;){const f=t.entries();let h=!1,d=0;for(;(l=f.next())&&!l.done;){if(i[d]){d++;continue}const m=s.value,v=l.value;if(n.equals(m[0],v[0],u,d,e,t,n)&&n.equals(m[1],v[1],m[0],v[0],e,t,n)){h=i[d]=!0;break}d++}if(!h)return!1;u++}return!0}const zne=ra;function Bne(e,t,n){const r=uT(e);let i=r.length;if(uT(t).length!==i)return!1;for(;i-- >0;)if(!Xj(e,t,n,r[i]))return!1;return!0}function Bl(e,t,n){const r=sT(e);let i=r.length;if(sT(t).length!==i)return!1;let o,s,l;for(;i-- >0;)if(o=r[i],!Xj(e,t,n,o)||(s=lT(e,o),l=lT(t,o),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function Fne(e,t){return ra(e.valueOf(),t.valueOf())}function Vne(e,t){return e.source===t.source&&e.flags===t.flags}function fT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let s,l;for(;(s=o.next())&&!s.done;){const u=t.values();let f=!1,h=0;for(;(l=u.next())&&!l.done;){if(!i[h]&&n.equals(s.value,l.value,s.value,l.value,e,t,n)){f=i[h]=!0;break}h++}if(!f)return!1}return!0}function Md(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Une(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Xj(e,t,n,r){return(r===jne||r===Mne||r===Cne)&&(e.$$typeof||t.$$typeof)?!0:kne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Wne="[object ArrayBuffer]",Hne="[object Arguments]",Zne="[object Boolean]",Gne="[object DataView]",Kne="[object Date]",qne="[object Error]",Xne="[object Map]",Yne="[object Number]",Qne="[object Object]",Jne="[object RegExp]",ere="[object Set]",tre="[object String]",nre={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},rre="[object URL]",ire=Object.prototype.toString;function ore({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:f,areRegExpsEqual:h,areSetsEqual:d,areTypedArraysEqual:m,areUrlsEqual:v,unknownTagComparators:_}){return function(S,y,b){if(S===y)return!0;if(S==null||y==null)return!1;const w=typeof S;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?l(S,y,b):w==="function"?o(S,y,b):!1;const E=S.constructor;if(E!==y.constructor)return!1;if(E===Object)return u(S,y,b);if(Array.isArray(S))return t(S,y,b);if(E===Date)return r(S,y,b);if(E===RegExp)return h(S,y,b);if(E===Map)return s(S,y,b);if(E===Set)return d(S,y,b);const P=ire.call(S);if(P===Kne)return r(S,y,b);if(P===Jne)return h(S,y,b);if(P===Xne)return s(S,y,b);if(P===ere)return d(S,y,b);if(P===Qne)return typeof S.then!="function"&&typeof y.then!="function"&&u(S,y,b);if(P===rre)return v(S,y,b);if(P===qne)return i(S,y,b);if(P===Hne)return u(S,y,b);if(nre[P])return m(S,y,b);if(P===Wne)return e(S,y,b);if(P===Gne)return n(S,y,b);if(P===Zne||P===Yne||P===tre)return f(S,y,b);if(_){let A=_[P];if(!A){const C=Ene(S);C&&(A=_[C])}if(A)return A(S,y,b)}return!1}}function are({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:$ne,areArraysEqual:n?Bl:Lne,areDataViewsEqual:Nne,areDatesEqual:Ine,areErrorsEqual:Dne,areFunctionsEqual:Rne,areMapsEqual:n?Cv(cT,Bl):cT,areNumbersEqual:zne,areObjectsEqual:n?Bl:Bne,arePrimitiveWrappersEqual:Fne,areRegExpsEqual:Vne,areSetsEqual:n?Cv(fT,Bl):fT,areTypedArraysEqual:n?Cv(Md,Bl):Md,areUrlsEqual:Une,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=nh(r.areArraysEqual),o=nh(r.areMapsEqual),s=nh(r.areObjectsEqual),l=nh(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return r}function sre(e){return function(t,n,r,i,o,s,l){return e(t,n,l)}}function lre({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(l,u){const{cache:f=e?new WeakMap:void 0,meta:h}=n();return t(l,u,{cache:f,equals:r,meta:h,strict:i})};if(e)return function(l,u){return t(l,u,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(l,u){return t(l,u,o)}}const ure=oo();oo({strict:!0});oo({circular:!0});oo({circular:!0,strict:!0});oo({createInternalComparator:()=>ra});oo({strict:!0,createInternalComparator:()=>ra});oo({circular:!0,createInternalComparator:()=>ra});oo({circular:!0,createInternalComparator:()=>ra,strict:!0});function oo(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=are(e),s=ore(o),l=n?n(s):sre(s);return lre({circular:t,comparator:s,createState:r,equals:l,strict:i})}function cre(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function hT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):cre(i)};requestAnimationFrame(r)}function Wy(e){"@babel/helpers - typeof";return Wy=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},Wy(e)}function fre(e){return mre(e)||pre(e)||dre(e)||hre()}function hre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
352
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dre(e,t){if(e){if(typeof e=="string")return dT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dT(e,t)}}function dT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mre(e){if(Array.isArray(e))return e}function vre(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,l=fre(s),u=l[0],f=l.slice(1);if(typeof u=="number"){hT(i.bind(null,f),u);return}i(u),hT(i.bind(null,f));return}Wy(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}function pT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pT(Object(n),!0).forEach(function(r){Yj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yj(e,t,n){return t=gre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gre(e){var t=yre(e,"string");return uc(t)==="symbol"?t:String(t)}function yre(e,t){if(uc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xre=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},_re=function(t){return t},bre=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},gu=function(t,n){return Object.keys(n).reduce(function(r,i){return mT(mT({},r),{},Yj({},i,t(i,n[i])))},{})},vT=function(t,n,r){return t.map(function(i){return"".concat(bre(i)," ").concat(n,"ms ").concat(r)}).join(",")};function wre(e,t){return Ore(e)||Pre(e,t)||Qj(e,t)||Sre()}function Sre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
353
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Ore(e){if(Array.isArray(e))return e}function Tre(e){return kre(e)||Ere(e)||Qj(e)||Are()}function Are(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
354
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qj(e,t){if(e){if(typeof e=="string")return Hy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hy(e,t)}}function Ere(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kre(e){if(Array.isArray(e))return Hy(e)}function Hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jd=1e-4,Jj=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},e$=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},gT=function(t,n){return function(r){var i=Jj(t,n);return e$(i,r)}},Cre=function(t,n){return function(r){var i=Jj(t,n),o=[].concat(Tre(i.map(function(s,l){return s*l}).slice(1)),[0]);return e$(o,r)}},yT=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],s=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,s=1,l=1;break;case"ease":i=.25,o=.1,s=.25,l=1;break;case"ease-in":i=.42,o=0,s=1,l=1;break;case"ease-out":i=.42,o=0,s=.58,l=1;break;case"ease-in-out":i=0,o=0,s=.58,l=1;break;default:{var u=n[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var f=u[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),h=wre(f,4);i=h[0],o=h[1],s=h[2],l=h[3]}}}var d=gT(i,s),m=gT(o,l),v=Cre(i,s),_=function(y){return y>1?1:y<0?0:y},x=function(y){for(var b=y>1?1:y,w=b,E=0;E<8;++E){var P=d(w)-b,A=v(w);if(Math.abs(P-b)<jd||A<jd)return m(w);w=_(w-P/A)}return m(w)};return x.isStepper=!1,x},Mre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,s=t.dt,l=s===void 0?17:s,u=function(h,d,m){var v=-(h-d)*r,_=m*o,x=m+(v-_)*l/1e3,S=m*l/1e3+h;return Math.abs(S-d)<jd&&Math.abs(x)<jd?[d,0]:[S,x]};return u.isStepper=!0,u.dt=l,u},jre=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return yT(i);case"spring":return Mre();default:if(i.split("(")[0]==="cubic-bezier")return yT(i)}return typeof i=="function"?i:null};function cc(e){"@babel/helpers - typeof";return cc=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},cc(e)}function xT(e){return Nre(e)||Lre(e)||t$(e)||$re()}function $re(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
355
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nre(e){if(Array.isArray(e))return Gy(e)}function _T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_T(Object(n),!0).forEach(function(r){Zy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_T(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zy(e,t,n){return t=Ire(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ire(e){var t=Dre(e,"string");return cc(t)==="symbol"?t:String(t)}function Dre(e,t){if(cc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rre(e,t){return Fre(e)||Bre(e,t)||t$(e,t)||zre()}function zre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
356
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(e,t){if(e){if(typeof e=="string")return Gy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gy(e,t)}}function Gy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Fre(e){if(Array.isArray(e))return e}var $d=function(t,n,r){return t+(n-t)*r},Ky=function(t){var n=t.from,r=t.to;return n!==r},Vre=function e(t,n,r){var i=gu(function(o,s){if(Ky(s)){var l=t(s.from,s.to,s.velocity),u=Rre(l,2),f=u[0],h=u[1];return Rt(Rt({},s),{},{from:f,velocity:h})}return s},n);return r<1?gu(function(o,s){return Ky(s)?Rt(Rt({},s),{},{velocity:$d(s.velocity,i[o].velocity,r),from:$d(s.from,i[o].from,r)}):s},n):e(t,i,r-1)};const Ure=function(e,t,n,r,i){var o=xre(e,t),s=o.reduce(function(S,y){return Rt(Rt({},S),{},Zy({},y,[e[y],t[y]]))},{}),l=o.reduce(function(S,y){return Rt(Rt({},S),{},Zy({},y,{from:e[y],velocity:0,to:t[y]}))},{}),u=-1,f,h,d=function(){return null},m=function(){return gu(function(y,b){return b.from},l)},v=function(){return!Object.values(l).filter(Ky).length},_=function(y){f||(f=y);var b=y-f,w=b/n.dt;l=Vre(n,l,w),i(Rt(Rt(Rt({},e),t),m())),f=y,v()||(u=requestAnimationFrame(d))},x=function(y){h||(h=y);var b=(y-h)/r,w=gu(function(P,A){return $d.apply(void 0,xT(A).concat([n(b)]))},s);if(i(Rt(Rt(Rt({},e),t),w)),b<1)u=requestAnimationFrame(d);else{var E=gu(function(P,A){return $d.apply(void 0,xT(A).concat([n(1)]))},s);i(Rt(Rt(Rt({},e),t),E))}};return d=n.isStepper?_:x,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(u)}}};function gs(e){"@babel/helpers - typeof";return gs=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},gs(e)}var Wre=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Hre(e,t){if(e==null)return{};var n=Zre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Mv(e){return Xre(e)||qre(e)||Kre(e)||Gre()}function Gre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
357
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kre(e,t){if(e){if(typeof e=="string")return qy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qy(e,t)}}function qre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xre(e){if(Array.isArray(e))return qy(e)}function qy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bT(Object(n),!0).forEach(function(r){Yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yl(e,t,n){return t=n$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n$(r.key),r)}}function Jre(e,t,n){return t&&Qre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n$(e){var t=eie(e,"string");return gs(t)==="symbol"?t:String(t)}function eie(e,t){if(gs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xy(e,t)}function Xy(e,t){return Xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xy(e,t)}function nie(e){var t=rie();return function(){var r=Ld(e),i;if(t){var o=Ld(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yy(this,i)}}function Yy(e,t){if(t&&(gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qy(e)}function Qy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ld(e){return Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ld(e)}var pi=function(e){tie(n,e);var t=nie(n);function n(r,i){var o;Yre(this,n),o=t.call(this,r,i);var s=o.props,l=s.isActive,u=s.attributeName,f=s.from,h=s.to,d=s.steps,m=s.children,v=s.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Qy(o)),o.changeStyle=o.changeStyle.bind(Qy(o)),!l||v<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:h}),Yy(o);if(d&&d.length)o.state={style:d[0].style};else if(f){if(typeof m=="function")return o.state={style:f},Yy(o);o.state={style:u?Yl({},u,f):f}}else o.state={style:{}};return o}return Jre(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,s=i.canBegin;this.mounted=!0,!(!o||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isActive,l=o.canBegin,u=o.attributeName,f=o.shouldReAnimate,h=o.to,d=o.from,m=this.state.style;if(l){if(!s){var v={style:u?Yl({},u,h):h};this.state&&m&&(u&&m[u]!==h||!u&&m!==h)&&this.setState(v);return}if(!(ure(i.to,h)&&i.canBegin&&i.isActive)){var _=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=_||f?d:i.to;if(this.state&&m){var S={style:u?Yl({},u,x):x};(u&&m[u]!==x||!u&&m!==x)&&this.setState(S)}this.runAnimation(or(or({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,s=i.from,l=i.to,u=i.duration,f=i.easing,h=i.begin,d=i.onAnimationEnd,m=i.onAnimationStart,v=Ure(s,l,jre(f),u,this.changeStyle),_=function(){o.stopJSAnimation=v()};this.manager.start([m,h,_,u,d])}},{key:"runStepAnimation",value:function(i){var o=this,s=i.steps,l=i.begin,u=i.onAnimationStart,f=s[0],h=f.style,d=f.duration,m=d===void 0?0:d,v=function(x,S,y){if(y===0)return x;var b=S.duration,w=S.easing,E=w===void 0?"ease":w,P=S.style,A=S.properties,C=S.onAnimationEnd,M=y>0?s[y-1]:S,$=A||Object.keys(P);if(typeof E=="function"||E==="spring")return[].concat(Mv(x),[o.runJSAnimation.bind(o,{from:M.style,to:P,duration:b,easing:E}),b]);var z=vT($,b,E),B=or(or(or({},M.style),P),{},{transition:z});return[].concat(Mv(x),[B,b,C]).filter(_re)};return this.manager.start([u].concat(Mv(s.reduce(v,[h,Math.max(m,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=vre());var o=i.begin,s=i.duration,l=i.attributeName,u=i.to,f=i.easing,h=i.onAnimationStart,d=i.onAnimationEnd,m=i.steps,v=i.children,_=this.manager;if(this.unSubscribe=_.subscribe(this.handleStyleChange),typeof f=="function"||typeof v=="function"||f==="spring"){this.runJSAnimation(i);return}if(m.length>1){this.runStepAnimation(i);return}var x=l?Yl({},l,u):u,S=vT(Object.keys(x),s,f);_.start([h,o,or(or({},x),{},{transition:S}),s,d])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=Hre(i,Wre),f=j.Children.count(o),h=this.state.style;if(typeof o=="function")return o(h);if(!l||f===0||s<=0)return o;var d=function(v){var _=v.props,x=_.style,S=x===void 0?{}:x,y=_.className,b=j.cloneElement(v,or(or({},u),{},{style:or(or({},S),h),className:y}));return b};return f===1?d(j.Children.only(o)):I.createElement("div",null,j.Children.map(o,function(m){return d(m)}))}}]),n}(j.PureComponent);pi.displayName="Animate";pi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};pi.propTypes={from:De.oneOfType([De.object,De.string]),to:De.oneOfType([De.object,De.string]),attributeName:De.string,duration:De.number,begin:De.number,easing:De.oneOfType([De.string,De.func]),steps:De.arrayOf(De.shape({duration:De.number.isRequired,style:De.object.isRequired,easing:De.oneOfType([De.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),De.func]),properties:De.arrayOf("string"),onAnimationEnd:De.func})),children:De.oneOfType([De.node,De.func]),isActive:De.bool,canBegin:De.bool,onAnimationEnd:De.func,shouldReAnimate:De.bool,onAnimationStart:De.func,onAnimationReStart:De.func};function fc(e){"@babel/helpers - typeof";return fc=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},fc(e)}function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nd.apply(this,arguments)}function iie(e,t){return lie(e)||sie(e,t)||aie(e,t)||oie()}function oie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
358
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aie(e,t){if(e){if(typeof e=="string")return wT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wT(e,t)}}function wT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function lie(e){if(Array.isArray(e))return e}function ST(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function PT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ST(Object(n),!0).forEach(function(r){uie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uie(e,t,n){return t=cie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cie(e){var t=fie(e,"string");return fc(t)=="symbol"?t:t+""}function fie(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OT=function(t,n,r,i,o){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,u=r>=0?1:-1,f=i>=0&&r>=0||i<0&&r<0?1:0,h;if(s>0&&o instanceof Array){for(var d=[0,0,0,0],m=0,v=4;m<v;m++)d[m]=o[m]>s?s:o[m];h="M".concat(t,",").concat(n+l*d[0]),d[0]>0&&(h+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(f,",").concat(t+u*d[0],",").concat(n)),h+="L ".concat(t+r-u*d[1],",").concat(n),d[1]>0&&(h+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(f,`,
|
|
359
|
+
`).concat(t+r,",").concat(n+l*d[1])),h+="L ".concat(t+r,",").concat(n+i-l*d[2]),d[2]>0&&(h+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(f,`,
|
|
360
|
+
`).concat(t+r-u*d[2],",").concat(n+i)),h+="L ".concat(t+u*d[3],",").concat(n+i),d[3]>0&&(h+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(f,`,
|
|
361
|
+
`).concat(t,",").concat(n+i-l*d[3])),h+="Z"}else if(s>0&&o===+o&&o>0){var _=Math.min(s,o);h="M ".concat(t,",").concat(n+l*_,`
|
|
362
|
+
A `).concat(_,",").concat(_,",0,0,").concat(f,",").concat(t+u*_,",").concat(n,`
|
|
363
|
+
L `).concat(t+r-u*_,",").concat(n,`
|
|
364
|
+
A `).concat(_,",").concat(_,",0,0,").concat(f,",").concat(t+r,",").concat(n+l*_,`
|
|
365
|
+
L `).concat(t+r,",").concat(n+i-l*_,`
|
|
366
|
+
A `).concat(_,",").concat(_,",0,0,").concat(f,",").concat(t+r-u*_,",").concat(n+i,`
|
|
367
|
+
L `).concat(t+u*_,",").concat(n+i,`
|
|
368
|
+
A `).concat(_,",").concat(_,",0,0,").concat(f,",").concat(t,",").concat(n+i-l*_," Z")}else h="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return h},hie=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,s=n.y,l=n.width,u=n.height;if(Math.abs(l)>0&&Math.abs(u)>0){var f=Math.min(o,o+l),h=Math.max(o,o+l),d=Math.min(s,s+u),m=Math.max(s,s+u);return r>=f&&r<=h&&i>=d&&i<=m}return!1},die={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},e1=function(t){var n=PT(PT({},die),t),r=j.useRef(),i=j.useState(-1),o=iie(i,2),s=o[0],l=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&l(E)}catch{}},[]);var u=n.x,f=n.y,h=n.width,d=n.height,m=n.radius,v=n.className,_=n.animationEasing,x=n.animationDuration,S=n.animationBegin,y=n.isAnimationActive,b=n.isUpdateAnimationActive;if(u!==+u||f!==+f||h!==+h||d!==+d||h===0||d===0)return null;var w=Le("recharts-rectangle",v);return b?I.createElement(pi,{canBegin:s>0,from:{width:h,height:d,x:u,y:f},to:{width:h,height:d,x:u,y:f},duration:x,animationEasing:_,isActive:b},function(E){var P=E.width,A=E.height,C=E.x,M=E.y;return I.createElement(pi,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:x,isActive:y,easing:_},I.createElement("path",Nd({},Ae(n,!0),{className:w,d:OT(C,M,P,A,m),ref:r})))}):I.createElement("path",Nd({},Ae(n,!0),{className:w,d:OT(u,f,h,d,m)}))};function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jy.apply(this,arguments)}var t1=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,s=Le("recharts-dot",o);return n===+n&&r===+r&&i===+i?j.createElement("circle",Jy({},Ae(t,!1),Qh(t),{className:s,cx:n,cy:r,r:i})):null};function hc(e){"@babel/helpers - typeof";return hc=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},hc(e)}var pie=["x","y","top","left","width","height","className"];function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e0.apply(this,arguments)}function TT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TT(Object(n),!0).forEach(function(r){vie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vie(e,t,n){return t=gie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gie(e){var t=yie(e,"string");return hc(t)=="symbol"?t:t+""}function yie(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xie(e,t){if(e==null)return{};var n=_ie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var bie=function(t,n,r,i,o,s){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},wie=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,s=t.top,l=s===void 0?0:s,u=t.left,f=u===void 0?0:u,h=t.width,d=h===void 0?0:h,m=t.height,v=m===void 0?0:m,_=t.className,x=xie(t,pie),S=mie({x:r,y:o,top:l,left:f,width:d,height:v},x);return!ie(r)||!ie(o)||!ie(d)||!ie(v)||!ie(l)||!ie(f)?null:I.createElement("path",e0({},Ae(S,!0),{className:Le("recharts-cross",_),d:bie(r,o,d,v,l,f)}))},Sie=yM,Pie=Sie(Object.getPrototypeOf,Object),Oie=Pie,Tie=vi,Aie=Oie,Eie=gi,kie="[object Object]",Cie=Function.prototype,Mie=Object.prototype,r$=Cie.toString,jie=Mie.hasOwnProperty,$ie=r$.call(Object);function Lie(e){if(!Eie(e)||Tie(e)!=kie)return!1;var t=Aie(e);if(t===null)return!0;var n=jie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&r$.call(n)==$ie}var Nie=Lie;const Iie=Ue(Nie);var Die=vi,Rie=gi,zie="[object Boolean]";function Bie(e){return e===!0||e===!1||Rie(e)&&Die(e)==zie}var Fie=Bie;const Vie=Ue(Fie);function dc(e){"@babel/helpers - typeof";return dc=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},dc(e)}function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function Uie(e,t){return Gie(e)||Zie(e,t)||Hie(e,t)||Wie()}function Wie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
369
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hie(e,t){if(e){if(typeof e=="string")return AT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AT(e,t)}}function AT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Gie(e){if(Array.isArray(e))return e}function ET(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ET(Object(n),!0).forEach(function(r){Kie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ET(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kie(e,t,n){return t=qie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qie(e){var t=Xie(e,"string");return dc(t)=="symbol"?t:t+""}function Xie(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CT=function(t,n,r,i,o){var s=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-s/2,",").concat(n+o),l+="L ".concat(t+r-s/2-i,",").concat(n+o),l+="L ".concat(t,",").concat(n," Z"),l},Yie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Qie=function(t){var n=kT(kT({},Yie),t),r=j.useRef(),i=j.useState(-1),o=Uie(i,2),s=o[0],l=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&l(w)}catch{}},[]);var u=n.x,f=n.y,h=n.upperWidth,d=n.lowerWidth,m=n.height,v=n.className,_=n.animationEasing,x=n.animationDuration,S=n.animationBegin,y=n.isUpdateAnimationActive;if(u!==+u||f!==+f||h!==+h||d!==+d||m!==+m||h===0&&d===0||m===0)return null;var b=Le("recharts-trapezoid",v);return y?I.createElement(pi,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:m,x:u,y:f},to:{upperWidth:h,lowerWidth:d,height:m,x:u,y:f},duration:x,animationEasing:_,isActive:y},function(w){var E=w.upperWidth,P=w.lowerWidth,A=w.height,C=w.x,M=w.y;return I.createElement(pi,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:x,easing:_},I.createElement("path",Id({},Ae(n,!0),{className:b,d:CT(C,M,E,P,A),ref:r})))}):I.createElement("g",null,I.createElement("path",Id({},Ae(n,!0),{className:b,d:CT(u,f,h,d,m)})))},Jie=["option","shapeType","propTransformer","activeClassName","isActive"];function pc(e){"@babel/helpers - typeof";return pc=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},pc(e)}function eoe(e,t){if(e==null)return{};var n=toe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function toe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function MT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MT(Object(n),!0).forEach(function(r){noe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function noe(e,t,n){return t=roe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function roe(e){var t=ioe(e,"string");return pc(t)=="symbol"?t:t+""}function ioe(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ooe(e,t){return Dd(Dd({},t),e)}function aoe(e,t){return e==="symbols"}function jT(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return I.createElement(e1,n);case"trapezoid":return I.createElement(Qie,n);case"sector":return I.createElement(Zj,n);case"symbols":if(aoe(t))return I.createElement(y_,n);break;default:return null}}function soe(e){return j.isValidElement(e)?e.props:e}function loe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?ooe:r,o=e.activeClassName,s=o===void 0?"recharts-active-shape":o,l=e.isActive,u=eoe(e,Jie),f;if(j.isValidElement(t))f=j.cloneElement(t,Dd(Dd({},u),soe(t)));else if(Se(t))f=t(u);else if(Iie(t)&&!Vie(t)){var h=i(t,u);f=I.createElement(jT,{shapeType:n,elementProps:h})}else{var d=u;f=I.createElement(jT,{shapeType:n,elementProps:d})}return l?I.createElement(at,{className:s},f):f}function Jp(e,t){return t!=null&&"trapezoids"in e.props}function em(e,t){return t!=null&&"sectors"in e.props}function mc(e,t){return t!=null&&"points"in e.props}function uoe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function coe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function foe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function hoe(e,t){var n;return Jp(e,t)?n=uoe:em(e,t)?n=coe:mc(e,t)&&(n=foe),n}function doe(e,t){var n;return Jp(e,t)?n="trapezoids":em(e,t)?n="sectors":mc(e,t)&&(n="points"),n}function poe(e,t){if(Jp(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(em(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return mc(e,t)?t.payload:{}}function moe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=doe(n,t),o=poe(n,t),s=r.filter(function(u,f){var h=Qu(o,u),d=n.props[i].filter(function(_){var x=hoe(n,t);return x(_,t)}),m=n.props[i].indexOf(d[d.length-1]),v=f===m;return h&&v}),l=r.indexOf(s[s.length-1]);return l}var voe=Math.ceil,goe=Math.max;function yoe(e,t,n,r){for(var i=-1,o=goe(voe((t-e)/(n||1)),0),s=Array(o);o--;)s[r?o:++i]=e,e+=n;return s}var xoe=yoe,_oe=DM,$T=1/0,boe=17976931348623157e292;function woe(e){if(!e)return e===0?e:0;if(e=_oe(e),e===$T||e===-$T){var t=e<0?-1:1;return t*boe}return e===e?e:0}var i$=woe,Soe=xoe,Poe=Vp,jv=i$;function Ooe(e){return function(t,n,r){return r&&typeof r!="number"&&Poe(t,n,r)&&(n=r=void 0),t=jv(t),n===void 0?(n=t,t=0):n=jv(n),r=r===void 0?t<n?1:-1:jv(r),Soe(t,n,r,e)}}var Toe=Ooe,Aoe=Toe,Eoe=Aoe(),koe=Eoe;const Rd=Ue(koe);function vc(e){"@babel/helpers - typeof";return vc=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},vc(e)}function LT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LT(Object(n),!0).forEach(function(r){o$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o$(e,t,n){return t=Coe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Coe(e){var t=Moe(e,"string");return vc(t)=="symbol"?t:t+""}function Moe(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var joe=["Webkit","Moz","O","ms"],$oe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=joe.reduce(function(o,s){return NT(NT({},o),{},o$({},s+r,n))},{});return i[t]=n,i};function ys(e){"@babel/helpers - typeof";return ys=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},ys(e)}function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zd.apply(this,arguments)}function IT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IT(Object(n),!0).forEach(function(r){_n(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Loe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s$(r.key),r)}}function Noe(e,t,n){return t&&DT(e.prototype,t),n&&DT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ioe(e,t,n){return t=Bd(t),Doe(e,a$()?Reflect.construct(t,n||[],Bd(e).constructor):t.apply(e,n))}function Doe(e,t){if(t&&(ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Roe(e)}function Roe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a$=function(){return!!e})()}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bd(e)}function zoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t0(e,t)}function t0(e,t){return t0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},t0(e,t)}function _n(e,t,n){return t=s$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s$(e){var t=Boe(e,"string");return ys(t)=="symbol"?t:t+""}function Boe(e,t){if(ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Foe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,s=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var u=n.length,f=pu().domain(Rd(0,u)).range([o,o+s-l]),h=f.domain().map(function(d){return f(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(i),scale:f,scaleValues:h}},RT=function(t){return t.changedTouches&&!!t.changedTouches.length},xs=function(e){function t(n){var r;return Loe(this,t),r=Ioe(this,t,[n]),_n(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),_n(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),_n(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),r.detachDragEndListener()}),_n(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),_n(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),_n(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),_n(r,"handleSlideDragStart",function(i){var o=RT(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return zoe(t,e),Noe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,s=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,h=f.length-1,d=Math.min(i,o),m=Math.max(i,o),v=t.getIndexInRange(s,d),_=t.getIndexInRange(s,m);return{startIndex:v-v%u,endIndex:_===h?h:_-_%u}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=kn(o[r],l,r);return Se(s)?s(u,r):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,u=this.props,f=u.x,h=u.width,d=u.travellerWidth,m=u.startIndex,v=u.endIndex,_=u.onChange,x=r.pageX-o;x>0?x=Math.min(x,f+h-d-l,f+h-d-s):x<0&&(x=Math.max(x,f-s,f-l));var S=this.getIndex({startX:s+x,endX:l+x});(S.startIndex!==m||S.endIndex!==v)&&_&&_(S),this.setState({startX:s+x,endX:l+x,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=RT(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,s=i.movingTravellerId,l=i.endX,u=i.startX,f=this.state[s],h=this.props,d=h.x,m=h.width,v=h.travellerWidth,_=h.onChange,x=h.gap,S=h.data,y={startX:this.state.startX,endX:this.state.endX},b=r.pageX-o;b>0?b=Math.min(b,d+m-v-f):b<0&&(b=Math.max(b,d-f)),y[s]=f+b;var w=this.getIndex(y),E=w.startIndex,P=w.endIndex,A=function(){var M=S.length-1;return s==="startX"&&(l>u?E%x===0:P%x===0)||l<u&&P===M||s==="endX"&&(l>u?P%x===0:E%x===0)||l>u&&P===M};this.setState(_n(_n({},s,f+b),"brushMoveStartX",r.pageX),function(){_&&A()&&_(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,s=this.state,l=s.scaleValues,u=s.startX,f=s.endX,h=this.state[i],d=l.indexOf(h);if(d!==-1){var m=d+r;if(!(m===-1||m>=l.length)){var v=l[m];i==="startX"&&v>=f||i==="endX"&&v<=u||this.setState(_n({},i,v),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.fill,f=r.stroke;return I.createElement("rect",{stroke:f,fill:u,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.data,f=r.children,h=r.padding,d=j.Children.only(f);return d?I.cloneElement(d,{x:i,y:o,width:s,height:l,margin:h,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,s,l=this,u=this.props,f=u.y,h=u.travellerWidth,d=u.height,m=u.traveller,v=u.ariaLabel,_=u.data,x=u.startIndex,S=u.endIndex,y=Math.max(r,this.props.x),b=$v($v({},Ae(this.props,!1)),{},{x:y,y:f,width:h,height:d}),w=v||"Min value: ".concat((o=_[x])===null||o===void 0?void 0:o.name,", Max value: ").concat((s=_[S])===null||s===void 0?void 0:s.name);return I.createElement(at,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),l.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,b))}},{key:"renderSlide",value:function(r,i){var o=this.props,s=o.y,l=o.height,u=o.stroke,f=o.travellerWidth,h=Math.min(r,i)+f,d=Math.max(Math.abs(i-r)-f,0);return I.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:h,y:s,width:d,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,s=r.y,l=r.height,u=r.travellerWidth,f=r.stroke,h=this.state,d=h.startX,m=h.endX,v=5,_={pointerEvents:"none",fill:f};return I.createElement(at,{className:"recharts-brush-texts"},I.createElement(dd,zd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,m)-v,y:s+l/2},_),this.getTextOfTick(i)),I.createElement(dd,zd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,m)+u+v,y:s+l/2},_),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,s=r.children,l=r.x,u=r.y,f=r.width,h=r.height,d=r.alwaysShowText,m=this.state,v=m.startX,_=m.endX,x=m.isTextActive,S=m.isSlideMoving,y=m.isTravellerMoving,b=m.isTravellerFocused;if(!i||!i.length||!ie(l)||!ie(u)||!ie(f)||!ie(h)||f<=0||h<=0)return null;var w=Le("recharts-brush",o),E=I.Children.count(s)===1,P=$oe("userSelect","none");return I.createElement(at,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(v,_),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(_,"endX"),(x||S||y||b||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,s=r.width,l=r.height,u=r.stroke,f=Math.floor(o+l/2)-1;return I.createElement(I.Fragment,null,I.createElement("rect",{x:i,y:o,width:s,height:l,fill:u,stroke:"none"}),I.createElement("line",{x1:i+1,y1:f,x2:i+s-1,y2:f,fill:"none",stroke:"#fff"}),I.createElement("line",{x1:i+1,y1:f+2,x2:i+s-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return I.isValidElement(r)?o=I.cloneElement(r,i):Se(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,s=r.width,l=r.x,u=r.travellerWidth,f=r.updateId,h=r.startIndex,d=r.endIndex;if(o!==i.prevData||f!==i.prevUpdateId)return $v({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?Foe({data:o,width:s,x:l,travellerWidth:u,startIndex:h,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+s-u]);var m=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);r[u]>i?l=u:s=u}return i>=r[l]?l:s}}])}(j.PureComponent);_n(xs,"displayName","Brush");_n(xs,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Voe=O_;function Uoe(e,t){var n;return Voe(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var Woe=Uoe,Hoe=cM,Zoe=no,Goe=Woe,Koe=vn,qoe=Vp;function Xoe(e,t,n){var r=Koe(e)?Hoe:Goe;return n&&qoe(e,t,n)&&(t=void 0),r(e,Zoe(t))}var Yoe=Xoe;const Qoe=Ue(Yoe);var Lr=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},zT=jM;function Joe(e,t,n){t=="__proto__"&&zT?zT(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var eae=Joe,tae=eae,nae=CM,rae=no;function iae(e,t){var n={};return t=rae(t),nae(e,function(r,i,o){tae(n,i,t(r,i,o))}),n}var oae=iae;const aae=Ue(oae);function sae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var lae=sae,uae=O_;function cae(e,t){var n=!0;return uae(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var fae=cae,hae=lae,dae=fae,pae=no,mae=vn,vae=Vp;function gae(e,t,n){var r=mae(e)?hae:dae;return n&&vae(e,t,n)&&(t=void 0),r(e,pae(t))}var yae=gae;const l$=Ue(yae);var xae=["x","y"];function gc(e){"@babel/helpers - typeof";return gc=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},gc(e)}function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}function BT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BT(Object(n),!0).forEach(function(r){_ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ae(e,t,n){return t=bae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bae(e){var t=wae(e,"string");return gc(t)=="symbol"?t:t+""}function wae(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sae(e,t){if(e==null)return{};var n=Pae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Oae(e,t){var n=e.x,r=e.y,i=Sae(e,xae),o="".concat(n),s=parseInt(o,10),l="".concat(r),u=parseInt(l,10),f="".concat(t.height||i.height),h=parseInt(f,10),d="".concat(t.width||i.width),m=parseInt(d,10);return Fl(Fl(Fl(Fl(Fl({},t),i),s?{x:s}:{}),u?{y:u}:{}),{},{height:h,width:m,name:t.name,radius:t.radius})}function FT(e){return I.createElement(loe,n0({shapeType:"rectangle",propTransformer:Oae,activeClassName:"recharts-active-bar"},e))}var Tae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=ie(r)||z6(r);return o?t(r,i):(o||qo(),n)}},Aae=["value","background"],u$;function _s(e){"@babel/helpers - typeof";return _s=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},_s(e)}function Eae(e,t){if(e==null)return{};var n=kae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fd.apply(this,arguments)}function VT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VT(Object(n),!0).forEach(function(r){Di(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f$(r.key),r)}}function Mae(e,t,n){return t&&UT(e.prototype,t),n&&UT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jae(e,t,n){return t=Vd(t),$ae(e,c$()?Reflect.construct(t,n||[],Vd(e).constructor):t.apply(e,n))}function $ae(e,t){if(t&&(_s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lae(e)}function Lae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c$=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vd(e)}function Nae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r0(e,t)}function r0(e,t){return r0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},r0(e,t)}function Di(e,t,n){return t=f$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f$(e){var t=Iae(e,"string");return _s(t)=="symbol"?t:t+""}function Iae(e,t){if(_s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ia=function(e){function t(){var n;Cae(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=jae(this,t,[].concat(i)),Di(n,"state",{isAnimationFinished:!1}),Di(n,"id",jc("recharts-bar-")),Di(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),Di(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Nae(t,e),Mae(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,s=o.shape,l=o.dataKey,u=o.activeIndex,f=o.activeBar,h=Ae(this.props,!1);return r&&r.map(function(d,m){var v=m===u,_=v?f:s,x=gt(gt(gt({},h),d),{},{isActive:v,option:_,index:m,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return I.createElement(at,Fd({className:"recharts-bar-rectangle"},Jh(i.props,d,m),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(m)}),I.createElement(FT,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,s=i.layout,l=i.isAnimationActive,u=i.animationBegin,f=i.animationDuration,h=i.animationEasing,d=i.animationId,m=this.state.prevData;return I.createElement(pi,{begin:u,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var _=v.t,x=o.map(function(S,y){var b=m&&m[y];if(b){var w=Un(b.x,S.x),E=Un(b.y,S.y),P=Un(b.width,S.width),A=Un(b.height,S.height);return gt(gt({},S),{},{x:w(_),y:E(_),width:P(_),height:A(_)})}if(s==="horizontal"){var C=Un(0,S.height),M=C(_);return gt(gt({},S),{},{y:S.y+S.height-M,height:M})}var $=Un(0,S.width),z=$(_);return gt(gt({},S),{},{width:z})});return I.createElement(at,null,r.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,s=this.state.prevData;return o&&i&&i.length&&(!s||!Qu(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,s=i.dataKey,l=i.activeIndex,u=Ae(this.props.background,!1);return o.map(function(f,h){f.value;var d=f.background,m=Eae(f,Aae);if(!d)return null;var v=gt(gt(gt(gt(gt({},m),{},{fill:"#eee"},d),u),Jh(r.props,f,h)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:h,className:"recharts-bar-background-rectangle"});return I.createElement(FT,Fd({key:"background-bar-".concat(h),option:r.props.background,isActive:h===l},v))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,s=o.data,l=o.xAxis,u=o.yAxis,f=o.layout,h=o.children,d=mr(h,Qp);if(!d)return null;var m=f==="vertical"?s[0].height/2:s[0].width/2,v=function(S,y){var b=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:b,errorVal:kn(S,y)}},_={clipPath:r?"url(#clipPath-".concat(i,")"):null};return I.createElement(at,_,d.map(function(x){return I.cloneElement(x,{key:"error-bar-".concat(i,"-").concat(x.props.dataKey),data:s,xAxis:l,yAxis:u,layout:f,offset:m,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,s=r.className,l=r.xAxis,u=r.yAxis,f=r.left,h=r.top,d=r.width,m=r.height,v=r.isAnimationActive,_=r.background,x=r.id;if(i||!o||!o.length)return null;var S=this.state.isAnimationFinished,y=Le("recharts-bar",s),b=l&&l.allowDataOverflow,w=u&&u.allowDataOverflow,E=b||w,P=ke(x)?this.id:x;return I.createElement(at,{className:y},b||w?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(P)},I.createElement("rect",{x:b?f:f-d/2,y:w?h:h-m/2,width:b?d:d*2,height:w?m:m*2}))):null,I.createElement(at,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(P,")"):null},_?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,P),(!v||S)&&$r.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(j.PureComponent);u$=ia;Di(ia,"displayName","Bar");Di(ia,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Gs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Di(ia,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,s=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,f=e.stackedData,h=e.dataStartIndex,d=e.displayedData,m=e.offset,v=lte(r,n);if(!v)return null;var _=t.layout,x=n.type.defaultProps,S=x!==void 0?gt(gt({},x),n.props):n.props,y=S.dataKey,b=S.children,w=S.minPointSize,E=_==="horizontal"?s:o,P=f?E.scale.domain():null,A=vte({numericAxis:E}),C=mr(b,E_),M=d.map(function($,z){var B,R,Q,H,K,q;f?B=ute(f[h+z],P):(B=kn($,y),Array.isArray(B)||(B=[A,B]));var X=Tae(w,u$.defaultProps.minPointSize)(B[1],z);if(_==="horizontal"){var D,G=[s.scale(B[0]),s.scale(B[1])],V=G[0],te=G[1];R=HO({axis:o,ticks:l,bandSize:i,offset:v.offset,entry:$,index:z}),Q=(D=te??V)!==null&&D!==void 0?D:void 0,H=v.size;var J=V-te;if(K=Number.isNaN(J)?0:J,q={x:R,y:s.y,width:H,height:s.height},Math.abs(X)>0&&Math.abs(K)<Math.abs(X)){var ae=hr(K||X)*(Math.abs(X)-Math.abs(K));Q-=ae,K+=ae}}else{var he=[o.scale(B[0]),o.scale(B[1])],de=he[0],fe=he[1];if(R=de,Q=HO({axis:s,ticks:u,bandSize:i,offset:v.offset,entry:$,index:z}),H=fe-de,K=v.size,q={x:o.x,y:Q,width:o.width,height:K},Math.abs(X)>0&&Math.abs(H)<Math.abs(X)){var Fe=hr(H||X)*(Math.abs(X)-Math.abs(H));H+=Fe}}return gt(gt(gt({},$),{},{x:R,y:Q,width:H,height:K,value:f?B:B[1],payload:$,background:q},C&&C[z]&&C[z].props),{},{tooltipPayload:[Uj(n,$)],tooltipPosition:{x:R+H/2,y:Q+K/2}})});return gt({data:M,layout:_},m)});function yc(e){"@babel/helpers - typeof";return yc=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},yc(e)}function Dae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h$(r.key),r)}}function Rae(e,t,n){return t&&WT(e.prototype,t),n&&WT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function HT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HT(Object(n),!0).forEach(function(r){tm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tm(e,t,n){return t=h$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(e){var t=zae(e,"string");return yc(t)=="symbol"?t:t+""}function zae(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d$=function(t,n,r,i,o){var s=t.width,l=t.height,u=t.layout,f=t.children,h=Object.keys(n),d={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},m=!!wn(f,ia);return h.reduce(function(v,_){var x=n[_],S=x.orientation,y=x.domain,b=x.padding,w=b===void 0?{}:b,E=x.mirror,P=x.reversed,A="".concat(S).concat(E?"Mirror":""),C,M,$,z,B;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var R=y[1]-y[0],Q=1/0,H=x.categoricalDomain.sort(V6);if(H.forEach(function(he,de){de>0&&(Q=Math.min((he||0)-(H[de-1]||0),Q))}),Number.isFinite(Q)){var K=Q/R,q=x.layout==="vertical"?r.height:r.width;if(x.padding==="gap"&&(C=K*q/2),x.padding==="no-gap"){var X=Go(t.barCategoryGap,K*q),D=K*q/2;C=D-X-(D-X)/q*X}}}i==="xAxis"?M=[r.left+(w.left||0)+(C||0),r.left+r.width-(w.right||0)-(C||0)]:i==="yAxis"?M=u==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(C||0),r.top+r.height-(w.bottom||0)-(C||0)]:M=x.range,P&&(M=[M[1],M[0]]);var G=ate(x,o,m),V=G.scale,te=G.realScaleType;V.domain(y).range(M),ste(V);var J=mte(V,ur(ur({},x),{},{realScaleType:te}));i==="xAxis"?(B=S==="top"&&!E||S==="bottom"&&E,$=r.left,z=d[A]-B*x.height):i==="yAxis"&&(B=S==="left"&&!E||S==="right"&&E,$=d[A]-B*x.width,z=r.top);var ae=ur(ur(ur({},x),J),{},{realScaleType:te,x:$,y:z,scale:V,width:i==="xAxis"?r.width:x.width,height:i==="yAxis"?r.height:x.height});return ae.bandSize=Ed(ae,J),!x.hide&&i==="xAxis"?d[A]+=(B?-1:1)*ae.height:x.hide||(d[A]+=(B?-1:1)*ae.width),ur(ur({},v),{},tm({},_,ae))},{})},p$=function(t,n){var r=t.x,i=t.y,o=n.x,s=n.y;return{x:Math.min(r,o),y:Math.min(i,s),width:Math.abs(o-r),height:Math.abs(s-i)}},Bae=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return p$({x:n,y:r},{x:i,y:o})},m$=function(){function e(t){Dae(this,e),this.scale=t}return Rae(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+u}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();tm(m$,"EPS",1e-4);var n1=function(t){var n=Object.keys(t).reduce(function(r,i){return ur(ur({},r),{},tm({},i,m$.create(t[i])))},{});return ur(ur({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.bandAware,l=o.position;return aae(i,function(u,f){return n[f].apply(u,{bandAware:s,position:l})})},isInRange:function(i){return l$(i,function(o,s){return n[s].isInRange(o)})}})};function Fae(e){return(e%180+180)%180}var Vae=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Fae(i),s=o*Math.PI/180,l=Math.atan(r/n),u=s>l&&s<Math.PI-l?r/Math.sin(s):n/Math.cos(s);return Math.abs(u)},Uae=no,Wae=$c,Hae=Bp;function Zae(e){return function(t,n,r){var i=Object(t);if(!Wae(t)){var o=Uae(n);t=Hae(t),n=function(l){return o(i[l],l,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:void 0}}var Gae=Zae,Kae=i$;function qae(e){var t=Kae(e),n=t%1;return t===t?n?t-n:t:0}var Xae=qae,Yae=PM,Qae=no,Jae=Xae,ese=Math.max;function tse(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Jae(n);return i<0&&(i=ese(r+i,0)),Yae(e,Qae(t),i)}var nse=tse,rse=Gae,ise=nse,ose=rse(ise),ase=ose;const sse=Ue(ase);var lse=H8(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),r1=j.createContext(void 0),i1=j.createContext(void 0),v$=j.createContext(void 0),g$=j.createContext({}),y$=j.createContext(void 0),x$=j.createContext(0),_$=j.createContext(0),ZT=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,s=t.clipPathId,l=t.children,u=t.width,f=t.height,h=lse(o);return I.createElement(r1.Provider,{value:r},I.createElement(i1.Provider,{value:i},I.createElement(g$.Provider,{value:o},I.createElement(v$.Provider,{value:h},I.createElement(y$.Provider,{value:s},I.createElement(x$.Provider,{value:f},I.createElement(_$.Provider,{value:u},l)))))))},use=function(){return j.useContext(y$)},b$=function(t){var n=j.useContext(r1);n==null&&qo();var r=n[t];return r==null&&qo(),r},cse=function(){var t=j.useContext(r1);return $i(t)},fse=function(){var t=j.useContext(i1),n=sse(t,function(r){return l$(r.domain,Number.isFinite)});return n||$i(t)},w$=function(t){var n=j.useContext(i1);n==null&&qo();var r=n[t];return r==null&&qo(),r},hse=function(){var t=j.useContext(v$);return t},dse=function(){return j.useContext(g$)},o1=function(){return j.useContext(_$)},a1=function(){return j.useContext(x$)};function bs(e){"@babel/helpers - typeof";return bs=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},bs(e)}function pse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P$(r.key),r)}}function vse(e,t,n){return t&&mse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gse(e,t,n){return t=Ud(t),yse(e,S$()?Reflect.construct(t,n||[],Ud(e).constructor):t.apply(e,n))}function yse(e,t){if(t&&(bs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xse(e)}function xse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S$=function(){return!!e})()}function Ud(e){return Ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ud(e)}function _se(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i0(e,t)}function i0(e,t){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},i0(e,t)}function GT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function KT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GT(Object(n),!0).forEach(function(r){s1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s1(e,t,n){return t=P$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P$(e){var t=bse(e,"string");return bs(t)=="symbol"?t:t+""}function bse(e,t){if(bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function wse(e,t){return Tse(e)||Ose(e,t)||Pse(e,t)||Sse()}function Sse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
370
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pse(e,t){if(e){if(typeof e=="string")return qT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qT(e,t)}}function qT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ose(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Tse(e){if(Array.isArray(e))return e}function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}var Ase=function(t,n){var r;return I.isValidElement(t)?r=I.cloneElement(t,n):Se(t)?r=t(n):r=I.createElement("line",o0({},n,{className:"recharts-reference-line-line"})),r},Ese=function(t,n,r,i,o,s,l,u,f){var h=o.x,d=o.y,m=o.width,v=o.height;if(r){var _=f.y,x=t.y.apply(_,{position:s});if(Lr(f,"discard")&&!t.y.isInRange(x))return null;var S=[{x:h+m,y:x},{x:h,y:x}];return u==="left"?S.reverse():S}if(n){var y=f.x,b=t.x.apply(y,{position:s});if(Lr(f,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:d+v},{x:b,y:d}];return l==="top"?w.reverse():w}if(i){var E=f.segment,P=E.map(function(A){return t.apply(A,{position:s})});return Lr(f,"discard")&&Qoe(P,function(A){return!t.isInRange(A)})?null:P}return null};function kse(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,s=e.shape,l=e.className,u=e.alwaysShow,f=use(),h=b$(i),d=w$(o),m=hse();if(!f||!m)return null;ii(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=n1({x:h.scale,y:d.scale}),_=Ot(t),x=Ot(n),S=r&&r.length===2,y=Ese(v,_,x,S,m,e.position,h.orientation,d.orientation,e);if(!y)return null;var b=wse(y,2),w=b[0],E=w.x,P=w.y,A=b[1],C=A.x,M=A.y,$=Lr(e,"hidden")?"url(#".concat(f,")"):void 0,z=KT(KT({clipPath:$},Ae(e,!0)),{},{x1:E,y1:P,x2:C,y2:M});return I.createElement(at,{className:Le("recharts-reference-line",l)},Ase(s,z),Yt.renderCallByParent(e,Bae({x1:E,y1:P,x2:C,y2:M})))}var l1=function(e){function t(){return pse(this,t),gse(this,t,arguments)}return _se(t,e),vse(t,[{key:"render",value:function(){return I.createElement(kse,this.props)}}])}(I.Component);s1(l1,"displayName","ReferenceLine");s1(l1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function a0(){return a0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a0.apply(this,arguments)}function ws(e){"@babel/helpers - typeof";return ws=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},ws(e)}function XT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XT(Object(n),!0).forEach(function(r){nm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T$(r.key),r)}}function jse(e,t,n){return t&&Mse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $se(e,t,n){return t=Wd(t),Lse(e,O$()?Reflect.construct(t,n||[],Wd(e).constructor):t.apply(e,n))}function Lse(e,t){if(t&&(ws(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nse(e)}function Nse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O$=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wd(e)}function Ise(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s0(e,t)}function s0(e,t){return s0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},s0(e,t)}function nm(e,t,n){return t=T$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T$(e){var t=Dse(e,"string");return ws(t)=="symbol"?t:t+""}function Dse(e,t){if(ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rse=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,s=n1({x:i.scale,y:o.scale}),l=s.apply({x:n,y:r},{bandAware:!0});return Lr(t,"discard")&&!s.isInRange(l)?null:l},Bo=function(e){function t(){return Cse(this,t),$se(this,t,arguments)}return Ise(t,e),jse(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,s=r.r,l=r.alwaysShow,u=r.clipPathId,f=Ot(i),h=Ot(o);if(ii(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!h)return null;var d=Rse(this.props);if(!d)return null;var m=d.x,v=d.y,_=this.props,x=_.shape,S=_.className,y=Lr(this.props,"hidden")?"url(#".concat(u,")"):void 0,b=YT(YT({clipPath:y},Ae(this.props,!0)),{},{cx:m,cy:v});return I.createElement(at,{className:Le("recharts-reference-dot",S)},t.renderDot(x,b),Yt.renderCallByParent(this.props,{x:m-s,y:v-s,width:2*s,height:2*s}))}}])}(I.Component);nm(Bo,"displayName","ReferenceDot");nm(Bo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});nm(Bo,"renderDot",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):Se(e)?n=e(t):n=I.createElement(t1,a0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function Ss(e){"@babel/helpers - typeof";return Ss=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},Ss(e)}function QT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function JT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QT(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E$(r.key),r)}}function Fse(e,t,n){return t&&Bse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vse(e,t,n){return t=Hd(t),Use(e,A$()?Reflect.construct(t,n||[],Hd(e).constructor):t.apply(e,n))}function Use(e,t){if(t&&(Ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wse(e)}function Wse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A$=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hd(e)}function Hse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u0(e,t)}function u0(e,t){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u0(e,t)}function rm(e,t,n){return t=E$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E$(e){var t=Zse(e,"string");return Ss(t)=="symbol"?t:t+""}function Zse(e,t){if(Ss(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gse=function(t,n,r,i,o){var s=o.x1,l=o.x2,u=o.y1,f=o.y2,h=o.xAxis,d=o.yAxis;if(!h||!d)return null;var m=n1({x:h.scale,y:d.scale}),v={x:t?m.x.apply(s,{position:"start"}):m.x.rangeMin,y:r?m.y.apply(u,{position:"start"}):m.y.rangeMin},_={x:n?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:i?m.y.apply(f,{position:"end"}):m.y.rangeMax};return Lr(o,"discard")&&(!m.isInRange(v)||!m.isInRange(_))?null:p$(v,_)},im=function(e){function t(){return zse(this,t),Vse(this,t,arguments)}return Hse(t,e),Fse(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,s=r.y1,l=r.y2,u=r.className,f=r.alwaysShow,h=r.clipPathId;ii(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Ot(i),m=Ot(o),v=Ot(s),_=Ot(l),x=this.props.shape;if(!d&&!m&&!v&&!_&&!x)return null;var S=Gse(d,m,v,_,this.props);if(!S&&!x)return null;var y=Lr(this.props,"hidden")?"url(#".concat(h,")"):void 0;return I.createElement(at,{className:Le("recharts-reference-area",u)},t.renderRect(x,JT(JT({clipPath:y},Ae(this.props,!0)),S)),Yt.renderCallByParent(this.props,S))}}])}(I.Component);rm(im,"displayName","ReferenceArea");rm(im,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});rm(im,"renderRect",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):Se(e)?n=e(t):n=I.createElement(e1,l0({},t,{className:"recharts-reference-area-rect"})),n});function k$(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Kse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Vae(r,n)}function qse(e,t,n){var r=n==="width",i=e.x,o=e.y,s=e.width,l=e.height;return t===1?{start:r?i:o,end:r?i+s:o+l}:{start:r?i+s:o+l,end:r?i:o}}function Zd(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Xse(e,t){return k$(e,t+1)}function Yse(e,t,n,r,i){for(var o=(r||[]).slice(),s=t.start,l=t.end,u=0,f=1,h=s,d=function(){var _=r==null?void 0:r[u];if(_===void 0)return{v:k$(r,f)};var x=u,S,y=function(){return S===void 0&&(S=n(_,x)),S},b=_.coordinate,w=u===0||Zd(e,b,y,h,l);w||(u=0,h=s,f+=1),w&&(h=b+e*(y()/2+i),u+=f)},m;f<=o.length;)if(m=d(),m)return m.v;return[]}function xc(e){"@babel/helpers - typeof";return xc=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},xc(e)}function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(r){Qse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qse(e,t,n){return t=Jse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jse(e){var t=ele(e,"string");return xc(t)=="symbol"?t:t+""}function ele(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tle(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end,f=function(m){var v=o[m],_,x=function(){return _===void 0&&(_=n(v,m)),_};if(m===s-1){var S=e*(v.coordinate+e*x()/2-u);o[m]=v=qt(qt({},v),{},{tickCoord:S>0?v.coordinate-S*e:v.coordinate})}else o[m]=v=qt(qt({},v),{},{tickCoord:v.coordinate});var y=Zd(e,v.tickCoord,x,l,u);y&&(u=v.tickCoord-e*(x()/2+i),o[m]=qt(qt({},v),{},{isShow:!0}))},h=s-1;h>=0;h--)f(h);return o}function nle(e,t,n,r,i,o){var s=(r||[]).slice(),l=s.length,u=t.start,f=t.end;if(o){var h=r[l-1],d=n(h,l-1),m=e*(h.coordinate+e*d/2-f);s[l-1]=h=qt(qt({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate});var v=Zd(e,h.tickCoord,function(){return d},u,f);v&&(f=h.tickCoord-e*(d/2+i),s[l-1]=qt(qt({},h),{},{isShow:!0}))}for(var _=o?l-1:l,x=function(b){var w=s[b],E,P=function(){return E===void 0&&(E=n(w,b)),E};if(b===0){var A=e*(w.coordinate-e*P()/2-u);s[b]=w=qt(qt({},w),{},{tickCoord:A<0?w.coordinate-A*e:w.coordinate})}else s[b]=w=qt(qt({},w),{},{tickCoord:w.coordinate});var C=Zd(e,w.tickCoord,P,u,f);C&&(u=w.tickCoord+e*(P()/2+i),s[b]=qt(qt({},w),{},{isShow:!0}))},S=0;S<_;S++)x(S);return s}function u1(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,l=e.orientation,u=e.interval,f=e.tickFormatter,h=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(ie(u)||Gs.isSsr)return Xse(i,typeof u=="number"&&ie(u)?u:0);var m=[],v=l==="top"||l==="bottom"?"width":"height",_=h&&v==="width"?du(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},x=function(w,E){var P=Se(f)?f(w.value,E):w.value;return v==="width"?Kse(du(P,{fontSize:t,letterSpacing:n}),_,d):du(P,{fontSize:t,letterSpacing:n})[v]},S=i.length>=2?hr(i[1].coordinate-i[0].coordinate):1,y=qse(o,S,v);return u==="equidistantPreserveStart"?Yse(S,y,x,i,s):(u==="preserveStart"||u==="preserveStartEnd"?m=nle(S,y,x,i,s,u==="preserveStartEnd"):m=tle(S,y,x,i,s),m.filter(function(b){return b.isShow}))}var rle=["viewBox"],ile=["viewBox"],ole=["ticks"];function Ps(e){"@babel/helpers - typeof";return Ps=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},Ps(e)}function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},za.apply(this,arguments)}function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(r){c1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lv(e,t){if(e==null)return{};var n=ale(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ale(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function sle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M$(r.key),r)}}function lle(e,t,n){return t&&nA(e.prototype,t),n&&nA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ule(e,t,n){return t=Gd(t),cle(e,C$()?Reflect.construct(t,n||[],Gd(e).constructor):t.apply(e,n))}function cle(e,t){if(t&&(Ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fle(e)}function fle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C$=function(){return!!e})()}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gd(e)}function hle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c0(e,t)}function c0(e,t){return c0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},c0(e,t)}function c1(e,t,n){return t=M$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M$(e){var t=dle(e,"string");return Ps(t)=="symbol"?t:t+""}function dle(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ys=function(e){function t(n){var r;return sle(this,t),r=ule(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return hle(t,e),lle(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,s=Lv(r,rle),l=this.props,u=l.viewBox,f=Lv(l,ile);return!Ka(o,u)||!Ka(s,f)||!Ka(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,s=i.y,l=i.width,u=i.height,f=i.orientation,h=i.tickSize,d=i.mirror,m=i.tickMargin,v,_,x,S,y,b,w=d?-1:1,E=r.tickSize||h,P=ie(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":v=_=r.coordinate,S=s+ +!d*u,x=S-w*E,b=x-w*m,y=P;break;case"left":x=S=r.coordinate,_=o+ +!d*l,v=_-w*E,y=v-w*m,b=P;break;case"right":x=S=r.coordinate,_=o+ +d*l,v=_+w*E,y=v+w*m,b=P;break;default:v=_=r.coordinate,S=s+ +d*u,x=S+w*E,b=x+w*m,y=P;break}return{line:{x1:v,y1:x,x2:_,y2:S},tick:{x:y,y:b}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.orientation,f=r.mirror,h=r.axisLine,d=bt(bt(bt({},Ae(this.props,!1)),Ae(h,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);d=bt(bt({},d),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var v=+(u==="left"&&!f||u==="right"&&f);d=bt(bt({},d),{},{x1:i+v*s,y1:o,x2:i+v*s,y2:o+l})}return I.createElement("line",za({},d,{className:Le("recharts-cartesian-axis-line",Gn(h,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var s=this,l=this.props,u=l.tickLine,f=l.stroke,h=l.tick,d=l.tickFormatter,m=l.unit,v=u1(bt(bt({},this.props),{},{ticks:r}),i,o),_=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),S=Ae(this.props,!1),y=Ae(h,!1),b=bt(bt({},S),{},{fill:"none"},Ae(u,!1)),w=v.map(function(E,P){var A=s.getTickLineCoord(E),C=A.line,M=A.tick,$=bt(bt(bt(bt({textAnchor:_,verticalAnchor:x},S),{},{stroke:"none",fill:f},y),M),{},{index:P,payload:E,visibleTicksCount:v.length,tickFormatter:d});return I.createElement(at,za({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},Jh(s.props,E,P)),u&&I.createElement("line",za({},b,C,{className:Le("recharts-cartesian-axis-tick-line",Gn(u,"className"))})),h&&t.renderTickItem(h,$,"".concat(Se(d)?d(E.value,P):E.value).concat(m||"")))});return I.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,u=i.ticksGenerator,f=i.className,h=i.hide;if(h)return null;var d=this.props,m=d.ticks,v=Lv(d,ole),_=m;return Se(u)&&(_=m&&m.length>0?u(this.props):u(v)),s<=0||l<=0||!_||!_.length?null:I.createElement(at,{className:Le("recharts-cartesian-axis",f),ref:function(S){r.layerReference=S}},o&&this.renderAxisLine(),this.renderTicks(_,this.state.fontSize,this.state.letterSpacing),Yt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var s,l=Le(i.className,"recharts-cartesian-axis-tick-value");return I.isValidElement(r)?s=I.cloneElement(r,bt(bt({},i),{},{className:l})):Se(r)?s=r(bt(bt({},i),{},{className:l})):s=I.createElement(dd,za({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}])}(j.Component);c1(Ys,"displayName","CartesianAxis");c1(Ys,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var ple=["x1","y1","x2","y2","key"],mle=["offset"];function Xo(e){"@babel/helpers - typeof";return Xo=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},Xo(e)}function rA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(n),!0).forEach(function(r){vle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vle(e,t,n){return t=gle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gle(e){var t=yle(e,"string");return Xo(t)=="symbol"?t:t+""}function yle(e,t){if(Xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$o.apply(this,arguments)}function iA(e,t){if(e==null)return{};var n=xle(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var _le=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,s=t.width,l=t.height,u=t.ry;return I.createElement("rect",{x:i,y:o,ry:u,width:s,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function j$(e,t){var n;if(I.isValidElement(e))n=I.cloneElement(e,t);else if(Se(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,s=t.y2,l=t.key,u=iA(t,ple),f=Ae(u,!1);f.offset;var h=iA(f,mle);n=I.createElement("line",$o({},h,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:l}))}return n}function ble(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(l,u){var f=Qt(Qt({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(u),index:u});return j$(i,f)});return I.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function wle(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(l,u){var f=Qt(Qt({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(u),index:u});return j$(i,f)});return I.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Sle(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,s=e.height,l=e.horizontalPoints,u=e.horizontal,f=u===void 0?!0:u;if(!f||!t||!t.length)return null;var h=l.map(function(m){return Math.round(m+i-i)}).sort(function(m,v){return m-v});i!==h[0]&&h.unshift(0);var d=h.map(function(m,v){var _=!h[v+1],x=_?i+s-m:h[v+1]-m;if(x<=0)return null;var S=v%t.length;return I.createElement("rect",{key:"react-".concat(v),y:m,x:r,height:x,width:o,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function Ple(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,l=e.width,u=e.height,f=e.verticalPoints;if(!n||!r||!r.length)return null;var h=f.map(function(m){return Math.round(m+o-o)}).sort(function(m,v){return m-v});o!==h[0]&&h.unshift(0);var d=h.map(function(m,v){var _=!h[v+1],x=_?o+l-m:h[v+1]-m;if(x<=0)return null;var S=v%r.length;return I.createElement("rect",{key:"react-".concat(v),x:m,y:s,width:x,height:u,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Ole=function(t,n){var r=t.xAxis,i=t.width,o=t.height,s=t.offset;return Fj(u1(Qt(Qt(Qt({},Ys.defaultProps),r),{},{ticks:Jr(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.left,s.left+s.width,n)},Tle=function(t,n){var r=t.yAxis,i=t.width,o=t.height,s=t.offset;return Fj(u1(Qt(Qt(Qt({},Ys.defaultProps),r),{},{ticks:Jr(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.top,s.top+s.height,n)},_a={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function f0(e){var t,n,r,i,o,s,l=o1(),u=a1(),f=dse(),h=Qt(Qt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:_a.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:_a.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:_a.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:_a.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:_a.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:_a.verticalFill,x:ie(e.x)?e.x:f.left,y:ie(e.y)?e.y:f.top,width:ie(e.width)?e.width:f.width,height:ie(e.height)?e.height:f.height}),d=h.x,m=h.y,v=h.width,_=h.height,x=h.syncWithTicks,S=h.horizontalValues,y=h.verticalValues,b=cse(),w=fse();if(!ie(v)||v<=0||!ie(_)||_<=0||!ie(d)||d!==+d||!ie(m)||m!==+m)return null;var E=h.verticalCoordinatesGenerator||Ole,P=h.horizontalCoordinatesGenerator||Tle,A=h.horizontalPoints,C=h.verticalPoints;if((!A||!A.length)&&Se(P)){var M=S&&S.length,$=P({yAxis:w?Qt(Qt({},w),{},{ticks:M?S:w.ticks}):void 0,width:l,height:u,offset:f},M?!0:x);ii(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Xo($),"]")),Array.isArray($)&&(A=$)}if((!C||!C.length)&&Se(E)){var z=y&&y.length,B=E({xAxis:b?Qt(Qt({},b),{},{ticks:z?y:b.ticks}):void 0,width:l,height:u,offset:f},z?!0:x);ii(Array.isArray(B),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Xo(B),"]")),Array.isArray(B)&&(C=B)}return I.createElement("g",{className:"recharts-cartesian-grid"},I.createElement(_le,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),I.createElement(ble,$o({},h,{offset:f,horizontalPoints:A,xAxis:b,yAxis:w})),I.createElement(wle,$o({},h,{offset:f,verticalPoints:C,xAxis:b,yAxis:w})),I.createElement(Sle,$o({},h,{horizontalPoints:A})),I.createElement(Ple,$o({},h,{verticalPoints:C})))}f0.displayName="CartesianGrid";var Ale=["layout","type","stroke","connectNulls","isRange","ref"],Ele=["key"],$$;function Os(e){"@babel/helpers - typeof";return Os=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},Os(e)}function L$(e,t){if(e==null)return{};var n=kle(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(n),!0).forEach(function(r){Ar(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I$(r.key),r)}}function Mle(e,t,n){return t&&aA(e.prototype,t),n&&aA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jle(e,t,n){return t=Kd(t),$le(e,N$()?Reflect.construct(t,n||[],Kd(e).constructor):t.apply(e,n))}function $le(e,t){if(t&&(Os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lle(e)}function Lle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N$=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kd(e)}function Nle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h0(e,t)}function h0(e,t){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},h0(e,t)}function Ar(e,t,n){return t=I$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I$(e){var t=Ile(e,"string");return Os(t)=="symbol"?t:t+""}function Ile(e,t){if(Os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ao=function(e){function t(){var n;Cle(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=jle(this,t,[].concat(i)),Ar(n,"state",{isAnimationFinished:!0}),Ar(n,"id",jc("recharts-area-")),Ar(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Se(s)&&s()}),Ar(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Se(s)&&s()}),n}return Nle(t,e),Mle(t,[{key:"renderDots",value:function(r,i,o){var s=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(s&&!l)return null;var u=this.props,f=u.dot,h=u.points,d=u.dataKey,m=Ae(this.props,!1),v=Ae(f,!0),_=h.map(function(S,y){var b=Ai(Ai(Ai({key:"dot-".concat(y),r:3},m),v),{},{index:y,cx:S.x,cy:S.y,dataKey:d,value:S.value,payload:S.payload,points:h});return t.renderDotItem(f,b)}),x={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return I.createElement(at,Lo({className:"recharts-area-dots"},x),_)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,s=i.points,l=i.strokeWidth,u=s[0].x,f=s[s.length-1].x,h=r*Math.abs(u-f),d=Ii(s.map(function(m){return m.y||0}));return ie(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(Ii(o.map(function(m){return m.y||0})),d)),ie(d)?I.createElement("rect",{x:u<f?u:u-h,y:0,width:h,height:Math.floor(d+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,o=i.baseLine,s=i.points,l=i.strokeWidth,u=s[0].y,f=s[s.length-1].y,h=r*Math.abs(u-f),d=Ii(s.map(function(m){return m.x||0}));return ie(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(Ii(o.map(function(m){return m.x||0})),d)),ie(d)?I.createElement("rect",{x:0,y:u<f?u:u-h,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,o,s){var l=this.props,u=l.layout,f=l.type,h=l.stroke,d=l.connectNulls,m=l.isRange;l.ref;var v=L$(l,Ale);return I.createElement(at,{clipPath:o?"url(#clipPath-".concat(s,")"):null},I.createElement(vu,Lo({},Ae(v,!0),{points:r,connectNulls:d,type:f,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),h!=="none"&&I.createElement(vu,Lo({},Ae(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:d,fill:"none",points:r})),h!=="none"&&m&&I.createElement(vu,Lo({},Ae(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:d,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,s=this.props,l=s.points,u=s.baseLine,f=s.isAnimationActive,h=s.animationBegin,d=s.animationDuration,m=s.animationEasing,v=s.animationId,_=this.state,x=_.prevPoints,S=_.prevBaseLine;return I.createElement(pi,{begin:h,duration:d,isActive:f,easing:m,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var b=y.t;if(x){var w=x.length/l.length,E=l.map(function(M,$){var z=Math.floor($*w);if(x[z]){var B=x[z],R=Un(B.x,M.x),Q=Un(B.y,M.y);return Ai(Ai({},M),{},{x:R(b),y:Q(b)})}return M}),P;if(ie(u)&&typeof u=="number"){var A=Un(S,u);P=A(b)}else if(ke(u)||Us(u)){var C=Un(S,0);P=C(b)}else P=u.map(function(M,$){var z=Math.floor($*w);if(S[z]){var B=S[z],R=Un(B.x,M.x),Q=Un(B.y,M.y);return Ai(Ai({},M),{},{x:R(b),y:Q(b)})}return M});return o.renderAreaStatically(E,P,r,i)}return I.createElement(at,null,I.createElement("defs",null,I.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(b))),I.createElement(at,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(l,u,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,f=this.state,h=f.prevPoints,d=f.prevBaseLine,m=f.totalLength;return u&&s&&s.length&&(!h&&m>0||!Qu(h,s)||!Qu(d,l))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(s,l,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,s=i.dot,l=i.points,u=i.className,f=i.top,h=i.left,d=i.xAxis,m=i.yAxis,v=i.width,_=i.height,x=i.isAnimationActive,S=i.id;if(o||!l||!l.length)return null;var y=this.state.isAnimationFinished,b=l.length===1,w=Le("recharts-area",u),E=d&&d.allowDataOverflow,P=m&&m.allowDataOverflow,A=E||P,C=ke(S)?this.id:S,M=(r=Ae(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},$=M.r,z=$===void 0?3:$,B=M.strokeWidth,R=B===void 0?2:B,Q=Y6(s)?s:{},H=Q.clipDot,K=H===void 0?!0:H,q=z*2+R;return I.createElement(at,{className:w},E||P?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(C)},I.createElement("rect",{x:E?h:h-v/2,y:P?f:f-_/2,width:E?v:v*2,height:P?_:_*2})),!K&&I.createElement("clipPath",{id:"clipPath-dots-".concat(C)},I.createElement("rect",{x:h-q/2,y:f-q/2,width:v+q,height:_+q}))):null,b?null:this.renderArea(A,C),(s||b)&&this.renderDots(A,K,C),(!x||y)&&$r.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(j.PureComponent);$$=ao;Ar(ao,"displayName","Area");Ar(ao,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Gs.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ar(ao,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,s=t.props.baseValue,l=s??o;if(ie(l)&&typeof l=="number")return l;var u=i==="horizontal"?r:n,f=u.scale.domain();if(u.type==="number"){var h=Math.max(f[0],f[1]),d=Math.min(f[0],f[1]);return l==="dataMin"?d:l==="dataMax"||h<0?h:Math.max(Math.min(f[0],f[1]),0)}return l==="dataMin"?f[0]:l==="dataMax"?f[1]:f[0]});Ar(ao,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,l=e.bandSize,u=e.dataKey,f=e.stackedData,h=e.dataStartIndex,d=e.displayedData,m=e.offset,v=t.layout,_=f&&f.length,x=$$.getBaseValue(t,n,r,i),S=v==="horizontal",y=!1,b=d.map(function(E,P){var A;_?A=f[h+P]:(A=kn(E,u),Array.isArray(A)?y=!0:A=[x,A]);var C=A[1]==null||_&&kn(E,u)==null;return S?{x:WO({axis:r,ticks:o,bandSize:l,entry:E,index:P}),y:C?null:i.scale(A[1]),value:A,payload:E}:{x:C?null:r.scale(A[1]),y:WO({axis:i,ticks:s,bandSize:l,entry:E,index:P}),value:A,payload:E}}),w;return _||y?w=b.map(function(E){var P=Array.isArray(E.value)?E.value[0]:null;return S?{x:E.x,y:P!=null&&E.y!=null?i.scale(P):null}:{x:P!=null?r.scale(P):null,y:E.y}}):w=S?i.scale(x):r.scale(x),Ai({points:b,baseLine:w,layout:v,isRange:y},m)});Ar(ao,"renderDotItem",function(e,t){var n;if(I.isValidElement(e))n=I.cloneElement(e,t);else if(Se(e))n=e(t);else{var r=Le("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=L$(t,Ele);n=I.createElement(t1,Lo({},o,{key:i,className:r}))}return n});function Ts(e){"@babel/helpers - typeof";return Ts=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},Ts(e)}function Dle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z$(r.key),r)}}function zle(e,t,n){return t&&Rle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ble(e,t,n){return t=qd(t),Fle(e,D$()?Reflect.construct(t,n||[],qd(e).constructor):t.apply(e,n))}function Fle(e,t){if(t&&(Ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vle(e)}function Vle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D$=function(){return!!e})()}function qd(e){return qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qd(e)}function Ule(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d0(e,t)}function d0(e,t){return d0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},d0(e,t)}function R$(e,t,n){return t=z$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z$(e){var t=Wle(e,"string");return Ts(t)=="symbol"?t:t+""}function Wle(e,t){if(Ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p0.apply(this,arguments)}function Hle(e){var t=e.xAxisId,n=o1(),r=a1(),i=b$(t);return i==null?null:j.createElement(Ys,p0({},i,{className:Le("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return Jr(s,!0)}}))}var As=function(e){function t(){return Dle(this,t),Ble(this,t,arguments)}return Ule(t,e),zle(t,[{key:"render",value:function(){return j.createElement(Hle,this.props)}}])}(j.Component);R$(As,"displayName","XAxis");R$(As,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Es(e){"@babel/helpers - typeof";return Es=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},Es(e)}function Zle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V$(r.key),r)}}function Kle(e,t,n){return t&&Gle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qle(e,t,n){return t=Xd(t),Xle(e,B$()?Reflect.construct(t,n||[],Xd(e).constructor):t.apply(e,n))}function Xle(e,t){if(t&&(Es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yle(e)}function Yle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B$=function(){return!!e})()}function Xd(e){return Xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xd(e)}function Qle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m0(e,t)}function m0(e,t){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},m0(e,t)}function F$(e,t,n){return t=V$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V$(e){var t=Jle(e,"string");return Es(t)=="symbol"?t:t+""}function Jle(e,t){if(Es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}var eue=function(t){var n=t.yAxisId,r=o1(),i=a1(),o=w$(n);return o==null?null:j.createElement(Ys,v0({},o,{className:Le("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return Jr(l,!0)}}))},ks=function(e){function t(){return Zle(this,t),qle(this,t,arguments)}return Qle(t,e),Kle(t,[{key:"render",value:function(){return j.createElement(eue,this.props)}}])}(j.Component);F$(ks,"displayName","YAxis");F$(ks,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function sA(e){return iue(e)||rue(e)||nue(e)||tue()}function tue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
371
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nue(e,t){if(e){if(typeof e=="string")return g0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g0(e,t)}}function rue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iue(e){if(Array.isArray(e))return g0(e)}function g0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y0=function(t,n,r,i,o){var s=mr(t,l1),l=mr(t,Bo),u=[].concat(sA(s),sA(l)),f=mr(t,im),h="".concat(i,"Id"),d=i[0],m=n;if(u.length&&(m=u.reduce(function(x,S){if(S.props[h]===r&&Lr(S.props,"extendDomain")&&ie(S.props[d])){var y=S.props[d];return[Math.min(x[0],y),Math.max(x[1],y)]}return x},m)),f.length){var v="".concat(d,"1"),_="".concat(d,"2");m=f.reduce(function(x,S){if(S.props[h]===r&&Lr(S.props,"extendDomain")&&ie(S.props[v])&&ie(S.props[_])){var y=S.props[v],b=S.props[_];return[Math.min(x[0],y,b),Math.max(x[1],y,b)]}return x},m)}return o&&o.length&&(m=o.reduce(function(x,S){return ie(S)?[Math.min(x[0],S),Math.max(x[1],S)]:x},m)),m},U$={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,f,h){this.fn=u,this.context=f,this.once=h||!1}function o(u,f,h,d,m){if(typeof h!="function")throw new TypeError("The listener must be a function");var v=new i(h,d||u,m),_=n?n+f:f;return u._events[_]?u._events[_].fn?u._events[_]=[u._events[_],v]:u._events[_].push(v):(u._events[_]=v,u._eventsCount++),u}function s(u,f){--u._eventsCount===0?u._events=new r:delete u._events[f]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var f=[],h,d;if(this._eventsCount===0)return f;for(d in h=this._events)t.call(h,d)&&f.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(h)):f},l.prototype.listeners=function(f){var h=n?n+f:f,d=this._events[h];if(!d)return[];if(d.fn)return[d.fn];for(var m=0,v=d.length,_=new Array(v);m<v;m++)_[m]=d[m].fn;return _},l.prototype.listenerCount=function(f){var h=n?n+f:f,d=this._events[h];return d?d.fn?1:d.length:0},l.prototype.emit=function(f,h,d,m,v,_){var x=n?n+f:f;if(!this._events[x])return!1;var S=this._events[x],y=arguments.length,b,w;if(S.fn){switch(S.once&&this.removeListener(f,S.fn,void 0,!0),y){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,h),!0;case 3:return S.fn.call(S.context,h,d),!0;case 4:return S.fn.call(S.context,h,d,m),!0;case 5:return S.fn.call(S.context,h,d,m,v),!0;case 6:return S.fn.call(S.context,h,d,m,v,_),!0}for(w=1,b=new Array(y-1);w<y;w++)b[w-1]=arguments[w];S.fn.apply(S.context,b)}else{var E=S.length,P;for(w=0;w<E;w++)switch(S[w].once&&this.removeListener(f,S[w].fn,void 0,!0),y){case 1:S[w].fn.call(S[w].context);break;case 2:S[w].fn.call(S[w].context,h);break;case 3:S[w].fn.call(S[w].context,h,d);break;case 4:S[w].fn.call(S[w].context,h,d,m);break;default:if(!b)for(P=1,b=new Array(y-1);P<y;P++)b[P-1]=arguments[P];S[w].fn.apply(S[w].context,b)}}return!0},l.prototype.on=function(f,h,d){return o(this,f,h,d,!1)},l.prototype.once=function(f,h,d){return o(this,f,h,d,!0)},l.prototype.removeListener=function(f,h,d,m){var v=n?n+f:f;if(!this._events[v])return this;if(!h)return s(this,v),this;var _=this._events[v];if(_.fn)_.fn===h&&(!m||_.once)&&(!d||_.context===d)&&s(this,v);else{for(var x=0,S=[],y=_.length;x<y;x++)(_[x].fn!==h||m&&!_[x].once||d&&_[x].context!==d)&&S.push(_[x]);S.length?this._events[v]=S.length===1?S[0]:S:s(this,v)}return this},l.prototype.removeAllListeners=function(f){var h;return f?(h=n?n+f:f,this._events[h]&&s(this,h)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(U$);var oue=U$.exports;const aue=Ue(oue);var Nv=new aue,Iv="recharts.syncMouseEvents";function _c(e){"@babel/helpers - typeof";return _c=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},_c(e)}function sue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W$(r.key),r)}}function uue(e,t,n){return t&&lue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dv(e,t,n){return t=W$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W$(e){var t=cue(e,"string");return _c(t)=="symbol"?t:t+""}function cue(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fue=function(){function e(){sue(this,e),Dv(this,"activeIndex",0),Dv(this,"coordinateList",[]),Dv(this,"layout","horizontal")}return uue(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,s=n.container,l=s===void 0?null:s,u=n.layout,f=u===void 0?null:u,h=n.offset,d=h===void 0?null:h,m=n.mouseHandlerCallback,v=m===void 0?null:m;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=f??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=v??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,s=i.y,l=i.height,u=this.coordinateList[this.activeIndex].coordinate,f=((n=window)===null||n===void 0?void 0:n.scrollX)||0,h=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=o+u+f,m=s+this.offset.top+l/2+h;this.mouseHandlerCallback({pageX:d,pageY:m})}}}])}();function hue(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&ie(r)&&ie(i))return!0}return!1}function due(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function H$(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,s=Ft(t,n,r,i),l=Ft(t,n,r,o);return{points:[s,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function pue(e,t,n){var r,i,o,s;if(e==="horizontal")r=t.x,o=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,u=t.cy,f=t.innerRadius,h=t.outerRadius,d=t.angle,m=Ft(l,u,f,d),v=Ft(l,u,h,d);r=m.x,i=m.y,o=v.x,s=v.y}else return H$(t);return[{x:r,y:i},{x:o,y:s}]}function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}function lA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lA(Object(n),!0).forEach(function(r){mue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mue(e,t,n){return t=vue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vue(e){var t=gue(e,"string");return bc(t)=="symbol"?t:t+""}function gue(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yue(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,s=e.activeCoordinate,l=e.activePayload,u=e.offset,f=e.activeTooltipIndex,h=e.tooltipAxisBandSize,d=e.layout,m=e.chartName,v=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!v||!o||!s||m!=="ScatterChart"&&i!=="axis")return null;var _,x=vu;if(m==="ScatterChart")_=s,x=wie;else if(m==="BarChart")_=due(d,s,u,h),x=e1;else if(d==="radial"){var S=H$(s),y=S.cx,b=S.cy,w=S.radius,E=S.startAngle,P=S.endAngle;_={cx:y,cy:b,startAngle:E,endAngle:P,innerRadius:w,outerRadius:w},x=Zj}else _={points:pue(d,s,u)},x=vu;var A=rh(rh(rh(rh({stroke:"#ccc",pointerEvents:"none"},u),_),Ae(v,!1)),{},{payload:l,payloadIndex:f,className:Le("recharts-tooltip-cursor",v.className)});return j.isValidElement(v)?j.cloneElement(v,A):j.createElement(x,A)}var xue=["item"],_ue=["children","className","width","height","style","compact","title","desc"];function Cs(e){"@babel/helpers - typeof";return Cs=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},Cs(e)}function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ba.apply(this,arguments)}function uA(e,t){return Sue(e)||wue(e,t)||G$(e,t)||bue()}function bue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
372
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Sue(e){if(Array.isArray(e))return e}function cA(e,t){if(e==null)return{};var n=Pue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Oue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K$(r.key),r)}}function Aue(e,t,n){return t&&Tue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eue(e,t,n){return t=Yd(t),kue(e,Z$()?Reflect.construct(t,n||[],Yd(e).constructor):t.apply(e,n))}function kue(e,t){if(t&&(Cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cue(e)}function Cue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z$=function(){return!!e})()}function Yd(e){return Yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yd(e)}function Mue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x0(e,t)}function x0(e,t){return x0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},x0(e,t)}function Ms(e){return Lue(e)||$ue(e)||G$(e)||jue()}function jue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
373
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G$(e,t){if(e){if(typeof e=="string")return _0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _0(e,t)}}function $ue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lue(e){if(Array.isArray(e))return _0(e)}function _0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(r){ge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ge(e,t,n){return t=K$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K$(e){var t=Nue(e,"string");return Cs(t)=="symbol"?t:t+""}function Nue(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iue={xAxis:["bottom","top"],yAxis:["left","right"]},Due={width:"100%",height:"100%"},q$={x:0,y:0};function ih(e){return e}var Rue=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},zue=function(t,n,r,i){var o=n.find(function(h){return h&&h.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var s=o.coordinate,l=i.radius;return Y(Y(Y({},i),Ft(i.cx,i.cy,l,s)),{},{angle:s,radius:l})}var u=o.coordinate,f=i.angle;return Y(Y(Y({},i),Ft(i.cx,i.cy,u,f)),{},{angle:f,radius:u})}return q$},om=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,s=(r??[]).reduce(function(l,u){var f=u.props.data;return f&&f.length?[].concat(Ms(l),Ms(f)):l},[]);return s.length>0?s:t&&t.length&&ie(i)&&ie(o)?t.slice(i,o+1):[]};function X$(e){return e==="number"?[0,"auto"]:void 0}var b0=function(t,n,r,i){var o=t.graphicalItems,s=t.tooltipAxis,l=om(n,t);return r<0||!o||!o.length||r>=l.length?null:o.reduce(function(u,f){var h,d=(h=f.props.data)!==null&&h!==void 0?h:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(s.dataKey&&!s.allowDuplicatedCategory){var v=d===void 0?l:d;m=Yh(v,s.dataKey,i)}else m=d&&d[r]||l[r];return m?[].concat(Ms(u),[Uj(f,m)]):u},[])},hA=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},s=Rue(o,r),l=t.orderedTooltipTicks,u=t.tooltipAxis,f=t.tooltipTicks,h=ete(s,l,f,u);if(h>=0&&f){var d=f[h]&&f[h].value,m=b0(t,n,h,d),v=zue(r,l,h,o);return{activeTooltipIndex:h,activeLabel:d,activePayload:m,activeCoordinate:v}}return null},Bue=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,s=n.axisIdKey,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,h=t.layout,d=t.children,m=t.stackOffset,v=Bj(h,o);return r.reduce(function(_,x){var S,y=x.type.defaultProps!==void 0?Y(Y({},x.type.defaultProps),x.props):x.props,b=y.type,w=y.dataKey,E=y.allowDataOverflow,P=y.allowDuplicatedCategory,A=y.scale,C=y.ticks,M=y.includeHidden,$=y[s];if(_[$])return _;var z=om(t.data,{graphicalItems:i.filter(function(J){var ae,he=s in J.props?J.props[s]:(ae=J.type.defaultProps)===null||ae===void 0?void 0:ae[s];return he===$}),dataStartIndex:u,dataEndIndex:f}),B=z.length,R,Q,H;hue(y.domain,E,b)&&(R=zy(y.domain,null,E),v&&(b==="number"||A!=="auto")&&(H=mu(z,w,"category")));var K=X$(b);if(!R||R.length===0){var q,X=(q=y.domain)!==null&&q!==void 0?q:K;if(w){if(R=mu(z,w,b),b==="category"&&v){var D=F6(R);P&&D?(Q=R,R=Rd(0,B)):P||(R=KO(X,R,x).reduce(function(J,ae){return J.indexOf(ae)>=0?J:[].concat(Ms(J),[ae])},[]))}else if(b==="category")P?R=R.filter(function(J){return J!==""&&!ke(J)}):R=KO(X,R,x).reduce(function(J,ae){return J.indexOf(ae)>=0||ae===""||ke(ae)?J:[].concat(Ms(J),[ae])},[]);else if(b==="number"){var G=ote(z,i.filter(function(J){var ae,he,de=s in J.props?J.props[s]:(ae=J.type.defaultProps)===null||ae===void 0?void 0:ae[s],fe="hide"in J.props?J.props.hide:(he=J.type.defaultProps)===null||he===void 0?void 0:he.hide;return de===$&&(M||!fe)}),w,o,h);G&&(R=G)}v&&(b==="number"||A!=="auto")&&(H=mu(z,w,"category"))}else v?R=Rd(0,B):l&&l[$]&&l[$].hasStack&&b==="number"?R=m==="expand"?[0,1]:Vj(l[$].stackGroups,u,f):R=zj(z,i.filter(function(J){var ae=s in J.props?J.props[s]:J.type.defaultProps[s],he="hide"in J.props?J.props.hide:J.type.defaultProps.hide;return ae===$&&(M||!he)}),b,h,!0);if(b==="number")R=y0(d,R,$,o,C),X&&(R=zy(X,R,E));else if(b==="category"&&X){var V=X,te=R.every(function(J){return V.indexOf(J)>=0});te&&(R=V)}}return Y(Y({},_),{},ge({},$,Y(Y({},y),{},{axisType:o,domain:R,categoricalDomain:H,duplicateDomain:Q,originalDomain:(S=y.domain)!==null&&S!==void 0?S:K,isCategorical:v,layout:h})))},{})},Fue=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,s=n.axisIdKey,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,h=t.layout,d=t.children,m=om(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:f}),v=m.length,_=Bj(h,o),x=-1;return r.reduce(function(S,y){var b=y.type.defaultProps!==void 0?Y(Y({},y.type.defaultProps),y.props):y.props,w=b[s],E=X$("number");if(!S[w]){x++;var P;return _?P=Rd(0,v):l&&l[w]&&l[w].hasStack?(P=Vj(l[w].stackGroups,u,f),P=y0(d,P,w,o)):(P=zy(E,zj(m,r.filter(function(A){var C,M,$=s in A.props?A.props[s]:(C=A.type.defaultProps)===null||C===void 0?void 0:C[s],z="hide"in A.props?A.props.hide:(M=A.type.defaultProps)===null||M===void 0?void 0:M.hide;return $===w&&!z}),"number",h),i.defaultProps.allowDataOverflow),P=y0(d,P,w,o)),Y(Y({},S),{},ge({},w,Y(Y({axisType:o},i.defaultProps),{},{hide:!0,orientation:Gn(Iue,"".concat(o,".").concat(x%2),null),domain:P,originalDomain:E,isCategorical:_,layout:h})))}return S},{})},Vue=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,s=n.graphicalItems,l=n.stackGroups,u=n.dataStartIndex,f=n.dataEndIndex,h=t.children,d="".concat(i,"Id"),m=mr(h,o),v={};return m&&m.length?v=Bue(t,{axes:m,graphicalItems:s,axisType:i,axisIdKey:d,stackGroups:l,dataStartIndex:u,dataEndIndex:f}):s&&s.length&&(v=Fue(t,{Axis:o,graphicalItems:s,axisType:i,axisIdKey:d,stackGroups:l,dataStartIndex:u,dataEndIndex:f})),v},Uue=function(t){var n=$i(t),r=Jr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:T_(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ed(n,r)}},dA=function(t){var n=t.children,r=t.defaultShowTooltip,i=wn(n,xs),o=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},Wue=function(t){return!t||!t.length?!1:t.some(function(n){var r=ri(n&&n.type);return r&&r.indexOf("Bar")>=0})},pA=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Hue=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,s=o===void 0?{}:o,l=t.yAxisMap,u=l===void 0?{}:l,f=r.width,h=r.height,d=r.children,m=r.margin||{},v=wn(d,xs),_=wn(d,qa),x=Object.keys(u).reduce(function(P,A){var C=u[A],M=C.orientation;return!C.mirror&&!C.hide?Y(Y({},P),{},ge({},M,P[M]+C.width)):P},{left:m.left||0,right:m.right||0}),S=Object.keys(s).reduce(function(P,A){var C=s[A],M=C.orientation;return!C.mirror&&!C.hide?Y(Y({},P),{},ge({},M,Gn(P,"".concat(M))+C.height)):P},{top:m.top||0,bottom:m.bottom||0}),y=Y(Y({},S),x),b=y.bottom;v&&(y.bottom+=v.props.height||xs.defaultProps.height),_&&n&&(y=rte(y,i,r,n));var w=f-y.left-y.right,E=h-y.top-y.bottom;return Y(Y({brushBottom:b},y),{},{width:Math.max(w,0),height:Math.max(E,0)})},Zue=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Y$=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,f=t.legendContent,h=t.formatAxisMap,d=t.defaultProps,m=function(y,b){var w=b.graphicalItems,E=b.stackGroups,P=b.offset,A=b.updateId,C=b.dataStartIndex,M=b.dataEndIndex,$=y.barSize,z=y.layout,B=y.barGap,R=y.barCategoryGap,Q=y.maxBarSize,H=pA(z),K=H.numericAxisName,q=H.cateAxisName,X=Wue(w),D=[];return w.forEach(function(G,V){var te=om(y.data,{graphicalItems:[G],dataStartIndex:C,dataEndIndex:M}),J=G.type.defaultProps!==void 0?Y(Y({},G.type.defaultProps),G.props):G.props,ae=J.dataKey,he=J.maxBarSize,de=J["".concat(K,"Id")],fe=J["".concat(q,"Id")],Fe={},Re=u.reduce(function(ut,Nt){var gn=b["".concat(Nt.axisType,"Map")],Jn=J["".concat(Nt.axisType,"Id")];gn&&gn[Jn]||Nt.axisType==="zAxis"||qo();var yr=gn[Jn];return Y(Y({},ut),{},ge(ge({},Nt.axisType,yr),"".concat(Nt.axisType,"Ticks"),Jr(yr)))},Fe),oe=Re[q],ve=Re["".concat(q,"Ticks")],U=E&&E[de]&&E[de].hasStack&>e(G,E[de].stackGroups),Z=ri(G.type).indexOf("Bar")>=0,me=Ed(oe,ve),ce=[],Te=X&&tte({barSize:$,stackGroups:E,totalSize:Zue(Re,q)});if(Z){var _e,Ce,nt=ke(he)?Q:he,At=(_e=(Ce=Ed(oe,ve,!0))!==null&&Ce!==void 0?Ce:nt)!==null&&_e!==void 0?_e:0;ce=nte({barGap:B,barCategoryGap:R,bandSize:At!==me?At:me,sizeList:Te[fe],maxBarSize:nt}),At!==me&&(ce=ce.map(function(ut){return Y(Y({},ut),{},{position:Y(Y({},ut.position),{},{offset:ut.position.offset-At/2})})}))}var Wt=G&&G.type&&G.type.getComposedData;Wt&&D.push({props:Y(Y({},Wt(Y(Y({},Re),{},{displayedData:te,props:y,dataKey:ae,item:G,bandSize:me,barPosition:ce,offset:P,stackedData:U,layout:z,dataStartIndex:C,dataEndIndex:M}))),{},ge(ge(ge({key:G.key||"item-".concat(V)},K,Re[K]),q,Re[q]),"animationId",A)),childIndex:eV(G,y.children),item:G})}),D},v=function(y,b){var w=y.props,E=y.dataStartIndex,P=y.dataEndIndex,A=y.updateId;if(!BS({props:w}))return null;var C=w.children,M=w.layout,$=w.stackOffset,z=w.data,B=w.reverseStackOrder,R=pA(M),Q=R.numericAxisName,H=R.cateAxisName,K=mr(C,r),q=pte(z,K,"".concat(Q,"Id"),"".concat(H,"Id"),$,B),X=u.reduce(function(J,ae){var he="".concat(ae.axisType,"Map");return Y(Y({},J),{},ge({},he,Vue(w,Y(Y({},ae),{},{graphicalItems:K,stackGroups:ae.axisType===Q&&q,dataStartIndex:E,dataEndIndex:P}))))},{}),D=Hue(Y(Y({},X),{},{props:w,graphicalItems:K}),b==null?void 0:b.legendBBox);Object.keys(X).forEach(function(J){X[J]=h(w,X[J],D,J.replace("Map",""),n)});var G=X["".concat(H,"Map")],V=Uue(G),te=m(w,Y(Y({},X),{},{dataStartIndex:E,dataEndIndex:P,updateId:A,graphicalItems:K,stackGroups:q,offset:D}));return Y(Y({formattedGraphicalItems:te,graphicalItems:K,offset:D,stackGroups:q},V),X)},_=function(S){function y(b){var w,E,P;return Oue(this,y),P=Eue(this,y,[b]),ge(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ge(P,"accessibilityManager",new fue),ge(P,"handleLegendBBoxUpdate",function(A){if(A){var C=P.state,M=C.dataStartIndex,$=C.dataEndIndex,z=C.updateId;P.setState(Y({legendBBox:A},v({props:P.props,dataStartIndex:M,dataEndIndex:$,updateId:z},Y(Y({},P.state),{},{legendBBox:A}))))}}),ge(P,"handleReceiveSyncEvent",function(A,C,M){if(P.props.syncId===A){if(M===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(C)}}),ge(P,"handleBrushChange",function(A){var C=A.startIndex,M=A.endIndex;if(C!==P.state.dataStartIndex||M!==P.state.dataEndIndex){var $=P.state.updateId;P.setState(function(){return Y({dataStartIndex:C,dataEndIndex:M},v({props:P.props,dataStartIndex:C,dataEndIndex:M,updateId:$},P.state))}),P.triggerSyncEvent({dataStartIndex:C,dataEndIndex:M})}}),ge(P,"handleMouseEnter",function(A){var C=P.getMouseInfo(A);if(C){var M=Y(Y({},C),{},{isTooltipActive:!0});P.setState(M),P.triggerSyncEvent(M);var $=P.props.onMouseEnter;Se($)&&$(M,A)}}),ge(P,"triggeredAfterMouseMove",function(A){var C=P.getMouseInfo(A),M=C?Y(Y({},C),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(M),P.triggerSyncEvent(M);var $=P.props.onMouseMove;Se($)&&$(M,A)}),ge(P,"handleItemMouseEnter",function(A){P.setState(function(){return{isTooltipActive:!0,activeItem:A,activePayload:A.tooltipPayload,activeCoordinate:A.tooltipPosition||{x:A.cx,y:A.cy}}})}),ge(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),ge(P,"handleMouseMove",function(A){A.persist(),P.throttleTriggeredAfterMouseMove(A)}),ge(P,"handleMouseLeave",function(A){P.throttleTriggeredAfterMouseMove.cancel();var C={isTooltipActive:!1};P.setState(C),P.triggerSyncEvent(C);var M=P.props.onMouseLeave;Se(M)&&M(C,A)}),ge(P,"handleOuterEvent",function(A){var C=J6(A),M=Gn(P.props,"".concat(C));if(C&&Se(M)){var $,z;/.*touch.*/i.test(C)?z=P.getMouseInfo(A.changedTouches[0]):z=P.getMouseInfo(A),M(($=z)!==null&&$!==void 0?$:{},A)}}),ge(P,"handleClick",function(A){var C=P.getMouseInfo(A);if(C){var M=Y(Y({},C),{},{isTooltipActive:!0});P.setState(M),P.triggerSyncEvent(M);var $=P.props.onClick;Se($)&&$(M,A)}}),ge(P,"handleMouseDown",function(A){var C=P.props.onMouseDown;if(Se(C)){var M=P.getMouseInfo(A);C(M,A)}}),ge(P,"handleMouseUp",function(A){var C=P.props.onMouseUp;if(Se(C)){var M=P.getMouseInfo(A);C(M,A)}}),ge(P,"handleTouchMove",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(A.changedTouches[0])}),ge(P,"handleTouchStart",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.handleMouseDown(A.changedTouches[0])}),ge(P,"handleTouchEnd",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.handleMouseUp(A.changedTouches[0])}),ge(P,"handleDoubleClick",function(A){var C=P.props.onDoubleClick;if(Se(C)){var M=P.getMouseInfo(A);C(M,A)}}),ge(P,"handleContextMenu",function(A){var C=P.props.onContextMenu;if(Se(C)){var M=P.getMouseInfo(A);C(M,A)}}),ge(P,"triggerSyncEvent",function(A){P.props.syncId!==void 0&&Nv.emit(Iv,P.props.syncId,A,P.eventEmitterSymbol)}),ge(P,"applySyncEvent",function(A){var C=P.props,M=C.layout,$=C.syncMethod,z=P.state.updateId,B=A.dataStartIndex,R=A.dataEndIndex;if(A.dataStartIndex!==void 0||A.dataEndIndex!==void 0)P.setState(Y({dataStartIndex:B,dataEndIndex:R},v({props:P.props,dataStartIndex:B,dataEndIndex:R,updateId:z},P.state)));else if(A.activeTooltipIndex!==void 0){var Q=A.chartX,H=A.chartY,K=A.activeTooltipIndex,q=P.state,X=q.offset,D=q.tooltipTicks;if(!X)return;if(typeof $=="function")K=$(D,A);else if($==="value"){K=-1;for(var G=0;G<D.length;G++)if(D[G].value===A.activeLabel){K=G;break}}var V=Y(Y({},X),{},{x:X.left,y:X.top}),te=Math.min(Q,V.x+V.width),J=Math.min(H,V.y+V.height),ae=D[K]&&D[K].value,he=b0(P.state,P.props.data,K),de=D[K]?{x:M==="horizontal"?D[K].coordinate:te,y:M==="horizontal"?J:D[K].coordinate}:q$;P.setState(Y(Y({},A),{},{activeLabel:ae,activeCoordinate:de,activePayload:he,activeTooltipIndex:K}))}else P.setState(A)}),ge(P,"renderCursor",function(A){var C,M=P.state,$=M.isTooltipActive,z=M.activeCoordinate,B=M.activePayload,R=M.offset,Q=M.activeTooltipIndex,H=M.tooltipAxisBandSize,K=P.getTooltipEventType(),q=(C=A.props.active)!==null&&C!==void 0?C:$,X=P.props.layout,D=A.key||"_recharts-cursor";return I.createElement(yue,{key:D,activeCoordinate:z,activePayload:B,activeTooltipIndex:Q,chartName:n,element:A,isActive:q,layout:X,offset:R,tooltipAxisBandSize:H,tooltipEventType:K})}),ge(P,"renderPolarAxis",function(A,C,M){var $=Gn(A,"type.axisType"),z=Gn(P.state,"".concat($,"Map")),B=A.type.defaultProps,R=B!==void 0?Y(Y({},B),A.props):A.props,Q=z&&z[R["".concat($,"Id")]];return j.cloneElement(A,Y(Y({},Q),{},{className:Le($,Q.className),key:A.key||"".concat(C,"-").concat(M),ticks:Jr(Q,!0)}))}),ge(P,"renderPolarGrid",function(A){var C=A.props,M=C.radialLines,$=C.polarAngles,z=C.polarRadius,B=P.state,R=B.radiusAxisMap,Q=B.angleAxisMap,H=$i(R),K=$i(Q),q=K.cx,X=K.cy,D=K.innerRadius,G=K.outerRadius;return j.cloneElement(A,{polarAngles:Array.isArray($)?$:Jr(K,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(z)?z:Jr(H,!0).map(function(V){return V.coordinate}),cx:q,cy:X,innerRadius:D,outerRadius:G,key:A.key||"polar-grid",radialLines:M})}),ge(P,"renderLegend",function(){var A=P.state.formattedGraphicalItems,C=P.props,M=C.children,$=C.width,z=C.height,B=P.props.margin||{},R=$-(B.left||0)-(B.right||0),Q=Dj({children:M,formattedGraphicalItems:A,legendWidth:R,legendContent:f});if(!Q)return null;var H=Q.item,K=cA(Q,xue);return j.cloneElement(H,Y(Y({},K),{},{chartWidth:$,chartHeight:z,margin:B,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),ge(P,"renderTooltip",function(){var A,C=P.props,M=C.children,$=C.accessibilityLayer,z=wn(M,Zr);if(!z)return null;var B=P.state,R=B.isTooltipActive,Q=B.activeCoordinate,H=B.activePayload,K=B.activeLabel,q=B.offset,X=(A=z.props.active)!==null&&A!==void 0?A:R;return j.cloneElement(z,{viewBox:Y(Y({},q),{},{x:q.left,y:q.top}),active:X,label:K,payload:X?H:[],coordinate:Q,accessibilityLayer:$})}),ge(P,"renderBrush",function(A){var C=P.props,M=C.margin,$=C.data,z=P.state,B=z.offset,R=z.dataStartIndex,Q=z.dataEndIndex,H=z.updateId;return j.cloneElement(A,{key:A.key||"_recharts-brush",onChange:Jf(P.handleBrushChange,A.props.onChange),data:$,x:ie(A.props.x)?A.props.x:B.left,y:ie(A.props.y)?A.props.y:B.top+B.height+B.brushBottom-(M.bottom||0),width:ie(A.props.width)?A.props.width:B.width,startIndex:R,endIndex:Q,updateId:"brush-".concat(H)})}),ge(P,"renderReferenceElement",function(A,C,M){if(!A)return null;var $=P,z=$.clipPathId,B=P.state,R=B.xAxisMap,Q=B.yAxisMap,H=B.offset,K=A.type.defaultProps||{},q=A.props,X=q.xAxisId,D=X===void 0?K.xAxisId:X,G=q.yAxisId,V=G===void 0?K.yAxisId:G;return j.cloneElement(A,{key:A.key||"".concat(C,"-").concat(M),xAxis:R[D],yAxis:Q[V],viewBox:{x:H.left,y:H.top,width:H.width,height:H.height},clipPathId:z})}),ge(P,"renderActivePoints",function(A){var C=A.item,M=A.activePoint,$=A.basePoint,z=A.childIndex,B=A.isRange,R=[],Q=C.props.key,H=C.item.type.defaultProps!==void 0?Y(Y({},C.item.type.defaultProps),C.item.props):C.item.props,K=H.activeDot,q=H.dataKey,X=Y(Y({index:z,dataKey:q,cx:M.x,cy:M.y,r:4,fill:J_(C.item),strokeWidth:2,stroke:"#fff",payload:M.payload,value:M.value},Ae(K,!1)),Qh(K));return R.push(y.renderActiveDot(K,X,"".concat(Q,"-activePoint-").concat(z))),$?R.push(y.renderActiveDot(K,Y(Y({},X),{},{cx:$.x,cy:$.y}),"".concat(Q,"-basePoint-").concat(z))):B&&R.push(null),R}),ge(P,"renderGraphicChild",function(A,C,M){var $=P.filterFormatItem(A,C,M);if(!$)return null;var z=P.getTooltipEventType(),B=P.state,R=B.isTooltipActive,Q=B.tooltipAxis,H=B.activeTooltipIndex,K=B.activeLabel,q=P.props.children,X=wn(q,Zr),D=$.props,G=D.points,V=D.isRange,te=D.baseLine,J=$.item.type.defaultProps!==void 0?Y(Y({},$.item.type.defaultProps),$.item.props):$.item.props,ae=J.activeDot,he=J.hide,de=J.activeBar,fe=J.activeShape,Fe=!!(!he&&R&&X&&(ae||de||fe)),Re={};z!=="axis"&&X&&X.props.trigger==="click"?Re={onClick:Jf(P.handleItemMouseEnter,A.props.onClick)}:z!=="axis"&&(Re={onMouseLeave:Jf(P.handleItemMouseLeave,A.props.onMouseLeave),onMouseEnter:Jf(P.handleItemMouseEnter,A.props.onMouseEnter)});var oe=j.cloneElement(A,Y(Y({},$.props),Re));function ve(Nt){return typeof Q.dataKey=="function"?Q.dataKey(Nt.payload):null}if(Fe)if(H>=0){var U,Z;if(Q.dataKey&&!Q.allowDuplicatedCategory){var me=typeof Q.dataKey=="function"?ve:"payload.".concat(Q.dataKey.toString());U=Yh(G,me,K),Z=V&&te&&Yh(te,me,K)}else U=G==null?void 0:G[H],Z=V&&te&&te[H];if(fe||de){var ce=A.props.activeIndex!==void 0?A.props.activeIndex:H;return[j.cloneElement(A,Y(Y(Y({},$.props),Re),{},{activeIndex:ce})),null,null]}if(!ke(U))return[oe].concat(Ms(P.renderActivePoints({item:$,activePoint:U,basePoint:Z,childIndex:H,isRange:V})))}else{var Te,_e=(Te=P.getItemByXY(P.state.activeCoordinate))!==null&&Te!==void 0?Te:{graphicalItem:oe},Ce=_e.graphicalItem,nt=Ce.item,At=nt===void 0?A:nt,Wt=Ce.childIndex,ut=Y(Y(Y({},$.props),Re),{},{activeIndex:Wt});return[j.cloneElement(At,ut),null,null]}return V?[oe,null,null]:[oe,null]}),ge(P,"renderCustomized",function(A,C,M){return j.cloneElement(A,Y(Y({key:"recharts-customized-".concat(M)},P.props),P.state))}),ge(P,"renderMap",{CartesianGrid:{handler:ih,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:ih},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:ih},YAxis:{handler:ih},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((w=b.id)!==null&&w!==void 0?w:jc("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=RM(P.triggeredAfterMouseMove,(E=b.throttleDelay)!==null&&E!==void 0?E:1e3/60),P.state={},P}return Mue(y,S),Aue(y,[{key:"componentDidMount",value:function(){var w,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,E=w.children,P=w.data,A=w.height,C=w.layout,M=wn(E,Zr);if(M){var $=M.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var z=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,B=b0(this.state,P,$,z),R=this.state.tooltipTicks[$].coordinate,Q=(this.state.offset.top+A)/2,H=C==="horizontal",K=H?{x:R,y:Q}:{y:R,x:Q},q=this.state.formattedGraphicalItems.find(function(D){var G=D.item;return G.type.name==="Scatter"});q&&(K=Y(Y({},K),q.props.points[$].tooltipPosition),B=q.props.points[$].tooltipPayload);var X={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:z,activePayload:B,activeCoordinate:K};this.setState(X),this.renderCursor(M),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var P,A;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0}})}return null}},{key:"componentDidUpdate",value:function(w){ey([wn(w.children,Zr)],[wn(this.props.children,Zr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=wn(this.props.children,Zr);if(w&&typeof w.props.shared=="boolean"){var E=w.props.shared?"axis":"item";return l.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var E=this.container,P=E.getBoundingClientRect(),A=TX(P),C={chartX:Math.round(w.pageX-A.left),chartY:Math.round(w.pageY-A.top)},M=P.width/E.offsetWidth||1,$=this.inRange(C.chartX,C.chartY,M);if(!$)return null;var z=this.state,B=z.xAxisMap,R=z.yAxisMap,Q=this.getTooltipEventType(),H=hA(this.state,this.props.data,this.props.layout,$);if(Q!=="axis"&&B&&R){var K=$i(B).scale,q=$i(R).scale,X=K&&K.invert?K.invert(C.chartX):null,D=q&&q.invert?q.invert(C.chartY):null;return Y(Y({},C),{},{xValue:X,yValue:D},H)}return H?Y(Y({},C),H):null}},{key:"inRange",value:function(w,E){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=this.props.layout,C=w/P,M=E/P;if(A==="horizontal"||A==="vertical"){var $=this.state.offset,z=C>=$.left&&C<=$.left+$.width&&M>=$.top&&M<=$.top+$.height;return z?{x:C,y:M}:null}var B=this.state,R=B.angleAxisMap,Q=B.radiusAxisMap;if(R&&Q){var H=$i(R);return YO({x:C,y:M},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,E=this.getTooltipEventType(),P=wn(w,Zr),A={};P&&E==="axis"&&(P.props.trigger==="click"?A={onClick:this.handleClick}:A={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var C=Qh(this.props,this.handleOuterEvent);return Y(Y({},C),A)}},{key:"addListener",value:function(){Nv.on(Iv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Nv.removeListener(Iv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,E,P){for(var A=this.state.formattedGraphicalItems,C=0,M=A.length;C<M;C++){var $=A[C];if($.item===w||$.props.key===w.key||E===ri($.item.type)&&P===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,E=this.state.offset,P=E.left,A=E.top,C=E.height,M=E.width;return I.createElement("defs",null,I.createElement("clipPath",{id:w},I.createElement("rect",{x:P,y:A,height:C,width:M})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(E,P){var A=uA(P,2),C=A[0],M=A[1];return Y(Y({},E),{},ge({},C,M.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(E,P){var A=uA(P,2),C=A[0],M=A[1];return Y(Y({},E),{},ge({},C,M.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(w){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(w){var E=this.state,P=E.formattedGraphicalItems,A=E.activeItem;if(P&&P.length)for(var C=0,M=P.length;C<M;C++){var $=P[C],z=$.props,B=$.item,R=B.type.defaultProps!==void 0?Y(Y({},B.type.defaultProps),B.props):B.props,Q=ri(B.type);if(Q==="Bar"){var H=(z.data||[]).find(function(D){return hie(w,D)});if(H)return{graphicalItem:$,payload:H}}else if(Q==="RadialBar"){var K=(z.data||[]).find(function(D){return YO(w,D)});if(K)return{graphicalItem:$,payload:K}}else if(Jp($,A)||em($,A)||mc($,A)){var q=moe({graphicalItem:$,activeTooltipItem:A,itemData:R.data}),X=R.activeIndex===void 0?q:R.activeIndex;return{graphicalItem:Y(Y({},$),{},{childIndex:X}),payload:mc($,A)?R.data[q]:$.props.data[q]}}}return null}},{key:"render",value:function(){var w=this;if(!BS(this))return null;var E=this.props,P=E.children,A=E.className,C=E.width,M=E.height,$=E.style,z=E.compact,B=E.title,R=E.desc,Q=cA(E,_ue),H=Ae(Q,!1);if(z)return I.createElement(ZT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement(ny,Ba({},H,{width:C,height:M,title:B,desc:R}),this.renderClipPath(),VS(P,this.renderMap)));if(this.props.accessibilityLayer){var K,q;H.tabIndex=(K=this.props.tabIndex)!==null&&K!==void 0?K:0,H.role=(q=this.props.role)!==null&&q!==void 0?q:"application",H.onKeyDown=function(D){w.accessibilityManager.keyboardEvent(D)},H.onFocus=function(){w.accessibilityManager.focus()}}var X=this.parseEventsOfWrapper();return I.createElement(ZT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement("div",Ba({className:Le("recharts-wrapper",A),style:Y({position:"relative",cursor:"default",width:C,height:M},$)},X,{ref:function(G){w.container=G}}),I.createElement(ny,Ba({},H,{width:C,height:M,title:B,desc:R,style:Due}),this.renderClipPath(),VS(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ge(_,"displayName",n),ge(_,"defaultProps",Y({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ge(_,"getDerivedStateFromProps",function(S,y){var b=S.dataKey,w=S.data,E=S.children,P=S.width,A=S.height,C=S.layout,M=S.stackOffset,$=S.margin,z=y.dataStartIndex,B=y.dataEndIndex;if(y.updateId===void 0){var R=dA(S);return Y(Y(Y({},R),{},{updateId:0},v(Y(Y({props:S},R),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:w,prevWidth:P,prevHeight:A,prevLayout:C,prevStackOffset:M,prevMargin:$,prevChildren:E})}if(b!==y.prevDataKey||w!==y.prevData||P!==y.prevWidth||A!==y.prevHeight||C!==y.prevLayout||M!==y.prevStackOffset||!Ka($,y.prevMargin)){var Q=dA(S),H={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},K=Y(Y({},hA(y,w,C)),{},{updateId:y.updateId+1}),q=Y(Y(Y({},Q),H),K);return Y(Y(Y({},q),v(Y({props:S},q),y)),{},{prevDataKey:b,prevData:w,prevWidth:P,prevHeight:A,prevLayout:C,prevStackOffset:M,prevMargin:$,prevChildren:E})}if(!ey(E,y.prevChildren)){var X,D,G,V,te=wn(E,xs),J=te&&(X=(D=te.props)===null||D===void 0?void 0:D.startIndex)!==null&&X!==void 0?X:z,ae=te&&(G=(V=te.props)===null||V===void 0?void 0:V.endIndex)!==null&&G!==void 0?G:B,he=J!==z||ae!==B,de=!ke(w),fe=de&&!he?y.updateId:y.updateId+1;return Y(Y({updateId:fe},v(Y(Y({props:S},y),{},{updateId:fe,dataStartIndex:J,dataEndIndex:ae}),y)),{},{prevChildren:E,dataStartIndex:J,dataEndIndex:ae})}return null}),ge(_,"renderActiveDot",function(S,y,b){var w;return j.isValidElement(S)?w=j.cloneElement(S,y):Se(S)?w=S(y):w=I.createElement(t1,y),I.createElement(at,{className:"recharts-active-dot",key:b},w)});var x=j.forwardRef(function(y,b){return I.createElement(_,Ba({},y,{ref:b}))});return x.displayName=_.displayName,x},Gue=Y$({chartName:"BarChart",GraphicalChild:ia,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:As},{axisType:"yAxis",AxisComp:ks}],formatAxisMap:d$}),Kue=Y$({chartName:"AreaChart",GraphicalChild:ao,axisComponents:[{axisType:"xAxis",AxisComp:As},{axisType:"yAxis",AxisComp:ks}],formatAxisMap:d$});const que=({manager:e})=>{const{data:t}=e;if(!t)return T.jsx("div",{className:"p-20 text-center opacity-30 font-mono text-sm",children:"Caricamento dati energia..."});const n=t.power.soc_history_24h,r=t.power.soc,i=[...n,r],o=i.map((m,v)=>({index:v,soc:m})),s=Math.min(...i),l=Math.max(...i),u=i.lastIndexOf(s),f=i.indexOf(l),h=i.length-1,d=t.power.soc_history_7d_minmax;return T.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2",children:[T.jsxs("div",{className:"flex flex-col landscape:flex-row gap-2 w-full",children:[T.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[T.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[T.jsx(l4,{size:14})," STATO DI CARICA (24h)"]}),T.jsx("div",{className:"h-56 w-full",children:T.jsx(zP,{width:"100%",height:"100%",children:T.jsxs(Kue,{data:o,margin:{top:25,right:65,left:0,bottom:10},children:[T.jsx("defs",{children:T.jsxs("linearGradient",{id:"colorSoc",x1:"0",y1:"0",x2:"0",y2:"1",children:[T.jsx("stop",{offset:"5%",stopColor:r<40?"#ef4444":"#22c55e",stopOpacity:.4}),T.jsx("stop",{offset:"95%",stopColor:"#121212",stopOpacity:0})]})}),T.jsx(f0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),T.jsx(ks,{domain:[40,100],ticks:[40,60,80,100],tick:{fill:"#666",fontSize:11,fontWeight:"bold"},axisLine:!1,tickLine:!1,width:27}),T.jsx(As,{dataKey:"index",hide:!0}),T.jsx(ao,{type:"monotone",dataKey:"soc",stroke:r<40?"#ef4444":"#22c55e",strokeWidth:4,fill:"url(#colorSoc)",isAnimationActive:!1}),T.jsx(Bo,{x:f,y:l,r:4,fill:"#22c55e",stroke:"#121212",strokeWidth:2,label:{position:"top",value:`${l.toFixed(0)}%`,fill:"#22c55e",fontSize:10,fontWeight:"bold",dy:-10}}),T.jsx(Bo,{x:u,y:s,r:4,fill:"#ef4444",stroke:"#121212",strokeWidth:2,label:{position:"bottom",value:`${s.toFixed(0)}%`,fill:"#ef4444",fontSize:10,fontWeight:"bold",dy:10}}),T.jsx(Bo,{x:h,y:r,r:6,fill:"#fff",stroke:"#06b6d4",strokeWidth:2,label:{position:"right",value:`${r.toFixed(1)}%`,fill:"#fff",fontSize:13,fontWeight:"900",dx:12}})]})})})]}),T.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 space-y-5 shadow-2xl",children:[T.jsxs("h3",{className:"text-[10px] font-black font-mono text-orange-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[T.jsx(Xx,{size:14})," PRODUZIONE SOLARE"]}),T.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[T.jsx(Rv,{title:"OGGI",val:t.solar.today_kwh,color:"text-orange-400"}),T.jsx(Rv,{title:"PREV.",val:t.solar.forecast_kwh,color:"text-yellow-400"}),T.jsx(Rv,{title:"IERI",val:t.solar.yesterday_kwh,color:"text-gray-300"})]}),(()=>{const m=t.solar.today_prua_max_w||0,v=t.solar.today_poppa_max_w||0,_=Math.max(m,v,1);return T.jsxs("div",{className:"space-y-5 pt-2",children:[T.jsx(mA,{label:"PRUA",current:t.solar.prua_w,localMax:m,globalMax:_}),T.jsx(mA,{label:"POPPA",current:t.solar.poppa_w,localMax:v,globalMax:_})]})})()]})]}),T.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[T.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-6 flex items-center gap-2 tracking-widest uppercase",children:[T.jsx(b4,{size:14})," MIN/MAX SETTIMANALE"]}),T.jsx("div",{className:"h-64 w-full",children:T.jsx(zP,{width:"100%",height:"100%",children:T.jsxs(Gue,{data:d,margin:{top:25,right:0,left:0,bottom:40},children:[T.jsx("defs",{children:d.map((m,v)=>{const _=m.max-m.min||1,x=(35-m.min)/_*100,S=(65-m.min)/_*100;return T.jsxs("linearGradient",{id:`grad-${v}`,x1:"0",y1:"1",x2:"0",y2:"0",children:[T.jsx("stop",{offset:"0%",stopColor:m.min<35?"#ef4444":m.min<65?"#f97316":"#22c55e"}),x>0&&x<100&&T.jsx("stop",{offset:`${x}%`,stopColor:"#f97316"}),S>0&&S<100&&T.jsx("stop",{offset:`${S}%`,stopColor:"#eab308"}),T.jsx("stop",{offset:"100%",stopColor:m.max>65?"#22c55e":m.max>35?"#eab308":"#ef4444"})]},`grad-${v}`)})}),T.jsx(f0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),T.jsx(As,{dataKey:"day",axisLine:!1,tickLine:!1,tick:{fill:"#d1d5db",fontSize:11,fontWeight:"bold"}}),T.jsx(ks,{domain:[0,100],ticks:[0,50,100],hide:!0}),T.jsxs(ia,{dataKey:m=>[m.min,m.max],radius:[6,6,6,6],barSize:18,isAnimationActive:!1,children:[d.map((m,v)=>T.jsx(E_,{fill:`url(#grad-${v})`},`cell-${v}`)),T.jsx($r,{dataKey:"max",position:"top",content:m=>{const{x:v,y:_,width:x,value:S}=m;return T.jsxs("text",{x:v+x/2,y:_-8,fill:"#fff",fontSize:"10",fontWeight:"900",textAnchor:"middle",children:[S.toFixed(0),"%"]})}}),T.jsx($r,{dataKey:"min",position:"bottom",content:m=>{const{x:v,y:_,width:x,value:S,height:y}=m;return T.jsxs("text",{x:v+x/2,y:_+y+18,fill:S<40?"#ef4444":"#d1d5db",fontSize:"10",fontWeight:"bold",textAnchor:"middle",children:[S.toFixed(0),"%"]})}})]})]})})})]})]})},Rv=({title:e,val:t,color:n})=>T.jsxs("div",{className:"bg-white/5 p-3 rounded-2xl border border-white/5",children:[T.jsx("div",{className:"text-[8px] font-black text-gray-300 mb-1 tracking-tighter uppercase",children:e}),T.jsxs("div",{className:`text-xl font-black ${n}`,children:[t.toFixed(1),T.jsx("span",{className:"text-[10px] ml-0.5 opacity-50",children:"kWh"})]})]}),mA=({label:e,current:t,localMax:n,globalMax:r})=>{const i=t/r*100,o=n/r*100;return T.jsxs("div",{className:"space-y-1.5",children:[T.jsxs("div",{className:"flex justify-between text-[10px] font-black",children:[T.jsx("span",{className:"text-gray-300 font-mono tracking-tighter uppercase",children:e}),T.jsxs("span",{className:"text-orange-400 font-mono",children:[t,"W ",T.jsxs("span",{className:"text-gray-300 font-bold uppercase",children:["/ Peak ",n,"W"]})]})]}),T.jsxs("div",{className:"relative h-2.5 w-full",children:[T.jsx("div",{className:"absolute inset-0 bg-white/5 rounded-full"}),o<99&&T.jsx("div",{className:"absolute top-0 bottom-0 border-y border-r border-dashed border-white/10 rounded-r-full",style:{left:`${o}%`,right:0}}),T.jsx("div",{className:"absolute inset-y-0 left-0 bg-white/10 rounded-full",style:{width:`${o}%`}}),T.jsx("div",{className:"absolute inset-y-0 left-0 bg-orange-500 rounded-full transition-all duration-1000 shadow-[0_0_12px_rgba(249,115,22,0.4)]",style:{width:`${i}%`}})]})]})},vA=e=>{const[t,n]=j.useState(e),r=j.useRef(e);return j.useEffect(()=>{const i=r.current;let o=(e-i)%360;o>180&&(o-=360),o<-180&&(o+=360),n(s=>s+o),r.current=e},[e]),t},Ql=e=>e<10?"text-cyan-400":e<18?"text-green-400":e<25?"text-yellow-400":e<35?"text-orange-500":"text-red-500",Q$=(e,t=24)=>{if(!e)return T.jsx(bS,{size:t,className:"text-gray-400"});const n=e.precipitation||0,r=e.icon.toLowerCase();return n>=1.5?T.jsx(n4,{size:t,className:"text-purple-400"}):n>=.4?T.jsx(r4,{size:t,className:"text-cyan-400"}):n>0?T.jsx(t4,{size:t,className:"text-cyan-200"}):r.includes("sun")||r.includes("clear")?T.jsx(i4,{size:t,className:"text-yellow-400"}):r.includes("moon")?T.jsx(uC,{size:t,className:"text-blue-300"}):r.includes("cloud")?T.jsx(bS,{size:t,className:"text-gray-400"}):T.jsx(Xx,{size:t,className:"text-orange-400"})},Xue=({manager:e})=>{const{data:t}=e;if(!t)return T.jsx("div",{className:"p-20 text-center opacity-30 font-mono text-sm uppercase text-white",children:"Ricezione dati..."});const n=t.environment,r=Math.min(100,n.wind_now/Math.max(n.wind_max_30m,1)*100);return T.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2 text-white",children:[T.jsxs("div",{className:"grid grid-cols-2 landscape:grid-cols-4 gap-2",children:[T.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 landscape:px-5 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center justify-center landscape:justify-between text-center shadow-xl",children:[T.jsxs("div",{className:"flex flex-col items-center landscape:items-start",children:[T.jsx("div",{className:`text-6xl landscape:text-4xl font-black tracking-tighter ${Ql(n.wind_now)} drop-shadow-lg leading-none`,children:n.wind_now.toFixed(0)}),T.jsx("div",{className:"text-[10px] landscape:text-[8px] font-black text-gray-300 tracking-widest mt-1 uppercase font-mono",children:"Knots"})]}),T.jsx("div",{className:"w-full landscape:w-5 h-3 landscape:h-14 bg-white/10 rounded-full mt-4 landscape:mt-0 overflow-hidden border border-white/5 flex flex-col justify-end",children:T.jsx("div",{className:`bg-current ${Ql(n.wind_now)} transition-all duration-1000 shadow-[0_0_10px_currentColor]`,style:{width:window.innerHeight>window.innerWidth?`${r}%`:"100%",height:window.innerHeight>window.innerWidth?"100%":`${r}%`}})})]}),T.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 space-y-4 landscape:space-y-1 justify-center flex flex-col shadow-xl font-mono text-white",children:[T.jsx(zv,{label:"MIN 30m",val:n.wind_min_30m,color:"text-cyan-400"}),T.jsx("div",{className:"h-px bg-white/5 w-full"}),T.jsx(zv,{label:"MAX 30m",val:n.wind_max_30m,color:"text-orange-400"}),T.jsx("div",{className:"h-px bg-white/5 w-full"}),T.jsx(zv,{label:"MAX 24h",val:n.wind_max_24h,color:"text-red-500"})]}),T.jsx(gA,{title:"APPARENTE",windAngle:n.wind_dir_rel,boatAngle:0,color:Ql(n.wind_now)}),T.jsx(gA,{title:"REALE",windAngle:n.wind_dir_true,boatAngle:n.heading,color:Ql(n.wind_now),isTrue:!0})]}),T.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[T.jsx(yA,{icon:T.jsx(hC,{className:"text-yellow-500"}),title:"POZZETTO",val:n.temp_pozzetto,sub:`Umidità: ${n.hum_pozzetto.toFixed(0)}%`}),T.jsx(yA,{icon:Q$(n.hourly_forecast[0],28),title:"MODELLO",val:n.temp_forecast,sub:"OpenMeteo"})]}),T.jsxs("div",{className:"bg-white/5 p-3 rounded-[2.5rem] border border-white/10 shadow-2xl",children:[T.jsx("h3",{className:"text-[10px] font-black text-center text-gray-300 tracking-[0.2em] mb-4 uppercase font-mono opacity-50 text-white",children:"Previsione 6 Ore"}),T.jsx("div",{className:"grid grid-cols-3 gap-2",children:n.hourly_forecast.slice(0,6).map((i,o)=>T.jsx(Yue,{hour:i},o))})]})]})},gA=({title:e,windAngle:t,boatAngle:n,color:r,isTrue:i=!1})=>{const o=vA(t),s=vA(n);return T.jsxs("div",{className:"bg-white/5 py-3 px-4 landscape:py-2 landscape:px-4 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center justify-center landscape:justify-between shadow-lg overflow-hidden h-full gap-2 landscape:gap-0",children:[T.jsxs("div",{className:"relative w-28 h-28 landscape:w-16 landscape:h-16 flex items-center justify-center shrink-0",children:[T.jsx("div",{className:"absolute inset-0 border-2 border-white/10 rounded-full"}),i&&T.jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-[8px] font-black opacity-30 text-white",children:[T.jsx("span",{className:"absolute top-0 text-red-500 font-mono",children:"N"}),T.jsx("span",{className:"absolute bottom-0 text-white/50 font-mono",children:"S"})]}),T.jsx("div",{className:"absolute transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${s}deg)`},children:T.jsx(w4,{size:18,fill:"white",className:"text-white opacity-20 scale-x-75 scale-y-125"})}),T.jsx("div",{className:"absolute inset-0 transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${o}deg)`},children:T.jsx("div",{className:`absolute top-0 left-1/2 -translate-x-1/2 -mt-1 ${r}`,children:T.jsx(sC,{size:16,strokeWidth:4,fill:"currentColor"})})})]}),T.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-none",children:[T.jsx("span",{className:"text-[10px] landscape:text-[7px] font-black text-gray-300 uppercase tracking-tighter font-mono whitespace-nowrap mb-1 landscape:mb-0",children:e}),T.jsxs("span",{className:`text-2xl landscape:text-lg font-black font-mono tracking-tighter ${r} whitespace-nowrap`,children:[t.toFixed(0),"° ",i?"N":""]})]})]})},zv=({label:e,val:t,color:n})=>T.jsxs("div",{className:"flex justify-between items-baseline px-1 leading-none text-white",children:[T.jsx("span",{className:"text-[9px] landscape:text-[7px] font-black text-gray-300 uppercase font-mono",children:e}),T.jsx("span",{className:`text-lg landscape:text-sm font-black font-mono ${n}`,children:t.toFixed(1)})]}),yA=({icon:e,title:t,val:n,sub:r})=>T.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 landscape:px-4 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center landscape:justify-between shadow-lg h-full text-white group hover:bg-white/10 transition-all",children:[T.jsxs("div",{className:"flex flex-col landscape:flex-row items-center gap-1 landscape:gap-3 text-white",children:[T.jsx("div",{className:"bg-white/5 p-2 landscape:p-1.5 rounded-full flex items-center justify-center",children:I.cloneElement(e,{size:18,className:`${e.props.className} landscape:scale-90`})}),T.jsx("span",{className:"text-[9px] font-black text-gray-300 uppercase tracking-widest font-mono whitespace-nowrap",children:t})]}),T.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-tight text-white",children:[T.jsxs("span",{className:"text-3xl landscape:text-2xl font-black text-white",children:[n.toFixed(1),"°"]}),T.jsx("span",{className:"text-[10px] landscape:text-[8px] font-bold text-gray-300 uppercase font-mono whitespace-nowrap opacity-80",children:r})]})]}),Yue=({hour:e})=>T.jsxs("div",{className:"bg-white/5 p-2 rounded-[1.5rem] flex flex-col items-center gap-1.5 border border-white/5 shadow-md overflow-hidden text-white h-full justify-between",children:[T.jsx("span",{className:"text-[9px] font-black text-gray-300 font-mono tracking-tighter uppercase",children:e.time}),T.jsx("div",{className:"my-0.5",children:Q$(e,26)}),T.jsxs("span",{className:"text-lg font-black text-white leading-none",children:[e.temp,"°"]}),e.rainChance>15?T.jsx("div",{className:"flex items-center gap-1 text-cyan-400 bg-cyan-400/10 px-1.5 py-0.5 rounded-full",children:T.jsxs("span",{className:"text-[9px] font-black",children:[e.rainChance,"%"]})}):T.jsx("div",{className:"h-4"}),T.jsx("div",{className:"flex flex-col items-center w-full border-t border-white/5 pt-1.5 text-white",children:T.jsxs("div",{className:"flex items-center gap-1 justify-center w-full text-white",children:[T.jsx("span",{className:"text-lg landscape:text-base font-bold text-gray-400 font-mono leading-none",children:e.windSpeed}),T.jsx(Qz,{size:10,className:"text-gray-300 shrink-0"}),T.jsx("span",{className:`text-lg landscape:text-base font-black font-mono leading-none ${Ql(e.windGust)}`,children:e.windGust})]})})]}),Que=({manager:e})=>{var u,f;const{data:t,toggleSwitch:n,setShoreLimit:r,isUpdating:i}=e,o=[4,6,10,16],s=((u=t==null?void 0:t.switches)==null?void 0:u.multiplus_on)||!1,l=((f=t==null?void 0:t.switches)==null?void 0:f.shore_limit)||0;return T.jsxs("div",{className:"p-4 space-y-6 pb-32",children:[T.jsx("header",{className:"px-2 pt-4 flex justify-between items-center",children:T.jsxs("div",{children:[T.jsxs("h2",{className:"text-xl font-black text-white flex items-center gap-2",children:[T.jsx(v4,{className:"text-gray-300",size:20}),"CONTROLLI AVANZATI"]}),T.jsx("p",{className:"text-[10px] text-gray-300 font-bold uppercase tracking-widest mt-1",children:"Gestione Sistemi di Bordo"})]})}),T.jsxs("div",{className:"space-y-3",children:[T.jsx("h3",{className:"text-[10px] font-black text-gray-300 tracking-[0.2em] uppercase px-2",children:"Inverter / Caricabatterie"}),T.jsxs("div",{className:"bg-white/5 rounded-[2.5rem] border border-white/10 overflow-hidden shadow-2xl divide-y divide-white/5",children:[T.jsxs("div",{className:"flex items-center justify-between p-6 bg-white/[0.02]",children:[T.jsxs("div",{className:"flex items-center gap-4",children:[T.jsx("div",{className:`p-3 rounded-2xl transition-all duration-500 ${s?"bg-yellow-500/20 shadow-[0_0_20px_rgba(234,179,8,0.2)]":"bg-white/5 grayscale opacity-30"}`,children:T.jsx(qz,{className:s?"text-yellow-500":"text-white",size:28})}),T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"text-[15px] font-black text-white tracking-tight uppercase",children:"Banchina"}),T.jsx("span",{className:`text-[10px] font-black uppercase tracking-widest mt-0.5 ${s?"text-yellow-500":"text-gray-300"}`,children:s?"Stato: ACCESO (Pass-through)":"Stato: SOLO INVERTER"})]})]}),T.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[T.jsx("input",{type:"checkbox",className:"sr-only peer",checked:s,onChange:h=>n("multiplus",h.target.checked),disabled:i}),T.jsx("div",{className:`w-14 h-8 rounded-full peer transition-all shadow-inner relative after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:bg-white after:rounded-full after:h-6 after:w-6 after:transition-all peer-checked:after:translate-x-6 ${s?"bg-yellow-500 shadow-[0_0_15px_rgba(234,179,8,0.4)]":"bg-gray-800"} ${i?"opacity-50":""}`})]})]}),T.jsxs("div",{className:`p-6 transition-all duration-700 ${s?"opacity-100":"opacity-20 grayscale pointer-events-none"}`,children:[T.jsxs("div",{className:"flex justify-between items-end mb-5",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("div",{className:"p-2 bg-cyan-500/10 rounded-xl",children:T.jsx(d4,{size:20,className:"text-cyan-400"})}),T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"text-sm font-black uppercase text-white tracking-tight",children:"Limite Banchina"}),T.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase tracking-widest",children:"Seleziona Ampere AC"})]})]}),T.jsxs("div",{className:"flex items-baseline gap-1",children:[T.jsx("span",{className:"text-3xl font-black font-mono text-cyan-400",children:l.toFixed(0)}),T.jsx("span",{className:"text-sm font-bold text-gray-600",children:"A"})]})]}),T.jsx("div",{className:"flex gap-2.5 w-full mt-2",children:o.map(h=>T.jsxs("button",{onClick:()=>r(h),disabled:i||!s,className:`flex-1 py-4 rounded-2xl font-black font-mono transition-all active:scale-90 border ${l===h?"bg-cyan-500 border-cyan-400 text-white shadow-[0_0_20px_rgba(6,182,212,0.4)]":"bg-white/5 border-white/5 text-gray-300 hover:bg-white/10"}`,children:[h,"A"]},h))})]}),T.jsxs("div",{className:"p-6 flex items-center justify-between opacity-10 grayscale",children:[T.jsxs("div",{className:"flex items-center gap-4",children:[T.jsx("div",{className:"p-3 bg-white/5 rounded-2xl text-gray-400",children:T.jsx(g4,{size:26})}),T.jsxs("div",{className:"flex flex-col",children:[T.jsx("span",{className:"text-sm font-black text-white uppercase tracking-tight",children:"Safe Power Mode"}),T.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase",children:"Configurazione automatica carichi"})]})]}),T.jsx("div",{className:"w-10 h-5 bg-gray-900 rounded-full border border-white/5"})]})]})]})]})},Jue=""+new URL("AppIcon-CV7HxdmO.png",import.meta.url).href;function ece(){const[e,t]=j.useState(0),[n,r]=j.useState(0),[i,o]=j.useState(!1),[s,l]=j.useState(null),u=T4();I.useEffect(()=>{const _=new URLSearchParams(window.location.search).get("mmsi");_&&(l(_),t(3))},[]);const f=()=>{document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():document.documentElement.requestFullscreen().catch(v=>console.error(v))},h=v=>{v!==e&&(r(v>e?1:-1),t(v))},d=(v,_)=>{if(v.target.closest(".leaflet-container"))return;const x=50;_.offset.x<-x&&e<4?h(e+1):_.offset.x>x&&e>0&&h(e-1)},m={enter:v=>({x:v>0?"100%":"-100%",opacity:0}),center:{x:0,opacity:1},exit:v=>({x:v<0?"100%":"-100%",opacity:0})};return T.jsxs("div",{className:`min-h-screen bg-[#121212] flex flex-col font-sans overflow-hidden select-none transition-colors duration-700 ${i?"night-mode-active":""}`,children:[T.jsxs("header",{onClick:f,className:"fixed top-0 left-0 right-0 z-[1000] h-16 bg-[#121212]/80 backdrop-blur-lg border-b border-white/10 px-4 flex items-center justify-between cursor-pointer",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("img",{src:Jue,alt:"Logo",className:"w-9 h-9 rounded-lg object-cover bg-white/10 shadow-lg"}),T.jsx("h1",{className:"text-xl font-black tracking-widest uppercase font-mono text-white",children:"ROTEVISTA"})]}),T.jsxs("div",{className:"flex items-center gap-3",children:[u.isUpdating&&T.jsxs("div",{className:"flex items-center gap-1.5 text-cyan-400 animate-pulse bg-cyan-400/10 px-2.5 py-1 rounded-lg border border-cyan-400/20 shadow-[0_0_10px_rgba(34,211,238,0.2)]",children:[T.jsx(c4,{size:12,className:"animate-spin"}),T.jsx("span",{className:"text-[10px] font-black uppercase font-mono",children:"Sync"})]}),T.jsx("button",{onClick:v=>{v.stopPropagation(),o(!i)},className:`p-2 rounded-xl border transition-all active:scale-90 ${i?"bg-red-500/20 border-red-500/50 text-red-500":"bg-white/5 border-white/10 text-gray-400"}`,children:i?T.jsx(Xx,{size:16}):T.jsx(uC,{size:16})}),T.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white/5 rounded-xl border border-white/10 shadow-inner font-mono",children:[T.jsx("span",{className:"text-xs font-bold text-gray-400",children:u.isDataStale?"OFF":`${u.secondsSinceLastUpdate}s`}),T.jsx("div",{className:`w-2 h-2 rounded-full ${u.statusColor} shadow-[0_0_8px_currentColor]`})]})]})]}),T.jsx("main",{className:"flex-1 relative mt-16 landscape:mt-14 pb-32 h-full w-full",children:T.jsx(SD,{initial:!1,custom:n,children:T.jsxs(Zz.div,{custom:n,variants:m,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:32},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:.15,onDragEnd:d,onPointerDownCapture:v=>{v.target.closest(".leaflet-container")&&v.stopPropagation()},className:"absolute inset-0 w-full h-full overflow-y-auto px-1 scroll-smooth",children:[e===0&&T.jsx(J4,{manager:u,onTabChange:h}),e===1&&T.jsx(que,{manager:u}),e===2&&T.jsx(Xue,{manager:u}),e===3&&T.jsx(lB,{manager:u,isNightMode:i,initialMmsi:s}),e===4&&T.jsx(Que,{manager:u})]},e)})}),T.jsxs("nav",{className:"fixed bottom-5 left-1/2 -translate-x-1/2 bg-[#1a1a1a]/90 backdrop-blur-2xl border border-white/10 rounded-full px-4 py-2 flex items-center justify-around w-[92%] max-w-md shadow-[0_20px_50px_rgba(0,0,0,0.6)] z-[1001]",children:[T.jsx(Vl,{icon:T.jsx(u4,{}),label:"Home",isActive:e===0,onClick:()=>h(0)}),T.jsx(Vl,{icon:T.jsx(P4,{}),label:"Energia",isActive:e===1,onClick:()=>h(1)}),T.jsx(Vl,{icon:T.jsx(S4,{}),label:"Ambiente",isActive:e===2,onClick:()=>h(2)}),T.jsx(Vl,{icon:T.jsx(m4,{}),label:"AIS",isActive:e===3,onClick:()=>h(3)}),T.jsx(Vl,{icon:T.jsx(x4,{}),label:"Extra",isActive:e===4,onClick:()=>h(4)})]})]})}const Vl=({icon:e,label:t,isActive:n,onClick:r})=>T.jsxs("button",{onClick:r,className:`flex flex-col items-center gap-1 transition-all duration-300 ${n?"text-cyan-400 scale-110":"text-gray-300"}`,children:[I.cloneElement(e,{size:20,strokeWidth:n?2.5:2}),T.jsx("span",{className:`text-[9px] font-black uppercase tracking-tighter ${n?"opacity-100":"opacity-60"}`,children:t})]}),tce="modulepreload",nce=function(e,t){return new URL(e,t).href},xA={},rce=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(f=>{if(f=nce(f,r),f in xA)return;xA[f]=!0;const h=f.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(!!r)for(let _=s.length-1;_>=0;_--){const x=s[_];if(x.href===f&&(!h||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${d}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":tce,h||(v.as="script"),v.crossOrigin="",v.href=f,u&&v.setAttribute("nonce",u),document.head.appendChild(v),h)return new Promise((_,x)=>{v.addEventListener("load",_),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function ice(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:o,onRegisteredSW:s,onRegisterError:l}=e;let u,f;const h=async(m=!0)=>{await f};async function d(){if("serviceWorker"in navigator){if(u=await rce(async()=>{const{Workbox:m}=await import("./workbox-window.prod.es5-BqEJf4Xk.js");return{Workbox:m}},[],import.meta.url).then(({Workbox:m})=>new m("./sw.js",{scope:"./",type:"classic"})).catch(m=>{l==null||l(m)}),!u)return;u.addEventListener("activated",m=>{(m.isUpdate||m.isExternal)&&(n?n():window.location.reload())}),u.addEventListener("installed",m=>{m.isUpdate||i==null||i()}),u.register({immediate:t}).then(m=>{s?s("./sw.js",m):o==null||o(m)}).catch(m=>{l==null||l(m)})}}return f=d(),h}ice({immediate:!0});Bv.createRoot(document.getElementById("root")).render(T.jsx(I.StrictMode,{children:T.jsx(ece,{})}));
|