diff --git a/assets/index-2-MnBPdF.js b/assets/index-DLZud90O.js similarity index 67% rename from assets/index-2-MnBPdF.js rename to assets/index-DLZud90O.js index 325f92a..8ee7dd9 100644 --- a/assets/index-2-MnBPdF.js +++ b/assets/index-DLZud90O.js @@ -1,4 +1,4 @@ -var j4=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sye=j4((Eye,Lf)=>{function $4(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var iP={exports:{}},Th={},oP={exports:{}},ve={};/** +var M4=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sye=M4((Eye,Lf)=>{function j4(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var iP={exports:{}},Th={},oP={exports:{}},ve={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var j4=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sye=j4((Eye,L * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ec=Symbol.for("react.element"),I4=Symbol.for("react.portal"),D4=Symbol.for("react.fragment"),R4=Symbol.for("react.strict_mode"),L4=Symbol.for("react.profiler"),z4=Symbol.for("react.provider"),F4=Symbol.for("react.context"),B4=Symbol.for("react.forward_ref"),W4=Symbol.for("react.suspense"),H4=Symbol.for("react.memo"),U4=Symbol.for("react.lazy"),Dw=Symbol.iterator;function Y4(e){return e===null||typeof e!="object"?null:(e=Dw&&e[Dw]||e["@@iterator"],typeof e=="function"?e:null)}var aP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sP=Object.assign,lP={};function xs(e,t,r){this.props=e,this.context=t,this.refs=lP,this.updater=r||aP}xs.prototype.isReactComponent={};xs.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")};xs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uP(){}uP.prototype=xs.prototype;function F0(e,t,r){this.props=e,this.context=t,this.refs=lP,this.updater=r||aP}var B0=F0.prototype=new uP;B0.constructor=F0;sP(B0,xs.prototype);B0.isPureReactComponent=!0;var Rw=Array.isArray,cP=Object.prototype.hasOwnProperty,W0={current:null},fP={key:!0,ref:!0,__self:!0,__source:!0};function dP(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)cP.call(t,n)&&!fP.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sye=j4((Eye,L * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var X4=O,Z4=Symbol.for("react.element"),Q4=Symbol.for("react.fragment"),J4=Object.prototype.hasOwnProperty,e$=X4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t$={key:!0,ref:!0,__self:!0,__source:!0};function mP(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)J4.call(t,n)&&!t$.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:Z4,type:e,key:o,ref:a,props:i,_owner:e$.current}}Th.Fragment=Q4;Th.jsx=mP;Th.jsxs=mP;iP.exports=Th;var P=iP.exports,vP={exports:{}},mr={},yP={exports:{}},gP={};/** + */var K4=O,X4=Symbol.for("react.element"),Z4=Symbol.for("react.fragment"),Q4=Object.prototype.hasOwnProperty,J4=K4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,e$={key:!0,ref:!0,__self:!0,__source:!0};function mP(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)Q4.call(t,n)&&!e$.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:X4,type:e,key:o,ref:a,props:i,_owner:J4.current}}Th.Fragment=Z4;Th.jsx=mP;Th.jsxs=mP;iP.exports=Th;var P=iP.exports,vP={exports:{}},mr={},yP={exports:{}},gP={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var j4=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sye=j4((Eye,L * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(N,L){var W=N.length;N.push(L);e:for(;0>>1,G=N[Y];if(0>>1;Yi(Ae,W))Qei(re,Ae)?(N[Y]=re,N[Qe]=W,Y=Qe):(N[Y]=Ae,N[ye]=W,Y=ye);else if(Qei(re,W))N[Y]=re,N[Qe]=W,Y=Qe;else break e}}return L}function i(N,L){var W=N.sortIndex-L.sortIndex;return W!==0?W:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,v=!1,p=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(N){for(var L=r(u);L!==null;){if(L.callback===null)n(u);else if(L.startTime<=N)n(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=r(u)}}function w(N){if(p=!1,b(N),!v)if(r(l)!==null)v=!0,I(x);else{var L=r(u);L!==null&&D(w,L.startTime-N)}}function x(N,L){v=!1,p&&(p=!1,y(E),E=-1),h=!0;var W=d;try{for(b(L),f=r(l);f!==null&&(!(f.expirationTime>L)||N&&!T());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var G=Y(f.expirationTime<=L);L=e.unstable_now(),typeof G=="function"?f.callback=G:f===r(l)&&n(l),b(L)}else n(l);f=r(l)}if(f!==null)var ie=!0;else{var ye=r(u);ye!==null&&D(w,ye.startTime-L),ie=!1}return ie}finally{f=null,d=W,h=!1}}var S=!1,_=null,E=-1,A=5,C=-1;function T(){return!(e.unstable_now()-CN||125Y?(N.sortIndex=W,t(u,N),r(l)===null&&N===r(u)&&(p?(y(E),E=-1):p=!0,D(w,W-Y))):(N.sortIndex=G,t(l,N),v||h||(v=!0,I(x))),N},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(N){var L=d;return function(){var W=d;d=L;try{return N.apply(this,arguments)}finally{d=W}}}})(gP);yP.exports=gP;var r$=yP.exports;/** + */(function(e){function t(N,L){var W=N.length;N.push(L);e:for(;0>>1,G=N[Y];if(0>>1;Yi(Ae,W))Qei(re,Ae)?(N[Y]=re,N[Qe]=W,Y=Qe):(N[Y]=Ae,N[ye]=W,Y=ye);else if(Qei(re,W))N[Y]=re,N[Qe]=W,Y=Qe;else break e}}return L}function i(N,L){var W=N.sortIndex-L.sortIndex;return W!==0?W:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,v=!1,p=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(N){for(var L=r(u);L!==null;){if(L.callback===null)n(u);else if(L.startTime<=N)n(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=r(u)}}function w(N){if(p=!1,b(N),!v)if(r(l)!==null)v=!0,I(x);else{var L=r(u);L!==null&&D(w,L.startTime-N)}}function x(N,L){v=!1,p&&(p=!1,y(E),E=-1),h=!0;var W=d;try{for(b(L),f=r(l);f!==null&&(!(f.expirationTime>L)||N&&!T());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var G=Y(f.expirationTime<=L);L=e.unstable_now(),typeof G=="function"?f.callback=G:f===r(l)&&n(l),b(L)}else n(l);f=r(l)}if(f!==null)var ie=!0;else{var ye=r(u);ye!==null&&D(w,ye.startTime-L),ie=!1}return ie}finally{f=null,d=W,h=!1}}var S=!1,_=null,E=-1,A=5,C=-1;function T(){return!(e.unstable_now()-CN||125Y?(N.sortIndex=W,t(u,N),r(l)===null&&N===r(u)&&(p?(y(E),E=-1):p=!0,D(w,W-Y))):(N.sortIndex=G,t(l,N),v||h||(v=!0,I(x))),N},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(N){var L=d;return function(){var W=d;d=L;try{return N.apply(this,arguments)}finally{d=W}}}})(gP);yP.exports=gP;var t$=yP.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var j4=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sye=j4((Eye,L * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n$=O,dr=r$;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zv=Object.prototype.hasOwnProperty,i$=/^[: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]*$/,zw={},Fw={};function o$(e){return zv.call(Fw,e)?!0:zv.call(zw,e)?!1:i$.test(e)?Fw[e]=!0:(zw[e]=!0,!1)}function a$(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function s$(e,t,r,n){if(t===null||typeof t>"u"||a$(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Vt(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tt[e]=new Vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tt[t]=new Vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tt[e]=new Vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tt[e]=new Vt(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){Tt[e]=new Vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tt[e]=new Vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tt[e]=new Vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tt[e]=new Vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tt[e]=new Vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var U0=/[\-:]([a-z])/g;function Y0(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(U0,Y0);Tt[t]=new Vt(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(U0,Y0);Tt[t]=new Vt(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(U0,Y0);Tt[t]=new Vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!1,!1)});Tt.xlinkHref=new Vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function V0(e,t,r,n){var i=Tt.hasOwnProperty(t)?Tt[t]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zv=Object.prototype.hasOwnProperty,n$=/^[: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]*$/,zw={},Fw={};function i$(e){return zv.call(Fw,e)?!0:zv.call(zw,e)?!1:n$.test(e)?Fw[e]=!0:(zw[e]=!0,!1)}function o$(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function a$(e,t,r,n){if(t===null||typeof t>"u"||o$(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Vt(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tt[e]=new Vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tt[t]=new Vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tt[e]=new Vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tt[e]=new Vt(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){Tt[e]=new Vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tt[e]=new Vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tt[e]=new Vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tt[e]=new Vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tt[e]=new Vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var U0=/[\-:]([a-z])/g;function Y0(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(U0,Y0);Tt[t]=new Vt(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(U0,Y0);Tt[t]=new Vt(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(U0,Y0);Tt[t]=new Vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!1,!1)});Tt.xlinkHref=new Vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tt[e]=new Vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function V0(e,t,r,n){var i=Tt.hasOwnProperty(t)?Tt[t]:null;(i!==null?i.type!==0:n||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{fm=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?gl(e):""}function l$(e){switch(e.tag){case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 2:case 15:return e=dm(e.type,!1),e;case 11:return e=dm(e.type.render,!1),e;case 1:return e=dm(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 ma:return"Fragment";case pa:return"Portal";case Fv:return"Profiler";case G0:return"StrictMode";case Bv:return"Suspense";case Wv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xP:return(e.displayName||"Context")+".Consumer";case wP:return(e._context.displayName||"Context")+".Provider";case q0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K0:return t=e.displayName||null,t!==null?t:Hv(e.type)||"Memo";case xi:t=e._payload,e=e._init;try{return Hv(e(t))}catch{}}return null}function u$(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===G0?"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 OP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function c$(e){var t=OP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tc(e){e._valueTracker||(e._valueTracker=c$(e))}function _P(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=OP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function zf(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 Uv(e,t){var r=t.checked;return rt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ww(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Gi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PP(e,t){t=t.checked,t!=null&&V0(e,"checked",t,!1)}function Yv(e,t){PP(e,t);var r=Gi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vv(e,t.type,r):t.hasOwnProperty("defaultValue")&&Vv(e,t.type,Gi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hw(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Vv(e,t,r){(t!=="number"||zf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var bl=Array.isArray;function Aa(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Mc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var El={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},f$=["Webkit","ms","Moz","O"];Object.keys(El).forEach(function(e){f$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),El[t]=El[e]})});function AP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||El.hasOwnProperty(e)&&El[e]?(""+t).trim():t+"px"}function TP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=AP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var d$=rt({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 Kv(e,t){if(t){if(d$[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function Xv(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 Zv=null;function X0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qv=null,Ta=null,Ma=null;function Vw(e){if(e=nc(e)){if(typeof Qv!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Ih(t),Qv(e.stateNode,e.type,t))}}function MP(e){Ta?Ma?Ma.push(e):Ma=[e]:Ta=e}function jP(){if(Ta){var e=Ta,t=Ma;if(Ma=Ta=null,Vw(e),t)for(e=0;e>>=0,e===0?32:31-(O$(e)/_$|0)|0}var jc=64,$c=4194304;function wl(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 Hf(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=wl(s):(o&=a,o!==0&&(n=wl(o)))}else a=r&~i,a!==0?n=wl(a):o!==0&&(n=wl(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function tc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xr(t),e[t]=r}function k$(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=kl),t2=" ",r2=!1;function QP(e,t){switch(e){case"keyup":return rN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function iN(e,t){switch(e){case"compositionend":return JP(t);case"keypress":return t.which!==32?null:(r2=!0,t2);case"textInput":return e=t.data,e===t2&&r2?null:e;default:return null}}function oN(e,t){if(va)return e==="compositionend"||!i1&&QP(e,t)?(e=XP(),wf=t1=Ai=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=a2(r)}}function nE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iE(){for(var e=window,t=zf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=zf(e.document)}return t}function o1(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 pN(e){var t=iE(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&nE(r.ownerDocument.documentElement,r)){if(n!==null&&o1(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=s2(r,o);var a=s2(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,ya=null,iy=null,Tl=null,oy=!1;function l2(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;oy||ya==null||ya!==zf(n)||(n=ya,"selectionStart"in n&&o1(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Tl&&Kl(Tl,n)||(Tl=n,n=Vf(iy,"onSelect"),0wa||(e.current=fy[wa],fy[wa]=null,wa--)}function ze(e,t){wa++,fy[wa]=e.current,e.current=t}var qi={},zt=Ji(qi),Qt=Ji(!1),Do=qi;function Va(e,t){var r=e.type.contextTypes;if(!r)return qi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Jt(e){return e=e.childContextTypes,e!=null}function qf(){Ye(Qt),Ye(zt)}function m2(e,t,r){if(zt.current!==qi)throw Error(H(168));ze(zt,t),ze(Qt,r)}function hE(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(H(108,u$(e)||"Unknown",i));return rt({},r,n)}function Kf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qi,Do=zt.current,ze(zt,e),ze(Qt,Qt.current),!0}function v2(e,t,r){var n=e.stateNode;if(!n)throw Error(H(169));r?(e=hE(e,t,Do),n.__reactInternalMemoizedMergedChildContext=e,Ye(Qt),Ye(zt),ze(zt,e)):Ye(Qt),ze(Qt,r)}var In=null,Dh=!1,Em=!1;function pE(e){In===null?In=[e]:In.push(e)}function EN(e){Dh=!0,pE(e)}function eo(){if(!Em&&In!==null){Em=!0;var e=0,t=Te;try{var r=In;for(Te=1;e>=a,i-=a,Dn=1<<32-Xr(t)+i|r<E?(A=_,_=null):A=_.sibling;var C=d(y,_,b[E],w);if(C===null){_===null&&(_=A);break}e&&_&&C.alternate===null&&t(y,_),m=o(C,m,E),S===null?x=C:S.sibling=C,S=C,_=A}if(E===b.length)return r(y,_),Xe&&po(y,E),x;if(_===null){for(;EE?(A=_,_=null):A=_.sibling;var T=d(y,_,C.value,w);if(T===null){_===null&&(_=A);break}e&&_&&T.alternate===null&&t(y,_),m=o(T,m,E),S===null?x=T:S.sibling=T,S=T,_=A}if(C.done)return r(y,_),Xe&&po(y,E),x;if(_===null){for(;!C.done;E++,C=b.next())C=f(y,C.value,w),C!==null&&(m=o(C,m,E),S===null?x=C:S.sibling=C,S=C);return Xe&&po(y,E),x}for(_=n(y,_);!C.done;E++,C=b.next())C=h(_,y,E,C.value,w),C!==null&&(e&&C.alternate!==null&&_.delete(C.key===null?E:C.key),m=o(C,m,E),S===null?x=C:S.sibling=C,S=C);return e&&_.forEach(function(k){return t(y,k)}),Xe&&po(y,E),x}function g(y,m,b,w){if(typeof b=="object"&&b!==null&&b.type===ma&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ac:e:{for(var x=b.key,S=m;S!==null;){if(S.key===x){if(x=b.type,x===ma){if(S.tag===7){r(y,S.sibling),m=i(S,b.props.children),m.return=y,y=m;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&b2(x)===S.type){r(y,S.sibling),m=i(S,b.props),m.ref=Js(y,S,b),m.return=y,y=m;break e}r(y,S);break}else t(y,S);S=S.sibling}b.type===ma?(m=To(b.props.children,y.mode,w,b.key),m.return=y,y=m):(w=kf(b.type,b.key,b.props,null,y.mode,w),w.ref=Js(y,m,b),w.return=y,y=w)}return a(y);case pa:e:{for(S=b.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(y,m.sibling),m=i(m,b.children||[]),m.return=y,y=m;break e}else{r(y,m);break}else t(y,m);m=m.sibling}m=Nm(b,y.mode,w),m.return=y,y=m}return a(y);case xi:return S=b._init,g(y,m,S(b._payload),w)}if(bl(b))return v(y,m,b,w);if(qs(b))return p(y,m,b,w);Fc(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(y,m.sibling),m=i(m,b),m.return=y,y=m):(r(y,m),m=$m(b,y.mode,w),m.return=y,y=m),a(y)):r(y,m)}return g}var qa=gE(!0),bE=gE(!1),Qf=Ji(null),Jf=null,Oa=null,u1=null;function c1(){u1=Oa=Jf=null}function f1(e){var t=Qf.current;Ye(Qf),e._currentValue=t}function py(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function $a(e,t){Jf=e,u1=Oa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xt=!0),e.firstContext=null)}function jr(e){var t=e._currentValue;if(u1!==e)if(e={context:e,memoizedValue:t,next:null},Oa===null){if(Jf===null)throw Error(H(308));Oa=e,Jf.dependencies={lanes:0,firstContext:e}}else Oa=Oa.next=e;return t}var xo=null;function d1(e){xo===null?xo=[e]:xo.push(e)}function wE(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,d1(t)):(r.next=i.next,i.next=r),t.interleaved=r,Qn(e,n)}function Qn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Si=!1;function h1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xE(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 Hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Pe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Qn(e,r)}return i=n.interleaved,i===null?(t.next=t,d1(n)):(t.next=i.next,i.next=t),n.interleaved=t,Qn(e,r)}function Sf(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Q0(e,r)}}function w2(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ed(e,t,r,n){var i=e.updateQueue;Si=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,c=u=l=null,s=o;do{var d=s.lane,h=s.eventTime;if((n&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,p=s;switch(d=t,h=r,p.tag){case 1:if(v=p.payload,typeof v=="function"){f=v.call(h,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,d=typeof v=="function"?v.call(h,f,d):v,d==null)break e;f=rt({},f,d);break e;case 2:Si=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);zo|=a,e.lanes=a,e.memoizedState=f}}function x2(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=km.transition;km.transition={};try{e(!1),t()}finally{Te=r,km.transition=n}}function LE(){return $r().memoizedState}function TN(e,t,r){var n=Bi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},zE(e))FE(t,r);else if(r=wE(e,t,r,n),r!==null){var i=Ut();Zr(r,e,n,i),BE(r,t,n)}}function MN(e,t,r){var n=Bi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(zE(e))FE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,Jr(s,a)){var l=t.interleaved;l===null?(i.next=i,d1(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=wE(e,t,i,n),r!==null&&(i=Ut(),Zr(r,e,n,i),BE(r,t,n))}}function zE(e){var t=e.alternate;return e===tt||t!==null&&t===tt}function FE(e,t){Ml=rd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function BE(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Q0(e,r)}}var nd={readContext:jr,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useInsertionEffect:jt,useLayoutEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useMutableSource:jt,useSyncExternalStore:jt,useId:jt,unstable_isNewReconciler:!1},jN={readContext:jr,useCallback:function(e,t){return cn().memoizedState=[e,t===void 0?null:t],e},useContext:jr,useEffect:O2,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_f(4194308,4,$E.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _f(4194308,4,e,t)},useInsertionEffect:function(e,t){return _f(4,2,e,t)},useMemo:function(e,t){var r=cn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=cn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TN.bind(null,tt,e),[n.memoizedState,e]},useRef:function(e){var t=cn();return e={current:e},t.memoizedState=e},useState:S2,useDebugValue:x1,useDeferredValue:function(e){return cn().memoizedState=e},useTransition:function(){var e=S2(!1),t=e[0];return e=AN.bind(null,e[1]),cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tt,i=cn();if(Xe){if(r===void 0)throw Error(H(407));r=r()}else{if(r=t(),Ot===null)throw Error(H(349));Lo&30||PE(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,O2(CE.bind(null,n,o,e),[e]),n.flags|=2048,nu(9,EE.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=cn(),t=Ot.identifierPrefix;if(Xe){var r=Rn,n=Dn;r=(n&~(1<<32-Xr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=tu++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{fm=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?gl(e):""}function s$(e){switch(e.tag){case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 2:case 15:return e=dm(e.type,!1),e;case 11:return e=dm(e.type.render,!1),e;case 1:return e=dm(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 ma:return"Fragment";case pa:return"Portal";case Fv:return"Profiler";case G0:return"StrictMode";case Bv:return"Suspense";case Wv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xP:return(e.displayName||"Context")+".Consumer";case wP:return(e._context.displayName||"Context")+".Provider";case q0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K0:return t=e.displayName||null,t!==null?t:Hv(e.type)||"Memo";case xi:t=e._payload,e=e._init;try{return Hv(e(t))}catch{}}return null}function l$(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===G0?"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 OP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u$(e){var t=OP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tc(e){e._valueTracker||(e._valueTracker=u$(e))}function _P(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=OP(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function zf(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 Uv(e,t){var r=t.checked;return rt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ww(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Gi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function PP(e,t){t=t.checked,t!=null&&V0(e,"checked",t,!1)}function Yv(e,t){PP(e,t);var r=Gi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vv(e,t.type,r):t.hasOwnProperty("defaultValue")&&Vv(e,t.type,Gi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hw(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Vv(e,t,r){(t!=="number"||zf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var bl=Array.isArray;function Aa(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Mc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var El={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},c$=["Webkit","ms","Moz","O"];Object.keys(El).forEach(function(e){c$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),El[t]=El[e]})});function AP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||El.hasOwnProperty(e)&&El[e]?(""+t).trim():t+"px"}function TP(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=AP(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var f$=rt({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 Kv(e,t){if(t){if(f$[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function Xv(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 Zv=null;function X0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qv=null,Ta=null,Ma=null;function Vw(e){if(e=nc(e)){if(typeof Qv!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Ih(t),Qv(e.stateNode,e.type,t))}}function MP(e){Ta?Ma?Ma.push(e):Ma=[e]:Ta=e}function jP(){if(Ta){var e=Ta,t=Ma;if(Ma=Ta=null,Vw(e),t)for(e=0;e>>=0,e===0?32:31-(S$(e)/O$|0)|0}var jc=64,$c=4194304;function wl(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 Hf(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=wl(s):(o&=a,o!==0&&(n=wl(o)))}else a=r&~i,a!==0?n=wl(a):o!==0&&(n=wl(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function tc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xr(t),e[t]=r}function C$(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=kl),t2=" ",r2=!1;function QP(e,t){switch(e){case"keyup":return tN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function nN(e,t){switch(e){case"compositionend":return JP(t);case"keypress":return t.which!==32?null:(r2=!0,t2);case"textInput":return e=t.data,e===t2&&r2?null:e;default:return null}}function iN(e,t){if(va)return e==="compositionend"||!i1&&QP(e,t)?(e=XP(),wf=t1=Ai=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=a2(r)}}function nE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iE(){for(var e=window,t=zf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=zf(e.document)}return t}function o1(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 hN(e){var t=iE(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&nE(r.ownerDocument.documentElement,r)){if(n!==null&&o1(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=s2(r,o);var a=s2(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,ya=null,iy=null,Tl=null,oy=!1;function l2(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;oy||ya==null||ya!==zf(n)||(n=ya,"selectionStart"in n&&o1(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Tl&&Kl(Tl,n)||(Tl=n,n=Vf(iy,"onSelect"),0wa||(e.current=fy[wa],fy[wa]=null,wa--)}function ze(e,t){wa++,fy[wa]=e.current,e.current=t}var qi={},zt=Ji(qi),Qt=Ji(!1),Do=qi;function Va(e,t){var r=e.type.contextTypes;if(!r)return qi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Jt(e){return e=e.childContextTypes,e!=null}function qf(){Ye(Qt),Ye(zt)}function m2(e,t,r){if(zt.current!==qi)throw Error(H(168));ze(zt,t),ze(Qt,r)}function hE(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(H(108,l$(e)||"Unknown",i));return rt({},r,n)}function Kf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qi,Do=zt.current,ze(zt,e),ze(Qt,Qt.current),!0}function v2(e,t,r){var n=e.stateNode;if(!n)throw Error(H(169));r?(e=hE(e,t,Do),n.__reactInternalMemoizedMergedChildContext=e,Ye(Qt),Ye(zt),ze(zt,e)):Ye(Qt),ze(Qt,r)}var In=null,Dh=!1,Em=!1;function pE(e){In===null?In=[e]:In.push(e)}function PN(e){Dh=!0,pE(e)}function eo(){if(!Em&&In!==null){Em=!0;var e=0,t=Te;try{var r=In;for(Te=1;e>=a,i-=a,Dn=1<<32-Xr(t)+i|r<E?(A=_,_=null):A=_.sibling;var C=d(y,_,b[E],w);if(C===null){_===null&&(_=A);break}e&&_&&C.alternate===null&&t(y,_),m=o(C,m,E),S===null?x=C:S.sibling=C,S=C,_=A}if(E===b.length)return r(y,_),Xe&&po(y,E),x;if(_===null){for(;EE?(A=_,_=null):A=_.sibling;var T=d(y,_,C.value,w);if(T===null){_===null&&(_=A);break}e&&_&&T.alternate===null&&t(y,_),m=o(T,m,E),S===null?x=T:S.sibling=T,S=T,_=A}if(C.done)return r(y,_),Xe&&po(y,E),x;if(_===null){for(;!C.done;E++,C=b.next())C=f(y,C.value,w),C!==null&&(m=o(C,m,E),S===null?x=C:S.sibling=C,S=C);return Xe&&po(y,E),x}for(_=n(y,_);!C.done;E++,C=b.next())C=h(_,y,E,C.value,w),C!==null&&(e&&C.alternate!==null&&_.delete(C.key===null?E:C.key),m=o(C,m,E),S===null?x=C:S.sibling=C,S=C);return e&&_.forEach(function(k){return t(y,k)}),Xe&&po(y,E),x}function g(y,m,b,w){if(typeof b=="object"&&b!==null&&b.type===ma&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ac:e:{for(var x=b.key,S=m;S!==null;){if(S.key===x){if(x=b.type,x===ma){if(S.tag===7){r(y,S.sibling),m=i(S,b.props.children),m.return=y,y=m;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&b2(x)===S.type){r(y,S.sibling),m=i(S,b.props),m.ref=Js(y,S,b),m.return=y,y=m;break e}r(y,S);break}else t(y,S);S=S.sibling}b.type===ma?(m=To(b.props.children,y.mode,w,b.key),m.return=y,y=m):(w=kf(b.type,b.key,b.props,null,y.mode,w),w.ref=Js(y,m,b),w.return=y,y=w)}return a(y);case pa:e:{for(S=b.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(y,m.sibling),m=i(m,b.children||[]),m.return=y,y=m;break e}else{r(y,m);break}else t(y,m);m=m.sibling}m=Nm(b,y.mode,w),m.return=y,y=m}return a(y);case xi:return S=b._init,g(y,m,S(b._payload),w)}if(bl(b))return v(y,m,b,w);if(qs(b))return p(y,m,b,w);Fc(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(y,m.sibling),m=i(m,b),m.return=y,y=m):(r(y,m),m=$m(b,y.mode,w),m.return=y,y=m),a(y)):r(y,m)}return g}var qa=gE(!0),bE=gE(!1),Qf=Ji(null),Jf=null,Oa=null,u1=null;function c1(){u1=Oa=Jf=null}function f1(e){var t=Qf.current;Ye(Qf),e._currentValue=t}function py(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function $a(e,t){Jf=e,u1=Oa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xt=!0),e.firstContext=null)}function jr(e){var t=e._currentValue;if(u1!==e)if(e={context:e,memoizedValue:t,next:null},Oa===null){if(Jf===null)throw Error(H(308));Oa=e,Jf.dependencies={lanes:0,firstContext:e}}else Oa=Oa.next=e;return t}var xo=null;function d1(e){xo===null?xo=[e]:xo.push(e)}function wE(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,d1(t)):(r.next=i.next,i.next=r),t.interleaved=r,Qn(e,n)}function Qn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Si=!1;function h1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xE(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 Hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Pe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Qn(e,r)}return i=n.interleaved,i===null?(t.next=t,d1(n)):(t.next=i.next,i.next=t),n.interleaved=t,Qn(e,r)}function Sf(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Q0(e,r)}}function w2(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ed(e,t,r,n){var i=e.updateQueue;Si=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,c=u=l=null,s=o;do{var d=s.lane,h=s.eventTime;if((n&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,p=s;switch(d=t,h=r,p.tag){case 1:if(v=p.payload,typeof v=="function"){f=v.call(h,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,d=typeof v=="function"?v.call(h,f,d):v,d==null)break e;f=rt({},f,d);break e;case 2:Si=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);zo|=a,e.lanes=a,e.memoizedState=f}}function x2(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=km.transition;km.transition={};try{e(!1),t()}finally{Te=r,km.transition=n}}function LE(){return $r().memoizedState}function AN(e,t,r){var n=Bi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},zE(e))FE(t,r);else if(r=wE(e,t,r,n),r!==null){var i=Ut();Zr(r,e,n,i),BE(r,t,n)}}function TN(e,t,r){var n=Bi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(zE(e))FE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,Jr(s,a)){var l=t.interleaved;l===null?(i.next=i,d1(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=wE(e,t,i,n),r!==null&&(i=Ut(),Zr(r,e,n,i),BE(r,t,n))}}function zE(e){var t=e.alternate;return e===tt||t!==null&&t===tt}function FE(e,t){Ml=rd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function BE(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Q0(e,r)}}var nd={readContext:jr,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useInsertionEffect:jt,useLayoutEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useMutableSource:jt,useSyncExternalStore:jt,useId:jt,unstable_isNewReconciler:!1},MN={readContext:jr,useCallback:function(e,t){return cn().memoizedState=[e,t===void 0?null:t],e},useContext:jr,useEffect:O2,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_f(4194308,4,$E.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _f(4194308,4,e,t)},useInsertionEffect:function(e,t){return _f(4,2,e,t)},useMemo:function(e,t){var r=cn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=cn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=AN.bind(null,tt,e),[n.memoizedState,e]},useRef:function(e){var t=cn();return e={current:e},t.memoizedState=e},useState:S2,useDebugValue:x1,useDeferredValue:function(e){return cn().memoizedState=e},useTransition:function(){var e=S2(!1),t=e[0];return e=kN.bind(null,e[1]),cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tt,i=cn();if(Xe){if(r===void 0)throw Error(H(407));r=r()}else{if(r=t(),Ot===null)throw Error(H(349));Lo&30||PE(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,O2(CE.bind(null,n,o,e),[e]),n.flags|=2048,nu(9,EE.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=cn(),t=Ot.identifierPrefix;if(Xe){var r=Rn,n=Dn;r=(n&~(1<<32-Xr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=tu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[dn]=t,e[Ql]=n,ZE(e,t,!1,!1),t.stateNode=e;e:{switch(a=Xv(r,n),r){case"dialog":We("cancel",e),We("close",e),i=n;break;case"iframe":case"object":case"embed":We("load",e),i=n;break;case"video":case"audio":for(i=0;iZa&&(t.flags|=128,n=!0,el(o,!1),t.lanes=4194304)}else{if(!n)if(e=td(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),el(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Xe)return $t(t),null}else 2*st()-o.renderingStartTime>Za&&r!==1073741824&&(t.flags|=128,n=!0,el(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=st(),t.sibling=null,r=et.current,ze(et,n?r&1|2:r&1),t):($t(t),null);case 22:case 23:return C1(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?or&1073741824&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function FN(e,t){switch(s1(t),t.tag){case 1:return Jt(t.type)&&qf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),Ye(Qt),Ye(zt),v1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return m1(t),null;case 13:if(Ye(et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(et),null;case 4:return Ka(),null;case 10:return f1(t.type._context),null;case 22:case 23:return C1(),null;case 24:return null;default:return null}}var Wc=!1,It=!1,BN=typeof WeakSet=="function"?WeakSet:Set,ee=null;function _a(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){nt(e,t,n)}else r.current=null}function Oy(e,t,r){try{r()}catch(n){nt(e,t,n)}}var N2=!1;function WN(e,t){if(ay=Uf,e=iE(),o1(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=a+i),f!==o||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=a),d===o&&++c===n&&(l=a),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(sy={focusedElem:e,selectionRange:r},Uf=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,g=v.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:Br(t.type,p),g);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(w){nt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return v=N2,N2=!1,v}function jl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Oy(t,r,o)}i=i.next}while(i!==n)}}function zh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function _y(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function eC(e){var t=e.alternate;t!==null&&(e.alternate=null,eC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[Ql],delete t[cy],delete t[_N],delete t[PN])),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 tC(e){return e.tag===5||e.tag===3||e.tag===4}function I2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tC(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 Py(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Gf));else if(n!==4&&(e=e.child,e!==null))for(Py(e,t,r),e=e.sibling;e!==null;)Py(e,t,r),e=e.sibling}function Ey(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Ey(e,t,r),e=e.sibling;e!==null;)Ey(e,t,r),e=e.sibling}var Ct=null,Wr=!1;function mi(e,t,r){for(r=r.child;r!==null;)rC(e,t,r),r=r.sibling}function rC(e,t,r){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(Mh,r)}catch{}switch(r.tag){case 5:It||_a(r,t);case 6:var n=Ct,i=Wr;Ct=null,mi(e,t,r),Ct=n,Wr=i,Ct!==null&&(Wr?(e=Ct,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ct.removeChild(r.stateNode));break;case 18:Ct!==null&&(Wr?(e=Ct,r=r.stateNode,e.nodeType===8?Pm(e.parentNode,r):e.nodeType===1&&Pm(e,r),Gl(e)):Pm(Ct,r.stateNode));break;case 4:n=Ct,i=Wr,Ct=r.stateNode.containerInfo,Wr=!0,mi(e,t,r),Ct=n,Wr=i;break;case 0:case 11:case 14:case 15:if(!It&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Oy(r,t,a),i=i.next}while(i!==n)}mi(e,t,r);break;case 1:if(!It&&(_a(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){nt(r,t,s)}mi(e,t,r);break;case 21:mi(e,t,r);break;case 22:r.mode&1?(It=(n=It)||r.memoizedState!==null,mi(e,t,r),It=n):mi(e,t,r);break;default:mi(e,t,r)}}function D2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new BN),t.forEach(function(n){var i=ZN.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function zr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~o}if(n=i,n=st()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*UN(n/1960))-n,10e?16:e,Ti===null)var n=!1;else{if(e=Ti,Ti=null,ad=0,Pe&6)throw Error(H(331));var i=Pe;for(Pe|=4,ee=e.current;ee!==null;){var o=ee,a=o.child;if(ee.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lst()-P1?Ao(e,0):_1|=r),er(e,t)}function cC(e,t){t===0&&(e.mode&1?(t=$c,$c<<=1,!($c&130023424)&&($c=4194304)):t=1);var r=Ut();e=Qn(e,t),e!==null&&(tc(e,t,r),er(e,r))}function XN(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),cC(e,r)}function ZN(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(H(314))}n!==null&&n.delete(t),cC(e,r)}var fC;fC=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qt.current)Xt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Xt=!1,LN(e,t,r);Xt=!!(e.flags&131072)}else Xt=!1,Xe&&t.flags&1048576&&mE(t,Zf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Pf(e,t),e=t.pendingProps;var i=Va(t,zt.current);$a(t,r),i=g1(null,t,n,e,i,r);var o=b1();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,Jt(n)?(o=!0,Kf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,h1(t),i.updater=Lh,t.stateNode=i,i._reactInternals=t,vy(t,n,e,r),t=by(null,t,n,!0,o,r)):(t.tag=0,Xe&&o&&a1(t),Wt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Pf(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=JN(n),e=Br(n,e),i){case 0:t=gy(null,t,n,e,r);break e;case 1:t=M2(null,t,n,e,r);break e;case 11:t=A2(null,t,n,e,r);break e;case 14:t=T2(null,t,n,Br(n.type,e),r);break e}throw Error(H(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),gy(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),M2(e,t,n,i,r);case 3:e:{if(qE(t),e===null)throw Error(H(387));n=t.pendingProps,o=t.memoizedState,i=o.element,xE(e,t),ed(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Xa(Error(H(423)),t),t=j2(e,t,n,r,i);break e}else if(n!==i){i=Xa(Error(H(424)),t),t=j2(e,t,n,r,i);break e}else for(ur=Li(t.stateNode.containerInfo.firstChild),cr=t,Xe=!0,Yr=null,r=bE(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ga(),n===i){t=Jn(e,t,r);break e}Wt(e,t,n,r)}t=t.child}return t;case 5:return SE(t),e===null&&hy(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ly(n,i)?a=null:o!==null&&ly(n,o)&&(t.flags|=32),GE(e,t),Wt(e,t,a,r),t.child;case 6:return e===null&&hy(t),null;case 13:return KE(e,t,r);case 4:return p1(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=qa(t,null,n,r):Wt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),A2(e,t,n,i,r);case 7:return Wt(e,t,t.pendingProps,r),t.child;case 8:return Wt(e,t,t.pendingProps.children,r),t.child;case 12:return Wt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ze(Qf,n._currentValue),n._currentValue=a,o!==null)if(Jr(o.value,a)){if(o.children===i.children&&!Qt.current){t=Jn(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Hn(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),py(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(H(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),py(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Wt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,$a(t,r),i=jr(i),n=n(i),t.flags|=1,Wt(e,t,n,r),t.child;case 14:return n=t.type,i=Br(n,t.pendingProps),i=Br(n.type,i),T2(e,t,n,i,r);case 15:return YE(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),Pf(e,t),t.tag=1,Jt(n)?(e=!0,Kf(t)):e=!1,$a(t,r),WE(t,n,i),vy(t,n,i,r),by(null,t,n,!0,e,r);case 19:return XE(e,t,r);case 22:return VE(e,t,r)}throw Error(H(156,t.tag))};function dC(e,t){return zP(e,t)}function QN(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Er(e,t,r,n){return new QN(e,t,r,n)}function A1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function JN(e){if(typeof e=="function")return A1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===q0)return 11;if(e===K0)return 14}return 2}function Wi(e,t){var r=e.alternate;return r===null?(r=Er(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function kf(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")A1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ma:return To(r.children,i,o,t);case G0:a=8,i|=8;break;case Fv:return e=Er(12,r,t,i|2),e.elementType=Fv,e.lanes=o,e;case Bv:return e=Er(13,r,t,i),e.elementType=Bv,e.lanes=o,e;case Wv:return e=Er(19,r,t,i),e.elementType=Wv,e.lanes=o,e;case SP:return Bh(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wP:a=10;break e;case xP:a=9;break e;case q0:a=11;break e;case K0:a=14;break e;case xi:a=16,n=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Er(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function To(e,t,r,n){return e=Er(7,e,n,t),e.lanes=r,e}function Bh(e,t,r,n){return e=Er(22,e,n,t),e.elementType=SP,e.lanes=r,e.stateNode={isHidden:!1},e}function $m(e,t,r){return e=Er(6,e,null,t),e.lanes=r,e}function Nm(e,t,r){return t=Er(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eI(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pm(0),this.expirationTimes=pm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pm(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function T1(e,t,r,n,i,o,a,s,l){return e=new eI(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Er(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},h1(o),e}function tI(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vC)}catch(e){console.error(e)}}vC(),vP.exports=mr;var _s=vP.exports;const aI=Me(_s);var yC,U2=_s;yC=U2.createRoot,U2.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Mm(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function yy(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var NN=typeof WeakMap=="function"?WeakMap:Map;function HE(e,t,r){r=Hn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){od||(od=!0,Cy=n),yy(e,t)},r}function UE(e,t,r){r=Hn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){yy(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){yy(e,t),typeof n!="function"&&(Fi===null?Fi=new Set([this]):Fi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function E2(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new NN;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=qN.bind(null,e,t,r),t.then(e,e))}function C2(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 k2(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Hn(-1,1),t.tag=2,zi(r,t,1))),r.lanes|=1),e)}var IN=li.ReactCurrentOwner,Xt=!1;function Wt(e,t,r,n){t.child=e===null?bE(t,null,r,n):qa(t,e.child,r,n)}function A2(e,t,r,n,i){r=r.render;var o=t.ref;return $a(t,i),n=g1(e,t,r,n,o,i),r=b1(),e!==null&&!Xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Jn(e,t,i)):(Xe&&r&&a1(t),t.flags|=1,Wt(e,t,n,i),t.child)}function T2(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!A1(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,YE(e,t,o,n,i)):(e=kf(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:Kl,r(a,n)&&e.ref===t.ref)return Jn(e,t,i)}return t.flags|=1,e=Wi(o,n),e.ref=t.ref,e.return=t,t.child=e}function YE(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(Kl(o,n)&&e.ref===t.ref)if(Xt=!1,t.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(Xt=!0);else return t.lanes=e.lanes,Jn(e,t,i)}return gy(e,t,r,n,i)}function VE(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(Pa,or),or|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(Pa,or),or|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,ze(Pa,or),or|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ze(Pa,or),or|=n;return Wt(e,t,i,r),t.child}function GE(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function gy(e,t,r,n,i){var o=Jt(r)?Do:zt.current;return o=Va(t,o),$a(t,i),r=g1(e,t,r,n,o,i),n=b1(),e!==null&&!Xt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Jn(e,t,i)):(Xe&&n&&a1(t),t.flags|=1,Wt(e,t,r,i),t.child)}function M2(e,t,r,n,i){if(Jt(r)){var o=!0;Kf(t)}else o=!1;if($a(t,i),t.stateNode===null)Pf(e,t),WE(t,r,n),vy(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=jr(u):(u=Jt(r)?Do:zt.current,u=Va(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==u)&&P2(t,a,n,u),Si=!1;var d=t.memoizedState;a.state=d,ed(t,n,a,i),l=t.memoizedState,s!==n||d!==l||Qt.current||Si?(typeof c=="function"&&(my(t,r,c,n),l=t.memoizedState),(s=Si||_2(t,r,s,n,d,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,xE(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Br(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=jr(l):(l=Jt(r)?Do:zt.current,l=Va(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&P2(t,a,n,l),Si=!1,d=t.memoizedState,a.state=d,ed(t,n,a,i);var v=t.memoizedState;s!==f||d!==v||Qt.current||Si?(typeof h=="function"&&(my(t,r,h,n),v=t.memoizedState),(u=Si||_2(t,r,u,n,d,v,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),a.props=n,a.state=v,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return by(e,t,r,n,o,i)}function by(e,t,r,n,i,o){GE(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&v2(t,r,!1),Jn(e,t,o);n=t.stateNode,IN.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=qa(t,e.child,null,o),t.child=qa(t,null,s,o)):Wt(e,t,s,o),t.memoizedState=n.state,i&&v2(t,r,!0),t.child}function qE(e){var t=e.stateNode;t.pendingContext?m2(e,t.pendingContext,t.pendingContext!==t.context):t.context&&m2(e,t.context,!1),p1(e,t.containerInfo)}function j2(e,t,r,n,i){return Ga(),l1(i),t.flags|=256,Wt(e,t,r,n),t.child}var wy={dehydrated:null,treeContext:null,retryLane:0};function xy(e){return{baseLanes:e,cachePool:null,transitions:null}}function KE(e,t,r){var n=t.pendingProps,i=et.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ze(et,i&1),e===null)return hy(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):(a=n.children,e=n.fallback,o?(n=t.mode,o=t.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Bh(a,n,0,null),e=To(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=xy(r),t.memoizedState=wy,e):S1(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return DN(e,t,a,n,s,i,r);if(o){o=n.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Wi(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Wi(s,o):(o=To(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,a=e.child.memoizedState,a=a===null?xy(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~r,t.memoizedState=wy,n}return o=e.child,e=o.sibling,n=Wi(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function S1(e,t){return t=Bh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bc(e,t,r,n){return n!==null&&l1(n),qa(t,e.child,null,r),e=S1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function DN(e,t,r,n,i,o,a){if(r)return t.flags&256?(t.flags&=-257,n=Mm(Error(H(422))),Bc(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=Bh({mode:"visible",children:n.children},i,0,null),o=To(o,i,a,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&qa(t,e.child,null,a),t.child.memoizedState=xy(a),t.memoizedState=wy,o);if(!(t.mode&1))return Bc(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(H(419)),n=Mm(o,n,void 0),Bc(e,t,a,n)}if(s=(a&e.childLanes)!==0,Xt||s){if(n=Ot,n!==null){switch(a&-a){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&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Qn(e,i),Zr(n,e,i,-1))}return k1(),n=Mm(Error(H(421))),Bc(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=KN.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ur=Li(i.nextSibling),cr=t,Xe=!0,Yr=null,e!==null&&(Sr[Or++]=Dn,Sr[Or++]=Rn,Sr[Or++]=Ro,Dn=e.id,Rn=e.overflow,Ro=t),t=S1(t,n.children),t.flags|=4096,t)}function $2(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),py(e.return,t,r)}function jm(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function XE(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Wt(e,t,n.children,r),n=et.current,n&2)n=n&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&&$2(e,r,t);else if(e.tag===19)$2(e,r,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}n&=1}if(ze(et,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&td(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),jm(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&td(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}jm(t,!0,r,null,o);break;case"together":jm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),zo|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,r=Wi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Wi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function RN(e,t,r){switch(t.tag){case 3:qE(t),Ga();break;case 5:SE(t);break;case 1:Jt(t.type)&&Kf(t);break;case 4:p1(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ze(Qf,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ze(et,et.current&1),t.flags|=128,null):r&t.child.childLanes?KE(e,t,r):(ze(et,et.current&1),e=Jn(e,t,r),e!==null?e.sibling:null);ze(et,et.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return XE(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ze(et,et.current),n)break;return null;case 22:case 23:return t.lanes=0,VE(e,t,r)}return Jn(e,t,r)}var ZE,Sy,QE,JE;ZE=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Sy=function(){};QE=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,So(bn.current);var o=null;switch(r){case"input":i=Uv(e,i),n=Uv(e,n),o=[];break;case"select":i=rt({},i,{value:void 0}),n=rt({},n,{value:void 0}),o=[];break;case"textarea":i=Gv(e,i),n=Gv(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Gf)}Kv(r,n);var a;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Wl.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Wl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&We("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};JE=function(e,t,r,n){r!==n&&(t.flags|=4)};function el(e,t){if(!Xe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function $t(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function LN(e,t,r){var n=t.pendingProps;switch(s1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(t),null;case 1:return Jt(t.type)&&qf(),$t(t),null;case 3:return n=t.stateNode,Ka(),Ye(Qt),Ye(zt),v1(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yr!==null&&(Ty(Yr),Yr=null))),Sy(e,t),$t(t),null;case 5:m1(t);var i=So(eu.current);if(r=t.type,e!==null&&t.stateNode!=null)QE(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(H(166));return $t(t),null}if(e=So(bn.current),zc(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[dn]=t,n[Ql]=o,e=(t.mode&1)!==0,r){case"dialog":We("cancel",n),We("close",n);break;case"iframe":case"object":case"embed":We("load",n);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[dn]=t,e[Ql]=n,ZE(e,t,!1,!1),t.stateNode=e;e:{switch(a=Xv(r,n),r){case"dialog":We("cancel",e),We("close",e),i=n;break;case"iframe":case"object":case"embed":We("load",e),i=n;break;case"video":case"audio":for(i=0;iZa&&(t.flags|=128,n=!0,el(o,!1),t.lanes=4194304)}else{if(!n)if(e=td(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),el(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Xe)return $t(t),null}else 2*st()-o.renderingStartTime>Za&&r!==1073741824&&(t.flags|=128,n=!0,el(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=st(),t.sibling=null,r=et.current,ze(et,n?r&1|2:r&1),t):($t(t),null);case 22:case 23:return C1(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?or&1073741824&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function zN(e,t){switch(s1(t),t.tag){case 1:return Jt(t.type)&&qf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),Ye(Qt),Ye(zt),v1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return m1(t),null;case 13:if(Ye(et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ye(et),null;case 4:return Ka(),null;case 10:return f1(t.type._context),null;case 22:case 23:return C1(),null;case 24:return null;default:return null}}var Wc=!1,It=!1,FN=typeof WeakSet=="function"?WeakSet:Set,ee=null;function _a(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){nt(e,t,n)}else r.current=null}function Oy(e,t,r){try{r()}catch(n){nt(e,t,n)}}var N2=!1;function BN(e,t){if(ay=Uf,e=iE(),o1(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=a+i),f!==o||n!==0&&f.nodeType!==3||(l=a+n),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=a),d===o&&++c===n&&(l=a),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(sy={focusedElem:e,selectionRange:r},Uf=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,g=v.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:Br(t.type,p),g);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(w){nt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return v=N2,N2=!1,v}function jl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Oy(t,r,o)}i=i.next}while(i!==n)}}function zh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function _y(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function eC(e){var t=e.alternate;t!==null&&(e.alternate=null,eC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[Ql],delete t[cy],delete t[ON],delete t[_N])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function tC(e){return e.tag===5||e.tag===3||e.tag===4}function I2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tC(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 Py(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Gf));else if(n!==4&&(e=e.child,e!==null))for(Py(e,t,r),e=e.sibling;e!==null;)Py(e,t,r),e=e.sibling}function Ey(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Ey(e,t,r),e=e.sibling;e!==null;)Ey(e,t,r),e=e.sibling}var Ct=null,Wr=!1;function mi(e,t,r){for(r=r.child;r!==null;)rC(e,t,r),r=r.sibling}function rC(e,t,r){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(Mh,r)}catch{}switch(r.tag){case 5:It||_a(r,t);case 6:var n=Ct,i=Wr;Ct=null,mi(e,t,r),Ct=n,Wr=i,Ct!==null&&(Wr?(e=Ct,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ct.removeChild(r.stateNode));break;case 18:Ct!==null&&(Wr?(e=Ct,r=r.stateNode,e.nodeType===8?Pm(e.parentNode,r):e.nodeType===1&&Pm(e,r),Gl(e)):Pm(Ct,r.stateNode));break;case 4:n=Ct,i=Wr,Ct=r.stateNode.containerInfo,Wr=!0,mi(e,t,r),Ct=n,Wr=i;break;case 0:case 11:case 14:case 15:if(!It&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Oy(r,t,a),i=i.next}while(i!==n)}mi(e,t,r);break;case 1:if(!It&&(_a(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){nt(r,t,s)}mi(e,t,r);break;case 21:mi(e,t,r);break;case 22:r.mode&1?(It=(n=It)||r.memoizedState!==null,mi(e,t,r),It=n):mi(e,t,r);break;default:mi(e,t,r)}}function D2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FN),t.forEach(function(n){var i=XN.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function zr(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=a),n&=~o}if(n=i,n=st()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*HN(n/1960))-n,10e?16:e,Ti===null)var n=!1;else{if(e=Ti,Ti=null,ad=0,Pe&6)throw Error(H(331));var i=Pe;for(Pe|=4,ee=e.current;ee!==null;){var o=ee,a=o.child;if(ee.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lst()-P1?Ao(e,0):_1|=r),er(e,t)}function cC(e,t){t===0&&(e.mode&1?(t=$c,$c<<=1,!($c&130023424)&&($c=4194304)):t=1);var r=Ut();e=Qn(e,t),e!==null&&(tc(e,t,r),er(e,r))}function KN(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),cC(e,r)}function XN(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(H(314))}n!==null&&n.delete(t),cC(e,r)}var fC;fC=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qt.current)Xt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Xt=!1,RN(e,t,r);Xt=!!(e.flags&131072)}else Xt=!1,Xe&&t.flags&1048576&&mE(t,Zf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Pf(e,t),e=t.pendingProps;var i=Va(t,zt.current);$a(t,r),i=g1(null,t,n,e,i,r);var o=b1();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,Jt(n)?(o=!0,Kf(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,h1(t),i.updater=Lh,t.stateNode=i,i._reactInternals=t,vy(t,n,e,r),t=by(null,t,n,!0,o,r)):(t.tag=0,Xe&&o&&a1(t),Wt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Pf(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=QN(n),e=Br(n,e),i){case 0:t=gy(null,t,n,e,r);break e;case 1:t=M2(null,t,n,e,r);break e;case 11:t=A2(null,t,n,e,r);break e;case 14:t=T2(null,t,n,Br(n.type,e),r);break e}throw Error(H(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),gy(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),M2(e,t,n,i,r);case 3:e:{if(qE(t),e===null)throw Error(H(387));n=t.pendingProps,o=t.memoizedState,i=o.element,xE(e,t),ed(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Xa(Error(H(423)),t),t=j2(e,t,n,r,i);break e}else if(n!==i){i=Xa(Error(H(424)),t),t=j2(e,t,n,r,i);break e}else for(ur=Li(t.stateNode.containerInfo.firstChild),cr=t,Xe=!0,Yr=null,r=bE(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ga(),n===i){t=Jn(e,t,r);break e}Wt(e,t,n,r)}t=t.child}return t;case 5:return SE(t),e===null&&hy(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ly(n,i)?a=null:o!==null&&ly(n,o)&&(t.flags|=32),GE(e,t),Wt(e,t,a,r),t.child;case 6:return e===null&&hy(t),null;case 13:return KE(e,t,r);case 4:return p1(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=qa(t,null,n,r):Wt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),A2(e,t,n,i,r);case 7:return Wt(e,t,t.pendingProps,r),t.child;case 8:return Wt(e,t,t.pendingProps.children,r),t.child;case 12:return Wt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ze(Qf,n._currentValue),n._currentValue=a,o!==null)if(Jr(o.value,a)){if(o.children===i.children&&!Qt.current){t=Jn(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Hn(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),py(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(H(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),py(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Wt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,$a(t,r),i=jr(i),n=n(i),t.flags|=1,Wt(e,t,n,r),t.child;case 14:return n=t.type,i=Br(n,t.pendingProps),i=Br(n.type,i),T2(e,t,n,i,r);case 15:return YE(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Br(n,i),Pf(e,t),t.tag=1,Jt(n)?(e=!0,Kf(t)):e=!1,$a(t,r),WE(t,n,i),vy(t,n,i,r),by(null,t,n,!0,e,r);case 19:return XE(e,t,r);case 22:return VE(e,t,r)}throw Error(H(156,t.tag))};function dC(e,t){return zP(e,t)}function ZN(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Er(e,t,r,n){return new ZN(e,t,r,n)}function A1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QN(e){if(typeof e=="function")return A1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===q0)return 11;if(e===K0)return 14}return 2}function Wi(e,t){var r=e.alternate;return r===null?(r=Er(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function kf(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")A1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ma:return To(r.children,i,o,t);case G0:a=8,i|=8;break;case Fv:return e=Er(12,r,t,i|2),e.elementType=Fv,e.lanes=o,e;case Bv:return e=Er(13,r,t,i),e.elementType=Bv,e.lanes=o,e;case Wv:return e=Er(19,r,t,i),e.elementType=Wv,e.lanes=o,e;case SP:return Bh(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wP:a=10;break e;case xP:a=9;break e;case q0:a=11;break e;case K0:a=14;break e;case xi:a=16,n=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Er(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function To(e,t,r,n){return e=Er(7,e,n,t),e.lanes=r,e}function Bh(e,t,r,n){return e=Er(22,e,n,t),e.elementType=SP,e.lanes=r,e.stateNode={isHidden:!1},e}function $m(e,t,r){return e=Er(6,e,null,t),e.lanes=r,e}function Nm(e,t,r){return t=Er(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JN(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pm(0),this.expirationTimes=pm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pm(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function T1(e,t,r,n,i,o,a,s,l){return e=new JN(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Er(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},h1(o),e}function eI(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vC)}catch(e){console.error(e)}}vC(),vP.exports=mr;var _s=vP.exports;const oI=Me(_s);var yC,U2=_s;yC=U2.createRoot,U2.hydrateRoot;/** * @remix-run/router v1.18.0 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function gC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lI(){return Math.random().toString(36).substr(2,8)}function V2(e,t){return{usr:e.state,key:e.key,idx:t}}function My(e,t,r,n){return r===void 0&&(r=null),ou({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ps(t):t,{state:r,key:t&&t.key||n||lI()})}function ud(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ps(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function uI(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=Mi.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(ou({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=Mi.Pop;let g=c(),y=g==null?null:g-u;u=g,l&&l({action:s,location:p.location,delta:y})}function d(g,y){s=Mi.Push;let m=My(p.location,g,y);u=c()+1;let b=V2(m,u),w=p.createHref(m);try{a.pushState(b,"",w)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(w)}o&&l&&l({action:s,location:p.location,delta:1})}function h(g,y){s=Mi.Replace;let m=My(p.location,g,y);u=c();let b=V2(m,u),w=p.createHref(m);a.replaceState(b,"",w),o&&l&&l({action:s,location:p.location,delta:0})}function v(g){let y=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof g=="string"?g:ud(g);return m=m.replace(/ $/,"%20"),ct(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let p={get action(){return s},get location(){return e(i,a)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Y2,f),l=g,()=>{i.removeEventListener(Y2,f),l=null}},createHref(g){return t(i,g)},createURL:v,encodeLocation(g){let y=v(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(g){return a.go(g)}};return p}var G2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(G2||(G2={}));function cI(e,t,r){return r===void 0&&(r="/"),fI(e,t,r,!1)}function fI(e,t,r,n){let i=typeof t=="string"?Ps(t):t,o=N1(i.pathname||"/",r);if(o==null)return null;let a=bC(e);dI(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(ct(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Hi([n,l.relativePath]),c=r.concat(l);o.children&&o.children.length>0&&(ct(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),bC(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:bI(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of wC(o.path))i(o,a,l)}),t}function wC(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=wC(n.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function dI(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:wI(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const hI=/^:[\w-]+$/,pI=3,mI=2,vI=1,yI=10,gI=-2,q2=e=>e==="*";function bI(e,t){let r=e.split("/"),n=r.length;return r.some(q2)&&(n+=gI),t&&(n+=mI),r.filter(i=>!q2(i)).reduce((i,o)=>i+(hI.test(o)?pI:o===""?vI:yI),n)}function wI(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function xI(e,t,r){let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s{let{paramName:d,isOptional:h}=c;if(d==="*"){let p=s[f]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const v=s[f];return h&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function SI(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),gC(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function OI(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gC(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function N1(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function _I(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Ps(e):e;return{pathname:r?r.startsWith("/")?r:PI(r,t):t,search:kI(n),hash:AI(i)}}function PI(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Im(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function EI(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function xC(e,t){let r=EI(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function SC(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Ps(e):(i=ou({},e),ct(!i.pathname||!i.pathname.includes("?"),Im("?","pathname","search",i)),ct(!i.pathname||!i.pathname.includes("#"),Im("#","pathname","hash",i)),ct(!i.search||!i.search.includes("#"),Im("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let f=t.length-1;if(!n&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=_I(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Hi=e=>e.join("/").replace(/\/\/+/g,"/"),CI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function TI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const OC=["post","put","patch","delete"];new Set(OC);const MI=["get",...OC];new Set(MI);/** + */function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function gC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sI(){return Math.random().toString(36).substr(2,8)}function V2(e,t){return{usr:e.state,key:e.key,idx:t}}function My(e,t,r,n){return r===void 0&&(r=null),ou({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ps(t):t,{state:r,key:t&&t.key||n||sI()})}function ud(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ps(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function lI(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=Mi.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(ou({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=Mi.Pop;let g=c(),y=g==null?null:g-u;u=g,l&&l({action:s,location:p.location,delta:y})}function d(g,y){s=Mi.Push;let m=My(p.location,g,y);u=c()+1;let b=V2(m,u),w=p.createHref(m);try{a.pushState(b,"",w)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(w)}o&&l&&l({action:s,location:p.location,delta:1})}function h(g,y){s=Mi.Replace;let m=My(p.location,g,y);u=c();let b=V2(m,u),w=p.createHref(m);a.replaceState(b,"",w),o&&l&&l({action:s,location:p.location,delta:0})}function v(g){let y=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof g=="string"?g:ud(g);return m=m.replace(/ $/,"%20"),ct(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let p={get action(){return s},get location(){return e(i,a)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Y2,f),l=g,()=>{i.removeEventListener(Y2,f),l=null}},createHref(g){return t(i,g)},createURL:v,encodeLocation(g){let y=v(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(g){return a.go(g)}};return p}var G2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(G2||(G2={}));function uI(e,t,r){return r===void 0&&(r="/"),cI(e,t,r,!1)}function cI(e,t,r,n){let i=typeof t=="string"?Ps(t):t,o=N1(i.pathname||"/",r);if(o==null)return null;let a=bC(e);fI(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(ct(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Hi([n,l.relativePath]),c=r.concat(l);o.children&&o.children.length>0&&(ct(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),bC(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:gI(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of wC(o.path))i(o,a,l)}),t}function wC(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=wC(n.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function fI(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:bI(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dI=/^:[\w-]+$/,hI=3,pI=2,mI=1,vI=10,yI=-2,q2=e=>e==="*";function gI(e,t){let r=e.split("/"),n=r.length;return r.some(q2)&&(n+=yI),t&&(n+=pI),r.filter(i=>!q2(i)).reduce((i,o)=>i+(dI.test(o)?hI:o===""?mI:vI),n)}function bI(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function wI(e,t,r){let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s{let{paramName:d,isOptional:h}=c;if(d==="*"){let p=s[f]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}const v=s[f];return h&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function xI(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),gC(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function SI(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gC(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function N1(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function OI(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Ps(e):e;return{pathname:r?r.startsWith("/")?r:_I(r,t):t,search:CI(n),hash:kI(i)}}function _I(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Im(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function PI(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function xC(e,t){let r=PI(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function SC(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Ps(e):(i=ou({},e),ct(!i.pathname||!i.pathname.includes("?"),Im("?","pathname","search",i)),ct(!i.pathname||!i.pathname.includes("#"),Im("#","pathname","hash",i)),ct(!i.search||!i.search.includes("#"),Im("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let f=t.length-1;if(!n&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=OI(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Hi=e=>e.join("/").replace(/\/\/+/g,"/"),EI=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function AI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const OC=["post","put","patch","delete"];new Set(OC);const TI=["get",...OC];new Set(TI);/** * React Router v6.25.1 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),O.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=SC(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Hi([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,a,o,e])}function EC(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=O.useContext(Zo),{matches:i}=O.useContext(Qo),{pathname:o}=Gh(),a=JSON.stringify(xC(i,n.v7_relativeSplatPath));return O.useMemo(()=>SC(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function DI(e,t){return RI(e,t)}function RI(e,t,r,n){oc()||ct(!1);let{navigator:i}=O.useContext(Zo),{matches:o}=O.useContext(Qo),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Gh(),c;if(t){var f;let g=typeof t=="string"?Ps(t):t;l==="/"||(f=g.pathname)!=null&&f.startsWith(l)||ct(!1),c=g}else c=u;let d=c.pathname||"/",h=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=cI(e,{pathname:h}),p=WI(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Hi([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Hi([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r,n);return t&&p?O.createElement(Vh.Provider,{value:{location:au({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Mi.Pop}},p):p}function LI(){let e=VI(),t=TI(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),r?O.createElement("pre",{style:i},r):null,null)}const zI=O.createElement(LI,null);class FI extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?O.createElement(Qo.Provider,{value:this.props.routeContext},O.createElement(_C.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BI(e){let{routeContext:t,match:r,children:n}=e,i=O.useContext(I1);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),O.createElement(Qo.Provider,{value:t},n)}function WI(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let a=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||ct(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,f,d)=>{let h,v=!1,p=null,g=null;r&&(h=s&&f.route.id?s[f.route.id]:void 0,p=f.route.errorElement||zI,l&&(u<0&&d===0?(v=!0,g=null):u===d&&(v=!0,g=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,d+1)),m=()=>{let b;return h?b=p:v?b=g:f.route.Component?b=O.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,O.createElement(BI,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?O.createElement(FI,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var CC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(CC||{}),cd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(cd||{});function HI(e){let t=O.useContext(I1);return t||ct(!1),t}function UI(e){let t=O.useContext(jI);return t||ct(!1),t}function YI(e){let t=O.useContext(Qo);return t||ct(!1),t}function kC(e){let t=YI(),r=t.matches[t.matches.length-1];return r.route.id||ct(!1),r.route.id}function VI(){var e;let t=O.useContext(_C),r=UI(cd.UseRouteError),n=kC(cd.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function GI(){let{router:e}=HI(CC.UseNavigateStable),t=kC(cd.UseNavigateStable),r=O.useRef(!1);return PC(()=>{r.current=!0}),O.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,au({fromRouteId:t},o)))},[e,t])}function vo(e){ct(!1)}function qI(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Mi.Pop,navigator:o,static:a=!1,future:s}=e;oc()&&ct(!1);let l=t.replace(/^\/*/,"/"),u=O.useMemo(()=>({basename:l,navigator:o,static:a,future:au({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof n=="string"&&(n=Ps(n));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:v="default"}=n,p=O.useMemo(()=>{let g=N1(c,l);return g==null?null:{location:{pathname:g,search:f,hash:d,state:h,key:v},navigationType:i}},[l,c,f,d,h,v,i]);return p==null?null:O.createElement(Zo.Provider,{value:u},O.createElement(Vh.Provider,{children:r,value:p}))}function KI(e){let{children:t,location:r}=e;return DI(jy(t),r)}new Promise(()=>{});function jy(e,t){t===void 0&&(t=[]);let r=[];return O.Children.forEach(e,(n,i)=>{if(!O.isValidElement(n))return;let o=[...t,i];if(n.type===O.Fragment){r.push.apply(r,jy(n.props.children,o));return}n.type!==vo&&ct(!1),!n.props.index||!n.props.children||ct(!1);let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=jy(n.props.children,o)),r.push(a)}),r}/** + */function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),O.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=SC(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Hi([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,a,o,e])}function EC(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=O.useContext(Zo),{matches:i}=O.useContext(Qo),{pathname:o}=Gh(),a=JSON.stringify(xC(i,n.v7_relativeSplatPath));return O.useMemo(()=>SC(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function II(e,t){return DI(e,t)}function DI(e,t,r,n){oc()||ct(!1);let{navigator:i}=O.useContext(Zo),{matches:o}=O.useContext(Qo),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=Gh(),c;if(t){var f;let g=typeof t=="string"?Ps(t):t;l==="/"||(f=g.pathname)!=null&&f.startsWith(l)||ct(!1),c=g}else c=u;let d=c.pathname||"/",h=d;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=uI(e,{pathname:h}),p=BI(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Hi([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Hi([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r,n);return t&&p?O.createElement(Vh.Provider,{value:{location:au({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Mi.Pop}},p):p}function RI(){let e=YI(),t=AI(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),r?O.createElement("pre",{style:i},r):null,null)}const LI=O.createElement(RI,null);class zI extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?O.createElement(Qo.Provider,{value:this.props.routeContext},O.createElement(_C.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FI(e){let{routeContext:t,match:r,children:n}=e,i=O.useContext(I1);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),O.createElement(Qo.Provider,{value:t},n)}function BI(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let a=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||ct(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,f,d)=>{let h,v=!1,p=null,g=null;r&&(h=s&&f.route.id?s[f.route.id]:void 0,p=f.route.errorElement||LI,l&&(u<0&&d===0?(v=!0,g=null):u===d&&(v=!0,g=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,d+1)),m=()=>{let b;return h?b=p:v?b=g:f.route.Component?b=O.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,O.createElement(FI,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?O.createElement(zI,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var CC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(CC||{}),cd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(cd||{});function WI(e){let t=O.useContext(I1);return t||ct(!1),t}function HI(e){let t=O.useContext(MI);return t||ct(!1),t}function UI(e){let t=O.useContext(Qo);return t||ct(!1),t}function kC(e){let t=UI(),r=t.matches[t.matches.length-1];return r.route.id||ct(!1),r.route.id}function YI(){var e;let t=O.useContext(_C),r=HI(cd.UseRouteError),n=kC(cd.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function VI(){let{router:e}=WI(CC.UseNavigateStable),t=kC(cd.UseNavigateStable),r=O.useRef(!1);return PC(()=>{r.current=!0}),O.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,au({fromRouteId:t},o)))},[e,t])}function vo(e){ct(!1)}function GI(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Mi.Pop,navigator:o,static:a=!1,future:s}=e;oc()&&ct(!1);let l=t.replace(/^\/*/,"/"),u=O.useMemo(()=>({basename:l,navigator:o,static:a,future:au({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof n=="string"&&(n=Ps(n));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:v="default"}=n,p=O.useMemo(()=>{let g=N1(c,l);return g==null?null:{location:{pathname:g,search:f,hash:d,state:h,key:v},navigationType:i}},[l,c,f,d,h,v,i]);return p==null?null:O.createElement(Zo.Provider,{value:u},O.createElement(Vh.Provider,{children:r,value:p}))}function qI(e){let{children:t,location:r}=e;return II(jy(t),r)}new Promise(()=>{});function jy(e,t){t===void 0&&(t=[]);let r=[];return O.Children.forEach(e,(n,i)=>{if(!O.isValidElement(n))return;let o=[...t,i];if(n.type===O.Fragment){r.push.apply(r,jy(n.props.children,o));return}n.type!==vo&&ct(!1),!n.props.index||!n.props.children||ct(!1);let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=jy(n.props.children,o)),r.push(a)}),r}/** * React Router DOM v6.25.1 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function $y(){return $y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function ZI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QI(e,t){return e.button===0&&(!t||t==="_self")&&!ZI(e)}const JI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],eD="6";try{window.__reactRouterVersion=eD}catch{}const tD="startTransition",X2=pP[tD];function rD(e){let{basename:t,children:r,future:n,window:i}=e,o=O.useRef();o.current==null&&(o.current=sI({window:i,v5Compat:!0}));let a=o.current,[s,l]=O.useState({action:a.action,location:a.location}),{v7_startTransition:u}=n||{},c=O.useCallback(f=>{u&&X2?X2(()=>l(f)):l(f)},[l,u]);return O.useLayoutEffect(()=>a.listen(c),[a,c]),O.createElement(qI,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const nD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hn=O.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=XI(t,JI),{basename:h}=O.useContext(Zo),v,p=!1;if(typeof u=="string"&&iD.test(u)&&(v=u,nD))try{let b=new URL(window.location.href),w=u.startsWith("//")?new URL(b.protocol+u):new URL(u),x=N1(w.pathname,h);w.origin===b.origin&&x!=null?u=x+w.search+w.hash:p=!0}catch{}let g=$I(u,{relative:i}),y=oD(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||y(b)}return O.createElement("a",$y({},d,{href:v||g,onClick:p||o?n:m,ref:r,target:l}))});var Z2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Z2||(Z2={}));var Q2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Q2||(Q2={}));function oD(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=NI(),u=Gh(),c=EC(e,{relative:a});return O.useCallback(f=>{if(QI(f,r)){f.preventDefault();let d=n!==void 0?n:ud(u)===ud(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,c,n,i,r,e,o,a,s])}const AC="/GreenSky/assets/icon-BDf3BRCz.png";var TC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},J2=$.createContext&&$.createContext(TC),aD=["attr","size","title"];function sD(e,t){if(e==null)return{};var r=lD(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t$.createElement(t.tag,dd({key:r},t.attr),MC(t.child)))}function Pn(e){return t=>$.createElement(dD,fd({attr:dd({},e.attr)},t),MC(e.child))}function dD(e){var t=r=>{var{attr:n,size:i,title:o}=e,a=sD(e,aD),s=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),$.createElement("svg",fd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:dd(dd({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&$.createElement("title",null,o),e.children)};return J2!==void 0?$.createElement(J2.Consumer,null,r=>t(r)):t(TC)}function hD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"},child:[]}]})(e)}function pD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function mD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function vD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function yD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"},child:[]}]})(e)}function gD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"},child:[]}]})(e)}function bD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32H96c17.7 0 32 14.3 32 32V448h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H64V256H32c-17.7 0-32-14.3-32-32z"},child:[]}]})(e)}function wD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"},child:[]}]})(e)}function xD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32 32C14.3 32 0 46.3 0 64V448c0 17.7 14.3 32 32 32s32-14.3 32-32V266.3L149.2 96H64V64c0-17.7-14.3-32-32-32zM405.2 96H330.8l-5.4 10.7L234.8 288h74.3l5.4-10.7L405.2 96zM362.8 288h74.3l5.4-10.7L533.2 96H458.8l-5.4 10.7L362.8 288zM202.8 96l-5.4 10.7L106.8 288h74.3l5.4-10.7L277.2 96H202.8zm288 192H576V448c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v53.7L490.8 288z"},child:[]}]})(e)}function SD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"},child:[]}]})(e)}function jC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{r(!t)};return P.jsx("nav",{className:"bg-white border-gray-200 bg-gradient-to-b from-[#000] to-[#333] ",children:P.jsxs("div",{className:"max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4",children:[P.jsxs("a",{href:"",className:"flex items-center space-x-3 rtl:space-x-reverse",children:[P.jsx("img",{src:AC,alt:"icon",className:"w-8 h-8"}),P.jsx("p",{className:"text-2xl text-green-500 font-bold font-Playwrite",children:"GreenSky"})]}),P.jsxs("button",{onClick:o,type:"button",className:"inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600","aria-controls":"navbar-default","aria-expanded":t?"true":"false",children:[P.jsx("span",{className:"sr-only",children:"Open main menu"}),t?P.jsx(SD,{className:"w-4 h-4"}):P.jsx(yD,{className:"w-4 h-4"})]}),P.jsx("div",{className:`w-full md:block md:w-auto ${t?"block":"hidden"}`,id:"navbar-default",children:P.jsxs("ul",{className:"font-medium flex flex-col p-4 md:p-0 mt-4 rounded-lg md:flex-row md:space-x-8 rtl:space-x-reverse md:mt-0",children:[P.jsx("li",{children:P.jsx(hn,{to:"/",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="home"&&"bg-green-700 md:text-green-500"),onClick:()=>i("home"),children:"Home"})}),P.jsx("li",{children:P.jsx(hn,{to:"/about",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="about"&&"bg-green-700 md:text-green-500"),onClick:()=>i("about"),children:"About"})}),P.jsx("li",{children:P.jsx(hn,{to:"/services",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="services"&&"bg-green-700 md:text-green-500"),onClick:()=>i("services"),children:"Services"})}),P.jsx("li",{children:P.jsx(hn,{to:"/blog",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="blog"&&"bg-green-700 md:text-green-500"),onClick:()=>i("blog"),children:"Blog"})}),P.jsx("li",{children:P.jsx(hn,{to:"/contact",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="contact"&&"bg-green-700 md:text-green-500"),onClick:()=>i("contact"),children:"Contact"})})]})})]})})}function _D(){return P.jsxs("footer",{className:"bg-base-300 text-neutral-400",children:[P.jsxs("div",{className:"w-full justify-between flex-wrap flex p-4 my-4 md:w-10/12 mx-auto gap-4",children:[P.jsxs("a",{href:"",className:"flex gap-3 items-center",children:[P.jsx("img",{src:AC,alt:"icon",className:"w-8 h-8"}),P.jsx("p",{className:"text-2xl text-green-500 font-bold font-Playwrite",children:"GreenSky"})]}),P.jsxs("div",{className:"flex flex-wrap grow justify-evenly gap-5",children:[P.jsxs("div",{children:[P.jsx("div",{className:" w-fit text-neutral-300 border-b-2 mb-2 font-medium border-green-500 pr-5",children:"GreenSky"}),P.jsxs("ul",{className:"flex flex-row gap-3 md:flex-col md:gap-0",children:[P.jsx("li",{children:P.jsx(hn,{to:"/",className:"hover:text-neutral-200 duration-300",children:"Home"})}),P.jsx("li",{children:P.jsx(hn,{to:"/about",className:"hover:text-neutral-200 duration-300",children:"About"})}),P.jsx("li",{children:P.jsx(hn,{to:"/contact",className:"hover:text-neutral-200 duration-300",children:"Contact"})})]})]}),P.jsxs("div",{children:[P.jsx("div",{className:" w-fit text-neutral-300 border-b-2 mb-2 font-medium border-green-500 pr-5",children:"More"}),P.jsxs("ul",{className:"flex flex-row gap-3 md:flex-col md:gap-0",children:[P.jsx("li",{children:P.jsx(hn,{to:"/blog",className:"hover:text-neutral-200 duration-300",children:"Blogs"})}),P.jsx("li",{children:P.jsx(hn,{to:"/services",className:"hover:text-neutral-200 duration-300",children:"Services"})})]})]})]}),P.jsxs("div",{className:"flex flex-col items-start gap-5",children:[P.jsxs("div",{children:[P.jsx("div",{className:" w-fit text-neutral-300 border-b-2 mb-2 font-medium border-green-500 pr-5",children:"Newsletter"}),P.jsxs("div",{className:"flex gap-2",children:[P.jsxs("label",{className:"input rounded input-sm input-bordered flex items-center gap-2",children:[P.jsx(gD,{}),P.jsx("input",{type:"text",className:"grow",placeholder:"john.doe@xyz.com"})]}),P.jsx("button",{className:"btn btn-sm bg-green-500 rounded hover:bg-green-600 text-black",children:"subscribe"})]})]}),P.jsxs("div",{children:[P.jsx("div",{className:"w-fit text-neutral-300 border-b-2 mb-2 font-medium border-green-500 pr-5",children:"Follow Us"}),P.jsxs("div",{className:"flex gap-2",children:[P.jsx("a",{href:"",className:"rounded-full text-xl hover:bg-white/15 hover:text-gray-200 duration-200 p-1",children:P.jsx(hD,{})}),P.jsx("a",{href:"",className:"rounded-full text-xl hover:bg-white/15 hover:text-gray-200 duration-200 p-1",children:P.jsx(mD,{})}),P.jsx("a",{href:"",className:"rounded-full text-xl hover:bg-white/15 hover:text-gray-200 duration-200 p-1",children:P.jsx(vD,{})}),P.jsx("a",{href:"",className:"rounded-full text-xl hover:bg-white/15 hover:text-gray-200 duration-200 p-1",children:P.jsx(pD,{})})]})]})]})]}),P.jsx("div",{className:"bg-base-100",children:P.jsxs("div",{className:"flex flex-col md:flex-row gap-2 w-full py-4 md:w-10/12 mx-auto justify-between items-center",children:[P.jsxs("div",{className:"flex gap-4",children:[P.jsx("a",{href:"",className:"hover:text-neutral-200 duration-300",children:"Terms & Conditions"}),P.jsx("a",{href:"",className:"hover:text-neutral-200 duration-300",children:"Privacy Policy"}),P.jsx("a",{href:"",className:"hover:text-neutral-200 duration-300",children:"Cookies"})]}),P.jsxs("p",{className:"text-xs",children:["© GreenSky ",new Date().getFullYear()," All Rights Reserved"]})]})})]})}const D1="-";function PD(e){const t=CD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function i(a){const s=a.split(D1);return s[0]===""&&s.length!==1&&s.shift(),$C(s,t)||ED(a)}function o(a,s){const l=r[a]||[];return s&&n[a]?[...l,...n[a]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:o}}function $C(e,t){var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?$C(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(D1);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId}const tx=/^\[(.+)\]$/;function ED(e){if(tx.test(e)){const t=tx.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function CD(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return AD(Object.entries(e.classGroups),r).forEach(([o,a])=>{Ny(a,n,o,t)}),n}function Ny(e,t,r,n){e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:rx(t,i);o.classGroupId=r;return}if(typeof i=="function"){if(kD(i)){Ny(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([o,a])=>{Ny(a,rx(t,o),r,n)})})}function rx(e,t){let r=e;return t.split(D1).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function kD(e){return e.isThemeGetter}function AD(e,t){return t?e.map(([r,n])=>{const i=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[r,i]}):e}function TD(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function i(o,a){r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)}return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return i(o,a),a},set(o,a){r.has(o)?r.set(o,a):i(o,a)}}}const NC="!";function MD(e){const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],o=t.length;function a(s){const l=[];let u=0,c=0,f;for(let g=0;gc?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:p}}return r?function(l){return r({className:l,parseClassName:a})}:a}function jD(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function $D(e){return{cache:TD(e.cacheSize),parseClassName:MD(e),...PD(e)}}const ND=/\s+/;function ID(e,t){const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=new Set;return e.trim().split(ND).map(a=>{const{modifiers:s,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=r(a);let f=!!c,d=n(f?u.substring(0,c):u);if(!d){if(!f)return{isTailwindClass:!1,originalClassName:a};if(d=n(u),!d)return{isTailwindClass:!1,originalClassName:a};f=!1}const h=jD(s).join(":");return{isTailwindClass:!0,modifierId:l?h+NC:h,classGroupId:d,originalClassName:a,hasPostfixModifier:f}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:s,classGroupId:l,hasPostfixModifier:u}=a,c=s+l;return o.has(c)?!1:(o.add(c),i(l,u).forEach(f=>o.add(s+f)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function DD(){let e=0,t,r,n="";for(;ef(c),e());return r=$D(u),n=r.cache.get,i=r.cache.set,o=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=ID(l,r);return i(l,c),c}return function(){return o(DD.apply(null,arguments))}}function Be(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const DC=/^\[(?:([a-z-]+):)?(.+)\]$/i,LD=/^\d+\/\d+$/,zD=new Set(["px","full","screen"]),FD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,BD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,WD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,HD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,UD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Tn(e){return Oo(e)||zD.has(e)||LD.test(e)}function vi(e){return Es(e,"length",QD)}function Oo(e){return!!e&&!Number.isNaN(Number(e))}function Yc(e){return Es(e,"number",Oo)}function rl(e){return!!e&&Number.isInteger(Number(e))}function YD(e){return e.endsWith("%")&&Oo(e.slice(0,-1))}function ue(e){return DC.test(e)}function yi(e){return FD.test(e)}const VD=new Set(["length","size","percentage"]);function GD(e){return Es(e,VD,RC)}function qD(e){return Es(e,"position",RC)}const KD=new Set(["image","url"]);function XD(e){return Es(e,KD,eR)}function ZD(e){return Es(e,"",JD)}function nl(){return!0}function Es(e,t,r){const n=DC.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function QD(e){return BD.test(e)&&!WD.test(e)}function RC(){return!1}function JD(e){return HD.test(e)}function eR(e){return UD.test(e)}function tR(){const e=Be("colors"),t=Be("spacing"),r=Be("blur"),n=Be("brightness"),i=Be("borderColor"),o=Be("borderRadius"),a=Be("borderSpacing"),s=Be("borderWidth"),l=Be("contrast"),u=Be("grayscale"),c=Be("hueRotate"),f=Be("invert"),d=Be("gap"),h=Be("gradientColorStops"),v=Be("gradientColorStopPositions"),p=Be("inset"),g=Be("margin"),y=Be("opacity"),m=Be("padding"),b=Be("saturate"),w=Be("scale"),x=Be("sepia"),S=Be("skew"),_=Be("space"),E=Be("translate"),A=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",ue,t],k=()=>[ue,t],j=()=>["",Tn,vi],M=()=>["auto",Oo,ue],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",ue],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Oo,Yc],G=()=>[Oo,ue];return{cacheSize:500,separator:":",theme:{colors:[nl],spacing:[Tn,vi],blur:["none","",yi,ue],brightness:Y(),borderColor:[e],borderRadius:["none","","full",yi,ue],borderSpacing:k(),borderWidth:j(),contrast:Y(),grayscale:L(),hueRotate:G(),invert:L(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[YD,vi],inset:T(),margin:T(),opacity:Y(),padding:k(),saturate:Y(),scale:Y(),sepia:L(),skew:G(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[yi]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),ue]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",rl,ue]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",rl,ue]}],"grid-cols":[{"grid-cols":[nl]}],"col-start-end":[{col:["auto",{span:["full",rl,ue]},ue]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[nl]}],"row-start-end":[{row:["auto",{span:[rl,ue]},ue]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[yi]},yi]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yi,vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yc]}],"font-family":[{font:[nl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ue]}],"line-clamp":[{"line-clamp":["none",Oo,Yc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,vi]}],"underline-offset":[{"underline-offset":["auto",Tn,ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),qD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},XD]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:I()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[Tn,ue]}],"outline-w":[{outline:[Tn,vi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Tn,vi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yi,ZD]}],"shadow-color":[{shadow:[nl]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",yi,ue]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ue]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[rl,ue]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tn,vi,Yc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const rR=RD(tR),nR="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20version='1.1'%20xml:space='preserve'%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20d='m500.75,358.16c-6.22,0%20-11.26,-5.04%20-11.26,-11.25l0,-16.45c0,-9.66%20-7.85,-17.52%20-17.51,-17.52c-6.21,0%20-11.25,-5.04%20-11.25,-11.25s5.04,-11.25%2011.25,-11.25c22.07,0%2040.02,17.95%2040.02,40.02l0,16.45c0,6.21%20-5.04,11.25%20-11.25,11.25z'%20fill='%23FFBE24'%20id='svg_1'/%3e%3cpath%20d='m295.14,300.71l-54.03,0c-8.85,0%20-16.02,-7.17%20-16.02,-16.02c0,-8.84%207.17,-16.02%2016.02,-16.02l54.03,0c8.85,0%2016.02,7.17%2016.02,16.02c0,8.85%20-7.17,16.02%20-16.02,16.02z'%20fill='%23212A2D'%20id='svg_2'/%3e%3cpath%20d='m268.12,300.71l-27.01,0c-8.85,0%20-16.02,-7.17%20-16.02,-16.02c0,-8.84%207.17,-16.02%2016.02,-16.02l27.01,0l0,32.04z'%20fill='%232E373A'%20id='svg_3'/%3e%3cpath%20d='m463.22,284.69l-447.2,0c-8.85,0%20-16.02,7.17%20-16.02,16.02l0,141.1c0,8.84%207.17,16.01%2016.02,16.01l447.2,0c8.84,0%2016.02,-7.17%2016.02,-16.01l0,-141.1c0,-8.85%20-7.18,-16.02%20-16.02,-16.02z'%20fill='%23128CB3'%20id='svg_4'/%3e%3cpath%20d='m463.22,284.69l-68.59,0l0,173.13l68.59,0c8.84,0%2016.02,-7.17%2016.02,-16.02l0,-141.09c0,-8.85%20-7.18,-16.02%20-16.02,-16.02z'%20fill='%23BDDEFF'%20id='svg_5'/%3e%3crect%20fill='%23D7EBFF'%20height='173.13'%20id='svg_6'%20width='42.3'%20x='394.63'%20y='284.7'/%3e%3cpath%20d='m420.92,387.87l0,-33.22c0,-8.85%207.17,-16.02%2016.02,-16.02s16.01,7.17%2016.01,16.02l0,33.22c0,8.84%20-7.17,16.01%20-16.01,16.01s-16.02,-7.17%20-16.02,-16.01z'%20fill='%237A4126'%20id='svg_7'/%3e%3cpath%20d='m239.62,284.69l-224.63,0c-8.28,0%20-14.99,7.17%20-14.99,16.02l0,141.1c0,8.84%206.71,16.01%2014.99,16.01l224.63,0l0,-173.13z'%20fill='%2334B2D9'%20id='svg_8'/%3e%3cpath%20d='m420.92,387.87l0,-33.22c0,-8.85%207.17,-16.02%2016.02,-16.02l0,65.25c-8.85,0%20-16.02,-7.17%20-16.02,-16.01z'%20fill='%23995D3D'%20id='svg_9'/%3e%3cpath%20d='m0,373.88l0,67.92c0,8.85%207.17,16.02%2016.02,16.02l447.2,0c8.84,0%2016.02,-7.17%2016.02,-16.02l0,-67.92l-479.24,0l0,0z'%20fill='%23F9AA1A'%20id='svg_10'/%3e%3cpath%20d='m0,373.88l0,67.92c0,8.85%207.17,16.02%2016.02,16.02l223.6,0l0,-83.94l-239.62,0l0,0z'%20fill='%23FFBE24'%20id='svg_11'/%3e%3cpath%20d='m382.73,499.32c-26.32,0%20-47.73,-21.4%20-47.73,-47.72c0,-26.31%2021.41,-47.72%2047.73,-47.72c26.31,0%2047.72,21.41%2047.72,47.72c0,26.32%20-21.41,47.72%20-47.72,47.72z'%20fill='%23212A2D'%20id='svg_12'/%3e%3cpath%20d='m382.73,499.32c-26.32,0%20-47.73,-21.4%20-47.73,-47.72c0,-26.31%2021.41,-47.72%2047.73,-47.72l0,95.44z'%20fill='%232E373A'%20id='svg_13'/%3e%3ccircle%20cx='382.72'%20cy='451.6'%20fill='%23A2B3BF'%20id='svg_14'%20r='15.69'/%3e%3cpath%20d='m382.73,467.29c-8.67,0%20-15.69,-7.02%20-15.69,-15.69c0,-8.66%207.02,-15.69%2015.69,-15.69l0,31.38z'%20fill='%23C9D2D9'%20id='svg_15'/%3e%3cpath%20d='m83.21,499.32c-26.32,0%20-47.72,-21.4%20-47.72,-47.72c0,-26.31%2021.4,-47.72%2047.72,-47.72s47.72,21.41%2047.72,47.72c0,26.32%20-21.41,47.72%20-47.72,47.72z'%20fill='%23212A2D'%20id='svg_16'/%3e%3cpath%20d='m83.21,499.32c-26.32,0%20-47.72,-21.4%20-47.72,-47.72c0,-26.31%2021.4,-47.72%2047.72,-47.72l0,95.44z'%20fill='%232E373A'%20id='svg_17'/%3e%3ccircle%20cx='83.21'%20cy='451.6'%20fill='%23A2B3BF'%20id='svg_18'%20r='15.69'/%3e%3cpath%20d='m83.21,467.29c-8.67,0%20-15.69,-7.02%20-15.69,-15.69c0,-8.66%207.02,-15.69%2015.69,-15.69l0,31.38z'%20fill='%23C9D2D9'%20id='svg_19'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",iR="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20version='1.1'%20xml:space='preserve'%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3cpath%20d='m457.1,311.79l-119.97,0l-41.86,-62.6c-14.79,-22.12%20-39.5,-35.32%20-66.1,-35.32l-119.16,0c-60.66,0%20-110.01,49.35%20-110.01,110.01l0,103.09c0,9.53%207.73,17.26%2017.26,17.26l477.48,0c9.53,0%2017.26,-7.72%2017.26,-17.26l0,-60.27c0,-30.28%20-24.63,-54.91%20-54.9,-54.91z'%20fill='%23BA2B11'%20id='svg_1'/%3e%3cpath%20d='m250.25,216.7c-6.78,-1.86%20-13.86,-2.83%20-21.08,-2.83l-119.16,0c-60.66,0%20-110.01,49.35%20-110.01,110.01l0,103.09c0,9.53%207.73,17.26%2017.26,17.26l232.99,0l0,-227.53z'%20fill='%23E64122'%20id='svg_2'/%3e%3cpath%20d='m272.05,394.34l-22.44,0c-9.53,0%20-17.26,-7.73%20-17.26,-17.26c0,-9.53%207.73,-17.26%2017.26,-17.26l22.44,0c9.53,0%2017.25,7.73%2017.25,17.26c0,9.53%20-7.72,17.26%20-17.25,17.26z'%20fill='%23212A2D'%20id='svg_3'/%3e%3cpath%20d='m260.83,394.34l-11.22,0c-9.53,0%20-17.26,-7.73%20-17.26,-17.26c0,-9.53%207.73,-17.26%2017.26,-17.26l11.22,0l0,34.52z'%20fill='%232E373A'%20id='svg_4'/%3e%3cpath%20d='m424.98,500.13c-31.39,0%20-56.92,-25.54%20-56.92,-56.93s25.53,-56.93%2056.92,-56.93s56.93,25.54%2056.93,56.93s-25.54,56.93%20-56.93,56.93z'%20fill='%23212A2D'%20id='svg_5'/%3e%3cpath%20d='m424.98,500.13c-31.39,0%20-56.92,-25.54%20-56.92,-56.93s25.53,-56.93%2056.92,-56.93l0,113.86z'%20fill='%232E373A'%20id='svg_6'/%3e%3ccircle%20cx='424.99'%20cy='443.2'%20fill='%23A2B3BF'%20id='svg_7'%20r='22.94'/%3e%3cpath%20d='m424.98,466.14c-12.67,0%20-22.94,-10.27%20-22.94,-22.94c0,-12.67%2010.27,-22.94%2022.94,-22.94l0,45.88z'%20fill='%23C9D2D9'%20id='svg_8'/%3e%3cpath%20d='m107.62,500.13c-31.39,0%20-56.92,-25.54%20-56.92,-56.93s25.53,-56.93%2056.92,-56.93s56.93,25.54%2056.93,56.93s-25.54,56.93%20-56.93,56.93z'%20fill='%23212A2D'%20id='svg_9'/%3e%3cpath%20d='m107.62,500.13c-31.39,0%20-56.92,-25.54%20-56.92,-56.93s25.53,-56.93%2056.92,-56.93l0,113.86z'%20fill='%232E373A'%20id='svg_10'/%3e%3ccircle%20cx='107.63'%20cy='443.2'%20fill='%23A2B3BF'%20id='svg_11'%20r='22.94'/%3e%3cpath%20d='m107.62,466.14c-12.67,0%20-22.94,-10.27%20-22.94,-22.94c0,-12.67%2010.27,-22.94%2022.94,-22.94c0,0%200,45.88%200,45.88z'%20fill='%23C9D2D9'%20id='svg_12'/%3e%3cpath%20d='m0.67,311.79c6.03,-54.99%2052.76,-97.92%20109.34,-97.92l119.16,0c26.6,0%2051.31,13.21%2066.1,35.32l41.86,62.6l-336.46,0z'%20fill='%23BDDEFF'%20id='svg_13'/%3e%3cpath%20d='m0.67,311.79c6.03,-54.99%2052.76,-97.92%20109.34,-97.92l119.16,0c7.22,0%2014.3,0.97%2021.08,2.83l0,95.1l-249.58,0l0,-0.01z'%20fill='%23D7EBFF'%20id='svg_14'/%3e%3cpath%20d='m0.67,311.79c6.03,-54.99%2052.76,-97.92%20109.34,-97.92l104.57,0l0,97.92l-213.91,0z'%20fill='%23128CB3'%20id='svg_15'/%3e%3cpath%20d='m0.67,311.79c5.95,-54.21%2051.46,-96.71%20106.95,-97.89l0,97.89l-106.95,0z'%20fill='%2334B2D9'%20id='svg_16'/%3e%3c/g%3e%3c/svg%3e",oR="/GreenSky/assets/motorbike-BIsWQKNB.svg",aR="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20width='511.999'%20height='511.999'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20version='1.1'%20xml:space='preserve'%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3cpath%20d='m506.84,382c-19.29,-30.95%20-52.58,-49.43%20-89.05,-49.43l-293.97,0l-46.85,-66.48c-3.03,-4.3%20-7.96,-6.86%20-13.23,-6.86l-31.85,0c-8.94,0%20-16.18,7.25%20-16.18,16.18l0,55.02c0,14.36%203.23,28.81%209.34,41.8c0.62,1.31%201.41,2.54%202.35,3.64l9.96,11.63c25.42,29.69%2062.41,46.71%20101.48,46.71l339.01,0c12.4,0%2023.84,-6.73%2029.86,-17.57c6.02,-10.84%205.68,-24.11%20-0.87,-34.64z'%20fill='%23BA2B11'%20id='svg_1'/%3e%3cpath%20d='m258.47,332.57l-134.65,0l-46.85,-66.48c-3.03,-4.3%20-7.96,-6.86%20-13.23,-6.86l-31.85,0c-8.94,0%20-16.18,7.25%20-16.18,16.18l0,55.02c0,14.36%203.23,28.81%209.34,41.8c0.62,1.31%201.41,2.54%202.35,3.64l9.96,11.63c25.42,29.69%2062.41,46.71%20101.48,46.71l119.63,0l0,-101.64z'%20fill='%23E64122'%20id='svg_2'/%3e%3cpath%20d='m337.64,385.93l-102.24,0c-21.74,0%20-39.43,17.68%20-39.43,39.42c0,21.74%2017.69,39.42%2039.43,39.42l102.25,0c21.73,0%2039.42,-17.69%2039.42,-39.42c0,-21.74%20-17.69,-39.42%20-39.43,-39.42z'%20fill='%23F9AA1A'%20id='svg_3'/%3e%3cpath%20d='m258.47,385.93l-23.07,0c-21.74,0%20-39.43,17.68%20-39.43,39.42c0,21.74%2017.69,39.42%2039.43,39.42l23.07,0l0,-78.84z'%20fill='%23FFBE24'%20id='svg_4'/%3e%3cpath%20d='m235.4,385.93c-21.74,0%20-39.43,17.68%20-39.43,39.42c0,21.74%2017.69,39.42%2039.43,39.42l0,-78.84z'%20fill='%232E373A'%20id='svg_5'/%3e%3cpath%20d='m47.71,362.9l-31.53,0c-8.93,0%20-16.18,-7.24%20-16.18,-16.18c0,-8.94%207.25,-16.19%2016.18,-16.19l31.53,0c8.93,0%2016.18,7.25%2016.18,16.19c0,8.94%20-7.25,16.18%20-16.18,16.18z'%20fill='%23F9AA1A'%20id='svg_6'/%3e%3cpath%20d='m31.95,362.9l-15.77,0c-8.93,0%20-16.18,-7.24%20-16.18,-16.18c0,-8.94%207.25,-16.19%2016.18,-16.19l15.77,0l0,32.37z'%20fill='%23FFBE24'%20id='svg_7'/%3e%3cpath%20d='m441.9,367.39c0,8.94%207.24,16.19%2016.18,16.19l34.53,0c4.69,0%208.9,-2.01%2011.86,-5.2c-7.36,-10.8%20-16.47,-19.96%20-26.85,-27.17l-19.54,0c-8.93,0%20-16.18,7.25%20-16.18,16.18z'%20fill='%23BDDEFF'%20id='svg_8'/%3e%3cpath%20d='m441.9,367.39c0,8.94%207.24,16.19%2016.18,16.19l9.17,0l0,-32.37l-9.17,0c-8.93,0%20-16.18,7.25%20-16.18,16.18z'%20fill='%23D7EBFF'%20id='svg_9'/%3e%3c/g%3e%3c/svg%3e",sR="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%201024%201024'%20class='icon'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M697.6%20177.066667l-29.866667%2029.866666%20100.266667%20100.266667V405.333333c0%2012.8%208.533333%2021.333333%2021.333333%2021.333334h42.666667c12.8%200%2021.333333-8.533333%2021.333333-21.333334v-55.466666c0-10.666667-4.266667-21.333333-12.8-29.866667l-142.933333-142.933333z'%20fill='%2342A5F5'%20/%3e%3cpath%20d='M704%20917.333333H192V192c0-46.933333%2038.4-85.333333%2085.333333-85.333333h341.333334c46.933333%200%2085.333333%2038.4%2085.333333%2085.333333v725.333333z'%20fill='%23FFC107'%20/%3e%3cpath%20d='M876.8%20576c-21.333333-38.4-44.8-76.8-44.8-149.333333h-42.666667c0%2085.333333%2025.6%20130.133333%2051.2%20170.666666%2019.2%2032%2034.133333%2061.866667%2034.133334%20106.666667%200%2023.466667-19.2%2042.666667-42.666667%2042.666667s-42.666667-19.2-42.666667-42.666667v-106.666667c0-23.466667-19.2-42.666667-42.666666-42.666666h-42.666667v42.666666h42.666667v106.666667c0%2046.933333%2038.4%2085.333333%2085.333333%2085.333333s85.333333-38.4%2085.333333-85.333333c0-55.466667-21.333333-91.733333-40.533333-128zM106.666667%20832h810.666666v85.333333H106.666667z'%20fill='%23607D8B'%20/%3e%3cpath%20d='M618.666667%20170.666667H277.333333c-12.8%200-21.333333%208.533333-21.333333%2021.333333v213.333333c0%2012.8%208.533333%2021.333333%2021.333333%2021.333334h341.333334c12.8%200%2021.333333-8.533333%2021.333333-21.333334V192c0-12.8-8.533333-21.333333-21.333333-21.333333z'%20fill='%23B2EBF2'%20/%3e%3cpath%20d='M618.666667%20170.666667H277.333333c-12.8%200-21.333333%208.533333-21.333333%2021.333333v213.333333c0%2012.8%208.533333%2021.333333%2021.333333%2021.333334h341.333334c12.8%200%2021.333333-8.533333%2021.333333-21.333334V192c0-12.8-8.533333-21.333333-21.333333-21.333333z'%20fill='%23B2EBF2'%20/%3e%3cpath%20d='M469.333333%20426.666667l100.266667-121.6-149.333333%20121.6z'%20fill='%23F44336'%20/%3e%3cpath%20d='M298.666667%20294.4l-29.866667-29.866667c6.4-6.4%2010.666667-10.666667%2017.066667-14.933333l27.733333%2034.133333c-6.4%202.133333-10.666667%206.4-14.933333%2010.666667z%20m298.666666%200c-4.266667-4.266667-8.533333-8.533333-14.933333-12.8l25.6-34.133333c6.4%204.266667%2012.8%2010.666667%2017.066667%2014.933333L597.333333%20294.4z%20m-234.666666-42.666667l-17.066667-38.4c6.4-2.133333%2014.933333-6.4%2021.333333-8.533333l12.8%2040.533333c-6.4%202.133333-10.666667%204.266667-17.066666%206.4z%20m168.533333%200l-19.2-6.4%2012.8-40.533333c6.4%202.133333%2014.933333%204.266667%2021.333333%208.533333l-14.933333%2038.4z%20m-93.866667-17.066666l-2.133333-42.666667h23.466667l-2.133334%2042.666667h-19.2zM490.666667%20426.666667h-85.333334c0-23.466667%2019.2-42.666667%2042.666667-42.666667s42.666667%2019.2%2042.666667%2042.666667z'%20fill='%23455A64'%20/%3e%3c/svg%3e",LC="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20enable-background='new%200%200%2032%2032'%20version='1.1'%20xml:space='preserve'%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3cg%20id='Energy20'/%3e%3cg%20id='Energy19'/%3e%3cg%20id='Energy18'/%3e%3cg%20id='Energy17'/%3e%3cg%20id='Energy16'/%3e%3cg%20id='Energy15'/%3e%3cg%20id='Energy14'/%3e%3cg%20id='Energy13'/%3e%3cg%20id='Energy12'/%3e%3cg%20id='Energy11'/%3e%3cg%20id='Energy10'/%3e%3cg%20id='Energy09'/%3e%3cg%20id='Energy08'/%3e%3cg%20id='Energy07'/%3e%3cg%20id='Energy06'/%3e%3cg%20id='Energy05'/%3e%3cg%20id='Energy04'/%3e%3cg%20id='Energy03'/%3e%3cg%20id='Energy02'%3e%3cg%20id='svg_1'%3e%3cpath%20d='m26.13,18.49l-2.96,2.42l0.38,3.81c0.02,0.21%20-0.05,0.41%20-0.19,0.56c-0.15,0.14%20-0.35,0.21%20-0.56,0.19l-3.81,-0.38l-2.42,2.96c-0.13,0.16%20-0.32,0.26%20-0.53,0.26s-0.4,-0.1%20-0.53,-0.26l-2.42,-2.96l-3.81,0.38c-0.21,0.02%20-0.41,-0.05%20-0.56,-0.19c-0.14,-0.15%20-0.21,-0.35%20-0.19,-0.56l0.38,-3.81l-2.96,-2.42c-0.16,-0.13%20-0.26,-0.32%20-0.26,-0.53s0.1,-0.4%200.26,-0.53l2.96,-2.42l-0.38,-3.81c-0.02,-0.21%200.05,-0.41%200.19,-0.56c0.15,-0.14%200.35,-0.22%200.56,-0.19l3.81,0.38l2.42,-2.96c0.26,-0.32%200.81,-0.32%201.06,0l2.42,2.96l3.81,-0.38c0.21,-0.03%200.41,0.05%200.56,0.19c0.14,0.15%200.21,0.35%200.19,0.56l-0.38,3.81l2.96,2.42c0.16,0.13%200.26,0.32%200.26,0.53s-0.1,0.4%20-0.26,0.53z'%20fill='%23FFB841'%20id='svg_2'/%3e%3c/g%3e%3cg%20id='svg_3'%3e%3cpath%20d='m20.87,17.96c0,2.66%20-2.17,4.83%20-4.83,4.83s-4.83,-2.17%20-4.83,-4.83s2.17,-4.83%204.83,-4.83s4.83,2.17%204.83,4.83z'%20fill='%23EB8235'%20id='svg_4'/%3e%3c/g%3e%3c/g%3e%3cg%20id='Energy01'/%3e%3c/g%3e%3c/svg%3e";console.log(LC);function Le(...e){return rR(de(e))}const lR=e=>e.replace(/([a-z][A-Z])/g,t=>t.split("").join(" ")),Vc=[{title:"Clean Energy to CO2",fields:[{name:"energy",label:"Energy Type",options:["Solar","Wind","HydroElectric","Biomass","Geothermal","Tidal","OtherCleanEnergy"]},{name:"consumption",label:"Consumption (KWH)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CleanHydroToCarbonFootprint",icon:LC},{title:"Fuel to CO2e",fields:[{name:"type",label:"Fuel Type",options:["Petrol","Diesel","LPG"]},{name:"litres",label:"Litres",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/FuelToCO2e",icon:sR},{title:"Car Travel",fields:[{name:"vehicle",label:"Vehicle Type",options:["SmallDieselCar","MediumDieselCar","LargeDieselCar","MediumHybridCar","LargeHybridCar","MediumLPGCar","LargeLPGCar","MediumCNGCar","LargeCNGCar","SmallPetrolVan","LargePetrolVan","SmallDieselVan","MediumDieselVan","LargeDieselVan","LPGVan","CNGVan","SmallPetrolCar","MediumPetrolCar","LargePetrolCar","SmallMotorBike","MediumMotorBike","LargeMotorBike"]},{name:"distance",label:"Distance (KM)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CarbonFootprintFromCarTravel",icon:iR},{title:"Flight Travel",fields:[{name:"type",label:"Flight Type",options:["DomesticFlight","ShortEconomyClassFlight","ShortBusinessClassFlight","LongEconomyClassFlight","LongPremiumClassFlight","LongBusinessClassFlight","LongFirstClassFlight"]},{name:"distance",label:"Distance (KM)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CarbonFootprintFromFlight",icon:aR},{title:"Motorbike Travel",fields:[{name:"type",label:"Motorbike Type",options:["SmallMotorBike","MediumMotorBike","LargeMotorBike"]},{name:"distance",label:"Distance (KM)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CarbonFootprintFromMotorBike",icon:oR},{title:"Public Transport",fields:[{name:"type",label:"Transport Type",options:["Taxi","ClassicBus","EcoBus","Coach","NationalTrain","LightRail","Subway","FerryOnFoot","FerryInCar"]},{name:"distance",label:"Distance (KM)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CarbonFootprintFromPublicTransit",icon:nR}],ia={GOOD:{color:"#55a84f",bg:"green",message:"Air quality is satisfactory also air pollution poses little or no risk!",condition:"Good"},MODERATE:{color:"#a3c853",bg:"yellow",message:"Air quality is acceptable, small concern to air sensitive people",condition:"Moderate"},UNHEALTHY_SENSITIVE:{color:"#fff833",bg:"orange",message:"People with respiratory or heart conditions, children, and older adults may experience health effects",condition:"Unhealthy for Sensitive Groups"},UNHEALTHY:{color:"#f29c33",bg:"red",message:"Everyone may begin to experience health effects including non-sensitive ones.",condition:"Unhealthy"},VERY_UNHEALTHY:{color:"#e93f33",bg:"purple",message:"Health alert: everyone may experience more serious health effects!!",condition:"Very Unhealthy"},HAZARDOUS:{color:"#af2d24",bg:"maroon",message:"Health warnings of emergency conditions. The entire population is more likely to be affected!!",condition:"Hazardous"}};function co(e){return typeof e!="number"?{}:e>=0&&e<=50?ia.GOOD:e>=51&&e<=100?ia.MODERATE:e>=101&&e<=150?ia.UNHEALTHY_SENSITIVE:e>=151&&e<=200?ia.UNHEALTHY:e>=201&&e<=300?ia.VERY_UNHEALTHY:ia.HAZARDOUS}const uR=[{title:"Ozone Layer Depletion",description:"The ozone layer is thinning, which increases UV radiation reaching the Earth's surface.",name:"UNEP, WMO",img:"https://bmkltsly13vb.compat.objectstorage.ap-mumbai-1.oraclecloud.com/cdn.dailymirror.lk/media/images/Editorial-17.jpg"},{title:"PM2.5 and Health Risks",description:"PM2.5 particles can penetrate deep into the lungs and even enter the bloodstream, posing serious health risks.",name:"World Health Organization",img:"https://media.istockphoto.com/id/1144913995/vector/many-peoples-wearing-air-pollution-mask-for-protect-dust-pm2-5-pm10-smoke-smog.jpg?s=612x612&w=0&k=20&c=0vZ7Ji8sIb4FF92WeroHSKSyNGwYvCXLdUDwTB259AU="},{title:"PM10 and Respiratory Issues",description:"Exposure to PM10 particles can cause respiratory issues, especially in children and the elderly.",name:"Environmental Protection Agency",img:"https://thumbs.dreamstime.com/z/respiratory-environment-health-breath-organism-girl-boy-wearing-air-pollution-mask-protect-dust-pm-smoke-smog-145811104.jpg"},{title:"Air Quality in Urban Areas",description:"Urban areas often experience poor air quality due to high vehicle emissions and industrial activities.",name:"World Health Organization",img:"https://www.shutterstock.com/image-vector/cars-air-pollution-polluted-environment-600nw-1769819111.jpg"},{title:"Ozone Pollution",description:"Ground-level ozone can cause respiratory problems and aggravate conditions like asthma.",name:"Environmental Protection Agency",img:"https://media.gettyimages.com/id/526654138/video/cartoon-earth-globe-polluted-by-smoke-from-tubes.jpg?s=640x640&k=20&c=rd5JaxTu7ssPBmWAzmDiNYBMZLS7x4bLh22dhm7vlFk="},{title:"PM2.5 and Heart Disease",description:"Long-term exposure to PM2.5 can increase the risk of heart disease and stroke.",name:"American Heart Association",img:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQhI-WKiQ9DmQiLlgTYo3a6qeQUPe443CwKMg&s"},{title:"Impact on Vegetation",description:"Ozone pollution can damage crops and reduce agricultural production.",name:"Environmental Protection Agency",img:"https://img.freepik.com/premium-vector/dead-tree-polluting-factory-ecological-problem-environmental-pollution-concept-vector-illustration-isolated-white-background_178650-16860.jpg"},{title:"Air Quality and Visibility",description:"High levels of PM2.5 and PM10 can reduce visibility, leading to hazardous driving conditions.",name:"National Oceanic and Atmospheric Administration",img:"https://static.vecteezy.com/system/resources/thumbnails/039/351/538/small_2x/people-wearing-air-pollution-masks-smog-and-mist-vector.jpg"},{title:"Indoor Air Quality",description:"Indoor air pollution can sometimes be worse than outdoor air pollution due to lack of ventilation.",name:"Environmental Protection Agency",img:"https://www.ecosolutionspro.com/wp-content/uploads/2010/12/Sick-House-259x300.jpg"},{title:"Sources of PM2.5",description:"PM2.5 particles are mainly generated from combustion processes, including vehicle engines and industrial activities.",name:"Environmental Protection Agency",img:"https://c8.alamy.com/zooms/6/f4ea62c19dd64e07ae73a969ea4c9f01/tc7gw5.jpg"},{title:"Effects on Wildlife",description:"Air pollution, including ozone and particulate matter, can harm wildlife and disrupt ecosystems.",name:"Environmental Protection Agency",img:"https://www.shutterstock.com/image-vector/sad-comic-bears-suffering-air-260nw-2291294143.jpg"},{title:"Air Quality Index (AQI)",description:"The AQI is a measure used to communicate how polluted the air currently is or how polluted it is forecasted to become.",name:"Environmental Protection Agency",img:"https://media.istockphoto.com/id/1134364154/vector/environment-ecology-infographic-elements-risks-and-pollution-ecosystem.jpg?s=612x612&w=0&k=20&c=1ta5F_oWmXHgCEVbmgX_V-zgXJ38OXASEuI50PDRwsU="}],cR=[{id:1,title:"Understanding Air Quality",image:"src/assets/blog1.jpeg",content:`Air quality refers to the condition of the air within our surroundings. + */function $y(){return $y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function XI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZI(e,t){return e.button===0&&(!t||t==="_self")&&!XI(e)}const QI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],JI="6";try{window.__reactRouterVersion=JI}catch{}const eD="startTransition",X2=pP[eD];function tD(e){let{basename:t,children:r,future:n,window:i}=e,o=O.useRef();o.current==null&&(o.current=aI({window:i,v5Compat:!0}));let a=o.current,[s,l]=O.useState({action:a.action,location:a.location}),{v7_startTransition:u}=n||{},c=O.useCallback(f=>{u&&X2?X2(()=>l(f)):l(f)},[l,u]);return O.useLayoutEffect(()=>a.listen(c),[a,c]),O.createElement(GI,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a,future:n})}const rD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hn=O.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=KI(t,QI),{basename:h}=O.useContext(Zo),v,p=!1;if(typeof u=="string"&&nD.test(u)&&(v=u,rD))try{let b=new URL(window.location.href),w=u.startsWith("//")?new URL(b.protocol+u):new URL(u),x=N1(w.pathname,h);w.origin===b.origin&&x!=null?u=x+w.search+w.hash:p=!0}catch{}let g=jI(u,{relative:i}),y=iD(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||y(b)}return O.createElement("a",$y({},d,{href:v||g,onClick:p||o?n:m,ref:r,target:l}))});var Z2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Z2||(Z2={}));var Q2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Q2||(Q2={}));function iD(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=$I(),u=Gh(),c=EC(e,{relative:a});return O.useCallback(f=>{if(ZI(f,r)){f.preventDefault();let d=n!==void 0?n:ud(u)===ud(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,c,n,i,r,e,o,a,s])}const AC="/GreenSky/assets/icon-BDf3BRCz.png";var TC={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},J2=$.createContext&&$.createContext(TC),oD=["attr","size","title"];function aD(e,t){if(e==null)return{};var r=sD(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t$.createElement(t.tag,dd({key:r},t.attr),MC(t.child)))}function Pn(e){return t=>$.createElement(fD,fd({attr:dd({},e.attr)},t),MC(e.child))}function fD(e){var t=r=>{var{attr:n,size:i,title:o}=e,a=aD(e,oD),s=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),$.createElement("svg",fd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:dd(dd({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&$.createElement("title",null,o),e.children)};return J2!==void 0?$.createElement(J2.Consumer,null,r=>t(r)):t(TC)}function dD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"},child:[]}]})(e)}function hD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function pD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function mD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function vD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"},child:[]}]})(e)}function yD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"},child:[]}]})(e)}function gD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32H96c17.7 0 32 14.3 32 32V448h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H64V256H32c-17.7 0-32-14.3-32-32z"},child:[]}]})(e)}function bD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"},child:[]}]})(e)}function wD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32 32C14.3 32 0 46.3 0 64V448c0 17.7 14.3 32 32 32s32-14.3 32-32V266.3L149.2 96H64V64c0-17.7-14.3-32-32-32zM405.2 96H330.8l-5.4 10.7L234.8 288h74.3l5.4-10.7L405.2 96zM362.8 288h74.3l5.4-10.7L533.2 96H458.8l-5.4 10.7L362.8 288zM202.8 96l-5.4 10.7L106.8 288h74.3l5.4-10.7L277.2 96H202.8zm288 192H576V448c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v53.7L490.8 288z"},child:[]}]})(e)}function xD(e){return Pn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"},child:[]}]})(e)}function jC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t{r(!t)};return P.jsx("nav",{className:"bg-white border-gray-200 bg-gradient-to-b from-[#000] to-[#333] ",children:P.jsxs("div",{className:"max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-4",children:[P.jsxs("a",{href:"",className:"flex items-center space-x-3 rtl:space-x-reverse",children:[P.jsx("img",{src:AC,alt:"icon",className:"w-8 h-8"}),P.jsx("p",{className:"text-2xl text-green-500 font-bold font-Playwrite",children:"GreenSky"})]}),P.jsxs("button",{onClick:o,type:"button",className:"inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600","aria-controls":"navbar-default","aria-expanded":t?"true":"false",children:[P.jsx("span",{className:"sr-only",children:"Open main menu"}),t?P.jsx(xD,{className:"w-4 h-4"}):P.jsx(vD,{className:"w-4 h-4"})]}),P.jsx("div",{className:`w-full md:block md:w-auto ${t?"block":"hidden"}`,id:"navbar-default",children:P.jsxs("ul",{className:"font-medium flex flex-col p-4 md:p-0 mt-4 rounded-lg md:flex-row md:space-x-8 rtl:space-x-reverse md:mt-0",children:[P.jsx("li",{children:P.jsx(hn,{to:"/",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="home"&&"bg-green-700 md:text-green-500"),onClick:()=>i("home"),children:"Home"})}),P.jsx("li",{children:P.jsx(hn,{to:"/about",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="about"&&"bg-green-700 md:text-green-500"),onClick:()=>i("about"),children:"About"})}),P.jsx("li",{children:P.jsx(hn,{to:"/services",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="services"&&"bg-green-700 md:text-green-500"),onClick:()=>i("services"),children:"Services"})}),P.jsx("li",{children:P.jsx(hn,{to:"/blog",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="blog"&&"bg-green-700 md:text-green-500"),onClick:()=>i("blog"),children:"Blog"})}),P.jsx("li",{children:P.jsx(hn,{to:"/contact",className:de("block py-2 px-3 text-white rounded md:bg-transparent md:p-0 duration-300","hover:bg-opacity-10 md:hover:bg-transparent md:border-0 md:hover:text-green-500",n==="contact"&&"bg-green-700 md:text-green-500"),onClick:()=>i("contact"),children:"Contact"})})]})})]})})}function OD(){return P.jsxs("footer",{className:"bg-base-300 text-neutral-400",children:[P.jsxs("div",{className:"w-full justify-between flex-wrap flex p-4 my-4 md:w-10/12 mx-auto gap-4",children:[P.jsxs("a",{href:"",className:"flex gap-3 items-center",children:[P.jsx("img",{src:AC,alt:"icon",className:"w-8 h-8"}),P.jsx("p",{className:"text-2xl text-green-500 font-bold font-Playwrite",children:"GreenSky"})]}),P.jsxs("div",{className:"flex flex-wrap grow justify-evenly gap-5",children:[P.jsxs("div",{children:[P.jsx("div",{className:" w-fit text-neutral-300 border-b-2 mb-2 font-medium border-green-500 pr-5",children:"GreenSky"}),P.jsxs("ul",{className:"flex flex-row gap-3 md:flex-col md:gap-0",children:[P.jsx("li",{children:P.jsx(hn,{to:"/",className:"hover:text-neutral-200 duration-300",children:"Home"})}),P.jsx("li",{children:P.jsx(hn,{to:"/about",className:"hover:text-neutral-200 duration-300",children:"About"})}),P.jsx("li",{children:P.jsx(hn,{to:"/contact",className:"hover:text-neutral-200 duration-300",children:"Contact"})})]})]}),P.jsxs("div",{children:[P.jsx("div",{className:" w-fit text-neutral-300 border-b-2 mb-2 font-medium border-green-500 pr-5",children:"More"}),P.jsxs("ul",{className:"flex flex-row gap-3 md:flex-col md:gap-0",children:[P.jsx("li",{children:P.jsx(hn,{to:"/blog",className:"hover:text-neutral-200 duration-300",children:"Blogs"})}),P.jsx("li",{children:P.jsx(hn,{to:"/services",className:"hover:text-neutral-200 duration-300",children:"Services"})})]})]})]}),P.jsxs("div",{className:"flex flex-col items-start gap-5",children:[P.jsxs("div",{children:[P.jsx("div",{className:" w-fit text-neutral-300 border-b-2 mb-2 font-medium border-green-500 pr-5",children:"Newsletter"}),P.jsxs("div",{className:"flex gap-2",children:[P.jsxs("label",{className:"input rounded input-sm input-bordered flex items-center gap-2",children:[P.jsx(yD,{}),P.jsx("input",{type:"text",className:"grow",placeholder:"john.doe@xyz.com"})]}),P.jsx("button",{className:"btn btn-sm bg-green-500 rounded hover:bg-green-600 text-black",children:"subscribe"})]})]}),P.jsxs("div",{children:[P.jsx("div",{className:"w-fit text-neutral-300 border-b-2 mb-2 font-medium border-green-500 pr-5",children:"Follow Us"}),P.jsxs("div",{className:"flex gap-2",children:[P.jsx("a",{href:"",className:"rounded-full text-xl hover:bg-white/15 hover:text-gray-200 duration-200 p-1",children:P.jsx(dD,{})}),P.jsx("a",{href:"",className:"rounded-full text-xl hover:bg-white/15 hover:text-gray-200 duration-200 p-1",children:P.jsx(pD,{})}),P.jsx("a",{href:"",className:"rounded-full text-xl hover:bg-white/15 hover:text-gray-200 duration-200 p-1",children:P.jsx(mD,{})}),P.jsx("a",{href:"",className:"rounded-full text-xl hover:bg-white/15 hover:text-gray-200 duration-200 p-1",children:P.jsx(hD,{})})]})]})]})]}),P.jsx("div",{className:"bg-base-100",children:P.jsxs("div",{className:"flex flex-col md:flex-row gap-2 w-full py-4 md:w-10/12 mx-auto justify-between items-center",children:[P.jsxs("div",{className:"flex gap-4",children:[P.jsx("a",{href:"",className:"hover:text-neutral-200 duration-300",children:"Terms & Conditions"}),P.jsx("a",{href:"",className:"hover:text-neutral-200 duration-300",children:"Privacy Policy"}),P.jsx("a",{href:"",className:"hover:text-neutral-200 duration-300",children:"Cookies"})]}),P.jsxs("p",{className:"text-xs",children:["© GreenSky ",new Date().getFullYear()," All Rights Reserved"]})]})})]})}const _D=[{id:1,title:"Understanding Air Quality",image:"src/assets/blog1.jpeg",content:`Air quality refers to the condition of the air within our surroundings. It is important because it affects our health, the environment, and the climate. Good air quality means clean, clear, unpolluted air. Bad air quality can have harmful effects on human health, causing respiratory problems and @@ -125,12 +125,12 @@ Error generating stack: `+o.message+` the air can deposit on land and water, leading to soil and water pollution. Acid rain, smog, and ozone depletion are some of the environmental effects of air pollution. Protecting air quality is crucial for preserving biodiversity - and maintaining a sustainable environment.`}],fR=()=>{const[e,t]=O.useState(null),r=i=>{t(i)},n=()=>{t(null)};return P.jsxs("div",{className:"blog-page",children:[P.jsxs("header",{children:[P.jsx("h1",{children:"Air Quality Insights"}),P.jsx("p",{children:"Exploring the importance of clean air for a healthier future"})]}),P.jsx("main",{children:P.jsx("div",{className:"blog-grid",children:cR.map(i=>P.jsxs("div",{className:"blog-card",onClick:()=>r(i),children:[P.jsx("img",{src:i.image,alt:i.title}),P.jsx("h2",{children:i.title})]},i.id))})}),e&&P.jsx("div",{className:"modal-overlay",onClick:n,children:P.jsxs("div",{className:"modal-content",onClick:i=>i.stopPropagation(),children:[P.jsx("button",{className:"close-button",onClick:n,children:"×"}),P.jsx("h2",{children:e.title}),P.jsx("img",{src:e.image,alt:e.title}),P.jsx("p",{children:e.content})]})})]})};function dR(){return P.jsx(fR,{})}function zC(e,t){return function(){return e.apply(t,arguments)}}const{toString:hR}=Object.prototype,{getPrototypeOf:R1}=Object,qh=(e=>t=>{const r=hR.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),on=e=>(e=e.toLowerCase(),t=>qh(t)===e),Kh=e=>t=>typeof t===e,{isArray:Cs}=Array,su=Kh("undefined");function pR(e){return e!==null&&!su(e)&&e.constructor!==null&&!su(e.constructor)&&Ar(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const FC=on("ArrayBuffer");function mR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&FC(e.buffer),t}const vR=Kh("string"),Ar=Kh("function"),BC=Kh("number"),Xh=e=>e!==null&&typeof e=="object",yR=e=>e===!0||e===!1,Af=e=>{if(qh(e)!=="object")return!1;const t=R1(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gR=on("Date"),bR=on("File"),wR=on("Blob"),xR=on("FileList"),SR=e=>Xh(e)&&Ar(e.pipe),OR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ar(e.append)&&((t=qh(e))==="formdata"||t==="object"&&Ar(e.toString)&&e.toString()==="[object FormData]"))},_R=on("URLSearchParams"),[PR,ER,CR,kR]=["ReadableStream","Request","Response","Headers"].map(on),AR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ac(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Cs(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const HC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,UC=e=>!su(e)&&e!==HC;function Iy(){const{caseless:e}=UC(this)&&this||{},t={},r=(n,i)=>{const o=e&&WC(t,i)||i;Af(t[o])&&Af(n)?t[o]=Iy(t[o],n):Af(n)?t[o]=Iy({},n):Cs(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n(ac(t,(i,o)=>{r&&Ar(i)?e[o]=zC(i,r):e[o]=i},{allOwnKeys:n}),e),MR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jR=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},$R=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&R1(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},NR=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},IR=e=>{if(!e)return null;if(Cs(e))return e;let t=e.length;if(!BC(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},DR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&R1(Uint8Array)),RR=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},LR=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},zR=on("HTMLFormElement"),FR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),nx=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),BR=on("RegExp"),YC=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ac(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},WR=e=>{YC(e,(t,r)=>{if(Ar(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ar(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},HR=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Cs(e)?n(e):n(String(e).split(t)),r},UR=()=>{},YR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dm="abcdefghijklmnopqrstuvwxyz",ix="0123456789",VC={DIGIT:ix,ALPHA:Dm,ALPHA_DIGIT:Dm+Dm.toUpperCase()+ix},VR=(e=16,t=VC.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function GR(e){return!!(e&&Ar(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const qR=e=>{const t=new Array(10),r=(n,i)=>{if(Xh(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Cs(n)?[]:{};return ac(n,(a,s)=>{const l=r(a,i+1);!su(l)&&(o[s]=l)}),t[i]=void 0,o}}return n};return r(e,0)},KR=on("AsyncFunction"),XR=e=>e&&(Xh(e)||Ar(e))&&Ar(e.then)&&Ar(e.catch),z={isArray:Cs,isArrayBuffer:FC,isBuffer:pR,isFormData:OR,isArrayBufferView:mR,isString:vR,isNumber:BC,isBoolean:yR,isObject:Xh,isPlainObject:Af,isReadableStream:PR,isRequest:ER,isResponse:CR,isHeaders:kR,isUndefined:su,isDate:gR,isFile:bR,isBlob:wR,isRegExp:BR,isFunction:Ar,isStream:SR,isURLSearchParams:_R,isTypedArray:DR,isFileList:xR,forEach:ac,merge:Iy,extend:TR,trim:AR,stripBOM:MR,inherits:jR,toFlatObject:$R,kindOf:qh,kindOfTest:on,endsWith:NR,toArray:IR,forEachEntry:RR,matchAll:LR,isHTMLForm:zR,hasOwnProperty:nx,hasOwnProp:nx,reduceDescriptors:YC,freezeMethods:WR,toObjectSet:HR,toCamelCase:FR,noop:UR,toFiniteNumber:YR,findKey:WC,global:HC,isContextDefined:UC,ALPHABET:VC,generateString:VR,isSpecCompliantForm:GR,toJSONObject:qR,isAsyncFn:KR,isThenable:XR};function le(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}z.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const GC=le.prototype,qC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qC[e]={value:e}});Object.defineProperties(le,qC);Object.defineProperty(GC,"isAxiosError",{value:!0});le.from=(e,t,r,n,i,o)=>{const a=Object.create(GC);return z.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),le.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const ZR=null;function Dy(e){return z.isPlainObject(e)||z.isArray(e)}function KC(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function ox(e,t,r){return e?e.concat(t).map(function(i,o){return i=KC(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function QR(e){return z.isArray(e)&&!e.some(Dy)}const JR=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Zh(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!z.isUndefined(g[p])});const n=r.metaTokens,i=r.visitor||c,o=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(z.isDate(v))return v.toISOString();if(!l&&z.isBlob(v))throw new le("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(v)||z.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,p,g){let y=v;if(v&&!g&&typeof v=="object"){if(z.endsWith(p,"{}"))p=n?p:p.slice(0,-2),v=JSON.stringify(v);else if(z.isArray(v)&&QR(v)||(z.isFileList(v)||z.endsWith(p,"[]"))&&(y=z.toArray(v)))return p=KC(p),y.forEach(function(b,w){!(z.isUndefined(b)||b===null)&&t.append(a===!0?ox([p],w,o):a===null?p:p+"[]",u(b))}),!1}return Dy(v)?!0:(t.append(ox(g,p,o),u(v)),!1)}const f=[],d=Object.assign(JR,{defaultVisitor:c,convertValue:u,isVisitable:Dy});function h(v,p){if(!z.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(v),z.forEach(v,function(y,m){(!(z.isUndefined(y)||y===null)&&i.call(t,y,z.isString(m)?m.trim():m,p,d))===!0&&h(y,p?p.concat(m):[m])}),f.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ax(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function L1(e,t){this._pairs=[],e&&Zh(e,this,t)}const XC=L1.prototype;XC.append=function(t,r){this._pairs.push([t,r])};XC.toString=function(t){const r=t?function(n){return t.call(this,n,ax)}:ax;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function e5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ZC(e,t,r){if(!t)return e;const n=r&&r.encode||e5,i=r&&r.serialize;let o;if(i?o=i(t,r):o=z.isURLSearchParams(t)?t.toString():new L1(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class sx{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(n){n!==null&&t(n)})}}const QC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},t5=typeof URLSearchParams<"u"?URLSearchParams:L1,r5=typeof FormData<"u"?FormData:null,n5=typeof Blob<"u"?Blob:null,i5={isBrowser:!0,classes:{URLSearchParams:t5,FormData:r5,Blob:n5},protocols:["http","https","file","blob","url","data"]},z1=typeof window<"u"&&typeof document<"u",o5=(e=>z1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),a5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",s5=z1&&window.location.href||"http://localhost",l5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:z1,hasStandardBrowserEnv:o5,hasStandardBrowserWebWorkerEnv:a5,origin:s5},Symbol.toStringTag,{value:"Module"})),Qr={...l5,...i5};function u5(e,t){return Zh(e,new Qr.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Qr.isNode&&z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function c5(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function f5(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return a=!a&&z.isArray(i)?i.length:a,l?(z.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!z.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&&z.isArray(i[a])&&(i[a]=f5(i[a])),!s)}if(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,(n,i)=>{t(c5(n),i,r,0)}),r}return null}function d5(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const sc={transitional:QC,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=z.isObject(t);if(o&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return i?JSON.stringify(JC(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return u5(t,this.formSerializer).toString();if((s=z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Zh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),d5(t)):t}],transformResponse:[function(t){const r=this.transitional||sc.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?le.from(s,le.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qr.classes.FormData,Blob:Qr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{sc.headers[e]={}});const h5=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),p5=e=>{const t={};let r,n,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||t[r]&&h5[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},lx=Symbol("internals");function il(e){return e&&String(e).trim().toLowerCase()}function Tf(e){return e===!1||e==null?e:z.isArray(e)?e.map(Tf):String(e)}function m5(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const v5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rm(e,t,r,n,i){if(z.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!z.isString(t)){if(z.isString(n))return t.indexOf(n)!==-1;if(z.isRegExp(n))return n.test(t)}}function y5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function g5(e,t){const r=z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}class tr{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,l,u){const c=il(l);if(!c)throw new Error("header name must be a non-empty string");const f=z.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Tf(s))}const a=(s,l)=>z.forEach(s,(u,c)=>o(u,c,l));if(z.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(z.isString(t)&&(t=t.trim())&&!v5(t))a(p5(t),r);else if(z.isHeaders(t))for(const[s,l]of t.entries())o(l,s,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=il(t),t){const n=z.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return m5(i);if(z.isFunction(r))return r.call(this,i,n);if(z.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=il(t),t){const n=z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Rm(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=il(a),a){const s=z.findKey(n,a);s&&(!r||Rm(n,n[s],s,r))&&(delete n[s],i=!0)}}return z.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||Rm(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return z.forEach(this,(i,o)=>{const a=z.findKey(n,o);if(a){r[a]=Tf(i),delete r[o];return}const s=t?y5(o):String(o).trim();s!==o&&delete r[o],r[s]=Tf(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return z.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[lx]=this[lx]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=il(a);n[s]||(g5(i,a),n[s]=!0)}return z.isArray(t)?t.forEach(o):o(t),this}}tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(tr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});z.freezeMethods(tr);function Lm(e,t){const r=this||sc,n=t||r,i=tr.from(n.headers);let o=n.data;return z.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ek(e){return!!(e&&e.__CANCEL__)}function ks(e,t,r){le.call(this,e??"canceled",le.ERR_CANCELED,t,r),this.name="CanceledError"}z.inherits(ks,le,{__CANCEL__:!0});function tk(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new le("Request failed with status code "+r.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function b5(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function w5(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[o];a||(a=u),r[i]=l,n[i]=u;let f=o,d=0;for(;f!==i;)d+=r[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-an)return i&&(clearTimeout(i),i=null),r=s,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,r=Date.now(),e.apply(null,arguments)),n-(s-r)))}}const hd=(e,t,r=3)=>{let n=0;const i=w5(50,250);return x5(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-n,u=i(l),c=a<=s;n=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null};f[t?"download":"upload"]=!0,e(f)},r)},S5=Qr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(o){let a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){const s=z.isString(a)?i(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),O5=Qr.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),z.isString(n)&&a.push("path="+n),z.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P5(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rk(e,t){return e&&!_5(t)?P5(e,t):t}const ux=e=>e instanceof tr?{...e}:e;function Bo(e,t){t=t||{};const r={};function n(u,c,f){return z.isPlainObject(u)&&z.isPlainObject(c)?z.merge.call({caseless:f},u,c):z.isPlainObject(c)?z.merge({},c):z.isArray(c)?c.slice():c}function i(u,c,f){if(z.isUndefined(c)){if(!z.isUndefined(u))return n(void 0,u,f)}else return n(u,c,f)}function o(u,c){if(!z.isUndefined(c))return n(void 0,c)}function a(u,c){if(z.isUndefined(c)){if(!z.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(ux(u),ux(c),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);z.isUndefined(d)&&f!==s||(r[c]=d)}),r}const nk=e=>{const t=Bo({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=tr.from(a),t.url=ZC(rk(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(z.isFormData(r)){if(Qr.hasStandardBrowserEnv||Qr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Qr.hasStandardBrowserEnv&&(n&&z.isFunction(n)&&(n=n(t)),n||n!==!1&&S5(t.url))){const u=i&&o&&O5.read(o);u&&a.set(i,u)}return t},E5=typeof XMLHttpRequest<"u",C5=E5&&function(e){return new Promise(function(r,n){const i=nk(e);let o=i.data;const a=tr.from(i.headers).normalize();let{responseType:s}=i,l;function u(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout;function f(){if(!c)return;const h=tr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};tk(function(y){r(y),u()},function(y){n(y),u()},p),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(n(new le("Request aborted",le.ECONNABORTED,i,c)),c=null)},c.onerror=function(){n(new le("Network Error",le.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const p=i.transitional||QC;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),n(new le(v,p.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,i,c)),c=null},o===void 0&&a.setContentType(null),"setRequestHeader"in c&&z.forEach(a.toJSON(),function(v,p){c.setRequestHeader(p,v)}),z.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),s&&s!=="json"&&(c.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&c.addEventListener("progress",hd(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",hd(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=h=>{c&&(n(!h||h.type?new ks(null,e,c):h),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const d=b5(i.url);if(d&&Qr.protocols.indexOf(d)===-1){n(new le("Unsupported protocol "+d+":",le.ERR_BAD_REQUEST,e));return}c.send(o||null)})},k5=(e,t)=>{let r=new AbortController,n;const i=function(l){if(!n){n=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof le?u:new ks(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{i(new le(`timeout ${t} of ms exceeded`,le.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},A5=function*(e,t){let r=e.byteLength;if(!t||r{const o=T5(e,t,i);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:u}=await o.next();if(l){s.close(),n();return}let c=u.byteLength;r&&r(a+=c),s.enqueue(new Uint8Array(u))},cancel(s){return n(s),o.return()}},{highWaterMark:2})},fx=(e,t)=>{const r=e!=null;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},Qh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ik=Qh&&typeof ReadableStream=="function",Ry=Qh&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),M5=ik&&(()=>{let e=!1;const t=new Request(Qr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),dx=64*1024,Ly=ik&&!!(()=>{try{return z.isReadableStream(new Response("").body)}catch{}})(),pd={stream:Ly&&(e=>e.body)};Qh&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pd[t]&&(pd[t]=z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new le(`Response type '${t}' is not supported`,le.ERR_NOT_SUPPORT,n)})})})(new Response);const j5=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(z.isArrayBufferView(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await Ry(e)).byteLength},$5=async(e,t)=>{const r=z.toFiniteNumber(e.getContentLength());return r??j5(t)},N5=Qh&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=nk(e);u=u?(u+"").toLowerCase():"text";let[h,v]=i||o||a?k5([i,o],a):[],p,g;const y=()=>{!p&&setTimeout(()=>{h&&h.unsubscribe()}),p=!0};let m;try{if(l&&M5&&r!=="get"&&r!=="head"&&(m=await $5(c,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),_;z.isFormData(n)&&(_=S.headers.get("content-type"))&&c.setContentType(_),S.body&&(n=cx(S.body,dx,fx(m,hd(l)),null,Ry))}z.isString(f)||(f=f?"cors":"omit"),g=new Request(t,{...d,signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",withCredentials:f});let b=await fetch(g);const w=Ly&&(u==="stream"||u==="response");if(Ly&&(s||w)){const S={};["status","statusText","headers"].forEach(E=>{S[E]=b[E]});const _=z.toFiniteNumber(b.headers.get("content-length"));b=new Response(cx(b.body,dx,s&&fx(_,hd(s,!0)),w&&y,Ry),S)}u=u||"text";let x=await pd[z.findKey(pd,u)||"text"](b,e);return!w&&y(),v&&v(),await new Promise((S,_)=>{tk(S,_,{data:x,headers:tr.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(b){throw y(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new le("Network Error",le.ERR_NETWORK,e,g),{cause:b.cause||b}):le.from(b,b&&b.code,e,g)}}),zy={http:ZR,xhr:C5,fetch:N5};z.forEach(zy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hx=e=>`- ${e}`,I5=e=>z.isFunction(e)||e===null||e===!1,ok={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : -`+o.map(hx).join(` -`):" "+hx(o[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:zy};function zm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function px(e){return zm(e),e.headers=tr.from(e.headers),e.data=Lm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ok.getAdapter(e.adapter||sc.adapter)(e).then(function(n){return zm(e),n.data=Lm.call(e,e.transformResponse,n),n.headers=tr.from(n.headers),n},function(n){return ek(n)||(zm(e),n&&n.response&&(n.response.data=Lm.call(e,e.transformResponse,n.response),n.response.headers=tr.from(n.response.headers))),Promise.reject(n)})}const ak="1.7.2",F1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{F1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const mx={};F1.transitional=function(t,r,n){function i(o,a){return"[Axios v"+ak+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,s)=>{if(t===!1)throw new le(i(a," has been removed"+(r?" in "+r:"")),le.ERR_DEPRECATED);return r&&!mx[a]&&(mx[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function D5(e,t,r){if(typeof e!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new le("option "+o+" must be "+l,le.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new le("Unknown option "+o,le.ERR_BAD_OPTION)}}const Fy={assertOptions:D5,validators:F1},gi=Fy.validators;class Mo{constructor(t){this.defaults=t,this.interceptors={request:new sx,response:new sx}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Bo(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Fy.assertOptions(n,{silentJSONParsing:gi.transitional(gi.boolean),forcedJSONParsing:gi.transitional(gi.boolean),clarifyTimeoutError:gi.transitional(gi.boolean)},!1),i!=null&&(z.isFunction(i)?r.paramsSerializer={serialize:i}:Fy.assertOptions(i,{encode:gi.function,serialize:gi.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&z.merge(o.common,o[r.method]);o&&z.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),r.headers=tr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const v=[px.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(r);f{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,s){n.reason||(n.reason=new ks(o,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new B1(function(i){t=i}),cancel:t}}}function R5(e){return function(r){return e.apply(null,r)}}function L5(e){return z.isObject(e)&&e.isAxiosError===!0}const By={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(By).forEach(([e,t])=>{By[t]=e});function sk(e){const t=new Mo(e),r=zC(Mo.prototype.request,t);return z.extend(r,Mo.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return sk(Bo(e,i))},r}const it=sk(sc);it.Axios=Mo;it.CanceledError=ks;it.CancelToken=B1;it.isCancel=ek;it.VERSION=ak;it.toFormData=Zh;it.AxiosError=le;it.Cancel=it.CanceledError;it.all=function(t){return Promise.all(t)};it.spread=R5;it.isAxiosError=L5;it.mergeConfig=Bo;it.AxiosHeaders=tr;it.formToJSON=e=>JC(z.isHTMLForm(e)?new FormData(e):e);it.getAdapter=ok.getAdapter;it.HttpStatusCode=By;it.default=it;/*! ***************************************************************************** + and maintaining a sustainable environment.`}],PD=()=>{const[e,t]=O.useState(null),r=i=>{t(i)},n=()=>{t(null)};return P.jsxs("div",{className:"blog-page",children:[P.jsxs("header",{children:[P.jsx("h1",{children:"Air Quality Insights"}),P.jsx("p",{children:"Exploring the importance of clean air for a healthier future"})]}),P.jsx("main",{children:P.jsx("div",{className:"blog-grid",children:_D.map(i=>P.jsxs("div",{className:"blog-card",onClick:()=>r(i),children:[P.jsx("img",{src:i.image,alt:i.title}),P.jsx("h2",{children:i.title})]},i.id))})}),e&&P.jsx("div",{className:"modal-overlay",onClick:n,children:P.jsxs("div",{className:"modal-content",onClick:i=>i.stopPropagation(),children:[P.jsx("button",{className:"close-button",onClick:n,children:"×"}),P.jsx("h2",{children:e.title}),P.jsx("img",{src:e.image,alt:e.title}),P.jsx("p",{children:e.content})]})})]})};function ED(){return P.jsx(PD,{})}function $C(e,t){return function(){return e.apply(t,arguments)}}const{toString:CD}=Object.prototype,{getPrototypeOf:D1}=Object,qh=(e=>t=>{const r=CD.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),on=e=>(e=e.toLowerCase(),t=>qh(t)===e),Kh=e=>t=>typeof t===e,{isArray:Es}=Array,su=Kh("undefined");function kD(e){return e!==null&&!su(e)&&e.constructor!==null&&!su(e.constructor)&&Ar(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const NC=on("ArrayBuffer");function AD(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&NC(e.buffer),t}const TD=Kh("string"),Ar=Kh("function"),IC=Kh("number"),Xh=e=>e!==null&&typeof e=="object",MD=e=>e===!0||e===!1,Af=e=>{if(qh(e)!=="object")return!1;const t=D1(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jD=on("Date"),$D=on("File"),ND=on("Blob"),ID=on("FileList"),DD=e=>Xh(e)&&Ar(e.pipe),RD=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ar(e.append)&&((t=qh(e))==="formdata"||t==="object"&&Ar(e.toString)&&e.toString()==="[object FormData]"))},LD=on("URLSearchParams"),[zD,FD,BD,WD]=["ReadableStream","Request","Response","Headers"].map(on),HD=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ac(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Es(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const RC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,LC=e=>!su(e)&&e!==RC;function Ny(){const{caseless:e}=LC(this)&&this||{},t={},r=(n,i)=>{const o=e&&DC(t,i)||i;Af(t[o])&&Af(n)?t[o]=Ny(t[o],n):Af(n)?t[o]=Ny({},n):Es(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n(ac(t,(i,o)=>{r&&Ar(i)?e[o]=$C(i,r):e[o]=i},{allOwnKeys:n}),e),YD=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),VD=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},GD=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&D1(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qD=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},KD=e=>{if(!e)return null;if(Es(e))return e;let t=e.length;if(!IC(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},XD=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&D1(Uint8Array)),ZD=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},QD=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},JD=on("HTMLFormElement"),eR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),tx=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),tR=on("RegExp"),zC=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ac(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},rR=e=>{zC(e,(t,r)=>{if(Ar(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ar(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},nR=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Es(e)?n(e):n(String(e).split(t)),r},iR=()=>{},oR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Dm="abcdefghijklmnopqrstuvwxyz",rx="0123456789",FC={DIGIT:rx,ALPHA:Dm,ALPHA_DIGIT:Dm+Dm.toUpperCase()+rx},aR=(e=16,t=FC.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function sR(e){return!!(e&&Ar(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lR=e=>{const t=new Array(10),r=(n,i)=>{if(Xh(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Es(n)?[]:{};return ac(n,(a,s)=>{const l=r(a,i+1);!su(l)&&(o[s]=l)}),t[i]=void 0,o}}return n};return r(e,0)},uR=on("AsyncFunction"),cR=e=>e&&(Xh(e)||Ar(e))&&Ar(e.then)&&Ar(e.catch),z={isArray:Es,isArrayBuffer:NC,isBuffer:kD,isFormData:RD,isArrayBufferView:AD,isString:TD,isNumber:IC,isBoolean:MD,isObject:Xh,isPlainObject:Af,isReadableStream:zD,isRequest:FD,isResponse:BD,isHeaders:WD,isUndefined:su,isDate:jD,isFile:$D,isBlob:ND,isRegExp:tR,isFunction:Ar,isStream:DD,isURLSearchParams:LD,isTypedArray:XD,isFileList:ID,forEach:ac,merge:Ny,extend:UD,trim:HD,stripBOM:YD,inherits:VD,toFlatObject:GD,kindOf:qh,kindOfTest:on,endsWith:qD,toArray:KD,forEachEntry:ZD,matchAll:QD,isHTMLForm:JD,hasOwnProperty:tx,hasOwnProp:tx,reduceDescriptors:zC,freezeMethods:rR,toObjectSet:nR,toCamelCase:eR,noop:iR,toFiniteNumber:oR,findKey:DC,global:RC,isContextDefined:LC,ALPHABET:FC,generateString:aR,isSpecCompliantForm:sR,toJSONObject:lR,isAsyncFn:uR,isThenable:cR};function le(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}z.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const BC=le.prototype,WC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{WC[e]={value:e}});Object.defineProperties(le,WC);Object.defineProperty(BC,"isAxiosError",{value:!0});le.from=(e,t,r,n,i,o)=>{const a=Object.create(BC);return z.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),le.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const fR=null;function Iy(e){return z.isPlainObject(e)||z.isArray(e)}function HC(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function nx(e,t,r){return e?e.concat(t).map(function(i,o){return i=HC(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function dR(e){return z.isArray(e)&&!e.some(Iy)}const hR=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Zh(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!z.isUndefined(g[p])});const n=r.metaTokens,i=r.visitor||c,o=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(z.isDate(v))return v.toISOString();if(!l&&z.isBlob(v))throw new le("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(v)||z.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,p,g){let y=v;if(v&&!g&&typeof v=="object"){if(z.endsWith(p,"{}"))p=n?p:p.slice(0,-2),v=JSON.stringify(v);else if(z.isArray(v)&&dR(v)||(z.isFileList(v)||z.endsWith(p,"[]"))&&(y=z.toArray(v)))return p=HC(p),y.forEach(function(b,w){!(z.isUndefined(b)||b===null)&&t.append(a===!0?nx([p],w,o):a===null?p:p+"[]",u(b))}),!1}return Iy(v)?!0:(t.append(nx(g,p,o),u(v)),!1)}const f=[],d=Object.assign(hR,{defaultVisitor:c,convertValue:u,isVisitable:Iy});function h(v,p){if(!z.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(v),z.forEach(v,function(y,m){(!(z.isUndefined(y)||y===null)&&i.call(t,y,z.isString(m)?m.trim():m,p,d))===!0&&h(y,p?p.concat(m):[m])}),f.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ix(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function R1(e,t){this._pairs=[],e&&Zh(e,this,t)}const UC=R1.prototype;UC.append=function(t,r){this._pairs.push([t,r])};UC.toString=function(t){const r=t?function(n){return t.call(this,n,ix)}:ix;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function pR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function YC(e,t,r){if(!t)return e;const n=r&&r.encode||pR,i=r&&r.serialize;let o;if(i?o=i(t,r):o=z.isURLSearchParams(t)?t.toString():new R1(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ox{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(n){n!==null&&t(n)})}}const VC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mR=typeof URLSearchParams<"u"?URLSearchParams:R1,vR=typeof FormData<"u"?FormData:null,yR=typeof Blob<"u"?Blob:null,gR={isBrowser:!0,classes:{URLSearchParams:mR,FormData:vR,Blob:yR},protocols:["http","https","file","blob","url","data"]},L1=typeof window<"u"&&typeof document<"u",bR=(e=>L1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),wR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xR=L1&&window.location.href||"http://localhost",SR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:L1,hasStandardBrowserEnv:bR,hasStandardBrowserWebWorkerEnv:wR,origin:xR},Symbol.toStringTag,{value:"Module"})),Qr={...SR,...gR};function OR(e,t){return Zh(e,new Qr.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Qr.isNode&&z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function _R(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function PR(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return a=!a&&z.isArray(i)?i.length:a,l?(z.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!z.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&&z.isArray(i[a])&&(i[a]=PR(i[a])),!s)}if(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,(n,i)=>{t(_R(n),i,r,0)}),r}return null}function ER(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const sc={transitional:VC,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=z.isObject(t);if(o&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return i?JSON.stringify(GC(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return OR(t,this.formSerializer).toString();if((s=z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Zh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),ER(t)):t}],transformResponse:[function(t){const r=this.transitional||sc.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?le.from(s,le.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qr.classes.FormData,Blob:Qr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{sc.headers[e]={}});const CR=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kR=e=>{const t={};let r,n,i;return e&&e.split(` +`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||t[r]&&CR[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ax=Symbol("internals");function rl(e){return e&&String(e).trim().toLowerCase()}function Tf(e){return e===!1||e==null?e:z.isArray(e)?e.map(Tf):String(e)}function AR(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const TR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rm(e,t,r,n,i){if(z.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!z.isString(t)){if(z.isString(n))return t.indexOf(n)!==-1;if(z.isRegExp(n))return n.test(t)}}function MR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function jR(e,t){const r=z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}class tr{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,l,u){const c=rl(l);if(!c)throw new Error("header name must be a non-empty string");const f=z.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Tf(s))}const a=(s,l)=>z.forEach(s,(u,c)=>o(u,c,l));if(z.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(z.isString(t)&&(t=t.trim())&&!TR(t))a(kR(t),r);else if(z.isHeaders(t))for(const[s,l]of t.entries())o(l,s,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=rl(t),t){const n=z.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return AR(i);if(z.isFunction(r))return r.call(this,i,n);if(z.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=rl(t),t){const n=z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Rm(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=rl(a),a){const s=z.findKey(n,a);s&&(!r||Rm(n,n[s],s,r))&&(delete n[s],i=!0)}}return z.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||Rm(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return z.forEach(this,(i,o)=>{const a=z.findKey(n,o);if(a){r[a]=Tf(i),delete r[o];return}const s=t?MR(o):String(o).trim();s!==o&&delete r[o],r[s]=Tf(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return z.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[ax]=this[ax]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=rl(a);n[s]||(jR(i,a),n[s]=!0)}return z.isArray(t)?t.forEach(o):o(t),this}}tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(tr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});z.freezeMethods(tr);function Lm(e,t){const r=this||sc,n=t||r,i=tr.from(n.headers);let o=n.data;return z.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function qC(e){return!!(e&&e.__CANCEL__)}function Cs(e,t,r){le.call(this,e??"canceled",le.ERR_CANCELED,t,r),this.name="CanceledError"}z.inherits(Cs,le,{__CANCEL__:!0});function KC(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new le("Request failed with status code "+r.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function $R(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function NR(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[o];a||(a=u),r[i]=l,n[i]=u;let f=o,d=0;for(;f!==i;)d+=r[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-an)return i&&(clearTimeout(i),i=null),r=s,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,r=Date.now(),e.apply(null,arguments)),n-(s-r)))}}const hd=(e,t,r=3)=>{let n=0;const i=NR(50,250);return IR(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-n,u=i(l),c=a<=s;n=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null};f[t?"download":"upload"]=!0,e(f)},r)},DR=Qr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(o){let a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){const s=z.isString(a)?i(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),RR=Qr.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),z.isString(n)&&a.push("path="+n),z.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function LR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function XC(e,t){return e&&!LR(t)?zR(e,t):t}const sx=e=>e instanceof tr?{...e}:e;function Bo(e,t){t=t||{};const r={};function n(u,c,f){return z.isPlainObject(u)&&z.isPlainObject(c)?z.merge.call({caseless:f},u,c):z.isPlainObject(c)?z.merge({},c):z.isArray(c)?c.slice():c}function i(u,c,f){if(z.isUndefined(c)){if(!z.isUndefined(u))return n(void 0,u,f)}else return n(u,c,f)}function o(u,c){if(!z.isUndefined(c))return n(void 0,c)}function a(u,c){if(z.isUndefined(c)){if(!z.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(sx(u),sx(c),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);z.isUndefined(d)&&f!==s||(r[c]=d)}),r}const ZC=e=>{const t=Bo({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=tr.from(a),t.url=YC(XC(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(z.isFormData(r)){if(Qr.hasStandardBrowserEnv||Qr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Qr.hasStandardBrowserEnv&&(n&&z.isFunction(n)&&(n=n(t)),n||n!==!1&&DR(t.url))){const u=i&&o&&RR.read(o);u&&a.set(i,u)}return t},FR=typeof XMLHttpRequest<"u",BR=FR&&function(e){return new Promise(function(r,n){const i=ZC(e);let o=i.data;const a=tr.from(i.headers).normalize();let{responseType:s}=i,l;function u(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout;function f(){if(!c)return;const h=tr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};KC(function(y){r(y),u()},function(y){n(y),u()},p),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(n(new le("Request aborted",le.ECONNABORTED,i,c)),c=null)},c.onerror=function(){n(new le("Network Error",le.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const p=i.transitional||VC;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),n(new le(v,p.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,i,c)),c=null},o===void 0&&a.setContentType(null),"setRequestHeader"in c&&z.forEach(a.toJSON(),function(v,p){c.setRequestHeader(p,v)}),z.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),s&&s!=="json"&&(c.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&c.addEventListener("progress",hd(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",hd(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=h=>{c&&(n(!h||h.type?new Cs(null,e,c):h),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const d=$R(i.url);if(d&&Qr.protocols.indexOf(d)===-1){n(new le("Unsupported protocol "+d+":",le.ERR_BAD_REQUEST,e));return}c.send(o||null)})},WR=(e,t)=>{let r=new AbortController,n;const i=function(l){if(!n){n=!0,a();const u=l instanceof Error?l:this.reason;r.abort(u instanceof le?u:new Cs(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{i(new le(`timeout ${t} of ms exceeded`,le.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},HR=function*(e,t){let r=e.byteLength;if(!t||r{const o=UR(e,t,i);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:u}=await o.next();if(l){s.close(),n();return}let c=u.byteLength;r&&r(a+=c),s.enqueue(new Uint8Array(u))},cancel(s){return n(s),o.return()}},{highWaterMark:2})},ux=(e,t)=>{const r=e!=null;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},Qh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",QC=Qh&&typeof ReadableStream=="function",Dy=Qh&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),YR=QC&&(()=>{let e=!1;const t=new Request(Qr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),cx=64*1024,Ry=QC&&!!(()=>{try{return z.isReadableStream(new Response("").body)}catch{}})(),pd={stream:Ry&&(e=>e.body)};Qh&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pd[t]&&(pd[t]=z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new le(`Response type '${t}' is not supported`,le.ERR_NOT_SUPPORT,n)})})})(new Response);const VR=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(z.isArrayBufferView(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await Dy(e)).byteLength},GR=async(e,t)=>{const r=z.toFiniteNumber(e.getContentLength());return r??VR(t)},qR=Qh&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=ZC(e);u=u?(u+"").toLowerCase():"text";let[h,v]=i||o||a?WR([i,o],a):[],p,g;const y=()=>{!p&&setTimeout(()=>{h&&h.unsubscribe()}),p=!0};let m;try{if(l&&YR&&r!=="get"&&r!=="head"&&(m=await GR(c,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),_;z.isFormData(n)&&(_=S.headers.get("content-type"))&&c.setContentType(_),S.body&&(n=lx(S.body,cx,ux(m,hd(l)),null,Dy))}z.isString(f)||(f=f?"cors":"omit"),g=new Request(t,{...d,signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",withCredentials:f});let b=await fetch(g);const w=Ry&&(u==="stream"||u==="response");if(Ry&&(s||w)){const S={};["status","statusText","headers"].forEach(E=>{S[E]=b[E]});const _=z.toFiniteNumber(b.headers.get("content-length"));b=new Response(lx(b.body,cx,s&&ux(_,hd(s,!0)),w&&y,Dy),S)}u=u||"text";let x=await pd[z.findKey(pd,u)||"text"](b,e);return!w&&y(),v&&v(),await new Promise((S,_)=>{KC(S,_,{data:x,headers:tr.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(b){throw y(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new le("Network Error",le.ERR_NETWORK,e,g),{cause:b.cause||b}):le.from(b,b&&b.code,e,g)}}),Ly={http:fR,xhr:BR,fetch:qR};z.forEach(Ly,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const fx=e=>`- ${e}`,KR=e=>z.isFunction(e)||e===null||e===!1,JC={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : +`+o.map(fx).join(` +`):" "+fx(o[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Ly};function zm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cs(null,e)}function dx(e){return zm(e),e.headers=tr.from(e.headers),e.data=Lm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),JC.getAdapter(e.adapter||sc.adapter)(e).then(function(n){return zm(e),n.data=Lm.call(e,e.transformResponse,n),n.headers=tr.from(n.headers),n},function(n){return qC(n)||(zm(e),n&&n.response&&(n.response.data=Lm.call(e,e.transformResponse,n.response),n.response.headers=tr.from(n.response.headers))),Promise.reject(n)})}const ek="1.7.2",z1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{z1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const hx={};z1.transitional=function(t,r,n){function i(o,a){return"[Axios v"+ek+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,s)=>{if(t===!1)throw new le(i(a," has been removed"+(r?" in "+r:"")),le.ERR_DEPRECATED);return r&&!hx[a]&&(hx[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function XR(e,t,r){if(typeof e!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new le("option "+o+" must be "+l,le.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new le("Unknown option "+o,le.ERR_BAD_OPTION)}}const zy={assertOptions:XR,validators:z1},vi=zy.validators;class Mo{constructor(t){this.defaults=t,this.interceptors={request:new ox,response:new ox}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Bo(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&zy.assertOptions(n,{silentJSONParsing:vi.transitional(vi.boolean),forcedJSONParsing:vi.transitional(vi.boolean),clarifyTimeoutError:vi.transitional(vi.boolean)},!1),i!=null&&(z.isFunction(i)?r.paramsSerializer={serialize:i}:zy.assertOptions(i,{encode:vi.function,serialize:vi.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&z.merge(o.common,o[r.method]);o&&z.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),r.headers=tr.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const v=[dx.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(r);f{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,s){n.reason||(n.reason=new Cs(o,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new F1(function(i){t=i}),cancel:t}}}function ZR(e){return function(r){return e.apply(null,r)}}function QR(e){return z.isObject(e)&&e.isAxiosError===!0}const Fy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fy).forEach(([e,t])=>{Fy[t]=e});function tk(e){const t=new Mo(e),r=$C(Mo.prototype.request,t);return z.extend(r,Mo.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return tk(Bo(e,i))},r}const it=tk(sc);it.Axios=Mo;it.CanceledError=Cs;it.CancelToken=F1;it.isCancel=qC;it.VERSION=ek;it.toFormData=Zh;it.AxiosError=le;it.Cancel=it.CanceledError;it.all=function(t){return Promise.all(t)};it.spread=ZR;it.isAxiosError=QR;it.mergeConfig=Bo;it.AxiosHeaders=tr;it.formToJSON=e=>GC(z.isHTMLForm(e)?new FormData(e):e);it.getAdapter=JC.getAdapter;it.HttpStatusCode=Fy;it.default=it;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -143,63 +143,63 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var Wy=function(e,t){return Wy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Wy(e,t)};function z5(e,t){Wy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var F5=100,B5=100,vx=50,Hy=50,Uy=50;function yx(e){var t=e.className,r=e.counterClockwise,n=e.dashRatio,i=e.pathRadius,o=e.strokeWidth,a=e.style;return O.createElement("path",{className:t,style:Object.assign({},a,H5({pathRadius:i,dashRatio:n,counterClockwise:r})),d:W5({pathRadius:i,counterClockwise:r}),strokeWidth:o,fillOpacity:0})}function W5(e){var t=e.pathRadius,r=e.counterClockwise,n=t,i=r?1:0;return` - M `+Hy+","+Uy+` +***************************************************************************** */var By=function(e,t){return By=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},By(e,t)};function JR(e,t){By(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var e5=100,t5=100,px=50,Wy=50,Hy=50;function mx(e){var t=e.className,r=e.counterClockwise,n=e.dashRatio,i=e.pathRadius,o=e.strokeWidth,a=e.style;return O.createElement("path",{className:t,style:Object.assign({},a,n5({pathRadius:i,dashRatio:n,counterClockwise:r})),d:r5({pathRadius:i,counterClockwise:r}),strokeWidth:o,fillOpacity:0})}function r5(e){var t=e.pathRadius,r=e.counterClockwise,n=t,i=r?1:0;return` + M `+Wy+","+Hy+` m 0,-`+n+` a `+n+","+n+" "+i+" 1 1 0,"+2*n+` a `+n+","+n+" "+i+" 1 1 0,-"+2*n+` - `}function H5(e){var t=e.counterClockwise,r=e.dashRatio,n=e.pathRadius,i=Math.PI*2*n,o=(1-r)*i;return{strokeDasharray:i+"px "+i+"px",strokeDashoffset:(t?-o:o)+"px"}}var U5=function(e){z5(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},t.prototype.getPathRadius=function(){return vx-this.props.strokeWidth/2-this.getBackgroundPadding()},t.prototype.getPathRatio=function(){var r=this.props,n=r.value,i=r.minValue,o=r.maxValue,a=Math.min(Math.max(n,i),o);return(a-i)/(o-i)},t.prototype.render=function(){var r=this.props,n=r.circleRatio,i=r.className,o=r.classes,a=r.counterClockwise,s=r.styles,l=r.strokeWidth,u=r.text,c=this.getPathRadius(),f=this.getPathRatio();return O.createElement("svg",{className:o.root+" "+i,style:s.root,viewBox:"0 0 "+F5+" "+B5,"data-test-id":"CircularProgressbar"},this.props.background?O.createElement("circle",{className:o.background,style:s.background,cx:Hy,cy:Uy,r:vx}):null,O.createElement(yx,{className:o.trail,counterClockwise:a,dashRatio:n,pathRadius:c,strokeWidth:l,style:s.trail}),O.createElement(yx,{className:o.path,counterClockwise:a,dashRatio:f*n,pathRadius:c,strokeWidth:l,style:s.path}),u?O.createElement("text",{className:o.text,style:s.text,x:Hy,y:Uy},u):null)},t.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},t}(O.Component);function Y5(e){var t=e.rotation,r=e.strokeLinecap,n=e.textColor,i=e.textSize,o=e.pathColor,a=e.pathTransition,s=e.pathTransitionDuration,l=e.trailColor,u=e.backgroundColor,c=t==null?void 0:"rotate("+t+"turn)",f=t==null?void 0:"center center";return{root:{},path:Gc({stroke:o,strokeLinecap:r,transform:c,transformOrigin:f,transition:a,transitionDuration:s==null?void 0:s+"s"}),trail:Gc({stroke:l,strokeLinecap:r,transform:c,transformOrigin:f}),text:Gc({fill:n,fontSize:i}),background:Gc({fill:u})}}function Gc(e){return Object.keys(e).forEach(function(t){e[t]==null&&delete e[t]}),e}const V5="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%201024%201024'%20class='icon'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M564.352484%20386.978714H71.006413a22.378321%2022.378321%200%201%201%200-44.756642h493.346071c63.074896%200%20114.39478-51.319884%20114.39478-114.397977S627.42738%20113.426118%20564.352484%20113.426118a22.378321%2022.378321%200%201%201%200-44.756642c87.754987%200%20159.151422%2071.396435%20159.151422%20159.154619s-71.396435%20159.154619-159.151422%20159.154619z'%20fill='%234F46A3'%20/%3e%3cpath%20d='M815.916781%20498.790397h-493.346071a22.378321%2022.378321%200%201%201%200-44.756642h493.346071c63.078093%200%20114.397977-51.319884%20114.397977-114.404371%200-63.078093-51.319884-114.397977-114.397977-114.397977a22.378321%2022.378321%200%201%201%200-44.756642c87.758184%200%20159.154619%2071.396435%20159.154619%20159.154619%200.003197%2087.761381-71.393238%20159.161013-159.154619%20159.161013zM704.111492%20954.051762a22.378321%2022.378321%200%201%201%200-44.756642c63.078093%200%20114.397977-51.319884%20114.397977-114.401174%200-63.078093-51.319884-114.397977-114.397977-114.397976H210.762224a22.378321%2022.378321%200%201%201%200-44.756642h493.346071c87.758184%200%20159.154619%2071.396435%20159.154619%20159.154618s-71.393238%20159.157816-159.151422%20159.157816z'%20fill='%234F46A3'%20/%3e%3cpath%20d='M572.226456%20313.449945H78.880385a22.378321%2022.378321%200%201%201%200-44.756642h493.346071a22.378321%2022.378321%200%201%201%200%2044.756642z'%20fill='%235FCEFF'%20/%3e%3cpath%20d='M815.191084%20588.383603h-493.346071a22.378321%2022.378321%200%201%201%200-44.756642h493.346071a22.378321%2022.378321%200%201%201%200%2044.756642z'%20fill='%23FF4893'%20/%3e%3c/svg%3e",G5="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%201024%201024'%20class='icon'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M616.96%20672V176.64a85.76%2085.76%200%200%200-171.52%200v495.36c-29.44%2024.32-48.64%2061.44-48.64%20103.68%200%2074.24%2060.16%20134.4%20134.4%20134.4S665.6%20849.92%20665.6%20775.68c0-42.24-19.2-79.36-48.64-103.68z'%20fill='%23F7E6A3'%20/%3e%3cpath%20d='M531.2%20922.88c-80.64%200-147.2-66.56-147.2-147.2%200-42.24%2017.92-81.92%2048.64-110.08V176.64c0-53.76%2043.52-98.56%2098.56-98.56s98.56%2043.52%2098.56%2098.56V665.6c30.72%2028.16%2048.64%2067.84%2048.64%20110.08%200%2080.64-66.56%20147.2-147.2%20147.2z%20m0-819.2c-39.68%200-72.96%2033.28-72.96%2072.96v495.36c0%203.84-1.28%207.68-5.12%2010.24-28.16%2023.04-44.8%2057.6-44.8%2093.44%200%2066.56%2055.04%20121.6%20121.6%20121.6s121.6-55.04%20121.6-121.6c0-35.84-16.64-70.4-44.8-93.44-2.56-2.56-5.12-6.4-5.12-10.24V176.64c2.56-39.68-30.72-72.96-70.4-72.96z'%20fill='%23231C1C'%20/%3e%3cpath%20d='M568.32%20711.68V408.32c0-20.48-16.64-37.12-37.12-37.12-20.48%200-37.12%2016.64-37.12%2037.12v303.36c-21.76%2012.8-37.12%2035.84-37.12%2064%200%2040.96%2033.28%2072.96%2072.96%2072.96%2040.96%200%2072.96-33.28%2072.96-72.96%201.28-26.88-12.8-51.2-34.56-64z'%20fill='%23E24F32'%20/%3e%3cpath%20d='M531.2%20861.44c-47.36%200-85.76-38.4-85.76-85.76%200-28.16%2014.08-55.04%2037.12-70.4V408.32c0-26.88%2021.76-49.92%2049.92-49.92%2026.88%200%2049.92%2021.76%2049.92%2049.92v296.96c23.04%2016.64%2037.12%2042.24%2037.12%2070.4-2.56%2047.36-40.96%2085.76-88.32%2085.76z%20m0-476.16c-12.8%200-24.32%2010.24-24.32%2024.32v303.36c0%205.12-2.56%208.96-6.4%2011.52-19.2%2010.24-30.72%2030.72-30.72%2052.48%200%2033.28%2026.88%2060.16%2060.16%2060.16s60.16-26.88%2060.16-60.16c0-21.76-11.52-40.96-30.72-52.48-3.84-2.56-6.4-6.4-6.4-11.52V408.32c2.56-12.8-8.96-23.04-21.76-23.04zM531.2%20188.16h85.76v25.6h-85.76z'%20fill='%23231C1C'%20/%3e%3cpath%20d='M531.2%20359.68h85.76v25.6h-85.76zM555.52%20273.92h61.44v25.6h-61.44z'%20fill='%23231C1C'%20/%3e%3cpath%20d='M555.52%20445.44h61.44v25.6h-61.44z'%20fill='%23231C1C'%20/%3e%3cpath%20d='M531.2%20529.92h85.76v25.6h-85.76z'%20fill='%23231C1C'%20/%3e%3c/svg%3e",q5="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8c3ZnIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSI+DQogPCEtLSBDcmVhdGVkIHdpdGggU1ZHLWVkaXQgLSBodHRwczovL2dpdGh1Yi5jb20vU1ZHLUVkaXQvc3ZnZWRpdC0tPg0KIDxnIGNsYXNzPSJsYXllciI+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHRleHQgZmlsbD0iI2ZmZmYwMCIgZm9udC1mYW1pbHk9IkN1cnNpdmUiIGZvbnQtc2l6ZT0iMjQiIGlkPSJzdmdfMSIgc3Ryb2tlLXdpZHRoPSIwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiB0cmFuc2Zvcm09Im1hdHJpeCg2LjAzOTUzIDAgMCAxMi44NzE4IC0yNzguNDYyIC0xNzkwLjE4KSIgeD0iODguNzYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHk9IjE2OC42NyI+UE0gMi41PC90ZXh0Pg0KIDwvZz4NCjwvc3ZnPg==",K5="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8c3ZnIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSI+DQogPCEtLSBDcmVhdGVkIHdpdGggU1ZHLWVkaXQgLSBodHRwczovL2dpdGh1Yi5jb20vU1ZHLUVkaXQvc3ZnZWRpdC0tPg0KIDxnIGNsYXNzPSJsYXllciI+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHRleHQgZmlsbD0iIzdmMDBmZiIgZm9udC1mYW1pbHk9IkN1cnNpdmUiIGZvbnQtc2l6ZT0iMjQiIGlkPSJzdmdfMSIgc3Ryb2tlPSIjN2YwMGZmIiBzdHJva2Utd2lkdGg9IjAiIHN0eWxlPSJjdXJzb3I6IG1vdmU7IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiB0cmFuc2Zvcm09Im1hdHJpeCg2LjAzOTUzIDAgMCAxMi44NzE4IC0yNzguNDYyIC0xNzkwLjE4KSIgeD0iODguNzYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHk9IjE2OC42NyI+UE0gMTA8L3RleHQ+DQogPC9nPg0KPC9zdmc+",X5="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8c3ZnIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSI+DQogPCEtLSBDcmVhdGVkIHdpdGggU1ZHLWVkaXQgLSBodHRwczovL2dpdGh1Yi5jb20vU1ZHLUVkaXQvc3ZnZWRpdC0tPg0KIDxnIGNsYXNzPSJsYXllciI+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHRleHQgZmlsbD0iIzAwN2ZmZiIgZm9udC1mYW1pbHk9IkN1cnNpdmUiIGZvbnQtc2l6ZT0iMjQiIGlkPSJzdmdfMSIgc3Ryb2tlPSIjN2YwMGZmIiBzdHJva2Utd2lkdGg9IjAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRyYW5zZm9ybT0ibWF0cml4KDExLjg0NDkgMCAwIDEwLjE5MjMgLTczNS4yNCAtMTMxOC4zOSkiIHg9IjgyLjM0IiB4bWw6c3BhY2U9InByZXNlcnZlIiB5PSIxNjQuMTciPk88L3RleHQ+DQogIDx0ZXh0IGZpbGw9IiMwMDdmZmYiIGZvbnQtZmFtaWx5PSJDdXJzaXZlIiBmb250LXNpemU9IjI0IiBpZD0ic3ZnXzIiIHN0cm9rZT0iIzdmMDBmZiIgc3Ryb2tlLXdpZHRoPSIwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiB0cmFuc2Zvcm09Im1hdHJpeCg2LjUyOTcyIDAgMCAzLjE0NzIzIC0yMDUzLjA1IC02MDIuNjk5KSIgeD0iMzY4LjAzIiB4bWw6c3BhY2U9InByZXNlcnZlIiB5PSIzMTkuNTkiPjM8L3RleHQ+DQogPC9nPg0KPC9zdmc+",Z5="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8c3ZnIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSI+DQogPCEtLSBDcmVhdGVkIHdpdGggU1ZHLWVkaXQgLSBodHRwczovL2dpdGh1Yi5jb20vU1ZHLUVkaXQvc3ZnZWRpdC0tPg0KIDxnIGNsYXNzPSJsYXllciI+DQogIDx0aXRsZT5MYXllciAxPC90aXRsZT4NCiAgPHRleHQgZmlsbD0iI2ZmMDAwMCIgZm9udC1mYW1pbHk9IkN1cnNpdmUiIGZvbnQtc2l6ZT0iMjQiIGlkPSJzdmdfMSIgc3Ryb2tlPSIjN2YwMGZmIiBzdHJva2Utd2lkdGg9IjAiIHN0eWxlPSJjdXJzb3I6IG1vdmU7IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiB0cmFuc2Zvcm09Im1hdHJpeCg2LjAzOTUzIDAgMCAxMi44NzE4IC0yNzguNDYyIC0xNzkwLjE4KSIgeD0iODguNzYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHk9IjE2OC42NyI+Q088L3RleHQ+DQogPC9nPg0KPC9zdmc+";var Q5=Array.isArray,rr=Q5,J5=typeof ki=="object"&&ki&&ki.Object===Object&&ki,lk=J5,eL=lk,tL=typeof self=="object"&&self&&self.Object===Object&&self,rL=eL||tL||Function("return this")(),En=rL,nL=En,iL=nL.Symbol,lc=iL,gx=lc,uk=Object.prototype,oL=uk.hasOwnProperty,aL=uk.toString,ol=gx?gx.toStringTag:void 0;function sL(e){var t=oL.call(e,ol),r=e[ol];try{e[ol]=void 0;var n=!0}catch{}var i=aL.call(e);return n&&(t?e[ol]=r:delete e[ol]),i}var lL=sL,uL=Object.prototype,cL=uL.toString;function fL(e){return cL.call(e)}var dL=fL,bx=lc,hL=lL,pL=dL,mL="[object Null]",vL="[object Undefined]",wx=bx?bx.toStringTag:void 0;function yL(e){return e==null?e===void 0?vL:mL:wx&&wx in Object(e)?hL(e):pL(e)}var ui=yL;function gL(e){return e!=null&&typeof e=="object"}var ci=gL,bL=ui,wL=ci,xL="[object Symbol]";function SL(e){return typeof e=="symbol"||wL(e)&&bL(e)==xL}var As=SL,OL=rr,_L=As,PL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EL=/^\w*$/;function CL(e,t){if(OL(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_L(e)?!0:EL.test(e)||!PL.test(e)||t!=null&&e in Object(t)}var W1=CL;function kL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var to=kL;const Ts=Me(to);var AL=ui,TL=to,ML="[object AsyncFunction]",jL="[object Function]",$L="[object GeneratorFunction]",NL="[object Proxy]";function IL(e){if(!TL(e))return!1;var t=AL(e);return t==jL||t==$L||t==ML||t==NL}var H1=IL;const me=Me(H1);var DL=En,RL=DL["__core-js_shared__"],LL=RL,Fm=LL,xx=function(){var e=/[^.]+$/.exec(Fm&&Fm.keys&&Fm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zL(e){return!!xx&&xx in e}var FL=zL,BL=Function.prototype,WL=BL.toString;function HL(e){if(e!=null){try{return WL.call(e)}catch{}try{return e+""}catch{}}return""}var ck=HL,UL=H1,YL=FL,VL=to,GL=ck,qL=/[\\^$.*+?()[\]{}|]/g,KL=/^\[object .+?Constructor\]$/,XL=Function.prototype,ZL=Object.prototype,QL=XL.toString,JL=ZL.hasOwnProperty,e8=RegExp("^"+QL.call(JL).replace(qL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t8(e){if(!VL(e)||YL(e))return!1;var t=UL(e)?e8:KL;return t.test(GL(e))}var r8=t8;function n8(e,t){return e==null?void 0:e[t]}var i8=n8,o8=r8,a8=i8;function s8(e,t){var r=a8(e,t);return o8(r)?r:void 0}var Jo=s8,l8=Jo,u8=l8(Object,"create"),Jh=u8,Sx=Jh;function c8(){this.__data__=Sx?Sx(null):{},this.size=0}var f8=c8;function d8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var h8=d8,p8=Jh,m8="__lodash_hash_undefined__",v8=Object.prototype,y8=v8.hasOwnProperty;function g8(e){var t=this.__data__;if(p8){var r=t[e];return r===m8?void 0:r}return y8.call(t,e)?t[e]:void 0}var b8=g8,w8=Jh,x8=Object.prototype,S8=x8.hasOwnProperty;function O8(e){var t=this.__data__;return w8?t[e]!==void 0:S8.call(t,e)}var _8=O8,P8=Jh,E8="__lodash_hash_undefined__";function C8(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=P8&&t===void 0?E8:t,this}var k8=C8,A8=f8,T8=h8,M8=b8,j8=_8,$8=k8;function Ms(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var X8=K8,Z8=ep;function Q8(e,t){var r=this.__data__,n=Z8(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var J8=Q8,e9=D8,t9=U8,r9=G8,n9=X8,i9=J8;function js(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var c8=u8,f8=ep;function d8(e,t){var r=this.__data__,n=f8(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var h8=d8,p8=XL,m8=i8,v8=s8,y8=c8,g8=h8;function Ms(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},_o=function(t){return uc(t)&&t.indexOf("%")===t.length-1},q=function(t){return k7(t)&&!cc(t)},vt=function(t){return q(t)||uc(t)},j7=0,fc=function(t){var r=++j7;return"".concat(t||"").concat(r)},Wo=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!uc(t))return n;var o;if(_o(t)){var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return cc(o)&&(o=n),i&&o>r&&(o=r),o},Ci=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},$7=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function z7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Gy(e){"@babel/helpers - typeof";return Gy=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},Gy(e)}var Ax={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Un=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Tx=null,Wm=null,eb=function e(t){if(t===Tx&&Array.isArray(Wm))return Wm;var r=[];return O.Children.forEach(t,function(n){be(n)||(Yy.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Wm=r,Tx=t,r};function Mr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Un(i)}):n=[Un(t)],eb(e).forEach(function(i){var o=Tr(i,"type.displayName")||Tr(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function ar(e,t){var r=Mr(e,t);return r&&r[0]}var Mx=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},F7=["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"],B7=function(t){return t&&t.type&&uc(t.type)&&F7.indexOf(t.type)>=0},W7=function(t){return t&&Gy(t)==="object"&&"cx"in t&&"cy"in t&&"r"in t},H7=function(t,r,n,i){var o,a=(o=Bm==null?void 0:Bm[i])!==null&&o!==void 0?o:[];return!me(t)&&(i&&a.includes(r)||I7.includes(r))||n&&J1.includes(r)},Se=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!Ts(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;H7((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},qy=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return jx(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Xy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=G7(e,V7),c=i||{width:r,height:n,x:0,y:0},f=de("recharts-surface",o);return $.createElement("svg",Ky({},Se(u,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),$.createElement("title",null,s),$.createElement("desc",null,l),t)}var K7=["children","className"];function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var lt=$.forwardRef(function(e,t){var r=e.children,n=e.className,i=X7(e,K7),o=de("recharts-layer",n);return $.createElement("g",Zy({className:o},Se(i,!0),{ref:t}),r)}),Yn=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;oi?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=n?e:ez(e,t,r)}var rz=tz,nz="\\ud800-\\udfff",iz="\\u0300-\\u036f",oz="\\ufe20-\\ufe2f",az="\\u20d0-\\u20ff",sz=iz+oz+az,lz="\\ufe0e\\ufe0f",uz="\\u200d",cz=RegExp("["+uz+nz+sz+lz+"]");function fz(e){return cz.test(e)}var wk=fz;function dz(e){return e.split("")}var hz=dz,xk="\\ud800-\\udfff",pz="\\u0300-\\u036f",mz="\\ufe20-\\ufe2f",vz="\\u20d0-\\u20ff",yz=pz+mz+vz,gz="\\ufe0e\\ufe0f",bz="["+xk+"]",Qy="["+yz+"]",Jy="\\ud83c[\\udffb-\\udfff]",wz="(?:"+Qy+"|"+Jy+")",Sk="[^"+xk+"]",Ok="(?:\\ud83c[\\udde6-\\uddff]){2}",_k="[\\ud800-\\udbff][\\udc00-\\udfff]",xz="\\u200d",Pk=wz+"?",Ek="["+gz+"]?",Sz="(?:"+xz+"(?:"+[Sk,Ok,_k].join("|")+")"+Ek+Pk+")*",Oz=Ek+Pk+Sz,_z="(?:"+[Sk+Qy+"?",Qy,Ok,_k,bz].join("|")+")",Pz=RegExp(Jy+"(?="+Jy+")|"+_z+Oz,"g");function Ez(e){return e.match(Pz)||[]}var Cz=Ez,kz=hz,Az=wk,Tz=Cz;function Mz(e){return Az(e)?Tz(e):kz(e)}var jz=Mz,$z=rz,Nz=wk,Iz=jz,Dz=pk;function Rz(e){return function(t){t=Dz(t);var r=Nz(t)?Iz(t):void 0,n=r?r[0]:t.charAt(0),i=r?$z(r,1).join(""):t.slice(1);return n[e]()+i}}var Lz=Rz,zz=Lz,Fz=zz("toUpperCase"),Bz=Fz;const pp=Me(Bz);function Re(e){return function(){return e}}const Ck=Math.cos,gd=Math.sin,an=Math.sqrt,bd=Math.PI,mp=2*bd,eg=Math.PI,tg=2*eg,yo=1e-6,Wz=tg-yo;function kk(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return kk;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;iyo)if(!(Math.abs(f*l-u*c)>yo)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-a,v=i-s,p=l*l+u*u,g=h*h+v*v,y=Math.sqrt(p),m=Math.sqrt(d),b=o*Math.tan((eg-Math.acos((p+d-g)/(2*y*m)))/2),w=b/m,x=b/y;Math.abs(w-1)>yo&&this._append`L${t+w*c},${r+w*f}`,this._append`A${o},${o},0,0,${+(f*h>c*v)},${this._x1=t+x*l},${this._y1=r+x*u}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>yo||Math.abs(this._y1-c)>yo)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%tg+tg),d>Wz?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>yo&&this._append`A${n},${n},0,${+(d>=eg)},${f},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function tb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Uz(t)}function rb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ak(e){this._context=e}Ak.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 vp(e){return new Ak(e)}function Tk(e){return e[0]}function Mk(e){return e[1]}function jk(e,t){var r=Re(!0),n=null,i=vp,o=null,a=tb(s);e=typeof e=="function"?e:e===void 0?Tk:Re(e),t=typeof t=="function"?t:t===void 0?Mk:Re(t);function s(l){var u,c=(l=rb(l)).length,f,d=!1,h;for(n==null&&(o=i(h=a())),u=0;u<=c;++u)!(u=h;--v)s.point(b[v],w[v]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+e(g,d,f),w[d]=+t(g,d,f),s.point(n?+n(g,d,f):b[d],r?+r(g,d,f):w[d]))}if(m)return s=null,m+""||null}function c(){return jk().defined(i).curve(a).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Re(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Re(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Re(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Re(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Re(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Re(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Re(!!f),u):i},u.curve=function(f){return arguments.length?(a=f,o!=null&&(s=a(o)),u):a},u.context=function(f){return arguments.length?(f==null?o=s=null:s=a(o=f),u):o},u}class $k{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Yz(e){return new $k(e,!0)}function Vz(e){return new $k(e,!1)}const nb={draw(e,t){const r=an(t/bd);e.moveTo(r,0),e.arc(0,0,r,0,mp)}},Gz={draw(e,t){const r=an(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Nk=an(1/3),qz=Nk*2,Kz={draw(e,t){const r=an(t/qz),n=r*Nk;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Xz={draw(e,t){const r=an(t),n=-r/2;e.rect(n,n,r,r)}},Zz=.8908130915292852,Ik=gd(bd/10)/gd(7*bd/10),Qz=gd(mp/10)*Ik,Jz=-Ck(mp/10)*Ik,eF={draw(e,t){const r=an(t*Zz),n=Qz*r,i=Jz*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=mp*o/5,s=Ck(a),l=gd(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Hm=an(3),tF={draw(e,t){const r=-an(t/(Hm*3));e.moveTo(0,r*2),e.lineTo(-Hm*r,-r),e.lineTo(Hm*r,-r),e.closePath()}},br=-.5,wr=an(3)/2,rg=1/an(12),rF=(rg/2+1)*3,nF={draw(e,t){const r=an(t/rF),n=r/2,i=r*rg,o=n,a=r*rg+r,s=-o,l=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(br*n-wr*i,wr*n+br*i),e.lineTo(br*o-wr*a,wr*o+br*a),e.lineTo(br*s-wr*l,wr*s+br*l),e.lineTo(br*n+wr*i,br*i-wr*n),e.lineTo(br*o+wr*a,br*a-wr*o),e.lineTo(br*s+wr*l,br*l-wr*s),e.closePath()}};function iF(e,t){let r=null,n=tb(i);e=typeof e=="function"?e:Re(e||nb),t=typeof t=="function"?t:Re(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Re(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Re(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function wd(){}function xd(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Dk(e){this._context=e}Dk.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:xd(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:xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oF(e){return new Dk(e)}function Rk(e){this._context=e}Rk.prototype={areaStart:wd,areaEnd:wd,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:xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aF(e){return new Rk(e)}function Lk(e){this._context=e}Lk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sF(e){return new Lk(e)}function zk(e){this._context=e}zk.prototype={areaStart:wd,areaEnd:wd,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 lF(e){return new zk(e)}function Nx(e){return e<0?-1:1}function Ix(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(Nx(o)+Nx(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Dx(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Um(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function Sd(e){this._context=e}Sd.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:Um(this,this._t0,Dx(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Um(this,Dx(this,r=Ix(this,e,t)),r);break;default:Um(this,this._t0,r=Ix(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Fk(e){this._context=new Bk(e)}(Fk.prototype=Object.create(Sd.prototype)).point=function(e,t){Sd.prototype.point.call(this,t,e)};function Bk(e){this._context=e}Bk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function uF(e){return new Sd(e)}function cF(e){return new Fk(e)}function Wk(e){this._context=e}Wk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Rx(e),i=Rx(t),o=0,a=1;a=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function dF(e){return new yp(e,.5)}function hF(e){return new yp(e,0)}function pF(e){return new yp(e,1)}function Qa(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,s=o.length;r=0;)r[t]=t;return r}function mF(e,t){return e[t]}function vF(e){const t=[];return t.key=e,t}function yF(){var e=Re([]),t=ng,r=Qa,n=mF;function i(o){var a=Array.from(e.apply(this,arguments),vF),s,l=a.length,u=-1,c;for(const f of o)for(s=0,++u;s0){for(var r,n,i=0,o=e[0].length,a;i0){for(var r=0,n=e[t[0]],i,o=n.length;r0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EF(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var Hk={symbolCircle:nb,symbolCross:Gz,symbolDiamond:Kz,symbolSquare:Xz,symbolStar:eF,symbolTriangle:tF,symbolWye:nF},CF=Math.PI/180,kF=function(t){var r="symbol".concat(pp(t));return Hk[r]||nb},AF=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*CF;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}},TF=function(t,r){Hk["symbol".concat(pp(t))]=r},ib=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,l=PF(t,xF),u=zx(zx({},l),{},{type:n,size:o,sizeType:s}),c=function(){var g=kF(n),y=iF().type(g).size(AF(o,s,n));return y()},f=u.className,d=u.cx,h=u.cy,v=Se(u,!0);return d===+d&&h===+h&&o===+o?$.createElement("path",ig({},v,{className:de("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};ib.registerSymbol=TF;function Ja(e){"@babel/helpers - typeof";return Ja=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},Ja(e)}function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?1:-1},Oo=function(t){return uc(t)&&t.indexOf("%")===t.length-1},q=function(t){return W9(t)&&!cc(t)},vt=function(t){return q(t)||uc(t)},V9=0,fc=function(t){var r=++V9;return"".concat(t||"").concat(r)},Wo=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!uc(t))return n;var o;if(Oo(t)){var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return cc(o)&&(o=n),i&&o>r&&(o=r),o},Ci=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},G9=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J9(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Vy(e){"@babel/helpers - typeof";return Vy=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},Vy(e)}var Cx={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Un=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},kx=null,Wm=null,J1=function e(t){if(t===kx&&Array.isArray(Wm))return Wm;var r=[];return O.Children.forEach(t,function(n){be(n)||(Uy.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Wm=r,kx=t,r};function Mr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Un(i)}):n=[Un(t)],J1(e).forEach(function(i){var o=Tr(i,"type.displayName")||Tr(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function ar(e,t){var r=Mr(e,t);return r&&r[0]}var Ax=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},e7=["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"],t7=function(t){return t&&t.type&&uc(t.type)&&e7.indexOf(t.type)>=0},r7=function(t){return t&&Vy(t)==="object"&&"cx"in t&&"cy"in t&&"r"in t},n7=function(t,r,n,i){var o,a=(o=Bm==null?void 0:Bm[i])!==null&&o!==void 0?o:[];return!me(t)&&(i&&a.includes(r)||K9.includes(r))||n&&Q1.includes(r)},Se=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!As(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;n7((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},Gy=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Tx(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Ky(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=s7(e,a7),c=i||{width:r,height:n,x:0,y:0},f=de("recharts-surface",o);return $.createElement("svg",qy({},Se(u,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),$.createElement("title",null,s),$.createElement("desc",null,l),t)}var u7=["children","className"];function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var lt=$.forwardRef(function(e,t){var r=e.children,n=e.className,i=c7(e,u7),o=de("recharts-layer",n);return $.createElement("g",Xy({className:o},Se(i,!0),{ref:t}),r)}),Yn=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;oi?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n=n?e:p7(e,t,r)}var v7=m7,y7="\\ud800-\\udfff",g7="\\u0300-\\u036f",b7="\\ufe20-\\ufe2f",w7="\\u20d0-\\u20ff",x7=g7+b7+w7,S7="\\ufe0e\\ufe0f",O7="\\u200d",_7=RegExp("["+O7+y7+x7+S7+"]");function P7(e){return _7.test(e)}var pk=P7;function E7(e){return e.split("")}var C7=E7,mk="\\ud800-\\udfff",k7="\\u0300-\\u036f",A7="\\ufe20-\\ufe2f",T7="\\u20d0-\\u20ff",M7=k7+A7+T7,j7="\\ufe0e\\ufe0f",$7="["+mk+"]",Zy="["+M7+"]",Qy="\\ud83c[\\udffb-\\udfff]",N7="(?:"+Zy+"|"+Qy+")",vk="[^"+mk+"]",yk="(?:\\ud83c[\\udde6-\\uddff]){2}",gk="[\\ud800-\\udbff][\\udc00-\\udfff]",I7="\\u200d",bk=N7+"?",wk="["+j7+"]?",D7="(?:"+I7+"(?:"+[vk,yk,gk].join("|")+")"+wk+bk+")*",R7=wk+bk+D7,L7="(?:"+[vk+Zy+"?",Zy,yk,gk,$7].join("|")+")",z7=RegExp(Qy+"(?="+Qy+")|"+L7+R7,"g");function F7(e){return e.match(z7)||[]}var B7=F7,W7=C7,H7=pk,U7=B7;function Y7(e){return H7(e)?U7(e):W7(e)}var V7=Y7,G7=v7,q7=pk,K7=V7,X7=lk;function Z7(e){return function(t){t=X7(t);var r=q7(t)?K7(t):void 0,n=r?r[0]:t.charAt(0),i=r?G7(r,1).join(""):t.slice(1);return n[e]()+i}}var Q7=Z7,J7=Q7,ez=J7("toUpperCase"),tz=ez;const pp=Me(tz);function Re(e){return function(){return e}}const xk=Math.cos,gd=Math.sin,an=Math.sqrt,bd=Math.PI,mp=2*bd,Jy=Math.PI,eg=2*Jy,yo=1e-6,rz=eg-yo;function Sk(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Sk;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;iyo)if(!(Math.abs(f*l-u*c)>yo)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-a,v=i-s,p=l*l+u*u,g=h*h+v*v,y=Math.sqrt(p),m=Math.sqrt(d),b=o*Math.tan((Jy-Math.acos((p+d-g)/(2*y*m)))/2),w=b/m,x=b/y;Math.abs(w-1)>yo&&this._append`L${t+w*c},${r+w*f}`,this._append`A${o},${o},0,0,${+(f*h>c*v)},${this._x1=t+x*l},${this._y1=r+x*u}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>yo||Math.abs(this._y1-c)>yo)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%eg+eg),d>rz?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>yo&&this._append`A${n},${n},0,${+(d>=Jy)},${f},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function eb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new iz(t)}function tb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ok(e){this._context=e}Ok.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 vp(e){return new Ok(e)}function _k(e){return e[0]}function Pk(e){return e[1]}function Ek(e,t){var r=Re(!0),n=null,i=vp,o=null,a=eb(s);e=typeof e=="function"?e:e===void 0?_k:Re(e),t=typeof t=="function"?t:t===void 0?Pk:Re(t);function s(l){var u,c=(l=tb(l)).length,f,d=!1,h;for(n==null&&(o=i(h=a())),u=0;u<=c;++u)!(u=h;--v)s.point(b[v],w[v]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+e(g,d,f),w[d]=+t(g,d,f),s.point(n?+n(g,d,f):b[d],r?+r(g,d,f):w[d]))}if(m)return s=null,m+""||null}function c(){return Ek().defined(i).curve(a).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Re(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Re(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Re(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Re(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Re(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Re(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Re(!!f),u):i},u.curve=function(f){return arguments.length?(a=f,o!=null&&(s=a(o)),u):a},u.context=function(f){return arguments.length?(f==null?o=s=null:s=a(o=f),u):o},u}class Ck{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function oz(e){return new Ck(e,!0)}function az(e){return new Ck(e,!1)}const rb={draw(e,t){const r=an(t/bd);e.moveTo(r,0),e.arc(0,0,r,0,mp)}},sz={draw(e,t){const r=an(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},kk=an(1/3),lz=kk*2,uz={draw(e,t){const r=an(t/lz),n=r*kk;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},cz={draw(e,t){const r=an(t),n=-r/2;e.rect(n,n,r,r)}},fz=.8908130915292852,Ak=gd(bd/10)/gd(7*bd/10),dz=gd(mp/10)*Ak,hz=-xk(mp/10)*Ak,pz={draw(e,t){const r=an(t*fz),n=dz*r,i=hz*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=mp*o/5,s=xk(a),l=gd(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Hm=an(3),mz={draw(e,t){const r=-an(t/(Hm*3));e.moveTo(0,r*2),e.lineTo(-Hm*r,-r),e.lineTo(Hm*r,-r),e.closePath()}},br=-.5,wr=an(3)/2,tg=1/an(12),vz=(tg/2+1)*3,yz={draw(e,t){const r=an(t/vz),n=r/2,i=r*tg,o=n,a=r*tg+r,s=-o,l=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(br*n-wr*i,wr*n+br*i),e.lineTo(br*o-wr*a,wr*o+br*a),e.lineTo(br*s-wr*l,wr*s+br*l),e.lineTo(br*n+wr*i,br*i-wr*n),e.lineTo(br*o+wr*a,br*a-wr*o),e.lineTo(br*s+wr*l,br*l-wr*s),e.closePath()}};function gz(e,t){let r=null,n=eb(i);e=typeof e=="function"?e:Re(e||rb),t=typeof t=="function"?t:Re(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Re(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Re(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function wd(){}function xd(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Tk(e){this._context=e}Tk.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:xd(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:xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bz(e){return new Tk(e)}function Mk(e){this._context=e}Mk.prototype={areaStart:wd,areaEnd:wd,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:xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wz(e){return new Mk(e)}function jk(e){this._context=e}jk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xz(e){return new jk(e)}function $k(e){this._context=e}$k.prototype={areaStart:wd,areaEnd:wd,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 Sz(e){return new $k(e)}function jx(e){return e<0?-1:1}function $x(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(jx(o)+jx(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Nx(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Um(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function Sd(e){this._context=e}Sd.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:Um(this,this._t0,Nx(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Um(this,Nx(this,r=$x(this,e,t)),r);break;default:Um(this,this._t0,r=$x(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Nk(e){this._context=new Ik(e)}(Nk.prototype=Object.create(Sd.prototype)).point=function(e,t){Sd.prototype.point.call(this,t,e)};function Ik(e){this._context=e}Ik.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function Oz(e){return new Sd(e)}function _z(e){return new Nk(e)}function Dk(e){this._context=e}Dk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Ix(e),i=Ix(t),o=0,a=1;a=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Ez(e){return new yp(e,.5)}function Cz(e){return new yp(e,0)}function kz(e){return new yp(e,1)}function Qa(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,s=o.length;r=0;)r[t]=t;return r}function Az(e,t){return e[t]}function Tz(e){const t=[];return t.key=e,t}function Mz(){var e=Re([]),t=rg,r=Qa,n=Az;function i(o){var a=Array.from(e.apply(this,arguments),Tz),s,l=a.length,u=-1,c;for(const f of o)for(s=0,++u;s0){for(var r,n,i=0,o=e[0].length,a;i0){for(var r=0,n=e[t[0]],i,o=n.length;r0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var Rk={symbolCircle:rb,symbolCross:sz,symbolDiamond:uz,symbolSquare:cz,symbolStar:pz,symbolTriangle:mz,symbolWye:yz},Bz=Math.PI/180,Wz=function(t){var r="symbol".concat(pp(t));return Rk[r]||rb},Hz=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Bz;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}},Uz=function(t,r){Rk["symbol".concat(pp(t))]=r},nb=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,l=zz(t,Iz),u=Rx(Rx({},l),{},{type:n,size:o,sizeType:s}),c=function(){var g=Wz(n),y=gz().type(g).size(Hz(o,s,n));return y()},f=u.className,d=u.cx,h=u.cy,v=Se(u,!0);return d===+d&&h===+h&&o===+o?$.createElement("path",ng({},v,{className:de("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};nb.registerSymbol=Uz;function Ja(e){"@babel/helpers - typeof";return Ja=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},Ja(e)}function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var m=h.inactive?u:h.color;return $.createElement("li",og({className:g,style:f,key:"legend-item-".concat(v)},yd(n.props,h,v)),$.createElement(Xy,{width:a,height:a,viewBox:c,style:d},n.renderIcon(h)),$.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},p?p(y,h,v):y))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,a=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return $.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}]),t}(O.PureComponent);uu(ob,"displayName","Legend");uu(ob,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var FF=tp;function BF(){this.__data__=new FF,this.size=0}var WF=BF;function HF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var UF=HF;function YF(e){return this.__data__.get(e)}var VF=YF;function GF(e){return this.__data__.has(e)}var qF=GF,KF=tp,XF=Y1,ZF=V1,QF=200;function JF(e,t){var r=this.__data__;if(r instanceof KF){var n=r.__data__;if(!XF||n.lengths))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&xB?new yB:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=PW}var ub=EW,CW=ui,kW=ub,AW=ci,TW="[object Arguments]",MW="[object Array]",jW="[object Boolean]",$W="[object Date]",NW="[object Error]",IW="[object Function]",DW="[object Map]",RW="[object Number]",LW="[object Object]",zW="[object RegExp]",FW="[object Set]",BW="[object String]",WW="[object WeakMap]",HW="[object ArrayBuffer]",UW="[object DataView]",YW="[object Float32Array]",VW="[object Float64Array]",GW="[object Int8Array]",qW="[object Int16Array]",KW="[object Int32Array]",XW="[object Uint8Array]",ZW="[object Uint8ClampedArray]",QW="[object Uint16Array]",JW="[object Uint32Array]",He={};He[YW]=He[VW]=He[GW]=He[qW]=He[KW]=He[XW]=He[ZW]=He[QW]=He[JW]=!0;He[TW]=He[MW]=He[HW]=He[jW]=He[UW]=He[$W]=He[NW]=He[IW]=He[DW]=He[RW]=He[LW]=He[zW]=He[FW]=He[BW]=He[WW]=!1;function eH(e){return AW(e)&&kW(e.length)&&!!He[CW(e)]}var tH=eH;function rH(e){return function(t){return e(t)}}var eA=rH,Ed={exports:{}};Ed.exports;(function(e,t){var r=lk,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Ed,Ed.exports);var nH=Ed.exports,iH=tH,oH=eA,Vx=nH,Gx=Vx&&Vx.isTypedArray,aH=Gx?oH(Gx):iH,tA=aH,sH=cW,lH=sb,uH=rr,cH=Jk,fH=lb,dH=tA,hH=Object.prototype,pH=hH.hasOwnProperty;function mH(e,t){var r=uH(e),n=!r&&lH(e),i=!r&&!n&&cH(e),o=!r&&!n&&!i&&dH(e),a=r||n||i||o,s=a?sH(e.length,String):[],l=s.length;for(var u in e)(t||pH.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fH(u,l)))&&s.push(u);return s}var vH=mH,yH=Object.prototype;function gH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||yH;return e===r}var bH=gH;function wH(e,t){return function(r){return e(t(r))}}var rA=wH,xH=rA,SH=xH(Object.keys,Object),OH=SH,_H=bH,PH=OH,EH=Object.prototype,CH=EH.hasOwnProperty;function kH(e){if(!_H(e))return PH(e);var t=[];for(var r in Object(e))CH.call(e,r)&&r!="constructor"&&t.push(r);return t}var AH=kH,TH=H1,MH=ub;function jH(e){return e!=null&&MH(e.length)&&!TH(e)}var dc=jH,$H=vH,NH=AH,IH=dc;function DH(e){return IH(e)?$H(e):NH(e)}var gp=DH,RH=QB,LH=lW,zH=gp;function FH(e){return RH(e,zH,LH)}var BH=FH,qx=BH,WH=1,HH=Object.prototype,UH=HH.hasOwnProperty;function YH(e,t,r,n,i,o){var a=r&WH,s=qx(e),l=s.length,u=qx(t),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in t:UH.call(t,d)))return!1}var h=o.get(e),v=o.get(t);if(h&&v)return h==t&&v==e;var p=!0;o.set(e,t),o.set(t,e);for(var g=a;++f-1}var HY=WY;function UY(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=oV){var u=t?null:nV(e);if(u)return iV(u);a=!1,i=rV,l=new JY}else l=t?[]:s;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wV(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function xV(e){return e.value}function SV(e,t){if($.isValidElement(e))return $.cloneElement(e,t);if(typeof e=="function")return $.createElement(e,t);t.ref;var r=bV(t,dV);return $.createElement(ob,r)}var cS=1,ts=function(e){yV(t,e);function t(){var r;hV(this,t);for(var n=arguments.length,i=new Array(n),o=0;ocS||Math.abs(i.height-this.lastBoundingBox.height)>cS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?fo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(a==="center"&&o==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var v=this.getBBoxSnapshot();d={top:((c||0)-v.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return fo(fo({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=fo(fo({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return $.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},SV(o,fo(fo({},this.props),{},{payload:uA(c,u,xV)})))}}],[{key:"getWithHeight",value:function(n,i){var o=n.props.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}]),t}(O.PureComponent);bp(ts,"displayName","Legend");bp(ts,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var fS=lc,OV=sb,_V=rr,dS=fS?fS.isConcatSpreadable:void 0;function PV(e){return _V(e)||OV(e)||!!(dS&&e&&e[dS])}var EV=PV,CV=Zk,kV=EV;function hA(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=kV),i||(i=[]);++o0&&r(s)?t>1?hA(s,t-1,r,n,i):CV(i,s):n||(i[i.length]=s)}return i}var pA=hA;function AV(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(r(o[l],l,o)===!1)break}return t}}var TV=AV,MV=TV,jV=MV(),$V=jV,NV=$V,IV=gp;function DV(e,t){return e&&NV(e,t,IV)}var mA=DV,RV=dc;function LV(e,t){return function(r,n){if(r==null)return r;if(!RV(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++ot||o&&a&&l&&!s&&!u||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&e=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var QV=ZV,qm=q1,JV=K1,eG=ro,tG=vA,rG=GV,nG=eA,iG=QV,oG=Ds,aG=rr;function sG(e,t,r){t.length?t=qm(t,function(o){return aG(o)?function(a){return JV(a,o.length===1?o[0]:o)}:o}):t=[oG];var n=-1;t=qm(t,nG(eG));var i=tG(e,function(o,a,s){var l=qm(t,function(u){return u(o)});return{criteria:l,index:++n,value:o}});return rG(i,function(o,a){return iG(o,a,r)})}var lG=sG;function uG(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var cG=uG,fG=cG,pS=Math.max;function dG(e,t,r){return t=pS(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=pS(n.length-t,0),a=Array(o);++i0){if(++t>=SG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var EG=PG,CG=xG,kG=EG,AG=kG(CG),TG=AG,MG=Ds,jG=hG,$G=TG;function NG(e,t){return $G(jG(e,t,MG),e+"")}var IG=NG,DG=U1,RG=dc,LG=lb,zG=to;function FG(e,t,r){if(!zG(r))return!1;var n=typeof t;return(n=="number"?RG(r)&&LG(t,r.length):n=="string"&&t in r)?DG(r[t],e):!1}var wp=FG,BG=pA,WG=lG,HG=IG,vS=wp,UG=HG(function(e,t){if(e==null)return[];var r=t.length;return r>1&&vS(e,t[0],t[1])?t=[]:r>2&&vS(t[0],t[1],t[2])&&(t=[t[0]]),WG(e,BG(t,1),[])}),YG=UG;const db=Me(YG);function cu(e){"@babel/helpers - typeof";return cu=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},cu(e)}function hg(){return hg=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(al,"-left"),q(r)&&t&&q(t.x)&&r=t.y),"".concat(al,"-top"),q(n)&&t&&q(t.y)&&np?Math.max(c,l[n]):Math.max(f,l[n])}function aq(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function sq(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return a.height>0&&a.width>0&&r?(c=bS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),f=bS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=aq({translateX:c,translateY:f,useTranslate3d:s})):u=iq,{cssProperties:u,cssClasses:oq({translateX:c,translateY:f,coordinate:r})}}function rs(e){"@babel/helpers - typeof";return rs=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},rs(e)}function wS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xS(e){for(var t=1;tSS||Math.abs(n.height-this.state.lastBoundingBox.height)>SS)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,v=i.position,p=i.reverseDirection,g=i.useTranslate3d,y=i.viewBox,m=i.wrapperStyle,b=sq({allowEscapeViewBox:a,coordinate:c,offsetTopLeft:h,position:v,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),w=b.cssClasses,x=b.cssProperties,S=xS(xS({transition:d&&o?"transform ".concat(s,"ms ").concat(l):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},m);return $.createElement("div",{tabIndex:-1,className:w,style:S,ref:function(E){n.wrapperNode=E}},u)}}]),t}(O.PureComponent),vq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Vn={isSsr:vq(),get:function(t){return Vn[t]},set:function(t,r){if(typeof t=="string")Vn[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Vn[i]=t[i]})}}};function ns(e){"@babel/helpers - typeof";return ns=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},ns(e)}function OS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _S(e){for(var t=1;t0;return $.createElement(mq,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:d,active:o,coordinate:c,hasPayload:S,offset:h,position:g,reverseDirection:y,useTranslate3d:m,viewBox:b,wrapperStyle:w},Eq(u,_S(_S({},this.props),{},{payload:x})))}}]),t}(O.PureComponent);hb(fn,"displayName","Tooltip");hb(fn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Vn.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 Cq=En,kq=function(){return Cq.Date.now()},Aq=kq,Tq=/\s/;function Mq(e){for(var t=e.length;t--&&Tq.test(e.charAt(t)););return t}var jq=Mq,$q=jq,Nq=/^\s+/;function Iq(e){return e&&e.slice(0,$q(e)+1).replace(Nq,"")}var Dq=Iq,Rq=Dq,PS=to,Lq=As,ES=NaN,zq=/^[-+]0x[0-9a-f]+$/i,Fq=/^0b[01]+$/i,Bq=/^0o[0-7]+$/i,Wq=parseInt;function Hq(e){if(typeof e=="number")return e;if(Lq(e))return ES;if(PS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=PS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rq(e);var r=Fq.test(e);return r||Bq.test(e)?Wq(e.slice(2),r?2:8):zq.test(e)?ES:+e}var SA=Hq,Uq=to,Xm=Aq,CS=SA,Yq="Expected a function",Vq=Math.max,Gq=Math.min;function qq(e,t,r){var n,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Yq);t=CS(t)||0,Uq(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Vq(CS(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(S){var _=n,E=i;return n=i=void 0,u=S,a=e.apply(E,_),a}function v(S){return u=S,s=setTimeout(y,t),c?h(S):a}function p(S){var _=S-l,E=S-u,A=t-_;return f?Gq(A,o-E):A}function g(S){var _=S-l,E=S-u;return l===void 0||_>=t||_<0||f&&E>=o}function y(){var S=Xm();if(g(S))return m(S);s=setTimeout(y,p(S))}function m(S){return s=void 0,d&&n?h(S):(n=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function w(){return s===void 0?a:m(Xm())}function x(){var S=Xm(),_=g(S);if(n=arguments,i=this,l=S,_){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return x.cancel=b,x.flush=w,x}var Kq=qq,Xq=Kq,Zq=to,Qq="Expected a function";function Jq(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Qq);return Zq(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Xq(e,t,{leading:n,maxWait:t,trailing:i})}var eK=Jq;const OA=Me(eK);function du(e){"@babel/helpers - typeof";return du=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},du(e)}function kS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zc(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(j=OA(j,p,{trailing:!0,leading:!1}));var M=new ResizeObserver(j),R=x.current.getBoundingClientRect(),I=R.width,D=R.height;return T(I,D),M.observe(x.current),function(){M.disconnect()}},[T,p]);var k=O.useMemo(function(){var j=A.containerWidth,M=A.containerHeight;if(j<0||M<0)return null;Yn(_o(a)||_o(l),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,a,l),Yn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var R=_o(a)?j:a,I=_o(l)?M:l;r&&r>0&&(R?I=R/r:I&&(R=I*r),d&&I>d&&(I=d)),Yn(R>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0, + A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return $.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(xr/8,"h").concat(xr,"v").concat(xr*3/4,"h").concat(-xr,"z"),className:"recharts-legend-icon"});if($.isValidElement(n.legendIcon)){var u=Yz({},n);return delete u.legendIcon,$.cloneElement(n.legendIcon,u)}return $.createElement(nb,{fill:l,cx:o,cy:o,size:xr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:xr,height:xr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(h,v){var p=h.formatter||l,g=de(uu(uu({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=me(h.value)?null:h.value;Yn(!me(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var m=h.inactive?u:h.color;return $.createElement("li",ig({className:g,style:f,key:"legend-item-".concat(v)},yd(n.props,h,v)),$.createElement(Ky,{width:a,height:a,viewBox:c,style:d},n.renderIcon(h)),$.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},p?p(y,h,v):y))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,a=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return $.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}]),t}(O.PureComponent);uu(ib,"displayName","Legend");uu(ib,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var eF=tp;function tF(){this.__data__=new eF,this.size=0}var rF=tF;function nF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var iF=nF;function oF(e){return this.__data__.get(e)}var aF=oF;function sF(e){return this.__data__.has(e)}var lF=sF,uF=tp,cF=U1,fF=Y1,dF=200;function hF(e,t){var r=this.__data__;if(r instanceof uF){var n=r.__data__;if(!cF||n.lengths))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&IF?new MF:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=zB}var lb=FB,BB=ui,WB=lb,HB=ci,UB="[object Arguments]",YB="[object Array]",VB="[object Boolean]",GB="[object Date]",qB="[object Error]",KB="[object Function]",XB="[object Map]",ZB="[object Number]",QB="[object Object]",JB="[object RegExp]",eW="[object Set]",tW="[object String]",rW="[object WeakMap]",nW="[object ArrayBuffer]",iW="[object DataView]",oW="[object Float32Array]",aW="[object Float64Array]",sW="[object Int8Array]",lW="[object Int16Array]",uW="[object Int32Array]",cW="[object Uint8Array]",fW="[object Uint8ClampedArray]",dW="[object Uint16Array]",hW="[object Uint32Array]",He={};He[oW]=He[aW]=He[sW]=He[lW]=He[uW]=He[cW]=He[fW]=He[dW]=He[hW]=!0;He[UB]=He[YB]=He[nW]=He[VB]=He[iW]=He[GB]=He[qB]=He[KB]=He[XB]=He[ZB]=He[QB]=He[JB]=He[eW]=He[tW]=He[rW]=!1;function pW(e){return HB(e)&&WB(e.length)&&!!He[BB(e)]}var mW=pW;function vW(e){return function(t){return e(t)}}var qk=vW,Ed={exports:{}};Ed.exports;(function(e,t){var r=rk,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Ed,Ed.exports);var yW=Ed.exports,gW=mW,bW=qk,Ux=yW,Yx=Ux&&Ux.isTypedArray,wW=Yx?bW(Yx):gW,Kk=wW,xW=_B,SW=ab,OW=rr,_W=Gk,PW=sb,EW=Kk,CW=Object.prototype,kW=CW.hasOwnProperty;function AW(e,t){var r=OW(e),n=!r&&SW(e),i=!r&&!n&&_W(e),o=!r&&!n&&!i&&EW(e),a=r||n||i||o,s=a?xW(e.length,String):[],l=s.length;for(var u in e)(t||kW.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||PW(u,l)))&&s.push(u);return s}var TW=AW,MW=Object.prototype;function jW(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||MW;return e===r}var $W=jW;function NW(e,t){return function(r){return e(t(r))}}var Xk=NW,IW=Xk,DW=IW(Object.keys,Object),RW=DW,LW=$W,zW=RW,FW=Object.prototype,BW=FW.hasOwnProperty;function WW(e){if(!LW(e))return zW(e);var t=[];for(var r in Object(e))BW.call(e,r)&&r!="constructor"&&t.push(r);return t}var HW=WW,UW=W1,YW=lb;function VW(e){return e!=null&&YW(e.length)&&!UW(e)}var dc=VW,GW=TW,qW=HW,KW=dc;function XW(e){return KW(e)?GW(e):qW(e)}var gp=XW,ZW=dB,QW=SB,JW=gp;function eH(e){return ZW(e,JW,QW)}var tH=eH,Vx=tH,rH=1,nH=Object.prototype,iH=nH.hasOwnProperty;function oH(e,t,r,n,i,o){var a=r&rH,s=Vx(e),l=s.length,u=Vx(t),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in t:iH.call(t,d)))return!1}var h=o.get(e),v=o.get(t);if(h&&v)return h==t&&v==e;var p=!0;o.set(e,t),o.set(t,e);for(var g=a;++f-1}var nY=rY;function iY(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=bY){var u=t?null:yY(e);if(u)return gY(u);a=!1,i=vY,l=new hY}else l=t?[]:s;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NY(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function IY(e){return e.value}function DY(e,t){if($.isValidElement(e))return $.cloneElement(e,t);if(typeof e=="function")return $.createElement(e,t);t.ref;var r=$Y(t,EY);return $.createElement(ib,r)}var lS=1,ts=function(e){MY(t,e);function t(){var r;CY(this,t);for(var n=arguments.length,i=new Array(n),o=0;olS||Math.abs(i.height-this.lastBoundingBox.height)>lS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?co({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(a==="center"&&o==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var v=this.getBBoxSnapshot();d={top:((c||0)-v.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return co(co({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=co(co({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return $.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},DY(o,co(co({},this.props),{},{payload:nA(c,u,IY)})))}}],[{key:"getWithHeight",value:function(n,i){var o=n.props.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}]),t}(O.PureComponent);bp(ts,"displayName","Legend");bp(ts,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var uS=lc,RY=ab,LY=rr,cS=uS?uS.isConcatSpreadable:void 0;function zY(e){return LY(e)||RY(e)||!!(cS&&e&&e[cS])}var FY=zY,BY=Yk,WY=FY;function sA(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=WY),i||(i=[]);++o0&&r(s)?t>1?sA(s,t-1,r,n,i):BY(i,s):n||(i[i.length]=s)}return i}var lA=sA;function HY(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(r(o[l],l,o)===!1)break}return t}}var UY=HY,YY=UY,VY=YY(),GY=VY,qY=GY,KY=gp;function XY(e,t){return e&&qY(e,t,KY)}var uA=XY,ZY=dc;function QY(e,t){return function(r,n){if(r==null)return r;if(!ZY(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++ot||o&&a&&l&&!s&&!u||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&e=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var dV=fV,qm=G1,hV=q1,pV=ro,mV=cA,vV=sV,yV=qk,gV=dV,bV=Is,wV=rr;function xV(e,t,r){t.length?t=qm(t,function(o){return wV(o)?function(a){return hV(a,o.length===1?o[0]:o)}:o}):t=[bV];var n=-1;t=qm(t,yV(pV));var i=mV(e,function(o,a,s){var l=qm(t,function(u){return u(o)});return{criteria:l,index:++n,value:o}});return vV(i,function(o,a){return gV(o,a,r)})}var SV=xV;function OV(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var _V=OV,PV=_V,dS=Math.max;function EV(e,t,r){return t=dS(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=dS(n.length-t,0),a=Array(o);++i0){if(++t>=DV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var FV=zV,BV=IV,WV=FV,HV=WV(BV),UV=HV,YV=Is,VV=CV,GV=UV;function qV(e,t){return GV(VV(e,t,YV),e+"")}var KV=qV,XV=H1,ZV=dc,QV=sb,JV=to;function eG(e,t,r){if(!JV(r))return!1;var n=typeof t;return(n=="number"?ZV(r)&&QV(t,r.length):n=="string"&&t in r)?XV(r[t],e):!1}var wp=eG,tG=lA,rG=SV,nG=KV,pS=wp,iG=nG(function(e,t){if(e==null)return[];var r=t.length;return r>1&&pS(e,t[0],t[1])?t=[]:r>2&&pS(t[0],t[1],t[2])&&(t=[t[0]]),rG(e,tG(t,1),[])}),oG=iG;const fb=Me(oG);function cu(e){"@babel/helpers - typeof";return cu=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},cu(e)}function dg(){return dg=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(il,"-left"),q(r)&&t&&q(t.x)&&r=t.y),"".concat(il,"-top"),q(n)&&t&&q(t.y)&&np?Math.max(c,l[n]):Math.max(f,l[n])}function wG(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function xG(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return a.height>0&&a.width>0&&r?(c=yS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),f=yS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=wG({translateX:c,translateY:f,useTranslate3d:s})):u=gG,{cssProperties:u,cssClasses:bG({translateX:c,translateY:f,coordinate:r})}}function rs(e){"@babel/helpers - typeof";return rs=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},rs(e)}function gS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bS(e){for(var t=1;twS||Math.abs(n.height-this.state.lastBoundingBox.height)>wS)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,v=i.position,p=i.reverseDirection,g=i.useTranslate3d,y=i.viewBox,m=i.wrapperStyle,b=xG({allowEscapeViewBox:a,coordinate:c,offsetTopLeft:h,position:v,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),w=b.cssClasses,x=b.cssProperties,S=bS(bS({transition:d&&o?"transform ".concat(s,"ms ").concat(l):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},m);return $.createElement("div",{tabIndex:-1,className:w,style:S,ref:function(E){n.wrapperNode=E}},u)}}]),t}(O.PureComponent),TG=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Vn={isSsr:TG(),get:function(t){return Vn[t]},set:function(t,r){if(typeof t=="string")Vn[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Vn[i]=t[i]})}}};function ns(e){"@babel/helpers - typeof";return ns=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},ns(e)}function xS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SS(e){for(var t=1;t0;return $.createElement(AG,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:d,active:o,coordinate:c,hasPayload:S,offset:h,position:g,reverseDirection:y,useTranslate3d:m,viewBox:b,wrapperStyle:w},FG(u,SS(SS({},this.props),{},{payload:x})))}}]),t}(O.PureComponent);db(fn,"displayName","Tooltip");db(fn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Vn.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 BG=En,WG=function(){return BG.Date.now()},HG=WG,UG=/\s/;function YG(e){for(var t=e.length;t--&&UG.test(e.charAt(t)););return t}var VG=YG,GG=VG,qG=/^\s+/;function KG(e){return e&&e.slice(0,GG(e)+1).replace(qG,"")}var XG=KG,ZG=XG,OS=to,QG=ks,_S=NaN,JG=/^[-+]0x[0-9a-f]+$/i,eq=/^0b[01]+$/i,tq=/^0o[0-7]+$/i,rq=parseInt;function nq(e){if(typeof e=="number")return e;if(QG(e))return _S;if(OS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=OS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ZG(e);var r=eq.test(e);return r||tq.test(e)?rq(e.slice(2),r?2:8):JG.test(e)?_S:+e}var vA=nq,iq=to,Xm=HG,PS=vA,oq="Expected a function",aq=Math.max,sq=Math.min;function lq(e,t,r){var n,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(oq);t=PS(t)||0,iq(r)&&(c=!!r.leading,f="maxWait"in r,o=f?aq(PS(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(S){var _=n,E=i;return n=i=void 0,u=S,a=e.apply(E,_),a}function v(S){return u=S,s=setTimeout(y,t),c?h(S):a}function p(S){var _=S-l,E=S-u,A=t-_;return f?sq(A,o-E):A}function g(S){var _=S-l,E=S-u;return l===void 0||_>=t||_<0||f&&E>=o}function y(){var S=Xm();if(g(S))return m(S);s=setTimeout(y,p(S))}function m(S){return s=void 0,d&&n?h(S):(n=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function w(){return s===void 0?a:m(Xm())}function x(){var S=Xm(),_=g(S);if(n=arguments,i=this,l=S,_){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return x.cancel=b,x.flush=w,x}var uq=lq,cq=uq,fq=to,dq="Expected a function";function hq(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(dq);return fq(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),cq(e,t,{leading:n,maxWait:t,trailing:i})}var pq=hq;const yA=Me(pq);function du(e){"@babel/helpers - typeof";return du=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},du(e)}function ES(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kc(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(j=yA(j,p,{trailing:!0,leading:!1}));var M=new ResizeObserver(j),R=x.current.getBoundingClientRect(),I=R.width,D=R.height;return T(I,D),M.observe(x.current),function(){M.disconnect()}},[T,p]);var k=O.useMemo(function(){var j=A.containerWidth,M=A.containerHeight;if(j<0||M<0)return null;Yn(Oo(a)||Oo(l),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,a,l),Yn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var R=Oo(a)?j:a,I=Oo(l)?M:l;r&&r>0&&(R?I=R/r:I&&(R=I*r),d&&I>d&&(I=d)),Yn(R>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,R,I,a,l,c,f,r);var D=!Array.isArray(h)&&Yy.isElement(h)&&Un(h.type).endsWith("Chart");return $.Children.map(h,function(N){return Yy.isElement(N)?O.cloneElement(N,Zc({width:R,height:I},D?{style:Zc({height:"100%",width:"100%",maxHeight:I,maxWidth:R},N.props.style)}:{})):N})},[r,h,l,d,f,c,A,a]);return $.createElement("div",{id:g?"".concat(g):void 0,className:de("recharts-responsive-container",y),style:Zc(Zc({},w),{},{width:a,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:x},k)}),_A=function(t){return null};_A.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 TS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gg(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Vn.isSsr)return{width:0,height:0};var n=mK(r),i=JSON.stringify({text:t,copyStyle:n});if(oa.widthCache[i])return oa.widthCache[i];try{var o=document.getElementById(MS);o||(o=document.createElement("span"),o.setAttribute("id",MS),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=gg(gg({},pK),n);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return oa.widthCache[i]=l,++oa.cacheCount>hK&&(oa.cacheCount=0,oa.widthCache={}),l}catch{return{width:0,height:0}}},vK=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function Td(e,t){return wK(e)||bK(e,t)||gK(e,t)||yK()}function yK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gK(e,t){if(e){if(typeof e=="string")return jS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jS(e,t)}}function jS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function LS(e,t){return LK(e)||RK(e,t)||DK(e,t)||IK()}function IK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DK(e,t){if(e){if(typeof e=="string")return zS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zS(e,t)}}function zS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(I,D){var N=D.word,L=D.width,W=I[I.length-1];if(W&&(i==null||o||W.width+L+nD.width?I:D})};if(!c)return h;for(var p="…",g=function(R){var I=f.slice(0,R),D=kA({breakAll:u,style:l,children:I+p}).wordsWithComputedWidth,N=d(D),L=N.length>a||v(N).width>Number(i);return[L,N]},y=0,m=f.length-1,b=0,w;y<=m&&b<=f.length-1;){var x=Math.floor((y+m)/2),S=x-1,_=g(S),E=LS(_,2),A=E[0],C=E[1],T=g(x),k=LS(T,1),j=k[0];if(!A&&!j&&(y=x+1),A&&j&&(m=x-1),!A&&j){w=C;break}b++}return w||h},FS=function(t){var r=be(t)?[]:t.toString().split(CA);return[{words:r}]},FK=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!Vn.isSsr){var l,u,c=kA({breakAll:a,children:i,style:o});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return FS(i);return zK({breakAll:a,children:i,maxLines:s,style:o},l,u,r,n)}return FS(i)},BS="#808080",Md=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,h=d===void 0?"start":d,v=t.verticalAnchor,p=v===void 0?"end":v,g=t.fill,y=g===void 0?BS:g,m=RS(t,jK),b=O.useMemo(function(){return FK({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:f,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,f,m.style,m.width]),w=m.dx,x=m.dy,S=m.angle,_=m.className,E=m.breakAll,A=RS(m,$K);if(!vt(n)||!vt(o))return null;var C=n+(q(w)?w:0),T=o+(q(x)?x:0),k;switch(p){case"start":k=Zm("calc(".concat(u,")"));break;case"middle":k=Zm("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:k=Zm("calc(".concat(b.length-1," * -").concat(s,")"));break}var j=[];if(f){var M=b[0].width,R=m.width;j.push("scale(".concat((q(R)?R/M:1)/M,")"))}return S&&j.push("rotate(".concat(S,", ").concat(C,", ").concat(T,")")),j.length&&(A.transform=j.join(" ")),$.createElement("text",bg({},Se(A,!0),{x:C,y:T,className:de("recharts-text",_),textAnchor:h,fill:y.includes("url")?BS:y}),b.map(function(I,D){var N=I.words.join(E?"":" ");return $.createElement("tspan",{x:C,dy:D===0?k:s,key:N},N)}))};function Ui(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function BK(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function pb(e){let t,r,n;e.length!==2?(t=Ui,r=(s,l)=>Ui(e(s),l),n=(s,l)=>e(s)-l):(t=e===Ui||e===BK?e:WK,r=e,n=e);function i(s,l,u=0,c=s.length){if(u>>1;r(s[f],l)<0?u=f+1:c=f}while(u>>1;r(s[f],l)<=0?u=f+1:c=f}while(uu&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:a,right:o}}function WK(){return 0}function AA(e){return e===null?NaN:+e}function*HK(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const UK=pb(Ui),hc=UK.right;pb(AA).center;class WS extends Map{constructor(t,r=GK){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(HS(this,t))}has(t){return super.has(HS(this,t))}set(t,r){return super.set(YK(this,t),r)}delete(t){return super.delete(VK(this,t))}}function HS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function YK({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function VK({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function GK(e){return e!==null&&typeof e=="object"?e.valueOf():e}function qK(e=Ui){if(e===Ui)return TA;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function TA(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const KK=Math.sqrt(50),XK=Math.sqrt(10),ZK=Math.sqrt(2);function jd(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=KK?10:o>=XK?5:o>=ZK?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const n=t=i))return[];const s=o-i+1,l=new Array(s);if(n)if(a<0)for(let u=0;u=n)&&(r=n);return r}function YS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function MA(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?TA:qK(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+d)),v=Math.min(n,Math.floor(t+(l-u)*f/l+d));MA(e,t,h,v,i)}const o=e[t];let a=r,s=n;for(sl(e,r,t),i(e[n],o)>0&&sl(e,r,n);a0;)--s}i(e[r],o)===0?sl(e,r,s):(++s,sl(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function sl(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function QK(e,t,r){if(e=Float64Array.from(HK(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return YS(e);if(t>=1)return US(e);var n,i=(n-1)*t,o=Math.floor(i),a=US(MA(e,o).subarray(0,o+1)),s=YS(e.subarray(o+1));return a+(s-a)*(i-o)}}function JK(e,t,r=AA){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function eX(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Jc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Jc(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=rX.exec(e))?new Zt(t[1],t[2],t[3],1):(t=nX.exec(e))?new Zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iX.exec(e))?Jc(t[1],t[2],t[3],t[4]):(t=oX.exec(e))?Jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aX.exec(e))?QS(t[1],t[2]/100,t[3]/100,1):(t=sX.exec(e))?QS(t[1],t[2]/100,t[3]/100,t[4]):VS.hasOwnProperty(e)?KS(VS[e]):e==="transparent"?new Zt(NaN,NaN,NaN,0):null}function KS(e){return new Zt(e>>16&255,e>>8&255,e&255,1)}function Jc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zt(e,t,r,n)}function cX(e){return e instanceof pc||(e=gu(e)),e?(e=e.rgb(),new Zt(e.r,e.g,e.b,e.opacity)):new Zt}function _g(e,t,r,n){return arguments.length===1?cX(e):new Zt(e,t,r,n??1)}function Zt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}vb(Zt,_g,$A(pc,{brighter(e){return e=e==null?$d:Math.pow($d,e),new Zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vu:Math.pow(vu,e),new Zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zt(jo(this.r),jo(this.g),jo(this.b),Nd(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:XS,formatHex:XS,formatHex8:fX,formatRgb:ZS,toString:ZS}));function XS(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}`}function fX(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}${Po((isNaN(this.opacity)?1:this.opacity)*255)}`}function ZS(){const e=Nd(this.opacity);return`${e===1?"rgb(":"rgba("}${jo(this.r)}, ${jo(this.g)}, ${jo(this.b)}${e===1?")":`, ${e})`}`}function Nd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Po(e){return e=jo(e),(e<16?"0":"")+e.toString(16)}function QS(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Gr(e,t,r,n)}function NA(e){if(e instanceof Gr)return new Gr(e.h,e.s,e.l,e.opacity);if(e instanceof pc||(e=gu(e)),!e)return new Gr;if(e instanceof Gr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(r-n)/s+(r0&&l<1?0:a,new Gr(a,s,l,e.opacity)}function dX(e,t,r,n){return arguments.length===1?NA(e):new Gr(e,t,r,n??1)}function Gr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}vb(Gr,dX,$A(pc,{brighter(e){return e=e==null?$d:Math.pow($d,e),new Gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vu:Math.pow(vu,e),new Gr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Zt(Qm(e>=240?e-240:e+120,i,n),Qm(e,i,n),Qm(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Gr(JS(this.h),ef(this.s),ef(this.l),Nd(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=Nd(this.opacity);return`${e===1?"hsl(":"hsla("}${JS(this.h)}, ${ef(this.s)*100}%, ${ef(this.l)*100}%${e===1?")":`, ${e})`}`}}));function JS(e){return e=(e||0)%360,e<0?e+360:e}function ef(e){return Math.max(0,Math.min(1,e||0))}function Qm(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const yb=e=>()=>e;function hX(e,t){return function(r){return e+r*t}}function pX(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function mX(e){return(e=+e)==1?IA:function(t,r){return r-t?pX(t,r,e):yb(isNaN(t)?r:t)}}function IA(e,t){var r=t-e;return r?hX(e,r):yb(isNaN(e)?t:e)}const eO=function e(t){var r=mX(t);function n(i,o){var a=r((i=_g(i)).r,(o=_g(o)).r),s=r(i.g,o.g),l=r(i.b,o.b),u=IA(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);function vX(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;ir&&(o=t.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Id(n,i)})),r=Jm.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function CX(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i2?kX:CX,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?o:(l||(l=s(e.map(n),t,r)))(n(a(d)))}return f.invert=function(d){return a(i((u||(u=s(t,e.map(n),Id)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Dd),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=gb,c()},f.clamp=function(d){return arguments.length?(a=d?!0:Ht,c()):a!==Ht},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(o=d,f):o},function(d,h){return n=d,i=h,c()}}function bb(){return xp()(Ht,Ht)}function AX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rd(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function is(e){return e=Rd(Math.abs(e)),e?e[1]:NaN}function TX(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function MX(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var jX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bu(e){if(!(t=jX.exec(e)))throw new Error("invalid format: "+e);var t;return new wb({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]})}bu.prototype=wb.prototype;function wb(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+""}wb.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 $X(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var DA;function NX(e,t){var r=Rd(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(DA=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Rd(e,Math.max(0,t+o-1))[0]}function rO(e,t){var r=Rd(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const nO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:AX,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)=>rO(e*100,t),r:rO,s:NX,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function iO(e){return e}var oO=Array.prototype.map,aO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function IX(e){var t=e.grouping===void 0||e.thousands===void 0?iO:TX(oO.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?iO:MX(oO.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=bu(f);var d=f.fill,h=f.align,v=f.sign,p=f.symbol,g=f.zero,y=f.width,m=f.comma,b=f.precision,w=f.trim,x=f.type;x==="n"?(m=!0,x="g"):nO[x]||(b===void 0&&(b=12),w=!0,x="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var S=p==="$"?r:p==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",_=p==="$"?n:/[%p]/.test(x)?a:"",E=nO[x],A=/[defgprs%]/.test(x);b=b===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function C(T){var k=S,j=_,M,R,I;if(x==="c")j=E(T)+j,T="";else{T=+T;var D=T<0||1/T<0;if(T=isNaN(T)?l:E(Math.abs(T),b),w&&(T=$X(T)),D&&+T==0&&v!=="+"&&(D=!1),k=(D?v==="("?v:s:v==="-"||v==="("?"":v)+k,j=(x==="s"?aO[8+DA/3]:"")+j+(D&&v==="("?")":""),A){for(M=-1,R=T.length;++MI||I>57){j=(I===46?i+T.slice(M+1):T.slice(M))+j,T=T.slice(0,M);break}}}m&&!g&&(T=t(T,1/0));var N=k.length+T.length+j.length,L=N>1)+k+T+j+L.slice(N);break;default:T=L+k+T+j;break}return o(T)}return C.toString=function(){return f+""},C}function c(f,d){var h=u((f=bu(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(is(d)/3)))*3,p=Math.pow(10,-v),g=aO[8+v/3];return function(y){return h(p*y)+g}}return{format:u,formatPrefix:c}}var tf,xb,RA;DX({thousands:",",grouping:[3],currency:["$",""]});function DX(e){return tf=IX(e),xb=tf.format,RA=tf.formatPrefix,tf}function RX(e){return Math.max(0,-is(Math.abs(e)))}function LX(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(is(t)/3)))*3-is(Math.abs(e)))}function zX(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,is(t)-is(e))+1}function LA(e,t,r,n){var i=Sg(e,t,r),o;switch(n=bu(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=LX(i,a))&&(n.precision=o),RA(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=zX(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=RX(i))&&(n.precision=o-(n.type==="%")*2);break}}return xb(n)}function no(e){var t=e.domain;return e.ticks=function(r){var n=t();return wg(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return LA(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],s=n[o],l,u,c=10;for(s0;){if(u=xg(a,s,r),u===l)return n[i]=a,n[o]=s,t(n);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Ld(){var e=bb();return e.copy=function(){return mc(e,Ld())},Ir.apply(e,arguments),no(e)}function zA(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Dd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return zA(e).unknown(t)},e=arguments.length?Array.from(e,Dd):[0,1],no(r)}function FA(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return oMath.pow(e,t)}function UX(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 uO(e){return(t,r)=>-e(-t,r)}function Sb(e){const t=e(sO,lO),r=t.domain;let n=10,i,o;function a(){return i=UX(n),o=HX(n),r()[0]<0?(i=uO(i),o=uO(o),e(FX,BX)):e(sO,lO),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c0){for(;d<=h;++d)for(v=1;vc)break;y.push(p)}}else for(;d<=h;++d)for(v=n-1;v>=1;--v)if(p=d>0?v/o(-d):v*o(d),!(pc)break;y.push(p)}y.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=bu(l)).precision==null&&(l.trim=!0),l=xb(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/o(Math.round(i(c)));return f*nr(FA(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function BA(){const e=Sb(xp()).domain([1,10]);return e.copy=()=>mc(e,BA()).base(e.base()),Ir.apply(e,arguments),e}function cO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function fO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ob(e){var t=1,r=e(cO(t),fO(t));return r.constant=function(n){return arguments.length?e(cO(t=+n),fO(t)):t},no(r)}function WA(){var e=Ob(xp());return e.copy=function(){return mc(e,WA()).constant(e.constant())},Ir.apply(e,arguments)}function dO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function YX(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function VX(e){return e<0?-e*e:e*e}function _b(e){var t=e(Ht,Ht),r=1;function n(){return r===1?e(Ht,Ht):r===.5?e(YX,VX):e(dO(r),dO(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},no(t)}function Pb(){var e=_b(xp());return e.copy=function(){return mc(e,Pb()).exponent(e.exponent())},Ir.apply(e,arguments),e}function GX(){return Pb.apply(null,arguments).exponent(.5)}function hO(e){return Math.sign(e)*e*e}function qX(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function HA(){var e=bb(),t=[0,1],r=!1,n;function i(o){var a=qX(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(hO(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,Dd)).map(hO)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return HA(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ir.apply(i,arguments),no(i)}function UA(){var e=[],t=[],r=[],n;function i(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[u-1],n[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return YA().domain([e,t]).range(i).unknown(o)},Ir.apply(no(a),arguments)}function VA(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[hc(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return VA().domain(e).range(t).unknown(r)},Ir.apply(i,arguments)}const ev=new Date,tv=new Date;function gt(e,t,r,n){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 a=i(o),s=i.ceil(o);return o-a(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(ugt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),r&&(i.count=(o,a)=>(ev.setTime(+o),tv.setTime(+a),e(ev),e(tv),Math.floor(r(ev,tv))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const zd=gt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):zd);zd.range;const Ln=1e3,Cr=Ln*60,zn=Cr*60,ei=zn*24,Eb=ei*7,pO=ei*30,rv=ei*365,Eo=gt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ln)},(e,t)=>(t-e)/Ln,e=>e.getUTCSeconds());Eo.range;const Cb=gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ln)},(e,t)=>{e.setTime(+e+t*Cr)},(e,t)=>(t-e)/Cr,e=>e.getMinutes());Cb.range;const kb=gt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cr)},(e,t)=>(t-e)/Cr,e=>e.getUTCMinutes());kb.range;const Ab=gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ln-e.getMinutes()*Cr)},(e,t)=>{e.setTime(+e+t*zn)},(e,t)=>(t-e)/zn,e=>e.getHours());Ab.range;const Tb=gt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*zn)},(e,t)=>(t-e)/zn,e=>e.getUTCHours());Tb.range;const vc=gt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cr)/ei,e=>e.getDate()-1);vc.range;const Sp=gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>e.getUTCDate()-1);Sp.range;const GA=gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>Math.floor(e/ei));GA.range;function ea(e){return gt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Cr)/Eb)}const Op=ea(0),Fd=ea(1),KX=ea(2),XX=ea(3),os=ea(4),ZX=ea(5),QX=ea(6);Op.range;Fd.range;KX.range;XX.range;os.range;ZX.range;QX.range;function ta(e){return gt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Eb)}const _p=ta(0),Bd=ta(1),JX=ta(2),eZ=ta(3),as=ta(4),tZ=ta(5),rZ=ta(6);_p.range;Bd.range;JX.range;eZ.range;as.range;tZ.range;rZ.range;const Mb=gt(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());Mb.range;const jb=gt(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());jb.range;const ti=gt(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());ti.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});ti.range;const ri=gt(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());ri.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});ri.range;function qA(e,t,r,n,i,o){const a=[[Eo,1,Ln],[Eo,5,5*Ln],[Eo,15,15*Ln],[Eo,30,30*Ln],[o,1,Cr],[o,5,5*Cr],[o,15,15*Cr],[o,30,30*Cr],[i,1,zn],[i,3,3*zn],[i,6,6*zn],[i,12,12*zn],[n,1,ei],[n,2,2*ei],[r,1,Eb],[t,1,pO],[t,3,3*pO],[e,1,rv]];function s(u,c,f){const d=cg).right(a,d);if(h===a.length)return e.every(Sg(u/rv,c/rv,f));if(h===0)return zd.every(Math.max(Sg(u,c,f),1));const[v,p]=a[d/a[h-1][2]53)return null;"w"in F||(F.w=1),"Z"in F?(se=iv(ll(F.y,0,1)),Fe=se.getUTCDay(),se=Fe>4||Fe===0?Bd.ceil(se):Bd(se),se=Sp.offset(se,(F.V-1)*7),F.y=se.getUTCFullYear(),F.m=se.getUTCMonth(),F.d=se.getUTCDate()+(F.w+6)%7):(se=nv(ll(F.y,0,1)),Fe=se.getDay(),se=Fe>4||Fe===0?Fd.ceil(se):Fd(se),se=vc.offset(se,(F.V-1)*7),F.y=se.getFullYear(),F.m=se.getMonth(),F.d=se.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Fe="Z"in F?iv(ll(F.y,0,1)).getUTCDay():nv(ll(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Fe+5)%7:F.w+F.U*7-(Fe+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,iv(F)):nv(F)}}function E(V,Z,Q,F){for(var xe=0,se=Z.length,Fe=Q.length,De,dt;xe=Fe)return-1;if(De=Z.charCodeAt(xe++),De===37){if(De=Z.charAt(xe++),dt=x[De in mO?Z.charAt(xe++):De],!dt||(F=dt(V,Q,F))<0)return-1}else if(De!=Q.charCodeAt(F++))return-1}return F}function A(V,Z,Q){var F=u.exec(Z.slice(Q));return F?(V.p=c.get(F[0].toLowerCase()),Q+F[0].length):-1}function C(V,Z,Q){var F=h.exec(Z.slice(Q));return F?(V.w=v.get(F[0].toLowerCase()),Q+F[0].length):-1}function T(V,Z,Q){var F=f.exec(Z.slice(Q));return F?(V.w=d.get(F[0].toLowerCase()),Q+F[0].length):-1}function k(V,Z,Q){var F=y.exec(Z.slice(Q));return F?(V.m=m.get(F[0].toLowerCase()),Q+F[0].length):-1}function j(V,Z,Q){var F=p.exec(Z.slice(Q));return F?(V.m=g.get(F[0].toLowerCase()),Q+F[0].length):-1}function M(V,Z,Q){return E(V,t,Z,Q)}function R(V,Z,Q){return E(V,r,Z,Q)}function I(V,Z,Q){return E(V,n,Z,Q)}function D(V){return a[V.getDay()]}function N(V){return o[V.getDay()]}function L(V){return l[V.getMonth()]}function W(V){return s[V.getMonth()]}function Y(V){return i[+(V.getHours()>=12)]}function G(V){return 1+~~(V.getMonth()/3)}function ie(V){return a[V.getUTCDay()]}function ye(V){return o[V.getUTCDay()]}function Ae(V){return l[V.getUTCMonth()]}function Qe(V){return s[V.getUTCMonth()]}function re(V){return i[+(V.getUTCHours()>=12)]}function we(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var Z=S(V+="",b);return Z.toString=function(){return V},Z},parse:function(V){var Z=_(V+="",!1);return Z.toString=function(){return V},Z},utcFormat:function(V){var Z=S(V+="",w);return Z.toString=function(){return V},Z},utcParse:function(V){var Z=_(V+="",!0);return Z.toString=function(){return V},Z}}}var mO={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,lZ=/^%/,uZ=/[\\^$*+?|[\]().{}]/g;function Ce(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o[t.toLowerCase(),r]))}function fZ(e,t,r){var n=Pt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function dZ(e,t,r){var n=Pt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function hZ(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function pZ(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function mZ(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function vO(e,t,r){var n=Pt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function yO(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function vZ(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function yZ(e,t,r){var n=Pt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function gZ(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function gO(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function bZ(e,t,r){var n=Pt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function bO(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function wZ(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function xZ(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function SZ(e,t,r){var n=Pt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function OZ(e,t,r){var n=Pt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _Z(e,t,r){var n=lZ.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function PZ(e,t,r){var n=Pt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function EZ(e,t,r){var n=Pt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function wO(e,t){return Ce(e.getDate(),t,2)}function CZ(e,t){return Ce(e.getHours(),t,2)}function kZ(e,t){return Ce(e.getHours()%12||12,t,2)}function AZ(e,t){return Ce(1+vc.count(ti(e),e),t,3)}function KA(e,t){return Ce(e.getMilliseconds(),t,3)}function TZ(e,t){return KA(e,t)+"000"}function MZ(e,t){return Ce(e.getMonth()+1,t,2)}function jZ(e,t){return Ce(e.getMinutes(),t,2)}function $Z(e,t){return Ce(e.getSeconds(),t,2)}function NZ(e){var t=e.getDay();return t===0?7:t}function IZ(e,t){return Ce(Op.count(ti(e)-1,e),t,2)}function XA(e){var t=e.getDay();return t>=4||t===0?os(e):os.ceil(e)}function DZ(e,t){return e=XA(e),Ce(os.count(ti(e),e)+(ti(e).getDay()===4),t,2)}function RZ(e){return e.getDay()}function LZ(e,t){return Ce(Fd.count(ti(e)-1,e),t,2)}function zZ(e,t){return Ce(e.getFullYear()%100,t,2)}function FZ(e,t){return e=XA(e),Ce(e.getFullYear()%100,t,2)}function BZ(e,t){return Ce(e.getFullYear()%1e4,t,4)}function WZ(e,t){var r=e.getDay();return e=r>=4||r===0?os(e):os.ceil(e),Ce(e.getFullYear()%1e4,t,4)}function HZ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ce(t/60|0,"0",2)+Ce(t%60,"0",2)}function xO(e,t){return Ce(e.getUTCDate(),t,2)}function UZ(e,t){return Ce(e.getUTCHours(),t,2)}function YZ(e,t){return Ce(e.getUTCHours()%12||12,t,2)}function VZ(e,t){return Ce(1+Sp.count(ri(e),e),t,3)}function ZA(e,t){return Ce(e.getUTCMilliseconds(),t,3)}function GZ(e,t){return ZA(e,t)+"000"}function qZ(e,t){return Ce(e.getUTCMonth()+1,t,2)}function KZ(e,t){return Ce(e.getUTCMinutes(),t,2)}function XZ(e,t){return Ce(e.getUTCSeconds(),t,2)}function ZZ(e){var t=e.getUTCDay();return t===0?7:t}function QZ(e,t){return Ce(_p.count(ri(e)-1,e),t,2)}function QA(e){var t=e.getUTCDay();return t>=4||t===0?as(e):as.ceil(e)}function JZ(e,t){return e=QA(e),Ce(as.count(ri(e),e)+(ri(e).getUTCDay()===4),t,2)}function eQ(e){return e.getUTCDay()}function tQ(e,t){return Ce(Bd.count(ri(e)-1,e),t,2)}function rQ(e,t){return Ce(e.getUTCFullYear()%100,t,2)}function nQ(e,t){return e=QA(e),Ce(e.getUTCFullYear()%100,t,2)}function iQ(e,t){return Ce(e.getUTCFullYear()%1e4,t,4)}function oQ(e,t){var r=e.getUTCDay();return e=r>=4||r===0?as(e):as.ceil(e),Ce(e.getUTCFullYear()%1e4,t,4)}function aQ(){return"+0000"}function SO(){return"%"}function OO(e){return+e}function _O(e){return Math.floor(+e/1e3)}var aa,JA,eT;sQ({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 sQ(e){return aa=sZ(e),JA=aa.format,aa.parse,eT=aa.utcFormat,aa.utcParse,aa}function lQ(e){return new Date(e)}function uQ(e){return e instanceof Date?+e:+new Date(+e)}function $b(e,t,r,n,i,o,a,s,l,u){var c=bb(),f=c.invert,d=c.domain,h=u(".%L"),v=u(":%S"),p=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(S){return(l(S)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>QK(e,o/n))},r.copy=function(){return iT(t).domain(e)},fi.apply(r,arguments)}function Ep(){var e=0,t=.5,r=1,n=1,i,o,a,s,l,u=Ht,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-o)*(n*pt}var yQ=vQ,gQ=lT,bQ=yQ,wQ=Ds;function xQ(e){return e&&e.length?gQ(e,wQ,bQ):void 0}var SQ=xQ;const Cp=Me(SQ);function OQ(e,t){return ee.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=ne.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};te.decimalPlaces=te.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ue;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};te.dividedBy=te.div=function(e){return Gn(this,new this.constructor(e))};te.dividedToIntegerBy=te.idiv=function(e){var t=this,r=t.constructor;return Ie(Gn(t,new r(e),0,1),r.precision)};te.equals=te.eq=function(e){return!this.cmp(e)};te.exponent=function(){return ft(this)};te.greaterThan=te.gt=function(e){return this.cmp(e)>0};te.greaterThanOrEqualTo=te.gte=function(e){return this.cmp(e)>=0};te.isInteger=te.isint=function(){return this.e>this.d.length-2};te.isNegative=te.isneg=function(){return this.s<0};te.isPositive=te.ispos=function(){return this.s>0};te.isZero=function(){return this.s===0};te.lessThan=te.lt=function(e){return this.cmp(e)<0};te.lessThanOrEqualTo=te.lte=function(e){return this.cmp(e)<1};te.logarithm=te.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(lr))throw Error(Nr+"NaN");if(r.s<1)throw Error(Nr+(r.s?"NaN":"-Infinity"));return r.eq(lr)?new n(0):(Ze=!1,t=Gn(wu(r,o),wu(e,o),o),Ze=!0,Ie(t,i))};te.minus=te.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?dT(t,e):cT(t,(e.s=-e.s,e))};te.modulo=te.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Nr+"NaN");return r.s?(Ze=!1,t=Gn(r,e,0,1).times(e),Ze=!0,r.minus(t)):Ie(new n(r),i)};te.naturalExponential=te.exp=function(){return fT(this)};te.naturalLogarithm=te.ln=function(){return wu(this)};te.negated=te.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};te.plus=te.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cT(t,e):dT(t,(e.s=-e.s,e))};te.precision=te.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error($o+e);if(t=ft(i)+1,n=i.d.length-1,r=n*Ue+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};te.squareRoot=te.sqrt=function(){var e,t,r,n,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Nr+"NaN")}for(e=ft(s),Ze=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=vn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zs((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=a=r+3;;)if(o=n,n=o.plus(Gn(s,o,a+2)).times(.5),vn(o.d).slice(0,a)===(t=vn(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Ie(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return Ze=!0,Ie(n,r)};te.times=te.mul=function(e){var t,r,n,i,o,a,s,l,u,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=h.length,l=0;){for(t=0,i=l+n;i>n;)s=o[i]+h[n]*d[i-n-1]+t,o[i--]=s%wt|0,t=s/wt|0;o[i]=(o[i]+t)%wt|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Ze?Ie(e,f.precision):e};te.toDecimalPlaces=te.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Sn(e,0,Ls),t===void 0?t=n.rounding:Sn(t,0,8),Ie(r,e+ft(r)+1,t))};te.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ho(n,!0):(Sn(e,0,Ls),t===void 0?t=i.rounding:Sn(t,0,8),n=Ie(new i(n),e+1,t),r=Ho(n,!0,e+1)),r};te.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Ho(i):(Sn(e,0,Ls),t===void 0?t=o.rounding:Sn(t,0,8),n=Ie(new o(i),e+ft(i)+1,t),r=Ho(n.abs(),!1,e+ft(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};te.toInteger=te.toint=function(){var e=this,t=e.constructor;return Ie(new t(e),ft(e)+1,t.rounding)};te.toNumber=function(){return+this};te.toPower=te.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(lr);if(s=new l(s),!s.s){if(e.s<1)throw Error(Nr+"Infinity");return s}if(s.eq(lr))return s;if(n=l.precision,e.eq(lr))return Ie(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=c<0?-c:c)<=uT){for(i=new l(lr),t=Math.ceil(n/Ue+4),Ze=!1;r%2&&(i=i.times(s),CO(i.d,t)),r=zs(r/2),r!==0;)s=s.times(s),CO(s.d,t);return Ze=!0,e.s<0?new l(lr).div(i):Ie(i,n)}}else if(o<0)throw Error(Nr+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Ze=!1,i=e.times(wu(s,n+u)),Ze=!0,i=fT(i),i.s=o,i};te.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=ft(i),n=Ho(i,r<=o.toExpNeg||r>=o.toExpPos)):(Sn(e,1,Ls),t===void 0?t=o.rounding:Sn(t,0,8),i=Ie(new o(i),e,t),r=ft(i),n=Ho(i,e<=r||r<=o.toExpNeg,e)),n};te.toSignificantDigits=te.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Sn(e,1,Ls),t===void 0?t=n.rounding:Sn(t,0,8)),Ie(new n(r),e,t)};te.toString=te.valueOf=te.val=te.toJSON=te[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ft(e),r=e.constructor;return Ho(e,t<=r.toExpNeg||t>=r.toExpPos)};function cT(e,t){var r,n,i,o,a,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Ze?Ie(t,f):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(n=l,o=-o,s=u.length):(n=u,i=a,s=l.length),a=Math.ceil(f/Ue),s=a>s?a+1:s+1,o>s&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,n=u,u=l,l=n),r=0;o;)r=(l[--o]=l[o]+u[o]+r)/wt|0,l[o]%=wt;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Ze?Ie(t,f):t}function Sn(e,t,r){if(e!==~~e||er)throw Error($o+e)}function vn(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;ta?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,a){var s,l,u,c,f,d,h,v,p,g,y,m,b,w,x,S,_,E,A=n.constructor,C=n.s==i.s?1:-1,T=n.d,k=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Nr+"Division by zero");for(l=n.e-i.e,_=k.length,x=T.length,h=new A(C),v=h.d=[],u=0;k[u]==(T[u]||0);)++u;if(k[u]>(T[u]||0)&&--l,o==null?m=o=A.precision:a?m=o+(ft(n)-ft(i))+1:m=o,m<0)return new A(0);if(m=m/Ue+2|0,u=0,_==1)for(c=0,k=k[0],m++;(u1&&(k=e(k,c),T=e(T,c),_=k.length,x=T.length),w=_,p=T.slice(0,_),g=p.length;g<_;)p[g++]=0;E=k.slice(),E.unshift(0),S=k[0],k[1]>=wt/2&&++S;do c=0,s=t(k,p,_,g),s<0?(y=p[0],_!=g&&(y=y*wt+(p[1]||0)),c=y/S|0,c>1?(c>=wt&&(c=wt-1),f=e(k,c),d=f.length,g=p.length,s=t(f,p,d,g),s==1&&(c--,r(f,_16)throw Error(Db+ft(e));if(!e.s)return new c(lr);for(t==null?(Ze=!1,s=f):s=t,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(n=Math.log(bo(2,u))/Math.LN10*2+5|0,s+=n,r=i=o=new c(lr),c.precision=s;;){if(i=Ie(i.times(e),s),r=r.times(++l),a=o.plus(Gn(i,r,s)),vn(a.d).slice(0,s)===vn(o.d).slice(0,s)){for(;u--;)o=Ie(o.times(o),s);return c.precision=f,t==null?(Ze=!0,Ie(o,f)):o}o=a}}function ft(e){for(var t=e.e*Ue,r=e.d[0];r>=10;r/=10)t++;return t}function ov(e,t,r){if(t>e.LN10.sd())throw Ze=!0,r&&(e.precision=r),Error(Nr+"LN10 precision limit exceeded");return Ie(new e(e.LN10),t)}function Oi(e){for(var t="";e--;)t+="0";return t}function wu(e,t){var r,n,i,o,a,s,l,u,c,f=1,d=10,h=e,v=h.d,p=h.constructor,g=p.precision;if(h.s<1)throw Error(Nr+(h.s?"NaN":"-Infinity"));if(h.eq(lr))return new p(0);if(t==null?(Ze=!1,u=g):u=t,h.eq(10))return t==null&&(Ze=!0),ov(p,u);if(u+=d,p.precision=u,r=vn(v),n=r.charAt(0),o=ft(h),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=vn(h.d),n=r.charAt(0),f++;o=ft(h),n>1?(h=new p("0."+r),o++):h=new p(n+"."+r.slice(1))}else return l=ov(p,u+2,g).times(o+""),h=wu(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=g,t==null?(Ze=!0,Ie(h,g)):h;for(s=a=h=Gn(h.minus(lr),h.plus(lr),u),c=Ie(h.times(h),u),i=3;;){if(a=Ie(a.times(c),u),l=s.plus(Gn(a,new p(i),u)),vn(l.d).slice(0,u)===vn(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(ov(p,u+2,g).times(o+""))),s=Gn(s,new p(f),u),p.precision=g,t==null?(Ze=!0,Ie(s,g)):s;s=l,i+=2}}function EO(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=zs(r/Ue),e.d=[],n=(r+1)%Ue,r<0&&(n+=Ue),nWd||e.e<-Wd))throw Error(Db+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ie(e,t,r){var n,i,o,a,s,l,u,c,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=Ue,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Ue),o=f.length,c>=o)return e;for(u=o=f[c],a=1;o>=10;o/=10)a++;n%=Ue,i=n-Ue+a}if(r!==void 0&&(o=bo(10,a-i-1),s=u/o%10|0,l=t<0||f[c+1]!==void 0||u%o,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/bo(10,a-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(o=ft(e),f.length=1,t=t-o-1,f[0]=bo(10,(Ue-t%Ue)%Ue),e.e=zs(-t/Ue)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,o=1,c--):(f.length=c+1,o=bo(10,Ue-n),f[c]=i>0?(u/bo(10,a-i)%bo(10,i)|0)*o:0),l)for(;;)if(c==0){(f[0]+=o)==wt&&(f[0]=1,++e.e);break}else{if(f[c]+=o,f[c]!=wt)break;f[c--]=0,o=1}for(n=f.length;f[--n]===0;)f.pop();if(Ze&&(e.e>Wd||e.e<-Wd))throw Error(Db+ft(e));return e}function dT(e,t){var r,n,i,o,a,s,l,u,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ze?Ie(t,h):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),a=u-n,a){for(c=a<0,c?(r=l,a=-a,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(h/Ue),s)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i0;--i)l[s++]=0;for(i=f.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+Oi(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Oi(-i-1)+o,r&&(n=r-a)>0&&(o+=Oi(n))):i>=a?(o+=Oi(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+Oi(n))):((n=i+1)0&&(i+1===a&&(o+="."),o+=Oi(n))),e.s<0?"-"+o:o}function CO(e,t){if(e.length>t)return e.length=t,!0}function hT(e){var t,r,n;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error($o+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return EO(a,o.toString())}else if(typeof o!="string")throw Error($o+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,YQ.test(o))EO(a,o);else throw Error($o+o)}if(i.prototype=te,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=hT,i.config=i.set=VQ,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error($o+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error($o+r+": "+n);return this}var Rb=hT(UQ);lr=new Rb(1);const $e=Rb;function GQ(e){return ZQ(e)||XQ(e)||KQ(e)||qQ()}function qQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KQ(e,t){if(e){if(typeof e=="string")return Cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cg(e,t)}}function XQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ZQ(e){if(Array.isArray(e))return Cg(e)}function Cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-a,kO(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,o=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw o}}return r}}function dJ(e){if(Array.isArray(e))return e}function gT(e){var t=xu(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function bT(e,t,r){if(e.lte(0))return new $e(0);var n=Mp.getDigitCount(e.toNumber()),i=new $e(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new $e(Math.ceil(o.div(a).toNumber())).add(r).mul(a),l=s.mul(i);return t?l:new $e(Math.ceil(l))}function hJ(e,t,r){var n=1,i=new $e(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new $e(10).pow(Mp.getDigitCount(e)-1),i=new $e(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new $e(Math.floor(e)))}else e===0?i=new $e(Math.floor((t-1)/2)):r||(i=new $e(Math.floor(e)));var a=Math.floor((t-1)/2),s=tJ(eJ(function(l){return i.add(new $e(l-a).mul(n)).toNumber()}),kg);return s(0,t)}function wT(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new $e(0),tickMin:new $e(0),tickMax:new $e(0)};var o=bT(new $e(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new $e(0):(a=new $e(e).add(t).div(2),a=a.sub(new $e(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new $e(t).sub(a).div(o).toNumber()),u=s+l+1;return u>r?wT(e,t,r,n,i+1):(u0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:o,tickMin:a.sub(new $e(s).mul(o)),tickMax:a.add(new $e(l).mul(o))})}function pJ(e){var t=xu(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=gT([r,n]),l=xu(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(Tg(kg(0,i-1).map(function(){return 1/0}))):[].concat(Tg(kg(0,i-1).map(function(){return-1/0})),[c]);return r>n?Ag(f):f}if(u===c)return hJ(u,i,o);var d=wT(u,c,a,o),h=d.step,v=d.tickMin,p=d.tickMax,g=Mp.rangeStep(v,p.add(new $e(.1).mul(h)),h);return r>n?Ag(g):g}function mJ(e,t){var r=xu(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=gT([n,i]),s=xu(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=bT(new $e(u).sub(l).div(c-1),o,0),d=[].concat(Tg(Mp.rangeStep(new $e(l),new $e(u).sub(new $e(.99).mul(f)),f)),[u]);return n>i?Ag(d):d}var vJ=vT(pJ),yJ=vT(mJ),gJ="Invariant failed";function Uo(e,t){throw new Error(gJ)}var bJ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function yc(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=PJ(e,bJ),c=Se(u,!1);e.direction==="x"&&s.type!=="number"&&Uo();var f=o.map(function(d){var h=a(d,i),v=h.x,p=h.y,g=h.value,y=h.errorVal;if(!y)return null;var m=[],b,w;if(Array.isArray(y)){var x=wJ(y,2);b=x[0],w=x[1]}else b=w=y;if(r==="vertical"){var S=s.scale,_=p+t,E=_+n,A=_-n,C=S(g-b),T=S(g+w);m.push({x1:T,y1:E,x2:T,y2:A}),m.push({x1:C,y1:_,x2:T,y2:_}),m.push({x1:C,y1:E,x2:C,y2:A})}else if(r==="horizontal"){var k=l.scale,j=v+t,M=j-n,R=j+n,I=k(g-b),D=k(g+w);m.push({x1:M,y1:D,x2:R,y2:D}),m.push({x1:j,y1:I,x2:j,y2:D}),m.push({x1:M,y1:I,x2:R,y2:I})}return $.createElement(lt,Hd({className:"recharts-errorBar",key:"bar-".concat(m.map(function(N){return"".concat(N.x1,"-").concat(N.x2,"-").concat(N.y1,"-").concat(N.y2)}))},c),m.map(function(N){return $.createElement("line",Hd({},N,{key:"line-".concat(N.x1,"-").concat(N.x2,"-").concat(N.y1,"-").concat(N.y2)}))}))});return $.createElement(lt,{className:"recharts-errorBars"},f)}yc.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};yc.displayName="ErrorBar";function Su(e){"@babel/helpers - typeof";return Su=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},Su(e)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function av(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(qr(f-c)!==qr(d-f)){var v=[];if(qr(d-f)===qr(l[1]-l[0])){h=d;var p=f+l[1]-l[0];v[0]=Math.min(p,(p+c)/2),v[1]=Math.max(p,(p+c)/2)}else{h=c;var g=d+l[1]-l[0];v[0]=Math.min(f,(g+f)/2),v[1]=Math.max(f,(g+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=v[0]&&t<=v[1]){a=i[u].index;break}}else{var m=Math.min(c,d),b=Math.max(c,d);if(t>(m+f)/2&&t<=(b+f)/2){a=i[u].index;break}}}else for(var w=0;w0&&w(n[w].coordinate+n[w-1].coordinate)/2&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w===s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2){a=n[w].index;break}return a},Lb=function(t){var r=t,n=r.type.displayName,i=t.props,o=i.stroke,a=i.fill,s;switch(n){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:a;break;default:s=a;break}return s},RJ=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),l=0,u=s.length;l=0});if(y&&y.length){var m=y[0].props.barSize,b=y[0].props[g];a[b]||(a[b]=[]);var w=be(m)?r:m;a[b].push({item:y[0],stackList:y.slice(1),barSize:be(w)?void 0:Wo(w,n,0)})}}return a},LJ=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,l=a.length;if(l<1)return null;var u=Wo(r,i,0,!0),c,f=[];if(a[0].barSize===+a[0].barSize){var d=!1,h=i/l,v=a.reduce(function(w,x){return w+x.barSize||0},0);v+=(l-1)*u,v>=i&&(v-=(l-1)*u,u=0),v>=i&&h>0&&(d=!0,h*=.9,v=l*h);var p=(i-v)/2>>0,g={offset:p-u,size:0};c=a.reduce(function(w,x){var S={item:x.item,position:{offset:g.offset+g.size+u,size:d?h:x.barSize}},_=[].concat(jO(w),[S]);return g=_[_.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(E){_.push({item:E,position:g})}),_},f)}else{var y=Wo(n,i,0,!0);i-2*y-(l-1)*u<=0&&(u=0);var m=(i-2*y-(l-1)*u)/l;m>1&&(m>>=0);var b=s===+s?Math.min(m,s):m;c=a.reduce(function(w,x,S){var _=[].concat(jO(w),[{item:x.item,position:{offset:y+(m+u)*S+(m-b)/2,size:b}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(E){_.push({item:E,position:_[_.length-1].position})}),_},f)}return c},zJ=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,l=a-(s.left||0)-(s.right||0),u=xT({children:o,legendWidth:l});if(u){var c=i||{},f=c.width,d=c.height,h=u.align,v=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&v==="middle")&&h!=="center"&&q(t[h]))return _r(_r({},t),{},Ra({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&v!=="middle"&&q(t[v]))return _r(_r({},t),{},Ra({},v,t[v]+(d||0)))}return t},FJ=function(t,r,n){return be(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ST=function(t,r,n,i,o){var a=r.props.children,s=Mr(a,yc).filter(function(u){return FJ(i,o,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=hr(c,n);if(be(f))return u;var d=Array.isArray(f)?[kp(f),Cp(f)]:[f,f],h=l.reduce(function(v,p){var g=hr(c,p,0),y=d[0]-Math.abs(Array.isArray(g)?g[0]:g),m=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,v[0]),Math.max(m,v[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},BJ=function(t,r,n,i,o){var a=r.map(function(s){return ST(t,s,n,o,i)}).filter(function(s){return!be(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},OT=function(t,r,n,i,o){var a=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&ST(t,l,u,i)||Rl(t,u,n,o)});if(n==="number")return a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,u){for(var c=0,f=u.length;c=2?qr(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=o?o.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!cc(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:o?o[f]:f,index:d,offset:u}})},sv=new WeakMap,rf=function(t,r){if(typeof r!="function")return t;sv.has(t)||sv.set(t,new WeakMap);var n=sv.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},WJ=function(t,r,n){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:mu(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Ld(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Dl(),realScaleType:"point"}:o==="category"?{scale:mu(),realScaleType:"band"}:{scale:Ld(),realScaleType:"linear"};if(uc(i)){var l="scale".concat(pp(i));return{scale:(PO[l]||Dl)(),realScaleType:PO[l]?l:"point"}}return me(i)?{scale:i}:{scale:Dl(),realScaleType:"point"}},$O=1e-4,HJ=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-$O,a=Math.max(i[0],i[1])+$O,s=t(r[0]),l=t(r[n-1]);(sa||la)&&t.domain([r[0],r[n-1]])}},UJ=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]=0?(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1]):(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1])}},GJ=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=0,t[a][n][1]=0)}},qJ={sign:VJ,expand:gF,none:Qa,silhouette:bF,wiggle:wF,positive:GJ},KJ=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=qJ[n],a=yF().keys(i).value(function(s,l){return+hr(s,l,0)}).order(ng).offset(o);return a(t)},XJ=function(t,r,n,i,o,a){if(!t)return null;var s=a?r.reverse():r,l={},u=s.reduce(function(f,d){var h=d.props,v=h.stackId,p=h.hide;if(p)return f;var g=d.props[n],y=f[g]||{hasStack:!1,stackGroups:{}};if(vt(v)){var m=y.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};m.items.push(d),y.hasStack=!0,y.stackGroups[v]=m}else y.stackGroups[fc("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return _r(_r({},f),{},Ra({},g,y))},l),c={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var v={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,g){var y=h.stackGroups[g];return _r(_r({},p),{},Ra({},g,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:KJ(t,y.items,o)}))},v)}return _r(_r({},f),{},Ra({},d,h))},c)},ZJ=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,a=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=vJ(u,o,s);return t.domain([kp(c),Cp(c)]),{niceTicks:c}}if(o&&i==="number"){var f=t.domain(),d=yJ(f,o,s);return{niceTicks:d}}return null};function NO(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!be(i[t.dataKey])){var s=md(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var l=hr(i,be(a)?t.dataKey:a);return be(l)?null:t.scale(l)}var IO=function(t){var r=t.axis,n=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=hr(a,r.dataKey,r.domain[s]);return be(l)?null:r.scale(l)-o/2+i},QJ=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return i<=0&&o>=0?0:o<0?o:i}return n[0]},JJ=function(t,r){var n=t.props.stackId;if(vt(n)){var i=r[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null},eee=function(t){return t.reduce(function(r,n){return[kp(n.concat([r[0]]).filter(q)),Cp(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},ET=function(t,r,n){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,l=s.reduce(function(u,c){var f=eee(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},DO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$g=function(t,r,n){if(me(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(DO.test(t[0])){var o=+DO.exec(t[0])[1];i[0]=r[0]-o}else me(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(RO.test(t[1])){var a=+RO.exec(t[1])[1];i[1]=r[1]+a}else me(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ud=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var o=db(r,function(f){return f.coordinate}),a=1/0,s=1,l=o.length;sa&&(u=2*Math.PI-u),{radius:s,angle:iee(u),angleInRadian:u}},see=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return{startAngle:r-a*360,endAngle:n-a*360}},lee=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},BO=function(t,r){var n=t.x,i=t.y,o=aee({x:n,y:i},r),a=o.radius,s=o.angle,l=r.innerRadius,u=r.outerRadius;if(au)return!1;if(a===0)return!0;var c=see(r),f=c.startAngle,d=c.endAngle,h=s,v;if(f<=d){for(;h>d;)h-=360;for(;h=f&&h<=d}else{for(;h>f;)h-=360;for(;h=d&&h<=f}return v?FO(FO({},r),{},{radius:a,angle:lee(h,r)}):null};function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}var uee=["offset"];function cee(e){return pee(e)||hee(e)||dee(e)||fee()}function fee(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dee(e,t){if(e){if(typeof e=="string")return Ng(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ng(e,t)}}function hee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pee(e){if(Array.isArray(e))return Ng(e)}function Ng(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function WO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t=0?1:-1,b,w;i==="insideStart"?(b=h+m*a,w=p):i==="insideEnd"?(b=v-m*a,w=!p):i==="end"&&(b=v+m*a,w=p),w=y<=0?w:!w;var x=kt(u,c,g,b),S=kt(u,c,g,b+(w?1:-1)*359),_="M".concat(x.x,",").concat(x.y,` + height and width.`,R,I,a,l,c,f,r);var D=!Array.isArray(h)&&Uy.isElement(h)&&Un(h.type).endsWith("Chart");return $.Children.map(h,function(N){return Uy.isElement(N)?O.cloneElement(N,Kc({width:R,height:I},D?{style:Kc({height:"100%",width:"100%",maxHeight:I,maxWidth:R},N.props.style)}:{})):N})},[r,h,l,d,f,c,A,a]);return $.createElement("div",{id:g?"".concat(g):void 0,className:de("recharts-responsive-container",y),style:Kc(Kc({},w),{},{width:a,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:x},k)}),gA=function(t){return null};gA.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 kS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yg(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Vn.isSsr)return{width:0,height:0};var n=Aq(r),i=JSON.stringify({text:t,copyStyle:n});if(ia.widthCache[i])return ia.widthCache[i];try{var o=document.getElementById(AS);o||(o=document.createElement("span"),o.setAttribute("id",AS),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=yg(yg({},kq),n);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return ia.widthCache[i]=l,++ia.cacheCount>Cq&&(ia.cacheCount=0,ia.widthCache={}),l}catch{return{width:0,height:0}}},Tq=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function Td(e,t){return Nq(e)||$q(e,t)||jq(e,t)||Mq()}function Mq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jq(e,t){if(e){if(typeof e=="string")return TS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TS(e,t)}}function TS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qq(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function DS(e,t){return Qq(e)||Zq(e,t)||Xq(e,t)||Kq()}function Kq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xq(e,t){if(e){if(typeof e=="string")return RS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RS(e,t)}}function RS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(I,D){var N=D.word,L=D.width,W=I[I.length-1];if(W&&(i==null||o||W.width+L+nD.width?I:D})};if(!c)return h;for(var p="…",g=function(R){var I=f.slice(0,R),D=SA({breakAll:u,style:l,children:I+p}).wordsWithComputedWidth,N=d(D),L=N.length>a||v(N).width>Number(i);return[L,N]},y=0,m=f.length-1,b=0,w;y<=m&&b<=f.length-1;){var x=Math.floor((y+m)/2),S=x-1,_=g(S),E=DS(_,2),A=E[0],C=E[1],T=g(x),k=DS(T,1),j=k[0];if(!A&&!j&&(y=x+1),A&&j&&(m=x-1),!A&&j){w=C;break}b++}return w||h},LS=function(t){var r=be(t)?[]:t.toString().split(xA);return[{words:r}]},eK=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!Vn.isSsr){var l,u,c=SA({breakAll:a,children:i,style:o});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return LS(i);return Jq({breakAll:a,children:i,maxLines:s,style:o},l,u,r,n)}return LS(i)},zS="#808080",Md=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,h=d===void 0?"start":d,v=t.verticalAnchor,p=v===void 0?"end":v,g=t.fill,y=g===void 0?zS:g,m=IS(t,Vq),b=O.useMemo(function(){return eK({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:f,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,f,m.style,m.width]),w=m.dx,x=m.dy,S=m.angle,_=m.className,E=m.breakAll,A=IS(m,Gq);if(!vt(n)||!vt(o))return null;var C=n+(q(w)?w:0),T=o+(q(x)?x:0),k;switch(p){case"start":k=Zm("calc(".concat(u,")"));break;case"middle":k=Zm("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:k=Zm("calc(".concat(b.length-1," * -").concat(s,")"));break}var j=[];if(f){var M=b[0].width,R=m.width;j.push("scale(".concat((q(R)?R/M:1)/M,")"))}return S&&j.push("rotate(".concat(S,", ").concat(C,", ").concat(T,")")),j.length&&(A.transform=j.join(" ")),$.createElement("text",gg({},Se(A,!0),{x:C,y:T,className:de("recharts-text",_),textAnchor:h,fill:y.includes("url")?zS:y}),b.map(function(I,D){var N=I.words.join(E?"":" ");return $.createElement("tspan",{x:C,dy:D===0?k:s,key:N},N)}))};function Ui(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function tK(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function hb(e){let t,r,n;e.length!==2?(t=Ui,r=(s,l)=>Ui(e(s),l),n=(s,l)=>e(s)-l):(t=e===Ui||e===tK?e:rK,r=e,n=e);function i(s,l,u=0,c=s.length){if(u>>1;r(s[f],l)<0?u=f+1:c=f}while(u>>1;r(s[f],l)<=0?u=f+1:c=f}while(uu&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:a,right:o}}function rK(){return 0}function OA(e){return e===null?NaN:+e}function*nK(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const iK=hb(Ui),hc=iK.right;hb(OA).center;class FS extends Map{constructor(t,r=sK){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(BS(this,t))}has(t){return super.has(BS(this,t))}set(t,r){return super.set(oK(this,t),r)}delete(t){return super.delete(aK(this,t))}}function BS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function oK({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function aK({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function sK(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lK(e=Ui){if(e===Ui)return _A;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function _A(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const uK=Math.sqrt(50),cK=Math.sqrt(10),fK=Math.sqrt(2);function jd(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=uK?10:o>=cK?5:o>=fK?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const n=t=i))return[];const s=o-i+1,l=new Array(s);if(n)if(a<0)for(let u=0;u=n)&&(r=n);return r}function HS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function PA(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?_A:lK(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+d)),v=Math.min(n,Math.floor(t+(l-u)*f/l+d));PA(e,t,h,v,i)}const o=e[t];let a=r,s=n;for(ol(e,r,t),i(e[n],o)>0&&ol(e,r,n);a0;)--s}i(e[r],o)===0?ol(e,r,s):(++s,ol(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function ol(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function dK(e,t,r){if(e=Float64Array.from(nK(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return HS(e);if(t>=1)return WS(e);var n,i=(n-1)*t,o=Math.floor(i),a=WS(PA(e,o).subarray(0,o+1)),s=HS(e.subarray(o+1));return a+(s-a)*(i-o)}}function hK(e,t,r=OA){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function pK(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Zc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Zc(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=vK.exec(e))?new Zt(t[1],t[2],t[3],1):(t=yK.exec(e))?new Zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=gK.exec(e))?Zc(t[1],t[2],t[3],t[4]):(t=bK.exec(e))?Zc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wK.exec(e))?XS(t[1],t[2]/100,t[3]/100,1):(t=xK.exec(e))?XS(t[1],t[2]/100,t[3]/100,t[4]):US.hasOwnProperty(e)?GS(US[e]):e==="transparent"?new Zt(NaN,NaN,NaN,0):null}function GS(e){return new Zt(e>>16&255,e>>8&255,e&255,1)}function Zc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zt(e,t,r,n)}function _K(e){return e instanceof pc||(e=gu(e)),e?(e=e.rgb(),new Zt(e.r,e.g,e.b,e.opacity)):new Zt}function Og(e,t,r,n){return arguments.length===1?_K(e):new Zt(e,t,r,n??1)}function Zt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}mb(Zt,Og,CA(pc,{brighter(e){return e=e==null?$d:Math.pow($d,e),new Zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vu:Math.pow(vu,e),new Zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zt(jo(this.r),jo(this.g),jo(this.b),Nd(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:qS,formatHex:qS,formatHex8:PK,formatRgb:KS,toString:KS}));function qS(){return`#${_o(this.r)}${_o(this.g)}${_o(this.b)}`}function PK(){return`#${_o(this.r)}${_o(this.g)}${_o(this.b)}${_o((isNaN(this.opacity)?1:this.opacity)*255)}`}function KS(){const e=Nd(this.opacity);return`${e===1?"rgb(":"rgba("}${jo(this.r)}, ${jo(this.g)}, ${jo(this.b)}${e===1?")":`, ${e})`}`}function Nd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _o(e){return e=jo(e),(e<16?"0":"")+e.toString(16)}function XS(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Gr(e,t,r,n)}function kA(e){if(e instanceof Gr)return new Gr(e.h,e.s,e.l,e.opacity);if(e instanceof pc||(e=gu(e)),!e)return new Gr;if(e instanceof Gr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(r-n)/s+(r0&&l<1?0:a,new Gr(a,s,l,e.opacity)}function EK(e,t,r,n){return arguments.length===1?kA(e):new Gr(e,t,r,n??1)}function Gr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}mb(Gr,EK,CA(pc,{brighter(e){return e=e==null?$d:Math.pow($d,e),new Gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vu:Math.pow(vu,e),new Gr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Zt(Qm(e>=240?e-240:e+120,i,n),Qm(e,i,n),Qm(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Gr(ZS(this.h),Qc(this.s),Qc(this.l),Nd(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=Nd(this.opacity);return`${e===1?"hsl(":"hsla("}${ZS(this.h)}, ${Qc(this.s)*100}%, ${Qc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ZS(e){return e=(e||0)%360,e<0?e+360:e}function Qc(e){return Math.max(0,Math.min(1,e||0))}function Qm(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const vb=e=>()=>e;function CK(e,t){return function(r){return e+r*t}}function kK(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function AK(e){return(e=+e)==1?AA:function(t,r){return r-t?kK(t,r,e):vb(isNaN(t)?r:t)}}function AA(e,t){var r=t-e;return r?CK(e,r):vb(isNaN(e)?t:e)}const QS=function e(t){var r=AK(t);function n(i,o){var a=r((i=Og(i)).r,(o=Og(o)).r),s=r(i.g,o.g),l=r(i.b,o.b),u=AA(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);function TK(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;ir&&(o=t.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Id(n,i)})),r=Jm.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function BK(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i2?WK:BK,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?o:(l||(l=s(e.map(n),t,r)))(n(a(d)))}return f.invert=function(d){return a(i((u||(u=s(t,e.map(n),Id)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Dd),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=yb,c()},f.clamp=function(d){return arguments.length?(a=d?!0:Ht,c()):a!==Ht},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(o=d,f):o},function(d,h){return n=d,i=h,c()}}function gb(){return xp()(Ht,Ht)}function HK(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rd(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function is(e){return e=Rd(Math.abs(e)),e?e[1]:NaN}function UK(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function YK(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var VK=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bu(e){if(!(t=VK.exec(e)))throw new Error("invalid format: "+e);var t;return new bb({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]})}bu.prototype=bb.prototype;function bb(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+""}bb.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 GK(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var TA;function qK(e,t){var r=Rd(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(TA=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Rd(e,Math.max(0,t+o-1))[0]}function eO(e,t){var r=Rd(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const tO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:HK,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)=>eO(e*100,t),r:eO,s:qK,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function rO(e){return e}var nO=Array.prototype.map,iO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function KK(e){var t=e.grouping===void 0||e.thousands===void 0?rO:UK(nO.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?rO:YK(nO.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=bu(f);var d=f.fill,h=f.align,v=f.sign,p=f.symbol,g=f.zero,y=f.width,m=f.comma,b=f.precision,w=f.trim,x=f.type;x==="n"?(m=!0,x="g"):tO[x]||(b===void 0&&(b=12),w=!0,x="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var S=p==="$"?r:p==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",_=p==="$"?n:/[%p]/.test(x)?a:"",E=tO[x],A=/[defgprs%]/.test(x);b=b===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function C(T){var k=S,j=_,M,R,I;if(x==="c")j=E(T)+j,T="";else{T=+T;var D=T<0||1/T<0;if(T=isNaN(T)?l:E(Math.abs(T),b),w&&(T=GK(T)),D&&+T==0&&v!=="+"&&(D=!1),k=(D?v==="("?v:s:v==="-"||v==="("?"":v)+k,j=(x==="s"?iO[8+TA/3]:"")+j+(D&&v==="("?")":""),A){for(M=-1,R=T.length;++MI||I>57){j=(I===46?i+T.slice(M+1):T.slice(M))+j,T=T.slice(0,M);break}}}m&&!g&&(T=t(T,1/0));var N=k.length+T.length+j.length,L=N>1)+k+T+j+L.slice(N);break;default:T=L+k+T+j;break}return o(T)}return C.toString=function(){return f+""},C}function c(f,d){var h=u((f=bu(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(is(d)/3)))*3,p=Math.pow(10,-v),g=iO[8+v/3];return function(y){return h(p*y)+g}}return{format:u,formatPrefix:c}}var Jc,wb,MA;XK({thousands:",",grouping:[3],currency:["$",""]});function XK(e){return Jc=KK(e),wb=Jc.format,MA=Jc.formatPrefix,Jc}function ZK(e){return Math.max(0,-is(Math.abs(e)))}function QK(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(is(t)/3)))*3-is(Math.abs(e)))}function JK(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,is(t)-is(e))+1}function jA(e,t,r,n){var i=xg(e,t,r),o;switch(n=bu(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=QK(i,a))&&(n.precision=o),MA(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=JK(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=ZK(i))&&(n.precision=o-(n.type==="%")*2);break}}return wb(n)}function no(e){var t=e.domain;return e.ticks=function(r){var n=t();return bg(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return jA(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],s=n[o],l,u,c=10;for(s0;){if(u=wg(a,s,r),u===l)return n[i]=a,n[o]=s,t(n);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Ld(){var e=gb();return e.copy=function(){return mc(e,Ld())},Ir.apply(e,arguments),no(e)}function $A(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Dd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return $A(e).unknown(t)},e=arguments.length?Array.from(e,Dd):[0,1],no(r)}function NA(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return oMath.pow(e,t)}function iX(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 sO(e){return(t,r)=>-e(-t,r)}function xb(e){const t=e(oO,aO),r=t.domain;let n=10,i,o;function a(){return i=iX(n),o=nX(n),r()[0]<0?(i=sO(i),o=sO(o),e(eX,tX)):e(oO,aO),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c0){for(;d<=h;++d)for(v=1;vc)break;y.push(p)}}else for(;d<=h;++d)for(v=n-1;v>=1;--v)if(p=d>0?v/o(-d):v*o(d),!(pc)break;y.push(p)}y.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=bu(l)).precision==null&&(l.trim=!0),l=wb(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/o(Math.round(i(c)));return f*nr(NA(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function IA(){const e=xb(xp()).domain([1,10]);return e.copy=()=>mc(e,IA()).base(e.base()),Ir.apply(e,arguments),e}function lO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function uO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Sb(e){var t=1,r=e(lO(t),uO(t));return r.constant=function(n){return arguments.length?e(lO(t=+n),uO(t)):t},no(r)}function DA(){var e=Sb(xp());return e.copy=function(){return mc(e,DA()).constant(e.constant())},Ir.apply(e,arguments)}function cO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function oX(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function aX(e){return e<0?-e*e:e*e}function Ob(e){var t=e(Ht,Ht),r=1;function n(){return r===1?e(Ht,Ht):r===.5?e(oX,aX):e(cO(r),cO(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},no(t)}function _b(){var e=Ob(xp());return e.copy=function(){return mc(e,_b()).exponent(e.exponent())},Ir.apply(e,arguments),e}function sX(){return _b.apply(null,arguments).exponent(.5)}function fO(e){return Math.sign(e)*e*e}function lX(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function RA(){var e=gb(),t=[0,1],r=!1,n;function i(o){var a=lX(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(fO(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,Dd)).map(fO)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return RA(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ir.apply(i,arguments),no(i)}function LA(){var e=[],t=[],r=[],n;function i(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[u-1],n[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return zA().domain([e,t]).range(i).unknown(o)},Ir.apply(no(a),arguments)}function FA(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[hc(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return FA().domain(e).range(t).unknown(r)},Ir.apply(i,arguments)}const ev=new Date,tv=new Date;function gt(e,t,r,n){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 a=i(o),s=i.ceil(o);return o-a(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(ugt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),r&&(i.count=(o,a)=>(ev.setTime(+o),tv.setTime(+a),e(ev),e(tv),Math.floor(r(ev,tv))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const zd=gt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):zd);zd.range;const Ln=1e3,Cr=Ln*60,zn=Cr*60,ei=zn*24,Pb=ei*7,dO=ei*30,rv=ei*365,Po=gt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ln)},(e,t)=>(t-e)/Ln,e=>e.getUTCSeconds());Po.range;const Eb=gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ln)},(e,t)=>{e.setTime(+e+t*Cr)},(e,t)=>(t-e)/Cr,e=>e.getMinutes());Eb.range;const Cb=gt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cr)},(e,t)=>(t-e)/Cr,e=>e.getUTCMinutes());Cb.range;const kb=gt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ln-e.getMinutes()*Cr)},(e,t)=>{e.setTime(+e+t*zn)},(e,t)=>(t-e)/zn,e=>e.getHours());kb.range;const Ab=gt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*zn)},(e,t)=>(t-e)/zn,e=>e.getUTCHours());Ab.range;const vc=gt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cr)/ei,e=>e.getDate()-1);vc.range;const Sp=gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>e.getUTCDate()-1);Sp.range;const BA=gt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>Math.floor(e/ei));BA.range;function ea(e){return gt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Cr)/Pb)}const Op=ea(0),Fd=ea(1),uX=ea(2),cX=ea(3),os=ea(4),fX=ea(5),dX=ea(6);Op.range;Fd.range;uX.range;cX.range;os.range;fX.range;dX.range;function ta(e){return gt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Pb)}const _p=ta(0),Bd=ta(1),hX=ta(2),pX=ta(3),as=ta(4),mX=ta(5),vX=ta(6);_p.range;Bd.range;hX.range;pX.range;as.range;mX.range;vX.range;const Tb=gt(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());Tb.range;const Mb=gt(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());Mb.range;const ti=gt(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());ti.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});ti.range;const ri=gt(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());ri.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});ri.range;function WA(e,t,r,n,i,o){const a=[[Po,1,Ln],[Po,5,5*Ln],[Po,15,15*Ln],[Po,30,30*Ln],[o,1,Cr],[o,5,5*Cr],[o,15,15*Cr],[o,30,30*Cr],[i,1,zn],[i,3,3*zn],[i,6,6*zn],[i,12,12*zn],[n,1,ei],[n,2,2*ei],[r,1,Pb],[t,1,dO],[t,3,3*dO],[e,1,rv]];function s(u,c,f){const d=cg).right(a,d);if(h===a.length)return e.every(xg(u/rv,c/rv,f));if(h===0)return zd.every(Math.max(xg(u,c,f),1));const[v,p]=a[d/a[h-1][2]53)return null;"w"in F||(F.w=1),"Z"in F?(se=iv(al(F.y,0,1)),Fe=se.getUTCDay(),se=Fe>4||Fe===0?Bd.ceil(se):Bd(se),se=Sp.offset(se,(F.V-1)*7),F.y=se.getUTCFullYear(),F.m=se.getUTCMonth(),F.d=se.getUTCDate()+(F.w+6)%7):(se=nv(al(F.y,0,1)),Fe=se.getDay(),se=Fe>4||Fe===0?Fd.ceil(se):Fd(se),se=vc.offset(se,(F.V-1)*7),F.y=se.getFullYear(),F.m=se.getMonth(),F.d=se.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Fe="Z"in F?iv(al(F.y,0,1)).getUTCDay():nv(al(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Fe+5)%7:F.w+F.U*7-(Fe+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,iv(F)):nv(F)}}function E(V,Z,Q,F){for(var xe=0,se=Z.length,Fe=Q.length,De,dt;xe=Fe)return-1;if(De=Z.charCodeAt(xe++),De===37){if(De=Z.charAt(xe++),dt=x[De in hO?Z.charAt(xe++):De],!dt||(F=dt(V,Q,F))<0)return-1}else if(De!=Q.charCodeAt(F++))return-1}return F}function A(V,Z,Q){var F=u.exec(Z.slice(Q));return F?(V.p=c.get(F[0].toLowerCase()),Q+F[0].length):-1}function C(V,Z,Q){var F=h.exec(Z.slice(Q));return F?(V.w=v.get(F[0].toLowerCase()),Q+F[0].length):-1}function T(V,Z,Q){var F=f.exec(Z.slice(Q));return F?(V.w=d.get(F[0].toLowerCase()),Q+F[0].length):-1}function k(V,Z,Q){var F=y.exec(Z.slice(Q));return F?(V.m=m.get(F[0].toLowerCase()),Q+F[0].length):-1}function j(V,Z,Q){var F=p.exec(Z.slice(Q));return F?(V.m=g.get(F[0].toLowerCase()),Q+F[0].length):-1}function M(V,Z,Q){return E(V,t,Z,Q)}function R(V,Z,Q){return E(V,r,Z,Q)}function I(V,Z,Q){return E(V,n,Z,Q)}function D(V){return a[V.getDay()]}function N(V){return o[V.getDay()]}function L(V){return l[V.getMonth()]}function W(V){return s[V.getMonth()]}function Y(V){return i[+(V.getHours()>=12)]}function G(V){return 1+~~(V.getMonth()/3)}function ie(V){return a[V.getUTCDay()]}function ye(V){return o[V.getUTCDay()]}function Ae(V){return l[V.getUTCMonth()]}function Qe(V){return s[V.getUTCMonth()]}function re(V){return i[+(V.getUTCHours()>=12)]}function we(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var Z=S(V+="",b);return Z.toString=function(){return V},Z},parse:function(V){var Z=_(V+="",!1);return Z.toString=function(){return V},Z},utcFormat:function(V){var Z=S(V+="",w);return Z.toString=function(){return V},Z},utcParse:function(V){var Z=_(V+="",!0);return Z.toString=function(){return V},Z}}}var hO={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,SX=/^%/,OX=/[\\^$*+?|[\]().{}]/g;function Ce(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o[t.toLowerCase(),r]))}function PX(e,t,r){var n=Pt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function EX(e,t,r){var n=Pt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function CX(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function kX(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function AX(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function pO(e,t,r){var n=Pt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function mO(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function TX(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function MX(e,t,r){var n=Pt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function jX(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function vO(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function $X(e,t,r){var n=Pt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function yO(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function NX(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function IX(e,t,r){var n=Pt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function DX(e,t,r){var n=Pt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function RX(e,t,r){var n=Pt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function LX(e,t,r){var n=SX.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function zX(e,t,r){var n=Pt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function FX(e,t,r){var n=Pt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function gO(e,t){return Ce(e.getDate(),t,2)}function BX(e,t){return Ce(e.getHours(),t,2)}function WX(e,t){return Ce(e.getHours()%12||12,t,2)}function HX(e,t){return Ce(1+vc.count(ti(e),e),t,3)}function HA(e,t){return Ce(e.getMilliseconds(),t,3)}function UX(e,t){return HA(e,t)+"000"}function YX(e,t){return Ce(e.getMonth()+1,t,2)}function VX(e,t){return Ce(e.getMinutes(),t,2)}function GX(e,t){return Ce(e.getSeconds(),t,2)}function qX(e){var t=e.getDay();return t===0?7:t}function KX(e,t){return Ce(Op.count(ti(e)-1,e),t,2)}function UA(e){var t=e.getDay();return t>=4||t===0?os(e):os.ceil(e)}function XX(e,t){return e=UA(e),Ce(os.count(ti(e),e)+(ti(e).getDay()===4),t,2)}function ZX(e){return e.getDay()}function QX(e,t){return Ce(Fd.count(ti(e)-1,e),t,2)}function JX(e,t){return Ce(e.getFullYear()%100,t,2)}function eZ(e,t){return e=UA(e),Ce(e.getFullYear()%100,t,2)}function tZ(e,t){return Ce(e.getFullYear()%1e4,t,4)}function rZ(e,t){var r=e.getDay();return e=r>=4||r===0?os(e):os.ceil(e),Ce(e.getFullYear()%1e4,t,4)}function nZ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ce(t/60|0,"0",2)+Ce(t%60,"0",2)}function bO(e,t){return Ce(e.getUTCDate(),t,2)}function iZ(e,t){return Ce(e.getUTCHours(),t,2)}function oZ(e,t){return Ce(e.getUTCHours()%12||12,t,2)}function aZ(e,t){return Ce(1+Sp.count(ri(e),e),t,3)}function YA(e,t){return Ce(e.getUTCMilliseconds(),t,3)}function sZ(e,t){return YA(e,t)+"000"}function lZ(e,t){return Ce(e.getUTCMonth()+1,t,2)}function uZ(e,t){return Ce(e.getUTCMinutes(),t,2)}function cZ(e,t){return Ce(e.getUTCSeconds(),t,2)}function fZ(e){var t=e.getUTCDay();return t===0?7:t}function dZ(e,t){return Ce(_p.count(ri(e)-1,e),t,2)}function VA(e){var t=e.getUTCDay();return t>=4||t===0?as(e):as.ceil(e)}function hZ(e,t){return e=VA(e),Ce(as.count(ri(e),e)+(ri(e).getUTCDay()===4),t,2)}function pZ(e){return e.getUTCDay()}function mZ(e,t){return Ce(Bd.count(ri(e)-1,e),t,2)}function vZ(e,t){return Ce(e.getUTCFullYear()%100,t,2)}function yZ(e,t){return e=VA(e),Ce(e.getUTCFullYear()%100,t,2)}function gZ(e,t){return Ce(e.getUTCFullYear()%1e4,t,4)}function bZ(e,t){var r=e.getUTCDay();return e=r>=4||r===0?as(e):as.ceil(e),Ce(e.getUTCFullYear()%1e4,t,4)}function wZ(){return"+0000"}function wO(){return"%"}function xO(e){return+e}function SO(e){return Math.floor(+e/1e3)}var oa,GA,qA;xZ({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 xZ(e){return oa=xX(e),GA=oa.format,oa.parse,qA=oa.utcFormat,oa.utcParse,oa}function SZ(e){return new Date(e)}function OZ(e){return e instanceof Date?+e:+new Date(+e)}function jb(e,t,r,n,i,o,a,s,l,u){var c=gb(),f=c.invert,d=c.domain,h=u(".%L"),v=u(":%S"),p=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(S){return(l(S)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>dK(e,o/n))},r.copy=function(){return QA(t).domain(e)},fi.apply(r,arguments)}function Ep(){var e=0,t=.5,r=1,n=1,i,o,a,s,l,u=Ht,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-o)*(n*pt}var MZ=TZ,jZ=rT,$Z=MZ,NZ=Is;function IZ(e){return e&&e.length?jZ(e,NZ,$Z):void 0}var DZ=IZ;const Cp=Me(DZ);function RZ(e,t){return ee.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=ne.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};te.decimalPlaces=te.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ue;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};te.dividedBy=te.div=function(e){return Gn(this,new this.constructor(e))};te.dividedToIntegerBy=te.idiv=function(e){var t=this,r=t.constructor;return Ie(Gn(t,new r(e),0,1),r.precision)};te.equals=te.eq=function(e){return!this.cmp(e)};te.exponent=function(){return ft(this)};te.greaterThan=te.gt=function(e){return this.cmp(e)>0};te.greaterThanOrEqualTo=te.gte=function(e){return this.cmp(e)>=0};te.isInteger=te.isint=function(){return this.e>this.d.length-2};te.isNegative=te.isneg=function(){return this.s<0};te.isPositive=te.ispos=function(){return this.s>0};te.isZero=function(){return this.s===0};te.lessThan=te.lt=function(e){return this.cmp(e)<0};te.lessThanOrEqualTo=te.lte=function(e){return this.cmp(e)<1};te.logarithm=te.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(lr))throw Error(Nr+"NaN");if(r.s<1)throw Error(Nr+(r.s?"NaN":"-Infinity"));return r.eq(lr)?new n(0):(Ze=!1,t=Gn(wu(r,o),wu(e,o),o),Ze=!0,Ie(t,i))};te.minus=te.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?aT(t,e):iT(t,(e.s=-e.s,e))};te.modulo=te.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Nr+"NaN");return r.s?(Ze=!1,t=Gn(r,e,0,1).times(e),Ze=!0,r.minus(t)):Ie(new n(r),i)};te.naturalExponential=te.exp=function(){return oT(this)};te.naturalLogarithm=te.ln=function(){return wu(this)};te.negated=te.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};te.plus=te.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?iT(t,e):aT(t,(e.s=-e.s,e))};te.precision=te.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error($o+e);if(t=ft(i)+1,n=i.d.length-1,r=n*Ue+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};te.squareRoot=te.sqrt=function(){var e,t,r,n,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Nr+"NaN")}for(e=ft(s),Ze=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=vn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ls((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=a=r+3;;)if(o=n,n=o.plus(Gn(s,o,a+2)).times(.5),vn(o.d).slice(0,a)===(t=vn(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Ie(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return Ze=!0,Ie(n,r)};te.times=te.mul=function(e){var t,r,n,i,o,a,s,l,u,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=h.length,l=0;){for(t=0,i=l+n;i>n;)s=o[i]+h[n]*d[i-n-1]+t,o[i--]=s%wt|0,t=s/wt|0;o[i]=(o[i]+t)%wt|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Ze?Ie(e,f.precision):e};te.toDecimalPlaces=te.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Sn(e,0,Rs),t===void 0?t=n.rounding:Sn(t,0,8),Ie(r,e+ft(r)+1,t))};te.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ho(n,!0):(Sn(e,0,Rs),t===void 0?t=i.rounding:Sn(t,0,8),n=Ie(new i(n),e+1,t),r=Ho(n,!0,e+1)),r};te.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Ho(i):(Sn(e,0,Rs),t===void 0?t=o.rounding:Sn(t,0,8),n=Ie(new o(i),e+ft(i)+1,t),r=Ho(n.abs(),!1,e+ft(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};te.toInteger=te.toint=function(){var e=this,t=e.constructor;return Ie(new t(e),ft(e)+1,t.rounding)};te.toNumber=function(){return+this};te.toPower=te.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(lr);if(s=new l(s),!s.s){if(e.s<1)throw Error(Nr+"Infinity");return s}if(s.eq(lr))return s;if(n=l.precision,e.eq(lr))return Ie(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=c<0?-c:c)<=nT){for(i=new l(lr),t=Math.ceil(n/Ue+4),Ze=!1;r%2&&(i=i.times(s),PO(i.d,t)),r=Ls(r/2),r!==0;)s=s.times(s),PO(s.d,t);return Ze=!0,e.s<0?new l(lr).div(i):Ie(i,n)}}else if(o<0)throw Error(Nr+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Ze=!1,i=e.times(wu(s,n+u)),Ze=!0,i=oT(i),i.s=o,i};te.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=ft(i),n=Ho(i,r<=o.toExpNeg||r>=o.toExpPos)):(Sn(e,1,Rs),t===void 0?t=o.rounding:Sn(t,0,8),i=Ie(new o(i),e,t),r=ft(i),n=Ho(i,e<=r||r<=o.toExpNeg,e)),n};te.toSignificantDigits=te.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Sn(e,1,Rs),t===void 0?t=n.rounding:Sn(t,0,8)),Ie(new n(r),e,t)};te.toString=te.valueOf=te.val=te.toJSON=te[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ft(e),r=e.constructor;return Ho(e,t<=r.toExpNeg||t>=r.toExpPos)};function iT(e,t){var r,n,i,o,a,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Ze?Ie(t,f):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(n=l,o=-o,s=u.length):(n=u,i=a,s=l.length),a=Math.ceil(f/Ue),s=a>s?a+1:s+1,o>s&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,n=u,u=l,l=n),r=0;o;)r=(l[--o]=l[o]+u[o]+r)/wt|0,l[o]%=wt;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Ze?Ie(t,f):t}function Sn(e,t,r){if(e!==~~e||er)throw Error($o+e)}function vn(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;ta?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]1;)n.shift()}return function(n,i,o,a){var s,l,u,c,f,d,h,v,p,g,y,m,b,w,x,S,_,E,A=n.constructor,C=n.s==i.s?1:-1,T=n.d,k=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Nr+"Division by zero");for(l=n.e-i.e,_=k.length,x=T.length,h=new A(C),v=h.d=[],u=0;k[u]==(T[u]||0);)++u;if(k[u]>(T[u]||0)&&--l,o==null?m=o=A.precision:a?m=o+(ft(n)-ft(i))+1:m=o,m<0)return new A(0);if(m=m/Ue+2|0,u=0,_==1)for(c=0,k=k[0],m++;(u1&&(k=e(k,c),T=e(T,c),_=k.length,x=T.length),w=_,p=T.slice(0,_),g=p.length;g<_;)p[g++]=0;E=k.slice(),E.unshift(0),S=k[0],k[1]>=wt/2&&++S;do c=0,s=t(k,p,_,g),s<0?(y=p[0],_!=g&&(y=y*wt+(p[1]||0)),c=y/S|0,c>1?(c>=wt&&(c=wt-1),f=e(k,c),d=f.length,g=p.length,s=t(f,p,d,g),s==1&&(c--,r(f,_16)throw Error(Ib+ft(e));if(!e.s)return new c(lr);for(t==null?(Ze=!1,s=f):s=t,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(n=Math.log(bo(2,u))/Math.LN10*2+5|0,s+=n,r=i=o=new c(lr),c.precision=s;;){if(i=Ie(i.times(e),s),r=r.times(++l),a=o.plus(Gn(i,r,s)),vn(a.d).slice(0,s)===vn(o.d).slice(0,s)){for(;u--;)o=Ie(o.times(o),s);return c.precision=f,t==null?(Ze=!0,Ie(o,f)):o}o=a}}function ft(e){for(var t=e.e*Ue,r=e.d[0];r>=10;r/=10)t++;return t}function ov(e,t,r){if(t>e.LN10.sd())throw Ze=!0,r&&(e.precision=r),Error(Nr+"LN10 precision limit exceeded");return Ie(new e(e.LN10),t)}function Oi(e){for(var t="";e--;)t+="0";return t}function wu(e,t){var r,n,i,o,a,s,l,u,c,f=1,d=10,h=e,v=h.d,p=h.constructor,g=p.precision;if(h.s<1)throw Error(Nr+(h.s?"NaN":"-Infinity"));if(h.eq(lr))return new p(0);if(t==null?(Ze=!1,u=g):u=t,h.eq(10))return t==null&&(Ze=!0),ov(p,u);if(u+=d,p.precision=u,r=vn(v),n=r.charAt(0),o=ft(h),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=vn(h.d),n=r.charAt(0),f++;o=ft(h),n>1?(h=new p("0."+r),o++):h=new p(n+"."+r.slice(1))}else return l=ov(p,u+2,g).times(o+""),h=wu(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=g,t==null?(Ze=!0,Ie(h,g)):h;for(s=a=h=Gn(h.minus(lr),h.plus(lr),u),c=Ie(h.times(h),u),i=3;;){if(a=Ie(a.times(c),u),l=s.plus(Gn(a,new p(i),u)),vn(l.d).slice(0,u)===vn(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(ov(p,u+2,g).times(o+""))),s=Gn(s,new p(f),u),p.precision=g,t==null?(Ze=!0,Ie(s,g)):s;s=l,i+=2}}function _O(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ls(r/Ue),e.d=[],n=(r+1)%Ue,r<0&&(n+=Ue),nWd||e.e<-Wd))throw Error(Ib+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ie(e,t,r){var n,i,o,a,s,l,u,c,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=Ue,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Ue),o=f.length,c>=o)return e;for(u=o=f[c],a=1;o>=10;o/=10)a++;n%=Ue,i=n-Ue+a}if(r!==void 0&&(o=bo(10,a-i-1),s=u/o%10|0,l=t<0||f[c+1]!==void 0||u%o,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/bo(10,a-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(o=ft(e),f.length=1,t=t-o-1,f[0]=bo(10,(Ue-t%Ue)%Ue),e.e=Ls(-t/Ue)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,o=1,c--):(f.length=c+1,o=bo(10,Ue-n),f[c]=i>0?(u/bo(10,a-i)%bo(10,i)|0)*o:0),l)for(;;)if(c==0){(f[0]+=o)==wt&&(f[0]=1,++e.e);break}else{if(f[c]+=o,f[c]!=wt)break;f[c--]=0,o=1}for(n=f.length;f[--n]===0;)f.pop();if(Ze&&(e.e>Wd||e.e<-Wd))throw Error(Ib+ft(e));return e}function aT(e,t){var r,n,i,o,a,s,l,u,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ze?Ie(t,h):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),a=u-n,a){for(c=a<0,c?(r=l,a=-a,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(h/Ue),s)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i0;--i)l[s++]=0;for(i=f.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+Oi(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Oi(-i-1)+o,r&&(n=r-a)>0&&(o+=Oi(n))):i>=a?(o+=Oi(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+Oi(n))):((n=i+1)0&&(i+1===a&&(o+="."),o+=Oi(n))),e.s<0?"-"+o:o}function PO(e,t){if(e.length>t)return e.length=t,!0}function sT(e){var t,r,n;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error($o+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return _O(a,o.toString())}else if(typeof o!="string")throw Error($o+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,oQ.test(o))_O(a,o);else throw Error($o+o)}if(i.prototype=te,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=sT,i.config=i.set=aQ,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error($o+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error($o+r+": "+n);return this}var Db=sT(iQ);lr=new Db(1);const $e=Db;function sQ(e){return fQ(e)||cQ(e)||uQ(e)||lQ()}function lQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uQ(e,t){if(e){if(typeof e=="string")return Eg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eg(e,t)}}function cQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function fQ(e){if(Array.isArray(e))return Eg(e)}function Eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-a,EO(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,o=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw o}}return r}}function EQ(e){if(Array.isArray(e))return e}function dT(e){var t=xu(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function hT(e,t,r){if(e.lte(0))return new $e(0);var n=Mp.getDigitCount(e.toNumber()),i=new $e(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new $e(Math.ceil(o.div(a).toNumber())).add(r).mul(a),l=s.mul(i);return t?l:new $e(Math.ceil(l))}function CQ(e,t,r){var n=1,i=new $e(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new $e(10).pow(Mp.getDigitCount(e)-1),i=new $e(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new $e(Math.floor(e)))}else e===0?i=new $e(Math.floor((t-1)/2)):r||(i=new $e(Math.floor(e)));var a=Math.floor((t-1)/2),s=mQ(pQ(function(l){return i.add(new $e(l-a).mul(n)).toNumber()}),Cg);return s(0,t)}function pT(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new $e(0),tickMin:new $e(0),tickMax:new $e(0)};var o=hT(new $e(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new $e(0):(a=new $e(e).add(t).div(2),a=a.sub(new $e(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new $e(t).sub(a).div(o).toNumber()),u=s+l+1;return u>r?pT(e,t,r,n,i+1):(u0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:o,tickMin:a.sub(new $e(s).mul(o)),tickMax:a.add(new $e(l).mul(o))})}function kQ(e){var t=xu(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=dT([r,n]),l=xu(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(Ag(Cg(0,i-1).map(function(){return 1/0}))):[].concat(Ag(Cg(0,i-1).map(function(){return-1/0})),[c]);return r>n?kg(f):f}if(u===c)return CQ(u,i,o);var d=pT(u,c,a,o),h=d.step,v=d.tickMin,p=d.tickMax,g=Mp.rangeStep(v,p.add(new $e(.1).mul(h)),h);return r>n?kg(g):g}function AQ(e,t){var r=xu(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=dT([n,i]),s=xu(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=hT(new $e(u).sub(l).div(c-1),o,0),d=[].concat(Ag(Mp.rangeStep(new $e(l),new $e(u).sub(new $e(.99).mul(f)),f)),[u]);return n>i?kg(d):d}var TQ=cT(kQ),MQ=cT(AQ),jQ="Invariant failed";function Uo(e,t){throw new Error(jQ)}var $Q=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function yc(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,o=e.data,a=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=zQ(e,$Q),c=Se(u,!1);e.direction==="x"&&s.type!=="number"&&Uo();var f=o.map(function(d){var h=a(d,i),v=h.x,p=h.y,g=h.value,y=h.errorVal;if(!y)return null;var m=[],b,w;if(Array.isArray(y)){var x=NQ(y,2);b=x[0],w=x[1]}else b=w=y;if(r==="vertical"){var S=s.scale,_=p+t,E=_+n,A=_-n,C=S(g-b),T=S(g+w);m.push({x1:T,y1:E,x2:T,y2:A}),m.push({x1:C,y1:_,x2:T,y2:_}),m.push({x1:C,y1:E,x2:C,y2:A})}else if(r==="horizontal"){var k=l.scale,j=v+t,M=j-n,R=j+n,I=k(g-b),D=k(g+w);m.push({x1:M,y1:D,x2:R,y2:D}),m.push({x1:j,y1:I,x2:j,y2:D}),m.push({x1:M,y1:I,x2:R,y2:I})}return $.createElement(lt,Hd({className:"recharts-errorBar",key:"bar-".concat(m.map(function(N){return"".concat(N.x1,"-").concat(N.x2,"-").concat(N.y1,"-").concat(N.y2)}))},c),m.map(function(N){return $.createElement("line",Hd({},N,{key:"line-".concat(N.x1,"-").concat(N.x2,"-").concat(N.y1,"-").concat(N.y2)}))}))});return $.createElement(lt,{className:"recharts-errorBars"},f)}yc.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};yc.displayName="ErrorBar";function Su(e){"@babel/helpers - typeof";return Su=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},Su(e)}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function av(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(qr(f-c)!==qr(d-f)){var v=[];if(qr(d-f)===qr(l[1]-l[0])){h=d;var p=f+l[1]-l[0];v[0]=Math.min(p,(p+c)/2),v[1]=Math.max(p,(p+c)/2)}else{h=c;var g=d+l[1]-l[0];v[0]=Math.min(f,(g+f)/2),v[1]=Math.max(f,(g+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=v[0]&&t<=v[1]){a=i[u].index;break}}else{var m=Math.min(c,d),b=Math.max(c,d);if(t>(m+f)/2&&t<=(b+f)/2){a=i[u].index;break}}}else for(var w=0;w0&&w(n[w].coordinate+n[w-1].coordinate)/2&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w===s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2){a=n[w].index;break}return a},Rb=function(t){var r=t,n=r.type.displayName,i=t.props,o=i.stroke,a=i.fill,s;switch(n){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:a;break;default:s=a;break}return s},ZQ=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),l=0,u=s.length;l=0});if(y&&y.length){var m=y[0].props.barSize,b=y[0].props[g];a[b]||(a[b]=[]);var w=be(m)?r:m;a[b].push({item:y[0],stackList:y.slice(1),barSize:be(w)?void 0:Wo(w,n,0)})}}return a},QQ=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,l=a.length;if(l<1)return null;var u=Wo(r,i,0,!0),c,f=[];if(a[0].barSize===+a[0].barSize){var d=!1,h=i/l,v=a.reduce(function(w,x){return w+x.barSize||0},0);v+=(l-1)*u,v>=i&&(v-=(l-1)*u,u=0),v>=i&&h>0&&(d=!0,h*=.9,v=l*h);var p=(i-v)/2>>0,g={offset:p-u,size:0};c=a.reduce(function(w,x){var S={item:x.item,position:{offset:g.offset+g.size+u,size:d?h:x.barSize}},_=[].concat(TO(w),[S]);return g=_[_.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(E){_.push({item:E,position:g})}),_},f)}else{var y=Wo(n,i,0,!0);i-2*y-(l-1)*u<=0&&(u=0);var m=(i-2*y-(l-1)*u)/l;m>1&&(m>>=0);var b=s===+s?Math.min(m,s):m;c=a.reduce(function(w,x,S){var _=[].concat(TO(w),[{item:x.item,position:{offset:y+(m+u)*S+(m-b)/2,size:b}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(E){_.push({item:E,position:_[_.length-1].position})}),_},f)}return c},JQ=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,l=a-(s.left||0)-(s.right||0),u=mT({children:o,legendWidth:l});if(u){var c=i||{},f=c.width,d=c.height,h=u.align,v=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&v==="middle")&&h!=="center"&&q(t[h]))return _r(_r({},t),{},Ra({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&v!=="middle"&&q(t[v]))return _r(_r({},t),{},Ra({},v,t[v]+(d||0)))}return t},eJ=function(t,r,n){return be(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},vT=function(t,r,n,i,o){var a=r.props.children,s=Mr(a,yc).filter(function(u){return eJ(i,o,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=hr(c,n);if(be(f))return u;var d=Array.isArray(f)?[kp(f),Cp(f)]:[f,f],h=l.reduce(function(v,p){var g=hr(c,p,0),y=d[0]-Math.abs(Array.isArray(g)?g[0]:g),m=d[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,v[0]),Math.max(m,v[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},tJ=function(t,r,n,i,o){var a=r.map(function(s){return vT(t,s,n,o,i)}).filter(function(s){return!be(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},yT=function(t,r,n,i,o){var a=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&vT(t,l,u,i)||Rl(t,u,n,o)});if(n==="number")return a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,u){for(var c=0,f=u.length;c=2?qr(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=o?o.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!cc(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:o?o[f]:f,index:d,offset:u}})},sv=new WeakMap,ef=function(t,r){if(typeof r!="function")return t;sv.has(t)||sv.set(t,new WeakMap);var n=sv.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},rJ=function(t,r,n){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:mu(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Ld(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Dl(),realScaleType:"point"}:o==="category"?{scale:mu(),realScaleType:"band"}:{scale:Ld(),realScaleType:"linear"};if(uc(i)){var l="scale".concat(pp(i));return{scale:(OO[l]||Dl)(),realScaleType:OO[l]?l:"point"}}return me(i)?{scale:i}:{scale:Dl(),realScaleType:"point"}},MO=1e-4,nJ=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-MO,a=Math.max(i[0],i[1])+MO,s=t(r[0]),l=t(r[n-1]);(sa||la)&&t.domain([r[0],r[n-1]])}},iJ=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]=0?(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1]):(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1])}},sJ=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=0,t[a][n][1]=0)}},lJ={sign:aJ,expand:jz,none:Qa,silhouette:$z,wiggle:Nz,positive:sJ},uJ=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=lJ[n],a=Mz().keys(i).value(function(s,l){return+hr(s,l,0)}).order(rg).offset(o);return a(t)},cJ=function(t,r,n,i,o,a){if(!t)return null;var s=a?r.reverse():r,l={},u=s.reduce(function(f,d){var h=d.props,v=h.stackId,p=h.hide;if(p)return f;var g=d.props[n],y=f[g]||{hasStack:!1,stackGroups:{}};if(vt(v)){var m=y.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};m.items.push(d),y.hasStack=!0,y.stackGroups[v]=m}else y.stackGroups[fc("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return _r(_r({},f),{},Ra({},g,y))},l),c={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var v={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,g){var y=h.stackGroups[g];return _r(_r({},p),{},Ra({},g,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:uJ(t,y.items,o)}))},v)}return _r(_r({},f),{},Ra({},d,h))},c)},fJ=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,a=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=TQ(u,o,s);return t.domain([kp(c),Cp(c)]),{niceTicks:c}}if(o&&i==="number"){var f=t.domain(),d=MQ(f,o,s);return{niceTicks:d}}return null};function jO(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!be(i[t.dataKey])){var s=md(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var l=hr(i,be(a)?t.dataKey:a);return be(l)?null:t.scale(l)}var $O=function(t){var r=t.axis,n=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=hr(a,r.dataKey,r.domain[s]);return be(l)?null:r.scale(l)-o/2+i},dJ=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return i<=0&&o>=0?0:o<0?o:i}return n[0]},hJ=function(t,r){var n=t.props.stackId;if(vt(n)){var i=r[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null},pJ=function(t){return t.reduce(function(r,n){return[kp(n.concat([r[0]]).filter(q)),Cp(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},wT=function(t,r,n){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,l=s.reduce(function(u,c){var f=pJ(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},NO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,IO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jg=function(t,r,n){if(me(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(NO.test(t[0])){var o=+NO.exec(t[0])[1];i[0]=r[0]-o}else me(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(IO.test(t[1])){var a=+IO.exec(t[1])[1];i[1]=r[1]+a}else me(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ud=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var o=fb(r,function(f){return f.coordinate}),a=1/0,s=1,l=o.length;sa&&(u=2*Math.PI-u),{radius:s,angle:gJ(u),angleInRadian:u}},xJ=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return{startAngle:r-a*360,endAngle:n-a*360}},SJ=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},zO=function(t,r){var n=t.x,i=t.y,o=wJ({x:n,y:i},r),a=o.radius,s=o.angle,l=r.innerRadius,u=r.outerRadius;if(au)return!1;if(a===0)return!0;var c=xJ(r),f=c.startAngle,d=c.endAngle,h=s,v;if(f<=d){for(;h>d;)h-=360;for(;h=f&&h<=d}else{for(;h>f;)h-=360;for(;h=d&&h<=f}return v?LO(LO({},r),{},{radius:a,angle:SJ(h,r)}):null};function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}var OJ=["offset"];function _J(e){return kJ(e)||CJ(e)||EJ(e)||PJ()}function PJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EJ(e,t){if(e){if(typeof e=="string")return $g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $g(e,t)}}function CJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kJ(e){if(Array.isArray(e))return $g(e)}function $g(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t=0?1:-1,b,w;i==="insideStart"?(b=h+m*a,w=p):i==="insideEnd"?(b=v-m*a,w=!p):i==="end"&&(b=v+m*a,w=p),w=y<=0?w:!w;var x=kt(u,c,g,b),S=kt(u,c,g,b+(w?1:-1)*359),_="M".concat(x.x,",").concat(x.y,` A`).concat(g,",").concat(g,",0,1,").concat(w?0:1,`, - `).concat(S.x,",").concat(S.y),E=be(t.id)?fc("recharts-radial-line-"):t.id;return $.createElement("text",Eu({},n,{dominantBaseline:"central",className:de("recharts-radial-bar-label",s)}),$.createElement("defs",null,$.createElement("path",{id:E,d:_})),$.createElement("textPath",{xlinkHref:"#".concat(E)},r))},Oee=function(t){var r=t.viewBox,n=t.offset,i=t.position,o=r,a=o.cx,s=o.cy,l=o.innerRadius,u=o.outerRadius,c=o.startAngle,f=o.endAngle,d=(c+f)/2;if(i==="outside"){var h=kt(a,s,u+n,d),v=h.x,p=h.y;return{x:v,y:p,textAnchor:v>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var g=(l+u)/2,y=kt(a,s,g,d),m=y.x,b=y.y;return{x:m,y:b,textAnchor:"middle",verticalAnchor:"middle"}},_ee=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,a=r,s=a.x,l=a.y,u=a.width,c=a.height,f=c>=0?1:-1,d=f*i,h=f>0?"end":"start",v=f>0?"start":"end",p=u>=0?1:-1,g=p*i,y=p>0?"end":"start",m=p>0?"start":"end";if(o==="top"){var b={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return ht(ht({},b),n?{height:Math.max(l-n.y,0),width:u}:{})}if(o==="bottom"){var w={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:v};return ht(ht({},w),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(o==="left"){var x={x:s-g,y:l+c/2,textAnchor:y,verticalAnchor:"middle"};return ht(ht({},x),n?{width:Math.max(x.x-n.x,0),height:c}:{})}if(o==="right"){var S={x:s+u+g,y:l+c/2,textAnchor:m,verticalAnchor:"middle"};return ht(ht({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:c}:{})}var _=n?{width:u,height:c}:{};return o==="insideLeft"?ht({x:s+g,y:l+c/2,textAnchor:m,verticalAnchor:"middle"},_):o==="insideRight"?ht({x:s+u-g,y:l+c/2,textAnchor:y,verticalAnchor:"middle"},_):o==="insideTop"?ht({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:v},_):o==="insideBottom"?ht({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:h},_):o==="insideTopLeft"?ht({x:s+g,y:l+d,textAnchor:m,verticalAnchor:v},_):o==="insideTopRight"?ht({x:s+u-g,y:l+d,textAnchor:y,verticalAnchor:v},_):o==="insideBottomLeft"?ht({x:s+g,y:l+c-d,textAnchor:m,verticalAnchor:h},_):o==="insideBottomRight"?ht({x:s+u-g,y:l+c-d,textAnchor:y,verticalAnchor:h},_):Ts(o)&&(q(o.x)||_o(o.x))&&(q(o.y)||_o(o.y))?ht({x:s+Wo(o.x,u),y:l+Wo(o.y,c),textAnchor:"end",verticalAnchor:"end"},_):ht({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},_)},Pee=function(t){return"cx"in t&&q(t.cx)};function Dt(e){var t=e.offset,r=t===void 0?5:t,n=mee(e,uee),i=ht({offset:r},n),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!o||be(s)&&be(l)&&!O.isValidElement(u)&&!me(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var h;if(me(u)){if(h=O.createElement(u,i),O.isValidElement(h))return h}else h=wee(i);var v=Pee(o),p=Se(i,!0);if(v&&(a==="insideStart"||a==="insideEnd"||a==="end"))return See(i,h,p);var g=v?Oee(i):_ee(i);return $.createElement(Md,Eu({className:de("recharts-label",f)},p,g,{breakAll:d}),h)}Dt.displayName="Label";var kT=function(t){var r=t.cx,n=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,h=t.top,v=t.left,p=t.width,g=t.height,y=t.clockWise,m=t.labelViewBox;if(m)return m;if(q(p)&&q(g)){if(q(f)&&q(d))return{x:f,y:d,width:p,height:g};if(q(h)&&q(v))return{x:h,y:v,width:p,height:g}}return q(f)&&q(d)?{x:f,y:d,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},Eee=function(t,r){return t?t===!0?$.createElement(Dt,{key:"label-implicit",viewBox:r}):vt(t)?$.createElement(Dt,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Dt?O.cloneElement(t,{key:"label-implicit",viewBox:r}):$.createElement(Dt,{key:"label-implicit",content:t,viewBox:r}):me(t)?$.createElement(Dt,{key:"label-implicit",content:t,viewBox:r}):Ts(t)?$.createElement(Dt,Eu({viewBox:r},t,{key:"label-implicit"})):null:null},Cee=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=kT(t),a=Mr(i,Dt).map(function(l,u){return O.cloneElement(l,{viewBox:r||o,key:"label-".concat(u)})});if(!n)return a;var s=Eee(t.label,r||o);return[s].concat(cee(a))};Dt.parseViewBox=kT;Dt.renderCallByParent=Cee;function kee(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Aee=kee;const Tee=Me(Aee);function Cu(e){"@babel/helpers - typeof";return Cu=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},Cu(e)}var Mee=["valueAccessor"],jee=["data","dataKey","clockWise","id","textBreakAll"];function $ee(e){return Ree(e)||Dee(e)||Iee(e)||Nee()}function Nee(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iee(e,t){if(e){if(typeof e=="string")return Ig(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ig(e,t)}}function Dee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ree(e){if(Array.isArray(e))return Ig(e)}function Ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var Wee=function(t){return Array.isArray(t.value)?Tee(t.value):t.value};function Yi(e){var t=e.valueAccessor,r=t===void 0?Wee:t,n=YO(e,Mee),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,l=n.textBreakAll,u=YO(n,jee);return!i||!i.length?null:$.createElement(lt,{className:"recharts-label-list"},i.map(function(c,f){var d=be(o)?r(c,f):hr(c&&c.payload,o),h=be(s)?{}:{id:"".concat(s,"-").concat(f)};return $.createElement(Dt,Vd({},Se(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:Dt.parseViewBox(be(a)?c:UO(UO({},c),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}Yi.displayName="LabelList";function Hee(e,t){return e?e===!0?$.createElement(Yi,{key:"labelList-implicit",data:t}):$.isValidElement(e)||me(e)?$.createElement(Yi,{key:"labelList-implicit",data:t,content:e}):Ts(e)?$.createElement(Yi,Vd({data:t},e,{key:"labelList-implicit"})):null:null}function Uee(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Mr(n,Yi).map(function(a,s){return O.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=Hee(e.label,t);return[o].concat($ee(i))}Yi.renderCallByParent=Uee;function ku(e){"@babel/helpers - typeof";return ku=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},ku(e)}function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var g=(l+u)/2,y=kt(a,s,g,d),m=y.x,b=y.y;return{x:m,y:b,textAnchor:"middle",verticalAnchor:"middle"}},LJ=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,a=r,s=a.x,l=a.y,u=a.width,c=a.height,f=c>=0?1:-1,d=f*i,h=f>0?"end":"start",v=f>0?"start":"end",p=u>=0?1:-1,g=p*i,y=p>0?"end":"start",m=p>0?"start":"end";if(o==="top"){var b={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return ht(ht({},b),n?{height:Math.max(l-n.y,0),width:u}:{})}if(o==="bottom"){var w={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:v};return ht(ht({},w),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(o==="left"){var x={x:s-g,y:l+c/2,textAnchor:y,verticalAnchor:"middle"};return ht(ht({},x),n?{width:Math.max(x.x-n.x,0),height:c}:{})}if(o==="right"){var S={x:s+u+g,y:l+c/2,textAnchor:m,verticalAnchor:"middle"};return ht(ht({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:c}:{})}var _=n?{width:u,height:c}:{};return o==="insideLeft"?ht({x:s+g,y:l+c/2,textAnchor:m,verticalAnchor:"middle"},_):o==="insideRight"?ht({x:s+u-g,y:l+c/2,textAnchor:y,verticalAnchor:"middle"},_):o==="insideTop"?ht({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:v},_):o==="insideBottom"?ht({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:h},_):o==="insideTopLeft"?ht({x:s+g,y:l+d,textAnchor:m,verticalAnchor:v},_):o==="insideTopRight"?ht({x:s+u-g,y:l+d,textAnchor:y,verticalAnchor:v},_):o==="insideBottomLeft"?ht({x:s+g,y:l+c-d,textAnchor:m,verticalAnchor:h},_):o==="insideBottomRight"?ht({x:s+u-g,y:l+c-d,textAnchor:y,verticalAnchor:h},_):As(o)&&(q(o.x)||Oo(o.x))&&(q(o.y)||Oo(o.y))?ht({x:s+Wo(o.x,u),y:l+Wo(o.y,c),textAnchor:"end",verticalAnchor:"end"},_):ht({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},_)},zJ=function(t){return"cx"in t&&q(t.cx)};function Dt(e){var t=e.offset,r=t===void 0?5:t,n=AJ(e,OJ),i=ht({offset:r},n),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!o||be(s)&&be(l)&&!O.isValidElement(u)&&!me(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var h;if(me(u)){if(h=O.createElement(u,i),O.isValidElement(h))return h}else h=NJ(i);var v=zJ(o),p=Se(i,!0);if(v&&(a==="insideStart"||a==="insideEnd"||a==="end"))return DJ(i,h,p);var g=v?RJ(i):LJ(i);return $.createElement(Md,Eu({className:de("recharts-label",f)},p,g,{breakAll:d}),h)}Dt.displayName="Label";var ST=function(t){var r=t.cx,n=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,h=t.top,v=t.left,p=t.width,g=t.height,y=t.clockWise,m=t.labelViewBox;if(m)return m;if(q(p)&&q(g)){if(q(f)&&q(d))return{x:f,y:d,width:p,height:g};if(q(h)&&q(v))return{x:h,y:v,width:p,height:g}}return q(f)&&q(d)?{x:f,y:d,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},FJ=function(t,r){return t?t===!0?$.createElement(Dt,{key:"label-implicit",viewBox:r}):vt(t)?$.createElement(Dt,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Dt?O.cloneElement(t,{key:"label-implicit",viewBox:r}):$.createElement(Dt,{key:"label-implicit",content:t,viewBox:r}):me(t)?$.createElement(Dt,{key:"label-implicit",content:t,viewBox:r}):As(t)?$.createElement(Dt,Eu({viewBox:r},t,{key:"label-implicit"})):null:null},BJ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=ST(t),a=Mr(i,Dt).map(function(l,u){return O.cloneElement(l,{viewBox:r||o,key:"label-".concat(u)})});if(!n)return a;var s=FJ(t.label,r||o);return[s].concat(_J(a))};Dt.parseViewBox=ST;Dt.renderCallByParent=BJ;function WJ(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var HJ=WJ;const UJ=Me(HJ);function Cu(e){"@babel/helpers - typeof";return Cu=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},Cu(e)}var YJ=["valueAccessor"],VJ=["data","dataKey","clockWise","id","textBreakAll"];function GJ(e){return ZJ(e)||XJ(e)||KJ(e)||qJ()}function qJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KJ(e,t){if(e){if(typeof e=="string")return Ng(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ng(e,t)}}function XJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZJ(e){if(Array.isArray(e))return Ng(e)}function Ng(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var ree=function(t){return Array.isArray(t.value)?UJ(t.value):t.value};function Yi(e){var t=e.valueAccessor,r=t===void 0?ree:t,n=HO(e,YJ),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,l=n.textBreakAll,u=HO(n,VJ);return!i||!i.length?null:$.createElement(lt,{className:"recharts-label-list"},i.map(function(c,f){var d=be(o)?r(c,f):hr(c&&c.payload,o),h=be(s)?{}:{id:"".concat(s,"-").concat(f)};return $.createElement(Dt,Vd({},Se(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:Dt.parseViewBox(be(a)?c:WO(WO({},c),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}Yi.displayName="LabelList";function nee(e,t){return e?e===!0?$.createElement(Yi,{key:"labelList-implicit",data:t}):$.isValidElement(e)||me(e)?$.createElement(Yi,{key:"labelList-implicit",data:t,content:e}):As(e)?$.createElement(Yi,Vd({data:t},e,{key:"labelList-implicit"})):null:null}function iee(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Mr(n,Yi).map(function(a,s){return O.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=nee(e.label,t);return[o].concat(GJ(i))}Yi.renderCallByParent=iee;function ku(e){"@babel/helpers - typeof";return ku=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},ku(e)}function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(a>u),`, `).concat(f.x,",").concat(f.y,` `);if(i>0){var h=kt(r,n,i,a),v=kt(r,n,i,u);d+="L ".concat(v.x,",").concat(v.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(a<=u),`, - `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},Kee=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=qr(c-u),d=nf({cx:r,cy:n,radius:o,angle:u,sign:f,cornerRadius:a,cornerIsExternal:l}),h=d.circleTangency,v=d.lineTangency,p=d.theta,g=nf({cx:r,cy:n,radius:o,angle:c,sign:-f,cornerRadius:a,cornerIsExternal:l}),y=g.circleTangency,m=g.lineTangency,b=g.theta,w=l?Math.abs(u-c):Math.abs(u-c)-p-b;if(w<0)return s?"M ".concat(v.x,",").concat(v.y,` + `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},uee=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=qr(c-u),d=tf({cx:r,cy:n,radius:o,angle:u,sign:f,cornerRadius:a,cornerIsExternal:l}),h=d.circleTangency,v=d.lineTangency,p=d.theta,g=tf({cx:r,cy:n,radius:o,angle:c,sign:-f,cornerRadius:a,cornerIsExternal:l}),y=g.circleTangency,m=g.lineTangency,b=g.theta,w=l?Math.abs(u-c):Math.abs(u-c)-p-b;if(w<0)return s?"M ".concat(v.x,",").concat(v.y,` a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 - `):AT({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:c});var x="M ".concat(v.x,",").concat(v.y,` + `):OT({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:c});var x="M ".concat(v.x,",").concat(v.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,` A`).concat(o,",").concat(o,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,` - `);if(i>0){var S=nf({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),_=S.circleTangency,E=S.lineTangency,A=S.theta,C=nf({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),T=C.circleTangency,k=C.lineTangency,j=C.theta,M=l?Math.abs(u-c):Math.abs(u-c)-A-j;if(M<0&&a===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat(k.x,",").concat(k.y,` + `);if(i>0){var S=tf({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),_=S.circleTangency,E=S.lineTangency,A=S.theta,C=tf({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),T=C.circleTangency,k=C.lineTangency,j=C.theta,M=l?Math.abs(u-c):Math.abs(u-c)-A-j;if(M<0&&a===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat(k.x,",").concat(k.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,` A`).concat(i,",").concat(i,",0,").concat(+(M>180),",").concat(+(f>0),",").concat(_.x,",").concat(_.y,` - A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},Xee={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TT=function(t){var r=GO(GO({},Xee),t),n=r.cx,i=r.cy,o=r.innerRadius,a=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(a0&&Math.abs(c-f)<360?g=Kee({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(p,v/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):g=AT({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:c,endAngle:f}),$.createElement("path",Dg({},Se(r,!0),{className:h,d:g,role:"img"}))};function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function fte(e,t){return Fs(e.getTime(),t.getTime())}function t3(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var l=t.entries(),u=!1,c=0;(s=l.next())&&!s.done;){var f=a.value,d=f[0],h=f[1],v=s.value,p=v[0],g=v[1];!u&&!n[c]&&(u=r.equals(d,p,o,c,e,t,r)&&r.equals(h,g,d,p,e,t,r))&&(n[c]=!0),c++}if(!u)return!1;o++}return!0}function dte(e,t,r){var n=e3(e),i=n.length;if(e3(t).length!==i)return!1;for(var o;i-- >0;)if(o=n[i],o===IT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!NT(t,o)||!r.equals(e[o],t[o],o,o,e,t,r))return!1;return!0}function hl(e,t,r){var n=QO(e),i=n.length;if(QO(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=n[i],o===IT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!NT(t,o)||!r.equals(e[o],t[o],o,o,e,t,r)||(a=JO(e,o),s=JO(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function hte(e,t){return Fs(e.valueOf(),t.valueOf())}function pte(e,t){return e.source===t.source&&e.flags===t.flags}function r3(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),l=!1,u=0;(a=s.next())&&!a.done;)!l&&!n[u]&&(l=r.equals(o.value,a.value,o.value,a.value,e,t,r))&&(n[u]=!0),u++;if(!l)return!1}return!0}function mte(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var vte="[object Arguments]",yte="[object Boolean]",gte="[object Date]",bte="[object Map]",wte="[object Number]",xte="[object Object]",Ste="[object RegExp]",Ote="[object Set]",_te="[object String]",Pte=Array.isArray,n3=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,i3=Object.assign,Ete=Object.prototype.toString.call.bind(Object.prototype.toString);function Cte(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var h=c.constructor;if(h!==f.constructor)return!1;if(h===Object)return i(c,f,d);if(Pte(c))return t(c,f,d);if(n3!=null&&n3(c))return l(c,f,d);if(h===Date)return r(c,f,d);if(h===RegExp)return a(c,f,d);if(h===Map)return n(c,f,d);if(h===Set)return s(c,f,d);var v=Ete(c);return v===gte?r(c,f,d):v===Ste?a(c,f,d):v===bte?n(c,f,d):v===Ote?s(c,f,d):v===xte?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):v===vte?i(c,f,d):v===yte||v===wte||v===_te?o(c,f,d):!1}}function kte(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?hl:cte,areDatesEqual:fte,areMapsEqual:n?ZO(t3,hl):t3,areObjectsEqual:n?hl:dte,arePrimitiveWrappersEqual:hte,areRegExpsEqual:pte,areSetsEqual:n?ZO(r3,hl):r3,areTypedArraysEqual:n?hl:mte};if(r&&(i=i3({},i,r(i))),t){var o=af(i.areArraysEqual),a=af(i.areMapsEqual),s=af(i.areObjectsEqual),l=af(i.areSetsEqual);i=i3({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function Ate(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function Tte(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,o=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,h=c.meta;return r(l,u,{cache:d,equals:i,meta:h,strict:o})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(l,u){return r(l,u,a)}}var Mte=oo();oo({strict:!0});oo({circular:!0});oo({circular:!0,strict:!0});oo({createInternalComparator:function(){return Fs}});oo({strict:!0,createInternalComparator:function(){return Fs}});oo({circular:!0,createInternalComparator:function(){return Fs}});oo({circular:!0,createInternalComparator:function(){return Fs},strict:!0});function oo(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=kte(e),l=Cte(s),u=n?n(l):Ate(l);return Tte({circular:r,comparator:l,createState:i,equals:u,strict:a})}function jte(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function o3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):jte(i)};requestAnimationFrame(n)}function zg(e){"@babel/helpers - typeof";return zg=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},zg(e)}function $te(e){return Rte(e)||Dte(e)||Ite(e)||Nte()}function Nte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ite(e,t){if(e){if(typeof e=="string")return a3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a3(e,t)}}function a3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:y<0?0:y},p=function(y){for(var m=y>1?1:y,b=m,w=0;w<8;++w){var x=f(b)-m,S=h(b);if(Math.abs(x-m)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,l=function(c,f,d){var h=-(c-f)*n,v=d*o,p=d+(h-v)*s/1e3,g=d*s/1e3+c;return Math.abs(g-f)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function lv(e){return gre(e)||yre(e)||vre(e)||mre()}function mre(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vre(e,t){if(e){if(typeof e=="string")return Ug(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ug(e,t)}}function yre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gre(e){if(Array.isArray(e))return Ug(e)}function Ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kd(e)}var ni=function(e){Ore(r,e);var t=_re(r);function r(n,i){var o;bre(this,r),o=t.call(this,n,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,c=a.to,f=a.steps,d=a.children,h=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Gg(o)),o.changeStyle=o.changeStyle.bind(Gg(o)),!s||h<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:c}),Vg(o);if(f&&f.length)o.state={style:f[0].style};else if(u){if(typeof d=="function")return o.state={style:u},Vg(o);o.state={style:l?Sl({},l,u):u}}else o.state={style:{}};return o}return xre(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,l=o.attributeName,u=o.shouldReAnimate,c=o.to,f=o.from,d=this.state.style;if(s){if(!a){var h={style:l?Sl({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(h);return}if(!(Mte(i.to,c)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=v||u?f:i.to;if(this.state&&d){var g={style:l?Sl({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(g)}this.runAnimation(Fr(Fr({},this.props),{},{from:p,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,a=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=fre(a,s,ere(u),l,this.changeStyle),v=function(){o.stopJSAnimation=h()};this.manager.start([d,c,v,l,f])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,u=a[0],c=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,g,y){if(y===0)return p;var m=g.duration,b=g.easing,w=b===void 0?"ease":b,x=g.style,S=g.properties,_=g.onAnimationEnd,E=y>0?a[y-1]:g,A=S||Object.keys(x);if(typeof w=="function"||w==="spring")return[].concat(lv(p),[o.runJSAnimation.bind(o,{from:E.style,to:x,duration:m,easing:w}),m]);var C=u3(A,m,w),T=Fr(Fr(Fr({},E.style),x),{},{transition:C});return[].concat(lv(p),[T,m,_]).filter(Wte)};return this.manager.start([l].concat(lv(a.reduce(h,[c,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Lte());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?Sl({},s,l):l,g=u3(Object.keys(p),a,u);v.start([c,o,Fr(Fr({},p),{},{transition:g}),a,f])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=hre(i,dre),u=O.Children.count(o),c=this.state.style;if(typeof o=="function")return o(c);if(!s||u===0||a<=0)return o;var f=function(h){var v=h.props,p=v.style,g=p===void 0?{}:p,y=v.className,m=O.cloneElement(h,Fr(Fr({},l),{},{style:Fr(Fr({},g),c),className:y}));return m};return u===1?f(O.Children.only(o)):$.createElement("div",null,O.Children.map(o,function(d){return f(d)}))}}]),r}(O.PureComponent);ni.displayName="Animate";ni.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ni.propTypes={from:ce.oneOfType([ce.object,ce.string]),to:ce.oneOfType([ce.object,ce.string]),attributeName:ce.string,duration:ce.number,begin:ce.number,easing:ce.oneOfType([ce.string,ce.func]),steps:ce.arrayOf(ce.shape({duration:ce.number.isRequired,style:ce.object.isRequired,easing:ce.oneOfType([ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ce.func]),properties:ce.arrayOf("string"),onAnimationEnd:ce.func})),children:ce.oneOfType([ce.node,ce.func]),isActive:ce.bool,canBegin:ce.bool,onAnimationEnd:ce.func,shouldReAnimate:ce.bool,onAnimationStart:ce.func,onAnimationReStart:ce.func};ce.object,ce.object,ce.object,ce.element;ce.object,ce.object,ce.object,ce.oneOfType([ce.array,ce.element]),ce.any;function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function Xd(){return Xd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(a>0&&o instanceof Array){for(var f=[0,0,0,0],d=0,h=4;da?a:o[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, + A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},cee={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},_T=function(t){var r=YO(YO({},cee),t),n=r.cx,i=r.cy,o=r.innerRadius,a=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(a0&&Math.abs(c-f)<360?g=uee({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(p,v/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):g=OT({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:c,endAngle:f}),$.createElement("path",Ig({},Se(r,!0),{className:h,d:g,role:"img"}))};function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function Pee(e,t){return zs(e.getTime(),t.getTime())}function JO(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var l=t.entries(),u=!1,c=0;(s=l.next())&&!s.done;){var f=a.value,d=f[0],h=f[1],v=s.value,p=v[0],g=v[1];!u&&!n[c]&&(u=r.equals(d,p,o,c,e,t,r)&&r.equals(h,g,d,p,e,t,r))&&(n[c]=!0),c++}if(!u)return!1;o++}return!0}function Eee(e,t,r){var n=QO(e),i=n.length;if(QO(t).length!==i)return!1;for(var o;i-- >0;)if(o=n[i],o===AT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!kT(t,o)||!r.equals(e[o],t[o],o,o,e,t,r))return!1;return!0}function fl(e,t,r){var n=XO(e),i=n.length;if(XO(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=n[i],o===AT&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!kT(t,o)||!r.equals(e[o],t[o],o,o,e,t,r)||(a=ZO(e,o),s=ZO(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function Cee(e,t){return zs(e.valueOf(),t.valueOf())}function kee(e,t){return e.source===t.source&&e.flags===t.flags}function e3(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),l=!1,u=0;(a=s.next())&&!a.done;)!l&&!n[u]&&(l=r.equals(o.value,a.value,o.value,a.value,e,t,r))&&(n[u]=!0),u++;if(!l)return!1}return!0}function Aee(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var Tee="[object Arguments]",Mee="[object Boolean]",jee="[object Date]",$ee="[object Map]",Nee="[object Number]",Iee="[object Object]",Dee="[object RegExp]",Ree="[object Set]",Lee="[object String]",zee=Array.isArray,t3=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,r3=Object.assign,Fee=Object.prototype.toString.call.bind(Object.prototype.toString);function Bee(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var h=c.constructor;if(h!==f.constructor)return!1;if(h===Object)return i(c,f,d);if(zee(c))return t(c,f,d);if(t3!=null&&t3(c))return l(c,f,d);if(h===Date)return r(c,f,d);if(h===RegExp)return a(c,f,d);if(h===Map)return n(c,f,d);if(h===Set)return s(c,f,d);var v=Fee(c);return v===jee?r(c,f,d):v===Dee?a(c,f,d):v===$ee?n(c,f,d):v===Ree?s(c,f,d):v===Iee?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):v===Tee?i(c,f,d):v===Mee||v===Nee||v===Lee?o(c,f,d):!1}}function Wee(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?fl:_ee,areDatesEqual:Pee,areMapsEqual:n?KO(JO,fl):JO,areObjectsEqual:n?fl:Eee,arePrimitiveWrappersEqual:Cee,areRegExpsEqual:kee,areSetsEqual:n?KO(e3,fl):e3,areTypedArraysEqual:n?fl:Aee};if(r&&(i=r3({},i,r(i))),t){var o=nf(i.areArraysEqual),a=nf(i.areMapsEqual),s=nf(i.areObjectsEqual),l=nf(i.areSetsEqual);i=r3({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function Hee(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function Uee(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,o=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,h=c.meta;return r(l,u,{cache:d,equals:i,meta:h,strict:o})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(l,u){return r(l,u,a)}}var Yee=oo();oo({strict:!0});oo({circular:!0});oo({circular:!0,strict:!0});oo({createInternalComparator:function(){return zs}});oo({strict:!0,createInternalComparator:function(){return zs}});oo({circular:!0,createInternalComparator:function(){return zs}});oo({circular:!0,createInternalComparator:function(){return zs},strict:!0});function oo(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=Wee(e),l=Bee(s),u=n?n(l):Hee(l);return Uee({circular:r,comparator:l,createState:i,equals:u,strict:a})}function Vee(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function n3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):Vee(i)};requestAnimationFrame(n)}function Lg(e){"@babel/helpers - typeof";return Lg=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},Lg(e)}function Gee(e){return Zee(e)||Xee(e)||Kee(e)||qee()}function qee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kee(e,t){if(e){if(typeof e=="string")return i3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i3(e,t)}}function i3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:y<0?0:y},p=function(y){for(var m=y>1?1:y,b=m,w=0;w<8;++w){var x=f(b)-m,S=h(b);if(Math.abs(x-m)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,l=function(c,f,d){var h=-(c-f)*n,v=d*o,p=d+(h-v)*s/1e3,g=d*s/1e3+c;return Math.abs(g-f)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function lv(e){return jte(e)||Mte(e)||Tte(e)||Ate()}function Ate(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tte(e,t){if(e){if(typeof e=="string")return Hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hg(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 Hg(e)}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kd(e)}var ni=function(e){Rte(r,e);var t=Lte(r);function r(n,i){var o;$te(this,r),o=t.call(this,n,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,c=a.to,f=a.steps,d=a.children,h=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Vg(o)),o.changeStyle=o.changeStyle.bind(Vg(o)),!s||h<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:c}),Yg(o);if(f&&f.length)o.state={style:f[0].style};else if(u){if(typeof d=="function")return o.state={style:u},Yg(o);o.state={style:l?Sl({},l,u):u}}else o.state={style:{}};return o}return Ite(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,l=o.attributeName,u=o.shouldReAnimate,c=o.to,f=o.from,d=this.state.style;if(s){if(!a){var h={style:l?Sl({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(h);return}if(!(Yee(i.to,c)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=v||u?f:i.to;if(this.state&&d){var g={style:l?Sl({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(g)}this.runAnimation(Fr(Fr({},this.props),{},{from:p,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,a=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=Pte(a,s,pte(u),l,this.changeStyle),v=function(){o.stopJSAnimation=h()};this.manager.start([d,c,v,l,f])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,u=a[0],c=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,g,y){if(y===0)return p;var m=g.duration,b=g.easing,w=b===void 0?"ease":b,x=g.style,S=g.properties,_=g.onAnimationEnd,E=y>0?a[y-1]:g,A=S||Object.keys(x);if(typeof w=="function"||w==="spring")return[].concat(lv(p),[o.runJSAnimation.bind(o,{from:E.style,to:x,duration:m,easing:w}),m]);var C=s3(A,m,w),T=Fr(Fr(Fr({},E.style),x),{},{transition:C});return[].concat(lv(p),[T,m,_]).filter(rte)};return this.manager.start([l].concat(lv(a.reduce(h,[c,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Qee());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?Sl({},s,l):l,g=s3(Object.keys(p),a,u);v.start([c,o,Fr(Fr({},p),{},{transition:g}),a,f])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=Cte(i,Ete),u=O.Children.count(o),c=this.state.style;if(typeof o=="function")return o(c);if(!s||u===0||a<=0)return o;var f=function(h){var v=h.props,p=v.style,g=p===void 0?{}:p,y=v.className,m=O.cloneElement(h,Fr(Fr({},l),{},{style:Fr(Fr({},g),c),className:y}));return m};return u===1?f(O.Children.only(o)):$.createElement("div",null,O.Children.map(o,function(d){return f(d)}))}}]),r}(O.PureComponent);ni.displayName="Animate";ni.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ni.propTypes={from:ce.oneOfType([ce.object,ce.string]),to:ce.oneOfType([ce.object,ce.string]),attributeName:ce.string,duration:ce.number,begin:ce.number,easing:ce.oneOfType([ce.string,ce.func]),steps:ce.arrayOf(ce.shape({duration:ce.number.isRequired,style:ce.object.isRequired,easing:ce.oneOfType([ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ce.func]),properties:ce.arrayOf("string"),onAnimationEnd:ce.func})),children:ce.oneOfType([ce.node,ce.func]),isActive:ce.bool,canBegin:ce.bool,onAnimationEnd:ce.func,shouldReAnimate:ce.bool,onAnimationStart:ce.func,onAnimationReStart:ce.func};ce.object,ce.object,ce.object,ce.element;ce.object,ce.object,ce.object,ce.oneOfType([ce.array,ce.element]),ce.any;function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function Xd(){return Xd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(a>0&&o instanceof Array){for(var f=[0,0,0,0],d=0,h=4;da?a:o[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, `).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(a>0&&o===+o&&o>0){var v=Math.min(a,o);c="M ".concat(t,",").concat(r+s*v,` @@ -209,34 +209,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L `).concat(t+n,",").concat(r+i-s*v,` A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t+n-l*v,",").concat(r+i,` L `).concat(t+l*v,",").concat(r+i,` - A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*v," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},Nre=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,a=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(o,o+s),c=Math.max(o,o+s),f=Math.min(a,a+l),d=Math.max(a,a+l);return n>=u&&n<=c&&i>=f&&i<=d}return!1},Ire={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zb=function(t){var r=y3(y3({},Ire),t),n=O.useRef(),i=O.useState(-1),o=Ere(i,2),a=o[0],s=o[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,v=r.animationEasing,p=r.animationDuration,g=r.animationBegin,y=r.isAnimationActive,m=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var b=de("recharts-rectangle",h);return m?$.createElement(ni,{canBegin:a>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:p,animationEasing:v,isActive:m},function(w){var x=w.width,S=w.height,_=w.x,E=w.y;return $.createElement(ni,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:p,isActive:y,easing:v},$.createElement("path",Xd({},Se(r,!0),{className:b,d:g3(_,E,x,S,d),ref:n})))}):$.createElement("path",Xd({},Se(r,!0),{className:b,d:g3(l,u,c,f,d)}))};function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var Hre=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},Ure=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,h=d===void 0?0:d,v=t.className,p=Bre(t,Dre),g=Rre({x:n,y:o,top:s,left:u,width:f,height:h},p);return!q(n)||!q(o)||!q(f)||!q(h)||!q(s)||!q(u)?null:$.createElement("path",Kg({},Se(g,!0),{className:de("recharts-cross",v),d:Hre(n,o,f,h,s,u)}))},Yre=rA,Vre=Yre(Object.getPrototypeOf,Object),Gre=Vre,qre=ui,Kre=Gre,Xre=ci,Zre="[object Object]",Qre=Function.prototype,Jre=Object.prototype,WT=Qre.toString,ene=Jre.hasOwnProperty,tne=WT.call(Object);function rne(e){if(!Xre(e)||qre(e)!=Zre)return!1;var t=Kre(e);if(t===null)return!0;var r=ene.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&WT.call(r)==tne}var nne=rne;const ine=Me(nne);var one=ui,ane=ci,sne="[object Boolean]";function lne(e){return e===!0||e===!1||ane(e)&&one(e)==sne}var une=lne;const cne=Me(une);function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function Zd(){return Zd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:l,y:u},duration:p,animationEasing:v,isActive:y},function(b){var w=b.upperWidth,x=b.lowerWidth,S=b.height,_=b.x,E=b.y;return $.createElement(ni,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:p,easing:v},$.createElement("path",Zd({},Se(r,!0),{className:m,d:O3(_,E,w,x,S),ref:n})))}):$.createElement("g",null,$.createElement("path",Zd({},Se(r,!0),{className:m,d:O3(l,u,c,f,d)})))},xne=["option","shapeType","propTransformer","activeClassName","isActive"];function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}function Sne(e,t){if(e==null)return{};var r=One(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function One(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function _3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qd(e){for(var t=1;t0&&n.handleDrag(i.changedTouches[0])}),ir(un(n),"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),n.detachDragEndListener()}),ir(un(n),"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ir(un(n),"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ir(un(n),"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ir(un(n),"handleSlideDragStart",function(i){var o=M3(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(un(n),"startX"),endX:n.handleTravellerDragStart.bind(un(n),"endX")},n.state={},n}return nie(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,o),d=Math.max(i,o),h=t.getIndexInRange(a,f),v=t.getIndexInRange(a,d);return{startIndex:h-h%l,endIndex:v===c?c:v-v%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=hr(o[n],s,n);return me(a)?a(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,v=l.onChange,p=n.pageX-o;p>0?p=Math.min(p,u+c-f-s,u+c-f-a):p<0&&(p=Math.max(p,u-a,u-s));var g=this.getIndex({startX:a+p,endX:s+p});(g.startIndex!==d||g.endIndex!==h)&&v&&v(g),this.setState({startX:a+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=M3(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[a],c=this.props,f=c.x,d=c.width,h=c.travellerWidth,v=c.onChange,p=c.gap,g=c.data,y={startX:this.state.startX,endX:this.state.endX},m=n.pageX-o;m>0?m=Math.min(m,f+d-h-u):m<0&&(m=Math.max(m,f-u)),y[a]=u+m;var b=this.getIndex(y),w=b.startIndex,x=b.endIndex,S=function(){var E=g.length-1;return a==="startX"&&(s>l?w%p===0:x%p===0)||sl?x%p===0:w%p===0)||s>l&&x===E};this.setState(ir(ir({},a,u+m),"brushMoveStartX",n.pageX),function(){v&&S()&&v(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=l||this.setState(ir({},i,h),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.fill,u=n.stroke;return $.createElement("rect",{stroke:u,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?$.cloneElement(f,{x:i,y:o,width:a,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var o,a,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,v=l.data,p=l.startIndex,g=l.endIndex,y=Math.max(n,this.props.x),m=cv(cv({},Se(this.props,!1)),{},{x:y,y:u,width:c,height:f}),b=h||"Min value: ".concat((o=v[p])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=v[g])===null||a===void 0?void 0:a.name);return $.createElement(lt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(x){["ArrowLeft","ArrowRight"].includes(x.key)&&(x.preventDefault(),x.stopPropagation(),s.handleTravellerMoveKeyboard(x.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,m))}},{key:"renderSlide",value:function(n,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return $.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:a,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,o=n.endIndex,a=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,d=c.endX,h=5,v={pointerEvents:"none",fill:u};return $.createElement(lt,{className:"recharts-brush-texts"},$.createElement(Md,eh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:a+s/2},v),this.getTextOfTick(i)),$.createElement(Md,eh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:a+s/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,a=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,v=d.endX,p=d.isTextActive,g=d.isSlideMoving,y=d.isTravellerMoving,m=d.isTravellerFocused;if(!i||!i.length||!q(s)||!q(l)||!q(u)||!q(c)||u<=0||c<=0)return null;var b=de("recharts-brush",o),w=$.Children.count(a)===1,x=tie("userSelect","none");return $.createElement(lt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(h,v),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(v,"endX"),(p||g||y||m||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,a=n.width,s=n.height,l=n.stroke,u=Math.floor(o+s/2)-1;return $.createElement($.Fragment,null,$.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),$.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),$.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var o;return $.isValidElement(n)?o=$.cloneElement(n,i):me(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,a=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return cv({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?lie({data:o,width:a,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);n[l]>i?s=l:a=l}return i>=n[s]?s:a}}]),t}(O.PureComponent);ir(us,"displayName","Brush");ir(us,"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 uie=fb;function cie(e,t){var r;return uie(e,function(n,i,o){return r=t(n,i,o),!r}),!!r}var fie=cie,die=qk,hie=ro,pie=fie,mie=rr,vie=wp;function yie(e,t,r){var n=mie(e)?die:pie;return r&&vie(e,t,r)&&(t=void 0),n(e,hie(t))}var gie=yie;const bie=Me(gie);var xn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},j3=yA;function wie(e,t,r){t=="__proto__"&&j3?j3(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var xie=wie,Sie=xie,Oie=mA,_ie=ro;function Pie(e,t){var r={};return t=_ie(t),Oie(e,function(n,i,o){Sie(r,i,t(n,i,o))}),r}var Eie=Pie;const Cie=Me(Eie);function kie(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Vie(e,t){var r=e.x,n=e.y,i=Uie(e,Fie),o="".concat(r),a=parseInt(o,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return pl(pl(pl(pl(pl({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function N3(e){return $.createElement(Tne,Zg({shapeType:"rectangle",propTransformer:Vie,activeClassName:"recharts-active-bar"},e))}var Gie=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var o=typeof n=="number";return o?t(n,i):(o||Uo(),r)}},qie=["value","background"],qT;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 Kie(e,t){if(e==null)return{};var r=Xie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(M)0&&Math.abs(j)0&&(j=Math.min((ye||0)-(M[Ae-1]||0),j))}),Number.isFinite(j)){var R=j/k,I=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(_=R*I/2),p.padding==="no-gap"){var D=Wo(t.barCategoryGap,R*I),N=R*I/2;_=N-D-(N-D)/I*D}}}i==="xAxis"?E=[n.left+(b.left||0)+(_||0),n.left+n.width-(b.right||0)-(_||0)]:i==="yAxis"?E=l==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(_||0),n.top+n.height-(b.bottom||0)-(_||0)]:E=p.range,x&&(E=[E[1],E[0]]);var L=WJ(p,o,d),W=L.scale,Y=L.realScaleType;W.domain(y).range(E),HJ(W);var G=ZJ(W,Hr(Hr({},p),{},{realScaleType:Y}));i==="xAxis"?(T=g==="top"&&!w||g==="bottom"&&w,A=n.left,C=f[S]-T*p.height):i==="yAxis"&&(T=g==="left"&&!w||g==="right"&&w,A=f[S]-T*p.width,C=n.top);var ie=Hr(Hr(Hr({},p),G),{},{realScaleType:Y,x:A,y:C,scale:W,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return ie.bandSize=Ud(ie,G),!p.hide&&i==="xAxis"?f[S]+=(T?-1:1)*ie.height:p.hide||(f[S]+=(T?-1:1)*ie.width),Hr(Hr({},h),{},Np({},v,ie))},{})},QT=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return{x:Math.min(n,o),y:Math.min(i,a),width:Math.abs(o-n),height:Math.abs(a-i)}},soe=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return QT({x:r,y:n},{x:i,y:o})},JT=function(){function e(t){noe(this,e),this.scale=t}return ioe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}]),e}();Np(JT,"EPS",1e-4);var Bb=function(t){var r=Object.keys(t).reduce(function(n,i){return Hr(Hr({},n),{},Np({},i,JT.create(t[i])))},{});return Hr(Hr({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return Cie(i,function(l,u){return r[u].apply(l,{bandAware:a,position:s})})},isInRange:function(i){return GT(i,function(o,a){return r[a].isInRange(o)})}})};function loe(e){return(e%180+180)%180}var uoe=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=loe(i),a=o*Math.PI/180,s=Math.atan(n/r),l=a>s&&a-1?i[o?t[a]:a]:void 0}}var poe=hoe,moe=HT;function voe(e){var t=moe(e),r=t%1;return t===t?r?t-r:t:0}var yoe=voe,goe=lA,boe=ro,woe=yoe,xoe=Math.max;function Soe(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:woe(r);return i<0&&(i=xoe(n+i,0)),goe(e,boe(t),i)}var Ooe=Soe,_oe=poe,Poe=Ooe,Eoe=_oe(Poe),Coe=Eoe;const koe=Me(Coe);var Aoe=N9(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("")}),Wb=O.createContext(void 0),Hb=O.createContext(void 0),eM=O.createContext(void 0),tM=O.createContext({}),rM=O.createContext(void 0),nM=O.createContext(0),iM=O.createContext(0),z3=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,a=t.clipPathId,s=t.children,l=t.width,u=t.height,c=Aoe(o);return $.createElement(Wb.Provider,{value:n},$.createElement(Hb.Provider,{value:i},$.createElement(tM.Provider,{value:o},$.createElement(eM.Provider,{value:c},$.createElement(rM.Provider,{value:a},$.createElement(nM.Provider,{value:u},$.createElement(iM.Provider,{value:l},s)))))))},Toe=function(){return O.useContext(rM)},oM=function(t){var r=O.useContext(Wb);r==null&&Uo();var n=r[t];return n==null&&Uo(),n},Moe=function(){var t=O.useContext(Wb);return Ci(t)},joe=function(){var t=O.useContext(Hb),r=koe(t,function(n){return GT(n.domain,Number.isFinite)});return r||Ci(t)},aM=function(t){var r=O.useContext(Hb);r==null&&Uo();var n=r[t];return n==null&&Uo(),n},$oe=function(){var t=O.useContext(eM);return t},Noe=function(){return O.useContext(tM)},Ub=function(){return O.useContext(iM)},Yb=function(){return O.useContext(nM)};function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function F3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B3(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function tae(e,t){return sM(e,t+1)}function rae(e,t,r,n,i){for(var o=(n||[]).slice(),a=t.start,s=t.end,l=0,u=1,c=a,f=function(){var v=n==null?void 0:n[l];if(v===void 0)return{v:sM(n,u)};var p=l,g,y=function(){return g===void 0&&(g=r(v,p)),g},m=v.coordinate,b=l===0||ih(e,m,y,c,s);b||(l=0,c=a,u+=1),b&&(c=m+e*(y()/2+i),l+=u)},d;u<=o.length;)if(d=f(),d)return d.v;return[]}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 G3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t0?h.coordinate-g*e:h.coordinate})}else o[d]=h=Nt(Nt({},h),{},{tickCoord:h.coordinate});var y=ih(e,h.tickCoord,p,s,l);y&&(l=h.tickCoord-e*(p()/2+i),o[d]=Nt(Nt({},h),{},{isShow:!0}))},c=a-1;c>=0;c--)u(c);return o}function sae(e,t,r,n,i,o){var a=(n||[]).slice(),s=a.length,l=t.start,u=t.end;if(o){var c=n[s-1],f=r(c,s-1),d=e*(c.coordinate+e*f/2-u);a[s-1]=c=Nt(Nt({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var h=ih(e,c.tickCoord,function(){return f},l,u);h&&(u=c.tickCoord-e*(f/2+i),a[s-1]=Nt(Nt({},c),{},{isShow:!0}))}for(var v=o?s-1:s,p=function(m){var b=a[m],w,x=function(){return w===void 0&&(w=r(b,m)),w};if(m===0){var S=e*(b.coordinate-e*x()/2-l);a[m]=b=Nt(Nt({},b),{},{tickCoord:S<0?b.coordinate-S*e:b.coordinate})}else a[m]=b=Nt(Nt({},b),{},{tickCoord:b.coordinate});var _=ih(e,b.tickCoord,x,l,u);_&&(l=b.tickCoord+e*(x()/2+i),a[m]=Nt(Nt({},b),{},{isShow:!0}))},g=0;g=2?qr(i[1].coordinate-i[0].coordinate):1,y=eae(o,g,h);return l==="equidistantPreserveStart"?rae(g,y,p,i,a):(l==="preserveStart"||l==="preserveStartEnd"?d=sae(g,y,p,i,a,l==="preserveStartEnd"):d=aae(g,y,p,i,a),d.filter(function(m){return m.isShow}))}var lae=["viewBox"],uae=["viewBox"],cae=["ticks"];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 Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function dae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K3(e,t){for(var r=0;r0?l(this.props):l(h)),a<=0||s<=0||!v||!v.length?null:$.createElement(lt,{className:de("recharts-cartesian-axis",u),ref:function(g){n.layerReference=g}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Dt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return $.isValidElement(n)?a=$.cloneElement(n,i):me(n)?a=n(i):a=$.createElement(Md,Ca({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}]),t}(O.Component);qb(Bs,"displayName","CartesianAxis");qb(Bs,"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 bae=["x1","y1","x2","y2","key"],wae=["offset"];function Yo(e){"@babel/helpers - typeof";return Yo=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},Yo(e)}function X3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _ae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var Pae=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height;return $.createElement("rect",{x:i,y:o,width:a,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function cM(e,t){var r;if($.isValidElement(e))r=$.cloneElement(e,t);else if(me(e))r=e(t);else{var n=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,l=Z3(t,bae),u=Se(l,!1);u.offset;var c=Z3(u,wae);r=$.createElement("line",Co({},c,{x1:n,y1:i,x2:o,y2:a,fill:"none",key:s}))}return r}function Eae(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=Rt(Rt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return cM(i,u)});return $.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Cae(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=Rt(Rt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return cM(i,u)});return $.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function kae(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var v=!c[h+1],p=v?i+a-d:c[h+1]-d;if(p<=0)return null;var g=h%t.length;return $.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:o,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return $.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Aae(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(d){return Math.round(d+o-o)}).sort(function(d,h){return d-h});o!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var v=!c[h+1],p=v?o+s-d:c[h+1]-d;if(p<=0)return null;var g=h%n.length;return $.createElement("rect",{key:"react-".concat(h),x:d,y:a,width:p,height:l,stroke:"none",fill:n[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return $.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Tae=function(t,r){var n=t.xAxis,i=t.width,o=t.height,a=t.offset;return PT(Gb(Rt(Rt(Rt({},Bs.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,r)},Mae=function(t,r){var n=t.yAxis,i=t.width,o=t.height,a=t.offset;return PT(Gb(Rt(Rt(Rt({},Bs.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,r)},sa={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function fM(e){var t,r,n,i,o,a,s=Ub(),l=Yb(),u=Noe(),c=Rt(Rt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:sa.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:sa.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:sa.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:sa.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:sa.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:sa.verticalFill,x:q(e.x)?e.x:u.left,y:q(e.y)?e.y:u.top,width:q(e.width)?e.width:u.width,height:q(e.height)?e.height:u.height}),f=c.x,d=c.y,h=c.width,v=c.height,p=c.syncWithTicks,g=c.horizontalValues,y=c.verticalValues,m=Moe(),b=joe();if(!q(h)||h<=0||!q(v)||v<=0||!q(f)||f!==+f||!q(d)||d!==+d)return null;var w=c.verticalCoordinatesGenerator||Tae,x=c.horizontalCoordinatesGenerator||Mae,S=c.horizontalPoints,_=c.verticalPoints;if((!S||!S.length)&&me(x)){var E=g&&g.length,A=x({yAxis:b?Rt(Rt({},b),{},{ticks:E?g:b.ticks}):void 0,width:s,height:l,offset:u},E?!0:p);Yn(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Yo(A),"]")),Array.isArray(A)&&(S=A)}if((!_||!_.length)&&me(w)){var C=y&&y.length,T=w({xAxis:m?Rt(Rt({},m),{},{ticks:C?y:m.ticks}):void 0,width:s,height:l,offset:u},C?!0:p);Yn(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Yo(T),"]")),Array.isArray(T)&&(_=T)}return $.createElement("g",{className:"recharts-cartesian-grid"},$.createElement(Pae,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height}),$.createElement(Eae,Co({},c,{offset:u,horizontalPoints:S,xAxis:m,yAxis:b})),$.createElement(Cae,Co({},c,{offset:u,verticalPoints:_,xAxis:m,yAxis:b})),$.createElement(kae,Co({},c,{horizontalPoints:S})),$.createElement(Aae,Co({},c,{verticalPoints:_})))}fM.displayName="CartesianGrid";var jae=["type","layout","connectNulls","ref"];function ds(e){"@babel/helpers - typeof";return ds=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},ds(e)}function $ae(e,t){if(e==null)return{};var r=Nae(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rf){h=[].concat(la(l.slice(0,v)),[f-p]);break}var g=h.length%2===0?[0,d]:[d];return[].concat(la(t.repeat(l,c)),la(h),g).map(function(y){return"".concat(y,"px")}).join(", ")}),Ur(bi(r),"id",fc("recharts-line-")),Ur(bi(r),"pathRef",function(a){r.mainCurve=a}),Ur(bi(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ur(bi(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Fae(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,l=o.yAxis,u=o.layout,c=o.children,f=Mr(c,yc);if(!f)return null;var d=function(p,g){return{x:p.x,y:p.y,value:p.value,errorVal:hr(p.payload,g)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return $.createElement(lt,h,f.map(function(v){return $.cloneElement(v,{key:"bar-".concat(v.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=Se(this.props,!1),d=Se(l,!0),h=u.map(function(p,g){var y=nr(nr(nr({key:"dot-".concat(g),r:3},f),d),{},{value:p.value,dataKey:c,cx:p.x,cy:p.y,index:g,payload:p.payload});return t.renderDotItem(l,y)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return $.createElement(lt,zl({className:"recharts-line-dots",key:"dots"},v),h)}},{key:"renderCurveStatically",value:function(n,i,o,a){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=$ae(s,jae),d=nr(nr(nr({},Se(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:n},a),{},{type:l,layout:u,connectNulls:c});return $.createElement(Lg,zl({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var o=this,a=this.props,s=a.points,l=a.strokeDasharray,u=a.isAnimationActive,c=a.animationBegin,f=a.animationDuration,d=a.animationEasing,h=a.animationId,v=a.animateNewValues,p=a.width,g=a.height,y=this.state,m=y.prevPoints,b=y.totalLength;return $.createElement(ni,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var x=w.t;if(m){var S=m.length/s.length,_=s.map(function(k,j){var M=Math.floor(j*S);if(m[M]){var R=m[M],I=Vr(R.x,k.x),D=Vr(R.y,k.y);return nr(nr({},k),{},{x:I(x),y:D(x)})}if(v){var N=Vr(p*2,k.x),L=Vr(g/2,k.y);return nr(nr({},k),{},{x:N(x),y:L(x)})}return nr(nr({},k),{},{x:k.x,y:k.y})});return o.renderCurveStatically(_,n,i)}var E=Vr(0,b),A=E(x),C;if(l){var T="".concat(l).split(/[,\s]+/gim).map(function(k){return parseFloat(k)});C=o.getStrokeDasharray(A,b,T)}else C=o.generateSimpleStrokeDasharray(b,A);return o.renderCurveStatically(s,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var o=this.props,a=o.points,s=o.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&a&&a.length&&(!u&&c>0||!Ap(u,a))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(a,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,d=i.left,h=i.width,v=i.height,p=i.isAnimationActive,g=i.id;if(o||!s||!s.length)return null;var y=this.state.isAnimationFinished,m=s.length===1,b=de("recharts-line",l),w=u&&u.allowDataOverflow,x=c&&c.allowDataOverflow,S=w||x,_=be(g)?this.id:g,E=(n=Se(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=E.r,C=A===void 0?3:A,T=E.strokeWidth,k=T===void 0?2:T,j=W7(a)?a:{},M=j.clipDot,R=M===void 0?!0:M,I=C*2+k;return $.createElement(lt,{className:b},w||x?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(_)},$.createElement("rect",{x:w?d:d-h/2,y:x?f:f-v/2,width:w?h:h*2,height:x?v:v*2})),!R&&$.createElement("clipPath",{id:"clipPath-dots-".concat(_)},$.createElement("rect",{x:d-I/2,y:f-I/2,width:h+I,height:v+I}))):null,!m&&this.renderCurve(S,_),this.renderErrorBar(S,_),(m||a)&&this.renderDots(S,R,_),(!p||y)&&Yi.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var o=n.length%2!==0?[].concat(la(n),[0]):n,a=[],s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pse(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function mse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vse(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?a:t&&t.length&&q(i)&&q(o)?t.slice(i,o+1):[]};function xM(e){return e==="number"?[0,"auto"]:void 0}var f0=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Rp(r,t);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(a.dataKey&&!a.allowDuplicatedCategory){var h=f===void 0?s:f;d=md(h,a.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(ps(l),[CT(u,d)]):l},[])},o_=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=Cse(o,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=DJ(a,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=f0(t,r,c,f),h=kse(n,s,c,o);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},Ase=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,h=_T(c,o);return n.reduce(function(v,p){var g,y=p.props,m=y.type,b=y.dataKey,w=y.allowDataOverflow,x=y.allowDuplicatedCategory,S=y.scale,_=y.ticks,E=y.includeHidden,A=p.props[a];if(v[A])return v;var C=Rp(t.data,{graphicalItems:i.filter(function(G){return G.props[a]===A}),dataStartIndex:l,dataEndIndex:u}),T=C.length,k,j,M;rse(p.props.domain,w,m)&&(k=$g(p.props.domain,null,w),h&&(m==="number"||S!=="auto")&&(M=Rl(C,b,"category")));var R=xM(m);if(!k||k.length===0){var I,D=(I=p.props.domain)!==null&&I!==void 0?I:R;if(b){if(k=Rl(C,b,m),m==="category"&&h){var N=$7(k);x&&N?(j=k,k=Jd(0,T)):x||(k=LO(D,k,p).reduce(function(G,ie){return G.indexOf(ie)>=0?G:[].concat(ps(G),[ie])},[]))}else if(m==="category")x?k=k.filter(function(G){return G!==""&&!be(G)}):k=LO(D,k,p).reduce(function(G,ie){return G.indexOf(ie)>=0||ie===""||be(ie)?G:[].concat(ps(G),[ie])},[]);else if(m==="number"){var L=BJ(C,i.filter(function(G){return G.props[a]===A&&(E||!G.props.hide)}),b,o,c);L&&(k=L)}h&&(m==="number"||S!=="auto")&&(M=Rl(C,b,"category"))}else h?k=Jd(0,T):s&&s[A]&&s[A].hasStack&&m==="number"?k=d==="expand"?[0,1]:ET(s[A].stackGroups,l,u):k=OT(C,i.filter(function(G){return G.props[a]===A&&(E||!G.props.hide)}),m,c,!0);if(m==="number")k=l0(f,k,A,o,_),D&&(k=$g(D,k,w));else if(m==="category"&&D){var W=D,Y=k.every(function(G){return W.indexOf(G)>=0});Y&&(k=W)}}return B(B({},v),{},ae({},A,B(B({},p.props),{},{axisType:o,domain:k,categoricalDomain:M,duplicateDomain:j,originalDomain:(g=p.props.domain)!==null&&g!==void 0?g:R,isCategorical:h,layout:c})))},{})},Tse=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=Rp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,v=_T(c,o),p=-1;return n.reduce(function(g,y){var m=y.props[a],b=xM("number");if(!g[m]){p++;var w;return v?w=Jd(0,h):s&&s[m]&&s[m].hasStack?(w=ET(s[m].stackGroups,l,u),w=l0(f,w,m,o)):(w=$g(b,OT(d,n.filter(function(x){return x.props[a]===m&&!x.props.hide}),"number",c),i.defaultProps.allowDataOverflow),w=l0(f,w,m,o)),B(B({},g),{},ae({},m,B(B({axisType:o},i.defaultProps),{},{hide:!0,orientation:Tr(Pse,"".concat(o,".").concat(p%2),null),domain:w,originalDomain:b,isCategorical:v,layout:c})))}return g},{})},Mse=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,a=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=Mr(c,o),h={};return d&&d.length?h=Ase(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):a&&a.length&&(h=Tse(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},jse=function(t){var r=Ci(t),n=Fn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:db(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ud(r,n)}},a_=function(t){var r=t.children,n=t.defaultShowTooltip,i=ar(r,us),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},$se=function(t){return!t||!t.length?!1:t.some(function(r){var n=Un(r&&r.type);return n&&n.indexOf("Bar")>=0})},s_=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"}},Nse=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,d=n.margin||{},h=ar(f,us),v=ar(f,ts),p=Object.keys(l).reduce(function(x,S){var _=l[S],E=_.orientation;return!_.mirror&&!_.hide?B(B({},x),{},ae({},E,x[E]+_.width)):x},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(x,S){var _=a[S],E=_.orientation;return!_.mirror&&!_.hide?B(B({},x),{},ae({},E,Tr(x,"".concat(E))+_.height)):x},{top:d.top||0,bottom:d.bottom||0}),y=B(B({},g),p),m=y.bottom;h&&(y.bottom+=h.props.height||us.defaultProps.height),v&&r&&(y=zJ(y,i,n,r));var b=u-y.left-y.right,w=c-y.top-y.bottom;return B(B({brushBottom:m},y),{},{width:Math.max(b,0),height:Math.max(w,0)})},Ise=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Dse=function(t){var r,n=t.chartName,i=t.GraphicalChild,o=t.defaultTooltipEventType,a=o===void 0?"axis":o,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(g,y){var m=y.graphicalItems,b=y.stackGroups,w=y.offset,x=y.updateId,S=y.dataStartIndex,_=y.dataEndIndex,E=g.barSize,A=g.layout,C=g.barGap,T=g.barCategoryGap,k=g.maxBarSize,j=s_(A),M=j.numericAxisName,R=j.cateAxisName,I=$se(m),D=[];return m.forEach(function(N,L){var W=Rp(g.data,{graphicalItems:[N],dataStartIndex:S,dataEndIndex:_}),Y=N.props,G=Y.dataKey,ie=Y.maxBarSize,ye=N.props["".concat(M,"Id")],Ae=N.props["".concat(R,"Id")],Qe={},re=u.reduce(function(lo,uo){var lm=y["".concat(uo.axisType,"Map")],Nw=N.props["".concat(uo.axisType,"Id")];lm&&lm[Nw]||uo.axisType==="zAxis"||Uo();var Iw=lm[Nw];return B(B({},lo),{},ae(ae({},uo.axisType,Iw),"".concat(uo.axisType,"Ticks"),Fn(Iw)))},Qe),we=re[R],V=re["".concat(R,"Ticks")],Z=b&&b[ye]&&b[ye].hasStack&&JJ(N,b[ye].stackGroups),Q=Un(N.type).indexOf("Bar")>=0,F=Ud(we,V),xe=[],se=I&&RJ({barSize:E,stackGroups:b,totalSize:Ise(re,R)});if(Q){var Fe,De,dt=be(ie)?k:ie,Lr=(Fe=(De=Ud(we,V,!0))!==null&&De!==void 0?De:dt)!==null&&Fe!==void 0?Fe:0;xe=LJ({barGap:C,barCategoryGap:T,bandSize:Lr!==F?Lr:F,sizeList:se[Ae],maxBarSize:dt}),Lr!==F&&(xe=xe.map(function(lo){return B(B({},lo),{},{position:B(B({},lo.position),{},{offset:lo.position.offset-Lr/2})})}))}var An=N&&N.type&&N.type.getComposedData;An&&D.push({props:B(B({},An(B(B({},re),{},{displayedData:W,props:g,dataKey:G,item:N,bandSize:F,barPosition:xe,offset:w,stackedData:Z,layout:A,dataStartIndex:S,dataEndIndex:_}))),{},ae(ae(ae({key:N.key||"item-".concat(L)},M,re[M]),R,re[R]),"animationId",x)),childIndex:Y7(N,g.children),item:N})}),D},v=function(g,y){var m=g.props,b=g.dataStartIndex,w=g.dataEndIndex,x=g.updateId;if(!Mx({props:m}))return null;var S=m.children,_=m.layout,E=m.stackOffset,A=m.data,C=m.reverseStackOrder,T=s_(_),k=T.numericAxisName,j=T.cateAxisName,M=Mr(S,i),R=XJ(A,M,"".concat(k,"Id"),"".concat(j,"Id"),E,C),I=u.reduce(function(Y,G){var ie="".concat(G.axisType,"Map");return B(B({},Y),{},ae({},ie,Mse(m,B(B({},G),{},{graphicalItems:M,stackGroups:G.axisType===k&&R,dataStartIndex:b,dataEndIndex:w}))))},{}),D=Nse(B(B({},I),{},{props:m,graphicalItems:M}),y==null?void 0:y.legendBBox);Object.keys(I).forEach(function(Y){I[Y]=f(m,I[Y],D,Y.replace("Map",""),n)});var N=I["".concat(j,"Map")],L=jse(N),W=h(m,B(B({},I),{},{dataStartIndex:b,dataEndIndex:w,updateId:x,graphicalItems:M,stackGroups:R,offset:D}));return B(B({formattedGraphicalItems:W,graphicalItems:M,offset:D,stackGroups:R},L),I)};return r=function(p){wse(g,p);function g(y){var m,b,w;return mse(this,g),w=gse(this,g,[y]),ae(_e(w),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(_e(w),"accessibilityManager",new tse),ae(_e(w),"handleLegendBBoxUpdate",function(x){if(x){var S=w.state,_=S.dataStartIndex,E=S.dataEndIndex,A=S.updateId;w.setState(B({legendBBox:x},v({props:w.props,dataStartIndex:_,dataEndIndex:E,updateId:A},B(B({},w.state),{},{legendBBox:x}))))}}),ae(_e(w),"handleReceiveSyncEvent",function(x,S,_){if(w.props.syncId===x){if(_===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(S)}}),ae(_e(w),"handleBrushChange",function(x){var S=x.startIndex,_=x.endIndex;if(S!==w.state.dataStartIndex||_!==w.state.dataEndIndex){var E=w.state.updateId;w.setState(function(){return B({dataStartIndex:S,dataEndIndex:_},v({props:w.props,dataStartIndex:S,dataEndIndex:_,updateId:E},w.state))}),w.triggerSyncEvent({dataStartIndex:S,dataEndIndex:_})}}),ae(_e(w),"handleMouseEnter",function(x){var S=w.getMouseInfo(x);if(S){var _=B(B({},S),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var E=w.props.onMouseEnter;me(E)&&E(_,x)}}),ae(_e(w),"triggeredAfterMouseMove",function(x){var S=w.getMouseInfo(x),_=S?B(B({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var E=w.props.onMouseMove;me(E)&&E(_,x)}),ae(_e(w),"handleItemMouseEnter",function(x){w.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),ae(_e(w),"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ae(_e(w),"handleMouseMove",function(x){x.persist(),w.throttleTriggeredAfterMouseMove(x)}),ae(_e(w),"handleMouseLeave",function(x){w.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};w.setState(S),w.triggerSyncEvent(S);var _=w.props.onMouseLeave;me(_)&&_(S,x)}),ae(_e(w),"handleOuterEvent",function(x){var S=U7(x),_=Tr(w.props,"".concat(S));if(S&&me(_)){var E,A;/.*touch.*/i.test(S)?A=w.getMouseInfo(x.changedTouches[0]):A=w.getMouseInfo(x),_((E=A)!==null&&E!==void 0?E:{},x)}}),ae(_e(w),"handleClick",function(x){var S=w.getMouseInfo(x);if(S){var _=B(B({},S),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var E=w.props.onClick;me(E)&&E(_,x)}}),ae(_e(w),"handleMouseDown",function(x){var S=w.props.onMouseDown;if(me(S)){var _=w.getMouseInfo(x);S(_,x)}}),ae(_e(w),"handleMouseUp",function(x){var S=w.props.onMouseUp;if(me(S)){var _=w.getMouseInfo(x);S(_,x)}}),ae(_e(w),"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),ae(_e(w),"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.handleMouseDown(x.changedTouches[0])}),ae(_e(w),"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.handleMouseUp(x.changedTouches[0])}),ae(_e(w),"triggerSyncEvent",function(x){w.props.syncId!==void 0&&dv.emit(hv,w.props.syncId,x,w.eventEmitterSymbol)}),ae(_e(w),"applySyncEvent",function(x){var S=w.props,_=S.layout,E=S.syncMethod,A=w.state.updateId,C=x.dataStartIndex,T=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)w.setState(B({dataStartIndex:C,dataEndIndex:T},v({props:w.props,dataStartIndex:C,dataEndIndex:T,updateId:A},w.state)));else if(x.activeTooltipIndex!==void 0){var k=x.chartX,j=x.chartY,M=x.activeTooltipIndex,R=w.state,I=R.offset,D=R.tooltipTicks;if(!I)return;if(typeof E=="function")M=E(D,x);else if(E==="value"){M=-1;for(var N=0;N=0){var Z,Q;if(k.dataKey&&!k.allowDuplicatedCategory){var F=typeof k.dataKey=="function"?V:"payload.".concat(k.dataKey.toString());Z=md(N,F,M),Q=L&&W&&md(W,F,M)}else Z=N==null?void 0:N[j],Q=L&&W&&W[j];if(Ae||ye){var xe=x.props.activeIndex!==void 0?x.props.activeIndex:j;return[O.cloneElement(x,B(B(B({},E.props),re),{},{activeIndex:xe})),null,null]}if(!be(Z))return[we].concat(ps(w.renderActivePoints({item:E,activePoint:Z,basePoint:Q,childIndex:j,isRange:L})))}else{var se,Fe=(se=w.getItemByXY(w.state.activeCoordinate))!==null&&se!==void 0?se:{graphicalItem:we},De=Fe.graphicalItem,dt=De.item,Lr=dt===void 0?x:dt,An=De.childIndex,lo=B(B(B({},E.props),re),{},{activeIndex:An});return[O.cloneElement(Lr,lo),null,null]}return L?[we,null,null]:[we,null]}),ae(_e(w),"renderCustomized",function(x,S,_){return O.cloneElement(x,B(B({key:"recharts-customized-".concat(_)},w.props),w.state))}),ae(_e(w),"renderMap",{CartesianGrid:{handler:lf,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:lf},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:lf},YAxis:{handler:lf},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((m=y.id)!==null&&m!==void 0?m:fc("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=OA(w.triggeredAfterMouseMove,(b=y.throttleDelay)!==null&&b!==void 0?b:1e3/60),w.state={},w}return yse(g,[{key:"componentDidMount",value:function(){var m,b;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var m=this.props,b=m.children,w=m.data,x=m.height,S=m.layout,_=ar(b,fn);if(_){var E=_.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length)){var A=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,C=f0(this.state,w,E,A),T=this.state.tooltipTicks[E].coordinate,k=(this.state.offset.top+x)/2,j=S==="horizontal",M=j?{x:T,y:k}:{y:T,x:k},R=this.state.formattedGraphicalItems.find(function(D){var N=D.item;return N.type.name==="Scatter"});R&&(M=B(B({},M),R.props.points[E].tooltipPosition),C=R.props.points[E].tooltipPayload);var I={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:A,activePayload:C,activeCoordinate:M};this.setState(I),this.renderCursor(_),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(m,b){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==b.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==m.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==m.margin){var w,x;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(m){qy([ar(m.children,fn)],[ar(this.props.children,fn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var m=ar(this.props.children,fn);if(m&&typeof m.props.shared=="boolean"){var b=m.props.shared?"axis":"item";return l.indexOf(b)>=0?b:a}return a}},{key:"getMouseInfo",value:function(m){if(!this.container)return null;var b=this.container,w=b.getBoundingClientRect(),x=vK(w),S={chartX:Math.round(m.pageX-x.left),chartY:Math.round(m.pageY-x.top)},_=w.width/b.offsetWidth||1,E=this.inRange(S.chartX,S.chartY,_);if(!E)return null;var A=this.state,C=A.xAxisMap,T=A.yAxisMap,k=this.getTooltipEventType();if(k!=="axis"&&C&&T){var j=Ci(C).scale,M=Ci(T).scale,R=j&&j.invert?j.invert(S.chartX):null,I=M&&M.invert?M.invert(S.chartY):null;return B(B({},S),{},{xValue:R,yValue:I})}var D=o_(this.state,this.props.data,this.props.layout,E);return D?B(B({},S),D):null}},{key:"inRange",value:function(m,b){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,S=m/w,_=b/w;if(x==="horizontal"||x==="vertical"){var E=this.state.offset,A=S>=E.left&&S<=E.left+E.width&&_>=E.top&&_<=E.top+E.height;return A?{x:S,y:_}:null}var C=this.state,T=C.angleAxisMap,k=C.radiusAxisMap;if(T&&k){var j=Ci(T);return BO({x:S,y:_},j)}return null}},{key:"parseEventsOfWrapper",value:function(){var m=this.props.children,b=this.getTooltipEventType(),w=ar(m,fn),x={};w&&b==="axis"&&(w.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var S=vd(this.props,this.handleOuterEvent);return B(B({},S),x)}},{key:"addListener",value:function(){dv.on(hv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){dv.removeListener(hv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(m,b,w){for(var x=this.state.formattedGraphicalItems,S=0,_=x.length;S<_;S++){var E=x[S];if(E.item===m||E.props.key===m.key||b===Un(E.item.type)&&w===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var m=this.clipPathId,b=this.state.offset,w=b.left,x=b.top,S=b.height,_=b.width;return $.createElement("defs",null,$.createElement("clipPath",{id:m},$.createElement("rect",{x:w,y:x,height:S,width:_})))}},{key:"getXScales",value:function(){var m=this.state.xAxisMap;return m?Object.entries(m).reduce(function(b,w){var x=r_(w,2),S=x[0],_=x[1];return B(B({},b),{},ae({},S,_.scale))},{}):null}},{key:"getYScales",value:function(){var m=this.state.yAxisMap;return m?Object.entries(m).reduce(function(b,w){var x=r_(w,2),S=x[0],_=x[1];return B(B({},b),{},ae({},S,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(m){var b;return(b=this.state.xAxisMap)===null||b===void 0||(b=b[m])===null||b===void 0?void 0:b.scale}},{key:"getYScaleByAxisId",value:function(m){var b;return(b=this.state.yAxisMap)===null||b===void 0||(b=b[m])===null||b===void 0?void 0:b.scale}},{key:"getItemByXY",value:function(m){var b=this.state,w=b.formattedGraphicalItems,x=b.activeItem;if(w&&w.length)for(var S=0,_=w.length;S<_;S++){var E=w[S],A=E.props,C=E.item,T=Un(C.type);if(T==="Bar"){var k=(A.data||[]).find(function(I){return Nre(m,I)});if(k)return{graphicalItem:E,payload:k}}else if(T==="RadialBar"){var j=(A.data||[]).find(function(I){return BO(m,I)});if(j)return{graphicalItem:E,payload:j}}else if(jp(E,x)||$p(E,x)||Du(E,x)){var M=Rne({graphicalItem:E,activeTooltipItem:x,itemData:C.props.data}),R=C.props.activeIndex===void 0?M:C.props.activeIndex;return{graphicalItem:B(B({},E),{},{childIndex:R}),payload:Du(E,x)?C.props.data[M]:E.props.data[M]}}}return null}},{key:"render",value:function(){var m=this;if(!Mx(this))return null;var b=this.props,w=b.children,x=b.className,S=b.width,_=b.height,E=b.style,A=b.compact,C=b.title,T=b.desc,k=n_(b,cse),j=Se(k,!1);if(A)return $.createElement(z3,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement(Xy,Fl({},j,{width:S,height:_,title:C,desc:T}),this.renderClipPath(),$x(w,this.renderMap)));if(this.props.accessibilityLayer){var M,R;j.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,j.role=(R=this.props.role)!==null&&R!==void 0?R:"application",j.onKeyDown=function(D){m.accessibilityManager.keyboardEvent(D)},j.onFocus=function(){m.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return $.createElement(z3,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement("div",Fl({className:de("recharts-wrapper",x),style:B({position:"relative",cursor:"default",width:S,height:_},E)},I,{ref:function(N){m.container=N}}),$.createElement(Xy,Fl({},j,{width:S,height:_,title:C,desc:T,style:Ese}),this.renderClipPath(),$x(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}]),g}(O.Component),ae(r,"displayName",n),ae(r,"defaultProps",B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ae(r,"getDerivedStateFromProps",function(p,g){var y=p.dataKey,m=p.data,b=p.children,w=p.width,x=p.height,S=p.layout,_=p.stackOffset,E=p.margin,A=g.dataStartIndex,C=g.dataEndIndex;if(g.updateId===void 0){var T=a_(p);return B(B(B({},T),{},{updateId:0},v(B(B({props:p},T),{},{updateId:0}),g)),{},{prevDataKey:y,prevData:m,prevWidth:w,prevHeight:x,prevLayout:S,prevStackOffset:_,prevMargin:E,prevChildren:b})}if(y!==g.prevDataKey||m!==g.prevData||w!==g.prevWidth||x!==g.prevHeight||S!==g.prevLayout||_!==g.prevStackOffset||!Ia(E,g.prevMargin)){var k=a_(p),j={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},M=B(B({},o_(g,m,S)),{},{updateId:g.updateId+1}),R=B(B(B({},k),j),M);return B(B(B({},R),v(B({props:p},R),g)),{},{prevDataKey:y,prevData:m,prevWidth:w,prevHeight:x,prevLayout:S,prevStackOffset:_,prevMargin:E,prevChildren:b})}if(!qy(b,g.prevChildren)){var I,D,N,L,W=ar(b,us),Y=W&&(I=(D=W.props)===null||D===void 0?void 0:D.startIndex)!==null&&I!==void 0?I:A,G=W&&(N=(L=W.props)===null||L===void 0?void 0:L.endIndex)!==null&&N!==void 0?N:C,ie=Y!==A||G!==C,ye=!be(m),Ae=ye&&!ie?g.updateId:g.updateId+1;return B(B({updateId:Ae},v(B(B({props:p},g),{},{updateId:Ae,dataStartIndex:Y,dataEndIndex:G}),g)),{},{prevChildren:b,dataStartIndex:Y,dataEndIndex:G})}return null}),ae(r,"renderActiveDot",function(p,g){var y;return O.isValidElement(p)?y=O.cloneElement(p,g):me(p)?y=p(g):y=$.createElement(Fb,g),$.createElement(lt,{className:"recharts-active-dot",key:g.key},y)}),r},Rse=Dse({chartName:"LineChart",GraphicalChild:No,axisComponents:[{axisType:"xAxis",AxisComp:Ip},{axisType:"yAxis",AxisComp:Dp}],formatAxisMap:aoe});const Lse={light:"",dark:".dark"},SM=O.createContext(null);function OM(){const e=O.useContext(SM);if(!e)throw new Error("useChart must be used within a ");return e}const _M=O.forwardRef(({id:e,className:t,children:r,config:n,...i},o)=>{const a=O.useId(),s=`chart-${e||a.replace(/:/g,"")}`;return P.jsx(SM.Provider,{value:{config:n},children:P.jsxs("div",{"data-chart":s,ref:o,className:Le("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...i,children:[P.jsx(zse,{id:s,config:n}),P.jsx(uK,{children:r})]})})});_M.displayName="Chart";const zse=({id:e,config:t})=>{const r=Object.entries(t).filter(([n,i])=>i.theme||i.color);return r.length?P.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Lse).map(([n,i])=>` + A `).concat(v,",").concat(v,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*v," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},qte=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,a=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(o,o+s),c=Math.max(o,o+s),f=Math.min(a,a+l),d=Math.max(a,a+l);return n>=u&&n<=c&&i>=f&&i<=d}return!1},Kte={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Lb=function(t){var r=m3(m3({},Kte),t),n=O.useRef(),i=O.useState(-1),o=Fte(i,2),a=o[0],s=o[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,v=r.animationEasing,p=r.animationDuration,g=r.animationBegin,y=r.isAnimationActive,m=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var b=de("recharts-rectangle",h);return m?$.createElement(ni,{canBegin:a>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:p,animationEasing:v,isActive:m},function(w){var x=w.width,S=w.height,_=w.x,E=w.y;return $.createElement(ni,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:p,isActive:y,easing:v},$.createElement("path",Xd({},Se(r,!0),{className:b,d:v3(_,E,x,S,d),ref:n})))}):$.createElement("path",Xd({},Se(r,!0),{className:b,d:v3(l,u,c,f,d)}))};function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var nre=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},ire=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,h=d===void 0?0:d,v=t.className,p=tre(t,Xte),g=Zte({x:n,y:o,top:s,left:u,width:f,height:h},p);return!q(n)||!q(o)||!q(f)||!q(h)||!q(s)||!q(u)?null:$.createElement("path",qg({},Se(g,!0),{className:de("recharts-cross",v),d:nre(n,o,f,h,s,u)}))},ore=Xk,are=ore(Object.getPrototypeOf,Object),sre=are,lre=ui,ure=sre,cre=ci,fre="[object Object]",dre=Function.prototype,hre=Object.prototype,DT=dre.toString,pre=hre.hasOwnProperty,mre=DT.call(Object);function vre(e){if(!cre(e)||lre(e)!=fre)return!1;var t=ure(e);if(t===null)return!0;var r=pre.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&DT.call(r)==mre}var yre=vre;const gre=Me(yre);var bre=ui,wre=ci,xre="[object Boolean]";function Sre(e){return e===!0||e===!1||wre(e)&&bre(e)==xre}var Ore=Sre;const _re=Me(Ore);function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function Zd(){return Zd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:l,y:u},duration:p,animationEasing:v,isActive:y},function(b){var w=b.upperWidth,x=b.lowerWidth,S=b.height,_=b.x,E=b.y;return $.createElement(ni,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:p,easing:v},$.createElement("path",Zd({},Se(r,!0),{className:m,d:x3(_,E,w,x,S),ref:n})))}):$.createElement("g",null,$.createElement("path",Zd({},Se(r,!0),{className:m,d:x3(l,u,c,f,d)})))},Ire=["option","shapeType","propTransformer","activeClassName","isActive"];function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}function Dre(e,t){if(e==null)return{};var r=Rre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function S3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qd(e){for(var t=1;t0&&n.handleDrag(i.changedTouches[0])}),ir(un(n),"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),n.detachDragEndListener()}),ir(un(n),"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),ir(un(n),"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),ir(un(n),"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),ir(un(n),"handleSlideDragStart",function(i){var o=A3(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(un(n),"startX"),endX:n.handleTravellerDragStart.bind(un(n),"endX")},n.state={},n}return yne(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,o),d=Math.max(i,o),h=t.getIndexInRange(a,f),v=t.getIndexInRange(a,d);return{startIndex:h-h%l,endIndex:v===c?c:v-v%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=hr(o[n],s,n);return me(a)?a(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,v=l.onChange,p=n.pageX-o;p>0?p=Math.min(p,u+c-f-s,u+c-f-a):p<0&&(p=Math.max(p,u-a,u-s));var g=this.getIndex({startX:a+p,endX:s+p});(g.startIndex!==d||g.endIndex!==h)&&v&&v(g),this.setState({startX:a+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=A3(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[a],c=this.props,f=c.x,d=c.width,h=c.travellerWidth,v=c.onChange,p=c.gap,g=c.data,y={startX:this.state.startX,endX:this.state.endX},m=n.pageX-o;m>0?m=Math.min(m,f+d-h-u):m<0&&(m=Math.max(m,f-u)),y[a]=u+m;var b=this.getIndex(y),w=b.startIndex,x=b.endIndex,S=function(){var E=g.length-1;return a==="startX"&&(s>l?w%p===0:x%p===0)||sl?x%p===0:w%p===0)||s>l&&x===E};this.setState(ir(ir({},a,u+m),"brushMoveStartX",n.pageX),function(){v&&S()&&v(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=l||this.setState(ir({},i,h),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.fill,u=n.stroke;return $.createElement("rect",{stroke:u,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?$.cloneElement(f,{x:i,y:o,width:a,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var o,a,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,v=l.data,p=l.startIndex,g=l.endIndex,y=Math.max(n,this.props.x),m=cv(cv({},Se(this.props,!1)),{},{x:y,y:u,width:c,height:f}),b=h||"Min value: ".concat((o=v[p])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=v[g])===null||a===void 0?void 0:a.name);return $.createElement(lt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(x){["ArrowLeft","ArrowRight"].includes(x.key)&&(x.preventDefault(),x.stopPropagation(),s.handleTravellerMoveKeyboard(x.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,m))}},{key:"renderSlide",value:function(n,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return $.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:a,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,o=n.endIndex,a=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,d=c.endX,h=5,v={pointerEvents:"none",fill:u};return $.createElement(lt,{className:"recharts-brush-texts"},$.createElement(Md,eh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:a+s/2},v),this.getTextOfTick(i)),$.createElement(Md,eh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:a+s/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,a=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,v=d.endX,p=d.isTextActive,g=d.isSlideMoving,y=d.isTravellerMoving,m=d.isTravellerFocused;if(!i||!i.length||!q(s)||!q(l)||!q(u)||!q(c)||u<=0||c<=0)return null;var b=de("recharts-brush",o),w=$.Children.count(a)===1,x=mne("userSelect","none");return $.createElement(lt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(h,v),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(v,"endX"),(p||g||y||m||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,a=n.width,s=n.height,l=n.stroke,u=Math.floor(o+s/2)-1;return $.createElement($.Fragment,null,$.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),$.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),$.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var o;return $.isValidElement(n)?o=$.cloneElement(n,i):me(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,a=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return cv({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?Sne({data:o,width:a,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);n[l]>i?s=l:a=l}return i>=n[s]?s:a}}]),t}(O.PureComponent);ir(us,"displayName","Brush");ir(us,"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 One=cb;function _ne(e,t){var r;return One(e,function(n,i,o){return r=t(n,i,o),!r}),!!r}var Pne=_ne,Ene=Wk,Cne=ro,kne=Pne,Ane=rr,Tne=wp;function Mne(e,t,r){var n=Ane(e)?Ene:kne;return r&&Tne(e,t,r)&&(t=void 0),n(e,Cne(t))}var jne=Mne;const $ne=Me(jne);var xn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},T3=fA;function Nne(e,t,r){t=="__proto__"&&T3?T3(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ine=Nne,Dne=Ine,Rne=uA,Lne=ro;function zne(e,t){var r={};return t=Lne(t),Rne(e,function(n,i,o){Dne(r,i,t(n,i,o))}),r}var Fne=zne;const Bne=Me(Fne);function Wne(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function aie(e,t){var r=e.x,n=e.y,i=iie(e,eie),o="".concat(r),a=parseInt(o,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return dl(dl(dl(dl(dl({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function j3(e){return $.createElement(Ure,Xg({shapeType:"rectangle",propTransformer:aie,activeClassName:"recharts-active-bar"},e))}var sie=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var o=typeof n=="number";return o?t(n,i):(o||Uo(),r)}},lie=["value","background"],WT;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 uie(e,t){if(e==null)return{};var r=cie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(M)0&&Math.abs(j)0&&(j=Math.min((ye||0)-(M[Ae-1]||0),j))}),Number.isFinite(j)){var R=j/k,I=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(_=R*I/2),p.padding==="no-gap"){var D=Wo(t.barCategoryGap,R*I),N=R*I/2;_=N-D-(N-D)/I*D}}}i==="xAxis"?E=[n.left+(b.left||0)+(_||0),n.left+n.width-(b.right||0)-(_||0)]:i==="yAxis"?E=l==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(_||0),n.top+n.height-(b.bottom||0)-(_||0)]:E=p.range,x&&(E=[E[1],E[0]]);var L=rJ(p,o,d),W=L.scale,Y=L.realScaleType;W.domain(y).range(E),nJ(W);var G=fJ(W,Hr(Hr({},p),{},{realScaleType:Y}));i==="xAxis"?(T=g==="top"&&!w||g==="bottom"&&w,A=n.left,C=f[S]-T*p.height):i==="yAxis"&&(T=g==="left"&&!w||g==="right"&&w,A=f[S]-T*p.width,C=n.top);var ie=Hr(Hr(Hr({},p),G),{},{realScaleType:Y,x:A,y:C,scale:W,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return ie.bandSize=Ud(ie,G),!p.hide&&i==="xAxis"?f[S]+=(T?-1:1)*ie.height:p.hide||(f[S]+=(T?-1:1)*ie.width),Hr(Hr({},h),{},Np({},v,ie))},{})},VT=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return{x:Math.min(n,o),y:Math.min(i,a),width:Math.abs(o-n),height:Math.abs(a-i)}},xie=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return VT({x:r,y:n},{x:i,y:o})},GT=function(){function e(t){yie(this,e),this.scale=t}return gie(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}]),e}();Np(GT,"EPS",1e-4);var Fb=function(t){var r=Object.keys(t).reduce(function(n,i){return Hr(Hr({},n),{},Np({},i,GT.create(t[i])))},{});return Hr(Hr({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return Bne(i,function(l,u){return r[u].apply(l,{bandAware:a,position:s})})},isInRange:function(i){return BT(i,function(o,a){return r[a].isInRange(o)})}})};function Sie(e){return(e%180+180)%180}var Oie=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Sie(i),a=o*Math.PI/180,s=Math.atan(n/r),l=a>s&&a-1?i[o?t[a]:a]:void 0}}var kie=Cie,Aie=RT;function Tie(e){var t=Aie(e),r=t%1;return t===t?r?t-r:t:0}var Mie=Tie,jie=rA,$ie=ro,Nie=Mie,Iie=Math.max;function Die(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Nie(r);return i<0&&(i=Iie(n+i,0)),jie(e,$ie(t),i)}var Rie=Die,Lie=kie,zie=Rie,Fie=Lie(zie),Bie=Fie;const Wie=Me(Bie);var Hie=q8(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("")}),Bb=O.createContext(void 0),Wb=O.createContext(void 0),qT=O.createContext(void 0),KT=O.createContext({}),XT=O.createContext(void 0),ZT=O.createContext(0),QT=O.createContext(0),R3=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,a=t.clipPathId,s=t.children,l=t.width,u=t.height,c=Hie(o);return $.createElement(Bb.Provider,{value:n},$.createElement(Wb.Provider,{value:i},$.createElement(KT.Provider,{value:o},$.createElement(qT.Provider,{value:c},$.createElement(XT.Provider,{value:a},$.createElement(ZT.Provider,{value:u},$.createElement(QT.Provider,{value:l},s)))))))},Uie=function(){return O.useContext(XT)},JT=function(t){var r=O.useContext(Bb);r==null&&Uo();var n=r[t];return n==null&&Uo(),n},Yie=function(){var t=O.useContext(Bb);return Ci(t)},Vie=function(){var t=O.useContext(Wb),r=Wie(t,function(n){return BT(n.domain,Number.isFinite)});return r||Ci(t)},eM=function(t){var r=O.useContext(Wb);r==null&&Uo();var n=r[t];return n==null&&Uo(),n},Gie=function(){var t=O.useContext(qT);return t},qie=function(){return O.useContext(KT)},Hb=function(){return O.useContext(QT)},Ub=function(){return O.useContext(ZT)};function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function L3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z3(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function moe(e,t){return tM(e,t+1)}function voe(e,t,r,n,i){for(var o=(n||[]).slice(),a=t.start,s=t.end,l=0,u=1,c=a,f=function(){var v=n==null?void 0:n[l];if(v===void 0)return{v:tM(n,u)};var p=l,g,y=function(){return g===void 0&&(g=r(v,p)),g},m=v.coordinate,b=l===0||ih(e,m,y,c,s);b||(l=0,c=a,u+=1),b&&(c=m+e*(y()/2+i),l+=u)},d;u<=o.length;)if(d=f(),d)return d.v;return[]}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 Y3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t0?h.coordinate-g*e:h.coordinate})}else o[d]=h=Nt(Nt({},h),{},{tickCoord:h.coordinate});var y=ih(e,h.tickCoord,p,s,l);y&&(l=h.tickCoord-e*(p()/2+i),o[d]=Nt(Nt({},h),{},{isShow:!0}))},c=a-1;c>=0;c--)u(c);return o}function xoe(e,t,r,n,i,o){var a=(n||[]).slice(),s=a.length,l=t.start,u=t.end;if(o){var c=n[s-1],f=r(c,s-1),d=e*(c.coordinate+e*f/2-u);a[s-1]=c=Nt(Nt({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var h=ih(e,c.tickCoord,function(){return f},l,u);h&&(u=c.tickCoord-e*(f/2+i),a[s-1]=Nt(Nt({},c),{},{isShow:!0}))}for(var v=o?s-1:s,p=function(m){var b=a[m],w,x=function(){return w===void 0&&(w=r(b,m)),w};if(m===0){var S=e*(b.coordinate-e*x()/2-l);a[m]=b=Nt(Nt({},b),{},{tickCoord:S<0?b.coordinate-S*e:b.coordinate})}else a[m]=b=Nt(Nt({},b),{},{tickCoord:b.coordinate});var _=ih(e,b.tickCoord,x,l,u);_&&(l=b.tickCoord+e*(x()/2+i),a[m]=Nt(Nt({},b),{},{isShow:!0}))},g=0;g=2?qr(i[1].coordinate-i[0].coordinate):1,y=poe(o,g,h);return l==="equidistantPreserveStart"?voe(g,y,p,i,a):(l==="preserveStart"||l==="preserveStartEnd"?d=xoe(g,y,p,i,a,l==="preserveStartEnd"):d=woe(g,y,p,i,a),d.filter(function(m){return m.isShow}))}var Soe=["viewBox"],Ooe=["viewBox"],_oe=["ticks"];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 Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Poe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G3(e,t){for(var r=0;r0?l(this.props):l(h)),a<=0||s<=0||!v||!v.length?null:$.createElement(lt,{className:de("recharts-cartesian-axis",u),ref:function(g){n.layerReference=g}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Dt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return $.isValidElement(n)?a=$.cloneElement(n,i):me(n)?a=n(i):a=$.createElement(Md,Ca({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}]),t}(O.Component);Gb(Fs,"displayName","CartesianAxis");Gb(Fs,"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 $oe=["x1","y1","x2","y2","key"],Noe=["offset"];function Yo(e){"@babel/helpers - typeof";return Yo=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},Yo(e)}function q3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Loe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var zoe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height;return $.createElement("rect",{x:i,y:o,width:a,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function iM(e,t){var r;if($.isValidElement(e))r=$.cloneElement(e,t);else if(me(e))r=e(t);else{var n=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,l=K3(t,$oe),u=Se(l,!1);u.offset;var c=K3(u,Noe);r=$.createElement("line",Eo({},c,{x1:n,y1:i,x2:o,y2:a,fill:"none",key:s}))}return r}function Foe(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=Rt(Rt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return iM(i,u)});return $.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Boe(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=Rt(Rt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return iM(i,u)});return $.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Woe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var v=!c[h+1],p=v?i+a-d:c[h+1]-d;if(p<=0)return null;var g=h%t.length;return $.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:o,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return $.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Hoe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(d){return Math.round(d+o-o)}).sort(function(d,h){return d-h});o!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var v=!c[h+1],p=v?o+s-d:c[h+1]-d;if(p<=0)return null;var g=h%n.length;return $.createElement("rect",{key:"react-".concat(h),x:d,y:a,width:p,height:l,stroke:"none",fill:n[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return $.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Uoe=function(t,r){var n=t.xAxis,i=t.width,o=t.height,a=t.offset;return bT(Vb(Rt(Rt(Rt({},Fs.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,r)},Yoe=function(t,r){var n=t.yAxis,i=t.width,o=t.height,a=t.offset;return bT(Vb(Rt(Rt(Rt({},Fs.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,r)},aa={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function oM(e){var t,r,n,i,o,a,s=Hb(),l=Ub(),u=qie(),c=Rt(Rt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:aa.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:aa.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:aa.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:aa.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:aa.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:aa.verticalFill,x:q(e.x)?e.x:u.left,y:q(e.y)?e.y:u.top,width:q(e.width)?e.width:u.width,height:q(e.height)?e.height:u.height}),f=c.x,d=c.y,h=c.width,v=c.height,p=c.syncWithTicks,g=c.horizontalValues,y=c.verticalValues,m=Yie(),b=Vie();if(!q(h)||h<=0||!q(v)||v<=0||!q(f)||f!==+f||!q(d)||d!==+d)return null;var w=c.verticalCoordinatesGenerator||Uoe,x=c.horizontalCoordinatesGenerator||Yoe,S=c.horizontalPoints,_=c.verticalPoints;if((!S||!S.length)&&me(x)){var E=g&&g.length,A=x({yAxis:b?Rt(Rt({},b),{},{ticks:E?g:b.ticks}):void 0,width:s,height:l,offset:u},E?!0:p);Yn(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Yo(A),"]")),Array.isArray(A)&&(S=A)}if((!_||!_.length)&&me(w)){var C=y&&y.length,T=w({xAxis:m?Rt(Rt({},m),{},{ticks:C?y:m.ticks}):void 0,width:s,height:l,offset:u},C?!0:p);Yn(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Yo(T),"]")),Array.isArray(T)&&(_=T)}return $.createElement("g",{className:"recharts-cartesian-grid"},$.createElement(zoe,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height}),$.createElement(Foe,Eo({},c,{offset:u,horizontalPoints:S,xAxis:m,yAxis:b})),$.createElement(Boe,Eo({},c,{offset:u,verticalPoints:_,xAxis:m,yAxis:b})),$.createElement(Woe,Eo({},c,{horizontalPoints:S})),$.createElement(Hoe,Eo({},c,{verticalPoints:_})))}oM.displayName="CartesianGrid";var Voe=["type","layout","connectNulls","ref"];function ds(e){"@babel/helpers - typeof";return ds=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},ds(e)}function Goe(e,t){if(e==null)return{};var r=qoe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qoe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rf){h=[].concat(sa(l.slice(0,v)),[f-p]);break}var g=h.length%2===0?[0,d]:[d];return[].concat(sa(t.repeat(l,c)),sa(h),g).map(function(y){return"".concat(y,"px")}).join(", ")}),Ur(bi(r),"id",fc("recharts-line-")),Ur(bi(r),"pathRef",function(a){r.mainCurve=a}),Ur(bi(r),"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ur(bi(r),"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return eae(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,l=o.yAxis,u=o.layout,c=o.children,f=Mr(c,yc);if(!f)return null;var d=function(p,g){return{x:p.x,y:p.y,value:p.value,errorVal:hr(p.payload,g)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return $.createElement(lt,h,f.map(function(v){return $.cloneElement(v,{key:"bar-".concat(v.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=Se(this.props,!1),d=Se(l,!0),h=u.map(function(p,g){var y=nr(nr(nr({key:"dot-".concat(g),r:3},f),d),{},{value:p.value,dataKey:c,cx:p.x,cy:p.y,index:g,payload:p.payload});return t.renderDotItem(l,y)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return $.createElement(lt,zl({className:"recharts-line-dots",key:"dots"},v),h)}},{key:"renderCurveStatically",value:function(n,i,o,a){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=Goe(s,Voe),d=nr(nr(nr({},Se(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:n},a),{},{type:l,layout:u,connectNulls:c});return $.createElement(Rg,zl({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var o=this,a=this.props,s=a.points,l=a.strokeDasharray,u=a.isAnimationActive,c=a.animationBegin,f=a.animationDuration,d=a.animationEasing,h=a.animationId,v=a.animateNewValues,p=a.width,g=a.height,y=this.state,m=y.prevPoints,b=y.totalLength;return $.createElement(ni,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var x=w.t;if(m){var S=m.length/s.length,_=s.map(function(k,j){var M=Math.floor(j*S);if(m[M]){var R=m[M],I=Vr(R.x,k.x),D=Vr(R.y,k.y);return nr(nr({},k),{},{x:I(x),y:D(x)})}if(v){var N=Vr(p*2,k.x),L=Vr(g/2,k.y);return nr(nr({},k),{},{x:N(x),y:L(x)})}return nr(nr({},k),{},{x:k.x,y:k.y})});return o.renderCurveStatically(_,n,i)}var E=Vr(0,b),A=E(x),C;if(l){var T="".concat(l).split(/[,\s]+/gim).map(function(k){return parseFloat(k)});C=o.getStrokeDasharray(A,b,T)}else C=o.generateSimpleStrokeDasharray(b,A);return o.renderCurveStatically(s,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var o=this.props,a=o.points,s=o.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&a&&a.length&&(!u&&c>0||!Ap(u,a))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(a,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,d=i.left,h=i.width,v=i.height,p=i.isAnimationActive,g=i.id;if(o||!s||!s.length)return null;var y=this.state.isAnimationFinished,m=s.length===1,b=de("recharts-line",l),w=u&&u.allowDataOverflow,x=c&&c.allowDataOverflow,S=w||x,_=be(g)?this.id:g,E=(n=Se(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=E.r,C=A===void 0?3:A,T=E.strokeWidth,k=T===void 0?2:T,j=r7(a)?a:{},M=j.clipDot,R=M===void 0?!0:M,I=C*2+k;return $.createElement(lt,{className:b},w||x?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(_)},$.createElement("rect",{x:w?d:d-h/2,y:x?f:f-v/2,width:w?h:h*2,height:x?v:v*2})),!R&&$.createElement("clipPath",{id:"clipPath-dots-".concat(_)},$.createElement("rect",{x:d-I/2,y:f-I/2,width:h+I,height:v+I}))):null,!m&&this.renderCurve(S,_),this.renderErrorBar(S,_),(m||a)&&this.renderDots(S,R,_),(!p||y)&&Yi.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var o=n.length%2!==0?[].concat(sa(n),[0]):n,a=[],s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kae(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Aae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tae(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?a:t&&t.length&&q(i)&&q(o)?t.slice(i,o+1):[]};function mM(e){return e==="number"?[0,"auto"]:void 0}var c0=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Rp(r,t);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(a.dataKey&&!a.allowDuplicatedCategory){var h=f===void 0?s:f;d=md(h,a.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(ps(l),[xT(u,d)]):l},[])},n_=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=Bae(o,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=XQ(a,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=c0(t,r,c,f),h=Wae(n,s,c,o);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},Hae=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,h=gT(c,o);return n.reduce(function(v,p){var g,y=p.props,m=y.type,b=y.dataKey,w=y.allowDataOverflow,x=y.allowDuplicatedCategory,S=y.scale,_=y.ticks,E=y.includeHidden,A=p.props[a];if(v[A])return v;var C=Rp(t.data,{graphicalItems:i.filter(function(G){return G.props[a]===A}),dataStartIndex:l,dataEndIndex:u}),T=C.length,k,j,M;vae(p.props.domain,w,m)&&(k=jg(p.props.domain,null,w),h&&(m==="number"||S!=="auto")&&(M=Rl(C,b,"category")));var R=mM(m);if(!k||k.length===0){var I,D=(I=p.props.domain)!==null&&I!==void 0?I:R;if(b){if(k=Rl(C,b,m),m==="category"&&h){var N=G9(k);x&&N?(j=k,k=Jd(0,T)):x||(k=DO(D,k,p).reduce(function(G,ie){return G.indexOf(ie)>=0?G:[].concat(ps(G),[ie])},[]))}else if(m==="category")x?k=k.filter(function(G){return G!==""&&!be(G)}):k=DO(D,k,p).reduce(function(G,ie){return G.indexOf(ie)>=0||ie===""||be(ie)?G:[].concat(ps(G),[ie])},[]);else if(m==="number"){var L=tJ(C,i.filter(function(G){return G.props[a]===A&&(E||!G.props.hide)}),b,o,c);L&&(k=L)}h&&(m==="number"||S!=="auto")&&(M=Rl(C,b,"category"))}else h?k=Jd(0,T):s&&s[A]&&s[A].hasStack&&m==="number"?k=d==="expand"?[0,1]:wT(s[A].stackGroups,l,u):k=yT(C,i.filter(function(G){return G.props[a]===A&&(E||!G.props.hide)}),m,c,!0);if(m==="number")k=s0(f,k,A,o,_),D&&(k=jg(D,k,w));else if(m==="category"&&D){var W=D,Y=k.every(function(G){return W.indexOf(G)>=0});Y&&(k=W)}}return B(B({},v),{},ae({},A,B(B({},p.props),{},{axisType:o,domain:k,categoricalDomain:M,duplicateDomain:j,originalDomain:(g=p.props.domain)!==null&&g!==void 0?g:R,isCategorical:h,layout:c})))},{})},Uae=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=Rp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,v=gT(c,o),p=-1;return n.reduce(function(g,y){var m=y.props[a],b=mM("number");if(!g[m]){p++;var w;return v?w=Jd(0,h):s&&s[m]&&s[m].hasStack?(w=wT(s[m].stackGroups,l,u),w=s0(f,w,m,o)):(w=jg(b,yT(d,n.filter(function(x){return x.props[a]===m&&!x.props.hide}),"number",c),i.defaultProps.allowDataOverflow),w=s0(f,w,m,o)),B(B({},g),{},ae({},m,B(B({axisType:o},i.defaultProps),{},{hide:!0,orientation:Tr(zae,"".concat(o,".").concat(p%2),null),domain:w,originalDomain:b,isCategorical:v,layout:c})))}return g},{})},Yae=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,a=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=Mr(c,o),h={};return d&&d.length?h=Hae(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):a&&a.length&&(h=Uae(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},Vae=function(t){var r=Ci(t),n=Fn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:fb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ud(r,n)}},i_=function(t){var r=t.children,n=t.defaultShowTooltip,i=ar(r,us),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},Gae=function(t){return!t||!t.length?!1:t.some(function(r){var n=Un(r&&r.type);return n&&n.indexOf("Bar")>=0})},o_=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"}},qae=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,d=n.margin||{},h=ar(f,us),v=ar(f,ts),p=Object.keys(l).reduce(function(x,S){var _=l[S],E=_.orientation;return!_.mirror&&!_.hide?B(B({},x),{},ae({},E,x[E]+_.width)):x},{left:d.left||0,right:d.right||0}),g=Object.keys(a).reduce(function(x,S){var _=a[S],E=_.orientation;return!_.mirror&&!_.hide?B(B({},x),{},ae({},E,Tr(x,"".concat(E))+_.height)):x},{top:d.top||0,bottom:d.bottom||0}),y=B(B({},g),p),m=y.bottom;h&&(y.bottom+=h.props.height||us.defaultProps.height),v&&r&&(y=JQ(y,i,n,r));var b=u-y.left-y.right,w=c-y.top-y.bottom;return B(B({brushBottom:m},y),{},{width:Math.max(b,0),height:Math.max(w,0)})},Kae=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Xae=function(t){var r,n=t.chartName,i=t.GraphicalChild,o=t.defaultTooltipEventType,a=o===void 0?"axis":o,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(g,y){var m=y.graphicalItems,b=y.stackGroups,w=y.offset,x=y.updateId,S=y.dataStartIndex,_=y.dataEndIndex,E=g.barSize,A=g.layout,C=g.barGap,T=g.barCategoryGap,k=g.maxBarSize,j=o_(A),M=j.numericAxisName,R=j.cateAxisName,I=Gae(m),D=[];return m.forEach(function(N,L){var W=Rp(g.data,{graphicalItems:[N],dataStartIndex:S,dataEndIndex:_}),Y=N.props,G=Y.dataKey,ie=Y.maxBarSize,ye=N.props["".concat(M,"Id")],Ae=N.props["".concat(R,"Id")],Qe={},re=u.reduce(function(lo,uo){var lm=y["".concat(uo.axisType,"Map")],Nw=N.props["".concat(uo.axisType,"Id")];lm&&lm[Nw]||uo.axisType==="zAxis"||Uo();var Iw=lm[Nw];return B(B({},lo),{},ae(ae({},uo.axisType,Iw),"".concat(uo.axisType,"Ticks"),Fn(Iw)))},Qe),we=re[R],V=re["".concat(R,"Ticks")],Z=b&&b[ye]&&b[ye].hasStack&&hJ(N,b[ye].stackGroups),Q=Un(N.type).indexOf("Bar")>=0,F=Ud(we,V),xe=[],se=I&&ZQ({barSize:E,stackGroups:b,totalSize:Kae(re,R)});if(Q){var Fe,De,dt=be(ie)?k:ie,Lr=(Fe=(De=Ud(we,V,!0))!==null&&De!==void 0?De:dt)!==null&&Fe!==void 0?Fe:0;xe=QQ({barGap:C,barCategoryGap:T,bandSize:Lr!==F?Lr:F,sizeList:se[Ae],maxBarSize:dt}),Lr!==F&&(xe=xe.map(function(lo){return B(B({},lo),{},{position:B(B({},lo.position),{},{offset:lo.position.offset-Lr/2})})}))}var An=N&&N.type&&N.type.getComposedData;An&&D.push({props:B(B({},An(B(B({},re),{},{displayedData:W,props:g,dataKey:G,item:N,bandSize:F,barPosition:xe,offset:w,stackedData:Z,layout:A,dataStartIndex:S,dataEndIndex:_}))),{},ae(ae(ae({key:N.key||"item-".concat(L)},M,re[M]),R,re[R]),"animationId",x)),childIndex:o7(N,g.children),item:N})}),D},v=function(g,y){var m=g.props,b=g.dataStartIndex,w=g.dataEndIndex,x=g.updateId;if(!Ax({props:m}))return null;var S=m.children,_=m.layout,E=m.stackOffset,A=m.data,C=m.reverseStackOrder,T=o_(_),k=T.numericAxisName,j=T.cateAxisName,M=Mr(S,i),R=cJ(A,M,"".concat(k,"Id"),"".concat(j,"Id"),E,C),I=u.reduce(function(Y,G){var ie="".concat(G.axisType,"Map");return B(B({},Y),{},ae({},ie,Yae(m,B(B({},G),{},{graphicalItems:M,stackGroups:G.axisType===k&&R,dataStartIndex:b,dataEndIndex:w}))))},{}),D=qae(B(B({},I),{},{props:m,graphicalItems:M}),y==null?void 0:y.legendBBox);Object.keys(I).forEach(function(Y){I[Y]=f(m,I[Y],D,Y.replace("Map",""),n)});var N=I["".concat(j,"Map")],L=Vae(N),W=h(m,B(B({},I),{},{dataStartIndex:b,dataEndIndex:w,updateId:x,graphicalItems:M,stackGroups:R,offset:D}));return B(B({formattedGraphicalItems:W,graphicalItems:M,offset:D,stackGroups:R},L),I)};return r=function(p){Nae(g,p);function g(y){var m,b,w;return Aae(this,g),w=jae(this,g,[y]),ae(_e(w),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(_e(w),"accessibilityManager",new mae),ae(_e(w),"handleLegendBBoxUpdate",function(x){if(x){var S=w.state,_=S.dataStartIndex,E=S.dataEndIndex,A=S.updateId;w.setState(B({legendBBox:x},v({props:w.props,dataStartIndex:_,dataEndIndex:E,updateId:A},B(B({},w.state),{},{legendBBox:x}))))}}),ae(_e(w),"handleReceiveSyncEvent",function(x,S,_){if(w.props.syncId===x){if(_===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(S)}}),ae(_e(w),"handleBrushChange",function(x){var S=x.startIndex,_=x.endIndex;if(S!==w.state.dataStartIndex||_!==w.state.dataEndIndex){var E=w.state.updateId;w.setState(function(){return B({dataStartIndex:S,dataEndIndex:_},v({props:w.props,dataStartIndex:S,dataEndIndex:_,updateId:E},w.state))}),w.triggerSyncEvent({dataStartIndex:S,dataEndIndex:_})}}),ae(_e(w),"handleMouseEnter",function(x){var S=w.getMouseInfo(x);if(S){var _=B(B({},S),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var E=w.props.onMouseEnter;me(E)&&E(_,x)}}),ae(_e(w),"triggeredAfterMouseMove",function(x){var S=w.getMouseInfo(x),_=S?B(B({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var E=w.props.onMouseMove;me(E)&&E(_,x)}),ae(_e(w),"handleItemMouseEnter",function(x){w.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),ae(_e(w),"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ae(_e(w),"handleMouseMove",function(x){x.persist(),w.throttleTriggeredAfterMouseMove(x)}),ae(_e(w),"handleMouseLeave",function(x){w.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};w.setState(S),w.triggerSyncEvent(S);var _=w.props.onMouseLeave;me(_)&&_(S,x)}),ae(_e(w),"handleOuterEvent",function(x){var S=i7(x),_=Tr(w.props,"".concat(S));if(S&&me(_)){var E,A;/.*touch.*/i.test(S)?A=w.getMouseInfo(x.changedTouches[0]):A=w.getMouseInfo(x),_((E=A)!==null&&E!==void 0?E:{},x)}}),ae(_e(w),"handleClick",function(x){var S=w.getMouseInfo(x);if(S){var _=B(B({},S),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var E=w.props.onClick;me(E)&&E(_,x)}}),ae(_e(w),"handleMouseDown",function(x){var S=w.props.onMouseDown;if(me(S)){var _=w.getMouseInfo(x);S(_,x)}}),ae(_e(w),"handleMouseUp",function(x){var S=w.props.onMouseUp;if(me(S)){var _=w.getMouseInfo(x);S(_,x)}}),ae(_e(w),"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),ae(_e(w),"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.handleMouseDown(x.changedTouches[0])}),ae(_e(w),"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.handleMouseUp(x.changedTouches[0])}),ae(_e(w),"triggerSyncEvent",function(x){w.props.syncId!==void 0&&dv.emit(hv,w.props.syncId,x,w.eventEmitterSymbol)}),ae(_e(w),"applySyncEvent",function(x){var S=w.props,_=S.layout,E=S.syncMethod,A=w.state.updateId,C=x.dataStartIndex,T=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)w.setState(B({dataStartIndex:C,dataEndIndex:T},v({props:w.props,dataStartIndex:C,dataEndIndex:T,updateId:A},w.state)));else if(x.activeTooltipIndex!==void 0){var k=x.chartX,j=x.chartY,M=x.activeTooltipIndex,R=w.state,I=R.offset,D=R.tooltipTicks;if(!I)return;if(typeof E=="function")M=E(D,x);else if(E==="value"){M=-1;for(var N=0;N=0){var Z,Q;if(k.dataKey&&!k.allowDuplicatedCategory){var F=typeof k.dataKey=="function"?V:"payload.".concat(k.dataKey.toString());Z=md(N,F,M),Q=L&&W&&md(W,F,M)}else Z=N==null?void 0:N[j],Q=L&&W&&W[j];if(Ae||ye){var xe=x.props.activeIndex!==void 0?x.props.activeIndex:j;return[O.cloneElement(x,B(B(B({},E.props),re),{},{activeIndex:xe})),null,null]}if(!be(Z))return[we].concat(ps(w.renderActivePoints({item:E,activePoint:Z,basePoint:Q,childIndex:j,isRange:L})))}else{var se,Fe=(se=w.getItemByXY(w.state.activeCoordinate))!==null&&se!==void 0?se:{graphicalItem:we},De=Fe.graphicalItem,dt=De.item,Lr=dt===void 0?x:dt,An=De.childIndex,lo=B(B(B({},E.props),re),{},{activeIndex:An});return[O.cloneElement(Lr,lo),null,null]}return L?[we,null,null]:[we,null]}),ae(_e(w),"renderCustomized",function(x,S,_){return O.cloneElement(x,B(B({key:"recharts-customized-".concat(_)},w.props),w.state))}),ae(_e(w),"renderMap",{CartesianGrid:{handler:af,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:af},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:af},YAxis:{handler:af},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((m=y.id)!==null&&m!==void 0?m:fc("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=yA(w.triggeredAfterMouseMove,(b=y.throttleDelay)!==null&&b!==void 0?b:1e3/60),w.state={},w}return Mae(g,[{key:"componentDidMount",value:function(){var m,b;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var m=this.props,b=m.children,w=m.data,x=m.height,S=m.layout,_=ar(b,fn);if(_){var E=_.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length)){var A=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,C=c0(this.state,w,E,A),T=this.state.tooltipTicks[E].coordinate,k=(this.state.offset.top+x)/2,j=S==="horizontal",M=j?{x:T,y:k}:{y:T,x:k},R=this.state.formattedGraphicalItems.find(function(D){var N=D.item;return N.type.name==="Scatter"});R&&(M=B(B({},M),R.props.points[E].tooltipPosition),C=R.props.points[E].tooltipPayload);var I={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:A,activePayload:C,activeCoordinate:M};this.setState(I),this.renderCursor(_),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(m,b){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==b.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==m.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==m.margin){var w,x;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(m){Gy([ar(m.children,fn)],[ar(this.props.children,fn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var m=ar(this.props.children,fn);if(m&&typeof m.props.shared=="boolean"){var b=m.props.shared?"axis":"item";return l.indexOf(b)>=0?b:a}return a}},{key:"getMouseInfo",value:function(m){if(!this.container)return null;var b=this.container,w=b.getBoundingClientRect(),x=Tq(w),S={chartX:Math.round(m.pageX-x.left),chartY:Math.round(m.pageY-x.top)},_=w.width/b.offsetWidth||1,E=this.inRange(S.chartX,S.chartY,_);if(!E)return null;var A=this.state,C=A.xAxisMap,T=A.yAxisMap,k=this.getTooltipEventType();if(k!=="axis"&&C&&T){var j=Ci(C).scale,M=Ci(T).scale,R=j&&j.invert?j.invert(S.chartX):null,I=M&&M.invert?M.invert(S.chartY):null;return B(B({},S),{},{xValue:R,yValue:I})}var D=n_(this.state,this.props.data,this.props.layout,E);return D?B(B({},S),D):null}},{key:"inRange",value:function(m,b){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,S=m/w,_=b/w;if(x==="horizontal"||x==="vertical"){var E=this.state.offset,A=S>=E.left&&S<=E.left+E.width&&_>=E.top&&_<=E.top+E.height;return A?{x:S,y:_}:null}var C=this.state,T=C.angleAxisMap,k=C.radiusAxisMap;if(T&&k){var j=Ci(T);return zO({x:S,y:_},j)}return null}},{key:"parseEventsOfWrapper",value:function(){var m=this.props.children,b=this.getTooltipEventType(),w=ar(m,fn),x={};w&&b==="axis"&&(w.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var S=vd(this.props,this.handleOuterEvent);return B(B({},S),x)}},{key:"addListener",value:function(){dv.on(hv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){dv.removeListener(hv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(m,b,w){for(var x=this.state.formattedGraphicalItems,S=0,_=x.length;S<_;S++){var E=x[S];if(E.item===m||E.props.key===m.key||b===Un(E.item.type)&&w===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var m=this.clipPathId,b=this.state.offset,w=b.left,x=b.top,S=b.height,_=b.width;return $.createElement("defs",null,$.createElement("clipPath",{id:m},$.createElement("rect",{x:w,y:x,height:S,width:_})))}},{key:"getXScales",value:function(){var m=this.state.xAxisMap;return m?Object.entries(m).reduce(function(b,w){var x=e_(w,2),S=x[0],_=x[1];return B(B({},b),{},ae({},S,_.scale))},{}):null}},{key:"getYScales",value:function(){var m=this.state.yAxisMap;return m?Object.entries(m).reduce(function(b,w){var x=e_(w,2),S=x[0],_=x[1];return B(B({},b),{},ae({},S,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(m){var b;return(b=this.state.xAxisMap)===null||b===void 0||(b=b[m])===null||b===void 0?void 0:b.scale}},{key:"getYScaleByAxisId",value:function(m){var b;return(b=this.state.yAxisMap)===null||b===void 0||(b=b[m])===null||b===void 0?void 0:b.scale}},{key:"getItemByXY",value:function(m){var b=this.state,w=b.formattedGraphicalItems,x=b.activeItem;if(w&&w.length)for(var S=0,_=w.length;S<_;S++){var E=w[S],A=E.props,C=E.item,T=Un(C.type);if(T==="Bar"){var k=(A.data||[]).find(function(I){return qte(m,I)});if(k)return{graphicalItem:E,payload:k}}else if(T==="RadialBar"){var j=(A.data||[]).find(function(I){return zO(m,I)});if(j)return{graphicalItem:E,payload:j}}else if(jp(E,x)||$p(E,x)||Du(E,x)){var M=Zre({graphicalItem:E,activeTooltipItem:x,itemData:C.props.data}),R=C.props.activeIndex===void 0?M:C.props.activeIndex;return{graphicalItem:B(B({},E),{},{childIndex:R}),payload:Du(E,x)?C.props.data[M]:E.props.data[M]}}}return null}},{key:"render",value:function(){var m=this;if(!Ax(this))return null;var b=this.props,w=b.children,x=b.className,S=b.width,_=b.height,E=b.style,A=b.compact,C=b.title,T=b.desc,k=t_(b,_ae),j=Se(k,!1);if(A)return $.createElement(R3,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement(Ky,Fl({},j,{width:S,height:_,title:C,desc:T}),this.renderClipPath(),Mx(w,this.renderMap)));if(this.props.accessibilityLayer){var M,R;j.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,j.role=(R=this.props.role)!==null&&R!==void 0?R:"application",j.onKeyDown=function(D){m.accessibilityManager.keyboardEvent(D)},j.onFocus=function(){m.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return $.createElement(R3,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement("div",Fl({className:de("recharts-wrapper",x),style:B({position:"relative",cursor:"default",width:S,height:_},E)},I,{ref:function(N){m.container=N}}),$.createElement(Ky,Fl({},j,{width:S,height:_,title:C,desc:T,style:Fae}),this.renderClipPath(),Mx(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}]),g}(O.Component),ae(r,"displayName",n),ae(r,"defaultProps",B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ae(r,"getDerivedStateFromProps",function(p,g){var y=p.dataKey,m=p.data,b=p.children,w=p.width,x=p.height,S=p.layout,_=p.stackOffset,E=p.margin,A=g.dataStartIndex,C=g.dataEndIndex;if(g.updateId===void 0){var T=i_(p);return B(B(B({},T),{},{updateId:0},v(B(B({props:p},T),{},{updateId:0}),g)),{},{prevDataKey:y,prevData:m,prevWidth:w,prevHeight:x,prevLayout:S,prevStackOffset:_,prevMargin:E,prevChildren:b})}if(y!==g.prevDataKey||m!==g.prevData||w!==g.prevWidth||x!==g.prevHeight||S!==g.prevLayout||_!==g.prevStackOffset||!Ia(E,g.prevMargin)){var k=i_(p),j={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},M=B(B({},n_(g,m,S)),{},{updateId:g.updateId+1}),R=B(B(B({},k),j),M);return B(B(B({},R),v(B({props:p},R),g)),{},{prevDataKey:y,prevData:m,prevWidth:w,prevHeight:x,prevLayout:S,prevStackOffset:_,prevMargin:E,prevChildren:b})}if(!Gy(b,g.prevChildren)){var I,D,N,L,W=ar(b,us),Y=W&&(I=(D=W.props)===null||D===void 0?void 0:D.startIndex)!==null&&I!==void 0?I:A,G=W&&(N=(L=W.props)===null||L===void 0?void 0:L.endIndex)!==null&&N!==void 0?N:C,ie=Y!==A||G!==C,ye=!be(m),Ae=ye&&!ie?g.updateId:g.updateId+1;return B(B({updateId:Ae},v(B(B({props:p},g),{},{updateId:Ae,dataStartIndex:Y,dataEndIndex:G}),g)),{},{prevChildren:b,dataStartIndex:Y,dataEndIndex:G})}return null}),ae(r,"renderActiveDot",function(p,g){var y;return O.isValidElement(p)?y=O.cloneElement(p,g):me(p)?y=p(g):y=$.createElement(zb,g),$.createElement(lt,{className:"recharts-active-dot",key:g.key},y)}),r},Zae=Xae({chartName:"LineChart",GraphicalChild:No,axisComponents:[{axisType:"xAxis",AxisComp:Ip},{axisType:"yAxis",AxisComp:Dp}],formatAxisMap:wie});const qb="-";function Qae(e){const t=ese(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function i(a){const s=a.split(qb);return s[0]===""&&s.length!==1&&s.shift(),vM(s,t)||Jae(a)}function o(a,s){const l=r[a]||[];return s&&n[a]?[...l,...n[a]]:l}return{getClassGroupId:i,getConflictingClassGroupIds:o}}function vM(e,t){var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?vM(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(qb);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId}const a_=/^\[(.+)\]$/;function Jae(e){if(a_.test(e)){const t=a_.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function ese(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return rse(Object.entries(e.classGroups),r).forEach(([o,a])=>{f0(a,n,o,t)}),n}function f0(e,t,r,n){e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:s_(t,i);o.classGroupId=r;return}if(typeof i=="function"){if(tse(i)){f0(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([o,a])=>{f0(a,s_(t,o),r,n)})})}function s_(e,t){let r=e;return t.split(qb).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function tse(e){return e.isThemeGetter}function rse(e,t){return t?e.map(([r,n])=>{const i=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[r,i]}):e}function nse(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function i(o,a){r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)}return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return i(o,a),a},set(o,a){r.has(o)?r.set(o,a):i(o,a)}}}const yM="!";function ise(e){const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],o=t.length;function a(s){const l=[];let u=0,c=0,f;for(let g=0;gc?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:p}}return r?function(l){return r({className:l,parseClassName:a})}:a}function ose(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function ase(e){return{cache:nse(e.cacheSize),parseClassName:ise(e),...Qae(e)}}const sse=/\s+/;function lse(e,t){const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=new Set;return e.trim().split(sse).map(a=>{const{modifiers:s,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=r(a);let f=!!c,d=n(f?u.substring(0,c):u);if(!d){if(!f)return{isTailwindClass:!1,originalClassName:a};if(d=n(u),!d)return{isTailwindClass:!1,originalClassName:a};f=!1}const h=ose(s).join(":");return{isTailwindClass:!0,modifierId:l?h+yM:h,classGroupId:d,originalClassName:a,hasPostfixModifier:f}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;const{modifierId:s,classGroupId:l,hasPostfixModifier:u}=a,c=s+l;return o.has(c)?!1:(o.add(c),i(l,u).forEach(f=>o.add(s+f)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function use(){let e=0,t,r,n="";for(;ef(c),e());return r=ase(u),n=r.cache.get,i=r.cache.set,o=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=lse(l,r);return i(l,c),c}return function(){return o(use.apply(null,arguments))}}function Be(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const bM=/^\[(?:([a-z-]+):)?(.+)\]$/i,fse=/^\d+\/\d+$/,dse=new Set(["px","full","screen"]),hse=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pse=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mse=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vse=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yse=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Tn(e){return Co(e)||dse.has(e)||fse.test(e)}function yi(e){return Bs(e,"length",Pse)}function Co(e){return!!e&&!Number.isNaN(Number(e))}function sf(e){return Bs(e,"number",Co)}function hl(e){return!!e&&Number.isInteger(Number(e))}function gse(e){return e.endsWith("%")&&Co(e.slice(0,-1))}function ue(e){return bM.test(e)}function gi(e){return hse.test(e)}const bse=new Set(["length","size","percentage"]);function wse(e){return Bs(e,bse,wM)}function xse(e){return Bs(e,"position",wM)}const Sse=new Set(["image","url"]);function Ose(e){return Bs(e,Sse,Cse)}function _se(e){return Bs(e,"",Ese)}function pl(){return!0}function Bs(e,t,r){const n=bM.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function Pse(e){return pse.test(e)&&!mse.test(e)}function wM(){return!1}function Ese(e){return vse.test(e)}function Cse(e){return yse.test(e)}function kse(){const e=Be("colors"),t=Be("spacing"),r=Be("blur"),n=Be("brightness"),i=Be("borderColor"),o=Be("borderRadius"),a=Be("borderSpacing"),s=Be("borderWidth"),l=Be("contrast"),u=Be("grayscale"),c=Be("hueRotate"),f=Be("invert"),d=Be("gap"),h=Be("gradientColorStops"),v=Be("gradientColorStopPositions"),p=Be("inset"),g=Be("margin"),y=Be("opacity"),m=Be("padding"),b=Be("saturate"),w=Be("scale"),x=Be("sepia"),S=Be("skew"),_=Be("space"),E=Be("translate"),A=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",ue,t],k=()=>[ue,t],j=()=>["",Tn,yi],M=()=>["auto",Co,ue],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",ue],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Co,sf],G=()=>[Co,ue];return{cacheSize:500,separator:":",theme:{colors:[pl],spacing:[Tn,yi],blur:["none","",gi,ue],brightness:Y(),borderColor:[e],borderRadius:["none","","full",gi,ue],borderSpacing:k(),borderWidth:j(),contrast:Y(),grayscale:L(),hueRotate:G(),invert:L(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[gse,yi],inset:T(),margin:T(),opacity:Y(),padding:k(),saturate:Y(),scale:Y(),sepia:L(),skew:G(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[gi]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),ue]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",hl,ue]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",hl,ue]}],"grid-cols":[{"grid-cols":[pl]}],"col-start-end":[{col:["auto",{span:["full",hl,ue]},ue]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[pl]}],"row-start-end":[{row:["auto",{span:[hl,ue]},ue]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[gi]},gi]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",gi,yi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sf]}],"font-family":[{font:[pl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ue]}],"line-clamp":[{"line-clamp":["none",Co,sf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,yi]}],"underline-offset":[{"underline-offset":["auto",Tn,ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),xse]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wse]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ose]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:I()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[Tn,ue]}],"outline-w":[{outline:[Tn,yi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Tn,yi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",gi,_se]}],"shadow-color":[{shadow:[pl]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",gi,ue]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ue]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[hl,ue]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tn,yi,sf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Ase=cse(kse);function Le(...e){return Ase(de(e))}const Tse=e=>e.replace(/([a-z][A-Z])/g,t=>t.split("").join(" ")),la={GOOD:{color:"#55a84f",bg:"green",message:"Air quality is satisfactory also air pollution poses little or no risk!",condition:"Good"},MODERATE:{color:"#a3c853",bg:"yellow",message:"Air quality is acceptable, small concern to air sensitive people",condition:"Moderate"},UNHEALTHY_SENSITIVE:{color:"#fff833",bg:"orange",message:"People with respiratory or heart conditions, children, and older adults may experience health effects",condition:"Unhealthy for Sensitive Groups"},UNHEALTHY:{color:"#f29c33",bg:"red",message:"Everyone may begin to experience health effects including non-sensitive ones.",condition:"Unhealthy"},VERY_UNHEALTHY:{color:"#e93f33",bg:"purple",message:"Health alert: everyone may experience more serious health effects!!",condition:"Very Unhealthy"},HAZARDOUS:{color:"#af2d24",bg:"maroon",message:"Health warnings of emergency conditions. The entire population is more likely to be affected!!",condition:"Hazardous"}};function fo(e){return typeof e!="number"?{}:e>=0&&e<=50?la.GOOD:e>=51&&e<=100?la.MODERATE:e>=101&&e<=150?la.UNHEALTHY_SENSITIVE:e>=151&&e<=200?la.UNHEALTHY:e>=201&&e<=300?la.VERY_UNHEALTHY:la.HAZARDOUS}const Mse=[{title:"Ozone Layer Depletion",description:"The ozone layer is thinning, which increases UV radiation reaching the Earth's surface.",name:"UNEP, WMO",img:"https://bmkltsly13vb.compat.objectstorage.ap-mumbai-1.oraclecloud.com/cdn.dailymirror.lk/media/images/Editorial-17.jpg"},{title:"PM2.5 and Health Risks",description:"PM2.5 particles can penetrate deep into the lungs and even enter the bloodstream, posing serious health risks.",name:"World Health Organization",img:"https://media.istockphoto.com/id/1144913995/vector/many-peoples-wearing-air-pollution-mask-for-protect-dust-pm2-5-pm10-smoke-smog.jpg?s=612x612&w=0&k=20&c=0vZ7Ji8sIb4FF92WeroHSKSyNGwYvCXLdUDwTB259AU="},{title:"PM10 and Respiratory Issues",description:"Exposure to PM10 particles can cause respiratory issues, especially in children and the elderly.",name:"Environmental Protection Agency",img:"https://thumbs.dreamstime.com/z/respiratory-environment-health-breath-organism-girl-boy-wearing-air-pollution-mask-protect-dust-pm-smoke-smog-145811104.jpg"},{title:"Air Quality in Urban Areas",description:"Urban areas often experience poor air quality due to high vehicle emissions and industrial activities.",name:"World Health Organization",img:"https://www.shutterstock.com/image-vector/cars-air-pollution-polluted-environment-600nw-1769819111.jpg"},{title:"Ozone Pollution",description:"Ground-level ozone can cause respiratory problems and aggravate conditions like asthma.",name:"Environmental Protection Agency",img:"https://media.gettyimages.com/id/526654138/video/cartoon-earth-globe-polluted-by-smoke-from-tubes.jpg?s=640x640&k=20&c=rd5JaxTu7ssPBmWAzmDiNYBMZLS7x4bLh22dhm7vlFk="},{title:"PM2.5 and Heart Disease",description:"Long-term exposure to PM2.5 can increase the risk of heart disease and stroke.",name:"American Heart Association",img:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQhI-WKiQ9DmQiLlgTYo3a6qeQUPe443CwKMg&s"},{title:"Impact on Vegetation",description:"Ozone pollution can damage crops and reduce agricultural production.",name:"Environmental Protection Agency",img:"https://img.freepik.com/premium-vector/dead-tree-polluting-factory-ecological-problem-environmental-pollution-concept-vector-illustration-isolated-white-background_178650-16860.jpg"},{title:"Air Quality and Visibility",description:"High levels of PM2.5 and PM10 can reduce visibility, leading to hazardous driving conditions.",name:"National Oceanic and Atmospheric Administration",img:"https://static.vecteezy.com/system/resources/thumbnails/039/351/538/small_2x/people-wearing-air-pollution-masks-smog-and-mist-vector.jpg"},{title:"Indoor Air Quality",description:"Indoor air pollution can sometimes be worse than outdoor air pollution due to lack of ventilation.",name:"Environmental Protection Agency",img:"https://www.ecosolutionspro.com/wp-content/uploads/2010/12/Sick-House-259x300.jpg"},{title:"Sources of PM2.5",description:"PM2.5 particles are mainly generated from combustion processes, including vehicle engines and industrial activities.",name:"Environmental Protection Agency",img:"https://c8.alamy.com/zooms/6/f4ea62c19dd64e07ae73a969ea4c9f01/tc7gw5.jpg"},{title:"Effects on Wildlife",description:"Air pollution, including ozone and particulate matter, can harm wildlife and disrupt ecosystems.",name:"Environmental Protection Agency",img:"https://www.shutterstock.com/image-vector/sad-comic-bears-suffering-air-260nw-2291294143.jpg"},{title:"Air Quality Index (AQI)",description:"The AQI is a measure used to communicate how polluted the air currently is or how polluted it is forecasted to become.",name:"Environmental Protection Agency",img:"https://media.istockphoto.com/id/1134364154/vector/environment-ecology-infographic-elements-risks-and-pollution-ecosystem.jpg?s=612x612&w=0&k=20&c=1ta5F_oWmXHgCEVbmgX_V-zgXJ38OXASEuI50PDRwsU="}],jse={light:"",dark:".dark"},xM=O.createContext(null);function SM(){const e=O.useContext(xM);if(!e)throw new Error("useChart must be used within a ");return e}const OM=O.forwardRef(({id:e,className:t,children:r,config:n,...i},o)=>{const a=O.useId(),s=`chart-${e||a.replace(/:/g,"")}`;return P.jsx(xM.Provider,{value:{config:n},children:P.jsxs("div",{"data-chart":s,ref:o,className:Le("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...i,children:[P.jsx($se,{id:s,config:n}),P.jsx(Oq,{children:r})]})})});OM.displayName="Chart";const $se=({id:e,config:t})=>{const r=Object.entries(t).filter(([n,i])=>i.theme||i.color);return r.length?P.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(jse).map(([n,i])=>` ${i} [data-chart=${e}] { ${r.map(([o,a])=>{var l;const s=((l=a.theme)==null?void 0:l[n])||a.color;return s?` --color-${o}: ${s};`:null}).join(` `)} } `).join(` -`)}}):null},Fse=fn,PM=O.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:o=!1,label:a,labelFormatter:s,labelClassName:l,formatter:u,color:c,nameKey:f,labelKey:d},h)=>{const{config:v}=OM(),p=O.useMemo(()=>{var x;if(i||!(t!=null&&t.length))return null;const[y]=t,m=`${d||y.dataKey||y.name||"value"}`,b=d0(v,y,m),w=!d&&typeof a=="string"?((x=v[a])==null?void 0:x.label)||a:b==null?void 0:b.label;return s?P.jsx("div",{className:Le("font-medium",l),children:s(w,t)}):w?P.jsx("div",{className:Le("font-medium",l),children:w}):null},[a,s,t,i,l,v,d]);if(!e||!(t!=null&&t.length))return null;const g=t.length===1&&n!=="dot";return P.jsxs("div",{ref:h,className:Le("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-neutral-200 border-neutral-200/50 bg-white px-2.5 py-1.5 text-xs shadow-xl dark:border-neutral-800 dark:border-neutral-800/50 dark:bg-neutral-950",r),children:[g?null:p,P.jsx("div",{className:"grid gap-1.5",children:t.map((y,m)=>{const b=`${f||y.name||y.dataKey||"value"}`,w=d0(v,y,b),x=c||y.payload.fill||y.color;return P.jsx("div",{className:Le("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-neutral-500 dark:[&>svg]:text-neutral-400",n==="dot"&&"items-center"),children:u&&(y==null?void 0:y.value)!==void 0&&y.name?u(y.value,y.name,y,m,y.payload):P.jsxs(P.Fragment,{children:[w!=null&&w.icon?P.jsx(w.icon,{}):!o&&P.jsx("div",{className:Le("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":g&&n==="dashed"}),style:{"--color-bg":x,"--color-border":x}}),P.jsxs("div",{className:Le("flex flex-1 justify-between leading-none",g?"items-end":"items-center"),children:[P.jsxs("div",{className:"grid gap-1.5",children:[g?p:null,P.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:(w==null?void 0:w.label)||y.name})]}),y.value&&P.jsx("span",{className:"font-mono font-medium tabular-nums text-neutral-950 dark:text-neutral-50",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});PM.displayName="ChartTooltip";const Bse=ts,EM=O.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:i},o)=>{const{config:a}=OM();return r!=null&&r.length?P.jsx("div",{ref:o,className:Le("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(s=>{const l=`${i||s.dataKey||"value"}`,u=d0(a,s,l);return P.jsxs("div",{className:Le("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-neutral-500 dark:[&>svg]:text-neutral-400"),children:[u!=null&&u.icon&&!t?P.jsx(u.icon,{}):P.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),u==null?void 0:u.label]},s.value)})}):null});EM.displayName="ChartLegend";function d0(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=r;return r in t&&typeof t[r]=="string"?i=t[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in e?e[i]:e[r]}//! moment.js +`)}}):null},Nse=fn,_M=O.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:o=!1,label:a,labelFormatter:s,labelClassName:l,formatter:u,color:c,nameKey:f,labelKey:d},h)=>{const{config:v}=SM(),p=O.useMemo(()=>{var x;if(i||!(t!=null&&t.length))return null;const[y]=t,m=`${d||y.dataKey||y.name||"value"}`,b=d0(v,y,m),w=!d&&typeof a=="string"?((x=v[a])==null?void 0:x.label)||a:b==null?void 0:b.label;return s?P.jsx("div",{className:Le("font-medium",l),children:s(w,t)}):w?P.jsx("div",{className:Le("font-medium",l),children:w}):null},[a,s,t,i,l,v,d]);if(!e||!(t!=null&&t.length))return null;const g=t.length===1&&n!=="dot";return P.jsxs("div",{ref:h,className:Le("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-neutral-200 border-neutral-200/50 bg-white px-2.5 py-1.5 text-xs shadow-xl dark:border-neutral-800 dark:border-neutral-800/50 dark:bg-neutral-950",r),children:[g?null:p,P.jsx("div",{className:"grid gap-1.5",children:t.map((y,m)=>{const b=`${f||y.name||y.dataKey||"value"}`,w=d0(v,y,b),x=c||y.payload.fill||y.color;return P.jsx("div",{className:Le("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-neutral-500 dark:[&>svg]:text-neutral-400",n==="dot"&&"items-center"),children:u&&(y==null?void 0:y.value)!==void 0&&y.name?u(y.value,y.name,y,m,y.payload):P.jsxs(P.Fragment,{children:[w!=null&&w.icon?P.jsx(w.icon,{}):!o&&P.jsx("div",{className:Le("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":g&&n==="dashed"}),style:{"--color-bg":x,"--color-border":x}}),P.jsxs("div",{className:Le("flex flex-1 justify-between leading-none",g?"items-end":"items-center"),children:[P.jsxs("div",{className:"grid gap-1.5",children:[g?p:null,P.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:(w==null?void 0:w.label)||y.name})]}),y.value&&P.jsx("span",{className:"font-mono font-medium tabular-nums text-neutral-950 dark:text-neutral-50",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});_M.displayName="ChartTooltip";const Ise=ts,PM=O.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:i},o)=>{const{config:a}=SM();return r!=null&&r.length?P.jsx("div",{ref:o,className:Le("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.map(s=>{const l=`${i||s.dataKey||"value"}`,u=d0(a,s,l);return P.jsxs("div",{className:Le("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-neutral-500 dark:[&>svg]:text-neutral-400"),children:[u!=null&&u.icon&&!t?P.jsx(u.icon,{}):P.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),u==null?void 0:u.label]},s.value)})}):null});PM.displayName="ChartLegend";function d0(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=r;return r in t&&typeof t[r]=="string"?i=t[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in e?e[i]:e[r]}//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var CM;function X(){return CM.apply(null,arguments)}function Wse(e){CM=e}function en(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Io(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Kb(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Ee(e,t))return!1;return!0}function qt(e){return e===void 0}function ii(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function xc(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function kM(e,t){var r=[],n,i=e.length;for(n=0;n>>0,n;for(n=0;n0)for(r=0;r>>0,n;for(n=0;n0)for(r=0;r=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var Jb=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,uf=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vv={},La={};function ne(e,t,r,n){var i=n;typeof n=="string"&&(i=function(){return this[n]()}),e&&(La[e]=i),t&&(La[t[0]]=function(){return On(i.apply(this,arguments),t[1],t[2])}),r&&(La[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Gse(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function qse(e){var t=e.match(Jb),r,n;for(r=0,n=t.length;r=0&&uf.test(e);)e=e.replace(uf,n),uf.lastIndex=0,r-=1;return e}var Kse={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Xse(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Jb).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Zse="Invalid date";function Qse(){return this._invalidDate}var Jse="%d",ele=/\d{1,2}/;function tle(e){return this._ordinal.replace("%d",e)}var rle={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function nle(e,t,r,n){var i=this._relativeTime[r];return kn(i)?i(e,t,r,n):i.replace(/%d/i,e)}function ile(e,t){var r=this._relativeTime[e>0?"future":"past"];return kn(r)?r(t):r.replace(/%s/i,t)}var c_={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Rr(e){return typeof e=="string"?c_[e]||c_[e.toLowerCase()]:void 0}function ew(e){var t={},r,n;for(n in e)Ee(e,n)&&(r=Rr(n),r&&(t[r]=e[n]));return t}var ole={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ale(e){var t=[],r;for(r in e)Ee(e,r)&&t.push({unit:r,priority:ole[r]});return t.sort(function(n,i){return n.priority-i.priority}),t}var jM=/\d/,gr=/\d\d/,$M=/\d{3}/,tw=/\d{4}/,zp=/[+-]?\d{6}/,Ge=/\d\d?/,NM=/\d\d\d\d?/,IM=/\d\d\d\d\d\d?/,Fp=/\d{1,3}/,rw=/\d{1,4}/,Bp=/[+-]?\d{1,6}/,Ws=/\d+/,Wp=/[+-]?\d+/,sle=/Z|[+-]\d\d:?\d\d/gi,Hp=/Z|[+-]\d\d(?::?\d\d)?/gi,lle=/[+-]?\d+(\.\d{1,3})?/,Oc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Hs=/^[1-9]\d?/,nw=/^([1-9]\d|\d)/,lh;lh={};function J(e,t,r){lh[e]=kn(t)?t:function(n,i){return n&&r?r:t}}function ule(e,t){return Ee(lh,e)?lh[e](t._strict,t._locale):new RegExp(cle(e))}function cle(e){return qn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,i,o){return r||n||i||o}))}function qn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ge(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Pr(t)),r}var v0={};function Ne(e,t){var r,n=t,i;for(typeof e=="string"&&(e=[e]),ii(t)&&(n=function(o,a){a[t]=ge(o)}),i=e.length,r=0;r68?1900:2e3)};var DM=Us("FullYear",!0);function ple(){return Up(this.year())}function Us(e,t){return function(r){return r!=null?(RM(this,e,r),X.updateOffset(this,t),this):Vu(this,e)}}function Vu(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function RM(e,t,r){var n,i,o,a,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(i?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(i?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(i?n.setUTCHours(r):n.setHours(r));case"Date":return void(i?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=r,a=e.month(),s=e.date(),s=s===29&&a===1&&!Up(o)?28:s,i?n.setUTCFullYear(o,a,s):n.setFullYear(o,a,s)}}function mle(e){return e=Rr(e),kn(this[e])?this[e]():this}function vle(e,t){if(typeof e=="object"){e=ew(e);var r=ale(e),n,i=r.length;for(n=0;n=0?(s=new Date(e+400,t,r,n,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,o,a),s}function Gu(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function uh(e,t,r){var n=7+t-r,i=(7+Gu(e,0,n).getUTCDay()-t)%7;return-i+n-1}function HM(e,t,r,n,i){var o=(7+r-n)%7,a=uh(e,n,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=Bl(l)+s):s>Bl(e)?(l=e+1,u=s-Bl(e)):(l=e,u=s),{year:l,dayOfYear:u}}function qu(e,t,r){var n=uh(e.year(),t,r),i=Math.floor((e.dayOfYear()-n-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+Kn(a,t,r)):i>Kn(e.year(),t,r)?(o=i-Kn(e.year(),t,r),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function Kn(e,t,r){var n=uh(e,t,r),i=uh(e+1,t,r);return(Bl(e)-n+i)/7}ne("w",["ww",2],"wo","week");ne("W",["WW",2],"Wo","isoWeek");J("w",Ge,Hs);J("ww",Ge,gr);J("W",Ge,Hs);J("WW",Ge,gr);_c(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ge(e)});function Ale(e){return qu(e,this._week.dow,this._week.doy).week}var Tle={dow:0,doy:6};function Mle(){return this._week.dow}function jle(){return this._week.doy}function $le(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Nle(e){var t=qu(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ne("d",0,"do","day");ne("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ne("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ne("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ne("e",0,0,"weekday");ne("E",0,0,"isoWeekday");J("d",Ge);J("e",Ge);J("E",Ge);J("dd",function(e,t){return t.weekdaysMinRegex(e)});J("ddd",function(e,t){return t.weekdaysShortRegex(e)});J("dddd",function(e,t){return t.weekdaysRegex(e)});_c(["dd","ddd","dddd"],function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);i!=null?t.d=i:fe(r).invalidWeekday=e});_c(["d","e","E"],function(e,t,r,n){t[n]=ge(e)});function Ile(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Dle(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ow(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Rle="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),UM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lle="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zle=Oc,Fle=Oc,Ble=Oc;function Wle(e,t){var r=en(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ow(r,this._week.dow):e?r[e.day()]:r}function Hle(e){return e===!0?ow(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ule(e){return e===!0?ow(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yle(e,t,r){var n,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=Cn([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(i=at.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=at.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=at.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=at.call(this._weekdaysParse,a),i!==-1||(i=at.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=at.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=at.call(this._shortWeekdaysParse,a),i!==-1||(i=at.call(this._weekdaysParse,a),i!==-1)?i:(i=at.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=at.call(this._minWeekdaysParse,a),i!==-1||(i=at.call(this._weekdaysParse,a),i!==-1)?i:(i=at.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Vle(e,t,r){var n,i,o;if(this._weekdaysParseExact)return Yle.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=Cn([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Gle(e){if(!this.isValid())return e!=null?this:NaN;var t=Vu(this,"Day");return e!=null?(e=Ile(e,this.localeData()),this.add(e-t,"d")):t}function qle(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Kle(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Dle(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Xle(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||aw.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ee(this,"_weekdaysRegex")||(this._weekdaysRegex=zle),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zle(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||aw.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ee(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fle),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qle(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||aw.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ee(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ble),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function aw(){function e(c,f){return f.length-c.length}var t=[],r=[],n=[],i=[],o,a,s,l,u;for(o=0;o<7;o++)a=Cn([2e3,1]).day(o),s=qn(this.weekdaysMin(a,"")),l=qn(this.weekdaysShort(a,"")),u=qn(this.weekdays(a,"")),t.push(s),r.push(l),n.push(u),i.push(s),i.push(l),i.push(u);t.sort(e),r.sort(e),n.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function sw(){return this.hours()%12||12}function Jle(){return this.hours()||24}ne("H",["HH",2],0,"hour");ne("h",["hh",2],0,sw);ne("k",["kk",2],0,Jle);ne("hmm",0,0,function(){return""+sw.apply(this)+On(this.minutes(),2)});ne("hmmss",0,0,function(){return""+sw.apply(this)+On(this.minutes(),2)+On(this.seconds(),2)});ne("Hmm",0,0,function(){return""+this.hours()+On(this.minutes(),2)});ne("Hmmss",0,0,function(){return""+this.hours()+On(this.minutes(),2)+On(this.seconds(),2)});function YM(e,t){ne(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}YM("a",!0);YM("A",!1);function VM(e,t){return t._meridiemParse}J("a",VM);J("A",VM);J("H",Ge,nw);J("h",Ge,Hs);J("k",Ge,Hs);J("HH",Ge,gr);J("hh",Ge,gr);J("kk",Ge,gr);J("hmm",NM);J("hmmss",IM);J("Hmm",NM);J("Hmmss",IM);Ne(["H","HH"],yt);Ne(["k","kk"],function(e,t,r){var n=ge(e);t[yt]=n===24?0:n});Ne(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ne(["h","hh"],function(e,t,r){t[yt]=ge(e),fe(r).bigHour=!0});Ne("hmm",function(e,t,r){var n=e.length-2;t[yt]=ge(e.substr(0,n)),t[Kr]=ge(e.substr(n)),fe(r).bigHour=!0});Ne("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[yt]=ge(e.substr(0,n)),t[Kr]=ge(e.substr(n,2)),t[Wn]=ge(e.substr(i)),fe(r).bigHour=!0});Ne("Hmm",function(e,t,r){var n=e.length-2;t[yt]=ge(e.substr(0,n)),t[Kr]=ge(e.substr(n))});Ne("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[yt]=ge(e.substr(0,n)),t[Kr]=ge(e.substr(n,2)),t[Wn]=ge(e.substr(i))});function eue(e){return(e+"").toLowerCase().charAt(0)==="p"}var tue=/[ap]\.?m?\.?/i,rue=Us("Hours",!0);function nue(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var GM={calendar:Yse,longDateFormat:Kse,invalidDate:Zse,ordinal:Jse,dayOfMonthOrdinalParse:ele,relativeTime:rle,months:gle,monthsShort:LM,week:Tle,weekdays:Rle,weekdaysMin:Lle,weekdaysShort:UM,meridiemParse:tue},qe={},ml={},Ku;function iue(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(i=Yp(o.slice(0,r).join("-")),i)return i;if(n&&n.length>=r&&iue(o,n)>=r-1)break;r--}t++}return Ku}function aue(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Yp(e){var t=null,r;if(qe[e]===void 0&&typeof Lf<"u"&&Lf&&Lf.exports&&aue(e))try{t=Ku._abbr,r=require,r("./locale/"+e),Vi(t)}catch{qe[e]=null}return qe[e]}function Vi(e,t){var r;return e&&(qt(t)?r=di(e):r=lw(e,t),r?Ku=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ku._abbr}function lw(e,t){if(t!==null){var r,n=GM;if(t.abbr=e,qe[e]!=null)TM("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=qe[e]._config;else if(t.parentLocale!=null)if(qe[t.parentLocale]!=null)n=qe[t.parentLocale]._config;else if(r=Yp(t.parentLocale),r!=null)n=r._config;else return ml[t.parentLocale]||(ml[t.parentLocale]=[]),ml[t.parentLocale].push({name:e,config:t}),null;return qe[e]=new Qb(p0(n,t)),ml[e]&&ml[e].forEach(function(i){lw(i.name,i.config)}),Vi(e),qe[e]}else return delete qe[e],null}function sue(e,t){if(t!=null){var r,n,i=GM;qe[e]!=null&&qe[e].parentLocale!=null?qe[e].set(p0(qe[e]._config,t)):(n=Yp(e),n!=null&&(i=n._config),t=p0(i,t),n==null&&(t.abbr=e),r=new Qb(t),r.parentLocale=qe[e],qe[e]=r),Vi(e)}else qe[e]!=null&&(qe[e].parentLocale!=null?(qe[e]=qe[e].parentLocale,e===Vi()&&Vi(e)):qe[e]!=null&&delete qe[e]);return qe[e]}function di(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ku;if(!en(e)){if(t=Yp(e),t)return t;e=[e]}return oue(e)}function lue(){return m0(qe)}function uw(e){var t,r=e._a;return r&&fe(e).overflow===-2&&(t=r[Bn]<0||r[Bn]>11?Bn:r[pn]<1||r[pn]>iw(r[Lt],r[Bn])?pn:r[yt]<0||r[yt]>24||r[yt]===24&&(r[Kr]!==0||r[Wn]!==0||r[ko]!==0)?yt:r[Kr]<0||r[Kr]>59?Kr:r[Wn]<0||r[Wn]>59?Wn:r[ko]<0||r[ko]>999?ko:-1,fe(e)._overflowDayOfYear&&(tpn)&&(t=pn),fe(e)._overflowWeeks&&t===-1&&(t=dle),fe(e)._overflowWeekday&&t===-1&&(t=hle),fe(e).overflow=t),e}var uue=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cue=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fue=/Z|[+-]\d\d(?::?\d\d)?/,cf=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yv=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],due=/^\/?Date\((-?\d+)/i,hue=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,pue={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function qM(e){var t,r,n=e._i,i=uue.exec(n)||cue.exec(n),o,a,s,l,u=cf.length,c=yv.length;if(i){for(fe(e).iso=!0,t=0,r=u;tBl(a)||e._dayOfYear===0)&&(fe(e)._overflowDayOfYear=!0),r=Gu(a,0,e._dayOfYear),e._a[Bn]=r.getUTCMonth(),e._a[pn]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=i[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[yt]===24&&e._a[Kr]===0&&e._a[Wn]===0&&e._a[ko]===0&&(e._nextDay=!0,e._a[yt]=0),e._d=(e._useUTC?Gu:kle).apply(null,n),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(fe(e).weekdayMismatch=!0)}}function Sue(e){var t,r,n,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,r=ha(t.GG,e._a[Lt],qu(Ve(),1,4).year),n=ha(t.W,1),i=ha(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=qu(Ve(),o,a),r=ha(t.gg,e._a[Lt],u.year),n=ha(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),n<1||n>Kn(r,o,a)?fe(e)._overflowWeeks=!0:l!=null?fe(e)._overflowWeekday=!0:(s=HM(r,n,i,o,a),e._a[Lt]=s.year,e._dayOfYear=s.dayOfYear)}X.ISO_8601=function(){};X.RFC_2822=function(){};function fw(e){if(e._f===X.ISO_8601){qM(e);return}if(e._f===X.RFC_2822){KM(e);return}e._a=[],fe(e).empty=!0;var t=""+e._i,r,n,i,o,a,s=t.length,l=0,u,c;for(i=MM(e._f,e._locale).match(Jb)||[],c=i.length,r=0;r0&&fe(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),l+=n.length),La[o]?(n?fe(e).empty=!1:fe(e).unusedTokens.push(o),fle(o,n,e)):e._strict&&!n&&fe(e).unusedTokens.push(o);fe(e).charsLeftOver=s-l,t.length>0&&fe(e).unusedInput.push(t),e._a[yt]<=12&&fe(e).bigHour===!0&&e._a[yt]>0&&(fe(e).bigHour=void 0),fe(e).parsedDateParts=e._a.slice(0),fe(e).meridiem=e._meridiem,e._a[yt]=Oue(e._locale,e._a[yt],e._meridiem),u=fe(e).era,u!==null&&(e._a[Lt]=e._locale.erasConvertYear(u,e._a[Lt])),cw(e),uw(e)}function Oue(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function _ue(e){var t,r,n,i,o,a,s=!1,l=e._f.length;if(l===0){fe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:Lp()});function QM(e,t){var r,n;if(t.length===1&&en(t[0])&&(t=t[0]),!t.length)return Ve();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Yue(){if(!qt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Zb(e,this),e=XM(e),e._a?(t=e._isUTC?Cn(e._a):Ve(e._a),this._isDSTShifted=this.isValid()&&Due(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vue(){return this.isValid()?!this._isUTC:!1}function Gue(){return this.isValid()?this._isUTC:!1}function e6(){return this.isValid()?this._isUTC&&this._offset===0:!1}var que=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Kue=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function sn(e,t){var r=e,n=null,i,o,a;return jf(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ii(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=que.exec(e))?(i=n[1]==="-"?-1:1,r={y:0,d:ge(n[pn])*i,h:ge(n[yt])*i,m:ge(n[Kr])*i,s:ge(n[Wn])*i,ms:ge(y0(n[ko]*1e3))*i}):(n=Kue.exec(e))?(i=n[1]==="-"?-1:1,r={y:ho(n[2],i),M:ho(n[3],i),w:ho(n[4],i),d:ho(n[5],i),h:ho(n[6],i),m:ho(n[7],i),s:ho(n[8],i)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=Xue(Ve(r.from),Ve(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),o=new Vp(r),jf(e)&&Ee(e,"_locale")&&(o._locale=e._locale),jf(e)&&Ee(e,"_isValid")&&(o._isValid=e._isValid),o}sn.fn=Vp.prototype;sn.invalid=Iue;function ho(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function d_(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Xue(e,t){var r;return e.isValid()&&t.isValid()?(t=hw(t,e),e.isBefore(t)?r=d_(e,t):(r=d_(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function t6(e,t){return function(r,n){var i,o;return n!==null&&!isNaN(+n)&&(TM(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),i=sn(r,n),r6(this,i,e),this}}function r6(e,t,r,n){var i=t._milliseconds,o=y0(t._days),a=y0(t._months);e.isValid()&&(n=n??!0,a&&FM(e,Vu(e,"Month")+a*r),o&&RM(e,"Date",Vu(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&X.updateOffset(e,o||a))}var Zue=t6(1,"add"),Que=t6(-1,"subtract");function n6(e){return typeof e=="string"||e instanceof String}function Jue(e){return tn(e)||xc(e)||n6(e)||ii(e)||tce(e)||ece(e)||e===null||e===void 0}function ece(e){var t=Io(e)&&!Kb(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=n.length;for(i=0;ir.valueOf():r.valueOf()9999?Mf(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Mf(r,"Z")):Mf(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function mce(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+n+i+o)}function vce(e){e||(e=this.isUtc()?X.defaultFormatUtc:X.defaultFormat);var t=Mf(this,e);return this.localeData().postformat(t)}function yce(e,t){return this.isValid()&&(tn(e)&&e.isValid()||Ve(e).isValid())?sn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gce(e){return this.from(Ve(),e)}function bce(e,t){return this.isValid()&&(tn(e)&&e.isValid()||Ve(e).isValid())?sn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wce(e){return this.to(Ve(),e)}function i6(e){var t;return e===void 0?this._locale._abbr:(t=di(e),t!=null&&(this._locale=t),this)}var o6=Dr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function a6(){return this._locale}var ch=1e3,za=60*ch,fh=60*za,s6=(365*400+97)*24*fh;function Fa(e,t){return(e%t+t)%t}function l6(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-s6:new Date(e,t,r).valueOf()}function u6(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-s6:Date.UTC(e,t,r)}function xce(e){var t,r;if(e=Rr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?u6:l6,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Fa(t+(this._isUTC?0:this.utcOffset()*za),fh);break;case"minute":t=this._d.valueOf(),t-=Fa(t,za);break;case"second":t=this._d.valueOf(),t-=Fa(t,ch);break}return this._d.setTime(t),X.updateOffset(this,!0),this}function Sce(e){var t,r;if(e=Rr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?u6:l6,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fh-Fa(t+(this._isUTC?0:this.utcOffset()*za),fh)-1;break;case"minute":t=this._d.valueOf(),t+=za-Fa(t,za)-1;break;case"second":t=this._d.valueOf(),t+=ch-Fa(t,ch)-1;break}return this._d.setTime(t),X.updateOffset(this,!0),this}function Oce(){return this._d.valueOf()-(this._offset||0)*6e4}function _ce(){return Math.floor(this.valueOf()/1e3)}function Pce(){return new Date(this.valueOf())}function Ece(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Cce(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function kce(){return this.isValid()?this.toISOString():null}function Ace(){return Xb(this)}function Tce(){return $i({},fe(this))}function Mce(){return fe(this).overflow}function jce(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ne("N",0,0,"eraAbbr");ne("NN",0,0,"eraAbbr");ne("NNN",0,0,"eraAbbr");ne("NNNN",0,0,"eraName");ne("NNNNN",0,0,"eraNarrow");ne("y",["y",1],"yo","eraYear");ne("y",["yy",2],0,"eraYear");ne("y",["yyy",3],0,"eraYear");ne("y",["yyyy",4],0,"eraYear");J("N",pw);J("NN",pw);J("NNN",pw);J("NNNN",Hce);J("NNNNN",Uce);Ne(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?fe(r).era=i:fe(r).invalidEra=e});J("y",Ws);J("yy",Ws);J("yyy",Ws);J("yyyy",Ws);J("yo",Yce);Ne(["y","yy","yyy","yyyy"],Lt);Ne(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Lt]=r._locale.eraYearOrdinalParse(e,i):t[Lt]=parseInt(e,10)});function $ce(e,t){var r,n,i,o=this._eras||di("en")._eras;for(r=0,n=o.length;r=0)return o[n]}function Ice(e,t){var r=e.since<=e.until?1:-1;return t===void 0?X(e.since).year():X(e.since).year()+(t-e.offset)*r}function Dce(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;eo&&(t=o),Qce.call(this,e,t,r,n,i))}function Qce(e,t,r,n,i){var o=HM(e,t,r,n,i),a=Gu(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}ne("Q",0,"Qo","quarter");J("Q",jM);Ne("Q",function(e,t){t[Bn]=(ge(e)-1)*3});function Jce(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ne("D",["DD",2],"Do","date");J("D",Ge,Hs);J("DD",Ge,gr);J("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ne(["D","DD"],pn);Ne("Do",function(e,t){t[pn]=ge(e.match(Ge)[0])});var f6=Us("Date",!0);ne("DDD",["DDDD",3],"DDDo","dayOfYear");J("DDD",Fp);J("DDDD",$M);Ne(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ge(e)});function efe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ne("m",["mm",2],0,"minute");J("m",Ge,nw);J("mm",Ge,gr);Ne(["m","mm"],Kr);var tfe=Us("Minutes",!1);ne("s",["ss",2],0,"second");J("s",Ge,nw);J("ss",Ge,gr);Ne(["s","ss"],Wn);var rfe=Us("Seconds",!1);ne("S",0,0,function(){return~~(this.millisecond()/100)});ne(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ne(0,["SSS",3],0,"millisecond");ne(0,["SSSS",4],0,function(){return this.millisecond()*10});ne(0,["SSSSS",5],0,function(){return this.millisecond()*100});ne(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ne(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ne(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ne(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});J("S",Fp,jM);J("SS",Fp,gr);J("SSS",Fp,$M);var Ni,d6;for(Ni="SSSS";Ni.length<=9;Ni+="S")J(Ni,Ws);function nfe(e,t){t[ko]=ge(("0."+e)*1e3)}for(Ni="S";Ni.length<=9;Ni+="S")Ne(Ni,nfe);d6=Us("Milliseconds",!1);ne("z",0,0,"zoneAbbr");ne("zz",0,0,"zoneName");function ife(){return this._isUTC?"UTC":""}function ofe(){return this._isUTC?"Coordinated Universal Time":""}var U=Sc.prototype;U.add=Zue;U.calendar=ice;U.clone=oce;U.diff=dce;U.endOf=Sce;U.format=vce;U.from=yce;U.fromNow=gce;U.to=bce;U.toNow=wce;U.get=mle;U.invalidAt=Mce;U.isAfter=ace;U.isBefore=sce;U.isBetween=lce;U.isSame=uce;U.isSameOrAfter=cce;U.isSameOrBefore=fce;U.isValid=Ace;U.lang=o6;U.locale=i6;U.localeData=a6;U.max=Aue;U.min=kue;U.parsingFlags=Tce;U.set=vle;U.startOf=xce;U.subtract=Que;U.toArray=Ece;U.toObject=Cce;U.toDate=Pce;U.toISOString=pce;U.inspect=mce;typeof Symbol<"u"&&Symbol.for!=null&&(U[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});U.toJSON=kce;U.toString=hce;U.unix=_ce;U.valueOf=Oce;U.creationData=jce;U.eraName=Dce;U.eraNarrow=Rce;U.eraAbbr=Lce;U.eraYear=zce;U.year=DM;U.isLeapYear=ple;U.weekYear=Vce;U.isoWeekYear=Gce;U.quarter=U.quarters=Jce;U.month=BM;U.daysInMonth=Ple;U.week=U.weeks=$le;U.isoWeek=U.isoWeeks=Nle;U.weeksInYear=Xce;U.weeksInWeekYear=Zce;U.isoWeeksInYear=qce;U.isoWeeksInISOWeekYear=Kce;U.date=f6;U.day=U.days=Gle;U.weekday=qle;U.isoWeekday=Kle;U.dayOfYear=efe;U.hour=U.hours=rue;U.minute=U.minutes=tfe;U.second=U.seconds=rfe;U.millisecond=U.milliseconds=d6;U.utcOffset=Lue;U.utc=Fue;U.local=Bue;U.parseZone=Wue;U.hasAlignedHourOffset=Hue;U.isDST=Uue;U.isLocal=Vue;U.isUtcOffset=Gue;U.isUtc=e6;U.isUTC=e6;U.zoneAbbr=ife;U.zoneName=ofe;U.dates=Dr("dates accessor is deprecated. Use date instead.",f6);U.months=Dr("months accessor is deprecated. Use month instead",BM);U.years=Dr("years accessor is deprecated. Use year instead",DM);U.zone=Dr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zue);U.isDSTShifted=Dr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Yue);function afe(e){return Ve(e*1e3)}function sfe(){return Ve.apply(null,arguments).parseZone()}function h6(e){return e}var ke=Qb.prototype;ke.calendar=Vse;ke.longDateFormat=Xse;ke.invalidDate=Qse;ke.ordinal=tle;ke.preparse=h6;ke.postformat=h6;ke.relativeTime=nle;ke.pastFuture=ile;ke.set=Use;ke.eras=$ce;ke.erasParse=Nce;ke.erasConvertYear=Ice;ke.erasAbbrRegex=Bce;ke.erasNameRegex=Fce;ke.erasNarrowRegex=Wce;ke.months=xle;ke.monthsShort=Sle;ke.monthsParse=_le;ke.monthsRegex=Cle;ke.monthsShortRegex=Ele;ke.week=Ale;ke.firstDayOfYear=jle;ke.firstDayOfWeek=Mle;ke.weekdays=Wle;ke.weekdaysMin=Ule;ke.weekdaysShort=Hle;ke.weekdaysParse=Vle;ke.weekdaysRegex=Xle;ke.weekdaysShortRegex=Zle;ke.weekdaysMinRegex=Qle;ke.isPM=eue;ke.meridiem=nue;function dh(e,t,r,n){var i=di(),o=Cn().set(n,t);return i[r](o,e)}function p6(e,t,r){if(ii(e)&&(t=e,e=void 0),e=e||"",t!=null)return dh(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=dh(e,n,r,"month");return i}function vw(e,t,r,n){typeof e=="boolean"?(ii(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ii(t)&&(r=t,t=void 0),t=t||"");var i=di(),o=e?i._week.dow:0,a,s=[];if(r!=null)return dh(t,(r+o)%7,n,"day");for(a=0;a<7;a++)s[a]=dh(t,(a+o)%7,n,"day");return s}function lfe(e,t){return p6(e,t,"months")}function ufe(e,t){return p6(e,t,"monthsShort")}function cfe(e,t,r){return vw(e,t,r,"weekdays")}function ffe(e,t,r){return vw(e,t,r,"weekdaysShort")}function dfe(e,t,r){return vw(e,t,r,"weekdaysMin")}Vi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=ge(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});X.lang=Dr("moment.lang is deprecated. Use moment.locale instead.",Vi);X.langData=Dr("moment.langData is deprecated. Use moment.localeData instead.",di);var Mn=Math.abs;function hfe(){var e=this._data;return this._milliseconds=Mn(this._milliseconds),this._days=Mn(this._days),this._months=Mn(this._months),e.milliseconds=Mn(e.milliseconds),e.seconds=Mn(e.seconds),e.minutes=Mn(e.minutes),e.hours=Mn(e.hours),e.months=Mn(e.months),e.years=Mn(e.years),this}function m6(e,t,r,n){var i=sn(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function pfe(e,t){return m6(this,e,t,1)}function mfe(e,t){return m6(this,e,t,-1)}function h_(e){return e<0?Math.floor(e):Math.ceil(e)}function vfe(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,i,o,a,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=h_(b0(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,i=Pr(e/1e3),n.seconds=i%60,o=Pr(i/60),n.minutes=o%60,a=Pr(o/60),n.hours=a%24,t+=Pr(a/24),l=Pr(v6(t)),r+=l,t-=h_(b0(l)),s=Pr(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function v6(e){return e*4800/146097}function b0(e){return e*146097/4800}function yfe(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Rr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+v6(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(b0(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function hi(e){return function(){return this.as(e)}}var y6=hi("ms"),gfe=hi("s"),bfe=hi("m"),wfe=hi("h"),xfe=hi("d"),Sfe=hi("w"),Ofe=hi("M"),_fe=hi("Q"),Pfe=hi("y"),Efe=y6;function Cfe(){return sn(this)}function kfe(e){return e=Rr(e),this.isValid()?this[e+"s"]():NaN}function ra(e){return function(){return this.isValid()?this._data[e]:NaN}}var Afe=ra("milliseconds"),Tfe=ra("seconds"),Mfe=ra("minutes"),jfe=ra("hours"),$fe=ra("days"),Nfe=ra("months"),Ife=ra("years");function Dfe(){return Pr(this.days()/7)}var $n=Math.round,ka={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Rfe(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function Lfe(e,t,r,n){var i=sn(e).abs(),o=$n(i.as("s")),a=$n(i.as("m")),s=$n(i.as("h")),l=$n(i.as("d")),u=$n(i.as("M")),c=$n(i.as("w")),f=$n(i.as("y")),d=o<=r.ss&&["s",o]||o0,d[4]=n,Rfe.apply(null,d)}function zfe(e){return e===void 0?$n:typeof e=="function"?($n=e,!0):!1}function Ffe(e,t){return ka[e]===void 0?!1:t===void 0?ka[e]:(ka[e]=t,e==="s"&&(ka.ss=t-1),!0)}function Bfe(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=ka,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},ka,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),i=this.localeData(),o=Lfe(this,!r,n,i),r&&(o=i.pastFuture(+this,o)),i.postformat(o)}var gv=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function qp(){if(!this.isValid())return this.localeData().invalidDate();var e=gv(this._milliseconds)/1e3,t=gv(this._days),r=gv(this._months),n,i,o,a,s=this.asSeconds(),l,u,c,f;return s?(n=Pr(e/60),i=Pr(n/60),e%=60,n%=60,o=Pr(r/12),r%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=ua(this._months)!==ua(s)?"-":"",c=ua(this._days)!==ua(s)?"-":"",f=ua(this._milliseconds)!==ua(s)?"-":"",l+"P"+(o?u+o+"Y":"")+(r?u+r+"M":"")+(t?c+t+"D":"")+(i||n||e?"T":"")+(i?f+i+"H":"")+(n?f+n+"M":"")+(e?f+a+"S":"")):"P0D"}var Oe=Vp.prototype;Oe.isValid=Nue;Oe.abs=hfe;Oe.add=pfe;Oe.subtract=mfe;Oe.as=yfe;Oe.asMilliseconds=y6;Oe.asSeconds=gfe;Oe.asMinutes=bfe;Oe.asHours=wfe;Oe.asDays=xfe;Oe.asWeeks=Sfe;Oe.asMonths=Ofe;Oe.asQuarters=_fe;Oe.asYears=Pfe;Oe.valueOf=Efe;Oe._bubble=vfe;Oe.clone=Cfe;Oe.get=kfe;Oe.milliseconds=Afe;Oe.seconds=Tfe;Oe.minutes=Mfe;Oe.hours=jfe;Oe.days=$fe;Oe.weeks=Dfe;Oe.months=Nfe;Oe.years=Ife;Oe.humanize=Bfe;Oe.toISOString=qp;Oe.toString=qp;Oe.toJSON=qp;Oe.locale=i6;Oe.localeData=a6;Oe.toIsoString=Dr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qp);Oe.lang=o6;ne("X",0,0,"unix");ne("x",0,0,"valueOf");J("x",Wp);J("X",lle);Ne("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ne("x",function(e,t,r){r._d=new Date(ge(e))});//! moment.js -X.version="2.30.1";Wse(Ve);X.fn=U;X.min=Tue;X.max=Mue;X.now=jue;X.utc=Cn;X.unix=afe;X.months=lfe;X.isDate=xc;X.locale=Vi;X.invalid=Lp;X.duration=sn;X.isMoment=tn;X.weekdays=cfe;X.parseZone=sfe;X.localeData=di;X.isDuration=jf;X.monthsShort=ufe;X.weekdaysMin=dfe;X.defineLocale=lw;X.updateLocale=sue;X.locales=lue;X.weekdaysShort=ffe;X.normalizeUnits=Rr;X.relativeTimeRounding=zfe;X.relativeTimeThreshold=Ffe;X.calendarFormat=nce;X.prototype=U;X.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Wfe={avg:{label:"Average"},min:{label:"Minimum"},max:{label:"Maximum"}},Hfe=({forecast:e})=>P.jsx(P.Fragment,{children:Object.entries((e==null?void 0:e.daily)||{}).map(([t,r])=>P.jsxs("div",{className:"rounded-xl w-full p-10 my-5 shadow-lg bg-base-200",children:[P.jsxs("div",{className:"text-2xl font-semibold mb-5 border-s-4 p-2 text-green-500 border-green-500",children:[(t==="pm25"?"pm2.5":t).toUpperCase()," Forecast"]}),P.jsx(_M,{config:Wfe,className:"min-h-[200px] w-full",children:P.jsxs(Rse,{accessibilityLayer:!0,data:r,children:[P.jsx(fM,{vertical:!1}),P.jsx(Ip,{dataKey:"day",tickMargin:10,tickFormatter:n=>X(n).calendar({sameDay:"[Today]",nextDay:"[Tomorrow]",nextWeek:"ddd, DD",lastDay:"[Yesterday]",lastWeek:"[Last] dddd",sameElse:"DD/MM/YYYY"})}),P.jsx(Dp,{domain:["dataMin","dataMax + 2"],tickCount:10}),P.jsx(No,{dataKey:"min",stroke:"#ff0",type:"monotone"}),P.jsx(No,{dataKey:"avg",stroke:"#f0f",type:"monotone"}),P.jsx(No,{dataKey:"max",stroke:"#0ff",type:"monotone"}),P.jsx(Fse,{content:P.jsx(PM,{})}),P.jsx(Bse,{content:P.jsx(EM,{})})]})})]},t))});function Ufe({attribution:e,time:t}){return P.jsx(P.Fragment,{children:P.jsxs("div",{className:"flex justify-between p-5 w-full text-neutral",children:[P.jsxs("div",{children:[P.jsx("p",{children:"Sources"}),e.map((r,n)=>P.jsx("li",{children:P.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"text-sm hover:underline hover:text-gray-300 duration-300",children:r.name})},n))]}),P.jsxs("p",{className:"text-xs text-green-500 my-auto",children:["Last Updated: ",X(t.s).fromNow()]})]})})}function Kp(e,t=[]){let r=[];function n(o,a){const s=O.createContext(a),l=r.length;r=[...r,a];function u(f){const{scope:d,children:h,...v}=f,p=(d==null?void 0:d[e][l])||s,g=O.useMemo(()=>v,Object.values(v));return P.jsx(p.Provider,{value:g,children:h})}function c(f,d){const h=(d==null?void 0:d[e][l])||s,v=O.useContext(h);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=r.map(a=>O.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return O.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,Yfe(i,...t)]}function Yfe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=n.reduce((s,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...s,...f}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Vfe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function g6(...e){return t=>e.forEach(r=>Vfe(r,t))}function Mt(...e){return O.useCallback(g6(...e),e)}var Xu=O.forwardRef((e,t)=>{const{children:r,...n}=e,i=O.Children.toArray(r),o=i.find(qfe);if(o){const a=o.props.children,s=i.map(l=>l===o?O.Children.count(a)>1?O.Children.only(null):O.isValidElement(a)?a.props.children:null:l);return P.jsx(w0,{...n,ref:t,children:O.isValidElement(a)?O.cloneElement(a,void 0,s):null})}return P.jsx(w0,{...n,ref:t,children:r})});Xu.displayName="Slot";var w0=O.forwardRef((e,t)=>{const{children:r,...n}=e;if(O.isValidElement(r)){const i=Xfe(r);return O.cloneElement(r,{...Kfe(n,r.props),ref:t?g6(t,i):i})}return O.Children.count(r)>1?O.Children.only(null):null});w0.displayName="SlotClone";var Gfe=({children:e})=>P.jsx(P.Fragment,{children:e});function qfe(e){return O.isValidElement(e)&&e.type===Gfe}function Kfe(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...s)=>{o(...s),i(...s)}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function Xfe(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Zfe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ot=Zfe.reduce((e,t)=>{const r=O.forwardRef((n,i)=>{const{asChild:o,...a}=n,s=o?Xu:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(s,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qfe(e,t){e&&_s.flushSync(()=>e.dispatchEvent(t))}var yw="Progress",gw=100,[Jfe,_ye]=Kp(yw),[ede,tde]=Jfe(yw),b6=O.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:o=rde,...a}=e;(i||i===0)&&!p_(i)&&console.error(nde(`${i}`,"Progress"));const s=p_(i)?i:gw;n!==null&&!m_(n,s)&&console.error(ide(`${n}`,"Progress"));const l=m_(n,s)?n:null,u=hh(l)?o(l,s):void 0;return P.jsx(ede,{scope:r,value:l,max:s,children:P.jsx(ot.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":hh(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":S6(l,s),"data-value":l??void 0,"data-max":s,...a,ref:t})})});b6.displayName=yw;var w6="ProgressIndicator",x6=O.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,i=tde(w6,r);return P.jsx(ot.div,{"data-state":S6(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})});x6.displayName=w6;function rde(e,t){return`${Math.round(e/t*100)}%`}function S6(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function hh(e){return typeof e=="number"}function p_(e){return hh(e)&&!isNaN(e)&&e>0}function m_(e,t){return hh(e)&&!isNaN(e)&&e<=t&&e>=0}function nde(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${gw}\`.`}function ide(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: +`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var u_={};function AM(e,t){X.deprecationHandler!=null&&X.deprecationHandler(e,t),u_[e]||(kM(t),u_[e]=!0)}X.suppressDeprecationWarnings=!1;X.deprecationHandler=null;function kn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Lse(e){var t,r;for(r in e)Ee(e,r)&&(t=e[r],kn(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function p0(e,t){var r=$i({},e),n;for(n in t)Ee(t,n)&&(Io(e[n])&&Io(t[n])?(r[n]={},$i(r[n],e[n]),$i(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)Ee(e,n)&&!Ee(t,n)&&Io(e[n])&&(r[n]=$i({},r[n]));return r}function Qb(e){e!=null&&this.set(e)}var m0;Object.keys?m0=Object.keys:m0=function(e){var t,r=[];for(t in e)Ee(e,t)&&r.push(t);return r};var zse={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Fse(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return kn(n)?n.call(t,r):n}function On(e,t,r){var n=""+Math.abs(e),i=t-n.length,o=e>=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var Jb=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,lf=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vv={},La={};function ne(e,t,r,n){var i=n;typeof n=="string"&&(i=function(){return this[n]()}),e&&(La[e]=i),t&&(La[t[0]]=function(){return On(i.apply(this,arguments),t[1],t[2])}),r&&(La[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Bse(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Wse(e){var t=e.match(Jb),r,n;for(r=0,n=t.length;r=0&&lf.test(e);)e=e.replace(lf,n),lf.lastIndex=0,r-=1;return e}var Hse={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Use(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Jb).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Yse="Invalid date";function Vse(){return this._invalidDate}var Gse="%d",qse=/\d{1,2}/;function Kse(e){return this._ordinal.replace("%d",e)}var Xse={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Zse(e,t,r,n){var i=this._relativeTime[r];return kn(i)?i(e,t,r,n):i.replace(/%d/i,e)}function Qse(e,t){var r=this._relativeTime[e>0?"future":"past"];return kn(r)?r(t):r.replace(/%s/i,t)}var c_={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Rr(e){return typeof e=="string"?c_[e]||c_[e.toLowerCase()]:void 0}function ew(e){var t={},r,n;for(n in e)Ee(e,n)&&(r=Rr(n),r&&(t[r]=e[n]));return t}var Jse={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ele(e){var t=[],r;for(r in e)Ee(e,r)&&t.push({unit:r,priority:Jse[r]});return t.sort(function(n,i){return n.priority-i.priority}),t}var MM=/\d/,gr=/\d\d/,jM=/\d{3}/,tw=/\d{4}/,zp=/[+-]?\d{6}/,Ge=/\d\d?/,$M=/\d\d\d\d?/,NM=/\d\d\d\d\d\d?/,Fp=/\d{1,3}/,rw=/\d{1,4}/,Bp=/[+-]?\d{1,6}/,Ws=/\d+/,Wp=/[+-]?\d+/,tle=/Z|[+-]\d\d:?\d\d/gi,Hp=/Z|[+-]\d\d(?::?\d\d)?/gi,rle=/[+-]?\d+(\.\d{1,3})?/,Oc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Hs=/^[1-9]\d?/,nw=/^([1-9]\d|\d)/,lh;lh={};function J(e,t,r){lh[e]=kn(t)?t:function(n,i){return n&&r?r:t}}function nle(e,t){return Ee(lh,e)?lh[e](t._strict,t._locale):new RegExp(ile(e))}function ile(e){return qn(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,i,o){return r||n||i||o}))}function qn(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ge(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Pr(t)),r}var v0={};function Ne(e,t){var r,n=t,i;for(typeof e=="string"&&(e=[e]),ii(t)&&(n=function(o,a){a[t]=ge(o)}),i=e.length,r=0;r68?1900:2e3)};var IM=Us("FullYear",!0);function lle(){return Up(this.year())}function Us(e,t){return function(r){return r!=null?(DM(this,e,r),X.updateOffset(this,t),this):Vu(this,e)}}function Vu(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function DM(e,t,r){var n,i,o,a,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(i?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(i?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(i?n.setUTCHours(r):n.setHours(r));case"Date":return void(i?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=r,a=e.month(),s=e.date(),s=s===29&&a===1&&!Up(o)?28:s,i?n.setUTCFullYear(o,a,s):n.setFullYear(o,a,s)}}function ule(e){return e=Rr(e),kn(this[e])?this[e]():this}function cle(e,t){if(typeof e=="object"){e=ew(e);var r=ele(e),n,i=r.length;for(n=0;n=0?(s=new Date(e+400,t,r,n,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,o,a),s}function Gu(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function uh(e,t,r){var n=7+t-r,i=(7+Gu(e,0,n).getUTCDay()-t)%7;return-i+n-1}function WM(e,t,r,n,i){var o=(7+r-n)%7,a=uh(e,n,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=Bl(l)+s):s>Bl(e)?(l=e+1,u=s-Bl(e)):(l=e,u=s),{year:l,dayOfYear:u}}function qu(e,t,r){var n=uh(e.year(),t,r),i=Math.floor((e.dayOfYear()-n-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+Kn(a,t,r)):i>Kn(e.year(),t,r)?(o=i-Kn(e.year(),t,r),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function Kn(e,t,r){var n=uh(e,t,r),i=uh(e+1,t,r);return(Bl(e)-n+i)/7}ne("w",["ww",2],"wo","week");ne("W",["WW",2],"Wo","isoWeek");J("w",Ge,Hs);J("ww",Ge,gr);J("W",Ge,Hs);J("WW",Ge,gr);_c(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ge(e)});function Ole(e){return qu(e,this._week.dow,this._week.doy).week}var _le={dow:0,doy:6};function Ple(){return this._week.dow}function Ele(){return this._week.doy}function Cle(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kle(e){var t=qu(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ne("d",0,"do","day");ne("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ne("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ne("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ne("e",0,0,"weekday");ne("E",0,0,"isoWeekday");J("d",Ge);J("e",Ge);J("E",Ge);J("dd",function(e,t){return t.weekdaysMinRegex(e)});J("ddd",function(e,t){return t.weekdaysShortRegex(e)});J("dddd",function(e,t){return t.weekdaysRegex(e)});_c(["dd","ddd","dddd"],function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);i!=null?t.d=i:fe(r).invalidWeekday=e});_c(["d","e","E"],function(e,t,r,n){t[n]=ge(e)});function Ale(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Tle(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ow(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Mle="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),HM="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jle="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$le=Oc,Nle=Oc,Ile=Oc;function Dle(e,t){var r=en(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ow(r,this._week.dow):e?r[e.day()]:r}function Rle(e){return e===!0?ow(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Lle(e){return e===!0?ow(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zle(e,t,r){var n,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=Cn([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(i=at.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=at.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=at.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=at.call(this._weekdaysParse,a),i!==-1||(i=at.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=at.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=at.call(this._shortWeekdaysParse,a),i!==-1||(i=at.call(this._weekdaysParse,a),i!==-1)?i:(i=at.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=at.call(this._minWeekdaysParse,a),i!==-1||(i=at.call(this._weekdaysParse,a),i!==-1)?i:(i=at.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Fle(e,t,r){var n,i,o;if(this._weekdaysParseExact)return zle.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=Cn([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Ble(e){if(!this.isValid())return e!=null?this:NaN;var t=Vu(this,"Day");return e!=null?(e=Ale(e,this.localeData()),this.add(e-t,"d")):t}function Wle(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Hle(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Tle(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ule(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||aw.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ee(this,"_weekdaysRegex")||(this._weekdaysRegex=$le),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yle(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||aw.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ee(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nle),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Vle(e){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||aw.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ee(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ile),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function aw(){function e(c,f){return f.length-c.length}var t=[],r=[],n=[],i=[],o,a,s,l,u;for(o=0;o<7;o++)a=Cn([2e3,1]).day(o),s=qn(this.weekdaysMin(a,"")),l=qn(this.weekdaysShort(a,"")),u=qn(this.weekdays(a,"")),t.push(s),r.push(l),n.push(u),i.push(s),i.push(l),i.push(u);t.sort(e),r.sort(e),n.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function sw(){return this.hours()%12||12}function Gle(){return this.hours()||24}ne("H",["HH",2],0,"hour");ne("h",["hh",2],0,sw);ne("k",["kk",2],0,Gle);ne("hmm",0,0,function(){return""+sw.apply(this)+On(this.minutes(),2)});ne("hmmss",0,0,function(){return""+sw.apply(this)+On(this.minutes(),2)+On(this.seconds(),2)});ne("Hmm",0,0,function(){return""+this.hours()+On(this.minutes(),2)});ne("Hmmss",0,0,function(){return""+this.hours()+On(this.minutes(),2)+On(this.seconds(),2)});function UM(e,t){ne(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}UM("a",!0);UM("A",!1);function YM(e,t){return t._meridiemParse}J("a",YM);J("A",YM);J("H",Ge,nw);J("h",Ge,Hs);J("k",Ge,Hs);J("HH",Ge,gr);J("hh",Ge,gr);J("kk",Ge,gr);J("hmm",$M);J("hmmss",NM);J("Hmm",$M);J("Hmmss",NM);Ne(["H","HH"],yt);Ne(["k","kk"],function(e,t,r){var n=ge(e);t[yt]=n===24?0:n});Ne(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ne(["h","hh"],function(e,t,r){t[yt]=ge(e),fe(r).bigHour=!0});Ne("hmm",function(e,t,r){var n=e.length-2;t[yt]=ge(e.substr(0,n)),t[Kr]=ge(e.substr(n)),fe(r).bigHour=!0});Ne("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[yt]=ge(e.substr(0,n)),t[Kr]=ge(e.substr(n,2)),t[Wn]=ge(e.substr(i)),fe(r).bigHour=!0});Ne("Hmm",function(e,t,r){var n=e.length-2;t[yt]=ge(e.substr(0,n)),t[Kr]=ge(e.substr(n))});Ne("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[yt]=ge(e.substr(0,n)),t[Kr]=ge(e.substr(n,2)),t[Wn]=ge(e.substr(i))});function qle(e){return(e+"").toLowerCase().charAt(0)==="p"}var Kle=/[ap]\.?m?\.?/i,Xle=Us("Hours",!0);function Zle(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var VM={calendar:zse,longDateFormat:Hse,invalidDate:Yse,ordinal:Gse,dayOfMonthOrdinalParse:qse,relativeTime:Xse,months:dle,monthsShort:RM,week:_le,weekdays:Mle,weekdaysMin:jle,weekdaysShort:HM,meridiemParse:Kle},qe={},ml={},Ku;function Qle(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(i=Yp(o.slice(0,r).join("-")),i)return i;if(n&&n.length>=r&&Qle(o,n)>=r-1)break;r--}t++}return Ku}function eue(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Yp(e){var t=null,r;if(qe[e]===void 0&&typeof Lf<"u"&&Lf&&Lf.exports&&eue(e))try{t=Ku._abbr,r=require,r("./locale/"+e),Vi(t)}catch{qe[e]=null}return qe[e]}function Vi(e,t){var r;return e&&(qt(t)?r=di(e):r=lw(e,t),r?Ku=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ku._abbr}function lw(e,t){if(t!==null){var r,n=VM;if(t.abbr=e,qe[e]!=null)AM("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=qe[e]._config;else if(t.parentLocale!=null)if(qe[t.parentLocale]!=null)n=qe[t.parentLocale]._config;else if(r=Yp(t.parentLocale),r!=null)n=r._config;else return ml[t.parentLocale]||(ml[t.parentLocale]=[]),ml[t.parentLocale].push({name:e,config:t}),null;return qe[e]=new Qb(p0(n,t)),ml[e]&&ml[e].forEach(function(i){lw(i.name,i.config)}),Vi(e),qe[e]}else return delete qe[e],null}function tue(e,t){if(t!=null){var r,n,i=VM;qe[e]!=null&&qe[e].parentLocale!=null?qe[e].set(p0(qe[e]._config,t)):(n=Yp(e),n!=null&&(i=n._config),t=p0(i,t),n==null&&(t.abbr=e),r=new Qb(t),r.parentLocale=qe[e],qe[e]=r),Vi(e)}else qe[e]!=null&&(qe[e].parentLocale!=null?(qe[e]=qe[e].parentLocale,e===Vi()&&Vi(e)):qe[e]!=null&&delete qe[e]);return qe[e]}function di(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ku;if(!en(e)){if(t=Yp(e),t)return t;e=[e]}return Jle(e)}function rue(){return m0(qe)}function uw(e){var t,r=e._a;return r&&fe(e).overflow===-2&&(t=r[Bn]<0||r[Bn]>11?Bn:r[pn]<1||r[pn]>iw(r[Lt],r[Bn])?pn:r[yt]<0||r[yt]>24||r[yt]===24&&(r[Kr]!==0||r[Wn]!==0||r[ko]!==0)?yt:r[Kr]<0||r[Kr]>59?Kr:r[Wn]<0||r[Wn]>59?Wn:r[ko]<0||r[ko]>999?ko:-1,fe(e)._overflowDayOfYear&&(tpn)&&(t=pn),fe(e)._overflowWeeks&&t===-1&&(t=ale),fe(e)._overflowWeekday&&t===-1&&(t=sle),fe(e).overflow=t),e}var nue=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,iue=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oue=/Z|[+-]\d\d(?::?\d\d)?/,uf=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yv=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aue=/^\/?Date\((-?\d+)/i,sue=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,lue={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function GM(e){var t,r,n=e._i,i=nue.exec(n)||iue.exec(n),o,a,s,l,u=uf.length,c=yv.length;if(i){for(fe(e).iso=!0,t=0,r=u;tBl(a)||e._dayOfYear===0)&&(fe(e)._overflowDayOfYear=!0),r=Gu(a,0,e._dayOfYear),e._a[Bn]=r.getUTCMonth(),e._a[pn]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=i[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[yt]===24&&e._a[Kr]===0&&e._a[Wn]===0&&e._a[ko]===0&&(e._nextDay=!0,e._a[yt]=0),e._d=(e._useUTC?Gu:Sle).apply(null,n),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(fe(e).weekdayMismatch=!0)}}function vue(e){var t,r,n,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,r=ha(t.GG,e._a[Lt],qu(Ve(),1,4).year),n=ha(t.W,1),i=ha(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=qu(Ve(),o,a),r=ha(t.gg,e._a[Lt],u.year),n=ha(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),n<1||n>Kn(r,o,a)?fe(e)._overflowWeeks=!0:l!=null?fe(e)._overflowWeekday=!0:(s=WM(r,n,i,o,a),e._a[Lt]=s.year,e._dayOfYear=s.dayOfYear)}X.ISO_8601=function(){};X.RFC_2822=function(){};function fw(e){if(e._f===X.ISO_8601){GM(e);return}if(e._f===X.RFC_2822){qM(e);return}e._a=[],fe(e).empty=!0;var t=""+e._i,r,n,i,o,a,s=t.length,l=0,u,c;for(i=TM(e._f,e._locale).match(Jb)||[],c=i.length,r=0;r0&&fe(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),l+=n.length),La[o]?(n?fe(e).empty=!1:fe(e).unusedTokens.push(o),ole(o,n,e)):e._strict&&!n&&fe(e).unusedTokens.push(o);fe(e).charsLeftOver=s-l,t.length>0&&fe(e).unusedInput.push(t),e._a[yt]<=12&&fe(e).bigHour===!0&&e._a[yt]>0&&(fe(e).bigHour=void 0),fe(e).parsedDateParts=e._a.slice(0),fe(e).meridiem=e._meridiem,e._a[yt]=yue(e._locale,e._a[yt],e._meridiem),u=fe(e).era,u!==null&&(e._a[Lt]=e._locale.erasConvertYear(u,e._a[Lt])),cw(e),uw(e)}function yue(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function gue(e){var t,r,n,i,o,a,s=!1,l=e._f.length;if(l===0){fe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:Lp()});function ZM(e,t){var r,n;if(t.length===1&&en(t[0])&&(t=t[0]),!t.length)return Ve();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zue(){if(!qt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Zb(e,this),e=KM(e),e._a?(t=e._isUTC?Cn(e._a):Ve(e._a),this._isDSTShifted=this.isValid()&&Tue(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Fue(){return this.isValid()?!this._isUTC:!1}function Bue(){return this.isValid()?this._isUTC:!1}function JM(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Wue=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hue=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function sn(e,t){var r=e,n=null,i,o,a;return jf(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ii(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Wue.exec(e))?(i=n[1]==="-"?-1:1,r={y:0,d:ge(n[pn])*i,h:ge(n[yt])*i,m:ge(n[Kr])*i,s:ge(n[Wn])*i,ms:ge(y0(n[ko]*1e3))*i}):(n=Hue.exec(e))?(i=n[1]==="-"?-1:1,r={y:ho(n[2],i),M:ho(n[3],i),w:ho(n[4],i),d:ho(n[5],i),h:ho(n[6],i),m:ho(n[7],i),s:ho(n[8],i)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=Uue(Ve(r.from),Ve(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),o=new Vp(r),jf(e)&&Ee(e,"_locale")&&(o._locale=e._locale),jf(e)&&Ee(e,"_isValid")&&(o._isValid=e._isValid),o}sn.fn=Vp.prototype;sn.invalid=Aue;function ho(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function d_(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Uue(e,t){var r;return e.isValid()&&t.isValid()?(t=hw(t,e),e.isBefore(t)?r=d_(e,t):(r=d_(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function e6(e,t){return function(r,n){var i,o;return n!==null&&!isNaN(+n)&&(AM(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),i=sn(r,n),t6(this,i,e),this}}function t6(e,t,r,n){var i=t._milliseconds,o=y0(t._days),a=y0(t._months);e.isValid()&&(n=n??!0,a&&zM(e,Vu(e,"Month")+a*r),o&&DM(e,"Date",Vu(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&X.updateOffset(e,o||a))}var Yue=e6(1,"add"),Vue=e6(-1,"subtract");function r6(e){return typeof e=="string"||e instanceof String}function Gue(e){return tn(e)||xc(e)||r6(e)||ii(e)||Kue(e)||que(e)||e===null||e===void 0}function que(e){var t=Io(e)&&!Kb(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=n.length;for(i=0;ir.valueOf():r.valueOf()9999?Mf(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):kn(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Mf(r,"Z")):Mf(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function uce(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+n+i+o)}function cce(e){e||(e=this.isUtc()?X.defaultFormatUtc:X.defaultFormat);var t=Mf(this,e);return this.localeData().postformat(t)}function fce(e,t){return this.isValid()&&(tn(e)&&e.isValid()||Ve(e).isValid())?sn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dce(e){return this.from(Ve(),e)}function hce(e,t){return this.isValid()&&(tn(e)&&e.isValid()||Ve(e).isValid())?sn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pce(e){return this.to(Ve(),e)}function n6(e){var t;return e===void 0?this._locale._abbr:(t=di(e),t!=null&&(this._locale=t),this)}var i6=Dr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function o6(){return this._locale}var ch=1e3,za=60*ch,fh=60*za,a6=(365*400+97)*24*fh;function Fa(e,t){return(e%t+t)%t}function s6(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-a6:new Date(e,t,r).valueOf()}function l6(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-a6:Date.UTC(e,t,r)}function mce(e){var t,r;if(e=Rr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?l6:s6,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Fa(t+(this._isUTC?0:this.utcOffset()*za),fh);break;case"minute":t=this._d.valueOf(),t-=Fa(t,za);break;case"second":t=this._d.valueOf(),t-=Fa(t,ch);break}return this._d.setTime(t),X.updateOffset(this,!0),this}function vce(e){var t,r;if(e=Rr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?l6:s6,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fh-Fa(t+(this._isUTC?0:this.utcOffset()*za),fh)-1;break;case"minute":t=this._d.valueOf(),t+=za-Fa(t,za)-1;break;case"second":t=this._d.valueOf(),t+=ch-Fa(t,ch)-1;break}return this._d.setTime(t),X.updateOffset(this,!0),this}function yce(){return this._d.valueOf()-(this._offset||0)*6e4}function gce(){return Math.floor(this.valueOf()/1e3)}function bce(){return new Date(this.valueOf())}function wce(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xce(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Sce(){return this.isValid()?this.toISOString():null}function Oce(){return Xb(this)}function _ce(){return $i({},fe(this))}function Pce(){return fe(this).overflow}function Ece(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ne("N",0,0,"eraAbbr");ne("NN",0,0,"eraAbbr");ne("NNN",0,0,"eraAbbr");ne("NNNN",0,0,"eraName");ne("NNNNN",0,0,"eraNarrow");ne("y",["y",1],"yo","eraYear");ne("y",["yy",2],0,"eraYear");ne("y",["yyy",3],0,"eraYear");ne("y",["yyyy",4],0,"eraYear");J("N",pw);J("NN",pw);J("NNN",pw);J("NNNN",Rce);J("NNNNN",Lce);Ne(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?fe(r).era=i:fe(r).invalidEra=e});J("y",Ws);J("yy",Ws);J("yyy",Ws);J("yyyy",Ws);J("yo",zce);Ne(["y","yy","yyy","yyyy"],Lt);Ne(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Lt]=r._locale.eraYearOrdinalParse(e,i):t[Lt]=parseInt(e,10)});function Cce(e,t){var r,n,i,o=this._eras||di("en")._eras;for(r=0,n=o.length;r=0)return o[n]}function Ace(e,t){var r=e.since<=e.until?1:-1;return t===void 0?X(e.since).year():X(e.since).year()+(t-e.offset)*r}function Tce(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;eo&&(t=o),Vce.call(this,e,t,r,n,i))}function Vce(e,t,r,n,i){var o=WM(e,t,r,n,i),a=Gu(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}ne("Q",0,"Qo","quarter");J("Q",MM);Ne("Q",function(e,t){t[Bn]=(ge(e)-1)*3});function Gce(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ne("D",["DD",2],"Do","date");J("D",Ge,Hs);J("DD",Ge,gr);J("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ne(["D","DD"],pn);Ne("Do",function(e,t){t[pn]=ge(e.match(Ge)[0])});var c6=Us("Date",!0);ne("DDD",["DDDD",3],"DDDo","dayOfYear");J("DDD",Fp);J("DDDD",jM);Ne(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ge(e)});function qce(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ne("m",["mm",2],0,"minute");J("m",Ge,nw);J("mm",Ge,gr);Ne(["m","mm"],Kr);var Kce=Us("Minutes",!1);ne("s",["ss",2],0,"second");J("s",Ge,nw);J("ss",Ge,gr);Ne(["s","ss"],Wn);var Xce=Us("Seconds",!1);ne("S",0,0,function(){return~~(this.millisecond()/100)});ne(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ne(0,["SSS",3],0,"millisecond");ne(0,["SSSS",4],0,function(){return this.millisecond()*10});ne(0,["SSSSS",5],0,function(){return this.millisecond()*100});ne(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ne(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ne(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ne(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});J("S",Fp,MM);J("SS",Fp,gr);J("SSS",Fp,jM);var Ni,f6;for(Ni="SSSS";Ni.length<=9;Ni+="S")J(Ni,Ws);function Zce(e,t){t[ko]=ge(("0."+e)*1e3)}for(Ni="S";Ni.length<=9;Ni+="S")Ne(Ni,Zce);f6=Us("Milliseconds",!1);ne("z",0,0,"zoneAbbr");ne("zz",0,0,"zoneName");function Qce(){return this._isUTC?"UTC":""}function Jce(){return this._isUTC?"Coordinated Universal Time":""}var U=Sc.prototype;U.add=Yue;U.calendar=Que;U.clone=Jue;U.diff=ace;U.endOf=vce;U.format=cce;U.from=fce;U.fromNow=dce;U.to=hce;U.toNow=pce;U.get=ule;U.invalidAt=Pce;U.isAfter=ece;U.isBefore=tce;U.isBetween=rce;U.isSame=nce;U.isSameOrAfter=ice;U.isSameOrBefore=oce;U.isValid=Oce;U.lang=i6;U.locale=n6;U.localeData=o6;U.max=Oue;U.min=Sue;U.parsingFlags=_ce;U.set=cle;U.startOf=mce;U.subtract=Vue;U.toArray=wce;U.toObject=xce;U.toDate=bce;U.toISOString=lce;U.inspect=uce;typeof Symbol<"u"&&Symbol.for!=null&&(U[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});U.toJSON=Sce;U.toString=sce;U.unix=gce;U.valueOf=yce;U.creationData=Ece;U.eraName=Tce;U.eraNarrow=Mce;U.eraAbbr=jce;U.eraYear=$ce;U.year=IM;U.isLeapYear=lle;U.weekYear=Fce;U.isoWeekYear=Bce;U.quarter=U.quarters=Gce;U.month=FM;U.daysInMonth=ble;U.week=U.weeks=Cle;U.isoWeek=U.isoWeeks=kle;U.weeksInYear=Uce;U.weeksInWeekYear=Yce;U.isoWeeksInYear=Wce;U.isoWeeksInISOWeekYear=Hce;U.date=c6;U.day=U.days=Ble;U.weekday=Wle;U.isoWeekday=Hle;U.dayOfYear=qce;U.hour=U.hours=Xle;U.minute=U.minutes=Kce;U.second=U.seconds=Xce;U.millisecond=U.milliseconds=f6;U.utcOffset=jue;U.utc=Nue;U.local=Iue;U.parseZone=Due;U.hasAlignedHourOffset=Rue;U.isDST=Lue;U.isLocal=Fue;U.isUtcOffset=Bue;U.isUtc=JM;U.isUTC=JM;U.zoneAbbr=Qce;U.zoneName=Jce;U.dates=Dr("dates accessor is deprecated. Use date instead.",c6);U.months=Dr("months accessor is deprecated. Use month instead",FM);U.years=Dr("years accessor is deprecated. Use year instead",IM);U.zone=Dr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$ue);U.isDSTShifted=Dr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zue);function efe(e){return Ve(e*1e3)}function tfe(){return Ve.apply(null,arguments).parseZone()}function d6(e){return e}var ke=Qb.prototype;ke.calendar=Fse;ke.longDateFormat=Use;ke.invalidDate=Vse;ke.ordinal=Kse;ke.preparse=d6;ke.postformat=d6;ke.relativeTime=Zse;ke.pastFuture=Qse;ke.set=Lse;ke.eras=Cce;ke.erasParse=kce;ke.erasConvertYear=Ace;ke.erasAbbrRegex=Ice;ke.erasNameRegex=Nce;ke.erasNarrowRegex=Dce;ke.months=mle;ke.monthsShort=vle;ke.monthsParse=gle;ke.monthsRegex=xle;ke.monthsShortRegex=wle;ke.week=Ole;ke.firstDayOfYear=Ele;ke.firstDayOfWeek=Ple;ke.weekdays=Dle;ke.weekdaysMin=Lle;ke.weekdaysShort=Rle;ke.weekdaysParse=Fle;ke.weekdaysRegex=Ule;ke.weekdaysShortRegex=Yle;ke.weekdaysMinRegex=Vle;ke.isPM=qle;ke.meridiem=Zle;function dh(e,t,r,n){var i=di(),o=Cn().set(n,t);return i[r](o,e)}function h6(e,t,r){if(ii(e)&&(t=e,e=void 0),e=e||"",t!=null)return dh(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=dh(e,n,r,"month");return i}function vw(e,t,r,n){typeof e=="boolean"?(ii(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ii(t)&&(r=t,t=void 0),t=t||"");var i=di(),o=e?i._week.dow:0,a,s=[];if(r!=null)return dh(t,(r+o)%7,n,"day");for(a=0;a<7;a++)s[a]=dh(t,(a+o)%7,n,"day");return s}function rfe(e,t){return h6(e,t,"months")}function nfe(e,t){return h6(e,t,"monthsShort")}function ife(e,t,r){return vw(e,t,r,"weekdays")}function ofe(e,t,r){return vw(e,t,r,"weekdaysShort")}function afe(e,t,r){return vw(e,t,r,"weekdaysMin")}Vi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=ge(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});X.lang=Dr("moment.lang is deprecated. Use moment.locale instead.",Vi);X.langData=Dr("moment.langData is deprecated. Use moment.localeData instead.",di);var Mn=Math.abs;function sfe(){var e=this._data;return this._milliseconds=Mn(this._milliseconds),this._days=Mn(this._days),this._months=Mn(this._months),e.milliseconds=Mn(e.milliseconds),e.seconds=Mn(e.seconds),e.minutes=Mn(e.minutes),e.hours=Mn(e.hours),e.months=Mn(e.months),e.years=Mn(e.years),this}function p6(e,t,r,n){var i=sn(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function lfe(e,t){return p6(this,e,t,1)}function ufe(e,t){return p6(this,e,t,-1)}function h_(e){return e<0?Math.floor(e):Math.ceil(e)}function cfe(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,i,o,a,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=h_(b0(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,i=Pr(e/1e3),n.seconds=i%60,o=Pr(i/60),n.minutes=o%60,a=Pr(o/60),n.hours=a%24,t+=Pr(a/24),l=Pr(m6(t)),r+=l,t-=h_(b0(l)),s=Pr(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function m6(e){return e*4800/146097}function b0(e){return e*146097/4800}function ffe(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=Rr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+m6(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(b0(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function hi(e){return function(){return this.as(e)}}var v6=hi("ms"),dfe=hi("s"),hfe=hi("m"),pfe=hi("h"),mfe=hi("d"),vfe=hi("w"),yfe=hi("M"),gfe=hi("Q"),bfe=hi("y"),wfe=v6;function xfe(){return sn(this)}function Sfe(e){return e=Rr(e),this.isValid()?this[e+"s"]():NaN}function ra(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ofe=ra("milliseconds"),_fe=ra("seconds"),Pfe=ra("minutes"),Efe=ra("hours"),Cfe=ra("days"),kfe=ra("months"),Afe=ra("years");function Tfe(){return Pr(this.days()/7)}var $n=Math.round,ka={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mfe(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function jfe(e,t,r,n){var i=sn(e).abs(),o=$n(i.as("s")),a=$n(i.as("m")),s=$n(i.as("h")),l=$n(i.as("d")),u=$n(i.as("M")),c=$n(i.as("w")),f=$n(i.as("y")),d=o<=r.ss&&["s",o]||o0,d[4]=n,Mfe.apply(null,d)}function $fe(e){return e===void 0?$n:typeof e=="function"?($n=e,!0):!1}function Nfe(e,t){return ka[e]===void 0?!1:t===void 0?ka[e]:(ka[e]=t,e==="s"&&(ka.ss=t-1),!0)}function Ife(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=ka,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},ka,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),i=this.localeData(),o=jfe(this,!r,n,i),r&&(o=i.pastFuture(+this,o)),i.postformat(o)}var gv=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function qp(){if(!this.isValid())return this.localeData().invalidDate();var e=gv(this._milliseconds)/1e3,t=gv(this._days),r=gv(this._months),n,i,o,a,s=this.asSeconds(),l,u,c,f;return s?(n=Pr(e/60),i=Pr(n/60),e%=60,n%=60,o=Pr(r/12),r%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=ua(this._months)!==ua(s)?"-":"",c=ua(this._days)!==ua(s)?"-":"",f=ua(this._milliseconds)!==ua(s)?"-":"",l+"P"+(o?u+o+"Y":"")+(r?u+r+"M":"")+(t?c+t+"D":"")+(i||n||e?"T":"")+(i?f+i+"H":"")+(n?f+n+"M":"")+(e?f+a+"S":"")):"P0D"}var Oe=Vp.prototype;Oe.isValid=kue;Oe.abs=sfe;Oe.add=lfe;Oe.subtract=ufe;Oe.as=ffe;Oe.asMilliseconds=v6;Oe.asSeconds=dfe;Oe.asMinutes=hfe;Oe.asHours=pfe;Oe.asDays=mfe;Oe.asWeeks=vfe;Oe.asMonths=yfe;Oe.asQuarters=gfe;Oe.asYears=bfe;Oe.valueOf=wfe;Oe._bubble=cfe;Oe.clone=xfe;Oe.get=Sfe;Oe.milliseconds=Ofe;Oe.seconds=_fe;Oe.minutes=Pfe;Oe.hours=Efe;Oe.days=Cfe;Oe.weeks=Tfe;Oe.months=kfe;Oe.years=Afe;Oe.humanize=Ife;Oe.toISOString=qp;Oe.toString=qp;Oe.toJSON=qp;Oe.locale=n6;Oe.localeData=o6;Oe.toIsoString=Dr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qp);Oe.lang=i6;ne("X",0,0,"unix");ne("x",0,0,"valueOf");J("x",Wp);J("X",rle);Ne("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ne("x",function(e,t,r){r._d=new Date(ge(e))});//! moment.js +X.version="2.30.1";Dse(Ve);X.fn=U;X.min=_ue;X.max=Pue;X.now=Eue;X.utc=Cn;X.unix=efe;X.months=rfe;X.isDate=xc;X.locale=Vi;X.invalid=Lp;X.duration=sn;X.isMoment=tn;X.weekdays=ife;X.parseZone=tfe;X.localeData=di;X.isDuration=jf;X.monthsShort=nfe;X.weekdaysMin=afe;X.defineLocale=lw;X.updateLocale=tue;X.locales=rue;X.weekdaysShort=ofe;X.normalizeUnits=Rr;X.relativeTimeRounding=$fe;X.relativeTimeThreshold=Nfe;X.calendarFormat=Zue;X.prototype=U;X.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Dfe={avg:{label:"Average"},min:{label:"Minimum"},max:{label:"Maximum"}},Rfe=({forecast:e})=>P.jsx(P.Fragment,{children:Object.entries((e==null?void 0:e.daily)||{}).map(([t,r])=>P.jsxs("div",{className:"rounded-xl w-full p-10 my-5 shadow-lg bg-base-200",children:[P.jsxs("div",{className:"text-2xl font-semibold mb-5 border-s-4 p-2 text-green-500 border-green-500",children:[(t==="pm25"?"pm2.5":t).toUpperCase()," Forecast"]}),P.jsx(OM,{config:Dfe,className:"min-h-[200px] w-full",children:P.jsxs(Zae,{accessibilityLayer:!0,data:r,children:[P.jsx(oM,{vertical:!1}),P.jsx(Ip,{dataKey:"day",tickMargin:10,tickFormatter:n=>X(n).calendar({sameDay:"[Today]",nextDay:"[Tomorrow]",nextWeek:"ddd, DD",lastDay:"[Yesterday]",lastWeek:"[Last] dddd",sameElse:"DD/MM/YYYY"})}),P.jsx(Dp,{domain:["dataMin","dataMax + 2"],tickCount:10}),P.jsx(No,{dataKey:"min",stroke:"#ff0",type:"monotone"}),P.jsx(No,{dataKey:"avg",stroke:"#f0f",type:"monotone"}),P.jsx(No,{dataKey:"max",stroke:"#0ff",type:"monotone"}),P.jsx(Nse,{content:P.jsx(_M,{})}),P.jsx(Ise,{content:P.jsx(PM,{})})]})})]},t))});function Lfe({attribution:e,time:t}){return P.jsx(P.Fragment,{children:P.jsxs("div",{className:"flex justify-between p-5 w-full text-neutral",children:[P.jsxs("div",{children:[P.jsx("p",{children:"Sources"}),e.map((r,n)=>P.jsx("li",{children:P.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"text-sm hover:underline hover:text-gray-300 duration-300",children:r.name})},n))]}),P.jsxs("p",{className:"text-xs text-green-500 my-auto",children:["Last Updated: ",X(t.s).fromNow()]})]})})}function Kp(e,t=[]){let r=[];function n(o,a){const s=O.createContext(a),l=r.length;r=[...r,a];function u(f){const{scope:d,children:h,...v}=f,p=(d==null?void 0:d[e][l])||s,g=O.useMemo(()=>v,Object.values(v));return P.jsx(p.Provider,{value:g,children:h})}function c(f,d){const h=(d==null?void 0:d[e][l])||s,v=O.useContext(h);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=r.map(a=>O.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return O.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,zfe(i,...t)]}function zfe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=n.reduce((s,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...s,...f}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Ffe(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function y6(...e){return t=>e.forEach(r=>Ffe(r,t))}function Mt(...e){return O.useCallback(y6(...e),e)}var Xu=O.forwardRef((e,t)=>{const{children:r,...n}=e,i=O.Children.toArray(r),o=i.find(Wfe);if(o){const a=o.props.children,s=i.map(l=>l===o?O.Children.count(a)>1?O.Children.only(null):O.isValidElement(a)?a.props.children:null:l);return P.jsx(w0,{...n,ref:t,children:O.isValidElement(a)?O.cloneElement(a,void 0,s):null})}return P.jsx(w0,{...n,ref:t,children:r})});Xu.displayName="Slot";var w0=O.forwardRef((e,t)=>{const{children:r,...n}=e;if(O.isValidElement(r)){const i=Ufe(r);return O.cloneElement(r,{...Hfe(n,r.props),ref:t?y6(t,i):i})}return O.Children.count(r)>1?O.Children.only(null):null});w0.displayName="SlotClone";var Bfe=({children:e})=>P.jsx(P.Fragment,{children:e});function Wfe(e){return O.isValidElement(e)&&e.type===Bfe}function Hfe(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...s)=>{o(...s),i(...s)}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function Ufe(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Yfe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ot=Yfe.reduce((e,t)=>{const r=O.forwardRef((n,i)=>{const{asChild:o,...a}=n,s=o?Xu:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(s,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vfe(e,t){e&&_s.flushSync(()=>e.dispatchEvent(t))}var yw="Progress",gw=100,[Gfe,_ye]=Kp(yw),[qfe,Kfe]=Gfe(yw),g6=O.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:i,getValueLabel:o=Xfe,...a}=e;(i||i===0)&&!p_(i)&&console.error(Zfe(`${i}`,"Progress"));const s=p_(i)?i:gw;n!==null&&!m_(n,s)&&console.error(Qfe(`${n}`,"Progress"));const l=m_(n,s)?n:null,u=hh(l)?o(l,s):void 0;return P.jsx(qfe,{scope:r,value:l,max:s,children:P.jsx(ot.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":hh(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":x6(l,s),"data-value":l??void 0,"data-max":s,...a,ref:t})})});g6.displayName=yw;var b6="ProgressIndicator",w6=O.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,i=Kfe(b6,r);return P.jsx(ot.div,{"data-state":x6(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:t})});w6.displayName=b6;function Xfe(e,t){return`${Math.round(e/t*100)}%`}function x6(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function hh(e){return typeof e=="number"}function p_(e){return hh(e)&&!isNaN(e)&&e>0}function m_(e,t){return hh(e)&&!isNaN(e)&&e<=t&&e>=0}function Zfe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${gw}\`.`}function Qfe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${gw} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. -Defaulting to \`null\`.`}var O6=b6,ode=x6;const v_=(e=0,t)=>e*100/t,ade=e=>e<25?"green":e<50?"yellow":e<75?"orange":"red",_l=O.forwardRef(({className:e,value:t,max:r,...n},i)=>P.jsx(O6,{ref:i,className:Le("relative h-2 w-full overflow-hidden rounded-full",e),...n,children:P.jsx(ode,{className:Le("h-full w-full flex-1 transition-all",`bg-${ade(v_(t,r))}-500`),style:{transform:`translateX(-${100-v_(t,r)}%)`}})}));_l.displayName=O6.displayName;const _6="bc0d99aee63d3596ec446c4536d94e1f8ec3bd7e",sde=async e=>it.get(`https://api.waqi.info/feed/${e}/?token=${_6}`).then(t=>{let r=t.data;return r.status==="error"?Promise.reject(r.message):Promise.resolve(r.data)}).catch(t=>{var r;return Promise.reject(((r=t==null?void 0:t.response)==null?void 0:r.message)||"Network Error")});let bv,yl;function lde(){var m,b,w,x,S,_,E,A,C,T;const[e,t]=O.useState(""),[r,n]=O.useState(null),[i,o]=O.useState(""),[a,s]=O.useState(!1),[l,u]=O.useState(null),[c,f]=O.useState(!1),d=k=>{t(k.target.value),u(null);let j=k.target.value;if(bv&&(clearTimeout(bv),yl==null||yl.abort()),!j.length){s(!1);return}bv=setTimeout(()=>{yl=new AbortController,s(!0),it.get(`https://api.waqi.info/search/?keyword=${j}&token=${_6}`,{signal:yl.signal}).then(M=>{M.data.status==="ok"&&u(M.data.data)}).catch(console.log)},300)},h=async k=>{n(null),f(!0);try{const j=await sde(k);n(j),o("")}catch(j){o(j||"Failed to fetch AQI data. Please try again."),n(null)}finally{f(!1)}},v=O.useRef(null),p=O.useRef(null),g=k=>{!p.current||!v.current||!p.current.contains(k.target)&&!v.current.contains(k.target)&&s(!1)},y=k=>{s(!1),h(`@${k}`),t(""),u(null)};return O.useEffect(()=>(window.addEventListener("click",g),()=>window.removeEventListener("click",g)),[]),O.useEffect(()=>{h("here")},[]),P.jsx(P.Fragment,{children:P.jsxs("div",{className:"min-h-dvh text-gray-200 items-center flex flex-col w-full md:w-11/12 lg:w-3/4 my-10 md:mx-auto",children:[P.jsxs("label",{ref:v,className:"input relative max-w-96 input-bordered input-primary flex items-center gap-2 w-full bg-base-200 rounded-box",onFocus:()=>{!a&&l!==null&&s(!0)},children:[P.jsx("input",{type:"text",className:"grow",placeholder:"Search city or station",value:e,onChange:d}),P.jsx("button",{className:"btn btn-sm btn-ghost btn-circle",children:P.jsx(wD,{size:16})}),P.jsxs("div",{ref:p,className:`duration-300 absolute top-12 left-0 flex flex-col px-1 bg-base-200 shadow-neutral-800 rounded-lg mt-1 shadow-xl w-full max-w-96 ${a?"h-48 py-3":"h-0 py-0"} overflow-y-auto`,children:[a&&!l&&P.jsx("div",{className:"m-auto loading loading-ring loading-lg"}),l&&!!l.length&&l.map(k=>{var j;return P.jsxs("button",{className:"btn btn-ghost w-full justify-between items-center text-left py-1",onClick:()=>y(k.uid),children:[P.jsx("span",{className:"w-10/12",children:k.station.name}),k.aqi!=="-"&&P.jsx("span",{style:{color:(j=co(parseInt(k.aqi)))==null?void 0:j.color},className:"text-xs",children:k.aqi})]},k.uid)}),l&&!l.length&&P.jsxs("div",{className:"text-neutral-400 m-auto flex flex-col items-center",children:[P.jsx(xD,{size:48}),P.jsx("span",{children:"No Results"})]})]})]}),c&&P.jsx("div",{className:"loading loading-dots loading-lg text-neutral my-10"}),r&&P.jsxs("div",{className:"rounded-xl w-full p-10 pb-0 my-10 shadow-lg bg-base-200",children:[P.jsx("div",{className:"text-3xl text-center text-primary font-bold",children:r.city.name}),P.jsxs("div",{className:"flex flex-wrap",children:[P.jsxs("div",{className:"flex flex-col p-5 my-10 w-3/5 duration-300",children:[P.jsx("p",{className:"text-2xl font-bold border-s-4 p-2 text-blue-400 border-blue-400",children:"Air Conditions"}),P.jsxs("div",{className:"flex items-end px-2 py-3",children:[P.jsx("img",{src:G5,alt:"temperature",className:"w-12 h-12"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((m=r.iaqi.t)==null?void 0:m.v).toFixed(2)," °C"]}),P.jsx("div",{className:"m-3"}),P.jsx("img",{src:V5,alt:"wind",className:"w-12 h-12"}),P.jsxs("p",{className:"p-2 text-xl text-neutral font-semibold",children:[parseFloat((b=r.iaqi.w)==null?void 0:b.v).toFixed(2)," m/s"]})]}),P.jsx("p",{className:"text-2xl mt-5 font-bold border-s-4 p-2 text-amber-400 border-amber-400",children:"Pollutants"}),P.jsxs("div",{className:"flex flex-col px-2 py-3 flex-wrap",children:[((w=r.iaqi.pm25)==null?void 0:w.v)&&P.jsxs("div",{className:"flex items-center gap-5",children:[P.jsx("img",{src:q5,alt:"pm25",className:"w-12 h-12"}),P.jsx(_l,{value:Math.min(250,r.iaqi.pm25.v),max:250,className:"bg-neutral-700 w-48"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((x=r.iaqi.pm25)==null?void 0:x.v).toFixed(2)," µg/m³"]})]}),((S=r.iaqi.pm10)==null?void 0:S.v)&&P.jsxs("div",{className:"flex items-center gap-5",children:[P.jsx("img",{src:K5,alt:"pm10",className:"w-12 h-12"}),P.jsx(_l,{value:Math.min(250,r.iaqi.pm10.v),max:250,className:"bg-neutral-700 w-48"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((_=r.iaqi.pm10)==null?void 0:_.v).toFixed(2)," µg/m³"]})]}),((E=r.iaqi.co)==null?void 0:E.v)&&P.jsxs("div",{className:"flex items-center gap-5",children:[P.jsx("img",{src:Z5,alt:"monoxide",className:"w-12 h-12"}),P.jsx(_l,{value:r.iaqi.co.v,max:50,className:"bg-neutral-700 w-48"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((A=r.iaqi.co)==null?void 0:A.v).toFixed(2)," ppm"]})]}),((C=r.iaqi.o3)==null?void 0:C.v)&&P.jsxs("div",{className:"flex items-center gap-5",children:[P.jsx("img",{src:X5,alt:"ozone",className:"w-12 h-12"}),P.jsx(_l,{value:r.iaqi.o3.v,max:150,className:"bg-neutral-700 w-48"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((T=r.iaqi.o3)==null?void 0:T.v).toFixed(2)," ppb"]})]})]})]}),P.jsxs("div",{className:`flex flex-col py-10 px-5 rounded-3xl items-center border-2 border-${co(r.aqi).bg}-500 duration-300 my-auto lg:w-2/5`,children:[P.jsx("div",{className:"w-32 h-32 mb-10 mx-auto duration-300",children:P.jsx(U5,{value:r.aqi,maxValue:500,text:`${r.aqi}`,styles:Y5({textColor:co(r.aqi).color,pathColor:co(r.aqi).color,trailColor:"#555"})})}),P.jsxs("div",{className:"w-full max-w-[400px] text-center duration-300",children:[P.jsx("p",{className:`font-bold text-2xl text-${co(r.aqi).bg}-500 duration-300`,children:co(r.aqi).condition}),P.jsx("div",{children:co(r.aqi).message})]})]})]})]}),r&&P.jsx(Hfe,{forecast:r==null?void 0:r.forecast}),r&&P.jsx(Ufe,{attribution:r==null?void 0:r.attributions,time:r==null?void 0:r.time}),P.jsx("div",{className:" p-4 md:p-6 lg:p-8 ",children:i&&P.jsx("div",{className:"text-red-500 text-center mb-4",children:i})})]})})}function Xp(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var ude=["color"],cde=O.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xp(e,ude);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),O.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),fde=["color"],dde=O.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xp(e,fde);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),O.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),hde=["color"],pde=O.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xp(e,hde);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),O.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),mde=["color"],vde=O.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xp(e,mde);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),O.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});function y_(e,[t,r]){return Math.min(r,Math.max(t,e))}function St(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function yde(e){const t=e+"CollectionProvider",[r,n]=Kp(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:v,children:p}=h,g=$.useRef(null),y=$.useRef(new Map).current;return P.jsx(i,{scope:v,itemMap:y,collectionRef:g,children:p})};a.displayName=t;const s=e+"CollectionSlot",l=$.forwardRef((h,v)=>{const{scope:p,children:g}=h,y=o(s,p),m=Mt(v,y.collectionRef);return P.jsx(Xu,{ref:m,children:g})});l.displayName=s;const u=e+"CollectionItemSlot",c="data-radix-collection-item",f=$.forwardRef((h,v)=>{const{scope:p,children:g,...y}=h,m=$.useRef(null),b=Mt(v,m),w=o(u,p);return $.useEffect(()=>(w.itemMap.set(m,{ref:m,...y}),()=>void w.itemMap.delete(m))),P.jsx(Xu,{[c]:"",ref:b,children:g})});f.displayName=u;function d(h){const v=o(e+"CollectionConsumer",h);return $.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${c}]`));return Array.from(v.itemMap.values()).sort((w,x)=>y.indexOf(w.ref.current)-y.indexOf(x.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},d,n]}var gde=O.createContext(void 0);function bde(e){const t=O.useContext(gde);return e||t||"ltr"}function oi(e){const t=O.useRef(e);return O.useEffect(()=>{t.current=e}),O.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function wde(e,t=globalThis==null?void 0:globalThis.document){const r=oi(e);O.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var xde="DismissableLayer",x0="dismissableLayer.update",Sde="dismissableLayer.pointerDownOutside",Ode="dismissableLayer.focusOutside",g_,P6=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E6=O.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...l}=e,u=O.useContext(P6),[c,f]=O.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=O.useState({}),v=Mt(t,_=>f(_)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),m=c?p.indexOf(c):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,w=m>=y,x=Ede(_=>{const E=_.target,A=[...u.branches].some(C=>C.contains(E));!w||A||(i==null||i(_),a==null||a(_),_.defaultPrevented||s==null||s())},d),S=Cde(_=>{const E=_.target;[...u.branches].some(C=>C.contains(E))||(o==null||o(_),a==null||a(_),_.defaultPrevented||s==null||s())},d);return wde(_=>{m===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},d),O.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(g_=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),b_(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=g_)}},[c,d,r,u]),O.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),b_())},[c,u]),O.useEffect(()=>{const _=()=>h({});return document.addEventListener(x0,_),()=>document.removeEventListener(x0,_)},[]),P.jsx(ot.div,{...l,ref:v,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:St(e.onFocusCapture,S.onFocusCapture),onBlurCapture:St(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:St(e.onPointerDownCapture,x.onPointerDownCapture)})});E6.displayName=xde;var _de="DismissableLayerBranch",Pde=O.forwardRef((e,t)=>{const r=O.useContext(P6),n=O.useRef(null),i=Mt(t,n);return O.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),P.jsx(ot.div,{...e,ref:i})});Pde.displayName=_de;function Ede(e,t=globalThis==null?void 0:globalThis.document){const r=oi(e),n=O.useRef(!1),i=O.useRef(()=>{});return O.useEffect(()=>{const o=s=>{if(s.target&&!n.current){let l=function(){C6(Sde,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Cde(e,t=globalThis==null?void 0:globalThis.document){const r=oi(e),n=O.useRef(!1);return O.useEffect(()=>{const i=o=>{o.target&&!n.current&&C6(Ode,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function b_(){const e=new CustomEvent(x0);document.dispatchEvent(e)}function C6(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Qfe(i,o):i.dispatchEvent(o)}var wv=0;function kde(){O.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??w_()),document.body.insertAdjacentElement("beforeend",e[1]??w_()),wv++,()=>{wv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wv--}},[])}function w_(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var xv="focusScope.autoFocusOnMount",Sv="focusScope.autoFocusOnUnmount",x_={bubbles:!1,cancelable:!0},Ade="FocusScope",k6=O.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=O.useState(null),u=oi(i),c=oi(o),f=O.useRef(null),d=Mt(t,p=>l(p)),h=O.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.useEffect(()=>{if(n){let p=function(b){if(h.paused||!s)return;const w=b.target;s.contains(w)?f.current=w:wi(f.current,{select:!0})},g=function(b){if(h.paused||!s)return;const w=b.relatedTarget;w!==null&&(s.contains(w)||wi(f.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const x of b)x.removedNodes.length>0&&wi(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const m=new MutationObserver(y);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),m.disconnect()}}},[n,s,h.paused]),O.useEffect(()=>{if(s){O_.add(h);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(xv,x_);s.addEventListener(xv,u),s.dispatchEvent(y),y.defaultPrevented||(Tde(Ide(A6(s)),{select:!0}),document.activeElement===p&&wi(s))}return()=>{s.removeEventListener(xv,u),setTimeout(()=>{const y=new CustomEvent(Sv,x_);s.addEventListener(Sv,c),s.dispatchEvent(y),y.defaultPrevented||wi(p??document.body,{select:!0}),s.removeEventListener(Sv,c),O_.remove(h)},0)}}},[s,u,c,h]);const v=O.useCallback(p=>{if(!r&&!n||h.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(g&&y){const m=p.currentTarget,[b,w]=Mde(m);b&&w?!p.shiftKey&&y===w?(p.preventDefault(),r&&wi(b,{select:!0})):p.shiftKey&&y===b&&(p.preventDefault(),r&&wi(w,{select:!0})):y===m&&p.preventDefault()}},[r,n,h.paused]);return P.jsx(ot.div,{tabIndex:-1,...a,ref:d,onKeyDown:v})});k6.displayName=Ade;function Tde(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(wi(n,{select:t}),document.activeElement!==r)return}function Mde(e){const t=A6(e),r=S_(t,e),n=S_(t.reverse(),e);return[r,n]}function A6(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function S_(e,t){for(const r of e)if(!jde(r,{upTo:t}))return r}function jde(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $de(e){return e instanceof HTMLInputElement&&"select"in e}function wi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&$de(e)&&t&&e.select()}}var O_=Nde();function Nde(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=__(e,t),e.unshift(t)},remove(t){var r;e=__(e,t),(r=e[0])==null||r.resume()}}}function __(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Ide(e){return e.filter(t=>t.tagName!=="A")}var pr=globalThis!=null&&globalThis.document?O.useLayoutEffect:()=>{},Dde=pP.useId||(()=>{}),Rde=0;function bw(e){const[t,r]=O.useState(Dde());return pr(()=>{r(n=>n??String(Rde++))},[e]),t?`radix-${t}`:""}const Lde=["top","right","bottom","left"],yn=Math.min,sr=Math.max,ph=Math.round,ff=Math.floor,Ki=e=>({x:e,y:e}),zde={left:"right",right:"left",bottom:"top",top:"bottom"},Fde={start:"end",end:"start"};function S0(e,t,r){return sr(e,yn(t,r))}function ai(e,t){return typeof e=="function"?e(t):e}function si(e){return e.split("-")[0]}function Ys(e){return e.split("-")[1]}function ww(e){return e==="x"?"y":"x"}function xw(e){return e==="y"?"height":"width"}function Xi(e){return["top","bottom"].includes(si(e))?"y":"x"}function Sw(e){return ww(Xi(e))}function Bde(e,t,r){r===void 0&&(r=!1);const n=Ys(e),i=Sw(e),o=xw(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=mh(a)),[a,mh(a)]}function Wde(e){const t=mh(e);return[O0(e),t,O0(t)]}function O0(e){return e.replace(/start|end/g,t=>Fde[t])}function Hde(e,t,r){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:a;default:return[]}}function Ude(e,t,r,n){const i=Ys(e);let o=Hde(si(e),r==="start",n);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(O0)))),o}function mh(e){return e.replace(/left|right|bottom|top/g,t=>zde[t])}function Yde(e){return{top:0,right:0,bottom:0,left:0,...e}}function T6(e){return typeof e!="number"?Yde(e):{top:e,right:e,bottom:e,left:e}}function vh(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function P_(e,t,r){let{reference:n,floating:i}=e;const o=Xi(t),a=Sw(t),s=xw(a),l=si(t),u=o==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(l){case"top":h={x:c,y:n.y-i.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Ys(t)){case"start":h[a]-=d*(r&&u?-1:1);break;case"end":h[a]+=d*(r&&u?-1:1);break}return h}const Vde=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=P_(u,n,l),d=n,h={},v=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=ai(e,t)||{};if(u==null)return{};const f=T6(c),d={x:r,y:n},h=Sw(i),v=xw(h),p=await a.getDimensions(u),g=h==="y",y=g?"top":"left",m=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=o.reference[v]+o.reference[h]-d[h]-o.floating[v],x=d[h]-o.reference[h],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=S?S[b]:0;(!_||!await(a.isElement==null?void 0:a.isElement(S)))&&(_=s.floating[b]||o.floating[v]);const E=w/2-x/2,A=_/2-p[v]/2-1,C=yn(f[y],A),T=yn(f[m],A),k=C,j=_-p[v]-T,M=_/2-p[v]/2+E,R=S0(k,M,j),I=!l.arrow&&Ys(i)!=null&&M!==R&&o.reference[v]/2-(MM<=0)){var T,k;const M=(((T=o.flip)==null?void 0:T.index)||0)+1,R=_[M];if(R)return{data:{index:M,overflows:C},reset:{placement:R}};let I=(k=C.filter(D=>D.overflows[0]<=0).sort((D,N)=>D.overflows[1]-N.overflows[1])[0])==null?void 0:k.placement;if(!I)switch(h){case"bestFit":{var j;const D=(j=C.filter(N=>{if(S){const L=Xi(N.placement);return L===m||L==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(L=>L>0).reduce((L,W)=>L+W,0)]).sort((N,L)=>N[1]-L[1])[0])==null?void 0:j[0];D&&(I=D);break}case"initialPlacement":I=s;break}if(i!==I)return{reset:{placement:I}}}return{}}}};function E_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C_(e){return Lde.some(t=>e[t]>=0)}const Kde=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=ai(e,t);switch(n){case"referenceHidden":{const o=await Zu(t,{...i,elementContext:"reference"}),a=E_(o,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:C_(a)}}}case"escaped":{const o=await Zu(t,{...i,altBoundary:!0}),a=E_(o,r.floating);return{data:{escapedOffsets:a,escaped:C_(a)}}}default:return{}}}}};async function Xde(e,t){const{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=si(r),s=Ys(r),l=Xi(r)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,f=ai(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const Zde=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await Xde(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Qde=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...l}=ai(e,t),u={x:r,y:n},c=await Zu(t,l),f=Xi(si(i)),d=ww(f);let h=u[d],v=u[f];if(o){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=h+c[g],b=h-c[y];h=S0(m,h,b)}if(a){const g=f==="y"?"top":"left",y=f==="y"?"bottom":"right",m=v+c[g],b=v-c[y];v=S0(m,v,b)}const p=s.fn({...t,[d]:h,[f]:v});return{...p,data:{x:p.x-r,y:p.y-n}}}}},Jde=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=ai(e,t),c={x:r,y:n},f=Xi(i),d=ww(f);let h=c[d],v=c[f];const p=ai(s,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const b=d==="y"?"height":"width",w=o.reference[d]-o.floating[b]+g.mainAxis,x=o.reference[d]+o.reference[b]-g.mainAxis;hx&&(h=x)}if(u){var y,m;const b=d==="y"?"width":"height",w=["top","left"].includes(si(i)),x=o.reference[f]-o.floating[b]+(w&&((y=a.offset)==null?void 0:y[f])||0)+(w?0:g.crossAxis),S=o.reference[f]+o.reference[b]+(w?0:((m=a.offset)==null?void 0:m[f])||0)-(w?g.crossAxis:0);vS&&(v=S)}return{[d]:h,[f]:v}}}},ehe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:o}=t,{apply:a=()=>{},...s}=ai(e,t),l=await Zu(t,s),u=si(r),c=Ys(r),f=Xi(r)==="y",{width:d,height:h}=n.floating;let v,p;u==="top"||u==="bottom"?(v=u,p=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(p=u,v=c==="end"?"top":"bottom");const g=h-l.top-l.bottom,y=d-l.left-l.right,m=yn(h-l[v],g),b=yn(d-l[p],y),w=!t.middlewareData.shift;let x=m,S=b;if(f?S=c||w?yn(b,y):y:x=c||w?yn(m,g):g,w&&!c){const E=sr(l.left,0),A=sr(l.right,0),C=sr(l.top,0),T=sr(l.bottom,0);f?S=d-2*(E!==0||A!==0?E+A:sr(l.left,l.right)):x=h-2*(C!==0||T!==0?C+T:sr(l.top,l.bottom))}await a({...t,availableWidth:S,availableHeight:x});const _=await i.getDimensions(o.floating);return d!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}};function Vs(e){return M6(e)?(e.nodeName||"").toLowerCase():"#document"}function fr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pi(e){var t;return(t=(M6(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function M6(e){return e instanceof Node||e instanceof fr(e).Node}function rn(e){return e instanceof Element||e instanceof fr(e).Element}function _n(e){return e instanceof HTMLElement||e instanceof fr(e).HTMLElement}function k_(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fr(e).ShadowRoot}function Pc(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function the(e){return["table","td","th"].includes(Vs(e))}function Zp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ow(e){const t=_w(),r=rn(e)?nn(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function rhe(e){let t=Zi(e);for(;_n(t)&&!ms(t);){if(Ow(t))return t;if(Zp(t))return null;t=Zi(t)}return null}function _w(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ms(e){return["html","body","#document"].includes(Vs(e))}function nn(e){return fr(e).getComputedStyle(e)}function Qp(e){return rn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zi(e){if(Vs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||k_(e)&&e.host||pi(e);return k_(t)?t.host:t}function j6(e){const t=Zi(e);return ms(t)?e.ownerDocument?e.ownerDocument.body:e.body:_n(t)&&Pc(t)?t:j6(t)}function Qu(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=j6(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=fr(i);return o?t.concat(a,a.visualViewport||[],Pc(i)?i:[],a.frameElement&&r?Qu(a.frameElement):[]):t.concat(i,Qu(i,[],r))}function $6(e){const t=nn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=_n(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=ph(r)!==o||ph(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function Pw(e){return rn(e)?e:e.contextElement}function Ba(e){const t=Pw(e);if(!_n(t))return Ki(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=$6(t);let a=(o?ph(r.width):r.width)/n,s=(o?ph(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const nhe=Ki(0);function N6(e){const t=fr(e);return!_w()||!t.visualViewport?nhe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ihe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fr(e)?!1:t}function Vo(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=Pw(e);let a=Ki(1);t&&(n?rn(n)&&(a=Ba(n)):a=Ba(e));const s=ihe(o,r,n)?N6(o):Ki(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,f=i.height/a.y;if(o){const d=fr(o),h=n&&rn(n)?fr(n):n;let v=d,p=v.frameElement;for(;p&&n&&h!==v;){const g=Ba(p),y=p.getBoundingClientRect(),m=nn(p),b=y.left+(p.clientLeft+parseFloat(m.paddingLeft))*g.x,w=y.top+(p.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,u*=g.y,c*=g.x,f*=g.y,l+=b,u+=w,v=fr(p),p=v.frameElement}}return vh({width:c,height:f,x:l,y:u})}function ohe(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",a=pi(n),s=t?Zp(t.floating):!1;if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},u=Ki(1);const c=Ki(0),f=_n(n);if((f||!f&&!o)&&((Vs(n)!=="body"||Pc(a))&&(l=Qp(n)),_n(n))){const d=Vo(n);u=Ba(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x,y:r.y*u.y-l.scrollTop*u.y+c.y}}function ahe(e){return Array.from(e.getClientRects())}function I6(e){return Vo(pi(e)).left+Qp(e).scrollLeft}function she(e){const t=pi(e),r=Qp(e),n=e.ownerDocument.body,i=sr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=sr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+I6(e);const s=-r.scrollTop;return nn(n).direction==="rtl"&&(a+=sr(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function lhe(e,t){const r=fr(e),n=pi(e),i=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=_w();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function uhe(e,t){const r=Vo(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=_n(e)?Ba(e):Ki(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:a,height:s,x:l,y:u}}function A_(e,t,r){let n;if(t==="viewport")n=lhe(e,r);else if(t==="document")n=she(pi(e));else if(rn(t))n=uhe(t,r);else{const i=N6(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return vh(n)}function D6(e,t){const r=Zi(e);return r===t||!rn(r)||ms(r)?!1:nn(r).position==="fixed"||D6(r,t)}function che(e,t){const r=t.get(e);if(r)return r;let n=Qu(e,[],!1).filter(s=>rn(s)&&Vs(s)!=="body"),i=null;const o=nn(e).position==="fixed";let a=o?Zi(e):e;for(;rn(a)&&!ms(a);){const s=nn(a),l=Ow(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Pc(a)&&!l&&D6(e,a))?n=n.filter(c=>c!==a):i=s,a=Zi(a)}return t.set(e,n),n}function fhe(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const a=[...r==="clippingAncestors"?Zp(t)?[]:che(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((u,c)=>{const f=A_(t,c,i);return u.top=sr(f.top,u.top),u.right=yn(f.right,u.right),u.bottom=yn(f.bottom,u.bottom),u.left=sr(f.left,u.left),u},A_(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function dhe(e){const{width:t,height:r}=$6(e);return{width:t,height:r}}function hhe(e,t,r){const n=_n(t),i=pi(t),o=r==="fixed",a=Vo(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Ki(0);if(n||!n&&!o)if((Vs(t)!=="body"||Pc(i))&&(s=Qp(t)),n){const f=Vo(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=I6(i));const u=a.left+s.scrollLeft-l.x,c=a.top+s.scrollTop-l.y;return{x:u,y:c,width:a.width,height:a.height}}function Ov(e){return nn(e).position==="static"}function T_(e,t){return!_n(e)||nn(e).position==="fixed"?null:t?t(e):e.offsetParent}function R6(e,t){const r=fr(e);if(Zp(e))return r;if(!_n(e)){let i=Zi(e);for(;i&&!ms(i);){if(rn(i)&&!Ov(i))return i;i=Zi(i)}return r}let n=T_(e,t);for(;n&&the(n)&&Ov(n);)n=T_(n,t);return n&&ms(n)&&Ov(n)&&!Ow(n)?r:n||rhe(e)||r}const phe=async function(e){const t=this.getOffsetParent||R6,r=this.getDimensions,n=await r(e.floating);return{reference:hhe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mhe(e){return nn(e).direction==="rtl"}const vhe={convertOffsetParentRelativeRectToViewportRelativeRect:ohe,getDocumentElement:pi,getClippingRect:fhe,getOffsetParent:R6,getElementRects:phe,getClientRects:ahe,getDimensions:dhe,getScale:Ba,isElement:rn,isRTL:mhe};function yhe(e,t){let r=null,n;const i=pi(e);function o(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const h=ff(c),v=ff(i.clientWidth-(u+f)),p=ff(i.clientHeight-(c+d)),g=ff(u),m={rootMargin:-h+"px "+-v+"px "+-p+"px "+-g+"px",threshold:sr(0,yn(1,l))||1};let b=!0;function w(x){const S=x[0].intersectionRatio;if(S!==l){if(!b)return a();S?a(!1,S):n=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(w,{...m,root:i.ownerDocument})}catch{r=new IntersectionObserver(w,m)}r.observe(e)}return a(!0),o}function ghe(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Pw(e),c=i||o?[...u?Qu(u):[],...Qu(t)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),o&&y.addEventListener("resize",r)});const f=u&&s?yhe(u,r):null;let d=-1,h=null;a&&(h=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),r()}),u&&!l&&h.observe(u),h.observe(t));let v,p=l?Vo(e):null;l&&g();function g(){const y=Vo(e);p&&(y.x!==p.x||y.y!==p.y||y.width!==p.width||y.height!==p.height)&&r(),p=y,v=requestAnimationFrame(g)}return r(),()=>{var y;c.forEach(m=>{i&&m.removeEventListener("scroll",r),o&&m.removeEventListener("resize",r)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const bhe=Zde,whe=Qde,xhe=qde,She=ehe,Ohe=Kde,M_=Gde,_he=Jde,Phe=(e,t,r)=>{const n=new Map,i={platform:vhe,...r},o={...i.platform,_c:n};return Vde(e,t,{...i,platform:o})};var Nf=typeof document<"u"?O.useLayoutEffect:O.useEffect;function yh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!yh(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!yh(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function L6(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function j_(e,t){const r=L6(e);return Math.round(t*r)/r}function $_(e){const t=O.useRef(e);return Nf(()=>{t.current=e}),t}function Ehe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,f]=O.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=O.useState(n);yh(d,n)||h(n);const[v,p]=O.useState(null),[g,y]=O.useState(null),m=O.useCallback(D=>{D!==S.current&&(S.current=D,p(D))},[]),b=O.useCallback(D=>{D!==_.current&&(_.current=D,y(D))},[]),w=o||v,x=a||g,S=O.useRef(null),_=O.useRef(null),E=O.useRef(c),A=l!=null,C=$_(l),T=$_(i),k=O.useCallback(()=>{if(!S.current||!_.current)return;const D={placement:t,strategy:r,middleware:d};T.current&&(D.platform=T.current),Phe(S.current,_.current,D).then(N=>{const L={...N,isPositioned:!0};j.current&&!yh(E.current,L)&&(E.current=L,_s.flushSync(()=>{f(L)}))})},[d,t,r,T]);Nf(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[u]);const j=O.useRef(!1);Nf(()=>(j.current=!0,()=>{j.current=!1}),[]),Nf(()=>{if(w&&(S.current=w),x&&(_.current=x),w&&x){if(C.current)return C.current(w,x,k);k()}},[w,x,k,C,A]);const M=O.useMemo(()=>({reference:S,floating:_,setReference:m,setFloating:b}),[m,b]),R=O.useMemo(()=>({reference:w,floating:x}),[w,x]),I=O.useMemo(()=>{const D={position:r,left:0,top:0};if(!R.floating)return D;const N=j_(R.floating,c.x),L=j_(R.floating,c.y);return s?{...D,transform:"translate("+N+"px, "+L+"px)",...L6(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:N,top:L}},[r,s,R.floating,c.x,c.y]);return O.useMemo(()=>({...c,update:k,refs:M,elements:R,floatingStyles:I}),[c,k,M,R,I])}const Che=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?M_({element:n.current,padding:i}).fn(r):{}:n?M_({element:n,padding:i}).fn(r):{}}}},khe=(e,t)=>({...bhe(e),options:[e,t]}),Ahe=(e,t)=>({...whe(e),options:[e,t]}),The=(e,t)=>({..._he(e),options:[e,t]}),Mhe=(e,t)=>({...xhe(e),options:[e,t]}),jhe=(e,t)=>({...She(e),options:[e,t]}),$he=(e,t)=>({...Ohe(e),options:[e,t]}),Nhe=(e,t)=>({...Che(e),options:[e,t]});var Ihe="Arrow",z6=O.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...o}=e;return P.jsx(ot.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});z6.displayName=Ihe;var Dhe=z6;function Rhe(e){const[t,r]=O.useState(void 0);return pr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Ew="Popper",[F6,B6]=Kp(Ew),[Lhe,W6]=F6(Ew),H6=e=>{const{__scopePopper:t,children:r}=e,[n,i]=O.useState(null);return P.jsx(Lhe,{scope:t,anchor:n,onAnchorChange:i,children:r})};H6.displayName=Ew;var U6="PopperAnchor",Y6=O.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,o=W6(U6,r),a=O.useRef(null),s=Mt(t,a);return O.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:P.jsx(ot.div,{...i,ref:s})});Y6.displayName=U6;var Cw="PopperContent",[zhe,Fhe]=F6(Cw),V6=O.forwardRef((e,t)=>{var re,we,V,Z,Q,F;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:v,...p}=e,g=W6(Cw,r),[y,m]=O.useState(null),b=Mt(t,xe=>m(xe)),[w,x]=O.useState(null),S=Rhe(w),_=(S==null?void 0:S.width)??0,E=(S==null?void 0:S.height)??0,A=n+(o!=="center"?"-"+o:""),C=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},T=Array.isArray(u)?u:[u],k=T.length>0,j={padding:C,boundary:T.filter(Whe),altBoundary:k},{refs:M,floatingStyles:R,placement:I,isPositioned:D,middlewareData:N}=Ehe({strategy:"fixed",placement:A,whileElementsMounted:(...xe)=>ghe(...xe,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[khe({mainAxis:i+E,alignmentAxis:a}),l&&Ahe({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?The():void 0,...j}),l&&Mhe({...j}),jhe({...j,apply:({elements:xe,rects:se,availableWidth:Fe,availableHeight:De})=>{const{width:dt,height:Lr}=se.reference,An=xe.floating.style;An.setProperty("--radix-popper-available-width",`${Fe}px`),An.setProperty("--radix-popper-available-height",`${De}px`),An.setProperty("--radix-popper-anchor-width",`${dt}px`),An.setProperty("--radix-popper-anchor-height",`${Lr}px`)}}),w&&Nhe({element:w,padding:s}),Hhe({arrowWidth:_,arrowHeight:E}),d&&$he({strategy:"referenceHidden",...j})]}),[L,W]=K6(I),Y=oi(v);pr(()=>{D&&(Y==null||Y())},[D,Y]);const G=(re=N.arrow)==null?void 0:re.x,ie=(we=N.arrow)==null?void 0:we.y,ye=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[Ae,Qe]=O.useState();return pr(()=>{y&&Qe(window.getComputedStyle(y).zIndex)},[y]),P.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:D?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[(Z=N.transformOrigin)==null?void 0:Z.x,(Q=N.transformOrigin)==null?void 0:Q.y].join(" "),...((F=N.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx(zhe,{scope:r,placedSide:L,onArrowChange:x,arrowX:G,arrowY:ie,shouldHideArrow:ye,children:P.jsx(ot.div,{"data-side":L,"data-align":W,...p,ref:b,style:{...p.style,animation:D?void 0:"none"}})})})});V6.displayName=Cw;var G6="PopperArrow",Bhe={top:"bottom",right:"left",bottom:"top",left:"right"},q6=O.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,o=Fhe(G6,n),a=Bhe[o.placedSide];return P.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:P.jsx(Dhe,{...i,ref:r,style:{...i.style,display:"block"}})})});q6.displayName=G6;function Whe(e){return e!==null}var Hhe=e=>({name:"transformOrigin",options:e,fn(t){var g,y,m;const{placement:r,rects:n,middlewareData:i}=t,a=((g=i.arrow)==null?void 0:g.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,c]=K6(r),f={start:"0%",center:"50%",end:"100%"}[c],d=(((y=i.arrow)==null?void 0:y.x)??0)+s/2,h=(((m=i.arrow)==null?void 0:m.y)??0)+l/2;let v="",p="";return u==="bottom"?(v=a?f:`${d}px`,p=`${-l}px`):u==="top"?(v=a?f:`${d}px`,p=`${n.floating.height+l}px`):u==="right"?(v=`${-l}px`,p=a?f:`${h}px`):u==="left"&&(v=`${n.floating.width+l}px`,p=a?f:`${h}px`),{data:{x:v,y:p}}}});function K6(e){const[t,r="center"]=e.split("-");return[t,r]}var Uhe=H6,Yhe=Y6,Vhe=V6,Ghe=q6,qhe="Portal",X6=O.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[i,o]=O.useState(!1);pr(()=>o(!0),[]);const a=r||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?aI.createPortal(P.jsx(ot.div,{...n,ref:t}),a):null});X6.displayName=qhe;function N_({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=Khe({defaultProp:t,onChange:r}),o=e!==void 0,a=o?e:n,s=oi(r),l=O.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else i(u)},[o,e,i,s]);return[a,l]}function Khe({defaultProp:e,onChange:t}){const r=O.useState(e),[n]=r,i=O.useRef(n),o=oi(t);return O.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}function Xhe(e){const t=O.useRef({value:e,previous:e});return O.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Zhe="VisuallyHidden",Z6=O.forwardRef((e,t)=>P.jsx(ot.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Z6.displayName=Zhe;var Qhe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ca=new WeakMap,df=new WeakMap,hf={},_v=0,Q6=function(e){return e&&(e.host||Q6(e.parentNode))},Jhe=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Q6(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},epe=function(e,t,r,n){var i=Jhe(t,Array.isArray(e)?e:[e]);hf[r]||(hf[r]=new WeakMap);var o=hf[r],a=[],s=new Set,l=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))c(d);else try{var h=d.getAttribute(n),v=h!==null&&h!=="false",p=(ca.get(d)||0)+1,g=(o.get(d)||0)+1;ca.set(d,p),o.set(d,g),a.push(d),p===1&&v&&df.set(d,!0),g===1&&d.setAttribute(r,"true"),v||d.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return c(t),s.clear(),_v++,function(){a.forEach(function(f){var d=ca.get(f)-1,h=o.get(f)-1;ca.set(f,d),o.set(f,h),d||(df.has(f)||f.removeAttribute(n),df.delete(f)),h||f.removeAttribute(r)}),_v--,_v||(ca=new WeakMap,ca=new WeakMap,df=new WeakMap,hf={})}},tpe=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=Qhe(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),epe(n,i,r,"aria-hidden")):function(){return null}},mn=function(){return mn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u")return gpe;var t=bpe(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},xpe=rj(),Wa="data-scroll-locked",Spe=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),` - .`.concat(npe,` { +Defaulting to \`null\`.`}var S6=g6,Jfe=w6;const v_=(e=0,t)=>e*100/t,ede=e=>e<25?"green":e<50?"yellow":e<75?"orange":"red",_l=O.forwardRef(({className:e,value:t,max:r,...n},i)=>P.jsx(S6,{ref:i,className:Le("relative h-2 w-full overflow-hidden rounded-full",e),...n,children:P.jsx(Jfe,{className:Le("h-full w-full flex-1 transition-all",`bg-${ede(v_(t,r))}-500`),style:{transform:`translateX(-${100-v_(t,r)}%)`}})}));_l.displayName=S6.displayName;const O6="bc0d99aee63d3596ec446c4536d94e1f8ec3bd7e",tde=async e=>it.get(`https://api.waqi.info/feed/${e}/?token=${O6}`).then(t=>{let r=t.data;return r.status==="error"?Promise.reject(r.message):Promise.resolve(r.data)}).catch(t=>{var r;return Promise.reject(((r=t==null?void 0:t.response)==null?void 0:r.message)||"Network Error")});let bv,yl;function rde(){var m,b,w,x,S,_,E,A,C,T;const[e,t]=O.useState(""),[r,n]=O.useState(null),[i,o]=O.useState(""),[a,s]=O.useState(!1),[l,u]=O.useState(null),[c,f]=O.useState(!1),d=k=>{t(k.target.value),u(null);let j=k.target.value;if(bv&&(clearTimeout(bv),yl==null||yl.abort()),!j.length){s(!1);return}bv=setTimeout(()=>{yl=new AbortController,s(!0),it.get(`https://api.waqi.info/search/?keyword=${j}&token=${O6}`,{signal:yl.signal}).then(M=>{M.data.status==="ok"&&u(M.data.data)}).catch(console.log)},300)},h=async k=>{n(null),f(!0);try{const j=await tde(k);n(j),o("")}catch(j){o(j||"Failed to fetch AQI data. Please try again."),n(null)}finally{f(!1)}},v=O.useRef(null),p=O.useRef(null),g=k=>{!p.current||!v.current||!p.current.contains(k.target)&&!v.current.contains(k.target)&&s(!1)},y=k=>{s(!1),h(`@${k}`),t(""),u(null)};return O.useEffect(()=>(window.addEventListener("click",g),()=>window.removeEventListener("click",g)),[]),O.useEffect(()=>{h("here")},[]),P.jsx(P.Fragment,{children:P.jsxs("div",{className:"min-h-dvh text-gray-200 items-center flex flex-col w-full md:w-11/12 lg:w-3/4 my-10 md:mx-auto",children:[P.jsxs("label",{ref:v,className:"input relative max-w-96 input-bordered input-primary flex items-center gap-2 w-full bg-base-200 rounded-box",onFocus:()=>{!a&&l!==null&&s(!0)},children:[P.jsx("input",{type:"text",className:"grow",placeholder:"Search city or station",value:e,onChange:d}),P.jsx("button",{className:"btn btn-sm btn-ghost btn-circle",children:P.jsx(bD,{size:16})}),P.jsxs("div",{ref:p,className:`duration-300 absolute top-12 left-0 flex flex-col px-1 bg-base-200 shadow-neutral-800 rounded-lg mt-1 shadow-xl w-full max-w-96 ${a?"h-48 py-3":"h-0 py-0"} overflow-y-auto`,children:[a&&!l&&P.jsx("div",{className:"m-auto loading loading-ring loading-lg"}),l&&!!l.length&&l.map(k=>{var j;return P.jsxs("button",{className:"btn btn-ghost w-full justify-between items-center text-left py-1",onClick:()=>y(k.uid),children:[P.jsx("span",{className:"w-10/12",children:k.station.name}),k.aqi!=="-"&&P.jsx("span",{style:{color:(j=fo(parseInt(k.aqi)))==null?void 0:j.color},className:"text-xs",children:k.aqi})]},k.uid)}),l&&!l.length&&P.jsxs("div",{className:"text-neutral-400 m-auto flex flex-col items-center",children:[P.jsx(wD,{size:48}),P.jsx("span",{children:"No Results"})]})]})]}),c&&P.jsx("div",{className:"loading loading-dots loading-lg text-neutral my-10"}),r&&P.jsxs("div",{className:"rounded-xl w-full p-10 pb-0 my-10 shadow-lg bg-base-200",children:[P.jsx("div",{className:"text-3xl text-center text-primary font-bold",children:r.city.name}),P.jsxs("div",{className:"flex flex-wrap",children:[P.jsxs("div",{className:"flex flex-col p-5 my-10 w-3/5 duration-300",children:[P.jsx("p",{className:"text-2xl font-bold border-s-4 p-2 text-blue-400 border-blue-400",children:"Air Conditions"}),P.jsxs("div",{className:"flex items-end px-2 py-3",children:[P.jsx("img",{src:s5,alt:"temperature",className:"w-12 h-12"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((m=r.iaqi.t)==null?void 0:m.v).toFixed(2)," °C"]}),P.jsx("div",{className:"m-3"}),P.jsx("img",{src:a5,alt:"wind",className:"w-12 h-12"}),P.jsxs("p",{className:"p-2 text-xl text-neutral font-semibold",children:[parseFloat((b=r.iaqi.w)==null?void 0:b.v).toFixed(2)," m/s"]})]}),P.jsx("p",{className:"text-2xl mt-5 font-bold border-s-4 p-2 text-amber-400 border-amber-400",children:"Pollutants"}),P.jsxs("div",{className:"flex flex-col px-2 py-3 flex-wrap",children:[((w=r.iaqi.pm25)==null?void 0:w.v)&&P.jsxs("div",{className:"flex items-center gap-5",children:[P.jsx("img",{src:l5,alt:"pm25",className:"w-12 h-12"}),P.jsx(_l,{value:Math.min(250,r.iaqi.pm25.v),max:250,className:"bg-neutral-700 w-48"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((x=r.iaqi.pm25)==null?void 0:x.v).toFixed(2)," µg/m³"]})]}),((S=r.iaqi.pm10)==null?void 0:S.v)&&P.jsxs("div",{className:"flex items-center gap-5",children:[P.jsx("img",{src:u5,alt:"pm10",className:"w-12 h-12"}),P.jsx(_l,{value:Math.min(250,r.iaqi.pm10.v),max:250,className:"bg-neutral-700 w-48"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((_=r.iaqi.pm10)==null?void 0:_.v).toFixed(2)," µg/m³"]})]}),((E=r.iaqi.co)==null?void 0:E.v)&&P.jsxs("div",{className:"flex items-center gap-5",children:[P.jsx("img",{src:f5,alt:"monoxide",className:"w-12 h-12"}),P.jsx(_l,{value:r.iaqi.co.v,max:50,className:"bg-neutral-700 w-48"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((A=r.iaqi.co)==null?void 0:A.v).toFixed(2)," ppm"]})]}),((C=r.iaqi.o3)==null?void 0:C.v)&&P.jsxs("div",{className:"flex items-center gap-5",children:[P.jsx("img",{src:c5,alt:"ozone",className:"w-12 h-12"}),P.jsx(_l,{value:r.iaqi.o3.v,max:150,className:"bg-neutral-700 w-48"}),P.jsxs("p",{className:"py-2 text-xl text-neutral font-semibold",children:[parseFloat((T=r.iaqi.o3)==null?void 0:T.v).toFixed(2)," ppb"]})]})]})]}),P.jsxs("div",{className:`flex flex-col py-10 px-5 rounded-3xl items-center border-2 border-${fo(r.aqi).bg}-500 duration-300 my-auto lg:w-2/5`,children:[P.jsx("div",{className:"w-32 h-32 mb-10 mx-auto duration-300",children:P.jsx(i5,{value:r.aqi,maxValue:500,text:`${r.aqi}`,styles:o5({textColor:fo(r.aqi).color,pathColor:fo(r.aqi).color,trailColor:"#555"})})}),P.jsxs("div",{className:"w-full max-w-[400px] text-center duration-300",children:[P.jsx("p",{className:`font-bold text-2xl text-${fo(r.aqi).bg}-500 duration-300`,children:fo(r.aqi).condition}),P.jsx("div",{children:fo(r.aqi).message})]})]})]})]}),r&&P.jsx(Rfe,{forecast:r==null?void 0:r.forecast}),r&&P.jsx(Lfe,{attribution:r==null?void 0:r.attributions,time:r==null?void 0:r.time}),P.jsx("div",{className:" p-4 md:p-6 lg:p-8 ",children:i&&P.jsx("div",{className:"text-red-500 text-center mb-4",children:i})})]})})}function Xp(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var nde=["color"],ide=O.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xp(e,nde);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),O.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),ode=["color"],ade=O.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xp(e,ode);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),O.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),sde=["color"],lde=O.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xp(e,sde);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),O.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),ude=["color"],cde=O.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xp(e,ude);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),O.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});function y_(e,[t,r]){return Math.min(r,Math.max(t,e))}function St(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function fde(e){const t=e+"CollectionProvider",[r,n]=Kp(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:v,children:p}=h,g=$.useRef(null),y=$.useRef(new Map).current;return P.jsx(i,{scope:v,itemMap:y,collectionRef:g,children:p})};a.displayName=t;const s=e+"CollectionSlot",l=$.forwardRef((h,v)=>{const{scope:p,children:g}=h,y=o(s,p),m=Mt(v,y.collectionRef);return P.jsx(Xu,{ref:m,children:g})});l.displayName=s;const u=e+"CollectionItemSlot",c="data-radix-collection-item",f=$.forwardRef((h,v)=>{const{scope:p,children:g,...y}=h,m=$.useRef(null),b=Mt(v,m),w=o(u,p);return $.useEffect(()=>(w.itemMap.set(m,{ref:m,...y}),()=>void w.itemMap.delete(m))),P.jsx(Xu,{[c]:"",ref:b,children:g})});f.displayName=u;function d(h){const v=o(e+"CollectionConsumer",h);return $.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${c}]`));return Array.from(v.itemMap.values()).sort((w,x)=>y.indexOf(w.ref.current)-y.indexOf(x.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},d,n]}var dde=O.createContext(void 0);function hde(e){const t=O.useContext(dde);return e||t||"ltr"}function oi(e){const t=O.useRef(e);return O.useEffect(()=>{t.current=e}),O.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function pde(e,t=globalThis==null?void 0:globalThis.document){const r=oi(e);O.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var mde="DismissableLayer",x0="dismissableLayer.update",vde="dismissableLayer.pointerDownOutside",yde="dismissableLayer.focusOutside",g_,_6=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P6=O.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...l}=e,u=O.useContext(_6),[c,f]=O.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=O.useState({}),v=Mt(t,_=>f(_)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),m=c?p.indexOf(c):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,w=m>=y,x=wde(_=>{const E=_.target,A=[...u.branches].some(C=>C.contains(E));!w||A||(i==null||i(_),a==null||a(_),_.defaultPrevented||s==null||s())},d),S=xde(_=>{const E=_.target;[...u.branches].some(C=>C.contains(E))||(o==null||o(_),a==null||a(_),_.defaultPrevented||s==null||s())},d);return pde(_=>{m===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},d),O.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(g_=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),b_(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=g_)}},[c,d,r,u]),O.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),b_())},[c,u]),O.useEffect(()=>{const _=()=>h({});return document.addEventListener(x0,_),()=>document.removeEventListener(x0,_)},[]),P.jsx(ot.div,{...l,ref:v,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:St(e.onFocusCapture,S.onFocusCapture),onBlurCapture:St(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:St(e.onPointerDownCapture,x.onPointerDownCapture)})});P6.displayName=mde;var gde="DismissableLayerBranch",bde=O.forwardRef((e,t)=>{const r=O.useContext(_6),n=O.useRef(null),i=Mt(t,n);return O.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),P.jsx(ot.div,{...e,ref:i})});bde.displayName=gde;function wde(e,t=globalThis==null?void 0:globalThis.document){const r=oi(e),n=O.useRef(!1),i=O.useRef(()=>{});return O.useEffect(()=>{const o=s=>{if(s.target&&!n.current){let l=function(){E6(vde,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function xde(e,t=globalThis==null?void 0:globalThis.document){const r=oi(e),n=O.useRef(!1);return O.useEffect(()=>{const i=o=>{o.target&&!n.current&&E6(yde,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function b_(){const e=new CustomEvent(x0);document.dispatchEvent(e)}function E6(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Vfe(i,o):i.dispatchEvent(o)}var wv=0;function Sde(){O.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??w_()),document.body.insertAdjacentElement("beforeend",e[1]??w_()),wv++,()=>{wv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wv--}},[])}function w_(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var xv="focusScope.autoFocusOnMount",Sv="focusScope.autoFocusOnUnmount",x_={bubbles:!1,cancelable:!0},Ode="FocusScope",C6=O.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=O.useState(null),u=oi(i),c=oi(o),f=O.useRef(null),d=Mt(t,p=>l(p)),h=O.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.useEffect(()=>{if(n){let p=function(b){if(h.paused||!s)return;const w=b.target;s.contains(w)?f.current=w:wi(f.current,{select:!0})},g=function(b){if(h.paused||!s)return;const w=b.relatedTarget;w!==null&&(s.contains(w)||wi(f.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const x of b)x.removedNodes.length>0&&wi(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const m=new MutationObserver(y);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),m.disconnect()}}},[n,s,h.paused]),O.useEffect(()=>{if(s){O_.add(h);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(xv,x_);s.addEventListener(xv,u),s.dispatchEvent(y),y.defaultPrevented||(_de(Ade(k6(s)),{select:!0}),document.activeElement===p&&wi(s))}return()=>{s.removeEventListener(xv,u),setTimeout(()=>{const y=new CustomEvent(Sv,x_);s.addEventListener(Sv,c),s.dispatchEvent(y),y.defaultPrevented||wi(p??document.body,{select:!0}),s.removeEventListener(Sv,c),O_.remove(h)},0)}}},[s,u,c,h]);const v=O.useCallback(p=>{if(!r&&!n||h.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(g&&y){const m=p.currentTarget,[b,w]=Pde(m);b&&w?!p.shiftKey&&y===w?(p.preventDefault(),r&&wi(b,{select:!0})):p.shiftKey&&y===b&&(p.preventDefault(),r&&wi(w,{select:!0})):y===m&&p.preventDefault()}},[r,n,h.paused]);return P.jsx(ot.div,{tabIndex:-1,...a,ref:d,onKeyDown:v})});C6.displayName=Ode;function _de(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(wi(n,{select:t}),document.activeElement!==r)return}function Pde(e){const t=k6(e),r=S_(t,e),n=S_(t.reverse(),e);return[r,n]}function k6(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function S_(e,t){for(const r of e)if(!Ede(r,{upTo:t}))return r}function Ede(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Cde(e){return e instanceof HTMLInputElement&&"select"in e}function wi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Cde(e)&&t&&e.select()}}var O_=kde();function kde(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=__(e,t),e.unshift(t)},remove(t){var r;e=__(e,t),(r=e[0])==null||r.resume()}}}function __(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Ade(e){return e.filter(t=>t.tagName!=="A")}var pr=globalThis!=null&&globalThis.document?O.useLayoutEffect:()=>{},Tde=pP.useId||(()=>{}),Mde=0;function bw(e){const[t,r]=O.useState(Tde());return pr(()=>{r(n=>n??String(Mde++))},[e]),t?`radix-${t}`:""}const jde=["top","right","bottom","left"],yn=Math.min,sr=Math.max,ph=Math.round,cf=Math.floor,Ki=e=>({x:e,y:e}),$de={left:"right",right:"left",bottom:"top",top:"bottom"},Nde={start:"end",end:"start"};function S0(e,t,r){return sr(e,yn(t,r))}function ai(e,t){return typeof e=="function"?e(t):e}function si(e){return e.split("-")[0]}function Ys(e){return e.split("-")[1]}function ww(e){return e==="x"?"y":"x"}function xw(e){return e==="y"?"height":"width"}function Xi(e){return["top","bottom"].includes(si(e))?"y":"x"}function Sw(e){return ww(Xi(e))}function Ide(e,t,r){r===void 0&&(r=!1);const n=Ys(e),i=Sw(e),o=xw(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=mh(a)),[a,mh(a)]}function Dde(e){const t=mh(e);return[O0(e),t,O0(t)]}function O0(e){return e.replace(/start|end/g,t=>Nde[t])}function Rde(e,t,r){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:a;default:return[]}}function Lde(e,t,r,n){const i=Ys(e);let o=Rde(si(e),r==="start",n);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(O0)))),o}function mh(e){return e.replace(/left|right|bottom|top/g,t=>$de[t])}function zde(e){return{top:0,right:0,bottom:0,left:0,...e}}function A6(e){return typeof e!="number"?zde(e):{top:e,right:e,bottom:e,left:e}}function vh(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function P_(e,t,r){let{reference:n,floating:i}=e;const o=Xi(t),a=Sw(t),s=xw(a),l=si(t),u=o==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(l){case"top":h={x:c,y:n.y-i.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Ys(t)){case"start":h[a]-=d*(r&&u?-1:1);break;case"end":h[a]+=d*(r&&u?-1:1);break}return h}const Fde=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=P_(u,n,l),d=n,h={},v=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=ai(e,t)||{};if(u==null)return{};const f=A6(c),d={x:r,y:n},h=Sw(i),v=xw(h),p=await a.getDimensions(u),g=h==="y",y=g?"top":"left",m=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=o.reference[v]+o.reference[h]-d[h]-o.floating[v],x=d[h]-o.reference[h],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let _=S?S[b]:0;(!_||!await(a.isElement==null?void 0:a.isElement(S)))&&(_=s.floating[b]||o.floating[v]);const E=w/2-x/2,A=_/2-p[v]/2-1,C=yn(f[y],A),T=yn(f[m],A),k=C,j=_-p[v]-T,M=_/2-p[v]/2+E,R=S0(k,M,j),I=!l.arrow&&Ys(i)!=null&&M!==R&&o.reference[v]/2-(MM<=0)){var T,k;const M=(((T=o.flip)==null?void 0:T.index)||0)+1,R=_[M];if(R)return{data:{index:M,overflows:C},reset:{placement:R}};let I=(k=C.filter(D=>D.overflows[0]<=0).sort((D,N)=>D.overflows[1]-N.overflows[1])[0])==null?void 0:k.placement;if(!I)switch(h){case"bestFit":{var j;const D=(j=C.filter(N=>{if(S){const L=Xi(N.placement);return L===m||L==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(L=>L>0).reduce((L,W)=>L+W,0)]).sort((N,L)=>N[1]-L[1])[0])==null?void 0:j[0];D&&(I=D);break}case"initialPlacement":I=s;break}if(i!==I)return{reset:{placement:I}}}return{}}}};function E_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C_(e){return jde.some(t=>e[t]>=0)}const Hde=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=ai(e,t);switch(n){case"referenceHidden":{const o=await Zu(t,{...i,elementContext:"reference"}),a=E_(o,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:C_(a)}}}case"escaped":{const o=await Zu(t,{...i,altBoundary:!0}),a=E_(o,r.floating);return{data:{escapedOffsets:a,escaped:C_(a)}}}default:return{}}}}};async function Ude(e,t){const{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=si(r),s=Ys(r),l=Xi(r)==="y",u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,f=ai(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const Yde=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await Ude(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Vde=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...l}=ai(e,t),u={x:r,y:n},c=await Zu(t,l),f=Xi(si(i)),d=ww(f);let h=u[d],v=u[f];if(o){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=h+c[g],b=h-c[y];h=S0(m,h,b)}if(a){const g=f==="y"?"top":"left",y=f==="y"?"bottom":"right",m=v+c[g],b=v-c[y];v=S0(m,v,b)}const p=s.fn({...t,[d]:h,[f]:v});return{...p,data:{x:p.x-r,y:p.y-n}}}}},Gde=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=ai(e,t),c={x:r,y:n},f=Xi(i),d=ww(f);let h=c[d],v=c[f];const p=ai(s,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const b=d==="y"?"height":"width",w=o.reference[d]-o.floating[b]+g.mainAxis,x=o.reference[d]+o.reference[b]-g.mainAxis;hx&&(h=x)}if(u){var y,m;const b=d==="y"?"width":"height",w=["top","left"].includes(si(i)),x=o.reference[f]-o.floating[b]+(w&&((y=a.offset)==null?void 0:y[f])||0)+(w?0:g.crossAxis),S=o.reference[f]+o.reference[b]+(w?0:((m=a.offset)==null?void 0:m[f])||0)-(w?g.crossAxis:0);vS&&(v=S)}return{[d]:h,[f]:v}}}},qde=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:o}=t,{apply:a=()=>{},...s}=ai(e,t),l=await Zu(t,s),u=si(r),c=Ys(r),f=Xi(r)==="y",{width:d,height:h}=n.floating;let v,p;u==="top"||u==="bottom"?(v=u,p=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(p=u,v=c==="end"?"top":"bottom");const g=h-l.top-l.bottom,y=d-l.left-l.right,m=yn(h-l[v],g),b=yn(d-l[p],y),w=!t.middlewareData.shift;let x=m,S=b;if(f?S=c||w?yn(b,y):y:x=c||w?yn(m,g):g,w&&!c){const E=sr(l.left,0),A=sr(l.right,0),C=sr(l.top,0),T=sr(l.bottom,0);f?S=d-2*(E!==0||A!==0?E+A:sr(l.left,l.right)):x=h-2*(C!==0||T!==0?C+T:sr(l.top,l.bottom))}await a({...t,availableWidth:S,availableHeight:x});const _=await i.getDimensions(o.floating);return d!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}};function Vs(e){return T6(e)?(e.nodeName||"").toLowerCase():"#document"}function fr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pi(e){var t;return(t=(T6(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function T6(e){return e instanceof Node||e instanceof fr(e).Node}function rn(e){return e instanceof Element||e instanceof fr(e).Element}function _n(e){return e instanceof HTMLElement||e instanceof fr(e).HTMLElement}function k_(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fr(e).ShadowRoot}function Pc(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=nn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function Kde(e){return["table","td","th"].includes(Vs(e))}function Zp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ow(e){const t=_w(),r=rn(e)?nn(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Xde(e){let t=Zi(e);for(;_n(t)&&!ms(t);){if(Ow(t))return t;if(Zp(t))return null;t=Zi(t)}return null}function _w(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ms(e){return["html","body","#document"].includes(Vs(e))}function nn(e){return fr(e).getComputedStyle(e)}function Qp(e){return rn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zi(e){if(Vs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||k_(e)&&e.host||pi(e);return k_(t)?t.host:t}function M6(e){const t=Zi(e);return ms(t)?e.ownerDocument?e.ownerDocument.body:e.body:_n(t)&&Pc(t)?t:M6(t)}function Qu(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=M6(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),a=fr(i);return o?t.concat(a,a.visualViewport||[],Pc(i)?i:[],a.frameElement&&r?Qu(a.frameElement):[]):t.concat(i,Qu(i,[],r))}function j6(e){const t=nn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=_n(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=ph(r)!==o||ph(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function Pw(e){return rn(e)?e:e.contextElement}function Ba(e){const t=Pw(e);if(!_n(t))return Ki(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=j6(t);let a=(o?ph(r.width):r.width)/n,s=(o?ph(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Zde=Ki(0);function $6(e){const t=fr(e);return!_w()||!t.visualViewport?Zde:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qde(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fr(e)?!1:t}function Vo(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=Pw(e);let a=Ki(1);t&&(n?rn(n)&&(a=Ba(n)):a=Ba(e));const s=Qde(o,r,n)?$6(o):Ki(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,f=i.height/a.y;if(o){const d=fr(o),h=n&&rn(n)?fr(n):n;let v=d,p=v.frameElement;for(;p&&n&&h!==v;){const g=Ba(p),y=p.getBoundingClientRect(),m=nn(p),b=y.left+(p.clientLeft+parseFloat(m.paddingLeft))*g.x,w=y.top+(p.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,u*=g.y,c*=g.x,f*=g.y,l+=b,u+=w,v=fr(p),p=v.frameElement}}return vh({width:c,height:f,x:l,y:u})}function Jde(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",a=pi(n),s=t?Zp(t.floating):!1;if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},u=Ki(1);const c=Ki(0),f=_n(n);if((f||!f&&!o)&&((Vs(n)!=="body"||Pc(a))&&(l=Qp(n)),_n(n))){const d=Vo(n);u=Ba(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x,y:r.y*u.y-l.scrollTop*u.y+c.y}}function ehe(e){return Array.from(e.getClientRects())}function N6(e){return Vo(pi(e)).left+Qp(e).scrollLeft}function the(e){const t=pi(e),r=Qp(e),n=e.ownerDocument.body,i=sr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=sr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+N6(e);const s=-r.scrollTop;return nn(n).direction==="rtl"&&(a+=sr(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}function rhe(e,t){const r=fr(e),n=pi(e),i=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=_w();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}function nhe(e,t){const r=Vo(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=_n(e)?Ba(e):Ki(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=n*o.y;return{width:a,height:s,x:l,y:u}}function A_(e,t,r){let n;if(t==="viewport")n=rhe(e,r);else if(t==="document")n=the(pi(e));else if(rn(t))n=nhe(t,r);else{const i=$6(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return vh(n)}function I6(e,t){const r=Zi(e);return r===t||!rn(r)||ms(r)?!1:nn(r).position==="fixed"||I6(r,t)}function ihe(e,t){const r=t.get(e);if(r)return r;let n=Qu(e,[],!1).filter(s=>rn(s)&&Vs(s)!=="body"),i=null;const o=nn(e).position==="fixed";let a=o?Zi(e):e;for(;rn(a)&&!ms(a);){const s=nn(a),l=Ow(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Pc(a)&&!l&&I6(e,a))?n=n.filter(c=>c!==a):i=s,a=Zi(a)}return t.set(e,n),n}function ohe(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const a=[...r==="clippingAncestors"?Zp(t)?[]:ihe(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((u,c)=>{const f=A_(t,c,i);return u.top=sr(f.top,u.top),u.right=yn(f.right,u.right),u.bottom=yn(f.bottom,u.bottom),u.left=sr(f.left,u.left),u},A_(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ahe(e){const{width:t,height:r}=j6(e);return{width:t,height:r}}function she(e,t,r){const n=_n(t),i=pi(t),o=r==="fixed",a=Vo(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Ki(0);if(n||!n&&!o)if((Vs(t)!=="body"||Pc(i))&&(s=Qp(t)),n){const f=Vo(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=N6(i));const u=a.left+s.scrollLeft-l.x,c=a.top+s.scrollTop-l.y;return{x:u,y:c,width:a.width,height:a.height}}function Ov(e){return nn(e).position==="static"}function T_(e,t){return!_n(e)||nn(e).position==="fixed"?null:t?t(e):e.offsetParent}function D6(e,t){const r=fr(e);if(Zp(e))return r;if(!_n(e)){let i=Zi(e);for(;i&&!ms(i);){if(rn(i)&&!Ov(i))return i;i=Zi(i)}return r}let n=T_(e,t);for(;n&&Kde(n)&&Ov(n);)n=T_(n,t);return n&&ms(n)&&Ov(n)&&!Ow(n)?r:n||Xde(e)||r}const lhe=async function(e){const t=this.getOffsetParent||D6,r=this.getDimensions,n=await r(e.floating);return{reference:she(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function uhe(e){return nn(e).direction==="rtl"}const che={convertOffsetParentRelativeRectToViewportRelativeRect:Jde,getDocumentElement:pi,getClippingRect:ohe,getOffsetParent:D6,getElementRects:lhe,getClientRects:ehe,getDimensions:ahe,getScale:Ba,isElement:rn,isRTL:uhe};function fhe(e,t){let r=null,n;const i=pi(e);function o(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const h=cf(c),v=cf(i.clientWidth-(u+f)),p=cf(i.clientHeight-(c+d)),g=cf(u),m={rootMargin:-h+"px "+-v+"px "+-p+"px "+-g+"px",threshold:sr(0,yn(1,l))||1};let b=!0;function w(x){const S=x[0].intersectionRatio;if(S!==l){if(!b)return a();S?a(!1,S):n=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{r=new IntersectionObserver(w,{...m,root:i.ownerDocument})}catch{r=new IntersectionObserver(w,m)}r.observe(e)}return a(!0),o}function dhe(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Pw(e),c=i||o?[...u?Qu(u):[],...Qu(t)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),o&&y.addEventListener("resize",r)});const f=u&&s?fhe(u,r):null;let d=-1,h=null;a&&(h=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),r()}),u&&!l&&h.observe(u),h.observe(t));let v,p=l?Vo(e):null;l&&g();function g(){const y=Vo(e);p&&(y.x!==p.x||y.y!==p.y||y.width!==p.width||y.height!==p.height)&&r(),p=y,v=requestAnimationFrame(g)}return r(),()=>{var y;c.forEach(m=>{i&&m.removeEventListener("scroll",r),o&&m.removeEventListener("resize",r)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const hhe=Yde,phe=Vde,mhe=Wde,vhe=qde,yhe=Hde,M_=Bde,ghe=Gde,bhe=(e,t,r)=>{const n=new Map,i={platform:che,...r},o={...i.platform,_c:n};return Fde(e,t,{...i,platform:o})};var Nf=typeof document<"u"?O.useLayoutEffect:O.useEffect;function yh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!yh(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!yh(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function R6(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function j_(e,t){const r=R6(e);return Math.round(t*r)/r}function $_(e){const t=O.useRef(e);return Nf(()=>{t.current=e}),t}function whe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,f]=O.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=O.useState(n);yh(d,n)||h(n);const[v,p]=O.useState(null),[g,y]=O.useState(null),m=O.useCallback(D=>{D!==S.current&&(S.current=D,p(D))},[]),b=O.useCallback(D=>{D!==_.current&&(_.current=D,y(D))},[]),w=o||v,x=a||g,S=O.useRef(null),_=O.useRef(null),E=O.useRef(c),A=l!=null,C=$_(l),T=$_(i),k=O.useCallback(()=>{if(!S.current||!_.current)return;const D={placement:t,strategy:r,middleware:d};T.current&&(D.platform=T.current),bhe(S.current,_.current,D).then(N=>{const L={...N,isPositioned:!0};j.current&&!yh(E.current,L)&&(E.current=L,_s.flushSync(()=>{f(L)}))})},[d,t,r,T]);Nf(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[u]);const j=O.useRef(!1);Nf(()=>(j.current=!0,()=>{j.current=!1}),[]),Nf(()=>{if(w&&(S.current=w),x&&(_.current=x),w&&x){if(C.current)return C.current(w,x,k);k()}},[w,x,k,C,A]);const M=O.useMemo(()=>({reference:S,floating:_,setReference:m,setFloating:b}),[m,b]),R=O.useMemo(()=>({reference:w,floating:x}),[w,x]),I=O.useMemo(()=>{const D={position:r,left:0,top:0};if(!R.floating)return D;const N=j_(R.floating,c.x),L=j_(R.floating,c.y);return s?{...D,transform:"translate("+N+"px, "+L+"px)",...R6(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:N,top:L}},[r,s,R.floating,c.x,c.y]);return O.useMemo(()=>({...c,update:k,refs:M,elements:R,floatingStyles:I}),[c,k,M,R,I])}const xhe=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?M_({element:n.current,padding:i}).fn(r):{}:n?M_({element:n,padding:i}).fn(r):{}}}},She=(e,t)=>({...hhe(e),options:[e,t]}),Ohe=(e,t)=>({...phe(e),options:[e,t]}),_he=(e,t)=>({...ghe(e),options:[e,t]}),Phe=(e,t)=>({...mhe(e),options:[e,t]}),Ehe=(e,t)=>({...vhe(e),options:[e,t]}),Che=(e,t)=>({...yhe(e),options:[e,t]}),khe=(e,t)=>({...xhe(e),options:[e,t]});var Ahe="Arrow",L6=O.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...o}=e;return P.jsx(ot.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});L6.displayName=Ahe;var The=L6;function Mhe(e){const[t,r]=O.useState(void 0);return pr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Ew="Popper",[z6,F6]=Kp(Ew),[jhe,B6]=z6(Ew),W6=e=>{const{__scopePopper:t,children:r}=e,[n,i]=O.useState(null);return P.jsx(jhe,{scope:t,anchor:n,onAnchorChange:i,children:r})};W6.displayName=Ew;var H6="PopperAnchor",U6=O.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,o=B6(H6,r),a=O.useRef(null),s=Mt(t,a);return O.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:P.jsx(ot.div,{...i,ref:s})});U6.displayName=H6;var Cw="PopperContent",[$he,Nhe]=z6(Cw),Y6=O.forwardRef((e,t)=>{var re,we,V,Z,Q,F;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:v,...p}=e,g=B6(Cw,r),[y,m]=O.useState(null),b=Mt(t,xe=>m(xe)),[w,x]=O.useState(null),S=Mhe(w),_=(S==null?void 0:S.width)??0,E=(S==null?void 0:S.height)??0,A=n+(o!=="center"?"-"+o:""),C=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},T=Array.isArray(u)?u:[u],k=T.length>0,j={padding:C,boundary:T.filter(Dhe),altBoundary:k},{refs:M,floatingStyles:R,placement:I,isPositioned:D,middlewareData:N}=whe({strategy:"fixed",placement:A,whileElementsMounted:(...xe)=>dhe(...xe,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[She({mainAxis:i+E,alignmentAxis:a}),l&&Ohe({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?_he():void 0,...j}),l&&Phe({...j}),Ehe({...j,apply:({elements:xe,rects:se,availableWidth:Fe,availableHeight:De})=>{const{width:dt,height:Lr}=se.reference,An=xe.floating.style;An.setProperty("--radix-popper-available-width",`${Fe}px`),An.setProperty("--radix-popper-available-height",`${De}px`),An.setProperty("--radix-popper-anchor-width",`${dt}px`),An.setProperty("--radix-popper-anchor-height",`${Lr}px`)}}),w&&khe({element:w,padding:s}),Rhe({arrowWidth:_,arrowHeight:E}),d&&Che({strategy:"referenceHidden",...j})]}),[L,W]=q6(I),Y=oi(v);pr(()=>{D&&(Y==null||Y())},[D,Y]);const G=(re=N.arrow)==null?void 0:re.x,ie=(we=N.arrow)==null?void 0:we.y,ye=((V=N.arrow)==null?void 0:V.centerOffset)!==0,[Ae,Qe]=O.useState();return pr(()=>{y&&Qe(window.getComputedStyle(y).zIndex)},[y]),P.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:D?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[(Z=N.transformOrigin)==null?void 0:Z.x,(Q=N.transformOrigin)==null?void 0:Q.y].join(" "),...((F=N.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:P.jsx($he,{scope:r,placedSide:L,onArrowChange:x,arrowX:G,arrowY:ie,shouldHideArrow:ye,children:P.jsx(ot.div,{"data-side":L,"data-align":W,...p,ref:b,style:{...p.style,animation:D?void 0:"none"}})})})});Y6.displayName=Cw;var V6="PopperArrow",Ihe={top:"bottom",right:"left",bottom:"top",left:"right"},G6=O.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,o=Nhe(V6,n),a=Ihe[o.placedSide];return P.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:P.jsx(The,{...i,ref:r,style:{...i.style,display:"block"}})})});G6.displayName=V6;function Dhe(e){return e!==null}var Rhe=e=>({name:"transformOrigin",options:e,fn(t){var g,y,m;const{placement:r,rects:n,middlewareData:i}=t,a=((g=i.arrow)==null?void 0:g.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,c]=q6(r),f={start:"0%",center:"50%",end:"100%"}[c],d=(((y=i.arrow)==null?void 0:y.x)??0)+s/2,h=(((m=i.arrow)==null?void 0:m.y)??0)+l/2;let v="",p="";return u==="bottom"?(v=a?f:`${d}px`,p=`${-l}px`):u==="top"?(v=a?f:`${d}px`,p=`${n.floating.height+l}px`):u==="right"?(v=`${-l}px`,p=a?f:`${h}px`):u==="left"&&(v=`${n.floating.width+l}px`,p=a?f:`${h}px`),{data:{x:v,y:p}}}});function q6(e){const[t,r="center"]=e.split("-");return[t,r]}var Lhe=W6,zhe=U6,Fhe=Y6,Bhe=G6,Whe="Portal",K6=O.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[i,o]=O.useState(!1);pr(()=>o(!0),[]);const a=r||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?oI.createPortal(P.jsx(ot.div,{...n,ref:t}),a):null});K6.displayName=Whe;function N_({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=Hhe({defaultProp:t,onChange:r}),o=e!==void 0,a=o?e:n,s=oi(r),l=O.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else i(u)},[o,e,i,s]);return[a,l]}function Hhe({defaultProp:e,onChange:t}){const r=O.useState(e),[n]=r,i=O.useRef(n),o=oi(t);return O.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}function Uhe(e){const t=O.useRef({value:e,previous:e});return O.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Yhe="VisuallyHidden",X6=O.forwardRef((e,t)=>P.jsx(ot.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));X6.displayName=Yhe;var Vhe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ca=new WeakMap,ff=new WeakMap,df={},_v=0,Z6=function(e){return e&&(e.host||Z6(e.parentNode))},Ghe=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Z6(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},qhe=function(e,t,r,n){var i=Ghe(t,Array.isArray(e)?e:[e]);df[r]||(df[r]=new WeakMap);var o=df[r],a=[],s=new Set,l=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))c(d);else try{var h=d.getAttribute(n),v=h!==null&&h!=="false",p=(ca.get(d)||0)+1,g=(o.get(d)||0)+1;ca.set(d,p),o.set(d,g),a.push(d),p===1&&v&&ff.set(d,!0),g===1&&d.setAttribute(r,"true"),v||d.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return c(t),s.clear(),_v++,function(){a.forEach(function(f){var d=ca.get(f)-1,h=o.get(f)-1;ca.set(f,d),o.set(f,h),d||(ff.has(f)||f.removeAttribute(n),ff.delete(f)),h||f.removeAttribute(r)}),_v--,_v||(ca=new WeakMap,ca=new WeakMap,ff=new WeakMap,df={})}},Khe=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=Vhe(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),qhe(n,i,r,"aria-hidden")):function(){return null}},mn=function(){return mn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u")return dpe;var t=hpe(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},mpe=tj(),Wa="data-scroll-locked",vpe=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),` + .`.concat(Zhe,` { overflow: hidden `).concat(n,`; padding-right: `).concat(s,"px ").concat(n,`; } @@ -270,13 +270,13 @@ Defaulting to \`null\`.`}var O6=b6,ode=x6;const v_=(e=0,t)=>e*100/t,ade=e=>e<25? } body[`).concat(Wa,`] { - `).concat(ipe,": ").concat(s,`px; + `).concat(Qhe,": ").concat(s,`px; } -`)},D_=function(){var e=parseInt(document.body.getAttribute(Wa)||"0",10);return isFinite(e)?e:0},Ope=function(){O.useEffect(function(){return document.body.setAttribute(Wa,(D_()+1).toString()),function(){var e=D_()-1;e<=0?document.body.removeAttribute(Wa):document.body.setAttribute(Wa,e.toString())}},[])},_pe=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;Ope();var o=O.useMemo(function(){return wpe(i)},[i]);return O.createElement(xpe,{styles:Spe(o,!t,i,r?"":"!important")})},_0=!1;if(typeof window<"u")try{var pf=Object.defineProperty({},"passive",{get:function(){return _0=!0,!0}});window.addEventListener("test",pf,pf),window.removeEventListener("test",pf,pf)}catch{_0=!1}var fa=_0?{passive:!1}:!1,Ppe=function(e){return e.tagName==="TEXTAREA"},nj=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ppe(e)&&r[t]==="visible")},Epe=function(e){return nj(e,"overflowY")},Cpe=function(e){return nj(e,"overflowX")},R_=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=ij(e,n);if(i){var o=oj(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},kpe=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Ape=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ij=function(e,t){return e==="v"?Epe(t):Cpe(t)},oj=function(e,t){return e==="v"?kpe(t):Ape(t)},Tpe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mpe=function(e,t,r,n,i){var o=Tpe(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,l=t.contains(s),u=!1,c=a>0,f=0,d=0;do{var h=oj(e,s),v=h[0],p=h[1],g=h[2],y=p-g-o*v;(v||y)&&ij(e,s)&&(f+=y,d+=v),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(Math.abs(f)<1||!i)||!c&&(Math.abs(d)<1||!i))&&(u=!0),u},mf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L_=function(e){return[e.deltaX,e.deltaY]},z_=function(e){return e&&"current"in e?e.current:e},jpe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$pe=function(e){return` +`)},D_=function(){var e=parseInt(document.body.getAttribute(Wa)||"0",10);return isFinite(e)?e:0},ype=function(){O.useEffect(function(){return document.body.setAttribute(Wa,(D_()+1).toString()),function(){var e=D_()-1;e<=0?document.body.removeAttribute(Wa):document.body.setAttribute(Wa,e.toString())}},[])},gpe=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;ype();var o=O.useMemo(function(){return ppe(i)},[i]);return O.createElement(mpe,{styles:vpe(o,!t,i,r?"":"!important")})},_0=!1;if(typeof window<"u")try{var hf=Object.defineProperty({},"passive",{get:function(){return _0=!0,!0}});window.addEventListener("test",hf,hf),window.removeEventListener("test",hf,hf)}catch{_0=!1}var fa=_0?{passive:!1}:!1,bpe=function(e){return e.tagName==="TEXTAREA"},rj=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!bpe(e)&&r[t]==="visible")},wpe=function(e){return rj(e,"overflowY")},xpe=function(e){return rj(e,"overflowX")},R_=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=nj(e,n);if(i){var o=ij(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Spe=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Ope=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},nj=function(e,t){return e==="v"?wpe(t):xpe(t)},ij=function(e,t){return e==="v"?Spe(t):Ope(t)},_pe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ppe=function(e,t,r,n,i){var o=_pe(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,l=t.contains(s),u=!1,c=a>0,f=0,d=0;do{var h=ij(e,s),v=h[0],p=h[1],g=h[2],y=p-g-o*v;(v||y)&&nj(e,s)&&(f+=y,d+=v),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(Math.abs(f)<1||!i)||!c&&(Math.abs(d)<1||!i))&&(u=!0),u},pf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L_=function(e){return[e.deltaX,e.deltaY]},z_=function(e){return e&&"current"in e?e.current:e},Epe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Cpe=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Npe=0,da=[];function Ipe(e){var t=O.useRef([]),r=O.useRef([0,0]),n=O.useRef(),i=O.useState(Npe++)[0],o=O.useState(rj)[0],a=O.useRef(e);O.useEffect(function(){a.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=rpe([e.lockRef.current],(e.shards||[]).map(z_),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=O.useCallback(function(p,g){if("touches"in p&&p.touches.length===2)return!a.current.allowPinchZoom;var y=mf(p),m=r.current,b="deltaX"in p?p.deltaX:m[0]-y[0],w="deltaY"in p?p.deltaY:m[1]-y[1],x,S=p.target,_=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in p&&_==="h"&&S.type==="range")return!1;var E=R_(_,S);if(!E)return!0;if(E?x=_:(x=_==="v"?"h":"v",E=R_(_,S)),!E)return!1;if(!n.current&&"changedTouches"in p&&(b||w)&&(n.current=x),!x)return!0;var A=n.current||x;return Mpe(A,g,p,A==="h"?b:w,!0)},[]),l=O.useCallback(function(p){var g=p;if(!(!da.length||da[da.length-1]!==o)){var y="deltaY"in g?L_(g):mf(g),m=t.current.filter(function(x){return x.name===g.type&&(x.target===g.target||g.target===x.shadowParent)&&jpe(x.delta,y)})[0];if(m&&m.should){g.cancelable&&g.preventDefault();return}if(!m){var b=(a.current.shards||[]).map(z_).filter(Boolean).filter(function(x){return x.contains(g.target)}),w=b.length>0?s(g,b[0]):!a.current.noIsolation;w&&g.cancelable&&g.preventDefault()}}},[]),u=O.useCallback(function(p,g,y,m){var b={name:p,delta:g,target:y,should:m,shadowParent:Dpe(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),c=O.useCallback(function(p){r.current=mf(p),n.current=void 0},[]),f=O.useCallback(function(p){u(p.type,L_(p),p.target,s(p,e.lockRef.current))},[]),d=O.useCallback(function(p){u(p.type,mf(p),p.target,s(p,e.lockRef.current))},[]);O.useEffect(function(){return da.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,fa),document.addEventListener("touchmove",l,fa),document.addEventListener("touchstart",c,fa),function(){da=da.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,fa),document.removeEventListener("touchmove",l,fa),document.removeEventListener("touchstart",c,fa)}},[]);var h=e.removeScrollBar,v=e.inert;return O.createElement(O.Fragment,null,v?O.createElement(o,{styles:$pe(i)}):null,h?O.createElement(_pe,{gapMode:e.gapMode}):null)}function Dpe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Rpe=fpe(tj,Ipe);var aj=O.forwardRef(function(e,t){return O.createElement(Jp,mn({},e,{ref:t,sideCar:Rpe}))});aj.classNames=Jp.classNames;var Lpe=[" ","Enter","ArrowUp","ArrowDown"],zpe=[" ","Enter"],Ec="Select",[em,tm,Fpe]=yde(Ec),[Gs,Pye]=Kp(Ec,[Fpe,B6]),rm=B6(),[Bpe,ao]=Gs(Ec),[Wpe,Hpe]=Gs(Ec),sj=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:o,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:f,disabled:d,required:h}=e,v=rm(t),[p,g]=O.useState(null),[y,m]=O.useState(null),[b,w]=O.useState(!1),x=bde(u),[S=!1,_]=N_({prop:n,defaultProp:i,onChange:o}),[E,A]=N_({prop:a,defaultProp:s,onChange:l}),C=O.useRef(null),T=p?!!p.closest("form"):!0,[k,j]=O.useState(new Set),M=Array.from(k).map(R=>R.props.value).join(";");return P.jsx(Uhe,{...v,children:P.jsxs(Bpe,{required:h,scope:t,trigger:p,onTriggerChange:g,valueNode:y,onValueNodeChange:m,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:bw(),value:E,onValueChange:A,open:S,onOpenChange:_,dir:x,triggerPointerDownPosRef:C,disabled:d,children:[P.jsx(em.Provider,{scope:t,children:P.jsx(Wpe,{scope:e.__scopeSelect,onNativeOptionAdd:O.useCallback(R=>{j(I=>new Set(I).add(R))},[]),onNativeOptionRemove:O.useCallback(R=>{j(I=>{const D=new Set(I);return D.delete(R),D})},[]),children:r})}),T?P.jsxs(jj,{"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:f,value:E,onChange:R=>A(R.target.value),disabled:d,children:[E===void 0?P.jsx("option",{value:""}):null,Array.from(k)]},M):null]})})};sj.displayName=Ec;var lj="SelectTrigger",uj=O.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,o=rm(r),a=ao(lj,r),s=a.disabled||n,l=Mt(t,a.onTriggerChange),u=tm(r),[c,f,d]=$j(v=>{const p=u().filter(m=>!m.disabled),g=p.find(m=>m.value===a.value),y=Nj(p,v,g);y!==void 0&&a.onValueChange(y.value)}),h=()=>{s||(a.onOpenChange(!0),d())};return P.jsx(Yhe,{asChild:!0,...o,children:P.jsx(ot.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Mj(a.value)?"":void 0,...i,ref:l,onClick:St(i.onClick,v=>{v.currentTarget.focus()}),onPointerDown:St(i.onPointerDown,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&(h(),a.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)},v.preventDefault())}),onKeyDown:St(i.onKeyDown,v=>{const p=c.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&f(v.key),!(p&&v.key===" ")&&Lpe.includes(v.key)&&(h(),v.preventDefault())})})})});uj.displayName=lj;var cj="SelectValue",fj=O.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...s}=e,l=ao(cj,r),{onValueNodeHasChildrenChange:u}=l,c=o!==void 0,f=Mt(t,l.onValueNodeChange);return pr(()=>{u(c)},[u,c]),P.jsx(ot.span,{...s,ref:f,style:{pointerEvents:"none"},children:Mj(l.value)?P.jsx(P.Fragment,{children:a}):o})});fj.displayName=cj;var Upe="SelectIcon",dj=O.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return P.jsx(ot.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});dj.displayName=Upe;var Ype="SelectPortal",hj=e=>P.jsx(X6,{asChild:!0,...e});hj.displayName=Ype;var Go="SelectContent",pj=O.forwardRef((e,t)=>{const r=ao(Go,e.__scopeSelect),[n,i]=O.useState();if(pr(()=>{i(new DocumentFragment)},[]),!r.open){const o=n;return o?_s.createPortal(P.jsx(mj,{scope:e.__scopeSelect,children:P.jsx(em.Slot,{scope:e.__scopeSelect,children:P.jsx("div",{children:e.children})})}),o):null}return P.jsx(vj,{...e,ref:t})});pj.displayName=Go;var Nn=10,[mj,so]=Gs(Go),Vpe="SelectContentImpl",vj=O.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:g,...y}=e,m=ao(Go,r),[b,w]=O.useState(null),[x,S]=O.useState(null),_=Mt(t,re=>w(re)),[E,A]=O.useState(null),[C,T]=O.useState(null),k=tm(r),[j,M]=O.useState(!1),R=O.useRef(!1);O.useEffect(()=>{if(b)return tpe(b)},[b]),kde();const I=O.useCallback(re=>{const[we,...V]=k().map(F=>F.ref.current),[Z]=V.slice(-1),Q=document.activeElement;for(const F of re)if(F===Q||(F==null||F.scrollIntoView({block:"nearest"}),F===we&&x&&(x.scrollTop=0),F===Z&&x&&(x.scrollTop=x.scrollHeight),F==null||F.focus(),document.activeElement!==Q))return},[k,x]),D=O.useCallback(()=>I([E,b]),[I,E,b]);O.useEffect(()=>{j&&D()},[j,D]);const{onOpenChange:N,triggerPointerDownPosRef:L}=m;O.useEffect(()=>{if(b){let re={x:0,y:0};const we=Z=>{var Q,F;re={x:Math.abs(Math.round(Z.pageX)-(((Q=L.current)==null?void 0:Q.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((F=L.current)==null?void 0:F.y)??0))}},V=Z=>{re.x<=10&&re.y<=10?Z.preventDefault():b.contains(Z.target)||N(!1),document.removeEventListener("pointermove",we),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",V,{capture:!0})}}},[b,N,L]),O.useEffect(()=>{const re=()=>N(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[N]);const[W,Y]=$j(re=>{const we=k().filter(Q=>!Q.disabled),V=we.find(Q=>Q.ref.current===document.activeElement),Z=Nj(we,re,V);Z&&setTimeout(()=>Z.ref.current.focus())}),G=O.useCallback((re,we,V)=>{const Z=!R.current&&!V;(m.value!==void 0&&m.value===we||Z)&&(A(re),Z&&(R.current=!0))},[m.value]),ie=O.useCallback(()=>b==null?void 0:b.focus(),[b]),ye=O.useCallback((re,we,V)=>{const Z=!R.current&&!V;(m.value!==void 0&&m.value===we||Z)&&T(re)},[m.value]),Ae=n==="popper"?P0:yj,Qe=Ae===P0?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:g}:{};return P.jsx(mj,{scope:r,content:b,viewport:x,onViewportChange:S,itemRefCallback:G,selectedItem:E,onItemLeave:ie,itemTextRefCallback:ye,focusSelectedItem:D,selectedItemText:C,position:n,isPositioned:j,searchRef:W,children:P.jsx(aj,{as:Xu,allowPinchZoom:!0,children:P.jsx(k6,{asChild:!0,trapped:m.open,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:St(i,re=>{var we;(we=m.trigger)==null||we.focus({preventScroll:!0}),re.preventDefault()}),children:P.jsx(E6,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:P.jsx(Ae,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:re=>re.preventDefault(),...y,...Qe,onPlaced:()=>M(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:St(y.onKeyDown,re=>{const we=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!we&&re.key.length===1&&Y(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let Z=k().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(re.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){const Q=re.target,F=Z.indexOf(Q);Z=Z.slice(F+1)}setTimeout(()=>I(Z)),re.preventDefault()}})})})})})})});vj.displayName=Vpe;var Gpe="SelectItemAlignedPosition",yj=O.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,o=ao(Go,r),a=so(Go,r),[s,l]=O.useState(null),[u,c]=O.useState(null),f=Mt(t,_=>c(_)),d=tm(r),h=O.useRef(!1),v=O.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:y,focusSelectedItem:m}=a,b=O.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&p&&g&&y){const _=o.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),A=o.valueNode.getBoundingClientRect(),C=y.getBoundingClientRect();if(o.dir!=="rtl"){const Q=C.left-E.left,F=A.left-Q,xe=_.left-F,se=_.width+xe,Fe=Math.max(se,E.width),De=window.innerWidth-Nn,dt=y_(F,[Nn,De-Fe]);s.style.minWidth=se+"px",s.style.left=dt+"px"}else{const Q=E.right-C.right,F=window.innerWidth-A.right-Q,xe=window.innerWidth-_.right-F,se=_.width+xe,Fe=Math.max(se,E.width),De=window.innerWidth-Nn,dt=y_(F,[Nn,De-Fe]);s.style.minWidth=se+"px",s.style.right=dt+"px"}const T=d(),k=window.innerHeight-Nn*2,j=p.scrollHeight,M=window.getComputedStyle(u),R=parseInt(M.borderTopWidth,10),I=parseInt(M.paddingTop,10),D=parseInt(M.borderBottomWidth,10),N=parseInt(M.paddingBottom,10),L=R+I+j+N+D,W=Math.min(g.offsetHeight*5,L),Y=window.getComputedStyle(p),G=parseInt(Y.paddingTop,10),ie=parseInt(Y.paddingBottom,10),ye=_.top+_.height/2-Nn,Ae=k-ye,Qe=g.offsetHeight/2,re=g.offsetTop+Qe,we=R+I+re,V=L-we;if(we<=ye){const Q=g===T[T.length-1].ref.current;s.style.bottom="0px";const F=u.clientHeight-p.offsetTop-p.offsetHeight,xe=Math.max(Ae,Qe+(Q?ie:0)+F+D),se=we+xe;s.style.height=se+"px"}else{const Q=g===T[0].ref.current;s.style.top="0px";const xe=Math.max(ye,R+p.offsetTop+(Q?G:0)+Qe)+V;s.style.height=xe+"px",p.scrollTop=we-ye+p.offsetTop}s.style.margin=`${Nn}px 0`,s.style.minHeight=W+"px",s.style.maxHeight=k+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,o.trigger,o.valueNode,s,u,p,g,y,o.dir,n]);pr(()=>b(),[b]);const[w,x]=O.useState();pr(()=>{u&&x(window.getComputedStyle(u).zIndex)},[u]);const S=O.useCallback(_=>{_&&v.current===!0&&(b(),m==null||m(),v.current=!1)},[b,m]);return P.jsx(Kpe,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:P.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:P.jsx(ot.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});yj.displayName=Gpe;var qpe="SelectPopperPosition",P0=O.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Nn,...o}=e,a=rm(r);return P.jsx(Vhe,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});P0.displayName=qpe;var[Kpe,kw]=Gs(Go,{}),E0="SelectViewport",gj=O.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,o=so(E0,r),a=kw(E0,r),s=Mt(t,o.onViewportChange),l=O.useRef(0);return P.jsxs(P.Fragment,{children:[P.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),P.jsx(em.Slot,{scope:r,children:P.jsx(ot.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:St(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const h=Math.abs(l.current-c.scrollTop);if(h>0){const v=window.innerHeight-Nn*2,p=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),y=Math.max(p,g);if(y0?w:0,f.style.justifyContent="flex-end")}}}l.current=c.scrollTop})})})]})});gj.displayName=E0;var bj="SelectGroup",[Xpe,Zpe]=Gs(bj),Qpe=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=bw();return P.jsx(Xpe,{scope:r,id:i,children:P.jsx(ot.div,{role:"group","aria-labelledby":i,...n,ref:t})})});Qpe.displayName=bj;var wj="SelectLabel",xj=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Zpe(wj,r);return P.jsx(ot.div,{id:i.id,...n,ref:t})});xj.displayName=wj;var gh="SelectItem",[Jpe,Sj]=Gs(gh),Oj=O.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:o,...a}=e,s=ao(gh,r),l=so(gh,r),u=s.value===n,[c,f]=O.useState(o??""),[d,h]=O.useState(!1),v=Mt(t,y=>{var m;return(m=l.itemRefCallback)==null?void 0:m.call(l,y,n,i)}),p=bw(),g=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return P.jsx(Jpe,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:O.useCallback(y=>{f(m=>m||((y==null?void 0:y.textContent)??"").trim())},[]),children:P.jsx(em.ItemSlot,{scope:r,value:n,disabled:i,textValue:c,children:P.jsx(ot.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:v,onFocus:St(a.onFocus,()=>h(!0)),onBlur:St(a.onBlur,()=>h(!1)),onPointerUp:St(a.onPointerUp,g),onPointerMove:St(a.onPointerMove,y=>{var m;i?(m=l.onItemLeave)==null||m.call(l):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:St(a.onPointerLeave,y=>{var m;y.currentTarget===document.activeElement&&((m=l.onItemLeave)==null||m.call(l))}),onKeyDown:St(a.onKeyDown,y=>{var b;((b=l.searchRef)==null?void 0:b.current)!==""&&y.key===" "||(zpe.includes(y.key)&&g(),y.key===" "&&y.preventDefault())})})})})});Oj.displayName=gh;var Pl="SelectItemText",_j=O.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...o}=e,a=ao(Pl,r),s=so(Pl,r),l=Sj(Pl,r),u=Hpe(Pl,r),[c,f]=O.useState(null),d=Mt(t,y=>f(y),l.onItemTextChange,y=>{var m;return(m=s.itemTextRefCallback)==null?void 0:m.call(s,y,l.value,l.disabled)}),h=c==null?void 0:c.textContent,v=O.useMemo(()=>P.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return pr(()=>(p(v),()=>g(v)),[p,g,v]),P.jsxs(P.Fragment,{children:[P.jsx(ot.span,{id:l.textId,...o,ref:d}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?_s.createPortal(o.children,a.valueNode):null]})});_j.displayName=Pl;var Pj="SelectItemIndicator",Ej=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Sj(Pj,r).isSelected?P.jsx(ot.span,{"aria-hidden":!0,...n,ref:t}):null});Ej.displayName=Pj;var C0="SelectScrollUpButton",Cj=O.forwardRef((e,t)=>{const r=so(C0,e.__scopeSelect),n=kw(C0,e.__scopeSelect),[i,o]=O.useState(!1),a=Mt(t,n.onScrollButtonChange);return pr(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=l.scrollTop>0;o(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?P.jsx(Aj,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});Cj.displayName=C0;var k0="SelectScrollDownButton",kj=O.forwardRef((e,t)=>{const r=so(k0,e.__scopeSelect),n=kw(k0,e.__scopeSelect),[i,o]=O.useState(!1),a=Mt(t,n.onScrollButtonChange);return pr(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,c=Math.ceil(l.scrollTop)l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?P.jsx(Aj,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});kj.displayName=k0;var Aj=O.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,o=so("SelectScrollButton",r),a=O.useRef(null),s=tm(r),l=O.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return O.useEffect(()=>()=>l(),[l]),pr(()=>{var c;const u=s().find(f=>f.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[s]),P.jsx(ot.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:St(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:St(i.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:St(i.onPointerLeave,()=>{l()})})}),eme="SelectSeparator",Tj=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return P.jsx(ot.div,{"aria-hidden":!0,...n,ref:t})});Tj.displayName=eme;var A0="SelectArrow",tme=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=rm(r),o=ao(A0,r),a=so(A0,r);return o.open&&a.position==="popper"?P.jsx(Ghe,{...i,...n,ref:t}):null});tme.displayName=A0;function Mj(e){return e===""||e===void 0}var jj=O.forwardRef((e,t)=>{const{value:r,...n}=e,i=O.useRef(null),o=Mt(t,i),a=Xhe(r);return O.useEffect(()=>{const s=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==r&&c){const f=new Event("change",{bubbles:!0});c.call(s,r),s.dispatchEvent(f)}},[a,r]),P.jsx(Z6,{asChild:!0,children:P.jsx("select",{...n,ref:o,defaultValue:r})})});jj.displayName="BubbleSelect";function $j(e){const t=oi(e),r=O.useRef(""),n=O.useRef(0),i=O.useCallback(a=>{const s=r.current+a;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),o=O.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,o]}function Nj(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=rme(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==r));const l=a.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function rme(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var nme=sj,Ij=uj,ime=fj,ome=dj,ame=hj,Dj=pj,sme=gj,Rj=xj,Lj=Oj,lme=_j,ume=Ej,zj=Cj,Fj=kj,Bj=Tj;const Wj=nme,Hj=ime,Aw=O.forwardRef(({className:e,children:t,...r},n)=>P.jsxs(Ij,{ref:n,className:Le("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-neutral-200 bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-white placeholder:text-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 dark:border-neutral-800 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus:ring-neutral-300",e),...r,children:[t,P.jsx(ome,{asChild:!0,children:P.jsx(cde,{className:"h-4 w-4 opacity-50"})})]}));Aw.displayName=Ij.displayName;const Uj=O.forwardRef(({className:e,...t},r)=>P.jsx(zj,{ref:r,className:Le("flex cursor-default items-center justify-center py-1",e),...t,children:P.jsx(vde,{})}));Uj.displayName=zj.displayName;const Yj=O.forwardRef(({className:e,...t},r)=>P.jsx(Fj,{ref:r,className:Le("flex cursor-default items-center justify-center py-1",e),...t,children:P.jsx(pde,{})}));Yj.displayName=Fj.displayName;const Tw=O.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>P.jsx(ame,{children:P.jsxs(Dj,{ref:i,className:Le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[P.jsx(Uj,{}),P.jsx(sme,{className:Le("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),P.jsx(Yj,{})]})}));Tw.displayName=Dj.displayName;const cme=O.forwardRef(({className:e,...t},r)=>P.jsx(Rj,{ref:r,className:Le("px-2 py-1.5 text-sm font-semibold",e),...t}));cme.displayName=Rj.displayName;const Mw=O.forwardRef(({className:e,children:t,...r},n)=>P.jsxs(Lj,{ref:n,className:Le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...r,children:[P.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:P.jsx(ume,{children:P.jsx(dde,{className:"h-4 w-4"})})}),P.jsx(lme,{children:t})]}));Mw.displayName=Lj.displayName;const fme=O.forwardRef(({className:e,...t},r)=>P.jsx(Bj,{ref:r,className:Le("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t}));fme.displayName=Bj.displayName;const Vj=O.forwardRef(({className:e,type:t,...r},n)=>P.jsx("input",{type:t,className:Le("flex h-9 w-full rounded-md border border-neutral-200 bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",e),ref:n,...r}));Vj.displayName="Input";const dme=({title:e,fields:t,onSubmit:r,loading:n})=>{const[i,o]=O.useState(t.reduce((l,u)=>({...l,[u.name]:""}),{})),a=l=>{const{name:u,value:c}=l.target;o({...i,[u]:c})},s=l=>{l.preventDefault(),r(i)};return P.jsxs("div",{className:"min-w-[300px] max-w-[400px] grow animate-bounce-in",children:[P.jsx("h2",{children:e}),P.jsxs("form",{onSubmit:s,children:[t.map(l=>P.jsxs("div",{className:"input-group",children:[P.jsx("label",{htmlFor:l.name,children:l.label}),l.type==="number"?P.jsx(Vj,{type:"number",id:l.name,name:l.name,value:i[l.name],onChange:a,placeholder:`Enter ${l.label.toLowerCase()}`,className:"bg-base-200"}):P.jsx(Wj,{name:l.name,value:i[l.name],onValueChange:u=>a({target:{name:l.name,value:u}}),children:P.jsxs(Aw,{className:"my-2",children:[P.jsx(Hj,{placeholder:`Select ${l.label.toLowerCase()}`}),P.jsx(Tw,{children:l.options.map(u=>P.jsx(Mw,{value:u,children:lR(u)},u))})]})})]},l.name)),P.jsx("button",{className:"carbon-button",type:"submit",disabled:n,children:n?P.jsx("div",{className:"loading loading-spinner loading-sm text-neutral-200"}):"Calculate"})]})]})},Gj=O.forwardRef(({className:e,...t},r)=>P.jsx("div",{ref:r,className:Le("rounded-xl border border-neutral-200 bg-white text-neutral-950 shadow dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));Gj.displayName="Card";const qj=O.forwardRef(({className:e,...t},r)=>P.jsx("div",{ref:r,className:Le("flex flex-col space-y-1.5 p-6",e),...t}));qj.displayName="CardHeader";const Kj=O.forwardRef(({className:e,...t},r)=>P.jsx("h3",{ref:r,className:Le("font-semibold leading-none tracking-tight",e),...t}));Kj.displayName="CardTitle";const Xj=O.forwardRef(({className:e,...t},r)=>P.jsx("p",{ref:r,className:Le("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));Xj.displayName="CardDescription";const hme=O.forwardRef(({className:e,...t},r)=>P.jsx("div",{ref:r,className:Le("p-6 pt-0",e),...t}));hme.displayName="CardContent";const pme=O.forwardRef(({className:e,...t},r)=>P.jsx("div",{ref:r,className:Le("flex items-center p-6 pt-0",e),...t}));pme.displayName="CardFooter";const mme="372578d79fmsh1c62479d9c19a3cp115574jsn623a146e86ef",vme="https://carbonfootprint1.p.rapidapi.com",yme=()=>{const[e,t]=O.useState(null),[r,n]=O.useState(!1),[i,o]=O.useState(null),[a,s]=O.useState(Vc[0]),l=async(u,c)=>{n(!0),o(null);try{const f=await it.get(u,{params:c,headers:{"x-rapidapi-host":new URL(vme).host,"x-rapidapi-key":mme}});t(f.data.carbonEquivalent)}catch(f){o(f.response?f.response.data.message:"An unexpected error occurred.")}finally{n(!1)}};return P.jsxs("div",{style:{backgroundImage:`url(${a.icon})`,backgroundAttachment:"local",backgroundRepeat:"no-repeat",backgroundSize:200,backgroundPosition:"2% 100%"},className:"w-full duration-300 lg:w-3/4 mx-auto lg:my-5 p-10 gap-10 lg:rounded-xl bg-base-200 shadow-lg flex flex-col",children:[P.jsxs("div",{className:"flex flex-wrap justify-around",children:[P.jsxs("div",{className:"flex flex-col justify-center gap-12 overflow-hidden",children:[P.jsx("span",{className:"text-3xl text-center font-bold",children:"Calculate your Carbon Footprint"}),P.jsxs(Wj,{value:a.title,onValueChange:u=>{s(Vc.find(c=>c.title===u)),o(!1),t(null)},children:[P.jsx(Aw,{className:"max-w-[250px] mx-auto my-2 bg-base-200",children:P.jsx(Hj,{placeholder:Vc[0].title})}),P.jsx(Tw,{children:Vc.map(u=>P.jsx(Mw,{value:u.title,children:u.title},u.title))})]})]}),P.jsx(dme,{title:a.title,fields:a.fields,onSubmit:u=>l(a.endpoint,u),loading:r},a.title)]}),!r&&e&&P.jsx(Gj,{className:"w-fit ms-auto",children:P.jsxs(qj,{children:[P.jsxs(Kj,{className:"text-[#2e7d32] font-bold",children:["Result: ",e?`${e} kg CO2e`:"No result available"]}),P.jsxs(Xj,{className:"flex items-baseline gap-1 pt-2",children:[P.jsx(bD,{className:"text-blue-600"}),e&&!isNaN(e)?`${e} kg CO2e is approximately equivalent to ${(Number(e)/100).toFixed(2)} change in AQI`:"Invalid or no result available"]})]})},e)]})};var Zj={},Qj={},nm={},Jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=t})(Jj);var gme="Expected a function",F_=NaN,bme="[object Symbol]",wme=/^\s+|\s+$/g,xme=/^[-+]0x[0-9a-f]+$/i,Sme=/^0b[01]+$/i,Ome=/^0o[0-7]+$/i,_me=parseInt,Pme=typeof ki=="object"&&ki&&ki.Object===Object&&ki,Eme=typeof self=="object"&&self&&self.Object===Object&&self,Cme=Pme||Eme||Function("return this")(),kme=Object.prototype,Ame=kme.toString,Tme=Math.max,Mme=Math.min,kv=function(){return Cme.Date.now()};function jme(e,t,r){var n,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(gme);t=B_(t)||0,T0(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Tme(B_(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(S){var _=n,E=i;return n=i=void 0,u=S,a=e.apply(E,_),a}function v(S){return u=S,s=setTimeout(y,t),c?h(S):a}function p(S){var _=S-l,E=S-u,A=t-_;return f?Mme(A,o-E):A}function g(S){var _=S-l,E=S-u;return l===void 0||_>=t||_<0||f&&E>=o}function y(){var S=kv();if(g(S))return m(S);s=setTimeout(y,p(S))}function m(S){return s=void 0,d&&n?h(S):(n=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function w(){return s===void 0?a:m(kv())}function x(){var S=kv(),_=g(S);if(n=arguments,i=this,l=S,_){if(s===void 0)return v(l);if(f)return s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return x.cancel=b,x.flush=w,x}function T0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $me(e){return!!e&&typeof e=="object"}function Nme(e){return typeof e=="symbol"||$me(e)&&Ame.call(e)==bme}function B_(e){if(typeof e=="number")return e;if(Nme(e))return F_;if(T0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=T0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(wme,"");var r=Sme.test(e);return r||Ome.test(e)?_me(e.slice(2),r?2:8):xme.test(e)?F_:+e}var Ime=jme,e4={exports:{}};/*! +`)},kpe=0,da=[];function Ape(e){var t=O.useRef([]),r=O.useRef([0,0]),n=O.useRef(),i=O.useState(kpe++)[0],o=O.useState(tj)[0],a=O.useRef(e);O.useEffect(function(){a.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=Xhe([e.lockRef.current],(e.shards||[]).map(z_),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=O.useCallback(function(p,g){if("touches"in p&&p.touches.length===2)return!a.current.allowPinchZoom;var y=pf(p),m=r.current,b="deltaX"in p?p.deltaX:m[0]-y[0],w="deltaY"in p?p.deltaY:m[1]-y[1],x,S=p.target,_=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in p&&_==="h"&&S.type==="range")return!1;var E=R_(_,S);if(!E)return!0;if(E?x=_:(x=_==="v"?"h":"v",E=R_(_,S)),!E)return!1;if(!n.current&&"changedTouches"in p&&(b||w)&&(n.current=x),!x)return!0;var A=n.current||x;return Ppe(A,g,p,A==="h"?b:w,!0)},[]),l=O.useCallback(function(p){var g=p;if(!(!da.length||da[da.length-1]!==o)){var y="deltaY"in g?L_(g):pf(g),m=t.current.filter(function(x){return x.name===g.type&&(x.target===g.target||g.target===x.shadowParent)&&Epe(x.delta,y)})[0];if(m&&m.should){g.cancelable&&g.preventDefault();return}if(!m){var b=(a.current.shards||[]).map(z_).filter(Boolean).filter(function(x){return x.contains(g.target)}),w=b.length>0?s(g,b[0]):!a.current.noIsolation;w&&g.cancelable&&g.preventDefault()}}},[]),u=O.useCallback(function(p,g,y,m){var b={name:p,delta:g,target:y,should:m,shadowParent:Tpe(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),c=O.useCallback(function(p){r.current=pf(p),n.current=void 0},[]),f=O.useCallback(function(p){u(p.type,L_(p),p.target,s(p,e.lockRef.current))},[]),d=O.useCallback(function(p){u(p.type,pf(p),p.target,s(p,e.lockRef.current))},[]);O.useEffect(function(){return da.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,fa),document.addEventListener("touchmove",l,fa),document.addEventListener("touchstart",c,fa),function(){da=da.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,fa),document.removeEventListener("touchmove",l,fa),document.removeEventListener("touchstart",c,fa)}},[]);var h=e.removeScrollBar,v=e.inert;return O.createElement(O.Fragment,null,v?O.createElement(o,{styles:Cpe(i)}):null,h?O.createElement(gpe,{gapMode:e.gapMode}):null)}function Tpe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Mpe=ope(ej,Ape);var oj=O.forwardRef(function(e,t){return O.createElement(Jp,mn({},e,{ref:t,sideCar:Mpe}))});oj.classNames=Jp.classNames;var jpe=[" ","Enter","ArrowUp","ArrowDown"],$pe=[" ","Enter"],Ec="Select",[em,tm,Npe]=fde(Ec),[Gs,Pye]=Kp(Ec,[Npe,F6]),rm=F6(),[Ipe,ao]=Gs(Ec),[Dpe,Rpe]=Gs(Ec),aj=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:o,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:f,disabled:d,required:h}=e,v=rm(t),[p,g]=O.useState(null),[y,m]=O.useState(null),[b,w]=O.useState(!1),x=hde(u),[S=!1,_]=N_({prop:n,defaultProp:i,onChange:o}),[E,A]=N_({prop:a,defaultProp:s,onChange:l}),C=O.useRef(null),T=p?!!p.closest("form"):!0,[k,j]=O.useState(new Set),M=Array.from(k).map(R=>R.props.value).join(";");return P.jsx(Lhe,{...v,children:P.jsxs(Ipe,{required:h,scope:t,trigger:p,onTriggerChange:g,valueNode:y,onValueNodeChange:m,valueNodeHasChildren:b,onValueNodeHasChildrenChange:w,contentId:bw(),value:E,onValueChange:A,open:S,onOpenChange:_,dir:x,triggerPointerDownPosRef:C,disabled:d,children:[P.jsx(em.Provider,{scope:t,children:P.jsx(Dpe,{scope:e.__scopeSelect,onNativeOptionAdd:O.useCallback(R=>{j(I=>new Set(I).add(R))},[]),onNativeOptionRemove:O.useCallback(R=>{j(I=>{const D=new Set(I);return D.delete(R),D})},[]),children:r})}),T?P.jsxs(Mj,{"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:f,value:E,onChange:R=>A(R.target.value),disabled:d,children:[E===void 0?P.jsx("option",{value:""}):null,Array.from(k)]},M):null]})})};aj.displayName=Ec;var sj="SelectTrigger",lj=O.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,o=rm(r),a=ao(sj,r),s=a.disabled||n,l=Mt(t,a.onTriggerChange),u=tm(r),[c,f,d]=jj(v=>{const p=u().filter(m=>!m.disabled),g=p.find(m=>m.value===a.value),y=$j(p,v,g);y!==void 0&&a.onValueChange(y.value)}),h=()=>{s||(a.onOpenChange(!0),d())};return P.jsx(zhe,{asChild:!0,...o,children:P.jsx(ot.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Tj(a.value)?"":void 0,...i,ref:l,onClick:St(i.onClick,v=>{v.currentTarget.focus()}),onPointerDown:St(i.onPointerDown,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&(h(),a.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)},v.preventDefault())}),onKeyDown:St(i.onKeyDown,v=>{const p=c.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&f(v.key),!(p&&v.key===" ")&&jpe.includes(v.key)&&(h(),v.preventDefault())})})})});lj.displayName=sj;var uj="SelectValue",cj=O.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...s}=e,l=ao(uj,r),{onValueNodeHasChildrenChange:u}=l,c=o!==void 0,f=Mt(t,l.onValueNodeChange);return pr(()=>{u(c)},[u,c]),P.jsx(ot.span,{...s,ref:f,style:{pointerEvents:"none"},children:Tj(l.value)?P.jsx(P.Fragment,{children:a}):o})});cj.displayName=uj;var Lpe="SelectIcon",fj=O.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return P.jsx(ot.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});fj.displayName=Lpe;var zpe="SelectPortal",dj=e=>P.jsx(K6,{asChild:!0,...e});dj.displayName=zpe;var Go="SelectContent",hj=O.forwardRef((e,t)=>{const r=ao(Go,e.__scopeSelect),[n,i]=O.useState();if(pr(()=>{i(new DocumentFragment)},[]),!r.open){const o=n;return o?_s.createPortal(P.jsx(pj,{scope:e.__scopeSelect,children:P.jsx(em.Slot,{scope:e.__scopeSelect,children:P.jsx("div",{children:e.children})})}),o):null}return P.jsx(mj,{...e,ref:t})});hj.displayName=Go;var Nn=10,[pj,so]=Gs(Go),Fpe="SelectContentImpl",mj=O.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:g,...y}=e,m=ao(Go,r),[b,w]=O.useState(null),[x,S]=O.useState(null),_=Mt(t,re=>w(re)),[E,A]=O.useState(null),[C,T]=O.useState(null),k=tm(r),[j,M]=O.useState(!1),R=O.useRef(!1);O.useEffect(()=>{if(b)return Khe(b)},[b]),Sde();const I=O.useCallback(re=>{const[we,...V]=k().map(F=>F.ref.current),[Z]=V.slice(-1),Q=document.activeElement;for(const F of re)if(F===Q||(F==null||F.scrollIntoView({block:"nearest"}),F===we&&x&&(x.scrollTop=0),F===Z&&x&&(x.scrollTop=x.scrollHeight),F==null||F.focus(),document.activeElement!==Q))return},[k,x]),D=O.useCallback(()=>I([E,b]),[I,E,b]);O.useEffect(()=>{j&&D()},[j,D]);const{onOpenChange:N,triggerPointerDownPosRef:L}=m;O.useEffect(()=>{if(b){let re={x:0,y:0};const we=Z=>{var Q,F;re={x:Math.abs(Math.round(Z.pageX)-(((Q=L.current)==null?void 0:Q.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((F=L.current)==null?void 0:F.y)??0))}},V=Z=>{re.x<=10&&re.y<=10?Z.preventDefault():b.contains(Z.target)||N(!1),document.removeEventListener("pointermove",we),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",V,{capture:!0})}}},[b,N,L]),O.useEffect(()=>{const re=()=>N(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[N]);const[W,Y]=jj(re=>{const we=k().filter(Q=>!Q.disabled),V=we.find(Q=>Q.ref.current===document.activeElement),Z=$j(we,re,V);Z&&setTimeout(()=>Z.ref.current.focus())}),G=O.useCallback((re,we,V)=>{const Z=!R.current&&!V;(m.value!==void 0&&m.value===we||Z)&&(A(re),Z&&(R.current=!0))},[m.value]),ie=O.useCallback(()=>b==null?void 0:b.focus(),[b]),ye=O.useCallback((re,we,V)=>{const Z=!R.current&&!V;(m.value!==void 0&&m.value===we||Z)&&T(re)},[m.value]),Ae=n==="popper"?P0:vj,Qe=Ae===P0?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:g}:{};return P.jsx(pj,{scope:r,content:b,viewport:x,onViewportChange:S,itemRefCallback:G,selectedItem:E,onItemLeave:ie,itemTextRefCallback:ye,focusSelectedItem:D,selectedItemText:C,position:n,isPositioned:j,searchRef:W,children:P.jsx(oj,{as:Xu,allowPinchZoom:!0,children:P.jsx(C6,{asChild:!0,trapped:m.open,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:St(i,re=>{var we;(we=m.trigger)==null||we.focus({preventScroll:!0}),re.preventDefault()}),children:P.jsx(P6,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:P.jsx(Ae,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:re=>re.preventDefault(),...y,...Qe,onPlaced:()=>M(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:St(y.onKeyDown,re=>{const we=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!we&&re.key.length===1&&Y(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let Z=k().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(re.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){const Q=re.target,F=Z.indexOf(Q);Z=Z.slice(F+1)}setTimeout(()=>I(Z)),re.preventDefault()}})})})})})})});mj.displayName=Fpe;var Bpe="SelectItemAlignedPosition",vj=O.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,o=ao(Go,r),a=so(Go,r),[s,l]=O.useState(null),[u,c]=O.useState(null),f=Mt(t,_=>c(_)),d=tm(r),h=O.useRef(!1),v=O.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:y,focusSelectedItem:m}=a,b=O.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&p&&g&&y){const _=o.trigger.getBoundingClientRect(),E=u.getBoundingClientRect(),A=o.valueNode.getBoundingClientRect(),C=y.getBoundingClientRect();if(o.dir!=="rtl"){const Q=C.left-E.left,F=A.left-Q,xe=_.left-F,se=_.width+xe,Fe=Math.max(se,E.width),De=window.innerWidth-Nn,dt=y_(F,[Nn,De-Fe]);s.style.minWidth=se+"px",s.style.left=dt+"px"}else{const Q=E.right-C.right,F=window.innerWidth-A.right-Q,xe=window.innerWidth-_.right-F,se=_.width+xe,Fe=Math.max(se,E.width),De=window.innerWidth-Nn,dt=y_(F,[Nn,De-Fe]);s.style.minWidth=se+"px",s.style.right=dt+"px"}const T=d(),k=window.innerHeight-Nn*2,j=p.scrollHeight,M=window.getComputedStyle(u),R=parseInt(M.borderTopWidth,10),I=parseInt(M.paddingTop,10),D=parseInt(M.borderBottomWidth,10),N=parseInt(M.paddingBottom,10),L=R+I+j+N+D,W=Math.min(g.offsetHeight*5,L),Y=window.getComputedStyle(p),G=parseInt(Y.paddingTop,10),ie=parseInt(Y.paddingBottom,10),ye=_.top+_.height/2-Nn,Ae=k-ye,Qe=g.offsetHeight/2,re=g.offsetTop+Qe,we=R+I+re,V=L-we;if(we<=ye){const Q=g===T[T.length-1].ref.current;s.style.bottom="0px";const F=u.clientHeight-p.offsetTop-p.offsetHeight,xe=Math.max(Ae,Qe+(Q?ie:0)+F+D),se=we+xe;s.style.height=se+"px"}else{const Q=g===T[0].ref.current;s.style.top="0px";const xe=Math.max(ye,R+p.offsetTop+(Q?G:0)+Qe)+V;s.style.height=xe+"px",p.scrollTop=we-ye+p.offsetTop}s.style.margin=`${Nn}px 0`,s.style.minHeight=W+"px",s.style.maxHeight=k+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,o.trigger,o.valueNode,s,u,p,g,y,o.dir,n]);pr(()=>b(),[b]);const[w,x]=O.useState();pr(()=>{u&&x(window.getComputedStyle(u).zIndex)},[u]);const S=O.useCallback(_=>{_&&v.current===!0&&(b(),m==null||m(),v.current=!1)},[b,m]);return P.jsx(Hpe,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:S,children:P.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:P.jsx(ot.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});vj.displayName=Bpe;var Wpe="SelectPopperPosition",P0=O.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Nn,...o}=e,a=rm(r);return P.jsx(Fhe,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});P0.displayName=Wpe;var[Hpe,kw]=Gs(Go,{}),E0="SelectViewport",yj=O.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,o=so(E0,r),a=kw(E0,r),s=Mt(t,o.onViewportChange),l=O.useRef(0);return P.jsxs(P.Fragment,{children:[P.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),P.jsx(em.Slot,{scope:r,children:P.jsx(ot.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:St(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=a;if(d!=null&&d.current&&f){const h=Math.abs(l.current-c.scrollTop);if(h>0){const v=window.innerHeight-Nn*2,p=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),y=Math.max(p,g);if(y0?w:0,f.style.justifyContent="flex-end")}}}l.current=c.scrollTop})})})]})});yj.displayName=E0;var gj="SelectGroup",[Upe,Ype]=Gs(gj),Vpe=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=bw();return P.jsx(Upe,{scope:r,id:i,children:P.jsx(ot.div,{role:"group","aria-labelledby":i,...n,ref:t})})});Vpe.displayName=gj;var bj="SelectLabel",wj=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Ype(bj,r);return P.jsx(ot.div,{id:i.id,...n,ref:t})});wj.displayName=bj;var gh="SelectItem",[Gpe,xj]=Gs(gh),Sj=O.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:o,...a}=e,s=ao(gh,r),l=so(gh,r),u=s.value===n,[c,f]=O.useState(o??""),[d,h]=O.useState(!1),v=Mt(t,y=>{var m;return(m=l.itemRefCallback)==null?void 0:m.call(l,y,n,i)}),p=bw(),g=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return P.jsx(Gpe,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:O.useCallback(y=>{f(m=>m||((y==null?void 0:y.textContent)??"").trim())},[]),children:P.jsx(em.ItemSlot,{scope:r,value:n,disabled:i,textValue:c,children:P.jsx(ot.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:v,onFocus:St(a.onFocus,()=>h(!0)),onBlur:St(a.onBlur,()=>h(!1)),onPointerUp:St(a.onPointerUp,g),onPointerMove:St(a.onPointerMove,y=>{var m;i?(m=l.onItemLeave)==null||m.call(l):y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:St(a.onPointerLeave,y=>{var m;y.currentTarget===document.activeElement&&((m=l.onItemLeave)==null||m.call(l))}),onKeyDown:St(a.onKeyDown,y=>{var b;((b=l.searchRef)==null?void 0:b.current)!==""&&y.key===" "||($pe.includes(y.key)&&g(),y.key===" "&&y.preventDefault())})})})})});Sj.displayName=gh;var Pl="SelectItemText",Oj=O.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...o}=e,a=ao(Pl,r),s=so(Pl,r),l=xj(Pl,r),u=Rpe(Pl,r),[c,f]=O.useState(null),d=Mt(t,y=>f(y),l.onItemTextChange,y=>{var m;return(m=s.itemTextRefCallback)==null?void 0:m.call(s,y,l.value,l.disabled)}),h=c==null?void 0:c.textContent,v=O.useMemo(()=>P.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return pr(()=>(p(v),()=>g(v)),[p,g,v]),P.jsxs(P.Fragment,{children:[P.jsx(ot.span,{id:l.textId,...o,ref:d}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?_s.createPortal(o.children,a.valueNode):null]})});Oj.displayName=Pl;var _j="SelectItemIndicator",Pj=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return xj(_j,r).isSelected?P.jsx(ot.span,{"aria-hidden":!0,...n,ref:t}):null});Pj.displayName=_j;var C0="SelectScrollUpButton",Ej=O.forwardRef((e,t)=>{const r=so(C0,e.__scopeSelect),n=kw(C0,e.__scopeSelect),[i,o]=O.useState(!1),a=Mt(t,n.onScrollButtonChange);return pr(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=l.scrollTop>0;o(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?P.jsx(kj,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});Ej.displayName=C0;var k0="SelectScrollDownButton",Cj=O.forwardRef((e,t)=>{const r=so(k0,e.__scopeSelect),n=kw(k0,e.__scopeSelect),[i,o]=O.useState(!1),a=Mt(t,n.onScrollButtonChange);return pr(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,c=Math.ceil(l.scrollTop)l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?P.jsx(kj,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});Cj.displayName=k0;var kj=O.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,o=so("SelectScrollButton",r),a=O.useRef(null),s=tm(r),l=O.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return O.useEffect(()=>()=>l(),[l]),pr(()=>{var c;const u=s().find(f=>f.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[s]),P.jsx(ot.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:St(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:St(i.onPointerMove,()=>{var u;(u=o.onItemLeave)==null||u.call(o),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:St(i.onPointerLeave,()=>{l()})})}),qpe="SelectSeparator",Aj=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return P.jsx(ot.div,{"aria-hidden":!0,...n,ref:t})});Aj.displayName=qpe;var A0="SelectArrow",Kpe=O.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=rm(r),o=ao(A0,r),a=so(A0,r);return o.open&&a.position==="popper"?P.jsx(Bhe,{...i,...n,ref:t}):null});Kpe.displayName=A0;function Tj(e){return e===""||e===void 0}var Mj=O.forwardRef((e,t)=>{const{value:r,...n}=e,i=O.useRef(null),o=Mt(t,i),a=Uhe(r);return O.useEffect(()=>{const s=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==r&&c){const f=new Event("change",{bubbles:!0});c.call(s,r),s.dispatchEvent(f)}},[a,r]),P.jsx(X6,{asChild:!0,children:P.jsx("select",{...n,ref:o,defaultValue:r})})});Mj.displayName="BubbleSelect";function jj(e){const t=oi(e),r=O.useRef(""),n=O.useRef(0),i=O.useCallback(a=>{const s=r.current+a;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),o=O.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,o]}function $j(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=Xpe(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==r));const l=a.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function Xpe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Zpe=aj,Nj=lj,Qpe=cj,Jpe=fj,eme=dj,Ij=hj,tme=yj,Dj=wj,Rj=Sj,rme=Oj,nme=Pj,Lj=Ej,zj=Cj,Fj=Aj;const Bj=Zpe,Wj=Qpe,Aw=O.forwardRef(({className:e,children:t,...r},n)=>P.jsxs(Nj,{ref:n,className:Le("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-neutral-200 bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-white placeholder:text-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 dark:border-neutral-800 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus:ring-neutral-300",e),...r,children:[t,P.jsx(Jpe,{asChild:!0,children:P.jsx(ide,{className:"h-4 w-4 opacity-50"})})]}));Aw.displayName=Nj.displayName;const Hj=O.forwardRef(({className:e,...t},r)=>P.jsx(Lj,{ref:r,className:Le("flex cursor-default items-center justify-center py-1",e),...t,children:P.jsx(cde,{})}));Hj.displayName=Lj.displayName;const Uj=O.forwardRef(({className:e,...t},r)=>P.jsx(zj,{ref:r,className:Le("flex cursor-default items-center justify-center py-1",e),...t,children:P.jsx(lde,{})}));Uj.displayName=zj.displayName;const Tw=O.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>P.jsx(eme,{children:P.jsxs(Ij,{ref:i,className:Le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[P.jsx(Hj,{}),P.jsx(tme,{className:Le("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),P.jsx(Uj,{})]})}));Tw.displayName=Ij.displayName;const ime=O.forwardRef(({className:e,...t},r)=>P.jsx(Dj,{ref:r,className:Le("px-2 py-1.5 text-sm font-semibold",e),...t}));ime.displayName=Dj.displayName;const Mw=O.forwardRef(({className:e,children:t,...r},n)=>P.jsxs(Rj,{ref:n,className:Le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",e),...r,children:[P.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:P.jsx(nme,{children:P.jsx(ade,{className:"h-4 w-4"})})}),P.jsx(rme,{children:t})]}));Mw.displayName=Rj.displayName;const ome=O.forwardRef(({className:e,...t},r)=>P.jsx(Fj,{ref:r,className:Le("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800",e),...t}));ome.displayName=Fj.displayName;const Yj=O.forwardRef(({className:e,type:t,...r},n)=>P.jsx("input",{type:t,className:Le("flex h-9 w-full rounded-md border border-neutral-200 bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",e),ref:n,...r}));Yj.displayName="Input";const ame=({title:e,fields:t,onSubmit:r,loading:n})=>{const[i,o]=O.useState(t.reduce((l,u)=>({...l,[u.name]:""}),{})),a=l=>{const{name:u,value:c}=l.target;o({...i,[u]:c})},s=l=>{l.preventDefault(),r(i)};return P.jsxs("div",{className:"min-w-[300px] max-w-[400px] grow animate-bounce-in",children:[P.jsx("h2",{children:e}),P.jsxs("form",{onSubmit:s,children:[t.map(l=>P.jsxs("div",{className:"input-group",children:[P.jsx("label",{htmlFor:l.name,children:l.label}),l.type==="number"?P.jsx(Yj,{type:"number",id:l.name,name:l.name,value:i[l.name],onChange:a,placeholder:`Enter ${l.label.toLowerCase()}`,className:"bg-base-200"}):P.jsx(Bj,{name:l.name,value:i[l.name],onValueChange:u=>a({target:{name:l.name,value:u}}),children:P.jsxs(Aw,{className:"my-2",children:[P.jsx(Wj,{placeholder:`Select ${l.label.toLowerCase()}`}),P.jsx(Tw,{children:l.options.map(u=>P.jsx(Mw,{value:u,children:Tse(u)},u))})]})})]},l.name)),P.jsx("button",{className:"carbon-button",type:"submit",disabled:n,children:n?P.jsx("div",{className:"loading loading-spinner loading-sm text-neutral-200"}):"Calculate"})]})]})},Vj=O.forwardRef(({className:e,...t},r)=>P.jsx("div",{ref:r,className:Le("rounded-xl border border-neutral-200 bg-white text-neutral-950 shadow dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...t}));Vj.displayName="Card";const Gj=O.forwardRef(({className:e,...t},r)=>P.jsx("div",{ref:r,className:Le("flex flex-col space-y-1.5 p-6",e),...t}));Gj.displayName="CardHeader";const qj=O.forwardRef(({className:e,...t},r)=>P.jsx("h3",{ref:r,className:Le("font-semibold leading-none tracking-tight",e),...t}));qj.displayName="CardTitle";const Kj=O.forwardRef(({className:e,...t},r)=>P.jsx("p",{ref:r,className:Le("text-sm text-neutral-500 dark:text-neutral-400",e),...t}));Kj.displayName="CardDescription";const sme=O.forwardRef(({className:e,...t},r)=>P.jsx("div",{ref:r,className:Le("p-6 pt-0",e),...t}));sme.displayName="CardContent";const lme=O.forwardRef(({className:e,...t},r)=>P.jsx("div",{ref:r,className:Le("flex items-center p-6 pt-0",e),...t}));lme.displayName="CardFooter";const ume="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20version='1.1'%20xml:space='preserve'%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20d='m500.75,358.16c-6.22,0%20-11.26,-5.04%20-11.26,-11.25l0,-16.45c0,-9.66%20-7.85,-17.52%20-17.51,-17.52c-6.21,0%20-11.25,-5.04%20-11.25,-11.25s5.04,-11.25%2011.25,-11.25c22.07,0%2040.02,17.95%2040.02,40.02l0,16.45c0,6.21%20-5.04,11.25%20-11.25,11.25z'%20fill='%23FFBE24'%20id='svg_1'/%3e%3cpath%20d='m295.14,300.71l-54.03,0c-8.85,0%20-16.02,-7.17%20-16.02,-16.02c0,-8.84%207.17,-16.02%2016.02,-16.02l54.03,0c8.85,0%2016.02,7.17%2016.02,16.02c0,8.85%20-7.17,16.02%20-16.02,16.02z'%20fill='%23212A2D'%20id='svg_2'/%3e%3cpath%20d='m268.12,300.71l-27.01,0c-8.85,0%20-16.02,-7.17%20-16.02,-16.02c0,-8.84%207.17,-16.02%2016.02,-16.02l27.01,0l0,32.04z'%20fill='%232E373A'%20id='svg_3'/%3e%3cpath%20d='m463.22,284.69l-447.2,0c-8.85,0%20-16.02,7.17%20-16.02,16.02l0,141.1c0,8.84%207.17,16.01%2016.02,16.01l447.2,0c8.84,0%2016.02,-7.17%2016.02,-16.01l0,-141.1c0,-8.85%20-7.18,-16.02%20-16.02,-16.02z'%20fill='%23128CB3'%20id='svg_4'/%3e%3cpath%20d='m463.22,284.69l-68.59,0l0,173.13l68.59,0c8.84,0%2016.02,-7.17%2016.02,-16.02l0,-141.09c0,-8.85%20-7.18,-16.02%20-16.02,-16.02z'%20fill='%23BDDEFF'%20id='svg_5'/%3e%3crect%20fill='%23D7EBFF'%20height='173.13'%20id='svg_6'%20width='42.3'%20x='394.63'%20y='284.7'/%3e%3cpath%20d='m420.92,387.87l0,-33.22c0,-8.85%207.17,-16.02%2016.02,-16.02s16.01,7.17%2016.01,16.02l0,33.22c0,8.84%20-7.17,16.01%20-16.01,16.01s-16.02,-7.17%20-16.02,-16.01z'%20fill='%237A4126'%20id='svg_7'/%3e%3cpath%20d='m239.62,284.69l-224.63,0c-8.28,0%20-14.99,7.17%20-14.99,16.02l0,141.1c0,8.84%206.71,16.01%2014.99,16.01l224.63,0l0,-173.13z'%20fill='%2334B2D9'%20id='svg_8'/%3e%3cpath%20d='m420.92,387.87l0,-33.22c0,-8.85%207.17,-16.02%2016.02,-16.02l0,65.25c-8.85,0%20-16.02,-7.17%20-16.02,-16.01z'%20fill='%23995D3D'%20id='svg_9'/%3e%3cpath%20d='m0,373.88l0,67.92c0,8.85%207.17,16.02%2016.02,16.02l447.2,0c8.84,0%2016.02,-7.17%2016.02,-16.02l0,-67.92l-479.24,0l0,0z'%20fill='%23F9AA1A'%20id='svg_10'/%3e%3cpath%20d='m0,373.88l0,67.92c0,8.85%207.17,16.02%2016.02,16.02l223.6,0l0,-83.94l-239.62,0l0,0z'%20fill='%23FFBE24'%20id='svg_11'/%3e%3cpath%20d='m382.73,499.32c-26.32,0%20-47.73,-21.4%20-47.73,-47.72c0,-26.31%2021.41,-47.72%2047.73,-47.72c26.31,0%2047.72,21.41%2047.72,47.72c0,26.32%20-21.41,47.72%20-47.72,47.72z'%20fill='%23212A2D'%20id='svg_12'/%3e%3cpath%20d='m382.73,499.32c-26.32,0%20-47.73,-21.4%20-47.73,-47.72c0,-26.31%2021.41,-47.72%2047.73,-47.72l0,95.44z'%20fill='%232E373A'%20id='svg_13'/%3e%3ccircle%20cx='382.72'%20cy='451.6'%20fill='%23A2B3BF'%20id='svg_14'%20r='15.69'/%3e%3cpath%20d='m382.73,467.29c-8.67,0%20-15.69,-7.02%20-15.69,-15.69c0,-8.66%207.02,-15.69%2015.69,-15.69l0,31.38z'%20fill='%23C9D2D9'%20id='svg_15'/%3e%3cpath%20d='m83.21,499.32c-26.32,0%20-47.72,-21.4%20-47.72,-47.72c0,-26.31%2021.4,-47.72%2047.72,-47.72s47.72,21.41%2047.72,47.72c0,26.32%20-21.41,47.72%20-47.72,47.72z'%20fill='%23212A2D'%20id='svg_16'/%3e%3cpath%20d='m83.21,499.32c-26.32,0%20-47.72,-21.4%20-47.72,-47.72c0,-26.31%2021.4,-47.72%2047.72,-47.72l0,95.44z'%20fill='%232E373A'%20id='svg_17'/%3e%3ccircle%20cx='83.21'%20cy='451.6'%20fill='%23A2B3BF'%20id='svg_18'%20r='15.69'/%3e%3cpath%20d='m83.21,467.29c-8.67,0%20-15.69,-7.02%20-15.69,-15.69c0,-8.66%207.02,-15.69%2015.69,-15.69l0,31.38z'%20fill='%23C9D2D9'%20id='svg_19'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",cme="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20width='512'%20height='512'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20version='1.1'%20xml:space='preserve'%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3cpath%20d='m457.1,311.79l-119.97,0l-41.86,-62.6c-14.79,-22.12%20-39.5,-35.32%20-66.1,-35.32l-119.16,0c-60.66,0%20-110.01,49.35%20-110.01,110.01l0,103.09c0,9.53%207.73,17.26%2017.26,17.26l477.48,0c9.53,0%2017.26,-7.72%2017.26,-17.26l0,-60.27c0,-30.28%20-24.63,-54.91%20-54.9,-54.91z'%20fill='%23BA2B11'%20id='svg_1'/%3e%3cpath%20d='m250.25,216.7c-6.78,-1.86%20-13.86,-2.83%20-21.08,-2.83l-119.16,0c-60.66,0%20-110.01,49.35%20-110.01,110.01l0,103.09c0,9.53%207.73,17.26%2017.26,17.26l232.99,0l0,-227.53z'%20fill='%23E64122'%20id='svg_2'/%3e%3cpath%20d='m272.05,394.34l-22.44,0c-9.53,0%20-17.26,-7.73%20-17.26,-17.26c0,-9.53%207.73,-17.26%2017.26,-17.26l22.44,0c9.53,0%2017.25,7.73%2017.25,17.26c0,9.53%20-7.72,17.26%20-17.25,17.26z'%20fill='%23212A2D'%20id='svg_3'/%3e%3cpath%20d='m260.83,394.34l-11.22,0c-9.53,0%20-17.26,-7.73%20-17.26,-17.26c0,-9.53%207.73,-17.26%2017.26,-17.26l11.22,0l0,34.52z'%20fill='%232E373A'%20id='svg_4'/%3e%3cpath%20d='m424.98,500.13c-31.39,0%20-56.92,-25.54%20-56.92,-56.93s25.53,-56.93%2056.92,-56.93s56.93,25.54%2056.93,56.93s-25.54,56.93%20-56.93,56.93z'%20fill='%23212A2D'%20id='svg_5'/%3e%3cpath%20d='m424.98,500.13c-31.39,0%20-56.92,-25.54%20-56.92,-56.93s25.53,-56.93%2056.92,-56.93l0,113.86z'%20fill='%232E373A'%20id='svg_6'/%3e%3ccircle%20cx='424.99'%20cy='443.2'%20fill='%23A2B3BF'%20id='svg_7'%20r='22.94'/%3e%3cpath%20d='m424.98,466.14c-12.67,0%20-22.94,-10.27%20-22.94,-22.94c0,-12.67%2010.27,-22.94%2022.94,-22.94l0,45.88z'%20fill='%23C9D2D9'%20id='svg_8'/%3e%3cpath%20d='m107.62,500.13c-31.39,0%20-56.92,-25.54%20-56.92,-56.93s25.53,-56.93%2056.92,-56.93s56.93,25.54%2056.93,56.93s-25.54,56.93%20-56.93,56.93z'%20fill='%23212A2D'%20id='svg_9'/%3e%3cpath%20d='m107.62,500.13c-31.39,0%20-56.92,-25.54%20-56.92,-56.93s25.53,-56.93%2056.92,-56.93l0,113.86z'%20fill='%232E373A'%20id='svg_10'/%3e%3ccircle%20cx='107.63'%20cy='443.2'%20fill='%23A2B3BF'%20id='svg_11'%20r='22.94'/%3e%3cpath%20d='m107.62,466.14c-12.67,0%20-22.94,-10.27%20-22.94,-22.94c0,-12.67%2010.27,-22.94%2022.94,-22.94c0,0%200,45.88%200,45.88z'%20fill='%23C9D2D9'%20id='svg_12'/%3e%3cpath%20d='m0.67,311.79c6.03,-54.99%2052.76,-97.92%20109.34,-97.92l119.16,0c26.6,0%2051.31,13.21%2066.1,35.32l41.86,62.6l-336.46,0z'%20fill='%23BDDEFF'%20id='svg_13'/%3e%3cpath%20d='m0.67,311.79c6.03,-54.99%2052.76,-97.92%20109.34,-97.92l119.16,0c7.22,0%2014.3,0.97%2021.08,2.83l0,95.1l-249.58,0l0,-0.01z'%20fill='%23D7EBFF'%20id='svg_14'/%3e%3cpath%20d='m0.67,311.79c6.03,-54.99%2052.76,-97.92%20109.34,-97.92l104.57,0l0,97.92l-213.91,0z'%20fill='%23128CB3'%20id='svg_15'/%3e%3cpath%20d='m0.67,311.79c5.95,-54.21%2051.46,-96.71%20106.95,-97.89l0,97.89l-106.95,0z'%20fill='%2334B2D9'%20id='svg_16'/%3e%3c/g%3e%3c/svg%3e",fme="/GreenSky/assets/motorbike-BIsWQKNB.svg",dme="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20width='511.999'%20height='511.999'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20version='1.1'%20xml:space='preserve'%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3cpath%20d='m506.84,382c-19.29,-30.95%20-52.58,-49.43%20-89.05,-49.43l-293.97,0l-46.85,-66.48c-3.03,-4.3%20-7.96,-6.86%20-13.23,-6.86l-31.85,0c-8.94,0%20-16.18,7.25%20-16.18,16.18l0,55.02c0,14.36%203.23,28.81%209.34,41.8c0.62,1.31%201.41,2.54%202.35,3.64l9.96,11.63c25.42,29.69%2062.41,46.71%20101.48,46.71l339.01,0c12.4,0%2023.84,-6.73%2029.86,-17.57c6.02,-10.84%205.68,-24.11%20-0.87,-34.64z'%20fill='%23BA2B11'%20id='svg_1'/%3e%3cpath%20d='m258.47,332.57l-134.65,0l-46.85,-66.48c-3.03,-4.3%20-7.96,-6.86%20-13.23,-6.86l-31.85,0c-8.94,0%20-16.18,7.25%20-16.18,16.18l0,55.02c0,14.36%203.23,28.81%209.34,41.8c0.62,1.31%201.41,2.54%202.35,3.64l9.96,11.63c25.42,29.69%2062.41,46.71%20101.48,46.71l119.63,0l0,-101.64z'%20fill='%23E64122'%20id='svg_2'/%3e%3cpath%20d='m337.64,385.93l-102.24,0c-21.74,0%20-39.43,17.68%20-39.43,39.42c0,21.74%2017.69,39.42%2039.43,39.42l102.25,0c21.73,0%2039.42,-17.69%2039.42,-39.42c0,-21.74%20-17.69,-39.42%20-39.43,-39.42z'%20fill='%23F9AA1A'%20id='svg_3'/%3e%3cpath%20d='m258.47,385.93l-23.07,0c-21.74,0%20-39.43,17.68%20-39.43,39.42c0,21.74%2017.69,39.42%2039.43,39.42l23.07,0l0,-78.84z'%20fill='%23FFBE24'%20id='svg_4'/%3e%3cpath%20d='m235.4,385.93c-21.74,0%20-39.43,17.68%20-39.43,39.42c0,21.74%2017.69,39.42%2039.43,39.42l0,-78.84z'%20fill='%232E373A'%20id='svg_5'/%3e%3cpath%20d='m47.71,362.9l-31.53,0c-8.93,0%20-16.18,-7.24%20-16.18,-16.18c0,-8.94%207.25,-16.19%2016.18,-16.19l31.53,0c8.93,0%2016.18,7.25%2016.18,16.19c0,8.94%20-7.25,16.18%20-16.18,16.18z'%20fill='%23F9AA1A'%20id='svg_6'/%3e%3cpath%20d='m31.95,362.9l-15.77,0c-8.93,0%20-16.18,-7.24%20-16.18,-16.18c0,-8.94%207.25,-16.19%2016.18,-16.19l15.77,0l0,32.37z'%20fill='%23FFBE24'%20id='svg_7'/%3e%3cpath%20d='m441.9,367.39c0,8.94%207.24,16.19%2016.18,16.19l34.53,0c4.69,0%208.9,-2.01%2011.86,-5.2c-7.36,-10.8%20-16.47,-19.96%20-26.85,-27.17l-19.54,0c-8.93,0%20-16.18,7.25%20-16.18,16.18z'%20fill='%23BDDEFF'%20id='svg_8'/%3e%3cpath%20d='m441.9,367.39c0,8.94%207.24,16.19%2016.18,16.19l9.17,0l0,-32.37l-9.17,0c-8.93,0%20-16.18,7.25%20-16.18,16.18z'%20fill='%23D7EBFF'%20id='svg_9'/%3e%3c/g%3e%3c/svg%3e",hme="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%201024%201024'%20class='icon'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M697.6%20177.066667l-29.866667%2029.866666%20100.266667%20100.266667V405.333333c0%2012.8%208.533333%2021.333333%2021.333333%2021.333334h42.666667c12.8%200%2021.333333-8.533333%2021.333333-21.333334v-55.466666c0-10.666667-4.266667-21.333333-12.8-29.866667l-142.933333-142.933333z'%20fill='%2342A5F5'%20/%3e%3cpath%20d='M704%20917.333333H192V192c0-46.933333%2038.4-85.333333%2085.333333-85.333333h341.333334c46.933333%200%2085.333333%2038.4%2085.333333%2085.333333v725.333333z'%20fill='%23FFC107'%20/%3e%3cpath%20d='M876.8%20576c-21.333333-38.4-44.8-76.8-44.8-149.333333h-42.666667c0%2085.333333%2025.6%20130.133333%2051.2%20170.666666%2019.2%2032%2034.133333%2061.866667%2034.133334%20106.666667%200%2023.466667-19.2%2042.666667-42.666667%2042.666667s-42.666667-19.2-42.666667-42.666667v-106.666667c0-23.466667-19.2-42.666667-42.666666-42.666666h-42.666667v42.666666h42.666667v106.666667c0%2046.933333%2038.4%2085.333333%2085.333333%2085.333333s85.333333-38.4%2085.333333-85.333333c0-55.466667-21.333333-91.733333-40.533333-128zM106.666667%20832h810.666666v85.333333H106.666667z'%20fill='%23607D8B'%20/%3e%3cpath%20d='M618.666667%20170.666667H277.333333c-12.8%200-21.333333%208.533333-21.333333%2021.333333v213.333333c0%2012.8%208.533333%2021.333333%2021.333333%2021.333334h341.333334c12.8%200%2021.333333-8.533333%2021.333333-21.333334V192c0-12.8-8.533333-21.333333-21.333333-21.333333z'%20fill='%23B2EBF2'%20/%3e%3cpath%20d='M618.666667%20170.666667H277.333333c-12.8%200-21.333333%208.533333-21.333333%2021.333333v213.333333c0%2012.8%208.533333%2021.333333%2021.333333%2021.333334h341.333334c12.8%200%2021.333333-8.533333%2021.333333-21.333334V192c0-12.8-8.533333-21.333333-21.333333-21.333333z'%20fill='%23B2EBF2'%20/%3e%3cpath%20d='M469.333333%20426.666667l100.266667-121.6-149.333333%20121.6z'%20fill='%23F44336'%20/%3e%3cpath%20d='M298.666667%20294.4l-29.866667-29.866667c6.4-6.4%2010.666667-10.666667%2017.066667-14.933333l27.733333%2034.133333c-6.4%202.133333-10.666667%206.4-14.933333%2010.666667z%20m298.666666%200c-4.266667-4.266667-8.533333-8.533333-14.933333-12.8l25.6-34.133333c6.4%204.266667%2012.8%2010.666667%2017.066667%2014.933333L597.333333%20294.4z%20m-234.666666-42.666667l-17.066667-38.4c6.4-2.133333%2014.933333-6.4%2021.333333-8.533333l12.8%2040.533333c-6.4%202.133333-10.666667%204.266667-17.066666%206.4z%20m168.533333%200l-19.2-6.4%2012.8-40.533333c6.4%202.133333%2014.933333%204.266667%2021.333333%208.533333l-14.933333%2038.4z%20m-93.866667-17.066666l-2.133333-42.666667h23.466667l-2.133334%2042.666667h-19.2zM490.666667%20426.666667h-85.333334c0-23.466667%2019.2-42.666667%2042.666667-42.666667s42.666667%2019.2%2042.666667%2042.666667z'%20fill='%23455A64'%20/%3e%3c/svg%3e",pme="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%20enable-background='new%200%200%2032%2032'%20version='1.1'%20xml:space='preserve'%3e%3cg%20class='layer'%3e%3ctitle%3eLayer%201%3c/title%3e%3cg%20id='Energy20'/%3e%3cg%20id='Energy19'/%3e%3cg%20id='Energy18'/%3e%3cg%20id='Energy17'/%3e%3cg%20id='Energy16'/%3e%3cg%20id='Energy15'/%3e%3cg%20id='Energy14'/%3e%3cg%20id='Energy13'/%3e%3cg%20id='Energy12'/%3e%3cg%20id='Energy11'/%3e%3cg%20id='Energy10'/%3e%3cg%20id='Energy09'/%3e%3cg%20id='Energy08'/%3e%3cg%20id='Energy07'/%3e%3cg%20id='Energy06'/%3e%3cg%20id='Energy05'/%3e%3cg%20id='Energy04'/%3e%3cg%20id='Energy03'/%3e%3cg%20id='Energy02'%3e%3cg%20id='svg_1'%3e%3cpath%20d='m26.13,18.49l-2.96,2.42l0.38,3.81c0.02,0.21%20-0.05,0.41%20-0.19,0.56c-0.15,0.14%20-0.35,0.21%20-0.56,0.19l-3.81,-0.38l-2.42,2.96c-0.13,0.16%20-0.32,0.26%20-0.53,0.26s-0.4,-0.1%20-0.53,-0.26l-2.42,-2.96l-3.81,0.38c-0.21,0.02%20-0.41,-0.05%20-0.56,-0.19c-0.14,-0.15%20-0.21,-0.35%20-0.19,-0.56l0.38,-3.81l-2.96,-2.42c-0.16,-0.13%20-0.26,-0.32%20-0.26,-0.53s0.1,-0.4%200.26,-0.53l2.96,-2.42l-0.38,-3.81c-0.02,-0.21%200.05,-0.41%200.19,-0.56c0.15,-0.14%200.35,-0.22%200.56,-0.19l3.81,0.38l2.42,-2.96c0.26,-0.32%200.81,-0.32%201.06,0l2.42,2.96l3.81,-0.38c0.21,-0.03%200.41,0.05%200.56,0.19c0.14,0.15%200.21,0.35%200.19,0.56l-0.38,3.81l2.96,2.42c0.16,0.13%200.26,0.32%200.26,0.53s-0.1,0.4%20-0.26,0.53z'%20fill='%23FFB841'%20id='svg_2'/%3e%3c/g%3e%3cg%20id='svg_3'%3e%3cpath%20d='m20.87,17.96c0,2.66%20-2.17,4.83%20-4.83,4.83s-4.83,-2.17%20-4.83,-4.83s2.17,-4.83%204.83,-4.83s4.83,2.17%204.83,4.83z'%20fill='%23EB8235'%20id='svg_4'/%3e%3c/g%3e%3c/g%3e%3cg%20id='Energy01'/%3e%3c/g%3e%3c/svg%3e",mme="372578d79fmsh1c62479d9c19a3cp115574jsn623a146e86ef",vme="https://carbonfootprint1.p.rapidapi.com",mf=[{title:"Clean Energy to CO2",fields:[{name:"energy",label:"Energy Type",options:["Solar","Wind","HydroElectric","Biomass","Geothermal","Tidal","OtherCleanEnergy"]},{name:"consumption",label:"Consumption (KWH)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CleanHydroToCarbonFootprint",icon:pme},{title:"Fuel to CO2e",fields:[{name:"type",label:"Fuel Type",options:["Petrol","Diesel","LPG"]},{name:"litres",label:"Litres",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/FuelToCO2e",icon:hme},{title:"Car Travel",fields:[{name:"vehicle",label:"Vehicle Type",options:["SmallDieselCar","MediumDieselCar","LargeDieselCar","MediumHybridCar","LargeHybridCar","MediumLPGCar","LargeLPGCar","MediumCNGCar","LargeCNGCar","SmallPetrolVan","LargePetrolVan","SmallDieselVan","MediumDieselVan","LargeDieselVan","LPGVan","CNGVan","SmallPetrolCar","MediumPetrolCar","LargePetrolCar","SmallMotorBike","MediumMotorBike","LargeMotorBike"]},{name:"distance",label:"Distance (KM)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CarbonFootprintFromCarTravel",icon:cme},{title:"Flight Travel",fields:[{name:"type",label:"Flight Type",options:["DomesticFlight","ShortEconomyClassFlight","ShortBusinessClassFlight","LongEconomyClassFlight","LongPremiumClassFlight","LongBusinessClassFlight","LongFirstClassFlight"]},{name:"distance",label:"Distance (KM)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CarbonFootprintFromFlight",icon:dme},{title:"Motorbike Travel",fields:[{name:"type",label:"Motorbike Type",options:["SmallMotorBike","MediumMotorBike","LargeMotorBike"]},{name:"distance",label:"Distance (KM)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CarbonFootprintFromMotorBike",icon:fme},{title:"Public Transport",fields:[{name:"type",label:"Transport Type",options:["Taxi","ClassicBus","EcoBus","Coach","NationalTrain","LightRail","Subway","FerryOnFoot","FerryInCar"]},{name:"distance",label:"Distance (KM)",type:"number"}],endpoint:"https://carbonfootprint1.p.rapidapi.com/CarbonFootprintFromPublicTransit",icon:ume}],yme=()=>{const[e,t]=O.useState(null),[r,n]=O.useState(!1),[i,o]=O.useState(null),[a,s]=O.useState(mf[0]),l=async(u,c)=>{n(!0),o(null);try{const f=await it.get(u,{params:c,headers:{"x-rapidapi-host":new URL(vme).host,"x-rapidapi-key":mme}});t(f.data.carbonEquivalent)}catch(f){o(f.response?f.response.data.message:"An unexpected error occurred.")}finally{n(!1)}};return P.jsxs("div",{style:{backgroundImage:`url(${a.icon})`,backgroundAttachment:"local",backgroundRepeat:"no-repeat",backgroundSize:200,backgroundPosition:"2% 100%"},className:"w-full duration-300 lg:w-3/4 mx-auto lg:my-5 p-10 gap-10 lg:rounded-xl bg-base-200 shadow-lg flex flex-col",children:[P.jsxs("div",{className:"flex flex-wrap justify-around",children:[P.jsxs("div",{className:"flex flex-col justify-center gap-12 overflow-hidden",children:[P.jsx("span",{className:"text-3xl text-center font-bold",children:"Calculate your Carbon Footprint"}),P.jsxs(Bj,{value:a.title,onValueChange:u=>{s(mf.find(c=>c.title===u)),o(!1),t(null)},children:[P.jsx(Aw,{className:"max-w-[250px] mx-auto my-2 bg-base-200",children:P.jsx(Wj,{placeholder:mf[0].title})}),P.jsx(Tw,{children:mf.map(u=>P.jsx(Mw,{value:u.title,children:u.title},u.title))})]})]}),P.jsx(ame,{title:a.title,fields:a.fields,onSubmit:u=>l(a.endpoint,u),loading:r},a.title)]}),!r&&e&&P.jsx(Vj,{className:"w-fit ms-auto",children:P.jsxs(Gj,{children:[P.jsxs(qj,{className:"text-[#2e7d32] font-bold",children:["Result: ",e?`${e} kg CO2e`:"No result available"]}),P.jsxs(Kj,{className:"flex items-baseline gap-1 pt-2",children:[P.jsx(gD,{className:"text-blue-600"}),e&&!isNaN(e)?`${e} kg CO2e is approximately equivalent to ${(Number(e)/100).toFixed(2)} change in AQI`:"Invalid or no result available"]})]})},e)]})};var Xj={},Zj={},nm={},Qj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=t})(Qj);var gme="Expected a function",F_=NaN,bme="[object Symbol]",wme=/^\s+|\s+$/g,xme=/^[-+]0x[0-9a-f]+$/i,Sme=/^0b[01]+$/i,Ome=/^0o[0-7]+$/i,_me=parseInt,Pme=typeof ki=="object"&&ki&&ki.Object===Object&&ki,Eme=typeof self=="object"&&self&&self.Object===Object&&self,Cme=Pme||Eme||Function("return this")(),kme=Object.prototype,Ame=kme.toString,Tme=Math.max,Mme=Math.min,kv=function(){return Cme.Date.now()};function jme(e,t,r){var n,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(gme);t=B_(t)||0,T0(r)&&(c=!!r.leading,f="maxWait"in r,o=f?Tme(B_(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(S){var _=n,E=i;return n=i=void 0,u=S,a=e.apply(E,_),a}function v(S){return u=S,s=setTimeout(y,t),c?h(S):a}function p(S){var _=S-l,E=S-u,A=t-_;return f?Mme(A,o-E):A}function g(S){var _=S-l,E=S-u;return l===void 0||_>=t||_<0||f&&E>=o}function y(){var S=kv();if(g(S))return m(S);s=setTimeout(y,p(S))}function m(S){return s=void 0,d&&n?h(S):(n=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function w(){return s===void 0?a:m(kv())}function x(){var S=kv(),_=g(S);if(n=arguments,i=this,l=S,_){if(s===void 0)return v(l);if(f)return s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),a}return x.cancel=b,x.flush=w,x}function T0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $me(e){return!!e&&typeof e=="object"}function Nme(e){return typeof e=="symbol"||$me(e)&&Ame.call(e)==bme}function B_(e){if(typeof e=="number")return e;if(Nme(e))return F_;if(T0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=T0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(wme,"");var r=Sme.test(e);return r||Ome.test(e)?_me(e.slice(2),r?2:8):xme.test(e)?F_:+e}var Ime=jme,Jj={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",a=0;a0?1:0):0},Wme=K.lazySlidesOnRight=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},M0=K.getWidth=function(t){return t&&t.offsetWidth||0},a4=K.getHeight=function(t){return t&&t.offsetHeight||0},s4=K.getSwipeDirection=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,i,o,a;return n=t.startX-t.curX,i=t.startY-t.curY,o=Math.atan2(i,n),a=Math.round(o*180/Math.PI),a<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?"left":a>=135&&a<=225?"right":r===!0?a>=35&&a<=135?"up":"down":"vertical"},l4=K.canGoNext=function(t){var r=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(r=!1),r};K.extractObject=function(t,r){var n={};return r.forEach(function(i){return n[i]=t[i]}),n};K.initializedState=function(t){var r=Dme.default.Children.count(t.children),n=t.listRef,i=Math.ceil(M0(n)),o=t.trackRef&&t.trackRef.node,a=Math.ceil(M0(o)),s;if(t.vertical)s=i;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=i/100),s=Math.ceil((i-l)/t.slidesToShow)}var u=n&&a4(n.querySelector('[data-index="0"]')),c=u*t.slidesToShow,f=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(f=r-1-t.initialSlide);var d=t.lazyLoadedList||[],h=n4(Ke(Ke({},t),{},{currentSlide:f,lazyLoadedList:d}));d=d.concat(h);var v={slideCount:r,slideWidth:s,listWidth:i,trackWidth:a,currentSlide:f,slideHeight:u,listHeight:c,lazyLoadedList:d};return t.autoplaying===null&&t.autoplay&&(v.autoplaying="playing"),v};K.slideHandler=function(t){var r=t.waitForAnimate,n=t.animating,i=t.fade,o=t.infinite,a=t.index,s=t.slideCount,l=t.lazyLoad,u=t.currentSlide,c=t.centerMode,f=t.slidesToScroll,d=t.slidesToShow,h=t.useCSS,v=t.lazyLoadedList;if(r&&n)return{};var p=a,g,y,m,b={},w={},x=o?a:r4(a,0,s-1);if(i){if(!o&&(a<0||a>=s))return{};a<0?p=a+s:a>=s&&(p=a-s),l&&v.indexOf(p)<0&&(v=v.concat(p)),b={animating:!0,currentSlide:p,lazyLoadedList:v,targetSlide:p},w={animating:!1,targetSlide:p}}else g=p,p<0?(g=p+s,o?s%f!==0&&(g=s-s%f):g=0):!l4(t)&&p>u?p=g=u:c&&p>=s?(p=o?s:s-1,g=o?0:s-1):p>=s&&(g=p-s,o?s%f!==0&&(g=0):g=s-d),!o&&p+d>=s&&(g=s-d),y=wh(Ke(Ke({},t),{},{slideIndex:p})),m=wh(Ke(Ke({},t),{},{slideIndex:g})),o||(y===m&&(p=g),y=m),l&&(v=v.concat(n4(Ke(Ke({},t),{},{currentSlide:p})))),h?(b={animating:!0,currentSlide:g,trackStyle:u4(Ke(Ke({},t),{},{left:y})),lazyLoadedList:v,targetSlide:x},w={animating:!1,currentSlide:g,trackStyle:bh(Ke(Ke({},t),{},{left:m})),swipeLeft:null,targetSlide:x}):b={currentSlide:g,trackStyle:bh(Ke(Ke({},t),{},{left:m})),lazyLoadedList:v,targetSlide:x};return{state:b,nextState:w}};K.changeSlide=function(t,r){var n,i,o,a,s,l=t.slidesToScroll,u=t.slidesToShow,c=t.slideCount,f=t.currentSlide,d=t.targetSlide,h=t.lazyLoad,v=t.infinite;if(a=c%l!==0,n=a?0:(c-f)%l,r.message==="previous")o=n===0?l:u-n,s=f-o,h&&!v&&(i=f-o,s=i===-1?c-1:i),v||(s=d-l);else if(r.message==="next")o=n===0?l:n,s=f+o,h&&!v&&(s=(f+l)%c+n),v||(s=d+l);else if(r.message==="dots")s=r.index*r.slidesToScroll;else if(r.message==="children"){if(s=r.index,v){var p=Vme(Ke(Ke({},t),{},{targetSlide:s}));s>r.currentSlide&&p==="left"?s=s-c:s10)return{scrolling:!0};s&&(m.swipeLength=A);var C=(l?-1:1)*(m.curX>m.startX?1:-1);s&&(C=m.curY>m.startY?1:-1);var T=Math.ceil(p/g),k=s4(r.touchObject,s),j=m.swipeLength;return y||(u===0&&(k==="right"||k==="down")||u+1>=T&&(k==="left"||k==="up")||!l4(r)&&(k==="left"||k==="up"))&&(j=m.swipeLength*c,f===!1&&d&&(d(k),_.edgeDragged=!0)),!h&&b&&(b(k),_.swiped=!0),o?S=E+j*(w/x)*C:l?S=E-j*C:S=E+j*C,s&&(S=E+j*C),_=Ke(Ke({},_),{},{touchObject:m,swipeLeft:S,trackStyle:bh(Ke(Ke({},r),{},{left:S}))}),Math.abs(m.curX-m.startX)10&&(_.swiping=!0,Ha(t)),_}};K.swipeEnd=function(t,r){var n=r.dragging,i=r.swipe,o=r.touchObject,a=r.listWidth,s=r.touchThreshold,l=r.verticalSwiping,u=r.listHeight,c=r.swipeToSlide,f=r.scrolling,d=r.onSwipe,h=r.targetSlide,v=r.currentSlide,p=r.infinite;if(!n)return i&&Ha(t),{};var g=l?u/s:a/s,y=s4(o,l),m={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f||!o.swipeLength)return m;if(o.swipeLength>g){Ha(t),d&&d(y);var b,w,x=p?v:h;switch(y){case"left":case"up":w=x+U_(r),b=c?H_(r,w):w,m.currentDirection=0;break;case"right":case"down":w=x-U_(r),b=c?H_(r,w):w,m.currentDirection=1;break;default:b=x}m.triggerSlideHandler=b}else{var S=wh(r);m.trackStyle=u4(Ke(Ke({},r),{},{left:S}))}return m};var Hme=K.getNavigableIndexes=function(t){for(var r=t.infinite?t.slideCount*2:t.slideCount,n=t.infinite?t.slidesToShow*-1:0,i=t.infinite?t.slidesToShow*-1:0,o=[];nn[n.length-1])r=n[n.length-1];else for(var o in n){if(rt.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-r+M0(l)/2>t.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;var a=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,s=Math.abs(n.dataset.index-a)||1;return s}else return t.slidesToScroll},$w=K.checkSpecKeys=function(t,r){return r.reduce(function(n,i){return n&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing:",t)},bh=K.getTrackCSS=function(t){$w(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r,n,i=t.slideCount+2*t.slidesToShow;t.vertical?n=i*t.slideHeight:r=Yme(t)*t.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var a=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";o=Ke(Ke({},o),{},{WebkitTransform:a,transform:s,msTransform:l})}else t.vertical?o.top=t.left:o.left=t.left;return t.fade&&(o={opacity:1}),r&&(o.width=r),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?o.marginTop=t.left+"px":o.marginLeft=t.left+"px"),o},u4=K.getTrackAnimateCSS=function(t){$w(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var r=bh(t);return t.useTransform?(r.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,r.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?r.transition="top "+t.speed+"ms "+t.cssEase:r.transition="left "+t.speed+"ms "+t.cssEase,r},wh=K.getTrackLeft=function(t){if(t.unslick)return 0;$w(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var r=t.slideIndex,n=t.trackRef,i=t.infinite,o=t.centerMode,a=t.slideCount,s=t.slidesToShow,l=t.slidesToScroll,u=t.slideWidth,c=t.listWidth,f=t.variableWidth,d=t.slideHeight,h=t.fade,v=t.vertical,p=0,g,y,m=0;if(h||t.slideCount===1)return 0;var b=0;if(i?(b=-Rf(t),a%l!==0&&r+l>a&&(b=-(r>a?s-(r-a):a%l)),o&&(b+=parseInt(s/2))):(a%l!==0&&r+l>a&&(b=s-a%l),o&&(b=parseInt(s/2))),p=b*u,m=b*d,v?g=r*d*-1+m:g=r*u*-1+p,f===!0){var w,x=n&&n.node;if(w=r+Rf(t),y=x&&x.childNodes[w],g=y?y.offsetLeft*-1:0,o===!0){w=i?r+Rf(t):r,y=x&&x.children[w],g=0;for(var S=0;St.currentSlide?t.targetSlide>t.currentSlide+Gme(t)?"left":"right":t.targetSlide0&&(a+=1),i&&r%2===0&&(a+=1),a}return i?0:r-1},qme=K.slidesOnLeft=function(t){var r=t.slidesToShow,n=t.centerMode,i=t.rtl,o=t.centerPadding;if(n){var a=(r-1)/2+1;return parseInt(o)>0&&(a+=1),!i&&r%2===0&&(a+=1),a}return i?r-1:0};K.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var Kme=K.validSettings=Object.keys(Rme.default);function Xme(e){return Kme.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})}var om={};Object.defineProperty(om,"__esModule",{value:!0});om.Track=void 0;var _i=c4(O),Av=c4(im),Tv=K;function c4(e){return e&&e.__esModule?e:{default:e}}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 j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t.slideCount,t.centerMode?(o=Math.floor(t.slidesToShow/2),n=(a-t.currentSlide)%t.slideCount===0,a>t.currentSlide-o-1&&a<=t.currentSlide+o&&(r=!0)):r=t.currentSlide<=a&&a=t.slideCount?s=t.targetSlide-t.slideCount:s=t.targetSlide;var l=a===s;return{"slick-slide":!0,"slick-active":r,"slick-center":n,"slick-cloned":i,"slick-current":l}},ive=function(t){var r={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(r.width=t.slideWidth),t.fade&&(r.position="relative",t.vertical?r.top=-t.index*parseInt(t.slideHeight):r.left=-t.index*parseInt(t.slideWidth),r.opacity=t.currentSlide===t.index?1:0,r.zIndex=t.currentSlide===t.index?999:998,t.useCSS&&(r.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),r},jv=function(t,r){return t.key||r},ove=function(t){var r,n=[],i=[],o=[],a=_i.default.Children.count(t.children),s=(0,Tv.lazyStartIndex)(t),l=(0,Tv.lazyEndIndex)(t);return _i.default.Children.forEach(t.children,function(u,c){var f,d={message:"children",index:c,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(c)>=0?f=u:f=_i.default.createElement("div",null);var h=ive(Gt(Gt({},t),{},{index:c})),v=f.props.className||"",p=Mv(Gt(Gt({},t),{},{index:c}));if(n.push(_i.default.cloneElement(f,{key:"original"+jv(f,c),"data-index":c,className:(0,Av.default)(p,v),tabIndex:"-1","aria-hidden":!p["slick-active"],style:Gt(Gt({outline:"none"},f.props.style||{}),h),onClick:function(m){f.props&&f.props.onClick&&f.props.onClick(m),t.focusOnSelect&&t.focusOnSelect(d)}})),t.infinite&&t.fade===!1){var g=a-c;g<=(0,Tv.getPreClones)(t)&&(r=-g,r>=s&&(f=u),p=Mv(Gt(Gt({},t),{},{index:r})),i.push(_i.default.cloneElement(f,{key:"precloned"+jv(f,r),"data-index":r,tabIndex:"-1",className:(0,Av.default)(p,v),"aria-hidden":!p["slick-active"],style:Gt(Gt({},f.props.style||{}),h),onClick:function(m){f.props&&f.props.onClick&&f.props.onClick(m),t.focusOnSelect&&t.focusOnSelect(d)}}))),r=a+c,r=w&&d<=m:d===w}),S={message:"dots",index:g,slidesToScroll:u,currentSlide:d},_=this.clickHandler.bind(this,S);p=p.concat(vf.default.createElement("li",{key:g,className:x},vf.default.cloneElement(this.props.customPaging(g),{onClick:_})))}return vf.default.cloneElement(this.props.appendDots(p),sve({className:this.props.dotsClass},v))}}]),r}(vf.default.PureComponent);var gs={};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)}Object.defineProperty(gs,"__esModule",{value:!0});gs.PrevArrow=gs.NextArrow=void 0;var Ua=y4(O),v4=y4(im),gve=K;function y4(e){return e&&e.__esModule?e:{default:e}}function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t0},e.prototype.connect_=function(){!L0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ave?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!L0||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=kve.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),P4=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof ws(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Lve(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ws(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new zve(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C4=typeof WeakMap<"u"?new WeakMap:new _4,k4=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Tve.getInstance(),n=new Fve(t,r,this);C4.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){k4.prototype[e]=function(){var t;return(t=C4.get(this))[e].apply(t,arguments)}});var Bve=function(){return typeof Eh.ResizeObserver<"u"?Eh.ResizeObserver:k4}();const Wve=Object.freeze(Object.defineProperty({__proto__:null,default:Bve},Symbol.toStringTag,{value:"Module"})),Hve=N4(Wve);Object.defineProperty(nm,"__esModule",{value:!0});nm.InnerSlider=void 0;var Bt=Cc(O),Uve=Cc(Jj),Yve=Cc(Ime),Vve=Cc(im),Je=K,Gve=om,qve=am,X_=gs,Kve=Cc(Hve);function Cc(e){return e&&e.__esModule?e:{default:e}}function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zve(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Z_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t0&&(i.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(a)}}),i.props.onLazyLoad&&i.props.onLazyLoad(a))}var s=oe({listRef:i.list,trackRef:i.track},i.props);i.updateState(s,!0,function(){i.adaptHeight(),i.props.autoplay&&i.autoPlay("update")}),i.props.lazyLoad==="progressive"&&(i.lazyLoadTimer=setInterval(i.progressiveLazyLoad,1e3)),i.ro=new Kve.default(function(){i.state.animating?(i.onWindowResized(!1),i.callbackTimers.push(setTimeout(function(){return i.onWindowResized()},i.props.speed))):i.onWindowResized()}),i.ro.observe(i.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=i.props.pauseOnFocus?i.onSlideFocus:null,l.onblur=i.props.pauseOnFocus?i.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",i.onWindowResized):window.attachEvent("onresize",i.onWindowResized)}),pe(he(i),"componentWillUnmount",function(){i.animationEndCallback&&clearTimeout(i.animationEndCallback),i.lazyLoadTimer&&clearInterval(i.lazyLoadTimer),i.callbackTimers.length&&(i.callbackTimers.forEach(function(a){return clearTimeout(a)}),i.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",i.onWindowResized):window.detachEvent("onresize",i.onWindowResized),i.autoplayTimer&&clearInterval(i.autoplayTimer),i.ro.disconnect()}),pe(he(i),"componentDidUpdate",function(a){if(i.checkImagesLoad(),i.props.onReInit&&i.props.onReInit(),i.props.lazyLoad){var s=(0,Je.getOnDemandLazySlides)(oe(oe({},i.props),i.state));s.length>0&&(i.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(s)}}),i.props.onLazyLoad&&i.props.onLazyLoad(s))}i.adaptHeight();var l=oe(oe({listRef:i.list,trackRef:i.track},i.props),i.state),u=i.didPropsChange(a);u&&i.updateState(l,u,function(){i.state.currentSlide>=Bt.default.Children.count(i.props.children)&&i.changeSlide({message:"index",index:Bt.default.Children.count(i.props.children)-i.props.slidesToShow,currentSlide:i.state.currentSlide}),i.props.autoplay?i.autoPlay("update"):i.pause("paused")})}),pe(he(i),"onWindowResized",function(a){i.debouncedResize&&i.debouncedResize.cancel(),i.debouncedResize=(0,Yve.default)(function(){return i.resizeWindow(a)},50),i.debouncedResize()}),pe(he(i),"resizeWindow",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(i.track&&i.track.node);if(s){var l=oe(oe({listRef:i.list,trackRef:i.track},i.props),i.state);i.updateState(l,a,function(){i.props.autoplay?i.autoPlay("update"):i.pause("paused")}),i.setState({animating:!1}),clearTimeout(i.animationEndCallback),delete i.animationEndCallback}}),pe(he(i),"updateState",function(a,s,l){var u=(0,Je.initializedState)(a);a=oe(oe(oe({},a),u),{},{slideIndex:u.currentSlide});var c=(0,Je.getTrackLeft)(a);a=oe(oe({},a),{},{left:c});var f=(0,Je.getTrackCSS)(a);(s||Bt.default.Children.count(i.props.children)!==Bt.default.Children.count(a.children))&&(u.trackStyle=f),i.setState(u,l)}),pe(he(i),"ssrInit",function(){if(i.props.variableWidth){var a=0,s=0,l=[],u=(0,Je.getPreClones)(oe(oe(oe({},i.props),i.state),{},{slideCount:i.props.children.length})),c=(0,Je.getPostClones)(oe(oe(oe({},i.props),i.state),{},{slideCount:i.props.children.length}));i.props.children.forEach(function(_){l.push(_.props.style.width),a+=_.props.style.width});for(var f=0;f=s&&i.onWindowResized()};if(!u.onclick)u.onclick=function(){return u.parentNode.focus()};else{var f=u.onclick;u.onclick=function(d){f(d),u.parentNode.focus()}}u.onload||(i.props.lazyLoad?u.onload=function(){i.adaptHeight(),i.callbackTimers.push(setTimeout(i.onWindowResized,i.props.speed))}:(u.onload=c,u.onerror=function(){c(),i.props.onLazyLoadError&&i.props.onLazyLoadError()}))})}),pe(he(i),"progressiveLazyLoad",function(){for(var a=[],s=oe(oe({},i.props),i.state),l=i.state.currentSlide;l=-(0,Je.getPreClones)(s);u--)if(i.state.lazyLoadedList.indexOf(u)<0){a.push(u);break}a.length>0?(i.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(a)}}),i.props.onLazyLoad&&i.props.onLazyLoad(a)):i.lazyLoadTimer&&(clearInterval(i.lazyLoadTimer),delete i.lazyLoadTimer)}),pe(he(i),"slideHandler",function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i.props,u=l.asNavFor,c=l.beforeChange,f=l.onLazyLoad,d=l.speed,h=l.afterChange,v=i.state.currentSlide,p=(0,Je.slideHandler)(oe(oe(oe({index:a},i.props),i.state),{},{trackRef:i.track,useCSS:i.props.useCSS&&!s})),g=p.state,y=p.nextState;if(g){c&&c(v,g.currentSlide);var m=g.lazyLoadedList.filter(function(b){return i.state.lazyLoadedList.indexOf(b)<0});f&&m.length>0&&f(m),!i.props.waitForAnimate&&i.animationEndCallback&&(clearTimeout(i.animationEndCallback),h&&h(v),delete i.animationEndCallback),i.setState(g,function(){u&&i.asNavForIndex!==a&&(i.asNavForIndex=a,u.innerSlider.slideHandler(a)),y&&(i.animationEndCallback=setTimeout(function(){var b=y.animating,w=Xve(y,["animating"]);i.setState(w,function(){i.callbackTimers.push(setTimeout(function(){return i.setState({animating:b})},10)),h&&h(g.currentSlide),delete i.animationEndCallback})},d))})}}),pe(he(i),"changeSlide",function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=oe(oe({},i.props),i.state),u=(0,Je.changeSlide)(l,a);if(!(u!==0&&!u)&&(s===!0?i.slideHandler(u,s):i.slideHandler(u),i.props.autoplay&&i.autoPlay("update"),i.props.focusOnSelect)){var c=i.list.querySelectorAll(".slick-current");c[0]&&c[0].focus()}}),pe(he(i),"clickHandler",function(a){i.clickable===!1&&(a.stopPropagation(),a.preventDefault()),i.clickable=!0}),pe(he(i),"keyHandler",function(a){var s=(0,Je.keyHandler)(a,i.props.accessibility,i.props.rtl);s!==""&&i.changeSlide({message:s})}),pe(he(i),"selectHandler",function(a){i.changeSlide(a)}),pe(he(i),"disableBodyScroll",function(){var a=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=a}),pe(he(i),"enableBodyScroll",function(){window.ontouchmove=null}),pe(he(i),"swipeStart",function(a){i.props.verticalSwiping&&i.disableBodyScroll();var s=(0,Je.swipeStart)(a,i.props.swipe,i.props.draggable);s!==""&&i.setState(s)}),pe(he(i),"swipeMove",function(a){var s=(0,Je.swipeMove)(a,oe(oe(oe({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));s&&(s.swiping&&(i.clickable=!1),i.setState(s))}),pe(he(i),"swipeEnd",function(a){var s=(0,Je.swipeEnd)(a,oe(oe(oe({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));if(s){var l=s.triggerSlideHandler;delete s.triggerSlideHandler,i.setState(s),l!==void 0&&(i.slideHandler(l),i.props.verticalSwiping&&i.enableBodyScroll())}}),pe(he(i),"touchEnd",function(a){i.swipeEnd(a),i.clickable=!0}),pe(he(i),"slickPrev",function(){i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"previous"})},0))}),pe(he(i),"slickNext",function(){i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"next"})},0))}),pe(he(i),"slickGoTo",function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a=Number(a),isNaN(a))return"";i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"index",index:a,currentSlide:i.state.currentSlide},s)},0))}),pe(he(i),"play",function(){var a;if(i.props.rtl)a=i.state.currentSlide-i.props.slidesToScroll;else if((0,Je.canGoNext)(oe(oe({},i.props),i.state)))a=i.state.currentSlide+i.props.slidesToScroll;else return!1;i.slideHandler(a)}),pe(he(i),"autoPlay",function(a){i.autoplayTimer&&clearInterval(i.autoplayTimer);var s=i.state.autoplaying;if(a==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(a==="leave"){if(s==="paused"||s==="focused")return}else if(a==="blur"&&(s==="paused"||s==="hovered"))return;i.autoplayTimer=setInterval(i.play,i.props.autoplaySpeed+50),i.setState({autoplaying:"playing"})}),pe(he(i),"pause",function(a){i.autoplayTimer&&(clearInterval(i.autoplayTimer),i.autoplayTimer=null);var s=i.state.autoplaying;a==="paused"?i.setState({autoplaying:"paused"}):a==="focused"?(s==="hovered"||s==="playing")&&i.setState({autoplaying:"focused"}):s==="playing"&&i.setState({autoplaying:"hovered"})}),pe(he(i),"onDotsOver",function(){return i.props.autoplay&&i.pause("hovered")}),pe(he(i),"onDotsLeave",function(){return i.props.autoplay&&i.state.autoplaying==="hovered"&&i.autoPlay("leave")}),pe(he(i),"onTrackOver",function(){return i.props.autoplay&&i.pause("hovered")}),pe(he(i),"onTrackLeave",function(){return i.props.autoplay&&i.state.autoplaying==="hovered"&&i.autoPlay("leave")}),pe(he(i),"onSlideFocus",function(){return i.props.autoplay&&i.pause("focused")}),pe(he(i),"onSlideBlur",function(){return i.props.autoplay&&i.state.autoplaying==="focused"&&i.autoPlay("blur")}),pe(he(i),"render",function(){var a=(0,Vve.default)("slick-slider",i.props.className,{"slick-vertical":i.props.vertical,"slick-initialized":!0}),s=oe(oe({},i.props),i.state),l=(0,Je.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=i.props.pauseOnHover;l=oe(oe({},l),{},{onMouseEnter:u?i.onTrackOver:null,onMouseLeave:u?i.onTrackLeave:null,onMouseOver:u?i.onTrackOver:null,focusOnSelect:i.props.focusOnSelect&&i.clickable?i.selectHandler:null});var c;if(i.props.dots===!0&&i.state.slideCount>=i.props.slidesToShow){var f=(0,Je.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),d=i.props.pauseOnDotsHover;f=oe(oe({},f),{},{clickHandler:i.changeSlide,onMouseEnter:d?i.onDotsLeave:null,onMouseOver:d?i.onDotsOver:null,onMouseLeave:d?i.onDotsLeave:null}),c=Bt.default.createElement(qve.Dots,f)}var h,v,p=(0,Je.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=i.changeSlide,i.props.arrows&&(h=Bt.default.createElement(X_.PrevArrow,p),v=Bt.default.createElement(X_.NextArrow,p));var g=null;i.props.vertical&&(g={height:i.state.listHeight});var y=null;i.props.vertical===!1?i.props.centerMode===!0&&(y={padding:"0px "+i.props.centerPadding}):i.props.centerMode===!0&&(y={padding:i.props.centerPadding+" 0px"});var m=oe(oe({},g),y),b=i.props.touchMove,w={className:"slick-list",style:m,onClick:i.clickHandler,onMouseDown:b?i.swipeStart:null,onMouseMove:i.state.dragging&&b?i.swipeMove:null,onMouseUp:b?i.swipeEnd:null,onMouseLeave:i.state.dragging&&b?i.swipeEnd:null,onTouchStart:b?i.swipeStart:null,onTouchMove:i.state.dragging&&b?i.swipeMove:null,onTouchEnd:b?i.touchEnd:null,onTouchCancel:i.state.dragging&&b?i.swipeEnd:null,onKeyDown:i.props.accessibility?i.keyHandler:null},x={className:a,dir:"ltr",style:i.props.style};return i.props.unslick&&(w={className:"slick-list"},x={className:a}),Bt.default.createElement("div",x,i.props.unslick?"":h,Bt.default.createElement("div",kh({ref:i.listRefHandler},w),Bt.default.createElement(Gve.Track,kh({ref:i.trackRefHandler},l),i.props.children)),i.props.unslick?"":v,i.props.unslick?"":c)}),i.list=null,i.track=null,i.state=oe(oe({},Uve.default),{},{currentSlide:i.props.initialSlide,targetSlide:i.props.initialSlide?i.props.initialSlide:0,slideCount:Bt.default.Children.count(i.props.children)}),i.callbackTimers=[],i.clickable=!0,i.debouncedResize=null;var o=i.ssrInit();return i.state=oe(oe({},i.state),o),i}return eye(r,[{key:"didPropsChange",value:function(i){for(var o=!1,a=0,s=Object.keys(this.props);a1&&arguments[1]!==void 0?arguments[1]:!1;return j.innerSlider.slickGoTo(M,R)}),x(m(j),"slickPause",function(){return j.innerSlider.pause("paused")}),x(m(j),"slickPlay",function(){return j.innerSlider.autoPlay("play")}),j.state={breakpoint:null},j._responsiveMediaHandlers=[],j}return h(T,[{key:"media",value:function(j,M){E.register(j,M),this._responsiveMediaHandlers.push({query:j,handler:M})}},{key:"componentDidMount",value:function(){var j=this;if(this.props.responsive){var M=this.props.responsive.map(function(I){return I.breakpoint});M.sort(function(I,D){return I-D}),M.forEach(function(I,D){var N;D===0?N=(0,n.default)({minWidth:0,maxWidth:I}):N=(0,n.default)({minWidth:M[D-1]+1,maxWidth:I}),(0,o.canUseDOM)()&&j.media(N,function(){j.setState({breakpoint:I})})});var R=(0,n.default)({minWidth:M.slice(-1)[0]});(0,o.canUseDOM)()&&this.media(R,function(){j.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(j){E.unregister(j.query,j.handler)})}},{key:"render",value:function(){var j=this,M,R;this.state.breakpoint?(R=this.props.responsive.filter(function(Ae){return Ae.breakpoint===j.state.breakpoint}),M=R[0].settings==="unslick"?"unslick":c(c(c({},i.default),this.props),R[0].settings)):M=c(c({},i.default),this.props),M.centerMode&&(M.slidesToScroll>1,M.slidesToScroll=1),M.fade&&(M.slidesToShow>1,M.slidesToScroll>1,M.slidesToShow=1,M.slidesToScroll=1);var I=t.default.Children.toArray(this.props.children);I=I.filter(function(Ae){return typeof Ae=="string"?!!Ae.trim():!!Ae}),M.variableWidth&&(M.rows>1||M.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),M.variableWidth=!1);for(var D=[],N=null,L=0;L=I.length));ie+=1)G.push(t.default.cloneElement(I[ie],{key:100*L+10*Y+ie,tabIndex:-1,style:{width:"".concat(100/M.slidesPerRow,"%"),display:"inline-block"}}));W.push(t.default.createElement("div",{key:10*L+Y},G))}M.variableWidth?D.push(t.default.createElement("div",{key:L,style:{width:N}},W)):D.push(t.default.createElement("div",{key:L},W))}if(M==="unslick"){var ye="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:ye},I)}else D.length<=M.slidesToShow&&!M.infinite&&(M.unslick=!0);return t.default.createElement(r.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,o.filterSettings)(M)),D)}}]),T}(t.default.Component)})(Qj);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Qj);function r(n){return n&&n.__esModule?n:{default:n}}e.default=t.default})(Zj);const mye=Me(Zj);function vye(){const e={dots:!1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,Arrow:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};return P.jsx("div",{className:"max-w-xl h-lg mx-auto mt-32 ",children:P.jsx(mye,{...e,children:uR.map((t,r)=>P.jsx("div",{className:"p-4",children:P.jsxs("div",{className:"bg-base-200 rounded-lg shadow-md overflow-hidden transition-transform transform hover:scale-105",children:[P.jsx("img",{src:t.img,alt:t.title,className:"w-full h-80 object-fit"}),P.jsxs("div",{className:"p-4",children:[P.jsx("h2",{className:"text-xl font-bold tracking-wide",children:t.title}),P.jsx("p",{className:"mt-2 text-gray-400 font-semibold tracking-wide text-center",children:t.description}),P.jsxs("p",{className:"mt-4 text-gray-500 font-bold tracking-wide text-center",children:["Source : ",t.name]})]})]})},r))})})}function yye(){return P.jsxs(P.Fragment,{children:[P.jsx(lde,{}),P.jsx(yme,{}),P.jsx(vye,{})]})}const gye="/GreenSky/assets/not-found-Dohdpz4O.svg";function bye(){const[e,t]=O.useState("home");return P.jsxs(rD,{basename:"GreenSky",children:[P.jsx(OD,{pageState:[e,t]}),P.jsxs(KI,{children:[P.jsx(vo,{path:"/",element:P.jsx(yye,{})}),P.jsx(vo,{path:"/blog",element:P.jsx(dR,{})}),P.jsx(vo,{path:"/about",element:P.jsx(Lv,{})}),P.jsx(vo,{path:"/contact",element:P.jsx(Lv,{})}),P.jsx(vo,{path:"/services",element:P.jsx(Lv,{})}),P.jsx(vo,{path:"*",element:P.jsx(wye,{})})]}),P.jsx(_D,{})]})}function Lv(){return P.jsx("div",{className:"h-dvh flex items-center justify-center text-sxl",children:"Coming Soon ..."})}function wye(){return P.jsxs("div",{className:"flex flex-col items-center justify-center h-dvh gap-5 p-10",children:[P.jsx("img",{src:gye,alt:"404"}),P.jsx("p",{className:"text-2xl",children:"PAGE NOT FOUND"})]})}const xye=yC(document.getElementById("root"));xye.render(P.jsx($.StrictMode,{children:P.jsx(bye,{})}))});export default Sye(); +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",a=0;a0?1:0):0},Wme=K.lazySlidesOnRight=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},M0=K.getWidth=function(t){return t&&t.offsetWidth||0},o4=K.getHeight=function(t){return t&&t.offsetHeight||0},a4=K.getSwipeDirection=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,i,o,a;return n=t.startX-t.curX,i=t.startY-t.curY,o=Math.atan2(i,n),a=Math.round(o*180/Math.PI),a<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?"left":a>=135&&a<=225?"right":r===!0?a>=35&&a<=135?"up":"down":"vertical"},s4=K.canGoNext=function(t){var r=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(r=!1),r};K.extractObject=function(t,r){var n={};return r.forEach(function(i){return n[i]=t[i]}),n};K.initializedState=function(t){var r=Dme.default.Children.count(t.children),n=t.listRef,i=Math.ceil(M0(n)),o=t.trackRef&&t.trackRef.node,a=Math.ceil(M0(o)),s;if(t.vertical)s=i;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=i/100),s=Math.ceil((i-l)/t.slidesToShow)}var u=n&&o4(n.querySelector('[data-index="0"]')),c=u*t.slidesToShow,f=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(f=r-1-t.initialSlide);var d=t.lazyLoadedList||[],h=r4(Ke(Ke({},t),{},{currentSlide:f,lazyLoadedList:d}));d=d.concat(h);var v={slideCount:r,slideWidth:s,listWidth:i,trackWidth:a,currentSlide:f,slideHeight:u,listHeight:c,lazyLoadedList:d};return t.autoplaying===null&&t.autoplay&&(v.autoplaying="playing"),v};K.slideHandler=function(t){var r=t.waitForAnimate,n=t.animating,i=t.fade,o=t.infinite,a=t.index,s=t.slideCount,l=t.lazyLoad,u=t.currentSlide,c=t.centerMode,f=t.slidesToScroll,d=t.slidesToShow,h=t.useCSS,v=t.lazyLoadedList;if(r&&n)return{};var p=a,g,y,m,b={},w={},x=o?a:t4(a,0,s-1);if(i){if(!o&&(a<0||a>=s))return{};a<0?p=a+s:a>=s&&(p=a-s),l&&v.indexOf(p)<0&&(v=v.concat(p)),b={animating:!0,currentSlide:p,lazyLoadedList:v,targetSlide:p},w={animating:!1,targetSlide:p}}else g=p,p<0?(g=p+s,o?s%f!==0&&(g=s-s%f):g=0):!s4(t)&&p>u?p=g=u:c&&p>=s?(p=o?s:s-1,g=o?0:s-1):p>=s&&(g=p-s,o?s%f!==0&&(g=0):g=s-d),!o&&p+d>=s&&(g=s-d),y=wh(Ke(Ke({},t),{},{slideIndex:p})),m=wh(Ke(Ke({},t),{},{slideIndex:g})),o||(y===m&&(p=g),y=m),l&&(v=v.concat(r4(Ke(Ke({},t),{},{currentSlide:p})))),h?(b={animating:!0,currentSlide:g,trackStyle:l4(Ke(Ke({},t),{},{left:y})),lazyLoadedList:v,targetSlide:x},w={animating:!1,currentSlide:g,trackStyle:bh(Ke(Ke({},t),{},{left:m})),swipeLeft:null,targetSlide:x}):b={currentSlide:g,trackStyle:bh(Ke(Ke({},t),{},{left:m})),lazyLoadedList:v,targetSlide:x};return{state:b,nextState:w}};K.changeSlide=function(t,r){var n,i,o,a,s,l=t.slidesToScroll,u=t.slidesToShow,c=t.slideCount,f=t.currentSlide,d=t.targetSlide,h=t.lazyLoad,v=t.infinite;if(a=c%l!==0,n=a?0:(c-f)%l,r.message==="previous")o=n===0?l:u-n,s=f-o,h&&!v&&(i=f-o,s=i===-1?c-1:i),v||(s=d-l);else if(r.message==="next")o=n===0?l:n,s=f+o,h&&!v&&(s=(f+l)%c+n),v||(s=d+l);else if(r.message==="dots")s=r.index*r.slidesToScroll;else if(r.message==="children"){if(s=r.index,v){var p=Vme(Ke(Ke({},t),{},{targetSlide:s}));s>r.currentSlide&&p==="left"?s=s-c:s10)return{scrolling:!0};s&&(m.swipeLength=A);var C=(l?-1:1)*(m.curX>m.startX?1:-1);s&&(C=m.curY>m.startY?1:-1);var T=Math.ceil(p/g),k=a4(r.touchObject,s),j=m.swipeLength;return y||(u===0&&(k==="right"||k==="down")||u+1>=T&&(k==="left"||k==="up")||!s4(r)&&(k==="left"||k==="up"))&&(j=m.swipeLength*c,f===!1&&d&&(d(k),_.edgeDragged=!0)),!h&&b&&(b(k),_.swiped=!0),o?S=E+j*(w/x)*C:l?S=E-j*C:S=E+j*C,s&&(S=E+j*C),_=Ke(Ke({},_),{},{touchObject:m,swipeLeft:S,trackStyle:bh(Ke(Ke({},r),{},{left:S}))}),Math.abs(m.curX-m.startX)10&&(_.swiping=!0,Ha(t)),_}};K.swipeEnd=function(t,r){var n=r.dragging,i=r.swipe,o=r.touchObject,a=r.listWidth,s=r.touchThreshold,l=r.verticalSwiping,u=r.listHeight,c=r.swipeToSlide,f=r.scrolling,d=r.onSwipe,h=r.targetSlide,v=r.currentSlide,p=r.infinite;if(!n)return i&&Ha(t),{};var g=l?u/s:a/s,y=a4(o,l),m={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f||!o.swipeLength)return m;if(o.swipeLength>g){Ha(t),d&&d(y);var b,w,x=p?v:h;switch(y){case"left":case"up":w=x+U_(r),b=c?H_(r,w):w,m.currentDirection=0;break;case"right":case"down":w=x-U_(r),b=c?H_(r,w):w,m.currentDirection=1;break;default:b=x}m.triggerSlideHandler=b}else{var S=wh(r);m.trackStyle=l4(Ke(Ke({},r),{},{left:S}))}return m};var Hme=K.getNavigableIndexes=function(t){for(var r=t.infinite?t.slideCount*2:t.slideCount,n=t.infinite?t.slidesToShow*-1:0,i=t.infinite?t.slidesToShow*-1:0,o=[];nn[n.length-1])r=n[n.length-1];else for(var o in n){if(rt.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-r+M0(l)/2>t.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;var a=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,s=Math.abs(n.dataset.index-a)||1;return s}else return t.slidesToScroll},$w=K.checkSpecKeys=function(t,r){return r.reduce(function(n,i){return n&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing:",t)},bh=K.getTrackCSS=function(t){$w(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r,n,i=t.slideCount+2*t.slidesToShow;t.vertical?n=i*t.slideHeight:r=Yme(t)*t.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var a=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";o=Ke(Ke({},o),{},{WebkitTransform:a,transform:s,msTransform:l})}else t.vertical?o.top=t.left:o.left=t.left;return t.fade&&(o={opacity:1}),r&&(o.width=r),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?o.marginTop=t.left+"px":o.marginLeft=t.left+"px"),o},l4=K.getTrackAnimateCSS=function(t){$w(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var r=bh(t);return t.useTransform?(r.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,r.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?r.transition="top "+t.speed+"ms "+t.cssEase:r.transition="left "+t.speed+"ms "+t.cssEase,r},wh=K.getTrackLeft=function(t){if(t.unslick)return 0;$w(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var r=t.slideIndex,n=t.trackRef,i=t.infinite,o=t.centerMode,a=t.slideCount,s=t.slidesToShow,l=t.slidesToScroll,u=t.slideWidth,c=t.listWidth,f=t.variableWidth,d=t.slideHeight,h=t.fade,v=t.vertical,p=0,g,y,m=0;if(h||t.slideCount===1)return 0;var b=0;if(i?(b=-Rf(t),a%l!==0&&r+l>a&&(b=-(r>a?s-(r-a):a%l)),o&&(b+=parseInt(s/2))):(a%l!==0&&r+l>a&&(b=s-a%l),o&&(b=parseInt(s/2))),p=b*u,m=b*d,v?g=r*d*-1+m:g=r*u*-1+p,f===!0){var w,x=n&&n.node;if(w=r+Rf(t),y=x&&x.childNodes[w],g=y?y.offsetLeft*-1:0,o===!0){w=i?r+Rf(t):r,y=x&&x.children[w],g=0;for(var S=0;St.currentSlide?t.targetSlide>t.currentSlide+Gme(t)?"left":"right":t.targetSlide0&&(a+=1),i&&r%2===0&&(a+=1),a}return i?0:r-1},qme=K.slidesOnLeft=function(t){var r=t.slidesToShow,n=t.centerMode,i=t.rtl,o=t.centerPadding;if(n){var a=(r-1)/2+1;return parseInt(o)>0&&(a+=1),!i&&r%2===0&&(a+=1),a}return i?r-1:0};K.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var Kme=K.validSettings=Object.keys(Rme.default);function Xme(e){return Kme.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})}var om={};Object.defineProperty(om,"__esModule",{value:!0});om.Track=void 0;var _i=u4(O),Av=u4(im),Tv=K;function u4(e){return e&&e.__esModule?e:{default:e}}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 j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t.slideCount,t.centerMode?(o=Math.floor(t.slidesToShow/2),n=(a-t.currentSlide)%t.slideCount===0,a>t.currentSlide-o-1&&a<=t.currentSlide+o&&(r=!0)):r=t.currentSlide<=a&&a=t.slideCount?s=t.targetSlide-t.slideCount:s=t.targetSlide;var l=a===s;return{"slick-slide":!0,"slick-active":r,"slick-center":n,"slick-cloned":i,"slick-current":l}},ive=function(t){var r={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(r.width=t.slideWidth),t.fade&&(r.position="relative",t.vertical?r.top=-t.index*parseInt(t.slideHeight):r.left=-t.index*parseInt(t.slideWidth),r.opacity=t.currentSlide===t.index?1:0,r.zIndex=t.currentSlide===t.index?999:998,t.useCSS&&(r.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),r},jv=function(t,r){return t.key||r},ove=function(t){var r,n=[],i=[],o=[],a=_i.default.Children.count(t.children),s=(0,Tv.lazyStartIndex)(t),l=(0,Tv.lazyEndIndex)(t);return _i.default.Children.forEach(t.children,function(u,c){var f,d={message:"children",index:c,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(c)>=0?f=u:f=_i.default.createElement("div",null);var h=ive(Gt(Gt({},t),{},{index:c})),v=f.props.className||"",p=Mv(Gt(Gt({},t),{},{index:c}));if(n.push(_i.default.cloneElement(f,{key:"original"+jv(f,c),"data-index":c,className:(0,Av.default)(p,v),tabIndex:"-1","aria-hidden":!p["slick-active"],style:Gt(Gt({outline:"none"},f.props.style||{}),h),onClick:function(m){f.props&&f.props.onClick&&f.props.onClick(m),t.focusOnSelect&&t.focusOnSelect(d)}})),t.infinite&&t.fade===!1){var g=a-c;g<=(0,Tv.getPreClones)(t)&&(r=-g,r>=s&&(f=u),p=Mv(Gt(Gt({},t),{},{index:r})),i.push(_i.default.cloneElement(f,{key:"precloned"+jv(f,r),"data-index":r,tabIndex:"-1",className:(0,Av.default)(p,v),"aria-hidden":!p["slick-active"],style:Gt(Gt({},f.props.style||{}),h),onClick:function(m){f.props&&f.props.onClick&&f.props.onClick(m),t.focusOnSelect&&t.focusOnSelect(d)}}))),r=a+c,r=w&&d<=m:d===w}),S={message:"dots",index:g,slidesToScroll:u,currentSlide:d},_=this.clickHandler.bind(this,S);p=p.concat(vf.default.createElement("li",{key:g,className:x},vf.default.cloneElement(this.props.customPaging(g),{onClick:_})))}return vf.default.cloneElement(this.props.appendDots(p),sve({className:this.props.dotsClass},v))}}]),r}(vf.default.PureComponent);var gs={};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)}Object.defineProperty(gs,"__esModule",{value:!0});gs.PrevArrow=gs.NextArrow=void 0;var Ua=v4(O),m4=v4(im),gve=K;function v4(e){return e&&e.__esModule?e:{default:e}}function Oh(){return Oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t0},e.prototype.connect_=function(){!L0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ave?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!L0||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=kve.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),_4=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof ws(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Lve(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ws(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new zve(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E4=typeof WeakMap<"u"?new WeakMap:new O4,C4=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Tve.getInstance(),n=new Fve(t,r,this);E4.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){C4.prototype[e]=function(){var t;return(t=E4.get(this))[e].apply(t,arguments)}});var Bve=function(){return typeof Eh.ResizeObserver<"u"?Eh.ResizeObserver:C4}();const Wve=Object.freeze(Object.defineProperty({__proto__:null,default:Bve},Symbol.toStringTag,{value:"Module"})),Hve=$4(Wve);Object.defineProperty(nm,"__esModule",{value:!0});nm.InnerSlider=void 0;var Bt=Cc(O),Uve=Cc(Qj),Yve=Cc(Ime),Vve=Cc(im),Je=K,Gve=om,qve=am,X_=gs,Kve=Cc(Hve);function Cc(e){return e&&e.__esModule?e:{default:e}}function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zve(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}function Z_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t0&&(i.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(a)}}),i.props.onLazyLoad&&i.props.onLazyLoad(a))}var s=oe({listRef:i.list,trackRef:i.track},i.props);i.updateState(s,!0,function(){i.adaptHeight(),i.props.autoplay&&i.autoPlay("update")}),i.props.lazyLoad==="progressive"&&(i.lazyLoadTimer=setInterval(i.progressiveLazyLoad,1e3)),i.ro=new Kve.default(function(){i.state.animating?(i.onWindowResized(!1),i.callbackTimers.push(setTimeout(function(){return i.onWindowResized()},i.props.speed))):i.onWindowResized()}),i.ro.observe(i.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=i.props.pauseOnFocus?i.onSlideFocus:null,l.onblur=i.props.pauseOnFocus?i.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",i.onWindowResized):window.attachEvent("onresize",i.onWindowResized)}),pe(he(i),"componentWillUnmount",function(){i.animationEndCallback&&clearTimeout(i.animationEndCallback),i.lazyLoadTimer&&clearInterval(i.lazyLoadTimer),i.callbackTimers.length&&(i.callbackTimers.forEach(function(a){return clearTimeout(a)}),i.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",i.onWindowResized):window.detachEvent("onresize",i.onWindowResized),i.autoplayTimer&&clearInterval(i.autoplayTimer),i.ro.disconnect()}),pe(he(i),"componentDidUpdate",function(a){if(i.checkImagesLoad(),i.props.onReInit&&i.props.onReInit(),i.props.lazyLoad){var s=(0,Je.getOnDemandLazySlides)(oe(oe({},i.props),i.state));s.length>0&&(i.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(s)}}),i.props.onLazyLoad&&i.props.onLazyLoad(s))}i.adaptHeight();var l=oe(oe({listRef:i.list,trackRef:i.track},i.props),i.state),u=i.didPropsChange(a);u&&i.updateState(l,u,function(){i.state.currentSlide>=Bt.default.Children.count(i.props.children)&&i.changeSlide({message:"index",index:Bt.default.Children.count(i.props.children)-i.props.slidesToShow,currentSlide:i.state.currentSlide}),i.props.autoplay?i.autoPlay("update"):i.pause("paused")})}),pe(he(i),"onWindowResized",function(a){i.debouncedResize&&i.debouncedResize.cancel(),i.debouncedResize=(0,Yve.default)(function(){return i.resizeWindow(a)},50),i.debouncedResize()}),pe(he(i),"resizeWindow",function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(i.track&&i.track.node);if(s){var l=oe(oe({listRef:i.list,trackRef:i.track},i.props),i.state);i.updateState(l,a,function(){i.props.autoplay?i.autoPlay("update"):i.pause("paused")}),i.setState({animating:!1}),clearTimeout(i.animationEndCallback),delete i.animationEndCallback}}),pe(he(i),"updateState",function(a,s,l){var u=(0,Je.initializedState)(a);a=oe(oe(oe({},a),u),{},{slideIndex:u.currentSlide});var c=(0,Je.getTrackLeft)(a);a=oe(oe({},a),{},{left:c});var f=(0,Je.getTrackCSS)(a);(s||Bt.default.Children.count(i.props.children)!==Bt.default.Children.count(a.children))&&(u.trackStyle=f),i.setState(u,l)}),pe(he(i),"ssrInit",function(){if(i.props.variableWidth){var a=0,s=0,l=[],u=(0,Je.getPreClones)(oe(oe(oe({},i.props),i.state),{},{slideCount:i.props.children.length})),c=(0,Je.getPostClones)(oe(oe(oe({},i.props),i.state),{},{slideCount:i.props.children.length}));i.props.children.forEach(function(_){l.push(_.props.style.width),a+=_.props.style.width});for(var f=0;f=s&&i.onWindowResized()};if(!u.onclick)u.onclick=function(){return u.parentNode.focus()};else{var f=u.onclick;u.onclick=function(d){f(d),u.parentNode.focus()}}u.onload||(i.props.lazyLoad?u.onload=function(){i.adaptHeight(),i.callbackTimers.push(setTimeout(i.onWindowResized,i.props.speed))}:(u.onload=c,u.onerror=function(){c(),i.props.onLazyLoadError&&i.props.onLazyLoadError()}))})}),pe(he(i),"progressiveLazyLoad",function(){for(var a=[],s=oe(oe({},i.props),i.state),l=i.state.currentSlide;l=-(0,Je.getPreClones)(s);u--)if(i.state.lazyLoadedList.indexOf(u)<0){a.push(u);break}a.length>0?(i.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(a)}}),i.props.onLazyLoad&&i.props.onLazyLoad(a)):i.lazyLoadTimer&&(clearInterval(i.lazyLoadTimer),delete i.lazyLoadTimer)}),pe(he(i),"slideHandler",function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=i.props,u=l.asNavFor,c=l.beforeChange,f=l.onLazyLoad,d=l.speed,h=l.afterChange,v=i.state.currentSlide,p=(0,Je.slideHandler)(oe(oe(oe({index:a},i.props),i.state),{},{trackRef:i.track,useCSS:i.props.useCSS&&!s})),g=p.state,y=p.nextState;if(g){c&&c(v,g.currentSlide);var m=g.lazyLoadedList.filter(function(b){return i.state.lazyLoadedList.indexOf(b)<0});f&&m.length>0&&f(m),!i.props.waitForAnimate&&i.animationEndCallback&&(clearTimeout(i.animationEndCallback),h&&h(v),delete i.animationEndCallback),i.setState(g,function(){u&&i.asNavForIndex!==a&&(i.asNavForIndex=a,u.innerSlider.slideHandler(a)),y&&(i.animationEndCallback=setTimeout(function(){var b=y.animating,w=Xve(y,["animating"]);i.setState(w,function(){i.callbackTimers.push(setTimeout(function(){return i.setState({animating:b})},10)),h&&h(g.currentSlide),delete i.animationEndCallback})},d))})}}),pe(he(i),"changeSlide",function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=oe(oe({},i.props),i.state),u=(0,Je.changeSlide)(l,a);if(!(u!==0&&!u)&&(s===!0?i.slideHandler(u,s):i.slideHandler(u),i.props.autoplay&&i.autoPlay("update"),i.props.focusOnSelect)){var c=i.list.querySelectorAll(".slick-current");c[0]&&c[0].focus()}}),pe(he(i),"clickHandler",function(a){i.clickable===!1&&(a.stopPropagation(),a.preventDefault()),i.clickable=!0}),pe(he(i),"keyHandler",function(a){var s=(0,Je.keyHandler)(a,i.props.accessibility,i.props.rtl);s!==""&&i.changeSlide({message:s})}),pe(he(i),"selectHandler",function(a){i.changeSlide(a)}),pe(he(i),"disableBodyScroll",function(){var a=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=a}),pe(he(i),"enableBodyScroll",function(){window.ontouchmove=null}),pe(he(i),"swipeStart",function(a){i.props.verticalSwiping&&i.disableBodyScroll();var s=(0,Je.swipeStart)(a,i.props.swipe,i.props.draggable);s!==""&&i.setState(s)}),pe(he(i),"swipeMove",function(a){var s=(0,Je.swipeMove)(a,oe(oe(oe({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));s&&(s.swiping&&(i.clickable=!1),i.setState(s))}),pe(he(i),"swipeEnd",function(a){var s=(0,Je.swipeEnd)(a,oe(oe(oe({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));if(s){var l=s.triggerSlideHandler;delete s.triggerSlideHandler,i.setState(s),l!==void 0&&(i.slideHandler(l),i.props.verticalSwiping&&i.enableBodyScroll())}}),pe(he(i),"touchEnd",function(a){i.swipeEnd(a),i.clickable=!0}),pe(he(i),"slickPrev",function(){i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"previous"})},0))}),pe(he(i),"slickNext",function(){i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"next"})},0))}),pe(he(i),"slickGoTo",function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a=Number(a),isNaN(a))return"";i.callbackTimers.push(setTimeout(function(){return i.changeSlide({message:"index",index:a,currentSlide:i.state.currentSlide},s)},0))}),pe(he(i),"play",function(){var a;if(i.props.rtl)a=i.state.currentSlide-i.props.slidesToScroll;else if((0,Je.canGoNext)(oe(oe({},i.props),i.state)))a=i.state.currentSlide+i.props.slidesToScroll;else return!1;i.slideHandler(a)}),pe(he(i),"autoPlay",function(a){i.autoplayTimer&&clearInterval(i.autoplayTimer);var s=i.state.autoplaying;if(a==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(a==="leave"){if(s==="paused"||s==="focused")return}else if(a==="blur"&&(s==="paused"||s==="hovered"))return;i.autoplayTimer=setInterval(i.play,i.props.autoplaySpeed+50),i.setState({autoplaying:"playing"})}),pe(he(i),"pause",function(a){i.autoplayTimer&&(clearInterval(i.autoplayTimer),i.autoplayTimer=null);var s=i.state.autoplaying;a==="paused"?i.setState({autoplaying:"paused"}):a==="focused"?(s==="hovered"||s==="playing")&&i.setState({autoplaying:"focused"}):s==="playing"&&i.setState({autoplaying:"hovered"})}),pe(he(i),"onDotsOver",function(){return i.props.autoplay&&i.pause("hovered")}),pe(he(i),"onDotsLeave",function(){return i.props.autoplay&&i.state.autoplaying==="hovered"&&i.autoPlay("leave")}),pe(he(i),"onTrackOver",function(){return i.props.autoplay&&i.pause("hovered")}),pe(he(i),"onTrackLeave",function(){return i.props.autoplay&&i.state.autoplaying==="hovered"&&i.autoPlay("leave")}),pe(he(i),"onSlideFocus",function(){return i.props.autoplay&&i.pause("focused")}),pe(he(i),"onSlideBlur",function(){return i.props.autoplay&&i.state.autoplaying==="focused"&&i.autoPlay("blur")}),pe(he(i),"render",function(){var a=(0,Vve.default)("slick-slider",i.props.className,{"slick-vertical":i.props.vertical,"slick-initialized":!0}),s=oe(oe({},i.props),i.state),l=(0,Je.extractObject)(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=i.props.pauseOnHover;l=oe(oe({},l),{},{onMouseEnter:u?i.onTrackOver:null,onMouseLeave:u?i.onTrackLeave:null,onMouseOver:u?i.onTrackOver:null,focusOnSelect:i.props.focusOnSelect&&i.clickable?i.selectHandler:null});var c;if(i.props.dots===!0&&i.state.slideCount>=i.props.slidesToShow){var f=(0,Je.extractObject)(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),d=i.props.pauseOnDotsHover;f=oe(oe({},f),{},{clickHandler:i.changeSlide,onMouseEnter:d?i.onDotsLeave:null,onMouseOver:d?i.onDotsOver:null,onMouseLeave:d?i.onDotsLeave:null}),c=Bt.default.createElement(qve.Dots,f)}var h,v,p=(0,Je.extractObject)(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=i.changeSlide,i.props.arrows&&(h=Bt.default.createElement(X_.PrevArrow,p),v=Bt.default.createElement(X_.NextArrow,p));var g=null;i.props.vertical&&(g={height:i.state.listHeight});var y=null;i.props.vertical===!1?i.props.centerMode===!0&&(y={padding:"0px "+i.props.centerPadding}):i.props.centerMode===!0&&(y={padding:i.props.centerPadding+" 0px"});var m=oe(oe({},g),y),b=i.props.touchMove,w={className:"slick-list",style:m,onClick:i.clickHandler,onMouseDown:b?i.swipeStart:null,onMouseMove:i.state.dragging&&b?i.swipeMove:null,onMouseUp:b?i.swipeEnd:null,onMouseLeave:i.state.dragging&&b?i.swipeEnd:null,onTouchStart:b?i.swipeStart:null,onTouchMove:i.state.dragging&&b?i.swipeMove:null,onTouchEnd:b?i.touchEnd:null,onTouchCancel:i.state.dragging&&b?i.swipeEnd:null,onKeyDown:i.props.accessibility?i.keyHandler:null},x={className:a,dir:"ltr",style:i.props.style};return i.props.unslick&&(w={className:"slick-list"},x={className:a}),Bt.default.createElement("div",x,i.props.unslick?"":h,Bt.default.createElement("div",kh({ref:i.listRefHandler},w),Bt.default.createElement(Gve.Track,kh({ref:i.trackRefHandler},l),i.props.children)),i.props.unslick?"":v,i.props.unslick?"":c)}),i.list=null,i.track=null,i.state=oe(oe({},Uve.default),{},{currentSlide:i.props.initialSlide,targetSlide:i.props.initialSlide?i.props.initialSlide:0,slideCount:Bt.default.Children.count(i.props.children)}),i.callbackTimers=[],i.clickable=!0,i.debouncedResize=null;var o=i.ssrInit();return i.state=oe(oe({},i.state),o),i}return eye(r,[{key:"didPropsChange",value:function(i){for(var o=!1,a=0,s=Object.keys(this.props);a1&&arguments[1]!==void 0?arguments[1]:!1;return j.innerSlider.slickGoTo(M,R)}),x(m(j),"slickPause",function(){return j.innerSlider.pause("paused")}),x(m(j),"slickPlay",function(){return j.innerSlider.autoPlay("play")}),j.state={breakpoint:null},j._responsiveMediaHandlers=[],j}return h(T,[{key:"media",value:function(j,M){E.register(j,M),this._responsiveMediaHandlers.push({query:j,handler:M})}},{key:"componentDidMount",value:function(){var j=this;if(this.props.responsive){var M=this.props.responsive.map(function(I){return I.breakpoint});M.sort(function(I,D){return I-D}),M.forEach(function(I,D){var N;D===0?N=(0,n.default)({minWidth:0,maxWidth:I}):N=(0,n.default)({minWidth:M[D-1]+1,maxWidth:I}),(0,o.canUseDOM)()&&j.media(N,function(){j.setState({breakpoint:I})})});var R=(0,n.default)({minWidth:M.slice(-1)[0]});(0,o.canUseDOM)()&&this.media(R,function(){j.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(j){E.unregister(j.query,j.handler)})}},{key:"render",value:function(){var j=this,M,R;this.state.breakpoint?(R=this.props.responsive.filter(function(Ae){return Ae.breakpoint===j.state.breakpoint}),M=R[0].settings==="unslick"?"unslick":c(c(c({},i.default),this.props),R[0].settings)):M=c(c({},i.default),this.props),M.centerMode&&(M.slidesToScroll>1,M.slidesToScroll=1),M.fade&&(M.slidesToShow>1,M.slidesToScroll>1,M.slidesToShow=1,M.slidesToScroll=1);var I=t.default.Children.toArray(this.props.children);I=I.filter(function(Ae){return typeof Ae=="string"?!!Ae.trim():!!Ae}),M.variableWidth&&(M.rows>1||M.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),M.variableWidth=!1);for(var D=[],N=null,L=0;L=I.length));ie+=1)G.push(t.default.cloneElement(I[ie],{key:100*L+10*Y+ie,tabIndex:-1,style:{width:"".concat(100/M.slidesPerRow,"%"),display:"inline-block"}}));W.push(t.default.createElement("div",{key:10*L+Y},G))}M.variableWidth?D.push(t.default.createElement("div",{key:L,style:{width:N}},W)):D.push(t.default.createElement("div",{key:L},W))}if(M==="unslick"){var ye="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:ye},I)}else D.length<=M.slidesToShow&&!M.infinite&&(M.unslick=!0);return t.default.createElement(r.InnerSlider,l({style:this.props.style,ref:this.innerSliderRefHandler},(0,o.filterSettings)(M)),D)}}]),T}(t.default.Component)})(Zj);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Zj);function r(n){return n&&n.__esModule?n:{default:n}}e.default=t.default})(Xj);const mye=Me(Xj);function vye(){const e={dots:!1,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,Arrow:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};return P.jsx("div",{className:"max-w-xl h-lg mx-auto mt-32 ",children:P.jsx(mye,{...e,children:Mse.map((t,r)=>P.jsx("div",{className:"p-4",children:P.jsxs("div",{className:"bg-base-200 rounded-lg shadow-md overflow-hidden transition-transform transform hover:scale-105",children:[P.jsx("img",{src:t.img,alt:t.title,className:"w-full h-80 object-fit"}),P.jsxs("div",{className:"p-4",children:[P.jsx("h2",{className:"text-xl font-bold tracking-wide",children:t.title}),P.jsx("p",{className:"mt-2 text-gray-400 font-semibold tracking-wide text-center",children:t.description}),P.jsxs("p",{className:"mt-4 text-gray-500 font-bold tracking-wide text-center",children:["Source : ",t.name]})]})]})},r))})})}function yye(){return P.jsxs(P.Fragment,{children:[P.jsx(rde,{}),P.jsx(yme,{}),P.jsx(vye,{})]})}const gye="/GreenSky/assets/not-found-Dohdpz4O.svg";function bye(){const[e,t]=O.useState("home");return P.jsxs(tD,{basename:"GreenSky",children:[P.jsx(SD,{pageState:[e,t]}),P.jsxs(qI,{children:[P.jsx(vo,{path:"/",element:P.jsx(yye,{})}),P.jsx(vo,{path:"/blog",element:P.jsx(ED,{})}),P.jsx(vo,{path:"/about",element:P.jsx(Lv,{})}),P.jsx(vo,{path:"/contact",element:P.jsx(Lv,{})}),P.jsx(vo,{path:"/services",element:P.jsx(Lv,{})}),P.jsx(vo,{path:"*",element:P.jsx(wye,{})})]}),P.jsx(OD,{})]})}function Lv(){return P.jsx("div",{className:"h-dvh flex items-center justify-center text-sxl",children:"Coming Soon ..."})}function wye(){return P.jsxs("div",{className:"flex flex-col items-center justify-center h-dvh gap-5 p-10",children:[P.jsx("img",{src:gye,alt:"404"}),P.jsx("p",{className:"text-2xl",children:"PAGE NOT FOUND"})]})}const xye=yC(document.getElementById("root"));xye.render(P.jsx($.StrictMode,{children:P.jsx(bye,{})}))});export default Sye(); diff --git a/index.html b/index.html index 002d035..8eda447 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ rel="stylesheet" /> GreenSky - +