import{j as B,r as K,R,g as Ct,c as Ba,S as HO}from"./app-Dqm4owHT.js";import{C as kr,a as fn,b as hn,c as dn}from"./card-doxYxJEC.js";import{c as ZO,e as Tt}from"./index-Ebf2_-ZL.js";import{c as gx}from"./createLucideIcon-Cc-ke-6N.js";/* empty css */import{T as Cv,a as jv,b as fi,c as Ir,d as Iv,e as Qe}from"./table-eMEisCI4.js";import{G as GO}from"./GuestLayout--0b5oeAX.js";import"./index-D3BPeFjX.js";import"./toaster-D9vdlzAC.js";import"./index-HNzDpnpF.js";import"./x-DjRPG20W.js";import"./graduation-cap-CAt1NeIc.js";/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KO=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],VO=gx("ChartLine",KO);/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XO=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],YO=gx("House",XO);function qa({title:t,value:e,className:r}){return B.jsx(kr,{className:ZO("relative overflow-hidden p-6",r),children:B.jsxs("div",{className:"flex items-center justify-between",children:[B.jsxs("div",{children:[B.jsx("p",{className:"text-sm font-medium opacity-80",children:t}),B.jsx("p",{className:"text-3xl font-bold",children:e})]}),B.jsx(VO,{className:"h-12 w-12 opacity-20"})]})})}const JO=1;function QO(t){return Object.freeze({__version:JO,map:t})}function tS(t,e){return Object.freeze({...t,...e})}const bd=K.createContext(null);function _x(){const t=K.use(bd);if(t==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}function eS(t){function e(r,n){const{instance:a,context:o}=t(r).current;K.useImperativeHandle(n,()=>a);const{children:u}=r;return u==null?null:R.createElement(bd,{value:o},u)}return K.forwardRef(e)}function rS(t,e){const r=K.useRef(void 0);K.useEffect(function(){return e!=null&&t.instance.on(e),r.current=e,function(){r.current!=null&&t.instance.off(r.current),r.current=null}},[t,e])}function nS(t,e){const r=t.pane??e.pane;return r?{...t,pane:r}:t}var xi={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var iS=xi.exports,Lv;function aS(){return Lv||(Lv=1,function(t,e){(function(r,n){n(e)})(iS,function(r){var n="1.9.4";function a(i){var s,f,v,y;for(f=1,v=arguments.length;f<v;f++){y=arguments[f];for(s in y)i[s]=y[s]}return i}var o=Object.create||function(){function i(){}return function(s){return i.prototype=s,new i}}();function u(i,s){var f=Array.prototype.slice;if(i.bind)return i.bind.apply(i,f.call(arguments,1));var v=f.call(arguments,2);return function(){return i.apply(s,v.length?v.concat(f.call(arguments)):arguments)}}var c=0;function l(i){return"_leaflet_id"in i||(i._leaflet_id=++c),i._leaflet_id}function h(i,s,f){var v,y,P,j;return j=function(){v=!1,y&&(P.apply(f,y),y=!1)},P=function(){v?y=arguments:(i.apply(f,arguments),setTimeout(j,s),v=!0)},P}function p(i,s,f){var v=s[1],y=s[0],P=v-y;return i===v&&f?i:((i-y)%P+P)%P+y}function d(){return!1}function m(i,s){if(s===!1)return i;var f=Math.pow(10,s===void 0?6:s);return Math.round(i*f)/f}function g(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function x(i){return g(i).split(/\s+/)}function b(i,s){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?o(i.options):{});for(var f in s)i.options[f]=s[f];return i.options}function _(i,s,f){var v=[];for(var y in i)v.push(encodeURIComponent(f?y.toUpperCase():y)+"="+encodeURIComponent(i[y]));return(!s||s.indexOf("?")===-1?"?":"&")+v.join("&")}var A=/\{ *([\w_ -]+) *\}/g;function T(i,s){return i.replace(A,function(f,v){var y=s[v];if(y===void 0)throw new Error("No value provided for variable "+f);return typeof y=="function"&&(y=y(s)),y})}var O=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function E(i,s){for(var f=0;f<i.length;f++)if(i[f]===s)return f;return-1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function S(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var M=0;function I(i){var s=+new Date,f=Math.max(0,16-(s-M));return M=s+f,window.setTimeout(i,f)}var k=window.requestAnimationFrame||S("RequestAnimationFrame")||I,$=window.cancelAnimationFrame||S("CancelAnimationFrame")||S("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function C(i,s,f){if(f&&k===I)i.call(s);else return k.call(window,u(i,s))}function N(i){i&&$.call(window,i)}var q={__proto__:null,extend:a,create:o,bind:u,get lastId(){return c},stamp:l,throttle:h,wrapNum:p,falseFn:d,formatNum:m,trim:g,splitWords:x,setOptions:b,getParamString:_,template:T,isArray:O,indexOf:E,emptyImageUrl:w,requestFn:k,cancelFn:$,requestAnimFrame:C,cancelAnimFrame:N};function F(){}F.extend=function(i){var s=function(){b(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=s.__super__=this.prototype,v=o(f);v.constructor=s,s.prototype=v;for(var y in this)Object.prototype.hasOwnProperty.call(this,y)&&y!=="prototype"&&y!=="__super__"&&(s[y]=this[y]);return i.statics&&a(s,i.statics),i.includes&&(W(i.includes),a.apply(null,[v].concat(i.includes))),a(v,i),delete v.statics,delete v.includes,v.options&&(v.options=f.options?o(f.options):{},a(v.options,i.options)),v._initHooks=[],v.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var P=0,j=v._initHooks.length;P<j;P++)v._initHooks[P].call(this)}},s},F.include=function(i){var s=this.prototype.options;return a(this.prototype,i),i.options&&(this.prototype.options=s,this.mergeOptions(i.options)),this},F.mergeOptions=function(i){return a(this.prototype.options,i),this},F.addInitHook=function(i){var s=Array.prototype.slice.call(arguments,1),f=typeof i=="function"?i:function(){this[i].apply(this,s)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function W(i){if(!(typeof L>"u"||!L||!L.Mixin)){i=O(i)?i:[i];for(var s=0;s<i.length;s++)i[s]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Z={on:function(i,s,f){if(typeof i=="object")for(var v in i)this._on(v,i[v],s);else{i=x(i);for(var y=0,P=i.length;y<P;y++)this._on(i[y],s,f)}return this},off:function(i,s,f){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var v in i)this._off(v,i[v],s);else{i=x(i);for(var y=arguments.length===1,P=0,j=i.length;P<j;P++)y?this._off(i[P]):this._off(i[P],s,f)}return this},_on:function(i,s,f,v){if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}if(this._listens(i,s,f)===!1){f===this&&(f=void 0);var y={fn:s,ctx:f};v&&(y.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(y)}},_off:function(i,s,f){var v,y,P;if(this._events&&(v=this._events[i],!!v)){if(arguments.length===1){if(this._firingCount)for(y=0,P=v.length;y<P;y++)v[y].fn=d;delete this._events[i];return}if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}var j=this._listens(i,s,f);if(j!==!1){var D=v[j];this._firingCount&&(D.fn=d,this._events[i]=v=v.slice()),v.splice(j,1)}}},fire:function(i,s,f){if(!this.listens(i,f))return this;var v=a({},s,{type:i,target:this,sourceTarget:s&&s.sourceTarget||this});if(this._events){var y=this._events[i];if(y){this._firingCount=this._firingCount+1||1;for(var P=0,j=y.length;P<j;P++){var D=y[P],z=D.fn;D.once&&this.off(i,z,D.ctx),z.call(D.ctx||this,v)}this._firingCount--}}return f&&this._propagateEvent(v),this},listens:function(i,s,f,v){typeof i!="string"&&console.warn('"string" type argument expected');var y=s;typeof s!="function"&&(v=!!s,y=void 0,f=void 0);var P=this._events&&this._events[i];if(P&&P.length&&this._listens(i,y,f)!==!1)return!0;if(v){for(var j in this._eventParents)if(this._eventParents[j].listens(i,s,f,v))return!0}return!1},_listens:function(i,s,f){if(!this._events)return!1;var v=this._events[i]||[];if(!s)return!!v.length;f===this&&(f=void 0);for(var y=0,P=v.length;y<P;y++)if(v[y].fn===s&&v[y].ctx===f)return y;return!1},once:function(i,s,f){if(typeof i=="object")for(var v in i)this._on(v,i[v],s,!0);else{i=x(i);for(var y=0,P=i.length;y<P;y++)this._on(i[y],s,f,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[l(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[l(i)],this},_propagateEvent:function(i){for(var s in this._eventParents)this._eventParents[s].fire(i.type,a({layer:i.target,propagatedFrom:i.target},i),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var X=F.extend(Z);function H(i,s,f){this.x=f?Math.round(i):i,this.y=f?Math.round(s):s}var Q=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};H.prototype={clone:function(){return new H(this.x,this.y)},add:function(i){return this.clone()._add(Y(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(Y(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new H(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new H(this.x/i.x,this.y/i.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Q(this.x),this.y=Q(this.y),this},distanceTo:function(i){i=Y(i);var s=i.x-this.x,f=i.y-this.y;return Math.sqrt(s*s+f*f)},equals:function(i){return i=Y(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=Y(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function Y(i,s,f){return i instanceof H?i:O(i)?new H(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new H(i.x,i.y):new H(i,s,f)}function et(i,s){if(i)for(var f=s?[i,s]:i,v=0,y=f.length;v<y;v++)this.extend(f[v])}et.prototype={extend:function(i){var s,f;if(!i)return this;if(i instanceof H||typeof i[0]=="number"||"x"in i)s=f=Y(i);else if(i=J(i),s=i.min,f=i.max,!s||!f)return this;return!this.min&&!this.max?(this.min=s.clone(),this.max=f.clone()):(this.min.x=Math.min(s.x,this.min.x),this.max.x=Math.max(f.x,this.max.x),this.min.y=Math.min(s.y,this.min.y),this.max.y=Math.max(f.y,this.max.y)),this},getCenter:function(i){return Y((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return Y(this.min.x,this.max.y)},getTopRight:function(){return Y(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(i){var s,f;return typeof i[0]=="number"||i instanceof H?i=Y(i):i=J(i),i instanceof et?(s=i.min,f=i.max):s=f=i,s.x>=this.min.x&&f.x<=this.max.x&&s.y>=this.min.y&&f.y<=this.max.y},intersects:function(i){i=J(i);var s=this.min,f=this.max,v=i.min,y=i.max,P=y.x>=s.x&&v.x<=f.x,j=y.y>=s.y&&v.y<=f.y;return P&&j},overlaps:function(i){i=J(i);var s=this.min,f=this.max,v=i.min,y=i.max,P=y.x>s.x&&v.x<f.x,j=y.y>s.y&&v.y<f.y;return P&&j},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var s=this.min,f=this.max,v=Math.abs(s.x-f.x)*i,y=Math.abs(s.y-f.y)*i;return J(Y(s.x-v,s.y-y),Y(f.x+v,f.y+y))},equals:function(i){return i?(i=J(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function J(i,s){return!i||i instanceof et?i:new et(i,s)}function at(i,s){if(i)for(var f=s?[i,s]:i,v=0,y=f.length;v<y;v++)this.extend(f[v])}at.prototype={extend:function(i){var s=this._southWest,f=this._northEast,v,y;if(i instanceof ut)v=i,y=i;else if(i instanceof at){if(v=i._southWest,y=i._northEast,!v||!y)return this}else return i?this.extend(lt(i)||ft(i)):this;return!s&&!f?(this._southWest=new ut(v.lat,v.lng),this._northEast=new ut(y.lat,y.lng)):(s.lat=Math.min(v.lat,s.lat),s.lng=Math.min(v.lng,s.lng),f.lat=Math.max(y.lat,f.lat),f.lng=Math.max(y.lng,f.lng)),this},pad:function(i){var s=this._southWest,f=this._northEast,v=Math.abs(s.lat-f.lat)*i,y=Math.abs(s.lng-f.lng)*i;return new at(new ut(s.lat-v,s.lng-y),new ut(f.lat+v,f.lng+y))},getCenter:function(){return new ut((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ut(this.getNorth(),this.getWest())},getSouthEast:function(){return new ut(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(i){typeof i[0]=="number"||i instanceof ut||"lat"in i?i=lt(i):i=ft(i);var s=this._southWest,f=this._northEast,v,y;return i instanceof at?(v=i.getSouthWest(),y=i.getNorthEast()):v=y=i,v.lat>=s.lat&&y.lat<=f.lat&&v.lng>=s.lng&&y.lng<=f.lng},intersects:function(i){i=ft(i);var s=this._southWest,f=this._northEast,v=i.getSouthWest(),y=i.getNorthEast(),P=y.lat>=s.lat&&v.lat<=f.lat,j=y.lng>=s.lng&&v.lng<=f.lng;return P&&j},overlaps:function(i){i=ft(i);var s=this._southWest,f=this._northEast,v=i.getSouthWest(),y=i.getNorthEast(),P=y.lat>s.lat&&v.lat<f.lat,j=y.lng>s.lng&&v.lng<f.lng;return P&&j},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,s){return i?(i=ft(i),this._southWest.equals(i.getSouthWest(),s)&&this._northEast.equals(i.getNorthEast(),s)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ft(i,s){return i instanceof at?i:new at(i,s)}function ut(i,s,f){if(isNaN(i)||isNaN(s))throw new Error("Invalid LatLng object: ("+i+", "+s+")");this.lat=+i,this.lng=+s,f!==void 0&&(this.alt=+f)}ut.prototype={equals:function(i,s){if(!i)return!1;i=lt(i);var f=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return f<=(s===void 0?1e-9:s)},toString:function(i){return"LatLng("+m(this.lat,i)+", "+m(this.lng,i)+")"},distanceTo:function(i){return Nt.distance(this,lt(i))},wrap:function(){return Nt.wrapLatLng(this)},toBounds:function(i){var s=180*i/40075017,f=s/Math.cos(Math.PI/180*this.lat);return ft([this.lat-s,this.lng-f],[this.lat+s,this.lng+f])},clone:function(){return new ut(this.lat,this.lng,this.alt)}};function lt(i,s,f){return i instanceof ut?i:O(i)&&typeof i[0]!="object"?i.length===3?new ut(i[0],i[1],i[2]):i.length===2?new ut(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new ut(i.lat,"lng"in i?i.lng:i.lon,i.alt):s===void 0?null:new ut(i,s,f)}var te={latLngToPoint:function(i,s){var f=this.projection.project(i),v=this.scale(s);return this.transformation._transform(f,v)},pointToLatLng:function(i,s){var f=this.scale(s),v=this.transformation.untransform(i,f);return this.projection.unproject(v)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var s=this.projection.bounds,f=this.scale(i),v=this.transformation.transform(s.min,f),y=this.transformation.transform(s.max,f);return new et(v,y)},infinite:!1,wrapLatLng:function(i){var s=this.wrapLng?p(i.lng,this.wrapLng,!0):i.lng,f=this.wrapLat?p(i.lat,this.wrapLat,!0):i.lat,v=i.alt;return new ut(f,s,v)},wrapLatLngBounds:function(i){var s=i.getCenter(),f=this.wrapLatLng(s),v=s.lat-f.lat,y=s.lng-f.lng;if(v===0&&y===0)return i;var P=i.getSouthWest(),j=i.getNorthEast(),D=new ut(P.lat-v,P.lng-y),z=new ut(j.lat-v,j.lng-y);return new at(D,z)}},Nt=a({},te,{wrapLng:[-180,180],R:6371e3,distance:function(i,s){var f=Math.PI/180,v=i.lat*f,y=s.lat*f,P=Math.sin((s.lat-i.lat)*f/2),j=Math.sin((s.lng-i.lng)*f/2),D=P*P+Math.cos(v)*Math.cos(y)*j*j,z=2*Math.atan2(Math.sqrt(D),Math.sqrt(1-D));return this.R*z}}),rt=6378137,ht={R:rt,MAX_LATITUDE:85.0511287798,project:function(i){var s=Math.PI/180,f=this.MAX_LATITUDE,v=Math.max(Math.min(f,i.lat),-f),y=Math.sin(v*s);return new H(this.R*i.lng*s,this.R*Math.log((1+y)/(1-y))/2)},unproject:function(i){var s=180/Math.PI;return new ut((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*s,i.x*s/this.R)},bounds:function(){var i=rt*Math.PI;return new et([-i,-i],[i,i])}()};function dt(i,s,f,v){if(O(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=s,this._c=f,this._d=v}dt.prototype={transform:function(i,s){return this._transform(i.clone(),s)},_transform:function(i,s){return s=s||1,i.x=s*(this._a*i.x+this._b),i.y=s*(this._c*i.y+this._d),i},untransform:function(i,s){return s=s||1,new H((i.x/s-this._b)/this._a,(i.y/s-this._d)/this._c)}};function V(i,s,f,v){return new dt(i,s,f,v)}var jt=a({},Nt,{code:"EPSG:3857",projection:ht,transformation:function(){var i=.5/(Math.PI*ht.R);return V(i,.5,-i,.5)}()}),_t=a({},jt,{code:"EPSG:900913"});function Dt(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Bt(i,s){var f="",v,y,P,j,D,z;for(v=0,P=i.length;v<P;v++){for(D=i[v],y=0,j=D.length;y<j;y++)z=D[y],f+=(y?"L":"M")+z.x+" "+z.y;f+=s?ot.svg?"z":"x":""}return f||"M0 0"}var Vt=document.documentElement.style,de="ActiveXObject"in window,dr=de&&!document.addEventListener,Ar="msLaunchUri"in navigator&&!("documentMode"in document),Te=De("webkit"),$e=De("android"),tn=De("android 2")||De("android 3"),_a=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ba=$e&&De("Google")&&_a<537&&!("AudioNode"in window),Ms=!!window.opera,Ap=!Ar&&De("chrome"),Tp=De("gecko")&&!Te&&!Ms&&!de,SP=!Ap&&De("safari"),Ep=De("phantom"),Mp="OTransition"in Vt,AP=navigator.platform.indexOf("Win")===0,Cp=de&&"transition"in Vt,Cs="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!tn,jp="MozPerspective"in Vt,TP=!window.L_DISABLE_3D&&(Cp||Cs||jp)&&!Mp&&!Ep,Jn=typeof orientation<"u"||De("mobile"),EP=Jn&&Te,MP=Jn&&Cs,Ip=!window.PointerEvent&&window.MSPointerEvent,Lp=!!(window.PointerEvent||Ip),kp="ontouchstart"in window||!!window.TouchEvent,CP=!window.L_NO_TOUCH&&(kp||Lp),jP=Jn&&Ms,IP=Jn&&Tp,LP=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kP=function(){var i=!1;try{var s=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",d,s),window.removeEventListener("testPassiveEventSupport",d,s)}catch{}return i}(),RP=function(){return!!document.createElement("canvas").getContext}(),js=!!(document.createElementNS&&Dt("svg").createSVGRect),NP=!!js&&function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),$P=!js&&function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var s=i.firstChild;return s.style.behavior="url(#default#VML)",s&&typeof s.adj=="object"}catch{return!1}}(),DP=navigator.platform.indexOf("Mac")===0,BP=navigator.platform.indexOf("Linux")===0;function De(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var ot={ie:de,ielt9:dr,edge:Ar,webkit:Te,android:$e,android23:tn,androidStock:ba,opera:Ms,chrome:Ap,gecko:Tp,safari:SP,phantom:Ep,opera12:Mp,win:AP,ie3d:Cp,webkit3d:Cs,gecko3d:jp,any3d:TP,mobile:Jn,mobileWebkit:EP,mobileWebkit3d:MP,msPointer:Ip,pointer:Lp,touch:CP,touchNative:kp,mobileOpera:jP,mobileGecko:IP,retina:LP,passiveEvents:kP,canvas:RP,svg:js,vml:$P,inlineSvg:NP,mac:DP,linux:BP},Rp=ot.msPointer?"MSPointerDown":"pointerdown",Np=ot.msPointer?"MSPointerMove":"pointermove",$p=ot.msPointer?"MSPointerUp":"pointerup",Dp=ot.msPointer?"MSPointerCancel":"pointercancel",Is={touchstart:Rp,touchmove:Np,touchend:$p,touchcancel:Dp},Bp={touchstart:HP,touchmove:xa,touchend:xa,touchcancel:xa},en={},qp=!1;function qP(i,s,f){return s==="touchstart"&&UP(),Bp[s]?(f=Bp[s].bind(this,f),i.addEventListener(Is[s],f,!1),f):(console.warn("wrong event specified:",s),d)}function zP(i,s,f){if(!Is[s]){console.warn("wrong event specified:",s);return}i.removeEventListener(Is[s],f,!1)}function FP(i){en[i.pointerId]=i}function WP(i){en[i.pointerId]&&(en[i.pointerId]=i)}function zp(i){delete en[i.pointerId]}function UP(){qp||(document.addEventListener(Rp,FP,!0),document.addEventListener(Np,WP,!0),document.addEventListener($p,zp,!0),document.addEventListener(Dp,zp,!0),qp=!0)}function xa(i,s){if(s.pointerType!==(s.MSPOINTER_TYPE_MOUSE||"mouse")){s.touches=[];for(var f in en)s.touches.push(en[f]);s.changedTouches=[s],i(s)}}function HP(i,s){s.MSPOINTER_TYPE_TOUCH&&s.pointerType===s.MSPOINTER_TYPE_TOUCH&&ee(s),xa(i,s)}function ZP(i){var s={},f,v;for(v in i)f=i[v],s[v]=f&&f.bind?f.bind(i):f;return i=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}var GP=200;function KP(i,s){i.addEventListener("dblclick",s);var f=0,v;function y(P){if(P.detail!==1){v=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var j=Zp(P);if(!(j.some(function(z){return z instanceof HTMLLabelElement&&z.attributes.for})&&!j.some(function(z){return z instanceof HTMLInputElement||z instanceof HTMLSelectElement}))){var D=Date.now();D-f<=GP?(v++,v===2&&s(ZP(P))):v=1,f=D}}}return i.addEventListener("click",y),{dblclick:s,simDblclick:y}}function VP(i,s){i.removeEventListener("dblclick",s.dblclick),i.removeEventListener("click",s.simDblclick)}var Ls=Oa(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Qn=Oa(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Fp=Qn==="webkitTransition"||Qn==="OTransition"?Qn+"End":"transitionend";function Wp(i){return typeof i=="string"?document.getElementById(i):i}function ti(i,s){var f=i.style[s]||i.currentStyle&&i.currentStyle[s];if((!f||f==="auto")&&document.defaultView){var v=document.defaultView.getComputedStyle(i,null);f=v?v[s]:null}return f==="auto"?null:f}function xt(i,s,f){var v=document.createElement(i);return v.className=s||"",f&&f.appendChild(v),v}function $t(i){var s=i.parentNode;s&&s.removeChild(i)}function wa(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function rn(i){var s=i.parentNode;s&&s.lastChild!==i&&s.appendChild(i)}function nn(i){var s=i.parentNode;s&&s.firstChild!==i&&s.insertBefore(i,s.firstChild)}function ks(i,s){if(i.classList!==void 0)return i.classList.contains(s);var f=Pa(i);return f.length>0&&new RegExp("(^|\\s)"+s+"(\\s|$)").test(f)}function mt(i,s){if(i.classList!==void 0)for(var f=x(s),v=0,y=f.length;v<y;v++)i.classList.add(f[v]);else if(!ks(i,s)){var P=Pa(i);Rs(i,(P?P+" ":"")+s)}}function zt(i,s){i.classList!==void 0?i.classList.remove(s):Rs(i,g((" "+Pa(i)+" ").replace(" "+s+" "," ")))}function Rs(i,s){i.className.baseVal===void 0?i.className=s:i.className.baseVal=s}function Pa(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function ge(i,s){"opacity"in i.style?i.style.opacity=s:"filter"in i.style&&XP(i,s)}function XP(i,s){var f=!1,v="DXImageTransform.Microsoft.Alpha";try{f=i.filters.item(v)}catch{if(s===1)return}s=Math.round(s*100),f?(f.Enabled=s!==100,f.Opacity=s):i.style.filter+=" progid:"+v+"(opacity="+s+")"}function Oa(i){for(var s=document.documentElement.style,f=0;f<i.length;f++)if(i[f]in s)return i[f];return!1}function Tr(i,s,f){var v=s||new H(0,0);i.style[Ls]=(ot.ie3d?"translate("+v.x+"px,"+v.y+"px)":"translate3d("+v.x+"px,"+v.y+"px,0)")+(f?" scale("+f+")":"")}function Ft(i,s){i._leaflet_pos=s,ot.any3d?Tr(i,s):(i.style.left=s.x+"px",i.style.top=s.y+"px")}function Er(i){return i._leaflet_pos||new H(0,0)}var ei,ri,Ns;if("onselectstart"in document)ei=function(){pt(window,"selectstart",ee)},ri=function(){It(window,"selectstart",ee)};else{var ni=Oa(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ei=function(){if(ni){var i=document.documentElement.style;Ns=i[ni],i[ni]="none"}},ri=function(){ni&&(document.documentElement.style[ni]=Ns,Ns=void 0)}}function $s(){pt(window,"dragstart",ee)}function Ds(){It(window,"dragstart",ee)}var Sa,Bs;function qs(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(Aa(),Sa=i,Bs=i.style.outlineStyle,i.style.outlineStyle="none",pt(window,"keydown",Aa))}function Aa(){Sa&&(Sa.style.outlineStyle=Bs,Sa=void 0,Bs=void 0,It(window,"keydown",Aa))}function Up(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function zs(i){var s=i.getBoundingClientRect();return{x:s.width/i.offsetWidth||1,y:s.height/i.offsetHeight||1,boundingClientRect:s}}var YP={__proto__:null,TRANSFORM:Ls,TRANSITION:Qn,TRANSITION_END:Fp,get:Wp,getStyle:ti,create:xt,remove:$t,empty:wa,toFront:rn,toBack:nn,hasClass:ks,addClass:mt,removeClass:zt,setClass:Rs,getClass:Pa,setOpacity:ge,testProp:Oa,setTransform:Tr,setPosition:Ft,getPosition:Er,get disableTextSelection(){return ei},get enableTextSelection(){return ri},disableImageDrag:$s,enableImageDrag:Ds,preventOutline:qs,restoreOutline:Aa,getSizedParentNode:Up,getScale:zs};function pt(i,s,f,v){if(s&&typeof s=="object")for(var y in s)Ws(i,y,s[y],f);else{s=x(s);for(var P=0,j=s.length;P<j;P++)Ws(i,s[P],f,v)}return this}var Be="_leaflet_events";function It(i,s,f,v){if(arguments.length===1)Hp(i),delete i[Be];else if(s&&typeof s=="object")for(var y in s)Us(i,y,s[y],f);else if(s=x(s),arguments.length===2)Hp(i,function(D){return E(s,D)!==-1});else for(var P=0,j=s.length;P<j;P++)Us(i,s[P],f,v);return this}function Hp(i,s){for(var f in i[Be]){var v=f.split(/\d/)[0];(!s||s(v))&&Us(i,v,null,null,f)}}var Fs={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ws(i,s,f,v){var y=s+l(f)+(v?"_"+l(v):"");if(i[Be]&&i[Be][y])return this;var P=function(D){return f.call(v||i,D||window.event)},j=P;!ot.touchNative&&ot.pointer&&s.indexOf("touch")===0?P=qP(i,s,P):ot.touch&&s==="dblclick"?P=KP(i,P):"addEventListener"in i?s==="touchstart"||s==="touchmove"||s==="wheel"||s==="mousewheel"?i.addEventListener(Fs[s]||s,P,ot.passiveEvents?{passive:!1}:!1):s==="mouseenter"||s==="mouseleave"?(P=function(D){D=D||window.event,Zs(i,D)&&j(D)},i.addEventListener(Fs[s],P,!1)):i.addEventListener(s,j,!1):i.attachEvent("on"+s,P),i[Be]=i[Be]||{},i[Be][y]=P}function Us(i,s,f,v,y){y=y||s+l(f)+(v?"_"+l(v):"");var P=i[Be]&&i[Be][y];if(!P)return this;!ot.touchNative&&ot.pointer&&s.indexOf("touch")===0?zP(i,s,P):ot.touch&&s==="dblclick"?VP(i,P):"removeEventListener"in i?i.removeEventListener(Fs[s]||s,P,!1):i.detachEvent("on"+s,P),i[Be][y]=null}function Mr(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function Hs(i){return Ws(i,"wheel",Mr),this}function ii(i){return pt(i,"mousedown touchstart dblclick contextmenu",Mr),i._leaflet_disable_click=!0,this}function ee(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function Cr(i){return ee(i),Mr(i),this}function Zp(i){if(i.composedPath)return i.composedPath();for(var s=[],f=i.target;f;)s.push(f),f=f.parentNode;return s}function Gp(i,s){if(!s)return new H(i.clientX,i.clientY);var f=zs(s),v=f.boundingClientRect;return new H((i.clientX-v.left)/f.x-s.clientLeft,(i.clientY-v.top)/f.y-s.clientTop)}var JP=ot.linux&&ot.chrome?window.devicePixelRatio:ot.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Kp(i){return ot.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/JP:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function Zs(i,s){var f=s.relatedTarget;if(!f)return!0;try{for(;f&&f!==i;)f=f.parentNode}catch{return!1}return f!==i}var QP={__proto__:null,on:pt,off:It,stopPropagation:Mr,disableScrollPropagation:Hs,disableClickPropagation:ii,preventDefault:ee,stop:Cr,getPropagationPath:Zp,getMousePosition:Gp,getWheelDelta:Kp,isExternalTarget:Zs,addListener:pt,removeListener:It},Vp=X.extend({run:function(i,s,f,v){this.stop(),this._el=i,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(v||.5,.2),this._startPos=Er(i),this._offset=s.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(i){var s=+new Date-this._startTime,f=this._duration*1e3;s<f?this._runFrame(this._easeOut(s/f),i):(this._runFrame(1),this._complete())},_runFrame:function(i,s){var f=this._startPos.add(this._offset.multiplyBy(i));s&&f._round(),Ft(this._el,f),this.fire("step")},_complete:function(){N(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),bt=X.extend({options:{crs:jt,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(i,s){s=b(this,s),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=u(this._onResize,this),this._initEvents(),s.maxBounds&&this.setMaxBounds(s.maxBounds),s.zoom!==void 0&&(this._zoom=this._limitZoom(s.zoom)),s.center&&s.zoom!==void 0&&this.setView(lt(s.center),s.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Qn&&ot.any3d&&!ot.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),pt(this._proxy,Fp,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(i,s,f){if(s=s===void 0?this._zoom:this._limitZoom(s),i=this._limitCenter(lt(i),s,this.options.maxBounds),f=f||{},this._stop(),this._loaded&&!f.reset&&f!==!0){f.animate!==void 0&&(f.zoom=a({animate:f.animate},f.zoom),f.pan=a({animate:f.animate,duration:f.duration},f.pan));var v=this._zoom!==s?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,s,f.zoom):this._tryAnimatedPan(i,f.pan);if(v)return clearTimeout(this._sizeTimer),this}return this._resetView(i,s,f.pan&&f.pan.noMoveStart),this},setZoom:function(i,s){return this._loaded?this.setView(this.getCenter(),i,{zoom:s}):(this._zoom=i,this)},zoomIn:function(i,s){return i=i||(ot.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,s)},zoomOut:function(i,s){return i=i||(ot.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,s)},setZoomAround:function(i,s,f){var v=this.getZoomScale(s),y=this.getSize().divideBy(2),P=i instanceof H?i:this.latLngToContainerPoint(i),j=P.subtract(y).multiplyBy(1-1/v),D=this.containerPointToLatLng(y.add(j));return this.setView(D,s,{zoom:f})},_getBoundsCenterZoom:function(i,s){s=s||{},i=i.getBounds?i.getBounds():ft(i);var f=Y(s.paddingTopLeft||s.padding||[0,0]),v=Y(s.paddingBottomRight||s.padding||[0,0]),y=this.getBoundsZoom(i,!1,f.add(v));if(y=typeof s.maxZoom=="number"?Math.min(s.maxZoom,y):y,y===1/0)return{center:i.getCenter(),zoom:y};var P=v.subtract(f).divideBy(2),j=this.project(i.getSouthWest(),y),D=this.project(i.getNorthEast(),y),z=this.unproject(j.add(D).divideBy(2).add(P),y);return{center:z,zoom:y}},fitBounds:function(i,s){if(i=ft(i),!i.isValid())throw new Error("Bounds are not valid.");var f=this._getBoundsCenterZoom(i,s);return this.setView(f.center,f.zoom,s)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,s){return this.setView(i,this._zoom,{pan:s})},panBy:function(i,s){if(i=Y(i).round(),s=s||{},!i.x&&!i.y)return this.fire("moveend");if(s.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Vp,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),s.noMoveStart||this.fire("movestart"),s.animate!==!1){mt(this._mapPane,"leaflet-pan-anim");var f=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,f,s.duration||.25,s.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,s,f){if(f=f||{},f.animate===!1||!ot.any3d)return this.setView(i,s,f);this._stop();var v=this.project(this.getCenter()),y=this.project(i),P=this.getSize(),j=this._zoom;i=lt(i),s=s===void 0?j:s;var D=Math.max(P.x,P.y),z=D*this.getZoomScale(j,s),G=y.distanceTo(v)||1,nt=1.42,ct=nt*nt;function yt(Wt){var Da=Wt?-1:1,zO=Wt?z:D,FO=z*z-D*D+Da*ct*ct*G*G,WO=2*zO*ct*G,nu=FO/WO,Mv=Math.sqrt(nu*nu+1)-nu,UO=Mv<1e-9?-18:Math.log(Mv);return UO}function se(Wt){return(Math.exp(Wt)-Math.exp(-Wt))/2}function Xt(Wt){return(Math.exp(Wt)+Math.exp(-Wt))/2}function be(Wt){return se(Wt)/Xt(Wt)}var le=yt(0);function ln(Wt){return D*(Xt(le)/Xt(le+nt*Wt))}function $O(Wt){return D*(Xt(le)*be(le+nt*Wt)-se(le))/ct}function DO(Wt){return 1-Math.pow(1-Wt,1.5)}var BO=Date.now(),Tv=(yt(1)-le)/nt,qO=f.duration?1e3*f.duration:1e3*Tv*.8;function Ev(){var Wt=(Date.now()-BO)/qO,Da=DO(Wt)*Tv;Wt<=1?(this._flyToFrame=C(Ev,this),this._move(this.unproject(v.add(y.subtract(v).multiplyBy($O(Da)/G)),j),this.getScaleZoom(D/ln(Da),j),{flyTo:!0})):this._move(i,s)._moveEnd(!0)}return this._moveStart(!0,f.noMoveStart),Ev.call(this),this},flyToBounds:function(i,s){var f=this._getBoundsCenterZoom(i,s);return this.flyTo(f.center,f.zoom,s)},setMaxBounds:function(i){return i=ft(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var s=this.options.minZoom;return this.options.minZoom=i,this._loaded&&s!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var s=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&s!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,s){this._enforcingBounds=!0;var f=this.getCenter(),v=this._limitCenter(f,this._zoom,ft(i));return f.equals(v)||this.panTo(v,s),this._enforcingBounds=!1,this},panInside:function(i,s){s=s||{};var f=Y(s.paddingTopLeft||s.padding||[0,0]),v=Y(s.paddingBottomRight||s.padding||[0,0]),y=this.project(this.getCenter()),P=this.project(i),j=this.getPixelBounds(),D=J([j.min.add(f),j.max.subtract(v)]),z=D.getSize();if(!D.contains(P)){this._enforcingBounds=!0;var G=P.subtract(D.getCenter()),nt=D.extend(P).getSize().subtract(z);y.x+=G.x<0?-nt.x:nt.x,y.y+=G.y<0?-nt.y:nt.y,this.panTo(this.unproject(y),s),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=a({animate:!1,pan:!0},i===!0?{animate:!0}:i);var s=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var f=this.getSize(),v=s.divideBy(2).round(),y=f.divideBy(2).round(),P=v.subtract(y);return!P.x&&!P.y?this:(i.animate&&i.pan?this.panBy(P):(i.pan&&this._rawPanBy(P),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(u(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:s,newSize:f}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=a({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var s=u(this._handleGeolocationResponse,this),f=u(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(s,f,i):navigator.geolocation.getCurrentPosition(s,f,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var s=i.code,f=i.message||(s===1?"permission denied":s===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:s,message:"Geolocation error: "+f+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var s=i.coords.latitude,f=i.coords.longitude,v=new ut(s,f),y=v.toBounds(i.coords.accuracy*2),P=this._locateOptions;if(P.setView){var j=this.getBoundsZoom(y);this.setView(v,P.maxZoom?Math.min(j,P.maxZoom):j)}var D={latlng:v,bounds:y,timestamp:i.timestamp};for(var z in i.coords)typeof i.coords[z]=="number"&&(D[z]=i.coords[z]);this.fire("locationfound",D)}},addHandler:function(i,s){if(!s)return this;var f=this[i]=new s(this);return this._handlers.push(f),this.options[i]&&f.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),$t(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(N(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)$t(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,s){var f="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),v=xt("div",f,s||this._mapPane);return i&&(this._panes[i]=v),v},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),s=this.unproject(i.getBottomLeft()),f=this.unproject(i.getTopRight());return new at(s,f)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(i,s,f){i=ft(i),f=Y(f||[0,0]);var v=this.getZoom()||0,y=this.getMinZoom(),P=this.getMaxZoom(),j=i.getNorthWest(),D=i.getSouthEast(),z=this.getSize().subtract(f),G=J(this.project(D,v),this.project(j,v)).getSize(),nt=ot.any3d?this.options.zoomSnap:1,ct=z.x/G.x,yt=z.y/G.y,se=s?Math.max(ct,yt):Math.min(ct,yt);return v=this.getScaleZoom(se,v),nt&&(v=Math.round(v/(nt/100))*(nt/100),v=s?Math.ceil(v/nt)*nt:Math.floor(v/nt)*nt),Math.max(y,Math.min(P,v))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new H(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,s){var f=this._getTopLeftPoint(i,s);return new et(f,f.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,s){var f=this.options.crs;return s=s===void 0?this._zoom:s,f.scale(i)/f.scale(s)},getScaleZoom:function(i,s){var f=this.options.crs;s=s===void 0?this._zoom:s;var v=f.zoom(i*f.scale(s));return isNaN(v)?1/0:v},project:function(i,s){return s=s===void 0?this._zoom:s,this.options.crs.latLngToPoint(lt(i),s)},unproject:function(i,s){return s=s===void 0?this._zoom:s,this.options.crs.pointToLatLng(Y(i),s)},layerPointToLatLng:function(i){var s=Y(i).add(this.getPixelOrigin());return this.unproject(s)},latLngToLayerPoint:function(i){var s=this.project(lt(i))._round();return s._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(lt(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(ft(i))},distance:function(i,s){return this.options.crs.distance(lt(i),lt(s))},containerPointToLayerPoint:function(i){return Y(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return Y(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var s=this.containerPointToLayerPoint(Y(i));return this.layerPointToLatLng(s)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(lt(i)))},mouseEventToContainerPoint:function(i){return Gp(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var s=this._container=Wp(i);if(s){if(s._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");pt(s,"scroll",this._onScroll,this),this._containerId=l(s)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&ot.any3d,mt(i,"leaflet-container"+(ot.touch?" leaflet-touch":"")+(ot.retina?" leaflet-retina":"")+(ot.ielt9?" leaflet-oldie":"")+(ot.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var s=ti(i,"position");s!=="absolute"&&s!=="relative"&&s!=="fixed"&&s!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ft(this._mapPane,new H(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(mt(i.markerPane,"leaflet-zoom-hide"),mt(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,s,f){Ft(this._mapPane,new H(0,0));var v=!this._loaded;this._loaded=!0,s=this._limitZoom(s),this.fire("viewprereset");var y=this._zoom!==s;this._moveStart(y,f)._move(i,s)._moveEnd(y),this.fire("viewreset"),v&&this.fire("load")},_moveStart:function(i,s){return i&&this.fire("zoomstart"),s||this.fire("movestart"),this},_move:function(i,s,f,v){s===void 0&&(s=this._zoom);var y=this._zoom!==s;return this._zoom=s,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),v?f&&f.pinch&&this.fire("zoom",f):((y||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return N(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){Ft(this._mapPane,this._getMapPanePos().subtract(i))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(i){this._targets={},this._targets[l(this._container)]=this;var s=i?It:pt;s(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&s(window,"resize",this._onResize,this),ot.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){N(this._resizeRequest),this._resizeRequest=C(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,s){for(var f=[],v,y=s==="mouseout"||s==="mouseover",P=i.target||i.srcElement,j=!1;P;){if(v=this._targets[l(P)],v&&(s==="click"||s==="preclick")&&this._draggableMoved(v)){j=!0;break}if(v&&v.listens(s,!0)&&(y&&!Zs(P,i)||(f.push(v),y))||P===this._container)break;P=P.parentNode}return!f.length&&!j&&!y&&this.listens(s,!0)&&(f=[this]),f},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var s=i.target||i.srcElement;if(!(!this._loaded||s._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(s))){var f=i.type;f==="mousedown"&&qs(s),this._fireDOMEvent(i,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,s,f){if(i.type==="click"){var v=a({},i);v.type="preclick",this._fireDOMEvent(v,v.type,f)}var y=this._findEventTargets(i,s);if(f){for(var P=[],j=0;j<f.length;j++)f[j].listens(s,!0)&&P.push(f[j]);y=P.concat(y)}if(y.length){s==="contextmenu"&&ee(i);var D=y[0],z={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var G=D.getLatLng&&(!D._radius||D._radius<=10);z.containerPoint=G?this.latLngToContainerPoint(D.getLatLng()):this.mouseEventToContainerPoint(i),z.layerPoint=this.containerPointToLayerPoint(z.containerPoint),z.latlng=G?D.getLatLng():this.layerPointToLatLng(z.layerPoint)}for(j=0;j<y.length;j++)if(y[j].fire(s,z,!0),z.originalEvent._stopped||y[j].options.bubblingMouseEvents===!1&&E(this._mouseEvents,s)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,s=this._handlers.length;i<s;i++)this._handlers[i].disable()},whenReady:function(i,s){return this._loaded?i.call(s||this,{target:this}):this.on("load",i,s),this},_getMapPanePos:function(){return Er(this._mapPane)||new H(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,s){var f=i&&s!==void 0?this._getNewPixelOrigin(i,s):this.getPixelOrigin();return f.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,s){var f=this.getSize()._divideBy(2);return this.project(i,s)._subtract(f)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,s,f){var v=this._getNewPixelOrigin(f,s);return this.project(i,s)._subtract(v)},_latLngBoundsToNewLayerBounds:function(i,s,f){var v=this._getNewPixelOrigin(f,s);return J([this.project(i.getSouthWest(),s)._subtract(v),this.project(i.getNorthWest(),s)._subtract(v),this.project(i.getSouthEast(),s)._subtract(v),this.project(i.getNorthEast(),s)._subtract(v)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,s,f){if(!f)return i;var v=this.project(i,s),y=this.getSize().divideBy(2),P=new et(v.subtract(y),v.add(y)),j=this._getBoundsOffset(P,f,s);return Math.abs(j.x)<=1&&Math.abs(j.y)<=1?i:this.unproject(v.add(j),s)},_limitOffset:function(i,s){if(!s)return i;var f=this.getPixelBounds(),v=new et(f.min.add(i),f.max.add(i));return i.add(this._getBoundsOffset(v,s))},_getBoundsOffset:function(i,s,f){var v=J(this.project(s.getNorthEast(),f),this.project(s.getSouthWest(),f)),y=v.min.subtract(i.min),P=v.max.subtract(i.max),j=this._rebound(y.x,-P.x),D=this._rebound(y.y,-P.y);return new H(j,D)},_rebound:function(i,s){return i+s>0?Math.round(i-s)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(s))},_limitZoom:function(i){var s=this.getMinZoom(),f=this.getMaxZoom(),v=ot.any3d?this.options.zoomSnap:1;return v&&(i=Math.round(i/v)*v),Math.max(s,Math.min(f,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){zt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,s){var f=this._getCenterOffset(i)._trunc();return(s&&s.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,s),!0)},_createAnimProxy:function(){var i=this._proxy=xt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(s){var f=Ls,v=this._proxy.style[f];Tr(this._proxy,this.project(s.center,s.zoom),this.getZoomScale(s.zoom,1)),v===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){$t(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),s=this.getZoom();Tr(this._proxy,this.project(i,s),this.getZoomScale(s,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,s,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.animate===!1||this._nothingToAnimate()||Math.abs(s-this._zoom)>this.options.zoomAnimationThreshold)return!1;var v=this.getZoomScale(s),y=this._getCenterOffset(i)._divideBy(1-1/v);return f.animate!==!0&&!this.getSize().contains(y)?!1:(C(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(i,s,!0)},this),!0)},_animateZoom:function(i,s,f,v){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=s,mt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:s,noUpdate:v}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(u(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&zt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function tO(i,s){return new bt(i,s)}var Ee=F.extend({options:{position:"topright"},initialize:function(i){b(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var s=this._map;return s&&s.removeControl(this),this.options.position=i,s&&s.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var s=this._container=this.onAdd(i),f=this.getPosition(),v=i._controlCorners[f];return mt(s,"leaflet-control"),f.indexOf("bottom")!==-1?v.insertBefore(s,v.firstChild):v.appendChild(s),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?($t(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),ai=function(i){return new Ee(i)};bt.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},s="leaflet-",f=this._controlContainer=xt("div",s+"control-container",this._container);function v(y,P){var j=s+y+" "+s+P;i[y+P]=xt("div",j,f)}v("top","left"),v("top","right"),v("bottom","left"),v("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)$t(this._controlCorners[i]);$t(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Xp=Ee.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,s,f,v){return f<v?-1:v<f?1:0}},initialize:function(i,s,f){b(this,f),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var v in i)this._addLayer(i[v],v);for(v in s)this._addLayer(s[v],v,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return Ee.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,s){return this._addLayer(i,s),this._map?this._update():this},addOverlay:function(i,s){return this._addLayer(i,s,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var s=this._getLayer(l(i));return s&&this._layers.splice(this._layers.indexOf(s),1),this._map?this._update():this},expand:function(){mt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(mt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):zt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return zt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",s=this._container=xt("div",i),f=this.options.collapsed;s.setAttribute("aria-haspopup",!0),ii(s),Hs(s);var v=this._section=xt("section",i+"-list");f&&(this._map.on("click",this.collapse,this),pt(s,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var y=this._layersLink=xt("a",i+"-toggle",s);y.href="#",y.title="Layers",y.setAttribute("role","button"),pt(y,{keydown:function(P){P.keyCode===13&&this._expandSafely()},click:function(P){ee(P),this._expandSafely()}},this),f||this.expand(),this._baseLayersList=xt("div",i+"-base",v),this._separator=xt("div",i+"-separator",v),this._overlaysList=xt("div",i+"-overlays",v),s.appendChild(v)},_getLayer:function(i){for(var s=0;s<this._layers.length;s++)if(this._layers[s]&&l(this._layers[s].layer)===i)return this._layers[s]},_addLayer:function(i,s,f){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:s,overlay:f}),this.options.sortLayers&&this._layers.sort(u(function(v,y){return this.options.sortFunction(v.layer,y.layer,v.name,y.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;wa(this._baseLayersList),wa(this._overlaysList),this._layerControlInputs=[];var i,s,f,v,y=0;for(f=0;f<this._layers.length;f++)v=this._layers[f],this._addItem(v),s=s||v.overlay,i=i||!v.overlay,y+=v.overlay?0:1;return this.options.hideSingleBase&&(i=i&&y>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=s&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var s=this._getLayer(l(i.target)),f=s.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;f&&this._map.fire(f,s)},_createRadioElement:function(i,s){var f='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(s?' checked="checked"':"")+"/>",v=document.createElement("div");return v.innerHTML=f,v.firstChild},_addItem:function(i){var s=document.createElement("label"),f=this._map.hasLayer(i.layer),v;i.overlay?(v=document.createElement("input"),v.type="checkbox",v.className="leaflet-control-layers-selector",v.defaultChecked=f):v=this._createRadioElement("leaflet-base-layers_"+l(this),f),this._layerControlInputs.push(v),v.layerId=l(i.layer),pt(v,"click",this._onInputClick,this);var y=document.createElement("span");y.innerHTML=" "+i.name;var P=document.createElement("span");s.appendChild(P),P.appendChild(v),P.appendChild(y);var j=i.overlay?this._overlaysList:this._baseLayersList;return j.appendChild(s),this._checkDisabledLayers(),s},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,s,f,v=[],y=[];this._handlingClick=!0;for(var P=i.length-1;P>=0;P--)s=i[P],f=this._getLayer(s.layerId).layer,s.checked?v.push(f):s.checked||y.push(f);for(P=0;P<y.length;P++)this._map.hasLayer(y[P])&&this._map.removeLayer(y[P]);for(P=0;P<v.length;P++)this._map.hasLayer(v[P])||this._map.addLayer(v[P]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,s,f,v=this._map.getZoom(),y=i.length-1;y>=0;y--)s=i[y],f=this._getLayer(s.layerId).layer,s.disabled=f.options.minZoom!==void 0&&v<f.options.minZoom||f.options.maxZoom!==void 0&&v>f.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,pt(i,"click",ee),this.expand();var s=this;setTimeout(function(){It(i,"click",ee),s._preventClick=!1})}}),eO=function(i,s,f){return new Xp(i,s,f)},Gs=Ee.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var s="leaflet-control-zoom",f=xt("div",s+" leaflet-bar"),v=this.options;return this._zoomInButton=this._createButton(v.zoomInText,v.zoomInTitle,s+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(v.zoomOutText,v.zoomOutTitle,s+"-out",f,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),f},onRemove:function(i){i.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,s,f,v,y){var P=xt("a",f,v);return P.innerHTML=i,P.href="#",P.title=s,P.setAttribute("role","button"),P.setAttribute("aria-label",s),ii(P),pt(P,"click",Cr),pt(P,"click",y,this),pt(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var i=this._map,s="leaflet-disabled";zt(this._zoomInButton,s),zt(this._zoomOutButton,s),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(mt(this._zoomOutButton,s),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(mt(this._zoomInButton,s),this._zoomInButton.setAttribute("aria-disabled","true"))}});bt.mergeOptions({zoomControl:!0}),bt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Gs,this.addControl(this.zoomControl))});var rO=function(i){return new Gs(i)},Yp=Ee.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var s="leaflet-control-scale",f=xt("div",s),v=this.options;return this._addScales(v,s+"-line",f),i.on(v.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),f},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,s,f){i.metric&&(this._mScale=xt("div",s,f)),i.imperial&&(this._iScale=xt("div",s,f))},_update:function(){var i=this._map,s=i.getSize().y/2,f=i.distance(i.containerPointToLatLng([0,s]),i.containerPointToLatLng([this.options.maxWidth,s]));this._updateScales(f)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var s=this._getRoundNum(i),f=s<1e3?s+" m":s/1e3+" km";this._updateScale(this._mScale,f,s/i)},_updateImperial:function(i){var s=i*3.2808399,f,v,y;s>5280?(f=s/5280,v=this._getRoundNum(f),this._updateScale(this._iScale,v+" mi",v/f)):(y=this._getRoundNum(s),this._updateScale(this._iScale,y+" ft",y/s))},_updateScale:function(i,s,f){i.style.width=Math.round(this.options.maxWidth*f)+"px",i.innerHTML=s},_getRoundNum:function(i){var s=Math.pow(10,(Math.floor(i)+"").length-1),f=i/s;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,s*f}}),nO=function(i){return new Yp(i)},iO='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ks=Ee.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ot.inlineSvg?iO+" ":"")+"Leaflet</a>"},initialize:function(i){b(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=xt("div","leaflet-control-attribution"),ii(this._container);for(var s in i._layers)i._layers[s].getAttribution&&this.addAttribution(i._layers[s].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var s in this._attributions)this._attributions[s]&&i.push(s);var f=[];this.options.prefix&&f.push(this.options.prefix),i.length&&f.push(i.join(", ")),this._container.innerHTML=f.join(' <span aria-hidden="true">|</span> ')}}});bt.mergeOptions({attributionControl:!0}),bt.addInitHook(function(){this.options.attributionControl&&new Ks().addTo(this)});var aO=function(i){return new Ks(i)};Ee.Layers=Xp,Ee.Zoom=Gs,Ee.Scale=Yp,Ee.Attribution=Ks,ai.layers=eO,ai.zoom=rO,ai.scale=nO,ai.attribution=aO;var qe=F.extend({initialize:function(i){this._map=i},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});qe.addTo=function(i,s){return i.addHandler(s,this),this};var oO={Events:Z},Jp=ot.touch?"touchstart mousedown":"mousedown",pr=X.extend({options:{clickTolerance:3},initialize:function(i,s,f,v){b(this,v),this._element=i,this._dragStartTarget=s||i,this._preventOutline=f},enable:function(){this._enabled||(pt(this._dragStartTarget,Jp,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(pr._dragging===this&&this.finishDrag(!0),It(this._dragStartTarget,Jp,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!ks(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){pr._dragging===this&&this.finishDrag();return}if(!(pr._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(pr._dragging=this,this._preventOutline&&qs(this._element),$s(),ei(),!this._moving)){this.fire("down");var s=i.touches?i.touches[0]:i,f=Up(this._element);this._startPoint=new H(s.clientX,s.clientY),this._startPos=Er(this._element),this._parentScale=zs(f);var v=i.type==="mousedown";pt(document,v?"mousemove":"touchmove",this._onMove,this),pt(document,v?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var s=i.touches&&i.touches.length===1?i.touches[0]:i,f=new H(s.clientX,s.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)<this.options.clickTolerance||(f.x/=this._parentScale.x,f.y/=this._parentScale.y,ee(i),this._moved||(this.fire("dragstart"),this._moved=!0,mt(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),mt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(f),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),Ft(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){zt(document.body,"leaflet-dragging"),this._lastTarget&&(zt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),It(document,"mousemove touchmove",this._onMove,this),It(document,"mouseup touchend touchcancel",this._onUp,this),Ds(),ri();var s=this._moved&&this._moving;this._moving=!1,pr._dragging=!1,s&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function Qp(i,s,f){var v,y=[1,4,2,8],P,j,D,z,G,nt,ct,yt;for(P=0,nt=i.length;P<nt;P++)i[P]._code=jr(i[P],s);for(D=0;D<4;D++){for(ct=y[D],v=[],P=0,nt=i.length,j=nt-1;P<nt;j=P++)z=i[P],G=i[j],z._code&ct?G._code&ct||(yt=Ta(G,z,ct,s,f),yt._code=jr(yt,s),v.push(yt)):(G._code&ct&&(yt=Ta(G,z,ct,s,f),yt._code=jr(yt,s),v.push(yt)),v.push(z));i=v}return i}function tv(i,s){var f,v,y,P,j,D,z,G,nt;if(!i||i.length===0)throw new Error("latlngs not passed");_e(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var ct=lt([0,0]),yt=ft(i),se=yt.getNorthWest().distanceTo(yt.getSouthWest())*yt.getNorthEast().distanceTo(yt.getNorthWest());se<1700&&(ct=Vs(i));var Xt=i.length,be=[];for(f=0;f<Xt;f++){var le=lt(i[f]);be.push(s.project(lt([le.lat-ct.lat,le.lng-ct.lng])))}for(D=z=G=0,f=0,v=Xt-1;f<Xt;v=f++)y=be[f],P=be[v],j=y.y*P.x-P.y*y.x,z+=(y.x+P.x)*j,G+=(y.y+P.y)*j,D+=j*3;D===0?nt=be[0]:nt=[z/D,G/D];var ln=s.unproject(Y(nt));return lt([ln.lat+ct.lat,ln.lng+ct.lng])}function Vs(i){for(var s=0,f=0,v=0,y=0;y<i.length;y++){var P=lt(i[y]);s+=P.lat,f+=P.lng,v++}return lt([s/v,f/v])}var sO={__proto__:null,clipPolygon:Qp,polygonCenter:tv,centroid:Vs};function ev(i,s){if(!s||!i.length)return i.slice();var f=s*s;return i=lO(i,f),i=cO(i,f),i}function rv(i,s,f){return Math.sqrt(oi(i,s,f,!0))}function uO(i,s,f){return oi(i,s,f)}function cO(i,s){var f=i.length,v=typeof Uint8Array<"u"?Uint8Array:Array,y=new v(f);y[0]=y[f-1]=1,Xs(i,y,s,0,f-1);var P,j=[];for(P=0;P<f;P++)y[P]&&j.push(i[P]);return j}function Xs(i,s,f,v,y){var P=0,j,D,z;for(D=v+1;D<=y-1;D++)z=oi(i[D],i[v],i[y],!0),z>P&&(j=D,P=z);P>f&&(s[j]=1,Xs(i,s,f,v,j),Xs(i,s,f,j,y))}function lO(i,s){for(var f=[i[0]],v=1,y=0,P=i.length;v<P;v++)fO(i[v],i[y])>s&&(f.push(i[v]),y=v);return y<P-1&&f.push(i[P-1]),f}var nv;function iv(i,s,f,v,y){var P=v?nv:jr(i,f),j=jr(s,f),D,z,G;for(nv=j;;){if(!(P|j))return[i,s];if(P&j)return!1;D=P||j,z=Ta(i,s,D,f,y),G=jr(z,f),D===P?(i=z,P=G):(s=z,j=G)}}function Ta(i,s,f,v,y){var P=s.x-i.x,j=s.y-i.y,D=v.min,z=v.max,G,nt;return f&8?(G=i.x+P*(z.y-i.y)/j,nt=z.y):f&4?(G=i.x+P*(D.y-i.y)/j,nt=D.y):f&2?(G=z.x,nt=i.y+j*(z.x-i.x)/P):f&1&&(G=D.x,nt=i.y+j*(D.x-i.x)/P),new H(G,nt,y)}function jr(i,s){var f=0;return i.x<s.min.x?f|=1:i.x>s.max.x&&(f|=2),i.y<s.min.y?f|=4:i.y>s.max.y&&(f|=8),f}function fO(i,s){var f=s.x-i.x,v=s.y-i.y;return f*f+v*v}function oi(i,s,f,v){var y=s.x,P=s.y,j=f.x-y,D=f.y-P,z=j*j+D*D,G;return z>0&&(G=((i.x-y)*j+(i.y-P)*D)/z,G>1?(y=f.x,P=f.y):G>0&&(y+=j*G,P+=D*G)),j=i.x-y,D=i.y-P,v?j*j+D*D:new H(y,P)}function _e(i){return!O(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]<"u"}function av(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_e(i)}function ov(i,s){var f,v,y,P,j,D,z,G;if(!i||i.length===0)throw new Error("latlngs not passed");_e(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var nt=lt([0,0]),ct=ft(i),yt=ct.getNorthWest().distanceTo(ct.getSouthWest())*ct.getNorthEast().distanceTo(ct.getNorthWest());yt<1700&&(nt=Vs(i));var se=i.length,Xt=[];for(f=0;f<se;f++){var be=lt(i[f]);Xt.push(s.project(lt([be.lat-nt.lat,be.lng-nt.lng])))}for(f=0,v=0;f<se-1;f++)v+=Xt[f].distanceTo(Xt[f+1])/2;if(v===0)G=Xt[0];else for(f=0,P=0;f<se-1;f++)if(j=Xt[f],D=Xt[f+1],y=j.distanceTo(D),P+=y,P>v){z=(P-v)/y,G=[D.x-z*(D.x-j.x),D.y-z*(D.y-j.y)];break}var le=s.unproject(Y(G));return lt([le.lat+nt.lat,le.lng+nt.lng])}var hO={__proto__:null,simplify:ev,pointToSegmentDistance:rv,closestPointOnSegment:uO,clipSegment:iv,_getEdgeIntersection:Ta,_getBitCode:jr,_sqClosestPointOnSegment:oi,isFlat:_e,_flat:av,polylineCenter:ov},Ys={project:function(i){return new H(i.lng,i.lat)},unproject:function(i){return new ut(i.y,i.x)},bounds:new et([-180,-90],[180,90])},Js={R:6378137,R_MINOR:6356752314245179e-9,bounds:new et([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var s=Math.PI/180,f=this.R,v=i.lat*s,y=this.R_MINOR/f,P=Math.sqrt(1-y*y),j=P*Math.sin(v),D=Math.tan(Math.PI/4-v/2)/Math.pow((1-j)/(1+j),P/2);return v=-f*Math.log(Math.max(D,1e-10)),new H(i.lng*s*f,v)},unproject:function(i){for(var s=180/Math.PI,f=this.R,v=this.R_MINOR/f,y=Math.sqrt(1-v*v),P=Math.exp(-i.y/f),j=Math.PI/2-2*Math.atan(P),D=0,z=.1,G;D<15&&Math.abs(z)>1e-7;D++)G=y*Math.sin(j),G=Math.pow((1-G)/(1+G),y/2),z=Math.PI/2-2*Math.atan(P*G)-j,j+=z;return new ut(j*s,i.x*s/f)}},dO={__proto__:null,LonLat:Ys,Mercator:Js,SphericalMercator:ht},pO=a({},Nt,{code:"EPSG:3395",projection:Js,transformation:function(){var i=.5/(Math.PI*Js.R);return V(i,.5,-i,.5)}()}),sv=a({},Nt,{code:"EPSG:4326",projection:Ys,transformation:V(1/180,1,-1/180,.5)}),vO=a({},te,{projection:Ys,transformation:V(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,s){var f=s.lng-i.lng,v=s.lat-i.lat;return Math.sqrt(f*f+v*v)},infinite:!0});te.Earth=Nt,te.EPSG3395=pO,te.EPSG3857=jt,te.EPSG900913=_t,te.EPSG4326=sv,te.Simple=vO;var Me=X.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[l(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[l(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var s=i.target;if(s.hasLayer(this)){if(this._map=s,this._zoomAnimated=s._zoomAnimated,this.getEvents){var f=this.getEvents();s.on(f,this),this.once("remove",function(){s.off(f,this)},this)}this.onAdd(s),this.fire("add"),s.fire("layeradd",{layer:this})}}});bt.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var s=l(i);return this._layers[s]?this:(this._layers[s]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var s=l(i);return this._layers[s]?(this._loaded&&i.onRemove(this),delete this._layers[s],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return l(i)in this._layers},eachLayer:function(i,s){for(var f in this._layers)i.call(s,this._layers[f]);return this},_addLayers:function(i){i=i?O(i)?i:[i]:[];for(var s=0,f=i.length;s<f;s++)this.addLayer(i[s])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[l(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var s=l(i);this._zoomBoundLayers[s]&&(delete this._zoomBoundLayers[s],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,s=-1/0,f=this._getZoomSpan();for(var v in this._zoomBoundLayers){var y=this._zoomBoundLayers[v].options;i=y.minZoom===void 0?i:Math.min(i,y.minZoom),s=y.maxZoom===void 0?s:Math.max(s,y.maxZoom)}this._layersMaxZoom=s===-1/0?void 0:s,this._layersMinZoom=i===1/0?void 0:i,f!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var an=Me.extend({initialize:function(i,s){b(this,s),this._layers={};var f,v;if(i)for(f=0,v=i.length;f<v;f++)this.addLayer(i[f])},addLayer:function(i){var s=this.getLayerId(i);return this._layers[s]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var s=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[s]&&this._map.removeLayer(this._layers[s]),delete this._layers[s],this},hasLayer:function(i){var s=typeof i=="number"?i:this.getLayerId(i);return s in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var s=Array.prototype.slice.call(arguments,1),f,v;for(f in this._layers)v=this._layers[f],v[i]&&v[i].apply(v,s);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,s){for(var f in this._layers)i.call(s,this._layers[f]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return l(i)}}),mO=function(i,s){return new an(i,s)},Ve=an.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),an.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),an.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new at;for(var s in this._layers){var f=this._layers[s];i.extend(f.getBounds?f.getBounds():f.getLatLng())}return i}}),yO=function(i,s){return new Ve(i,s)},on=F.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){b(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,s){var f=this._getIconUrl(i);if(!f){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var v=this._createImg(f,s&&s.tagName==="IMG"?s:null);return this._setIconStyles(v,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(v.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),v},_setIconStyles:function(i,s){var f=this.options,v=f[s+"Size"];typeof v=="number"&&(v=[v,v]);var y=Y(v),P=Y(s==="shadow"&&f.shadowAnchor||f.iconAnchor||y&&y.divideBy(2,!0));i.className="leaflet-marker-"+s+" "+(f.className||""),P&&(i.style.marginLeft=-P.x+"px",i.style.marginTop=-P.y+"px"),y&&(i.style.width=y.x+"px",i.style.height=y.y+"px")},_createImg:function(i,s){return s=s||document.createElement("img"),s.src=i,s},_getIconUrl:function(i){return ot.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function gO(i){return new on(i)}var si=on.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(i){return typeof si.imagePath!="string"&&(si.imagePath=this._detectIconPath()),(this.options.imagePath||si.imagePath)+on.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var s=function(f,v,y){var P=v.exec(f);return P&&P[y]};return i=s(i,/^url\((['"])?(.+)\1\)$/,2),i&&s(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=xt("div","leaflet-default-icon-path",document.body),s=ti(i,"background-image")||ti(i,"backgroundImage");if(document.body.removeChild(i),s=this._stripUrl(s),s)return s;var f=document.querySelector('link[href$="leaflet.css"]');return f?f.href.substring(0,f.href.length-11-1):""}}),uv=qe.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new pr(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),mt(i,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&zt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var s=this._marker,f=s._map,v=this._marker.options.autoPanSpeed,y=this._marker.options.autoPanPadding,P=Er(s._icon),j=f.getPixelBounds(),D=f.getPixelOrigin(),z=J(j.min._subtract(D).add(y),j.max._subtract(D).subtract(y));if(!z.contains(P)){var G=Y((Math.max(z.max.x,P.x)-z.max.x)/(j.max.x-z.max.x)-(Math.min(z.min.x,P.x)-z.min.x)/(j.min.x-z.min.x),(Math.max(z.max.y,P.y)-z.max.y)/(j.max.y-z.max.y)-(Math.min(z.min.y,P.y)-z.min.y)/(j.min.y-z.min.y)).multiplyBy(v);f.panBy(G,{animate:!1}),this._draggable._newPos._add(G),this._draggable._startPos._add(G),Ft(s._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=C(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(N(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,i)))},_onDrag:function(i){var s=this._marker,f=s._shadow,v=Er(s._icon),y=s._map.layerPointToLatLng(v);f&&Ft(f,v),s._latlng=y,i.latlng=y,i.oldLatLng=this._oldLatLng,s.fire("move",i).fire("drag",i)},_onDragEnd:function(i){N(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),Ea=Me.extend({options:{icon:new si,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(i,s){b(this,s),this._latlng=lt(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(i){var s=this._latlng;return this._latlng=lt(i),this.update(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,s="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),f=i.icon.createIcon(this._icon),v=!1;f!==this._icon&&(this._icon&&this._removeIcon(),v=!0,i.title&&(f.title=i.title),f.tagName==="IMG"&&(f.alt=i.alt||"")),mt(f,s),i.keyboard&&(f.tabIndex="0",f.setAttribute("role","button")),this._icon=f,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&pt(f,"focus",this._panOnFocus,this);var y=i.icon.createShadow(this._shadow),P=!1;y!==this._shadow&&(this._removeShadow(),P=!0),y&&(mt(y,s),y.alt=""),this._shadow=y,i.opacity<1&&this._updateOpacity(),v&&this.getPane().appendChild(this._icon),this._initInteraction(),y&&P&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&It(this._icon,"focus",this._panOnFocus,this),$t(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&$t(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&Ft(this._icon,i),this._shadow&&Ft(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(s)},_initInteraction:function(){if(this.options.interactive&&(mt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),uv)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new uv(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&ge(this._icon,i),this._shadow&&ge(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var s=this.options.icon.options,f=s.iconSize?Y(s.iconSize):Y(0,0),v=s.iconAnchor?Y(s.iconAnchor):Y(0,0);i.panInside(this._latlng,{paddingTopLeft:v,paddingBottomRight:f.subtract(v)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function _O(i,s){return new Ea(i,s)}var vr=Me.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(i){this._renderer=i.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(i){return b(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ma=vr.extend({options:{fill:!0,radius:10},initialize:function(i,s){b(this,s),this._latlng=lt(i),this._radius=this.options.radius},setLatLng:function(i){var s=this._latlng;return this._latlng=lt(i),this.redraw(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var s=i&&i.radius||this._radius;return vr.prototype.setStyle.call(this,i),this.setRadius(s),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,s=this._radiusY||i,f=this._clickTolerance(),v=[i+f,s+f];this._pxBounds=new et(this._point.subtract(v),this._point.add(v))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function bO(i,s){return new Ma(i,s)}var Qs=Ma.extend({initialize:function(i,s,f){if(typeof s=="number"&&(s=a({},f,{radius:s})),b(this,s),this._latlng=lt(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new at(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:vr.prototype.setStyle,_project:function(){var i=this._latlng.lng,s=this._latlng.lat,f=this._map,v=f.options.crs;if(v.distance===Nt.distance){var y=Math.PI/180,P=this._mRadius/Nt.R/y,j=f.project([s+P,i]),D=f.project([s-P,i]),z=j.add(D).divideBy(2),G=f.unproject(z).lat,nt=Math.acos((Math.cos(P*y)-Math.sin(s*y)*Math.sin(G*y))/(Math.cos(s*y)*Math.cos(G*y)))/y;(isNaN(nt)||nt===0)&&(nt=P/Math.cos(Math.PI/180*s)),this._point=z.subtract(f.getPixelOrigin()),this._radius=isNaN(nt)?0:z.x-f.project([G,i-nt]).x,this._radiusY=z.y-j.y}else{var ct=v.unproject(v.project(this._latlng).subtract([this._mRadius,0]));this._point=f.latLngToLayerPoint(this._latlng),this._radius=this._point.x-f.latLngToLayerPoint(ct).x}this._updateBounds()}});function xO(i,s,f){return new Qs(i,s,f)}var Xe=vr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,s){b(this,s),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var s=1/0,f=null,v=oi,y,P,j=0,D=this._parts.length;j<D;j++)for(var z=this._parts[j],G=1,nt=z.length;G<nt;G++){y=z[G-1],P=z[G];var ct=v(i,y,P,!0);ct<s&&(s=ct,f=v(i,y,P))}return f&&(f.distance=Math.sqrt(s)),f},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ov(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,s){return s=s||this._defaultShape(),i=lt(i),s.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new at,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return _e(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var s=[],f=_e(i),v=0,y=i.length;v<y;v++)f?(s[v]=lt(i[v]),this._bounds.extend(s[v])):s[v]=this._convertLatLngs(i[v]);return s},_project:function(){var i=new et;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),s=new H(i,i);this._rawPxBounds&&(this._pxBounds=new et([this._rawPxBounds.min.subtract(s),this._rawPxBounds.max.add(s)]))},_projectLatlngs:function(i,s,f){var v=i[0]instanceof ut,y=i.length,P,j;if(v){for(j=[],P=0;P<y;P++)j[P]=this._map.latLngToLayerPoint(i[P]),f.extend(j[P]);s.push(j)}else for(P=0;P<y;P++)this._projectLatlngs(i[P],s,f)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var s=this._parts,f,v,y,P,j,D,z;for(f=0,y=0,P=this._rings.length;f<P;f++)for(z=this._rings[f],v=0,j=z.length;v<j-1;v++)D=iv(z[v],z[v+1],i,v,!0),D&&(s[y]=s[y]||[],s[y].push(D[0]),(D[1]!==z[v+1]||v===j-2)&&(s[y].push(D[1]),y++))}},_simplifyPoints:function(){for(var i=this._parts,s=this.options.smoothFactor,f=0,v=i.length;f<v;f++)i[f]=ev(i[f],s)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,s){var f,v,y,P,j,D,z=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(f=0,P=this._parts.length;f<P;f++)for(D=this._parts[f],v=0,j=D.length,y=j-1;v<j;y=v++)if(!(!s&&v===0)&&rv(i,D[y],D[v])<=z)return!0;return!1}});function wO(i,s){return new Xe(i,s)}Xe._flat=av;var sn=Xe.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return tv(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var s=Xe.prototype._convertLatLngs.call(this,i),f=s.length;return f>=2&&s[0]instanceof ut&&s[0].equals(s[f-1])&&s.pop(),s},_setLatLngs:function(i){Xe.prototype._setLatLngs.call(this,i),_e(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _e(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,s=this.options.weight,f=new H(s,s);if(i=new et(i.min.subtract(f),i.max.add(f)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var v=0,y=this._rings.length,P;v<y;v++)P=Qp(this._rings[v],i,!0),P.length&&this._parts.push(P)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var s=!1,f,v,y,P,j,D,z,G;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(P=0,z=this._parts.length;P<z;P++)for(f=this._parts[P],j=0,G=f.length,D=G-1;j<G;D=j++)v=f[j],y=f[D],v.y>i.y!=y.y>i.y&&i.x<(y.x-v.x)*(i.y-v.y)/(y.y-v.y)+v.x&&(s=!s);return s||Xe.prototype._containsPoint.call(this,i,!0)}});function PO(i,s){return new sn(i,s)}var Ye=Ve.extend({initialize:function(i,s){b(this,s),this._layers={},i&&this.addData(i)},addData:function(i){var s=O(i)?i:i.features,f,v,y;if(s){for(f=0,v=s.length;f<v;f++)y=s[f],(y.geometries||y.geometry||y.features||y.coordinates)&&this.addData(y);return this}var P=this.options;if(P.filter&&!P.filter(i))return this;var j=Ca(i,P);return j?(j.feature=La(i),j.defaultOptions=j.options,this.resetStyle(j),P.onEachFeature&&P.onEachFeature(i,j),this.addLayer(j)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=a({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(s){this._setLayerStyle(s,i)},this)},_setLayerStyle:function(i,s){i.setStyle&&(typeof s=="function"&&(s=s(i.feature)),i.setStyle(s))}});function Ca(i,s){var f=i.type==="Feature"?i.geometry:i,v=f?f.coordinates:null,y=[],P=s&&s.pointToLayer,j=s&&s.coordsToLatLng||tu,D,z,G,nt;if(!v&&!f)return null;switch(f.type){case"Point":return D=j(v),cv(P,i,D,s);case"MultiPoint":for(G=0,nt=v.length;G<nt;G++)D=j(v[G]),y.push(cv(P,i,D,s));return new Ve(y);case"LineString":case"MultiLineString":return z=ja(v,f.type==="LineString"?0:1,j),new Xe(z,s);case"Polygon":case"MultiPolygon":return z=ja(v,f.type==="Polygon"?1:2,j),new sn(z,s);case"GeometryCollection":for(G=0,nt=f.geometries.length;G<nt;G++){var ct=Ca({geometry:f.geometries[G],type:"Feature",properties:i.properties},s);ct&&y.push(ct)}return new Ve(y);case"FeatureCollection":for(G=0,nt=f.features.length;G<nt;G++){var yt=Ca(f.features[G],s);yt&&y.push(yt)}return new Ve(y);default:throw new Error("Invalid GeoJSON object.")}}function cv(i,s,f,v){return i?i(s,f):new Ea(f,v&&v.markersInheritOptions&&v)}function tu(i){return new ut(i[1],i[0],i[2])}function ja(i,s,f){for(var v=[],y=0,P=i.length,j;y<P;y++)j=s?ja(i[y],s-1,f):(f||tu)(i[y]),v.push(j);return v}function eu(i,s){return i=lt(i),i.alt!==void 0?[m(i.lng,s),m(i.lat,s),m(i.alt,s)]:[m(i.lng,s),m(i.lat,s)]}function Ia(i,s,f,v){for(var y=[],P=0,j=i.length;P<j;P++)y.push(s?Ia(i[P],_e(i[P])?0:s-1,f,v):eu(i[P],v));return!s&&f&&y.length>0&&y.push(y[0].slice()),y}function un(i,s){return i.feature?a({},i.feature,{geometry:s}):La(s)}function La(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var ru={toGeoJSON:function(i){return un(this,{type:"Point",coordinates:eu(this.getLatLng(),i)})}};Ea.include(ru),Qs.include(ru),Ma.include(ru),Xe.include({toGeoJSON:function(i){var s=!_e(this._latlngs),f=Ia(this._latlngs,s?1:0,!1,i);return un(this,{type:(s?"Multi":"")+"LineString",coordinates:f})}}),sn.include({toGeoJSON:function(i){var s=!_e(this._latlngs),f=s&&!_e(this._latlngs[0]),v=Ia(this._latlngs,f?2:s?1:0,!0,i);return s||(v=[v]),un(this,{type:(f?"Multi":"")+"Polygon",coordinates:v})}}),an.include({toMultiPoint:function(i){var s=[];return this.eachLayer(function(f){s.push(f.toGeoJSON(i).geometry.coordinates)}),un(this,{type:"MultiPoint",coordinates:s})},toGeoJSON:function(i){var s=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(s==="MultiPoint")return this.toMultiPoint(i);var f=s==="GeometryCollection",v=[];return this.eachLayer(function(y){if(y.toGeoJSON){var P=y.toGeoJSON(i);if(f)v.push(P.geometry);else{var j=La(P);j.type==="FeatureCollection"?v.push.apply(v,j.features):v.push(j)}}}),f?un(this,{geometries:v,type:"GeometryCollection"}):{type:"FeatureCollection",features:v}}});function lv(i,s){return new Ye(i,s)}var OO=lv,ka=Me.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,s,f){this._url=i,this._bounds=ft(s),b(this,f)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(mt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){$t(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&rn(this._image),this},bringToBack:function(){return this._map&&nn(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=ft(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",s=this._image=i?this._url:xt("img");if(mt(s,"leaflet-image-layer"),this._zoomAnimated&&mt(s,"leaflet-zoom-animated"),this.options.className&&mt(s,this.options.className),s.onselectstart=d,s.onmousemove=d,s.onload=u(this.fire,this,"load"),s.onerror=u(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=s.src;return}s.src=this._url,s.alt=this.options.alt},_animateZoom:function(i){var s=this._map.getZoomScale(i.zoom),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;Tr(this._image,f,s)},_reset:function(){var i=this._image,s=new et(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=s.getSize();Ft(i,s.min),i.style.width=f.x+"px",i.style.height=f.y+"px"},_updateOpacity:function(){ge(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),SO=function(i,s,f){return new ka(i,s,f)},fv=ka.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",s=this._image=i?this._url:xt("video");if(mt(s,"leaflet-image-layer"),this._zoomAnimated&&mt(s,"leaflet-zoom-animated"),this.options.className&&mt(s,this.options.className),s.onselectstart=d,s.onmousemove=d,s.onloadeddata=u(this.fire,this,"load"),i){for(var f=s.getElementsByTagName("source"),v=[],y=0;y<f.length;y++)v.push(f[y].src);this._url=f.length>0?v:[s.src];return}O(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(s.style,"objectFit")&&(s.style.objectFit="fill"),s.autoplay=!!this.options.autoplay,s.loop=!!this.options.loop,s.muted=!!this.options.muted,s.playsInline=!!this.options.playsInline;for(var P=0;P<this._url.length;P++){var j=xt("source");j.src=this._url[P],s.appendChild(j)}}});function AO(i,s,f){return new fv(i,s,f)}var hv=ka.extend({_initImage:function(){var i=this._image=this._url;mt(i,"leaflet-image-layer"),this._zoomAnimated&&mt(i,"leaflet-zoom-animated"),this.options.className&&mt(i,this.options.className),i.onselectstart=d,i.onmousemove=d}});function TO(i,s,f){return new hv(i,s,f)}var ze=Me.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,s){i&&(i instanceof ut||O(i))?(this._latlng=lt(i),b(this,s)):(b(this,i),this._source=s),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&ge(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&ge(this._container,1),this.bringToFront(),this.options.interactive&&(mt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(ge(this._container,0),this._removeTimeout=setTimeout(u($t,void 0,this._container),200)):$t(this._container),this.options.interactive&&(zt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=lt(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&rn(this._container),this},bringToBack:function(){return this._map&&nn(this._container),this},_prepareOpen:function(i){var s=this._source;if(!s._map)return!1;if(s instanceof Ve){s=null;var f=this._source._layers;for(var v in f)if(f[v]._map){s=f[v];break}if(!s)return!1;this._source=s}if(!i)if(s.getCenter)i=s.getCenter();else if(s.getLatLng)i=s.getLatLng();else if(s.getBounds)i=s.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,s=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof s=="string")i.innerHTML=s;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(s)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),s=Y(this.options.offset),f=this._getAnchor();this._zoomAnimated?Ft(this._container,i.add(f)):s=s.add(i).add(f);var v=this._containerBottom=-s.y,y=this._containerLeft=-Math.round(this._containerWidth/2)+s.x;this._container.style.bottom=v+"px",this._container.style.left=y+"px"}},_getAnchor:function(){return[0,0]}});bt.include({_initOverlay:function(i,s,f,v){var y=s;return y instanceof i||(y=new i(v).setContent(s)),f&&y.setLatLng(f),y}}),Me.include({_initOverlay:function(i,s,f,v){var y=f;return y instanceof i?(b(y,v),y._source=this):(y=s&&!v?s:new i(v,this),y.setContent(f)),y}});var Ra=ze.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,ze.prototype.openOn.call(this,i)},onAdd:function(i){ze.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof vr||this._source.on("preclick",Mr))},onRemove:function(i){ze.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof vr||this._source.off("preclick",Mr))},getEvents:function(){var i=ze.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",s=this._container=xt("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),f=this._wrapper=xt("div",i+"-content-wrapper",s);if(this._contentNode=xt("div",i+"-content",f),ii(s),Hs(this._contentNode),pt(s,"contextmenu",Mr),this._tipContainer=xt("div",i+"-tip-container",s),this._tip=xt("div",i+"-tip",this._tipContainer),this.options.closeButton){var v=this._closeButton=xt("a",i+"-close-button",s);v.setAttribute("role","button"),v.setAttribute("aria-label","Close popup"),v.href="#close",v.innerHTML='<span aria-hidden="true">×</span>',pt(v,"click",function(y){ee(y),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,s=i.style;s.width="",s.whiteSpace="nowrap";var f=i.offsetWidth;f=Math.min(f,this.options.maxWidth),f=Math.max(f,this.options.minWidth),s.width=f+1+"px",s.whiteSpace="",s.height="";var v=i.offsetHeight,y=this.options.maxHeight,P="leaflet-popup-scrolled";y&&v>y?(s.height=y+"px",mt(i,P)):zt(i,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),f=this._getAnchor();Ft(this._container,s.add(f))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,s=parseInt(ti(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+s,v=this._containerWidth,y=new H(this._containerLeft,-f-this._containerBottom);y._add(Er(this._container));var P=i.layerPointToContainerPoint(y),j=Y(this.options.autoPanPadding),D=Y(this.options.autoPanPaddingTopLeft||j),z=Y(this.options.autoPanPaddingBottomRight||j),G=i.getSize(),nt=0,ct=0;P.x+v+z.x>G.x&&(nt=P.x+v-G.x+z.x),P.x-nt-D.x<0&&(nt=P.x-D.x),P.y+f+z.y>G.y&&(ct=P.y+f-G.y+z.y),P.y-ct-D.y<0&&(ct=P.y-D.y),(nt||ct)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([nt,ct]))}},_getAnchor:function(){return Y(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),EO=function(i,s){return new Ra(i,s)};bt.mergeOptions({closePopupOnClick:!0}),bt.include({openPopup:function(i,s,f){return this._initOverlay(Ra,i,s,f).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),Me.include({bindPopup:function(i,s){return this._popup=this._initOverlay(Ra,this._popup,i,s),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(i){return this._popup&&(this instanceof Ve||(this._popup._source=this),this._popup._prepareOpen(i||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){Cr(i);var s=i.layer||i.target;if(this._popup._source===s&&!(s instanceof vr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=s,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var Na=ze.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){ze.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){ze.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=ze.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",s=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=xt("div",s),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var s,f,v=this._map,y=this._container,P=v.latLngToContainerPoint(v.getCenter()),j=v.layerPointToContainerPoint(i),D=this.options.direction,z=y.offsetWidth,G=y.offsetHeight,nt=Y(this.options.offset),ct=this._getAnchor();D==="top"?(s=z/2,f=G):D==="bottom"?(s=z/2,f=0):D==="center"?(s=z/2,f=G/2):D==="right"?(s=0,f=G/2):D==="left"?(s=z,f=G/2):j.x<P.x?(D="right",s=0,f=G/2):(D="left",s=z+(nt.x+ct.x)*2,f=G/2),i=i.subtract(Y(s,f,!0)).add(nt).add(ct),zt(y,"leaflet-tooltip-right"),zt(y,"leaflet-tooltip-left"),zt(y,"leaflet-tooltip-top"),zt(y,"leaflet-tooltip-bottom"),mt(y,"leaflet-tooltip-"+D),Ft(y,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&ge(this._container,i)},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(s)},_getAnchor:function(){return Y(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),MO=function(i,s){return new Na(i,s)};bt.include({openTooltip:function(i,s,f){return this._initOverlay(Na,i,s,f).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),Me.include({bindTooltip:function(i,s){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Na,this._tooltip,i,s),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(i){if(!(!i&&this._tooltipHandlersAdded)){var s=i?"off":"on",f={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?f.add=this._openTooltip:(f.mouseover=this._openTooltip,f.mouseout=this.closeTooltip,f.click=this._openTooltip,this._map?this._addFocusListeners():f.add=this._addFocusListeners),this._tooltip.options.sticky&&(f.mousemove=this._moveTooltip),this[s](f),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof Ve||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var s=typeof i.getElement=="function"&&i.getElement();s&&(pt(s,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),pt(s,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var s=typeof i.getElement=="function"&&i.getElement();s&&s.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var s=this;this._map.once("moveend",function(){s._openOnceFlag=!1,s._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var s=i.latlng,f,v;this._tooltip.options.sticky&&i.originalEvent&&(f=this._map.mouseEventToContainerPoint(i.originalEvent),v=this._map.containerPointToLayerPoint(f),s=this._map.layerPointToLatLng(v)),this._tooltip.setLatLng(s)}});var dv=on.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var s=i&&i.tagName==="DIV"?i:document.createElement("div"),f=this.options;if(f.html instanceof Element?(wa(s),s.appendChild(f.html)):s.innerHTML=f.html!==!1?f.html:"",f.bgPos){var v=Y(f.bgPos);s.style.backgroundPosition=-v.x+"px "+-v.y+"px"}return this._setIconStyles(s,"icon"),s},createShadow:function(){return null}});function CO(i){return new dv(i)}on.Default=si;var ui=Me.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ot.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(i){b(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),$t(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(rn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(nn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=h(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof H?i:new H(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var s=this.getPane().children,f=-i(-1/0,1/0),v=0,y=s.length,P;v<y;v++)P=s[v].style.zIndex,s[v]!==this._container&&P&&(f=i(f,+P));isFinite(f)&&(this.options.zIndex=f+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ot.ielt9){ge(this._container,this.options.opacity);var i=+new Date,s=!1,f=!1;for(var v in this._tiles){var y=this._tiles[v];if(!(!y.current||!y.loaded)){var P=Math.min(1,(i-y.loaded)/200);ge(y.el,P),P<1?s=!0:(y.active?f=!0:this._onOpaqueTile(y),y.active=!0)}}f&&!this._noPrune&&this._pruneTiles(),s&&(N(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=xt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,s=this.options.maxZoom;if(i!==void 0){for(var f in this._levels)f=Number(f),this._levels[f].el.children.length||f===i?(this._levels[f].el.style.zIndex=s-Math.abs(i-f),this._onUpdateLevel(f)):($t(this._levels[f].el),this._removeTilesAtZoom(f),this._onRemoveLevel(f),delete this._levels[f]);var v=this._levels[i],y=this._map;return v||(v=this._levels[i]={},v.el=xt("div","leaflet-tile-container leaflet-zoom-animated",this._container),v.el.style.zIndex=s,v.origin=y.project(y.unproject(y.getPixelOrigin()),i).round(),v.zoom=i,this._setZoomTransform(v,y.getCenter(),y.getZoom()),d(v.el.offsetWidth),this._onCreateLevel(v)),this._level=v,v}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var i,s,f=this._map.getZoom();if(f>this.options.maxZoom||f<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)s=this._tiles[i],s.retain=s.current;for(i in this._tiles)if(s=this._tiles[i],s.current&&!s.active){var v=s.coords;this._retainParent(v.x,v.y,v.z,v.z-5)||this._retainChildren(v.x,v.y,v.z,v.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var s in this._tiles)this._tiles[s].coords.z===i&&this._removeTile(s)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)$t(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,s,f,v){var y=Math.floor(i/2),P=Math.floor(s/2),j=f-1,D=new H(+y,+P);D.z=+j;var z=this._tileCoordsToKey(D),G=this._tiles[z];return G&&G.active?(G.retain=!0,!0):(G&&G.loaded&&(G.retain=!0),j>v?this._retainParent(y,P,j,v):!1)},_retainChildren:function(i,s,f,v){for(var y=2*i;y<2*i+2;y++)for(var P=2*s;P<2*s+2;P++){var j=new H(y,P);j.z=f+1;var D=this._tileCoordsToKey(j),z=this._tiles[D];if(z&&z.active){z.retain=!0;continue}else z&&z.loaded&&(z.retain=!0);f+1<v&&this._retainChildren(y,P,f+1,v)}},_resetView:function(i){var s=i&&(i.pinch||i.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),s,s)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var s=this.options;return s.minNativeZoom!==void 0&&i<s.minNativeZoom?s.minNativeZoom:s.maxNativeZoom!==void 0&&s.maxNativeZoom<i?s.maxNativeZoom:i},_setView:function(i,s,f,v){var y=Math.round(s);this.options.maxZoom!==void 0&&y>this.options.maxZoom||this.options.minZoom!==void 0&&y<this.options.minZoom?y=void 0:y=this._clampZoom(y);var P=this.options.updateWhenZooming&&y!==this._tileZoom;(!v||P)&&(this._tileZoom=y,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),y!==void 0&&this._update(i),f||this._pruneTiles(),this._noPrune=!!f),this._setZoomTransforms(i,s)},_setZoomTransforms:function(i,s){for(var f in this._levels)this._setZoomTransform(this._levels[f],i,s)},_setZoomTransform:function(i,s,f){var v=this._map.getZoomScale(f,i.zoom),y=i.origin.multiplyBy(v).subtract(this._map._getNewPixelOrigin(s,f)).round();ot.any3d?Tr(i.el,y,v):Ft(i.el,y)},_resetGrid:function(){var i=this._map,s=i.options.crs,f=this._tileSize=this.getTileSize(),v=this._tileZoom,y=this._map.getPixelWorldBounds(this._tileZoom);y&&(this._globalTileRange=this._pxBoundsToTileRange(y)),this._wrapX=s.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,s.wrapLng[0]],v).x/f.x),Math.ceil(i.project([0,s.wrapLng[1]],v).x/f.y)],this._wrapY=s.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([s.wrapLat[0],0],v).y/f.x),Math.ceil(i.project([s.wrapLat[1],0],v).y/f.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var s=this._map,f=s._animatingZoom?Math.max(s._animateToZoom,s.getZoom()):s.getZoom(),v=s.getZoomScale(f,this._tileZoom),y=s.project(i,this._tileZoom).floor(),P=s.getSize().divideBy(v*2);return new et(y.subtract(P),y.add(P))},_update:function(i){var s=this._map;if(s){var f=this._clampZoom(s.getZoom());if(i===void 0&&(i=s.getCenter()),this._tileZoom!==void 0){var v=this._getTiledPixelBounds(i),y=this._pxBoundsToTileRange(v),P=y.getCenter(),j=[],D=this.options.keepBuffer,z=new et(y.getBottomLeft().subtract([D,-D]),y.getTopRight().add([D,-D]));if(!(isFinite(y.min.x)&&isFinite(y.min.y)&&isFinite(y.max.x)&&isFinite(y.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var G in this._tiles){var nt=this._tiles[G].coords;(nt.z!==this._tileZoom||!z.contains(new H(nt.x,nt.y)))&&(this._tiles[G].current=!1)}if(Math.abs(f-this._tileZoom)>1){this._setView(i,f);return}for(var ct=y.min.y;ct<=y.max.y;ct++)for(var yt=y.min.x;yt<=y.max.x;yt++){var se=new H(yt,ct);if(se.z=this._tileZoom,!!this._isValidTile(se)){var Xt=this._tiles[this._tileCoordsToKey(se)];Xt?Xt.current=!0:j.push(se)}}if(j.sort(function(le,ln){return le.distanceTo(P)-ln.distanceTo(P)}),j.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var be=document.createDocumentFragment();for(yt=0;yt<j.length;yt++)this._addTile(j[yt],be);this._level.el.appendChild(be)}}}},_isValidTile:function(i){var s=this._map.options.crs;if(!s.infinite){var f=this._globalTileRange;if(!s.wrapLng&&(i.x<f.min.x||i.x>f.max.x)||!s.wrapLat&&(i.y<f.min.y||i.y>f.max.y))return!1}if(!this.options.bounds)return!0;var v=this._tileCoordsToBounds(i);return ft(this.options.bounds).overlaps(v)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var s=this._map,f=this.getTileSize(),v=i.scaleBy(f),y=v.add(f),P=s.unproject(v,i.z),j=s.unproject(y,i.z);return[P,j]},_tileCoordsToBounds:function(i){var s=this._tileCoordsToNwSe(i),f=new at(s[0],s[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var s=i.split(":"),f=new H(+s[0],+s[1]);return f.z=+s[2],f},_removeTile:function(i){var s=this._tiles[i];s&&($t(s.el),delete this._tiles[i],this.fire("tileunload",{tile:s.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){mt(i,"leaflet-tile");var s=this.getTileSize();i.style.width=s.x+"px",i.style.height=s.y+"px",i.onselectstart=d,i.onmousemove=d,ot.ielt9&&this.options.opacity<1&&ge(i,this.options.opacity)},_addTile:function(i,s){var f=this._getTilePos(i),v=this._tileCoordsToKey(i),y=this.createTile(this._wrapCoords(i),u(this._tileReady,this,i));this._initTile(y),this.createTile.length<2&&C(u(this._tileReady,this,i,null,y)),Ft(y,f),this._tiles[v]={el:y,coords:i,current:!0},s.appendChild(y),this.fire("tileloadstart",{tile:y,coords:i})},_tileReady:function(i,s,f){s&&this.fire("tileerror",{error:s,tile:f,coords:i});var v=this._tileCoordsToKey(i);f=this._tiles[v],f&&(f.loaded=+new Date,this._map._fadeAnimated?(ge(f.el,0),N(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),s||(mt(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ot.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(u(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var s=new H(this._wrapX?p(i.x,this._wrapX):i.x,this._wrapY?p(i.y,this._wrapY):i.y);return s.z=i.z,s},_pxBoundsToTileRange:function(i){var s=this.getTileSize();return new et(i.min.unscaleBy(s).floor(),i.max.unscaleBy(s).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function jO(i){return new ui(i)}var cn=ui.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,s){this._url=i,s=b(this,s),s.detectRetina&&ot.retina&&s.maxZoom>0?(s.tileSize=Math.floor(s.tileSize/2),s.zoomReverse?(s.zoomOffset--,s.minZoom=Math.min(s.maxZoom,s.minZoom+1)):(s.zoomOffset++,s.maxZoom=Math.max(s.minZoom,s.maxZoom-1)),s.minZoom=Math.max(0,s.minZoom)):s.zoomReverse?s.minZoom=Math.min(s.maxZoom,s.minZoom):s.maxZoom=Math.max(s.minZoom,s.maxZoom),typeof s.subdomains=="string"&&(s.subdomains=s.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,s){return this._url===i&&s===void 0&&(s=!0),this._url=i,s||this.redraw(),this},createTile:function(i,s){var f=document.createElement("img");return pt(f,"load",u(this._tileOnLoad,this,s,f)),pt(f,"error",u(this._tileOnError,this,s,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(i),f},getTileUrl:function(i){var s={r:ot.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var f=this._globalTileRange.max.y-i.y;this.options.tms&&(s.y=f),s["-y"]=f}return T(this._url,a(s,this.options))},_tileOnLoad:function(i,s){ot.ielt9?setTimeout(u(i,this,null,s),0):i(null,s)},_tileOnError:function(i,s,f){var v=this.options.errorTileUrl;v&&s.getAttribute("src")!==v&&(s.src=v),i(f,s)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,s=this.options.maxZoom,f=this.options.zoomReverse,v=this.options.zoomOffset;return f&&(i=s-i),i+v},_getSubdomain:function(i){var s=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[s]},_abortLoading:function(){var i,s;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(s=this._tiles[i].el,s.onload=d,s.onerror=d,!s.complete)){s.src=w;var f=this._tiles[i].coords;$t(s),delete this._tiles[i],this.fire("tileabort",{tile:s,coords:f})}},_removeTile:function(i){var s=this._tiles[i];if(s)return s.el.setAttribute("src",w),ui.prototype._removeTile.call(this,i)},_tileReady:function(i,s,f){if(!(!this._map||f&&f.getAttribute("src")===w))return ui.prototype._tileReady.call(this,i,s,f)}});function pv(i,s){return new cn(i,s)}var vv=cn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,s){this._url=i;var f=a({},this.defaultWmsParams);for(var v in s)v in this.options||(f[v]=s[v]);s=b(this,s);var y=s.detectRetina&&ot.retina?2:1,P=this.getTileSize();f.width=P.x*y,f.height=P.y*y,this.wmsParams=f},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var s=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[s]=this._crs.code,cn.prototype.onAdd.call(this,i)},getTileUrl:function(i){var s=this._tileCoordsToNwSe(i),f=this._crs,v=J(f.project(s[0]),f.project(s[1])),y=v.min,P=v.max,j=(this._wmsVersion>=1.3&&this._crs===sv?[y.y,y.x,P.y,P.x]:[y.x,y.y,P.x,P.y]).join(","),D=cn.prototype.getTileUrl.call(this,i);return D+_(this.wmsParams,D,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+j},setParams:function(i,s){return a(this.wmsParams,i),s||this.redraw(),this}});function IO(i,s){return new vv(i,s)}cn.WMS=vv,pv.wms=IO;var Je=Me.extend({options:{padding:.1},initialize:function(i){b(this,i),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),mt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,s){var f=this._map.getZoomScale(s,this._zoom),v=this._map.getSize().multiplyBy(.5+this.options.padding),y=this._map.project(this._center,s),P=v.multiplyBy(-f).add(y).subtract(this._map._getNewPixelOrigin(i,s));ot.any3d?Tr(this._container,P,f):Ft(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,s=this._map.getSize(),f=this._map.containerPointToLayerPoint(s.multiplyBy(-i)).round();this._bounds=new et(f,f.add(s.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),mv=Je.extend({options:{tolerance:0},getEvents:function(){var i=Je.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Je.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");pt(i,"mousemove",this._onMouseMove,this),pt(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),pt(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){N(this._redrawRequest),delete this._ctx,$t(this._container),It(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var s in this._layers)i=this._layers[s],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Je.prototype._update.call(this);var i=this._bounds,s=this._container,f=i.getSize(),v=ot.retina?2:1;Ft(s,i.min),s.width=v*f.x,s.height=v*f.y,s.style.width=f.x+"px",s.style.height=f.y+"px",ot.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){Je.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[l(i)]=i;var s=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=s),this._drawLast=s,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var s=i._order,f=s.next,v=s.prev;f?f.prev=v:this._drawLast=v,v?v.next=f:this._drawFirst=f,delete i._order,delete this._layers[l(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var s=i.options.dashArray.split(/[, ]+/),f=[],v,y;for(y=0;y<s.length;y++){if(v=Number(s[y]),isNaN(v))return;f.push(v)}i.options._dashArray=f}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var s=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new et,this._redrawBounds.extend(i._pxBounds.min.subtract([s,s])),this._redrawBounds.extend(i._pxBounds.max.add([s,s]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var i=this._redrawBounds;if(i){var s=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,s.x,s.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var i,s=this._redrawBounds;if(this._ctx.save(),s){var f=s.getSize();this._ctx.beginPath(),this._ctx.rect(s.min.x,s.min.y,f.x,f.y),this._ctx.clip()}this._drawing=!0;for(var v=this._drawFirst;v;v=v.next)i=v.layer,(!s||i._pxBounds&&i._pxBounds.intersects(s))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,s){if(this._drawing){var f,v,y,P,j=i._parts,D=j.length,z=this._ctx;if(D){for(z.beginPath(),f=0;f<D;f++){for(v=0,y=j[f].length;v<y;v++)P=j[f][v],z[v?"lineTo":"moveTo"](P.x,P.y);s&&z.closePath()}this._fillStroke(z,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var s=i._point,f=this._ctx,v=Math.max(Math.round(i._radius),1),y=(Math.max(Math.round(i._radiusY),1)||v)/v;y!==1&&(f.save(),f.scale(1,y)),f.beginPath(),f.arc(s.x,s.y/y,v,0,Math.PI*2,!1),y!==1&&f.restore(),this._fillStroke(f,i)}},_fillStroke:function(i,s){var f=s.options;f.fill&&(i.globalAlpha=f.fillOpacity,i.fillStyle=f.fillColor||f.color,i.fill(f.fillRule||"evenodd")),f.stroke&&f.weight!==0&&(i.setLineDash&&i.setLineDash(s.options&&s.options._dashArray||[]),i.globalAlpha=f.opacity,i.lineWidth=f.weight,i.strokeStyle=f.color,i.lineCap=f.lineCap,i.lineJoin=f.lineJoin,i.stroke())},_onClick:function(i){for(var s=this._map.mouseEventToLayerPoint(i),f,v,y=this._drawFirst;y;y=y.next)f=y.layer,f.options.interactive&&f._containsPoint(s)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(f))&&(v=f);this._fireEvent(v?[v]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var s=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,s)}},_handleMouseOut:function(i){var s=this._hoveredLayer;s&&(zt(this._container,"leaflet-interactive"),this._fireEvent([s],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,s){if(!this._mouseHoverThrottled){for(var f,v,y=this._drawFirst;y;y=y.next)f=y.layer,f.options.interactive&&f._containsPoint(s)&&(v=f);v!==this._hoveredLayer&&(this._handleMouseOut(i),v&&(mt(this._container,"leaflet-interactive"),this._fireEvent([v],i,"mouseover"),this._hoveredLayer=v)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(u(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,s,f){this._map._fireDOMEvent(s,f||s.type,i)},_bringToFront:function(i){var s=i._order;if(s){var f=s.next,v=s.prev;if(f)f.prev=v;else return;v?v.next=f:f&&(this._drawFirst=f),s.prev=this._drawLast,this._drawLast.next=s,s.next=null,this._drawLast=s,this._requestRedraw(i)}},_bringToBack:function(i){var s=i._order;if(s){var f=s.next,v=s.prev;if(v)v.next=f;else return;f?f.prev=v:v&&(this._drawLast=v),s.prev=null,s.next=this._drawFirst,this._drawFirst.prev=s,this._drawFirst=s,this._requestRedraw(i)}}});function yv(i){return ot.canvas?new mv(i):null}var ci=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch{}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),LO={_initContainer:function(){this._container=xt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Je.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var s=i._container=ci("shape");mt(s,"leaflet-vml-shape "+(this.options.className||"")),s.coordsize="1 1",i._path=ci("path"),s.appendChild(i._path),this._updateStyle(i),this._layers[l(i)]=i},_addPath:function(i){var s=i._container;this._container.appendChild(s),i.options.interactive&&i.addInteractiveTarget(s)},_removePath:function(i){var s=i._container;$t(s),i.removeInteractiveTarget(s),delete this._layers[l(i)]},_updateStyle:function(i){var s=i._stroke,f=i._fill,v=i.options,y=i._container;y.stroked=!!v.stroke,y.filled=!!v.fill,v.stroke?(s||(s=i._stroke=ci("stroke")),y.appendChild(s),s.weight=v.weight+"px",s.color=v.color,s.opacity=v.opacity,v.dashArray?s.dashStyle=O(v.dashArray)?v.dashArray.join(" "):v.dashArray.replace(/( *, *)/g," "):s.dashStyle="",s.endcap=v.lineCap.replace("butt","flat"),s.joinstyle=v.lineJoin):s&&(y.removeChild(s),i._stroke=null),v.fill?(f||(f=i._fill=ci("fill")),y.appendChild(f),f.color=v.fillColor||v.color,f.opacity=v.fillOpacity):f&&(y.removeChild(f),i._fill=null)},_updateCircle:function(i){var s=i._point.round(),f=Math.round(i._radius),v=Math.round(i._radiusY||f);this._setPath(i,i._empty()?"M0 0":"AL "+s.x+","+s.y+" "+f+","+v+" 0,"+65535*360)},_setPath:function(i,s){i._path.v=s},_bringToFront:function(i){rn(i._container)},_bringToBack:function(i){nn(i._container)}},$a=ot.vml?ci:Dt,li=Je.extend({_initContainer:function(){this._container=$a("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$a("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){$t(this._container),It(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Je.prototype._update.call(this);var i=this._bounds,s=i.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(s))&&(this._svgSize=s,f.setAttribute("width",s.x),f.setAttribute("height",s.y)),Ft(f,i.min),f.setAttribute("viewBox",[i.min.x,i.min.y,s.x,s.y].join(" ")),this.fire("update")}},_initPath:function(i){var s=i._path=$a("path");i.options.className&&mt(s,i.options.className),i.options.interactive&&mt(s,"leaflet-interactive"),this._updateStyle(i),this._layers[l(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){$t(i._path),i.removeInteractiveTarget(i._path),delete this._layers[l(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var s=i._path,f=i.options;s&&(f.stroke?(s.setAttribute("stroke",f.color),s.setAttribute("stroke-opacity",f.opacity),s.setAttribute("stroke-width",f.weight),s.setAttribute("stroke-linecap",f.lineCap),s.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?s.setAttribute("stroke-dasharray",f.dashArray):s.removeAttribute("stroke-dasharray"),f.dashOffset?s.setAttribute("stroke-dashoffset",f.dashOffset):s.removeAttribute("stroke-dashoffset")):s.setAttribute("stroke","none"),f.fill?(s.setAttribute("fill",f.fillColor||f.color),s.setAttribute("fill-opacity",f.fillOpacity),s.setAttribute("fill-rule",f.fillRule||"evenodd")):s.setAttribute("fill","none"))},_updatePoly:function(i,s){this._setPath(i,Bt(i._parts,s))},_updateCircle:function(i){var s=i._point,f=Math.max(Math.round(i._radius),1),v=Math.max(Math.round(i._radiusY),1)||f,y="a"+f+","+v+" 0 1,0 ",P=i._empty()?"M0 0":"M"+(s.x-f)+","+s.y+y+f*2+",0 "+y+-f*2+",0 ";this._setPath(i,P)},_setPath:function(i,s){i._path.setAttribute("d",s)},_bringToFront:function(i){rn(i._path)},_bringToBack:function(i){nn(i._path)}});ot.vml&&li.include(LO);function gv(i){return ot.svg||ot.vml?new li(i):null}bt.include({getRenderer:function(i){var s=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return s||(s=this._renderer=this._createRenderer()),this.hasLayer(s)||this.addLayer(s),s},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var s=this._paneRenderers[i];return s===void 0&&(s=this._createRenderer({pane:i}),this._paneRenderers[i]=s),s},_createRenderer:function(i){return this.options.preferCanvas&&yv(i)||gv(i)}});var _v=sn.extend({initialize:function(i,s){sn.prototype.initialize.call(this,this._boundsToLatLngs(i),s)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))},_boundsToLatLngs:function(i){return i=ft(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function kO(i,s){return new _v(i,s)}li.create=$a,li.pointsToPath=Bt,Ye.geometryToLayer=Ca,Ye.coordsToLatLng=tu,Ye.coordsToLatLngs=ja,Ye.latLngToCoords=eu,Ye.latLngsToCoords=Ia,Ye.getFeature=un,Ye.asFeature=La,bt.mergeOptions({boxZoom:!0});var bv=qe.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){pt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){It(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){$t(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),ei(),$s(),this._startPoint=this._map.mouseEventToContainerPoint(i),pt(document,{contextmenu:Cr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=xt("div","leaflet-zoom-box",this._container),mt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var s=new et(this._point,this._startPoint),f=s.getSize();Ft(this._box,s.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&($t(this._box),zt(this._container,"leaflet-crosshair")),ri(),Ds(),It(document,{contextmenu:Cr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(u(this._resetState,this),0);var s=new at(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(s).fire("boxzoomend",{boxZoomBounds:s})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});bt.addInitHook("addHandler","boxZoom",bv),bt.mergeOptions({doubleClickZoom:!0});var xv=qe.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var s=this._map,f=s.getZoom(),v=s.options.zoomDelta,y=i.originalEvent.shiftKey?f-v:f+v;s.options.doubleClickZoom==="center"?s.setZoom(y):s.setZoomAround(i.containerPoint,y)}});bt.addInitHook("addHandler","doubleClickZoom",xv),bt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var wv=qe.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new pr(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}mt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){zt(this._map._container,"leaflet-grab"),zt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var s=ft(this._map.options.maxBounds);this._offsetLimit=J(this._map.latLngToContainerPoint(s.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(s.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var s=this._lastTime=+new Date,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),this._times.push(s),this._prunePositions(s)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),s=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=s.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,s){return i-(i-s)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),s=this._offsetLimit;i.x<s.min.x&&(i.x=this._viscousLimit(i.x,s.min.x)),i.y<s.min.y&&(i.y=this._viscousLimit(i.y,s.min.y)),i.x>s.max.x&&(i.x=this._viscousLimit(i.x,s.max.x)),i.y>s.max.y&&(i.y=this._viscousLimit(i.y,s.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,s=Math.round(i/2),f=this._initialWorldOffset,v=this._draggable._newPos.x,y=(v-s+f)%i+s-f,P=(v+s+f)%i-s-f,j=Math.abs(y+f)<Math.abs(P+f)?y:P;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=j},_onDragEnd:function(i){var s=this._map,f=s.options,v=!f.inertia||i.noInertia||this._times.length<2;if(s.fire("dragend",i),v)s.fire("moveend");else{this._prunePositions(+new Date);var y=this._lastPos.subtract(this._positions[0]),P=(this._lastTime-this._times[0])/1e3,j=f.easeLinearity,D=y.multiplyBy(j/P),z=D.distanceTo([0,0]),G=Math.min(f.inertiaMaxSpeed,z),nt=D.multiplyBy(G/z),ct=G/(f.inertiaDeceleration*j),yt=nt.multiplyBy(-ct/2).round();!yt.x&&!yt.y?s.fire("moveend"):(yt=s._limitOffset(yt,s.options.maxBounds),C(function(){s.panBy(yt,{duration:ct,easeLinearity:j,noMoveStart:!0,animate:!0})}))}}});bt.addInitHook("addHandler","dragging",wv),bt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Pv=qe.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),pt(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),It(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=document.body,s=document.documentElement,f=i.scrollTop||s.scrollTop,v=i.scrollLeft||s.scrollLeft;this._map._container.focus(),window.scrollTo(v,f)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var s=this._panKeys={},f=this.keyCodes,v,y;for(v=0,y=f.left.length;v<y;v++)s[f.left[v]]=[-1*i,0];for(v=0,y=f.right.length;v<y;v++)s[f.right[v]]=[i,0];for(v=0,y=f.down.length;v<y;v++)s[f.down[v]]=[0,i];for(v=0,y=f.up.length;v<y;v++)s[f.up[v]]=[0,-1*i]},_setZoomDelta:function(i){var s=this._zoomKeys={},f=this.keyCodes,v,y;for(v=0,y=f.zoomIn.length;v<y;v++)s[f.zoomIn[v]]=i;for(v=0,y=f.zoomOut.length;v<y;v++)s[f.zoomOut[v]]=-i},_addHooks:function(){pt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){It(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var s=i.keyCode,f=this._map,v;if(s in this._panKeys){if(!f._panAnim||!f._panAnim._inProgress)if(v=this._panKeys[s],i.shiftKey&&(v=Y(v).multiplyBy(3)),f.options.maxBounds&&(v=f._limitOffset(Y(v),f.options.maxBounds)),f.options.worldCopyJump){var y=f.wrapLatLng(f.unproject(f.project(f.getCenter()).add(v)));f.panTo(y)}else f.panBy(v)}else if(s in this._zoomKeys)f.setZoom(f.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[s]);else if(s===27&&f._popup&&f._popup.options.closeOnEscapeKey)f.closePopup();else return;Cr(i)}}});bt.addInitHook("addHandler","keyboard",Pv),bt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ov=qe.extend({addHooks:function(){pt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){It(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var s=Kp(i),f=this._map.options.wheelDebounceTime;this._delta+=s,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var v=Math.max(f-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(u(this._performZoom,this),v),Cr(i)},_performZoom:function(){var i=this._map,s=i.getZoom(),f=this._map.options.zoomSnap||0;i._stop();var v=this._delta/(this._map.options.wheelPxPerZoomLevel*4),y=4*Math.log(2/(1+Math.exp(-Math.abs(v))))/Math.LN2,P=f?Math.ceil(y/f)*f:y,j=i._limitZoom(s+(this._delta>0?P:-P))-s;this._delta=0,this._startTime=null,j&&(i.options.scrollWheelZoom==="center"?i.setZoom(s+j):i.setZoomAround(this._lastMousePos,s+j))}});bt.addInitHook("addHandler","scrollWheelZoom",Ov);var RO=600;bt.mergeOptions({tapHold:ot.touchNative&&ot.safari&&ot.mobile,tapTolerance:15});var Sv=qe.extend({addHooks:function(){pt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){It(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var s=i.touches[0];this._startPos=this._newPos=new H(s.clientX,s.clientY),this._holdTimeout=setTimeout(u(function(){this._cancel(),this._isTapValid()&&(pt(document,"touchend",ee),pt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",s))},this),RO),pt(document,"touchend touchcancel contextmenu",this._cancel,this),pt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){It(document,"touchend",ee),It(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),It(document,"touchend touchcancel contextmenu",this._cancel,this),It(document,"touchmove",this._onMove,this)},_onMove:function(i){var s=i.touches[0];this._newPos=new H(s.clientX,s.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,s){var f=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:s.screenX,screenY:s.screenY,clientX:s.clientX,clientY:s.clientY});f._simulated=!0,s.target.dispatchEvent(f)}});bt.addInitHook("addHandler","tapHold",Sv),bt.mergeOptions({touchZoom:ot.touch,bounceAtZoomLimits:!0});var Av=qe.extend({addHooks:function(){mt(this._map._container,"leaflet-touch-zoom"),pt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){zt(this._map._container,"leaflet-touch-zoom"),It(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var s=this._map;if(!(!i.touches||i.touches.length!==2||s._animatingZoom||this._zooming)){var f=s.mouseEventToContainerPoint(i.touches[0]),v=s.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=s.getSize()._divideBy(2),this._startLatLng=s.containerPointToLatLng(this._centerPoint),s.options.touchZoom!=="center"&&(this._pinchStartLatLng=s.containerPointToLatLng(f.add(v)._divideBy(2))),this._startDist=f.distanceTo(v),this._startZoom=s.getZoom(),this._moved=!1,this._zooming=!0,s._stop(),pt(document,"touchmove",this._onTouchMove,this),pt(document,"touchend touchcancel",this._onTouchEnd,this),ee(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var s=this._map,f=s.mouseEventToContainerPoint(i.touches[0]),v=s.mouseEventToContainerPoint(i.touches[1]),y=f.distanceTo(v)/this._startDist;if(this._zoom=s.getScaleZoom(y,this._startZoom),!s.options.bounceAtZoomLimits&&(this._zoom<s.getMinZoom()&&y<1||this._zoom>s.getMaxZoom()&&y>1)&&(this._zoom=s._limitZoom(this._zoom)),s.options.touchZoom==="center"){if(this._center=this._startLatLng,y===1)return}else{var P=f._add(v)._divideBy(2)._subtract(this._centerPoint);if(y===1&&P.x===0&&P.y===0)return;this._center=s.unproject(s.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(s._moveStart(!0,!1),this._moved=!0),N(this._animRequest);var j=u(s._move,s,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=C(j,this,!0),ee(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,N(this._animRequest),It(document,"touchmove",this._onTouchMove,this),It(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});bt.addInitHook("addHandler","touchZoom",Av),bt.BoxZoom=bv,bt.DoubleClickZoom=xv,bt.Drag=wv,bt.Keyboard=Pv,bt.ScrollWheelZoom=Ov,bt.TapHold=Sv,bt.TouchZoom=Av,r.Bounds=et,r.Browser=ot,r.CRS=te,r.Canvas=mv,r.Circle=Qs,r.CircleMarker=Ma,r.Class=F,r.Control=Ee,r.DivIcon=dv,r.DivOverlay=ze,r.DomEvent=QP,r.DomUtil=YP,r.Draggable=pr,r.Evented=X,r.FeatureGroup=Ve,r.GeoJSON=Ye,r.GridLayer=ui,r.Handler=qe,r.Icon=on,r.ImageOverlay=ka,r.LatLng=ut,r.LatLngBounds=at,r.Layer=Me,r.LayerGroup=an,r.LineUtil=hO,r.Map=bt,r.Marker=Ea,r.Mixin=oO,r.Path=vr,r.Point=H,r.PolyUtil=sO,r.Polygon=sn,r.Polyline=Xe,r.Popup=Ra,r.PosAnimation=Vp,r.Projection=dO,r.Rectangle=_v,r.Renderer=Je,r.SVG=li,r.SVGOverlay=hv,r.TileLayer=cn,r.Tooltip=Na,r.Transformation=dt,r.Util=q,r.VideoOverlay=fv,r.bind=u,r.bounds=J,r.canvas=yv,r.circle=xO,r.circleMarker=bO,r.control=ai,r.divIcon=CO,r.extend=a,r.featureGroup=yO,r.geoJSON=lv,r.geoJson=OO,r.gridLayer=jO,r.icon=gO,r.imageOverlay=SO,r.latLng=lt,r.latLngBounds=ft,r.layerGroup=mO,r.map=tO,r.marker=_O,r.point=Y,r.polygon=PO,r.polyline=wO,r.popup=EO,r.rectangle=kO,r.setOptions=b,r.stamp=l,r.svg=gv,r.svgOverlay=TO,r.tileLayer=pv,r.tooltip=MO,r.transformation=V,r.version=n,r.videoOverlay=AO;var NO=window.L;r.noConflict=function(){return window.L=NO,this},window.L=r})}(xi,xi.exports)),xi.exports}var xd=aS();const kv=Ct(xd);function oS(t,e,r){return Object.freeze({instance:t,context:e,container:r})}function sS(t,e){return e==null?function(n,a){const o=K.useRef(void 0);return o.current||(o.current=t(n,a)),o}:function(n,a){const o=K.useRef(void 0);o.current||(o.current=t(n,a));const u=K.useRef(n),{instance:c}=o.current;return K.useEffect(function(){u.current!==n&&(e(c,n,u.current),u.current=n)},[c,n,e]),o}}function uS(t,e){K.useEffect(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){var o;(o=e.layerContainer)==null||o.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}function cS(t,e){const r=K.useRef(void 0);K.useEffect(function(){if(e.pathOptions!==r.current){const a=e.pathOptions??{};t.instance.setStyle(a),r.current=a}},[t,e])}function lS(t){return function(r){const n=_x(),a=t(nS(r,n),n);return rS(a.current,r.eventHandlers),uS(a.current,n),cS(a.current,r),a}}function fS(t,e){const r=sS(t,e),n=lS(r);return eS(n)}function hS(){return _x().map}const dS=fS(function({data:e,...r},n){const a=new xd.GeoJSON(e,r);return oS(a,tS(n,{overlayContainer:a}))},function(e,r,n){r.style!==n.style&&(r.style==null?e.resetStyle():e.setStyle(r.style))});function pS({bounds:t,boundsOptions:e,center:r,children:n,className:a,id:o,placeholder:u,style:c,whenReady:l,zoom:h,...p},d){const[m]=K.useState({className:a,id:o,style:c}),[g,x]=K.useState(null),b=K.useRef(void 0);K.useImperativeHandle(d,()=>(g==null?void 0:g.map)??null,[g]);const _=K.useCallback(T=>{if(T!==null&&!b.current){const O=new xd.Map(T,p);b.current=O,r!=null&&h!=null?O.setView(r,h):t!=null&&O.fitBounds(t,e),l!=null&&O.whenReady(l),x(QO(O))}},[]);K.useEffect(()=>()=>{g==null||g.map.remove()},[g]);const A=g?R.createElement(bd,{value:g},n):u??null;return R.createElement("div",{...m,ref:_},A)}const vS=K.forwardRef(pS),mS=({colors:t,labels:e})=>{const r=hS();return K.useEffect(()=>{const n=new kv.Control({position:"bottomright"});return n.onAdd=()=>{const a=kv.DomUtil.create("div","info legend");return a.style.backgroundColor="white",a.style.padding="10px",a.style.border="2px solid rgba(0,0,0,0.2)",a.style.borderRadius="5px",t.forEach((o,u)=>{a.innerHTML+=`
<div style="display: flex; align-items: center; margin-bottom: 5px;">
<div style="width: 20px; height: 20px; background-color: ${o}; margin-right: 10px;"></div>
<span>${e[u]}</span>
</div>
`}),a},n.addTo(r),()=>{r.removeControl(n)}},[r,t,e]),null};var iu,Rv;function he(){if(Rv)return iu;Rv=1;var t=Array.isArray;return iu=t,iu}var au,Nv;function bx(){if(Nv)return au;Nv=1;var t=typeof Ba=="object"&&Ba&&Ba.Object===Object&&Ba;return au=t,au}var ou,$v;function Ke(){if($v)return ou;$v=1;var t=bx(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return ou=r,ou}var su,Dv;function la(){if(Dv)return su;Dv=1;var t=Ke(),e=t.Symbol;return su=e,su}var uu,Bv;function yS(){if(Bv)return uu;Bv=1;var t=la(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,a=t?t.toStringTag:void 0;function o(u){var c=r.call(u,a),l=u[a];try{u[a]=void 0;var h=!0}catch{}var p=n.call(u);return h&&(c?u[a]=l:delete u[a]),p}return uu=o,uu}var cu,qv;function gS(){if(qv)return cu;qv=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return cu=r,cu}var lu,zv;function lr(){if(zv)return lu;zv=1;var t=la(),e=yS(),r=gS(),n="[object Null]",a="[object Undefined]",o=t?t.toStringTag:void 0;function u(c){return c==null?c===void 0?a:n:o&&o in Object(c)?e(c):r(c)}return lu=u,lu}var fu,Fv;function fr(){if(Fv)return fu;Fv=1;function t(e){return e!=null&&typeof e=="object"}return fu=t,fu}var hu,Wv;function Hn(){if(Wv)return hu;Wv=1;var t=lr(),e=fr(),r="[object Symbol]";function n(a){return typeof a=="symbol"||e(a)&&t(a)==r}return hu=n,hu}var du,Uv;function wd(){if(Uv)return du;Uv=1;var t=he(),e=Hn(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(o,u){if(t(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||e(o)?!0:n.test(o)||!r.test(o)||u!=null&&o in Object(u)}return du=a,du}var pu,Hv;function xr(){if(Hv)return pu;Hv=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return pu=t,pu}var vu,Zv;function Pd(){if(Zv)return vu;Zv=1;var t=lr(),e=xr(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function u(c){if(!e(c))return!1;var l=t(c);return l==n||l==a||l==r||l==o}return vu=u,vu}var mu,Gv;function _S(){if(Gv)return mu;Gv=1;var t=Ke(),e=t["__core-js_shared__"];return mu=e,mu}var yu,Kv;function bS(){if(Kv)return yu;Kv=1;var t=_S(),e=function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!e&&e in n}return yu=r,yu}var gu,Vv;function xx(){if(Vv)return gu;Vv=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return gu=r,gu}var _u,Xv;function xS(){if(Xv)return _u;Xv=1;var t=Pd(),e=bS(),r=xr(),n=xx(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,h=c.hasOwnProperty,p=RegExp("^"+l.call(h).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(m){if(!r(m)||e(m))return!1;var g=t(m)?p:o;return g.test(n(m))}return _u=d,_u}var bu,Yv;function wS(){if(Yv)return bu;Yv=1;function t(e,r){return e==null?void 0:e[r]}return bu=t,bu}var xu,Jv;function Xr(){if(Jv)return xu;Jv=1;var t=xS(),e=wS();function r(n,a){var o=e(n,a);return t(o)?o:void 0}return xu=r,xu}var wu,Qv;function Yo(){if(Qv)return wu;Qv=1;var t=Xr(),e=t(Object,"create");return wu=e,wu}var Pu,tm;function PS(){if(tm)return Pu;tm=1;var t=Yo();function e(){this.__data__=t?t(null):{},this.size=0}return Pu=e,Pu}var Ou,em;function OS(){if(em)return Ou;em=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return Ou=t,Ou}var Su,rm;function SS(){if(rm)return Su;rm=1;var t=Yo(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(o){var u=this.__data__;if(t){var c=u[o];return c===e?void 0:c}return n.call(u,o)?u[o]:void 0}return Su=a,Su}var Au,nm;function AS(){if(nm)return Au;nm=1;var t=Yo(),e=Object.prototype,r=e.hasOwnProperty;function n(a){var o=this.__data__;return t?o[a]!==void 0:r.call(o,a)}return Au=n,Au}var Tu,im;function TS(){if(im)return Tu;im=1;var t=Yo(),e="__lodash_hash_undefined__";function r(n,a){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=t&&a===void 0?e:a,this}return Tu=r,Tu}var Eu,am;function ES(){if(am)return Eu;am=1;var t=PS(),e=OS(),r=SS(),n=AS(),a=TS();function o(u){var c=-1,l=u==null?0:u.length;for(this.clear();++c<l;){var h=u[c];this.set(h[0],h[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,Eu=o,Eu}var Mu,om;function MS(){if(om)return Mu;om=1;function t(){this.__data__=[],this.size=0}return Mu=t,Mu}var Cu,sm;function Od(){if(sm)return Cu;sm=1;function t(e,r){return e===r||e!==e&&r!==r}return Cu=t,Cu}var ju,um;function Jo(){if(um)return ju;um=1;var t=Od();function e(r,n){for(var a=r.length;a--;)if(t(r[a][0],n))return a;return-1}return ju=e,ju}var Iu,cm;function CS(){if(cm)return Iu;cm=1;var t=Jo(),e=Array.prototype,r=e.splice;function n(a){var o=this.__data__,u=t(o,a);if(u<0)return!1;var c=o.length-1;return u==c?o.pop():r.call(o,u,1),--this.size,!0}return Iu=n,Iu}var Lu,lm;function jS(){if(lm)return Lu;lm=1;var t=Jo();function e(r){var n=this.__data__,a=t(n,r);return a<0?void 0:n[a][1]}return Lu=e,Lu}var ku,fm;function IS(){if(fm)return ku;fm=1;var t=Jo();function e(r){return t(this.__data__,r)>-1}return ku=e,ku}var Ru,hm;function LS(){if(hm)return Ru;hm=1;var t=Jo();function e(r,n){var a=this.__data__,o=t(a,r);return o<0?(++this.size,a.push([r,n])):a[o][1]=n,this}return Ru=e,Ru}var Nu,dm;function Qo(){if(dm)return Nu;dm=1;var t=MS(),e=CS(),r=jS(),n=IS(),a=LS();function o(u){var c=-1,l=u==null?0:u.length;for(this.clear();++c<l;){var h=u[c];this.set(h[0],h[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,Nu=o,Nu}var $u,pm;function Sd(){if(pm)return $u;pm=1;var t=Xr(),e=Ke(),r=t(e,"Map");return $u=r,$u}var Du,vm;function kS(){if(vm)return Du;vm=1;var t=ES(),e=Qo(),r=Sd();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return Du=n,Du}var Bu,mm;function RS(){if(mm)return Bu;mm=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return Bu=t,Bu}var qu,ym;function ts(){if(ym)return qu;ym=1;var t=RS();function e(r,n){var a=r.__data__;return t(n)?a[typeof n=="string"?"string":"hash"]:a.map}return qu=e,qu}var zu,gm;function NS(){if(gm)return zu;gm=1;var t=ts();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return zu=e,zu}var Fu,_m;function $S(){if(_m)return Fu;_m=1;var t=ts();function e(r){return t(this,r).get(r)}return Fu=e,Fu}var Wu,bm;function DS(){if(bm)return Wu;bm=1;var t=ts();function e(r){return t(this,r).has(r)}return Wu=e,Wu}var Uu,xm;function BS(){if(xm)return Uu;xm=1;var t=ts();function e(r,n){var a=t(this,r),o=a.size;return a.set(r,n),this.size+=a.size==o?0:1,this}return Uu=e,Uu}var Hu,wm;function Ad(){if(wm)return Hu;wm=1;var t=kS(),e=NS(),r=$S(),n=DS(),a=BS();function o(u){var c=-1,l=u==null?0:u.length;for(this.clear();++c<l;){var h=u[c];this.set(h[0],h[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,Hu=o,Hu}var Zu,Pm;function wx(){if(Pm)return Zu;Pm=1;var t=Ad(),e="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var o=function(){var u=arguments,c=a?a.apply(this,u):u[0],l=o.cache;if(l.has(c))return l.get(c);var h=n.apply(this,u);return o.cache=l.set(c,h)||l,h};return o.cache=new(r.Cache||t),o}return r.Cache=t,Zu=r,Zu}var Gu,Om;function qS(){if(Om)return Gu;Om=1;var t=wx(),e=500;function r(n){var a=t(n,function(u){return o.size===e&&o.clear(),u}),o=a.cache;return a}return Gu=r,Gu}var Ku,Sm;function zS(){if(Sm)return Ku;Sm=1;var t=qS(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(a){var o=[];return a.charCodeAt(0)===46&&o.push(""),a.replace(e,function(u,c,l,h){o.push(l?h.replace(r,"$1"):c||u)}),o});return Ku=n,Ku}var Vu,Am;function Td(){if(Am)return Vu;Am=1;function t(e,r){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n<a;)o[n]=r(e[n],n,e);return o}return Vu=t,Vu}var Xu,Tm;function FS(){if(Tm)return Xu;Tm=1;var t=la(),e=Td(),r=he(),n=Hn(),a=t?t.prototype:void 0,o=a?a.toString:void 0;function u(c){if(typeof c=="string")return c;if(r(c))return e(c,u)+"";if(n(c))return o?o.call(c):"";var l=c+"";return l=="0"&&1/c==-1/0?"-0":l}return Xu=u,Xu}var Yu,Em;function Px(){if(Em)return Yu;Em=1;var t=FS();function e(r){return r==null?"":t(r)}return Yu=e,Yu}var Ju,Mm;function Ox(){if(Mm)return Ju;Mm=1;var t=he(),e=wd(),r=zS(),n=Px();function a(o,u){return t(o)?o:e(o,u)?[o]:r(n(o))}return Ju=a,Ju}var Qu,Cm;function es(){if(Cm)return Qu;Cm=1;var t=Hn();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Qu=e,Qu}var tc,jm;function Ed(){if(jm)return tc;jm=1;var t=Ox(),e=es();function r(n,a){a=t(a,n);for(var o=0,u=a.length;n!=null&&o<u;)n=n[e(a[o++])];return o&&o==u?n:void 0}return tc=r,tc}var ec,Im;function Sx(){if(Im)return ec;Im=1;var t=Ed();function e(r,n,a){var o=r==null?void 0:t(r,n);return o===void 0?a:o}return ec=e,ec}var WS=Sx();const Oe=Ct(WS);var rc,Lm;function US(){if(Lm)return rc;Lm=1;function t(e){return e==null}return rc=t,rc}var HS=US();const At=Ct(HS);var nc,km;function ZS(){if(km)return nc;km=1;var t=lr(),e=he(),r=fr(),n="[object String]";function a(o){return typeof o=="string"||!e(o)&&r(o)&&t(o)==n}return nc=a,nc}var GS=ZS();const fa=Ct(GS);var KS=Pd();const gt=Ct(KS);var VS=xr();const Zn=Ct(VS);var ic={exports:{}},Ot={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Rm;function XS(){if(Rm)return Ot;Rm=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function b(_){if(typeof _=="object"&&_!==null){var A=_.$$typeof;switch(A){case t:switch(_=_.type,_){case r:case a:case n:case h:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case u:case l:case m:case d:case o:return _;default:return A}}case e:return A}}}return Ot.ContextConsumer=u,Ot.ContextProvider=o,Ot.Element=t,Ot.ForwardRef=l,Ot.Fragment=r,Ot.Lazy=m,Ot.Memo=d,Ot.Portal=e,Ot.Profiler=a,Ot.StrictMode=n,Ot.Suspense=h,Ot.SuspenseList=p,Ot.isAsyncMode=function(){return!1},Ot.isConcurrentMode=function(){return!1},Ot.isContextConsumer=function(_){return b(_)===u},Ot.isContextProvider=function(_){return b(_)===o},Ot.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ot.isForwardRef=function(_){return b(_)===l},Ot.isFragment=function(_){return b(_)===r},Ot.isLazy=function(_){return b(_)===m},Ot.isMemo=function(_){return b(_)===d},Ot.isPortal=function(_){return b(_)===e},Ot.isProfiler=function(_){return b(_)===a},Ot.isStrictMode=function(_){return b(_)===n},Ot.isSuspense=function(_){return b(_)===h},Ot.isSuspenseList=function(_){return b(_)===p},Ot.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===a||_===n||_===h||_===p||_===g||typeof _=="object"&&_!==null&&(_.$$typeof===m||_.$$typeof===d||_.$$typeof===o||_.$$typeof===u||_.$$typeof===l||_.$$typeof===x||_.getModuleId!==void 0)},Ot.typeOf=b,Ot}var Nm;function YS(){return Nm||(Nm=1,ic.exports=XS()),ic.exports}var JS=YS(),ac,$m;function Ax(){if($m)return ac;$m=1;var t=lr(),e=fr(),r="[object Number]";function n(a){return typeof a=="number"||e(a)&&t(a)==r}return ac=n,ac}var oc,Dm;function QS(){if(Dm)return oc;Dm=1;var t=Ax();function e(r){return t(r)&&r!=+r}return oc=e,oc}var tA=QS();const ha=Ct(tA);var eA=Ax();const rA=Ct(eA);var ke=function(e){return e===0?0:e>0?1:-1},$r=function(e){return fa(e)&&e.indexOf("%")===e.length-1},tt=function(e){return rA(e)&&!ha(e)},Gt=function(e){return tt(e)||fa(e)},nA=0,rs=function(e){var r=++nA;return"".concat(e||"").concat(r)},Zr=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!tt(e)&&!fa(e))return n;var o;if($r(e)){var u=e.indexOf("%");o=r*parseFloat(e.slice(0,u))/100}else o=+e;return ha(o)&&(o=n),a&&o>r&&(o=r),o},yr=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},iA=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},pn=function(e,r){return tt(e)&&tt(r)?function(n){return e+n*(r-e)}:function(){return r}};function ih(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):Oe(n,e))===r})}function xn(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function ah(t){"@babel/helpers - typeof";return ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ah(t)}var aA=["viewBox","children"],oA=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Bm=["points","pathLength"],sc={svg:aA,polygon:Bm,polyline:Bm},Md=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],ro=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(K.isValidElement(e)&&(n=e.props),!Zn(n))return null;var a={};return Object.keys(n).forEach(function(o){Md.includes(o)&&(a[o]=r||function(u){return n[o](n,u)})}),a},sA=function(e,r,n){return function(a){return e(r,n,a),null}},no=function(e,r,n){if(!Zn(e)||ah(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(o){var u=e[o];Md.includes(o)&&typeof u=="function"&&(a||(a={}),a[o]=sA(u,r,n))}),a},uA=["children"],cA=["children"];function qm(t,e){if(t==null)return{};var r=lA(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function lA(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var zm={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ir=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Fm=null,uc=null,Cd=function t(e){if(e===Fm&&Array.isArray(uc))return uc;var r=[];return K.Children.forEach(e,function(n){At(n)||(JS.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),uc=r,Fm=e,r};function Re(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return ir(a)}):n=[ir(e)],Cd(t).forEach(function(a){var o=Oe(a,"type.displayName")||Oe(a,"type.name");n.indexOf(o)!==-1&&r.push(a)}),r}function ve(t,e){var r=Re(t,e);return r&&r[0]}var Wm=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!tt(n)||n<=0||!tt(a)||a<=0)},fA=["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"],hA=function(e){return e&&e.type&&fa(e.type)&&fA.indexOf(e.type)>=0},dA=function(e,r,n,a){var o,u=(o=sc==null?void 0:sc[a])!==null&&o!==void 0?o:[];return!gt(e)&&(a&&u.includes(r)||oA.includes(r))||n&&Md.includes(r)},Pt=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(K.isValidElement(e)&&(a=e.props),!Zn(a))return null;var o={};return Object.keys(a).forEach(function(u){var c;dA((c=a)===null||c===void 0?void 0:c[u],u,r,n)&&(o[u]=a[u])}),o},oh=function t(e,r){if(e===r)return!0;var n=K.Children.count(e);if(n!==K.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Um(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var o=e[a],u=r[a];if(Array.isArray(o)||Array.isArray(u)){if(!t(o,u))return!1}else if(!Um(o,u))return!1}return!0},Um=function(e,r){if(At(e)&&At(r))return!0;if(!At(e)&&!At(r)){var n=e.props||{},a=n.children,o=qm(n,uA),u=r.props||{},c=u.children,l=qm(u,cA);return a&&c?xn(o,l)&&oh(a,c):!a&&!c?xn(o,l):!1}return!1},Hm=function(e,r){var n=[],a={};return Cd(e).forEach(function(o,u){if(hA(o))n.push(o);else if(o){var c=ir(o.type),l=r[c]||{},h=l.handler,p=l.once;if(h&&(!p||!a[c])){var d=h(o,c,u);n.push(d),a[c]=!0}}}),n},pA=function(e){var r=e&&e.type;return r&&zm[r]?zm[r]:null},vA=function(e,r){return Cd(r).indexOf(e)},mA=["children","width","height","viewBox","className","style","title","desc"];function sh(){return sh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sh.apply(this,arguments)}function yA(t,e){if(t==null)return{};var r=gA(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function gA(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function uh(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,o=t.className,u=t.style,c=t.title,l=t.desc,h=yA(t,mA),p=a||{width:r,height:n,x:0,y:0},d=Tt("recharts-surface",o);return R.createElement("svg",sh({},Pt(h,!0,"svg"),{className:d,width:r,height:n,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),R.createElement("title",null,c),R.createElement("desc",null,l),e)}var _A=["children","className"];function ch(){return ch=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ch.apply(this,arguments)}function bA(t,e){if(t==null)return{};var r=xA(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xA(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var Jt=R.forwardRef(function(t,e){var r=t.children,n=t.className,a=bA(t,_A),o=Tt("recharts-layer",n);return R.createElement("g",ch({className:o},Pt(a,!0),{ref:e}),r)}),ar=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o]},cc,Zm;function wA(){if(Zm)return cc;Zm=1;function t(e,r,n){var a=-1,o=e.length;r<0&&(r=-r>o?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var u=Array(o);++a<o;)u[a]=e[a+r];return u}return cc=t,cc}var lc,Gm;function PA(){if(Gm)return lc;Gm=1;var t=wA();function e(r,n,a){var o=r.length;return a=a===void 0?o:a,!n&&a>=o?r:t(r,n,a)}return lc=e,lc}var fc,Km;function Tx(){if(Km)return fc;Km=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=e+r+n,o="\\ufe0e\\ufe0f",u="\\u200d",c=RegExp("["+u+t+a+o+"]");function l(h){return c.test(h)}return fc=l,fc}var hc,Vm;function OA(){if(Vm)return hc;Vm=1;function t(e){return e.split("")}return hc=t,hc}var dc,Xm;function SA(){if(Xm)return dc;Xm=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=e+r+n,o="\\ufe0e\\ufe0f",u="["+t+"]",c="["+a+"]",l="\\ud83c[\\udffb-\\udfff]",h="(?:"+c+"|"+l+")",p="[^"+t+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",x=h+"?",b="["+o+"]?",_="(?:"+g+"(?:"+[p,d,m].join("|")+")"+b+x+")*",A=b+x+_,T="(?:"+[p+c+"?",c,d,m,u].join("|")+")",O=RegExp(l+"(?="+l+")|"+T+A,"g");function E(w){return w.match(O)||[]}return dc=E,dc}var pc,Ym;function AA(){if(Ym)return pc;Ym=1;var t=OA(),e=Tx(),r=SA();function n(a){return e(a)?r(a):t(a)}return pc=n,pc}var vc,Jm;function TA(){if(Jm)return vc;Jm=1;var t=PA(),e=Tx(),r=AA(),n=Px();function a(o){return function(u){u=n(u);var c=e(u)?r(u):void 0,l=c?c[0]:u.charAt(0),h=c?t(c,1).join(""):u.slice(1);return l[o]()+h}}return vc=a,vc}var mc,Qm;function EA(){if(Qm)return mc;Qm=1;var t=TA(),e=t("toUpperCase");return mc=e,mc}var MA=EA();const ns=Ct(MA);function Lt(t){return function(){return t}}const Ex=Math.cos,io=Math.sin,Ne=Math.sqrt,ao=Math.PI,is=2*ao,lh=Math.PI,fh=2*lh,Rr=1e-6,CA=fh-Rr;function Mx(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function jA(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Mx;const r=10**e;return function(n){this._+=n[0];for(let a=1,o=n.length;a<o;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class IA{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Mx:jA(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,a){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(e,r,n,a,o,u){this._append`C${+e},${+r},${+n},${+a},${this._x1=+o},${this._y1=+u}`}arcTo(e,r,n,a,o){if(e=+e,r=+r,n=+n,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let u=this._x1,c=this._y1,l=n-e,h=a-r,p=u-e,d=c-r,m=p*p+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(m>Rr)if(!(Math.abs(d*l-h*p)>Rr)||!o)this._append`L${this._x1=e},${this._y1=r}`;else{let g=n-u,x=a-c,b=l*l+h*h,_=g*g+x*x,A=Math.sqrt(b),T=Math.sqrt(m),O=o*Math.tan((lh-Math.acos((b+m-_)/(2*A*T)))/2),E=O/T,w=O/A;Math.abs(E-1)>Rr&&this._append`L${e+E*p},${r+E*d}`,this._append`A${o},${o},0,0,${+(d*g>p*x)},${this._x1=e+w*l},${this._y1=r+w*h}`}}arc(e,r,n,a,o,u){if(e=+e,r=+r,n=+n,u=!!u,n<0)throw new Error(`negative radius: ${n}`);let c=n*Math.cos(a),l=n*Math.sin(a),h=e+c,p=r+l,d=1^u,m=u?a-o:o-a;this._x1===null?this._append`M${h},${p}`:(Math.abs(this._x1-h)>Rr||Math.abs(this._y1-p)>Rr)&&this._append`L${h},${p}`,n&&(m<0&&(m=m%fh+fh),m>CA?this._append`A${n},${n},0,1,${d},${e-c},${r-l}A${n},${n},0,1,${d},${this._x1=h},${this._y1=p}`:m>Rr&&this._append`A${n},${n},0,${+(m>=lh)},${d},${this._x1=e+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(e,r,n,a){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function jd(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new IA(e)}function Id(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Cx(t){this._context=t}Cx.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function as(t){return new Cx(t)}function jx(t){return t[0]}function Ix(t){return t[1]}function Lx(t,e){var r=Lt(!0),n=null,a=as,o=null,u=jd(c);t=typeof t=="function"?t:t===void 0?jx:Lt(t),e=typeof e=="function"?e:e===void 0?Ix:Lt(e);function c(l){var h,p=(l=Id(l)).length,d,m=!1,g;for(n==null&&(o=a(g=u())),h=0;h<=p;++h)!(h<p&&r(d=l[h],h,l))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+t(d,h,l),+e(d,h,l));if(g)return o=null,g+""||null}return c.x=function(l){return arguments.length?(t=typeof l=="function"?l:Lt(+l),c):t},c.y=function(l){return arguments.length?(e=typeof l=="function"?l:Lt(+l),c):e},c.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Lt(!!l),c):r},c.curve=function(l){return arguments.length?(a=l,n!=null&&(o=a(n)),c):a},c.context=function(l){return arguments.length?(l==null?n=o=null:o=a(n=l),c):n},c}function za(t,e,r){var n=null,a=Lt(!0),o=null,u=as,c=null,l=jd(h);t=typeof t=="function"?t:t===void 0?jx:Lt(+t),e=typeof e=="function"?e:Lt(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?Ix:Lt(+r);function h(d){var m,g,x,b=(d=Id(d)).length,_,A=!1,T,O=new Array(b),E=new Array(b);for(o==null&&(c=u(T=l())),m=0;m<=b;++m){if(!(m<b&&a(_=d[m],m,d))===A)if(A=!A)g=m,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),x=m-1;x>=g;--x)c.point(O[x],E[x]);c.lineEnd(),c.areaEnd()}A&&(O[m]=+t(_,m,d),E[m]=+e(_,m,d),c.point(n?+n(_,m,d):O[m],r?+r(_,m,d):E[m]))}if(T)return c=null,T+""||null}function p(){return Lx().defined(a).curve(u).context(o)}return h.x=function(d){return arguments.length?(t=typeof d=="function"?d:Lt(+d),n=null,h):t},h.x0=function(d){return arguments.length?(t=typeof d=="function"?d:Lt(+d),h):t},h.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Lt(+d),h):n},h.y=function(d){return arguments.length?(e=typeof d=="function"?d:Lt(+d),r=null,h):e},h.y0=function(d){return arguments.length?(e=typeof d=="function"?d:Lt(+d),h):e},h.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Lt(+d),h):r},h.lineX0=h.lineY0=function(){return p().x(t).y(e)},h.lineY1=function(){return p().x(t).y(r)},h.lineX1=function(){return p().x(n).y(e)},h.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Lt(!!d),h):a},h.curve=function(d){return arguments.length?(u=d,o!=null&&(c=u(o)),h):u},h.context=function(d){return arguments.length?(d==null?o=c=null:c=u(o=d),h):o},h}class kx{constructor(e,r){this._context=e,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(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function LA(t){return new kx(t,!0)}function kA(t){return new kx(t,!1)}const Ld={draw(t,e){const r=Ne(e/ao);t.moveTo(r,0),t.arc(0,0,r,0,is)}},RA={draw(t,e){const r=Ne(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Rx=Ne(1/3),NA=Rx*2,$A={draw(t,e){const r=Ne(e/NA),n=r*Rx;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},DA={draw(t,e){const r=Ne(e),n=-r/2;t.rect(n,n,r,r)}},BA=.8908130915292852,Nx=io(ao/10)/io(7*ao/10),qA=io(is/10)*Nx,zA=-Ex(is/10)*Nx,FA={draw(t,e){const r=Ne(e*BA),n=qA*r,a=zA*r;t.moveTo(0,-r),t.lineTo(n,a);for(let o=1;o<5;++o){const u=is*o/5,c=Ex(u),l=io(u);t.lineTo(l*r,-c*r),t.lineTo(c*n-l*a,l*n+c*a)}t.closePath()}},yc=Ne(3),WA={draw(t,e){const r=-Ne(e/(yc*3));t.moveTo(0,r*2),t.lineTo(-yc*r,-r),t.lineTo(yc*r,-r),t.closePath()}},xe=-.5,we=Ne(3)/2,hh=1/Ne(12),UA=(hh/2+1)*3,HA={draw(t,e){const r=Ne(e/UA),n=r/2,a=r*hh,o=n,u=r*hh+r,c=-o,l=u;t.moveTo(n,a),t.lineTo(o,u),t.lineTo(c,l),t.lineTo(xe*n-we*a,we*n+xe*a),t.lineTo(xe*o-we*u,we*o+xe*u),t.lineTo(xe*c-we*l,we*c+xe*l),t.lineTo(xe*n+we*a,xe*a-we*n),t.lineTo(xe*o+we*u,xe*u-we*o),t.lineTo(xe*c+we*l,xe*l-we*c),t.closePath()}};function ZA(t,e){let r=null,n=jd(a);t=typeof t=="function"?t:Lt(t||Ld),e=typeof e=="function"?e:Lt(e===void 0?64:+e);function a(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return a.type=function(o){return arguments.length?(t=typeof o=="function"?o:Lt(o),a):t},a.size=function(o){return arguments.length?(e=typeof o=="function"?o:Lt(+o),a):e},a.context=function(o){return arguments.length?(r=o??null,a):r},a}function oo(){}function so(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function $x(t){this._context=t}$x.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:so(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:so(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function GA(t){return new $x(t)}function Dx(t){this._context=t}Dx.prototype={areaStart:oo,areaEnd:oo,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:so(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function KA(t){return new Dx(t)}function Bx(t){this._context=t}Bx.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(t,e){switch(t=+t,e=+e,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:so(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function VA(t){return new Bx(t)}function qx(t){this._context=t}qx.prototype={areaStart:oo,areaEnd:oo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function XA(t){return new qx(t)}function ty(t){return t<0?-1:1}function ey(t,e,r){var n=t._x1-t._x0,a=e-t._x1,o=(t._y1-t._y0)/(n||a<0&&-0),u=(r-t._y1)/(a||n<0&&-0),c=(o*a+u*n)/(n+a);return(ty(o)+ty(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(c))||0}function ry(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function gc(t,e,r){var n=t._x0,a=t._y0,o=t._x1,u=t._y1,c=(o-n)/3;t._context.bezierCurveTo(n+c,a+c*e,o-c,u-c*r,o,u)}function uo(t){this._context=t}uo.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:gc(this,this._t0,ry(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,gc(this,ry(this,r=ey(this,t,e)),r);break;default:gc(this,this._t0,r=ey(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function zx(t){this._context=new Fx(t)}(zx.prototype=Object.create(uo.prototype)).point=function(t,e){uo.prototype.point.call(this,e,t)};function Fx(t){this._context=t}Fx.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,a,o){this._context.bezierCurveTo(e,t,n,r,o,a)}};function YA(t){return new uo(t)}function JA(t){return new zx(t)}function Wx(t){this._context=t}Wx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=ny(t),a=ny(e),o=0,u=1;u<r;++o,++u)this._context.bezierCurveTo(n[0][o],a[0][o],n[1][o],a[1][o],t[u],e[u]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function ny(t){var e,r=t.length-1,n,a=new Array(r),o=new Array(r),u=new Array(r);for(a[0]=0,o[0]=2,u[0]=t[0]+2*t[1],e=1;e<r-1;++e)a[e]=1,o[e]=4,u[e]=4*t[e]+2*t[e+1];for(a[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=a[e]/o[e-1],o[e]-=n,u[e]-=n*u[e-1];for(a[r-1]=u[r-1]/o[r-1],e=r-2;e>=0;--e)a[e]=(u[e]-a[e+1])/o[e];for(o[r-1]=(t[r]+a[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-a[e+1];return[a,o]}function QA(t){return new Wx(t)}function os(t,e){this._context=t,this._t=e}os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function tT(t){return new os(t,.5)}function eT(t){return new os(t,0)}function rT(t){return new os(t,1)}function On(t,e){if((u=t.length)>1)for(var r=1,n,a,o=t[e[0]],u,c=o.length;r<u;++r)for(a=o,o=t[e[r]],n=0;n<c;++n)o[n][1]+=o[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function dh(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function nT(t,e){return t[e]}function iT(t){const e=[];return e.key=t,e}function aT(){var t=Lt([]),e=dh,r=On,n=nT;function a(o){var u=Array.from(t.apply(this,arguments),iT),c,l=u.length,h=-1,p;for(const d of o)for(c=0,++h;c<l;++c)(u[c][h]=[0,+n(d,u[c].key,h,o)]).data=d;for(c=0,p=Id(e(u));c<l;++c)u[p[c]].index=c;return r(u,p),u}return a.keys=function(o){return arguments.length?(t=typeof o=="function"?o:Lt(Array.from(o)),a):t},a.value=function(o){return arguments.length?(n=typeof o=="function"?o:Lt(+o),a):n},a.order=function(o){return arguments.length?(e=o==null?dh:typeof o=="function"?o:Lt(Array.from(o)),a):e},a.offset=function(o){return arguments.length?(r=o??On,a):r},a}function oT(t,e){if((n=t.length)>0){for(var r,n,a=0,o=t[0].length,u;a<o;++a){for(u=r=0;r<n;++r)u+=t[r][a][1]||0;if(u)for(r=0;r<n;++r)t[r][a][1]/=u}On(t,e)}}function sT(t,e){if((a=t.length)>0){for(var r=0,n=t[e[0]],a,o=n.length;r<o;++r){for(var u=0,c=0;u<a;++u)c+=t[u][r][1]||0;n[r][1]+=n[r][0]=-c/2}On(t,e)}}function uT(t,e){if(!(!((u=t.length)>0)||!((o=(a=t[e[0]]).length)>0))){for(var r=0,n=1,a,o,u;n<o;++n){for(var c=0,l=0,h=0;c<u;++c){for(var p=t[e[c]],d=p[n][1]||0,m=p[n-1][1]||0,g=(d-m)/2,x=0;x<c;++x){var b=t[e[x]],_=b[n][1]||0,A=b[n-1][1]||0;g+=_-A}l+=d,h+=g*d}a[n-1][1]+=a[n-1][0]=r,l&&(r-=h/l)}a[n-1][1]+=a[n-1][0]=r,On(t,e)}}function Mi(t){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mi(t)}var cT=["type","size","sizeType"];function ph(){return ph=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ph.apply(this,arguments)}function iy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ay(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?iy(Object(r),!0).forEach(function(n){lT(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lT(t,e,r){return e=fT(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fT(t){var e=hT(t,"string");return Mi(e)=="symbol"?e:e+""}function hT(t,e){if(Mi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dT(t,e){if(t==null)return{};var r=pT(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pT(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var Ux={symbolCircle:Ld,symbolCross:RA,symbolDiamond:$A,symbolSquare:DA,symbolStar:FA,symbolTriangle:WA,symbolWye:HA},vT=Math.PI/180,mT=function(e){var r="symbol".concat(ns(e));return Ux[r]||Ld},yT=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*vT;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},gT=function(e,r){Ux["symbol".concat(ns(e))]=r},kd=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,o=a===void 0?64:a,u=e.sizeType,c=u===void 0?"area":u,l=dT(e,cT),h=ay(ay({},l),{},{type:n,size:o,sizeType:c}),p=function(){var _=mT(n),A=ZA().type(_).size(yT(o,c,n));return A()},d=h.className,m=h.cx,g=h.cy,x=Pt(h,!0);return m===+m&&g===+g&&o===+o?R.createElement("path",ph({},x,{className:Tt("recharts-symbols",d),transform:"translate(".concat(m,", ").concat(g,")"),d:p()})):null};kd.registerSymbol=gT;function Sn(t){"@babel/helpers - typeof";return Sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(t)}function vh(){return vh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vh.apply(this,arguments)}function oy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function _T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?oy(Object(r),!0).forEach(function(n){Ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function bT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zx(n.key),n)}}function wT(t,e,r){return e&&xT(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function PT(t,e,r){return e=co(e),OT(t,Hx()?Reflect.construct(e,r||[],co(t).constructor):e.apply(t,r))}function OT(t,e){if(e&&(Sn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ST(t)}function ST(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hx=function(){return!!t})()}function co(t){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},co(t)}function AT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mh(t,e)}function mh(t,e){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},mh(t,e)}function Ci(t,e,r){return e=Zx(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zx(t){var e=TT(t,"string");return Sn(e)=="symbol"?e:e+""}function TT(t,e){if(Sn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ce=32,Rd=function(t){function e(){return bT(this,e),PT(this,e,arguments)}return AT(e,t),wT(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,o=Ce/2,u=Ce/6,c=Ce/3,l=n.inactive?a:n.color;if(n.type==="plainline")return R.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:Ce,y2:o,className:"recharts-legend-icon"});if(n.type==="line")return R.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(c,`
A`).concat(u,",").concat(u,",0,1,1,").concat(2*c,",").concat(o,`
H`).concat(Ce,"M").concat(2*c,",").concat(o,`
A`).concat(u,",").concat(u,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return R.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Ce/8,"h").concat(Ce,"v").concat(Ce*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(R.isValidElement(n.legendIcon)){var h=_T({},n);return delete h.legendIcon,R.cloneElement(n.legendIcon,h)}return R.createElement(kd,{fill:l,cx:o,cy:o,size:Ce,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,o=a.payload,u=a.iconSize,c=a.layout,l=a.formatter,h=a.inactiveColor,p={x:0,y:0,width:Ce,height:Ce},d={display:c==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(g,x){var b=g.formatter||l,_=Tt(Ci(Ci({"recharts-legend-item":!0},"legend-item-".concat(x),!0),"inactive",g.inactive));if(g.type==="none")return null;var A=gt(g.value)?null:g.value;ar(!gt(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var T=g.inactive?h:g.color;return R.createElement("li",vh({className:_,style:d,key:"legend-item-".concat(x)},no(n.props,g,x)),R.createElement(uh,{width:u,height:u,viewBox:p,style:m},n.renderIcon(g)),R.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},b?b(A,g,x):A))})}},{key:"render",value:function(){var n=this.props,a=n.payload,o=n.layout,u=n.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:o==="horizontal"?u:"left"};return R.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])}(K.PureComponent);Ci(Rd,"displayName","Legend");Ci(Rd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var _c,sy;function ET(){if(sy)return _c;sy=1;var t=Qo();function e(){this.__data__=new t,this.size=0}return _c=e,_c}var bc,uy;function MT(){if(uy)return bc;uy=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return bc=t,bc}var xc,cy;function CT(){if(cy)return xc;cy=1;function t(e){return this.__data__.get(e)}return xc=t,xc}var wc,ly;function jT(){if(ly)return wc;ly=1;function t(e){return this.__data__.has(e)}return wc=t,wc}var Pc,fy;function IT(){if(fy)return Pc;fy=1;var t=Qo(),e=Sd(),r=Ad(),n=200;function a(o,u){var c=this.__data__;if(c instanceof t){var l=c.__data__;if(!e||l.length<n-1)return l.push([o,u]),this.size=++c.size,this;c=this.__data__=new r(l)}return c.set(o,u),this.size=c.size,this}return Pc=a,Pc}var Oc,hy;function Gx(){if(hy)return Oc;hy=1;var t=Qo(),e=ET(),r=MT(),n=CT(),a=jT(),o=IT();function u(c){var l=this.__data__=new t(c);this.size=l.size}return u.prototype.clear=e,u.prototype.delete=r,u.prototype.get=n,u.prototype.has=a,u.prototype.set=o,Oc=u,Oc}var Sc,dy;function LT(){if(dy)return Sc;dy=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return Sc=e,Sc}var Ac,py;function kT(){if(py)return Ac;py=1;function t(e){return this.__data__.has(e)}return Ac=t,Ac}var Tc,vy;function Kx(){if(vy)return Tc;vy=1;var t=Ad(),e=LT(),r=kT();function n(a){var o=-1,u=a==null?0:a.length;for(this.__data__=new t;++o<u;)this.add(a[o])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Tc=n,Tc}var Ec,my;function Vx(){if(my)return Ec;my=1;function t(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}return Ec=t,Ec}var Mc,yy;function Xx(){if(yy)return Mc;yy=1;function t(e,r){return e.has(r)}return Mc=t,Mc}var Cc,gy;function Yx(){if(gy)return Cc;gy=1;var t=Kx(),e=Vx(),r=Xx(),n=1,a=2;function o(u,c,l,h,p,d){var m=l&n,g=u.length,x=c.length;if(g!=x&&!(m&&x>g))return!1;var b=d.get(u),_=d.get(c);if(b&&_)return b==c&&_==u;var A=-1,T=!0,O=l&a?new t:void 0;for(d.set(u,c),d.set(c,u);++A<g;){var E=u[A],w=c[A];if(h)var S=m?h(w,E,A,c,u,d):h(E,w,A,u,c,d);if(S!==void 0){if(S)continue;T=!1;break}if(O){if(!e(c,function(M,I){if(!r(O,I)&&(E===M||p(E,M,l,h,d)))return O.push(I)})){T=!1;break}}else if(!(E===w||p(E,w,l,h,d))){T=!1;break}}return d.delete(u),d.delete(c),T}return Cc=o,Cc}var jc,_y;function RT(){if(_y)return jc;_y=1;var t=Ke(),e=t.Uint8Array;return jc=e,jc}var Ic,by;function NT(){if(by)return Ic;by=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(a,o){n[++r]=[o,a]}),n}return Ic=t,Ic}var Lc,xy;function Nd(){if(xy)return Lc;xy=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(a){n[++r]=a}),n}return Lc=t,Lc}var kc,wy;function $T(){if(wy)return kc;wy=1;var t=la(),e=RT(),r=Od(),n=Yx(),a=NT(),o=Nd(),u=1,c=2,l="[object Boolean]",h="[object Date]",p="[object Error]",d="[object Map]",m="[object Number]",g="[object RegExp]",x="[object Set]",b="[object String]",_="[object Symbol]",A="[object ArrayBuffer]",T="[object DataView]",O=t?t.prototype:void 0,E=O?O.valueOf:void 0;function w(S,M,I,k,$,C,N){switch(I){case T:if(S.byteLength!=M.byteLength||S.byteOffset!=M.byteOffset)return!1;S=S.buffer,M=M.buffer;case A:return!(S.byteLength!=M.byteLength||!C(new e(S),new e(M)));case l:case h:case m:return r(+S,+M);case p:return S.name==M.name&&S.message==M.message;case g:case b:return S==M+"";case d:var q=a;case x:var F=k&u;if(q||(q=o),S.size!=M.size&&!F)return!1;var W=N.get(S);if(W)return W==M;k|=c,N.set(S,M);var Z=n(q(S),q(M),k,$,C,N);return N.delete(S),Z;case _:if(E)return E.call(S)==E.call(M)}return!1}return kc=w,kc}var Rc,Py;function Jx(){if(Py)return Rc;Py=1;function t(e,r){for(var n=-1,a=r.length,o=e.length;++n<a;)e[o+n]=r[n];return e}return Rc=t,Rc}var Nc,Oy;function DT(){if(Oy)return Nc;Oy=1;var t=Jx(),e=he();function r(n,a,o){var u=a(n);return e(n)?u:t(u,o(n))}return Nc=r,Nc}var $c,Sy;function BT(){if(Sy)return $c;Sy=1;function t(e,r){for(var n=-1,a=e==null?0:e.length,o=0,u=[];++n<a;){var c=e[n];r(c,n,e)&&(u[o++]=c)}return u}return $c=t,$c}var Dc,Ay;function qT(){if(Ay)return Dc;Ay=1;function t(){return[]}return Dc=t,Dc}var Bc,Ty;function zT(){if(Ty)return Bc;Ty=1;var t=BT(),e=qT(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(u){return u==null?[]:(u=Object(u),t(a(u),function(c){return n.call(u,c)}))}:e;return Bc=o,Bc}var qc,Ey;function FT(){if(Ey)return qc;Ey=1;function t(e,r){for(var n=-1,a=Array(e);++n<e;)a[n]=r(n);return a}return qc=t,qc}var zc,My;function WT(){if(My)return zc;My=1;var t=lr(),e=fr(),r="[object Arguments]";function n(a){return e(a)&&t(a)==r}return zc=n,zc}var Fc,Cy;function $d(){if(Cy)return Fc;Cy=1;var t=WT(),e=fr(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(u){return e(u)&&n.call(u,"callee")&&!a.call(u,"callee")};return Fc=o,Fc}var wi={exports:{}},Wc,jy;function UT(){if(jy)return Wc;jy=1;function t(){return!1}return Wc=t,Wc}wi.exports;var Iy;function Qx(){return Iy||(Iy=1,function(t,e){var r=Ke(),n=UT(),a=e&&!e.nodeType&&e,o=a&&!0&&t&&!t.nodeType&&t,u=o&&o.exports===a,c=u?r.Buffer:void 0,l=c?c.isBuffer:void 0,h=l||n;t.exports=h}(wi,wi.exports)),wi.exports}var Uc,Ly;function Dd(){if(Ly)return Uc;Ly=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,a){var o=typeof n;return a=a??t,!!a&&(o=="number"||o!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<a}return Uc=r,Uc}var Hc,ky;function Bd(){if(ky)return Hc;ky=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Hc=e,Hc}var Zc,Ry;function HT(){if(Ry)return Zc;Ry=1;var t=lr(),e=Bd(),r=fr(),n="[object Arguments]",a="[object Array]",o="[object Boolean]",u="[object Date]",c="[object Error]",l="[object Function]",h="[object Map]",p="[object Number]",d="[object Object]",m="[object RegExp]",g="[object Set]",x="[object String]",b="[object WeakMap]",_="[object ArrayBuffer]",A="[object DataView]",T="[object Float32Array]",O="[object Float64Array]",E="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",M="[object Uint8Array]",I="[object Uint8ClampedArray]",k="[object Uint16Array]",$="[object Uint32Array]",C={};C[T]=C[O]=C[E]=C[w]=C[S]=C[M]=C[I]=C[k]=C[$]=!0,C[n]=C[a]=C[_]=C[o]=C[A]=C[u]=C[c]=C[l]=C[h]=C[p]=C[d]=C[m]=C[g]=C[x]=C[b]=!1;function N(q){return r(q)&&e(q.length)&&!!C[t(q)]}return Zc=N,Zc}var Gc,Ny;function tw(){if(Ny)return Gc;Ny=1;function t(e){return function(r){return e(r)}}return Gc=t,Gc}var Pi={exports:{}};Pi.exports;var $y;function ZT(){return $y||($y=1,function(t,e){var r=bx(),n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===n,u=o&&r.process,c=function(){try{var l=a&&a.require&&a.require("util").types;return l||u&&u.binding&&u.binding("util")}catch{}}();t.exports=c}(Pi,Pi.exports)),Pi.exports}var Kc,Dy;function ew(){if(Dy)return Kc;Dy=1;var t=HT(),e=tw(),r=ZT(),n=r&&r.isTypedArray,a=n?e(n):t;return Kc=a,Kc}var Vc,By;function GT(){if(By)return Vc;By=1;var t=FT(),e=$d(),r=he(),n=Qx(),a=Dd(),o=ew(),u=Object.prototype,c=u.hasOwnProperty;function l(h,p){var d=r(h),m=!d&&e(h),g=!d&&!m&&n(h),x=!d&&!m&&!g&&o(h),b=d||m||g||x,_=b?t(h.length,String):[],A=_.length;for(var T in h)(p||c.call(h,T))&&!(b&&(T=="length"||g&&(T=="offset"||T=="parent")||x&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||a(T,A)))&&_.push(T);return _}return Vc=l,Vc}var Xc,qy;function KT(){if(qy)return Xc;qy=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||t;return r===a}return Xc=e,Xc}var Yc,zy;function rw(){if(zy)return Yc;zy=1;function t(e,r){return function(n){return e(r(n))}}return Yc=t,Yc}var Jc,Fy;function VT(){if(Fy)return Jc;Fy=1;var t=rw(),e=t(Object.keys,Object);return Jc=e,Jc}var Qc,Wy;function XT(){if(Wy)return Qc;Wy=1;var t=KT(),e=VT(),r=Object.prototype,n=r.hasOwnProperty;function a(o){if(!t(o))return e(o);var u=[];for(var c in Object(o))n.call(o,c)&&c!="constructor"&&u.push(c);return u}return Qc=a,Qc}var tl,Uy;function da(){if(Uy)return tl;Uy=1;var t=Pd(),e=Bd();function r(n){return n!=null&&e(n.length)&&!t(n)}return tl=r,tl}var el,Hy;function ss(){if(Hy)return el;Hy=1;var t=GT(),e=XT(),r=da();function n(a){return r(a)?t(a):e(a)}return el=n,el}var rl,Zy;function YT(){if(Zy)return rl;Zy=1;var t=DT(),e=zT(),r=ss();function n(a){return t(a,r,e)}return rl=n,rl}var nl,Gy;function JT(){if(Gy)return nl;Gy=1;var t=YT(),e=1,r=Object.prototype,n=r.hasOwnProperty;function a(o,u,c,l,h,p){var d=c&e,m=t(o),g=m.length,x=t(u),b=x.length;if(g!=b&&!d)return!1;for(var _=g;_--;){var A=m[_];if(!(d?A in u:n.call(u,A)))return!1}var T=p.get(o),O=p.get(u);if(T&&O)return T==u&&O==o;var E=!0;p.set(o,u),p.set(u,o);for(var w=d;++_<g;){A=m[_];var S=o[A],M=u[A];if(l)var I=d?l(M,S,A,u,o,p):l(S,M,A,o,u,p);if(!(I===void 0?S===M||h(S,M,c,l,p):I)){E=!1;break}w||(w=A=="constructor")}if(E&&!w){var k=o.constructor,$=u.constructor;k!=$&&"constructor"in o&&"constructor"in u&&!(typeof k=="function"&&k instanceof k&&typeof $=="function"&&$ instanceof $)&&(E=!1)}return p.delete(o),p.delete(u),E}return nl=a,nl}var il,Ky;function QT(){if(Ky)return il;Ky=1;var t=Xr(),e=Ke(),r=t(e,"DataView");return il=r,il}var al,Vy;function tE(){if(Vy)return al;Vy=1;var t=Xr(),e=Ke(),r=t(e,"Promise");return al=r,al}var ol,Xy;function nw(){if(Xy)return ol;Xy=1;var t=Xr(),e=Ke(),r=t(e,"Set");return ol=r,ol}var sl,Yy;function eE(){if(Yy)return sl;Yy=1;var t=Xr(),e=Ke(),r=t(e,"WeakMap");return sl=r,sl}var ul,Jy;function rE(){if(Jy)return ul;Jy=1;var t=QT(),e=Sd(),r=tE(),n=nw(),a=eE(),o=lr(),u=xx(),c="[object Map]",l="[object Object]",h="[object Promise]",p="[object Set]",d="[object WeakMap]",m="[object DataView]",g=u(t),x=u(e),b=u(r),_=u(n),A=u(a),T=o;return(t&&T(new t(new ArrayBuffer(1)))!=m||e&&T(new e)!=c||r&&T(r.resolve())!=h||n&&T(new n)!=p||a&&T(new a)!=d)&&(T=function(O){var E=o(O),w=E==l?O.constructor:void 0,S=w?u(w):"";if(S)switch(S){case g:return m;case x:return c;case b:return h;case _:return p;case A:return d}return E}),ul=T,ul}var cl,Qy;function nE(){if(Qy)return cl;Qy=1;var t=Gx(),e=Yx(),r=$T(),n=JT(),a=rE(),o=he(),u=Qx(),c=ew(),l=1,h="[object Arguments]",p="[object Array]",d="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function x(b,_,A,T,O,E){var w=o(b),S=o(_),M=w?p:a(b),I=S?p:a(_);M=M==h?d:M,I=I==h?d:I;var k=M==d,$=I==d,C=M==I;if(C&&u(b)){if(!u(_))return!1;w=!0,k=!1}if(C&&!k)return E||(E=new t),w||c(b)?e(b,_,A,T,O,E):r(b,_,M,A,T,O,E);if(!(A&l)){var N=k&&g.call(b,"__wrapped__"),q=$&&g.call(_,"__wrapped__");if(N||q){var F=N?b.value():b,W=q?_.value():_;return E||(E=new t),O(F,W,A,T,E)}}return C?(E||(E=new t),n(b,_,A,T,O,E)):!1}return cl=x,cl}var ll,tg;function qd(){if(tg)return ll;tg=1;var t=nE(),e=fr();function r(n,a,o,u,c){return n===a?!0:n==null||a==null||!e(n)&&!e(a)?n!==n&&a!==a:t(n,a,o,u,r,c)}return ll=r,ll}var fl,eg;function iE(){if(eg)return fl;eg=1;var t=Gx(),e=qd(),r=1,n=2;function a(o,u,c,l){var h=c.length,p=h,d=!l;if(o==null)return!p;for(o=Object(o);h--;){var m=c[h];if(d&&m[2]?m[1]!==o[m[0]]:!(m[0]in o))return!1}for(;++h<p;){m=c[h];var g=m[0],x=o[g],b=m[1];if(d&&m[2]){if(x===void 0&&!(g in o))return!1}else{var _=new t;if(l)var A=l(x,b,g,o,u,_);if(!(A===void 0?e(b,x,r|n,l,_):A))return!1}}return!0}return fl=a,fl}var hl,rg;function iw(){if(rg)return hl;rg=1;var t=xr();function e(r){return r===r&&!t(r)}return hl=e,hl}var dl,ng;function aE(){if(ng)return dl;ng=1;var t=iw(),e=ss();function r(n){for(var a=e(n),o=a.length;o--;){var u=a[o],c=n[u];a[o]=[u,c,t(c)]}return a}return dl=r,dl}var pl,ig;function aw(){if(ig)return pl;ig=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return pl=t,pl}var vl,ag;function oE(){if(ag)return vl;ag=1;var t=iE(),e=aE(),r=aw();function n(a){var o=e(a);return o.length==1&&o[0][2]?r(o[0][0],o[0][1]):function(u){return u===a||t(u,a,o)}}return vl=n,vl}var ml,og;function sE(){if(og)return ml;og=1;function t(e,r){return e!=null&&r in Object(e)}return ml=t,ml}var yl,sg;function uE(){if(sg)return yl;sg=1;var t=Ox(),e=$d(),r=he(),n=Dd(),a=Bd(),o=es();function u(c,l,h){l=t(l,c);for(var p=-1,d=l.length,m=!1;++p<d;){var g=o(l[p]);if(!(m=c!=null&&h(c,g)))break;c=c[g]}return m||++p!=d?m:(d=c==null?0:c.length,!!d&&a(d)&&n(g,d)&&(r(c)||e(c)))}return yl=u,yl}var gl,ug;function cE(){if(ug)return gl;ug=1;var t=sE(),e=uE();function r(n,a){return n!=null&&e(n,a,t)}return gl=r,gl}var _l,cg;function lE(){if(cg)return _l;cg=1;var t=qd(),e=Sx(),r=cE(),n=wd(),a=iw(),o=aw(),u=es(),c=1,l=2;function h(p,d){return n(p)&&a(d)?o(u(p),d):function(m){var g=e(m,p);return g===void 0&&g===d?r(m,p):t(d,g,c|l)}}return _l=h,_l}var bl,lg;function Gn(){if(lg)return bl;lg=1;function t(e){return e}return bl=t,bl}var xl,fg;function fE(){if(fg)return xl;fg=1;function t(e){return function(r){return r==null?void 0:r[e]}}return xl=t,xl}var wl,hg;function hE(){if(hg)return wl;hg=1;var t=Ed();function e(r){return function(n){return t(n,r)}}return wl=e,wl}var Pl,dg;function dE(){if(dg)return Pl;dg=1;var t=fE(),e=hE(),r=wd(),n=es();function a(o){return r(o)?t(n(o)):e(o)}return Pl=a,Pl}var Ol,pg;function wr(){if(pg)return Ol;pg=1;var t=oE(),e=lE(),r=Gn(),n=he(),a=dE();function o(u){return typeof u=="function"?u:u==null?r:typeof u=="object"?n(u)?e(u[0],u[1]):t(u):a(u)}return Ol=o,Ol}var Sl,vg;function ow(){if(vg)return Sl;vg=1;function t(e,r,n,a){for(var o=e.length,u=n+(a?1:-1);a?u--:++u<o;)if(r(e[u],u,e))return u;return-1}return Sl=t,Sl}var Al,mg;function pE(){if(mg)return Al;mg=1;function t(e){return e!==e}return Al=t,Al}var Tl,yg;function vE(){if(yg)return Tl;yg=1;function t(e,r,n){for(var a=n-1,o=e.length;++a<o;)if(e[a]===r)return a;return-1}return Tl=t,Tl}var El,gg;function mE(){if(gg)return El;gg=1;var t=ow(),e=pE(),r=vE();function n(a,o,u){return o===o?r(a,o,u):t(a,e,u)}return El=n,El}var Ml,_g;function yE(){if(_g)return Ml;_g=1;var t=mE();function e(r,n){var a=r==null?0:r.length;return!!a&&t(r,n,0)>-1}return Ml=e,Ml}var Cl,bg;function gE(){if(bg)return Cl;bg=1;function t(e,r,n){for(var a=-1,o=e==null?0:e.length;++a<o;)if(n(r,e[a]))return!0;return!1}return Cl=t,Cl}var jl,xg;function _E(){if(xg)return jl;xg=1;function t(){}return jl=t,jl}var Il,wg;function bE(){if(wg)return Il;wg=1;var t=nw(),e=_E(),r=Nd(),n=1/0,a=t&&1/r(new t([,-0]))[1]==n?function(o){return new t(o)}:e;return Il=a,Il}var Ll,Pg;function xE(){if(Pg)return Ll;Pg=1;var t=Kx(),e=yE(),r=gE(),n=Xx(),a=bE(),o=Nd(),u=200;function c(l,h,p){var d=-1,m=e,g=l.length,x=!0,b=[],_=b;if(p)x=!1,m=r;else if(g>=u){var A=h?null:a(l);if(A)return o(A);x=!1,m=n,_=new t}else _=h?[]:b;t:for(;++d<g;){var T=l[d],O=h?h(T):T;if(T=p||T!==0?T:0,x&&O===O){for(var E=_.length;E--;)if(_[E]===O)continue t;h&&_.push(O),b.push(T)}else m(_,O,p)||(_!==b&&_.push(O),b.push(T))}return b}return Ll=c,Ll}var kl,Og;function wE(){if(Og)return kl;Og=1;var t=wr(),e=xE();function r(n,a){return n&&n.length?e(n,t(a,2)):[]}return kl=r,kl}var PE=wE();const Sg=Ct(PE);function sw(t,e,r){return e===!0?Sg(t,r):gt(e)?Sg(t,e):t}function An(t){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(t)}var OE=["ref"];function Ag(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function tr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ag(Object(r),!0).forEach(function(n){us(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ag(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cw(n.key),n)}}function AE(t,e,r){return e&&Tg(t.prototype,e),r&&Tg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function TE(t,e,r){return e=lo(e),EE(t,uw()?Reflect.construct(e,r||[],lo(t).constructor):e.apply(t,r))}function EE(t,e){if(e&&(An(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ME(t)}function ME(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uw=function(){return!!t})()}function lo(t){return lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lo(t)}function CE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yh(t,e)}function yh(t,e){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},yh(t,e)}function us(t,e,r){return e=cw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cw(t){var e=jE(t,"string");return An(e)=="symbol"?e:e+""}function jE(t,e){if(An(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function IE(t,e){if(t==null)return{};var r=LE(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function LE(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function kE(t){return t.value}function RE(t,e){if(R.isValidElement(t))return R.cloneElement(t,e);if(typeof t=="function")return R.createElement(t,e);e.ref;var r=IE(e,OE);return R.createElement(Rd,r)}var Eg=1,Fe=function(t){function e(){var r;SE(this,e);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return r=TE(this,e,[].concat(a)),us(r,"lastBoundingBox",{width:-1,height:-1}),r}return CE(e,t),AE(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>Eg||Math.abs(a.height-this.lastBoundingBox.height)>Eg)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(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?tr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,o=a.layout,u=a.align,c=a.verticalAlign,l=a.margin,h=a.chartWidth,p=a.chartHeight,d,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(u==="center"&&o==="vertical"){var g=this.getBBoxSnapshot();d={left:((h||0)-g.width)/2}}else d=u==="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(c==="middle"){var x=this.getBBoxSnapshot();m={top:((p||0)-x.height)/2}}else m=c==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return tr(tr({},d),m)}},{key:"render",value:function(){var n=this,a=this.props,o=a.content,u=a.width,c=a.height,l=a.wrapperStyle,h=a.payloadUniqBy,p=a.payload,d=tr(tr({position:"absolute",width:u||"auto",height:c||"auto"},this.getDefaultPosition(l)),l);return R.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(g){n.wrapperNode=g}},RE(o,tr(tr({},this.props),{},{payload:sw(p,h,kE)})))}}],[{key:"getWithHeight",value:function(n,a){var o=tr(tr({},this.defaultProps),n.props),u=o.layout;return u==="vertical"&&tt(n.props.height)?{height:n.props.height}:u==="horizontal"?{width:n.props.width||a}:null}}])}(K.PureComponent);us(Fe,"displayName","Legend");us(Fe,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Rl,Mg;function NE(){if(Mg)return Rl;Mg=1;var t=la(),e=$d(),r=he(),n=t?t.isConcatSpreadable:void 0;function a(o){return r(o)||e(o)||!!(n&&o&&o[n])}return Rl=a,Rl}var Nl,Cg;function lw(){if(Cg)return Nl;Cg=1;var t=Jx(),e=NE();function r(n,a,o,u,c){var l=-1,h=n.length;for(o||(o=e),c||(c=[]);++l<h;){var p=n[l];a>0&&o(p)?a>1?r(p,a-1,o,u,c):t(c,p):u||(c[c.length]=p)}return c}return Nl=r,Nl}var $l,jg;function $E(){if(jg)return $l;jg=1;function t(e){return function(r,n,a){for(var o=-1,u=Object(r),c=a(r),l=c.length;l--;){var h=c[e?l:++o];if(n(u[h],h,u)===!1)break}return r}}return $l=t,$l}var Dl,Ig;function DE(){if(Ig)return Dl;Ig=1;var t=$E(),e=t();return Dl=e,Dl}var Bl,Lg;function fw(){if(Lg)return Bl;Lg=1;var t=DE(),e=ss();function r(n,a){return n&&t(n,a,e)}return Bl=r,Bl}var ql,kg;function BE(){if(kg)return ql;kg=1;var t=da();function e(r,n){return function(a,o){if(a==null)return a;if(!t(a))return r(a,o);for(var u=a.length,c=n?u:-1,l=Object(a);(n?c--:++c<u)&&o(l[c],c,l)!==!1;);return a}}return ql=e,ql}var zl,Rg;function zd(){if(Rg)return zl;Rg=1;var t=fw(),e=BE(),r=e(t);return zl=r,zl}var Fl,Ng;function hw(){if(Ng)return Fl;Ng=1;var t=zd(),e=da();function r(n,a){var o=-1,u=e(n)?Array(n.length):[];return t(n,function(c,l,h){u[++o]=a(c,l,h)}),u}return Fl=r,Fl}var Wl,$g;function qE(){if($g)return Wl;$g=1;function t(e,r){var n=e.length;for(e.sort(r);n--;)e[n]=e[n].value;return e}return Wl=t,Wl}var Ul,Dg;function zE(){if(Dg)return Ul;Dg=1;var t=Hn();function e(r,n){if(r!==n){var a=r!==void 0,o=r===null,u=r===r,c=t(r),l=n!==void 0,h=n===null,p=n===n,d=t(n);if(!h&&!d&&!c&&r>n||c&&l&&p&&!h&&!d||o&&l&&p||!a&&p||!u)return 1;if(!o&&!c&&!d&&r<n||d&&a&&u&&!o&&!c||h&&a&&u||!l&&u||!p)return-1}return 0}return Ul=e,Ul}var Hl,Bg;function FE(){if(Bg)return Hl;Bg=1;var t=zE();function e(r,n,a){for(var o=-1,u=r.criteria,c=n.criteria,l=u.length,h=a.length;++o<l;){var p=t(u[o],c[o]);if(p){if(o>=h)return p;var d=a[o];return p*(d=="desc"?-1:1)}}return r.index-n.index}return Hl=e,Hl}var Zl,qg;function WE(){if(qg)return Zl;qg=1;var t=Td(),e=Ed(),r=wr(),n=hw(),a=qE(),o=tw(),u=FE(),c=Gn(),l=he();function h(p,d,m){d.length?d=t(d,function(b){return l(b)?function(_){return e(_,b.length===1?b[0]:b)}:b}):d=[c];var g=-1;d=t(d,o(r));var x=n(p,function(b,_,A){var T=t(d,function(O){return O(b)});return{criteria:T,index:++g,value:b}});return a(x,function(b,_){return u(b,_,m)})}return Zl=h,Zl}var Gl,zg;function UE(){if(zg)return Gl;zg=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return Gl=t,Gl}var Kl,Fg;function HE(){if(Fg)return Kl;Fg=1;var t=UE(),e=Math.max;function r(n,a,o){return a=e(a===void 0?n.length-1:a,0),function(){for(var u=arguments,c=-1,l=e(u.length-a,0),h=Array(l);++c<l;)h[c]=u[a+c];c=-1;for(var p=Array(a+1);++c<a;)p[c]=u[c];return p[a]=o(h),t(n,this,p)}}return Kl=r,Kl}var Vl,Wg;function ZE(){if(Wg)return Vl;Wg=1;function t(e){return function(){return e}}return Vl=t,Vl}var Xl,Ug;function dw(){if(Ug)return Xl;Ug=1;var t=Xr(),e=function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Xl=e,Xl}var Yl,Hg;function GE(){if(Hg)return Yl;Hg=1;var t=ZE(),e=dw(),r=Gn(),n=e?function(a,o){return e(a,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:r;return Yl=n,Yl}var Jl,Zg;function KE(){if(Zg)return Jl;Zg=1;var t=800,e=16,r=Date.now;function n(a){var o=0,u=0;return function(){var c=r(),l=e-(c-u);if(u=c,l>0){if(++o>=t)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return Jl=n,Jl}var Ql,Gg;function VE(){if(Gg)return Ql;Gg=1;var t=GE(),e=KE(),r=e(t);return Ql=r,Ql}var tf,Kg;function XE(){if(Kg)return tf;Kg=1;var t=Gn(),e=HE(),r=VE();function n(a,o){return r(e(a,o,t),a+"")}return tf=n,tf}var ef,Vg;function cs(){if(Vg)return ef;Vg=1;var t=Od(),e=da(),r=Dd(),n=xr();function a(o,u,c){if(!n(c))return!1;var l=typeof u;return(l=="number"?e(c)&&r(u,c.length):l=="string"&&u in c)?t(c[u],o):!1}return ef=a,ef}var rf,Xg;function YE(){if(Xg)return rf;Xg=1;var t=lw(),e=WE(),r=XE(),n=cs(),a=r(function(o,u){if(o==null)return[];var c=u.length;return c>1&&n(o,u[0],u[1])?u=[]:c>2&&n(u[0],u[1],u[2])&&(u=[u[0]]),e(o,t(u,1),[])});return rf=a,rf}var JE=YE();const Fd=Ct(JE);function ji(t){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji(t)}function gh(){return gh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gh.apply(this,arguments)}function QE(t,e){return nM(t)||rM(t,e)||eM(t,e)||tM()}function tM(){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 eM(t,e){if(t){if(typeof t=="string")return Yg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yg(t,e)}}function Yg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function rM(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function nM(t){if(Array.isArray(t))return t}function Jg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function nf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jg(Object(r),!0).forEach(function(n){iM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function iM(t,e,r){return e=aM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aM(t){var e=oM(t,"string");return ji(e)=="symbol"?e:e+""}function oM(t,e){if(ji(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ji(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sM(t){return Array.isArray(t)&&Gt(t[0])&&Gt(t[1])?t.join(" ~ "):t}var uM=function(e){var r=e.separator,n=r===void 0?" : ":r,a=e.contentStyle,o=a===void 0?{}:a,u=e.itemStyle,c=u===void 0?{}:u,l=e.labelStyle,h=l===void 0?{}:l,p=e.payload,d=e.formatter,m=e.itemSorter,g=e.wrapperClassName,x=e.labelClassName,b=e.label,_=e.labelFormatter,A=e.accessibilityLayer,T=A===void 0?!1:A,O=function(){if(p&&p.length){var N={padding:0,margin:0},q=(m?Fd(p,m):p).map(function(F,W){if(F.type==="none")return null;var Z=nf({display:"block",paddingTop:4,paddingBottom:4,color:F.color||"#000"},c),X=F.formatter||d||sM,H=F.value,Q=F.name,Y=H,et=Q;if(X&&Y!=null&&et!=null){var J=X(H,Q,F,W,p);if(Array.isArray(J)){var at=QE(J,2);Y=at[0],et=at[1]}else Y=J}return R.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:Z},Gt(et)?R.createElement("span",{className:"recharts-tooltip-item-name"},et):null,Gt(et)?R.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,R.createElement("span",{className:"recharts-tooltip-item-value"},Y),R.createElement("span",{className:"recharts-tooltip-item-unit"},F.unit||""))});return R.createElement("ul",{className:"recharts-tooltip-item-list",style:N},q)}return null},E=nf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),w=nf({margin:0},h),S=!At(b),M=S?b:"",I=Tt("recharts-default-tooltip",g),k=Tt("recharts-tooltip-label",x);S&&_&&p!==void 0&&p!==null&&(M=_(b,p));var $=T?{role:"status","aria-live":"assertive"}:{};return R.createElement("div",gh({className:I,style:E},$),R.createElement("p",{className:k,style:w},R.isValidElement(M)?M:"".concat(M)),O())};function Ii(t){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(t)}function Fa(t,e,r){return e=cM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cM(t){var e=lM(t,"string");return Ii(e)=="symbol"?e:e+""}function lM(t,e){if(Ii(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var hi="recharts-tooltip-wrapper",fM={visibility:"hidden"};function hM(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return Tt(hi,Fa(Fa(Fa(Fa({},"".concat(hi,"-right"),tt(r)&&e&&tt(e.x)&&r>=e.x),"".concat(hi,"-left"),tt(r)&&e&&tt(e.x)&&r<e.x),"".concat(hi,"-bottom"),tt(n)&&e&&tt(e.y)&&n>=e.y),"".concat(hi,"-top"),tt(n)&&e&&tt(e.y)&&n<e.y))}function Qg(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,a=t.offsetTopLeft,o=t.position,u=t.reverseDirection,c=t.tooltipDimension,l=t.viewBox,h=t.viewBoxDimension;if(o&&tt(o[n]))return o[n];var p=r[n]-c-a,d=r[n]+a;if(e[n])return u[n]?p:d;if(u[n]){var m=p,g=l[n];return m<g?Math.max(d,l[n]):Math.max(p,l[n])}var x=d+c,b=l[n]+h;return x>b?Math.max(p,l[n]):Math.max(d,l[n])}function dM(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function pM(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.offsetTopLeft,a=t.position,o=t.reverseDirection,u=t.tooltipBox,c=t.useTranslate3d,l=t.viewBox,h,p,d;return u.height>0&&u.width>0&&r?(p=Qg({allowEscapeViewBox:e,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:o,tooltipDimension:u.width,viewBox:l,viewBoxDimension:l.width}),d=Qg({allowEscapeViewBox:e,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:o,tooltipDimension:u.height,viewBox:l,viewBoxDimension:l.height}),h=dM({translateX:p,translateY:d,useTranslate3d:c})):h=fM,{cssProperties:h,cssClasses:hM({translateX:p,translateY:d,coordinate:r})}}function Tn(t){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(t)}function t_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function e_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?t_(Object(r),!0).forEach(function(n){bh(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):t_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vw(n.key),n)}}function yM(t,e,r){return e&&mM(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function gM(t,e,r){return e=fo(e),_M(t,pw()?Reflect.construct(e,r||[],fo(t).constructor):e.apply(t,r))}function _M(t,e){if(e&&(Tn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bM(t)}function bM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pw=function(){return!!t})()}function fo(t){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fo(t)}function xM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_h(t,e)}function _h(t,e){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},_h(t,e)}function bh(t,e,r){return e=vw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vw(t){var e=wM(t,"string");return Tn(e)=="symbol"?e:e+""}function wM(t,e){if(Tn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var r_=1,PM=function(t){function e(){var r;vM(this,e);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return r=gM(this,e,[].concat(a)),bh(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),bh(r,"handleKeyDown",function(u){if(u.key==="Escape"){var c,l,h,p;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&c!==void 0?c:0,y:(h=(p=r.props.coordinate)===null||p===void 0?void 0:p.y)!==null&&h!==void 0?h:0}})}}),r}return xM(e,t),yM(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>r_||Math.abs(n.height-this.state.lastBoundingBox.height)>r_)&&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,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,o=a.active,u=a.allowEscapeViewBox,c=a.animationDuration,l=a.animationEasing,h=a.children,p=a.coordinate,d=a.hasPayload,m=a.isAnimationActive,g=a.offset,x=a.position,b=a.reverseDirection,_=a.useTranslate3d,A=a.viewBox,T=a.wrapperStyle,O=pM({allowEscapeViewBox:u,coordinate:p,offsetTopLeft:g,position:x,reverseDirection:b,tooltipBox:this.state.lastBoundingBox,useTranslate3d:_,viewBox:A}),E=O.cssClasses,w=O.cssProperties,S=e_(e_({transition:m&&o?"transform ".concat(c,"ms ").concat(l):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},T);return R.createElement("div",{tabIndex:-1,className:E,style:S,ref:function(I){n.wrapperNode=I}},h)}}])}(K.PureComponent),OM=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},pa={isSsr:OM()};function En(t){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},En(t)}function n_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function i_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?n_(Object(r),!0).forEach(function(n){Wd(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yw(n.key),n)}}function TM(t,e,r){return e&&AM(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function EM(t,e,r){return e=ho(e),MM(t,mw()?Reflect.construct(e,r||[],ho(t).constructor):e.apply(t,r))}function MM(t,e){if(e&&(En(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CM(t)}function CM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mw=function(){return!!t})()}function ho(t){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ho(t)}function jM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xh(t,e)}function xh(t,e){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},xh(t,e)}function Wd(t,e,r){return e=yw(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yw(t){var e=IM(t,"string");return En(e)=="symbol"?e:e+""}function IM(t,e){if(En(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function LM(t){return t.dataKey}function kM(t,e){return R.isValidElement(t)?R.cloneElement(t,e):typeof t=="function"?R.createElement(t,e):R.createElement(uM,e)}var me=function(t){function e(){return SM(this,e),EM(this,e,arguments)}return jM(e,t),TM(e,[{key:"render",value:function(){var n=this,a=this.props,o=a.active,u=a.allowEscapeViewBox,c=a.animationDuration,l=a.animationEasing,h=a.content,p=a.coordinate,d=a.filterNull,m=a.isAnimationActive,g=a.offset,x=a.payload,b=a.payloadUniqBy,_=a.position,A=a.reverseDirection,T=a.useTranslate3d,O=a.viewBox,E=a.wrapperStyle,w=x??[];d&&w.length&&(w=sw(x.filter(function(M){return M.value!=null&&(M.hide!==!0||n.props.includeHidden)}),b,LM));var S=w.length>0;return R.createElement(PM,{allowEscapeViewBox:u,animationDuration:c,animationEasing:l,isAnimationActive:m,active:o,coordinate:p,hasPayload:S,offset:g,position:_,reverseDirection:A,useTranslate3d:T,viewBox:O,wrapperStyle:E},kM(h,i_(i_({},this.props),{},{payload:w})))}}])}(K.PureComponent);Wd(me,"displayName","Tooltip");Wd(me,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!pa.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 af,a_;function RM(){if(a_)return af;a_=1;var t=Ke(),e=function(){return t.Date.now()};return af=e,af}var of,o_;function NM(){if(o_)return of;o_=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return of=e,of}var sf,s_;function $M(){if(s_)return sf;s_=1;var t=NM(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return sf=r,sf}var uf,u_;function gw(){if(u_)return uf;u_=1;var t=$M(),e=xr(),r=Hn(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function l(h){if(typeof h=="number")return h;if(r(h))return n;if(e(h)){var p=typeof h.valueOf=="function"?h.valueOf():h;h=e(p)?p+"":p}if(typeof h!="string")return h===0?h:+h;h=t(h);var d=o.test(h);return d||u.test(h)?c(h.slice(2),d?2:8):a.test(h)?n:+h}return uf=l,uf}var cf,c_;function DM(){if(c_)return cf;c_=1;var t=xr(),e=RM(),r=gw(),n="Expected a function",a=Math.max,o=Math.min;function u(c,l,h){var p,d,m,g,x,b,_=0,A=!1,T=!1,O=!0;if(typeof c!="function")throw new TypeError(n);l=r(l)||0,t(h)&&(A=!!h.leading,T="maxWait"in h,m=T?a(r(h.maxWait)||0,l):m,O="trailing"in h?!!h.trailing:O);function E(q){var F=p,W=d;return p=d=void 0,_=q,g=c.apply(W,F),g}function w(q){return _=q,x=setTimeout(I,l),A?E(q):g}function S(q){var F=q-b,W=q-_,Z=l-F;return T?o(Z,m-W):Z}function M(q){var F=q-b,W=q-_;return b===void 0||F>=l||F<0||T&&W>=m}function I(){var q=e();if(M(q))return k(q);x=setTimeout(I,S(q))}function k(q){return x=void 0,O&&p?E(q):(p=d=void 0,g)}function $(){x!==void 0&&clearTimeout(x),_=0,p=b=d=x=void 0}function C(){return x===void 0?g:k(e())}function N(){var q=e(),F=M(q);if(p=arguments,d=this,b=q,F){if(x===void 0)return w(b);if(T)return clearTimeout(x),x=setTimeout(I,l),E(b)}return x===void 0&&(x=setTimeout(I,l)),g}return N.cancel=$,N.flush=C,N}return cf=u,cf}var lf,l_;function BM(){if(l_)return lf;l_=1;var t=DM(),e=xr(),r="Expected a function";function n(a,o,u){var c=!0,l=!0;if(typeof a!="function")throw new TypeError(r);return e(u)&&(c="leading"in u?!!u.leading:c,l="trailing"in u?!!u.trailing:l),t(a,o,{leading:c,maxWait:o,trailing:l})}return lf=n,lf}var qM=BM();const _w=Ct(qM);function Li(t){"@babel/helpers - typeof";return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Li(t)}function f_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?f_(Object(r),!0).forEach(function(n){zM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function zM(t,e,r){return e=FM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FM(t){var e=WM(t,"string");return Li(e)=="symbol"?e:e+""}function WM(t,e){if(Li(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function UM(t,e){return KM(t)||GM(t,e)||ZM(t,e)||HM()}function HM(){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 ZM(t,e){if(t){if(typeof t=="string")return h_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h_(t,e)}}function h_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function GM(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function KM(t){if(Array.isArray(t))return t}var Ua=K.forwardRef(function(t,e){var r=t.aspect,n=t.initialDimension,a=n===void 0?{width:-1,height:-1}:n,o=t.width,u=o===void 0?"100%":o,c=t.height,l=c===void 0?"100%":c,h=t.minWidth,p=h===void 0?0:h,d=t.minHeight,m=t.maxHeight,g=t.children,x=t.debounce,b=x===void 0?0:x,_=t.id,A=t.className,T=t.onResize,O=t.style,E=O===void 0?{}:O,w=K.useRef(null),S=K.useRef();S.current=T,K.useImperativeHandle(e,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var M=K.useState({containerWidth:a.width,containerHeight:a.height}),I=UM(M,2),k=I[0],$=I[1],C=K.useCallback(function(q,F){$(function(W){var Z=Math.round(q),X=Math.round(F);return W.containerWidth===Z&&W.containerHeight===X?W:{containerWidth:Z,containerHeight:X}})},[]);K.useEffect(function(){var q=function(Q){var Y,et=Q[0].contentRect,J=et.width,at=et.height;C(J,at),(Y=S.current)===null||Y===void 0||Y.call(S,J,at)};b>0&&(q=_w(q,b,{trailing:!0,leading:!1}));var F=new ResizeObserver(q),W=w.current.getBoundingClientRect(),Z=W.width,X=W.height;return C(Z,X),F.observe(w.current),function(){F.disconnect()}},[C,b]);var N=K.useMemo(function(){var q=k.containerWidth,F=k.containerHeight;if(q<0||F<0)return null;ar($r(u)||$r(l),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,u,l),ar(!r||r>0,"The aspect(%s) must be greater than zero.",r);var W=$r(u)?q:u,Z=$r(l)?F:l;r&&r>0&&(W?Z=W/r:Z&&(W=Z*r),m&&Z>m&&(Z=m)),ar(W>0||Z>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.`,W,Z,u,l,p,d,r);var X=!Array.isArray(g)&&ir(g.type).endsWith("Chart");return R.Children.map(g,function(H){return R.isValidElement(H)?K.cloneElement(H,Wa({width:W,height:Z},X?{style:Wa({height:"100%",width:"100%",maxHeight:Z,maxWidth:W},H.props.style)}:{})):H})},[r,g,l,m,d,p,k,u]);return R.createElement("div",{id:_?"".concat(_):void 0,className:Tt("recharts-responsive-container",A),style:Wa(Wa({},E),{},{width:u,height:l,minWidth:p,minHeight:d,maxHeight:m}),ref:w},N)}),bw=function(e){return null};bw.displayName="Cell";function ki(t){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ki(t)}function d_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function wh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?d_(Object(r),!0).forEach(function(n){VM(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d_(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function VM(t,e,r){return e=XM(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XM(t){var e=YM(t,"string");return ki(e)=="symbol"?e:e+""}function YM(t,e){if(ki(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vn={widthCache:{},cacheCount:0},JM=2e3,QM={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},p_="recharts_measurement_span";function tC(t){var e=wh({},t);return Object.keys(e).forEach(function(r){e[r]||delete e[r]}),e}var Si=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||pa.isSsr)return{width:0,height:0};var n=tC(r),a=JSON.stringify({text:e,copyStyle:n});if(vn.widthCache[a])return vn.widthCache[a];try{var o=document.getElementById(p_);o||(o=document.createElement("span"),o.setAttribute("id",p_),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var u=wh(wh({},QM),n);Object.assign(o.style,u),o.textContent="".concat(e);var c=o.getBoundingClientRect(),l={width:c.width,height:c.height};return vn.widthCache[a]=l,++vn.cacheCount>JM&&(vn.cacheCount=0,vn.widthCache={}),l}catch{return{width:0,height:0}}},eC=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Ri(t){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ri(t)}function po(t,e){return aC(t)||iC(t,e)||nC(t,e)||rC()}function rC(){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 nC(t,e){if(t){if(typeof t=="string")return v_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v_(t,e)}}function v_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function iC(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function aC(t){if(Array.isArray(t))return t}function oC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,uC(n.key),n)}}function sC(t,e,r){return e&&m_(t.prototype,e),r&&m_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function uC(t){var e=cC(t,"string");return Ri(e)=="symbol"?e:e+""}function cC(t,e){if(Ri(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var y_=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,g_=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lC=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,fC=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,xw={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},hC=Object.keys(xw),gn="NaN";function dC(t,e){return t*xw[e]}var Ha=function(){function t(e,r){oC(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),r!==""&&!lC.test(r)&&(this.num=NaN,this.unit=""),hC.includes(r)&&(this.num=dC(e,r),this.unit="px")}return sC(t,[{key:"add",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,a=(n=fC.exec(r))!==null&&n!==void 0?n:[],o=po(a,3),u=o[1],c=o[2];return new t(parseFloat(u),c??"")}}])}();function ww(t){if(t.includes(gn))return gn;for(var e=t;e.includes("*")||e.includes("/");){var r,n=(r=y_.exec(e))!==null&&r!==void 0?r:[],a=po(n,4),o=a[1],u=a[2],c=a[3],l=Ha.parse(o??""),h=Ha.parse(c??""),p=u==="*"?l.multiply(h):l.divide(h);if(p.isNaN())return gn;e=e.replace(y_,p.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var d,m=(d=g_.exec(e))!==null&&d!==void 0?d:[],g=po(m,4),x=g[1],b=g[2],_=g[3],A=Ha.parse(x??""),T=Ha.parse(_??""),O=b==="+"?A.add(T):A.subtract(T);if(O.isNaN())return gn;e=e.replace(g_,O.toString())}return e}var __=/\(([^()]*)\)/;function pC(t){for(var e=t;e.includes("(");){var r=__.exec(e),n=po(r,2),a=n[1];e=e.replace(__,ww(a))}return e}function vC(t){var e=t.replace(/\s+/g,"");return e=pC(e),e=ww(e),e}function mC(t){try{return vC(t)}catch{return gn}}function ff(t){var e=mC(t.slice(5,-1));return e===gn?"":e}var yC=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],gC=["dx","dy","angle","className","breakAll"];function Ph(){return Ph=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ph.apply(this,arguments)}function b_(t,e){if(t==null)return{};var r=_C(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function _C(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function x_(t,e){return PC(t)||wC(t,e)||xC(t,e)||bC()}function bC(){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 xC(t,e){if(t){if(typeof t=="string")return w_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w_(t,e)}}function w_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wC(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function PC(t){if(Array.isArray(t))return t}var Pw=/[ \f\n\r\t\v\u2028\u2029]+/,Ow=function(e){var r=e.children,n=e.breakAll,a=e.style;try{var o=[];At(r)||(n?o=r.toString().split(""):o=r.toString().split(Pw));var u=o.map(function(l){return{word:l,width:Si(l,a).width}}),c=n?0:Si(" ",a).width;return{wordsWithComputedWidth:u,spaceWidth:c}}catch{return null}},OC=function(e,r,n,a,o){var u=e.maxLines,c=e.children,l=e.style,h=e.breakAll,p=tt(u),d=c,m=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(Z,X){var H=X.word,Q=X.width,Y=Z[Z.length-1];if(Y&&(a==null||o||Y.width+Q+n<Number(a)))Y.words.push(H),Y.width+=Q+n;else{var et={words:[H],width:Q};Z.push(et)}return Z},[])},g=m(r),x=function(W){return W.reduce(function(Z,X){return Z.width>X.width?Z:X})};if(!p)return g;for(var b="…",_=function(W){var Z=d.slice(0,W),X=Ow({breakAll:h,style:l,children:Z+b}).wordsWithComputedWidth,H=m(X),Q=H.length>u||x(H).width>Number(a);return[Q,H]},A=0,T=d.length-1,O=0,E;A<=T&&O<=d.length-1;){var w=Math.floor((A+T)/2),S=w-1,M=_(S),I=x_(M,2),k=I[0],$=I[1],C=_(w),N=x_(C,1),q=N[0];if(!k&&!q&&(A=w+1),k&&q&&(T=w-1),!k&&q){E=$;break}O++}return E||g},P_=function(e){var r=At(e)?[]:e.toString().split(Pw);return[{words:r}]},SC=function(e){var r=e.width,n=e.scaleToFit,a=e.children,o=e.style,u=e.breakAll,c=e.maxLines;if((r||n)&&!pa.isSsr){var l,h,p=Ow({breakAll:u,children:a,style:o});if(p){var d=p.wordsWithComputedWidth,m=p.spaceWidth;l=d,h=m}else return P_(a);return OC({breakAll:u,children:a,maxLines:c,style:o},l,h,r,n)}return P_(a)},O_="#808080",vo=function(e){var r=e.x,n=r===void 0?0:r,a=e.y,o=a===void 0?0:a,u=e.lineHeight,c=u===void 0?"1em":u,l=e.capHeight,h=l===void 0?"0.71em":l,p=e.scaleToFit,d=p===void 0?!1:p,m=e.textAnchor,g=m===void 0?"start":m,x=e.verticalAnchor,b=x===void 0?"end":x,_=e.fill,A=_===void 0?O_:_,T=b_(e,yC),O=K.useMemo(function(){return SC({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:d,style:T.style,width:T.width})},[T.breakAll,T.children,T.maxLines,d,T.style,T.width]),E=T.dx,w=T.dy,S=T.angle,M=T.className,I=T.breakAll,k=b_(T,gC);if(!Gt(n)||!Gt(o))return null;var $=n+(tt(E)?E:0),C=o+(tt(w)?w:0),N;switch(b){case"start":N=ff("calc(".concat(h,")"));break;case"middle":N=ff("calc(".concat((O.length-1)/2," * -").concat(c," + (").concat(h," / 2))"));break;default:N=ff("calc(".concat(O.length-1," * -").concat(c,")"));break}var q=[];if(d){var F=O[0].width,W=T.width;q.push("scale(".concat((tt(W)?W/F:1)/F,")"))}return S&&q.push("rotate(".concat(S,", ").concat($,", ").concat(C,")")),q.length&&(k.transform=q.join(" ")),R.createElement("text",Ph({},Pt(k,!0),{x:$,y:C,className:Tt("recharts-text",M),textAnchor:g,fill:A.includes("url")?O_:A}),O.map(function(Z,X){var H=Z.words.join(I?"":" ");return R.createElement("tspan",{x:$,dy:X===0?N:c,key:"".concat(H,"-").concat(X)},H)}))};function _r(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function AC(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ud(t){let e,r,n;t.length!==2?(e=_r,r=(c,l)=>_r(t(c),l),n=(c,l)=>t(c)-l):(e=t===_r||t===AC?t:TC,r=t,n=t);function a(c,l,h=0,p=c.length){if(h<p){if(e(l,l)!==0)return p;do{const d=h+p>>>1;r(c[d],l)<0?h=d+1:p=d}while(h<p)}return h}function o(c,l,h=0,p=c.length){if(h<p){if(e(l,l)!==0)return p;do{const d=h+p>>>1;r(c[d],l)<=0?h=d+1:p=d}while(h<p)}return h}function u(c,l,h=0,p=c.length){const d=a(c,l,h,p-1);return d>h&&n(c[d-1],l)>-n(c[d],l)?d-1:d}return{left:a,center:u,right:o}}function TC(){return 0}function Sw(t){return t===null?NaN:+t}function*EC(t,e){for(let r of t)r!=null&&(r=+r)>=r&&(yield r)}const MC=Ud(_r),va=MC.right;Ud(Sw).center;class S_ extends Map{constructor(e,r=IC){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[n,a]of e)this.set(n,a)}get(e){return super.get(A_(this,e))}has(e){return super.has(A_(this,e))}set(e,r){return super.set(CC(this,e),r)}delete(e){return super.delete(jC(this,e))}}function A_({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function CC({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function jC({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function IC(t){return t!==null&&typeof t=="object"?t.valueOf():t}function LC(t=_r){if(t===_r)return Aw;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||n===0?n:(t(r,r)===0)-(t(e,e)===0)}}function Aw(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}const kC=Math.sqrt(50),RC=Math.sqrt(10),NC=Math.sqrt(2);function mo(t,e,r){const n=(e-t)/Math.max(0,r),a=Math.floor(Math.log10(n)),o=n/Math.pow(10,a),u=o>=kC?10:o>=RC?5:o>=NC?2:1;let c,l,h;return a<0?(h=Math.pow(10,-a)/u,c=Math.round(t*h),l=Math.round(e*h),c/h<t&&++c,l/h>e&&--l,h=-h):(h=Math.pow(10,a)*u,c=Math.round(t/h),l=Math.round(e/h),c*h<t&&++c,l*h>e&&--l),l<c&&.5<=r&&r<2?mo(t,e,r*2):[c,l,h]}function Oh(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const n=e<t,[a,o,u]=n?mo(e,t,r):mo(t,e,r);if(!(o>=a))return[];const c=o-a+1,l=new Array(c);if(n)if(u<0)for(let h=0;h<c;++h)l[h]=(o-h)/-u;else for(let h=0;h<c;++h)l[h]=(o-h)*u;else if(u<0)for(let h=0;h<c;++h)l[h]=(a+h)/-u;else for(let h=0;h<c;++h)l[h]=(a+h)*u;return l}function Sh(t,e,r){return e=+e,t=+t,r=+r,mo(t,e,r)[2]}function Ah(t,e,r){e=+e,t=+t,r=+r;const n=e<t,a=n?Sh(e,t,r):Sh(t,e,r);return(n?-1:1)*(a<0?1/-a:a)}function T_(t,e){let r;for(const n of t)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function E_(t,e){let r;for(const n of t)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Tw(t,e,r=0,n=1/0,a){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(a=a===void 0?Aw:LC(a);n>r;){if(n-r>600){const l=n-r+1,h=e-r+1,p=Math.log(l),d=.5*Math.exp(2*p/3),m=.5*Math.sqrt(p*d*(l-d)/l)*(h-l/2<0?-1:1),g=Math.max(r,Math.floor(e-h*d/l+m)),x=Math.min(n,Math.floor(e+(l-h)*d/l+m));Tw(t,e,g,x,a)}const o=t[e];let u=r,c=n;for(di(t,r,e),a(t[n],o)>0&&di(t,r,n);u<c;){for(di(t,u,c),++u,--c;a(t[u],o)<0;)++u;for(;a(t[c],o)>0;)--c}a(t[r],o)===0?di(t,r,c):(++c,di(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function di(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function $C(t,e,r){if(t=Float64Array.from(EC(t)),!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return E_(t);if(e>=1)return T_(t);var n,a=(n-1)*e,o=Math.floor(a),u=T_(Tw(t,o).subarray(0,o+1)),c=E_(t.subarray(o+1));return u+(c-u)*(a-o)}}function DC(t,e,r=Sw){if(!(!(n=t.length)||isNaN(e=+e))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,a=(n-1)*e,o=Math.floor(a),u=+r(t[o],o,t),c=+r(t[o+1],o+1,t);return u+(c-u)*(a-o)}}function BC(t,e,r){t=+t,e=+e,r=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((e-t)/r))|0,o=new Array(a);++n<a;)o[n]=t+n*r;return o}function Ae(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function hr(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const Th=Symbol("implicit");function Hd(){var t=new S_,e=[],r=[],n=Th;function a(o){let u=t.get(o);if(u===void 0){if(n!==Th)return n;t.set(o,u=e.push(o)-1)}return r[u%r.length]}return a.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new S_;for(const u of o)t.has(u)||t.set(u,e.push(u)-1);return a},a.range=function(o){return arguments.length?(r=Array.from(o),a):r.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return Hd(e,r).unknown(n)},Ae.apply(a,arguments),a}function Ni(){var t=Hd().unknown(void 0),e=t.domain,r=t.range,n=0,a=1,o,u,c=!1,l=0,h=0,p=.5;delete t.unknown;function d(){var m=e().length,g=a<n,x=g?a:n,b=g?n:a;o=(b-x)/Math.max(1,m-l+h*2),c&&(o=Math.floor(o)),x+=(b-x-o*(m-l))*p,u=o*(1-l),c&&(x=Math.round(x),u=Math.round(u));var _=BC(m).map(function(A){return x+o*A});return r(g?_.reverse():_)}return t.domain=function(m){return arguments.length?(e(m),d()):e()},t.range=function(m){return arguments.length?([n,a]=m,n=+n,a=+a,d()):[n,a]},t.rangeRound=function(m){return[n,a]=m,n=+n,a=+a,c=!0,d()},t.bandwidth=function(){return u},t.step=function(){return o},t.round=function(m){return arguments.length?(c=!!m,d()):c},t.padding=function(m){return arguments.length?(l=Math.min(1,h=+m),d()):l},t.paddingInner=function(m){return arguments.length?(l=Math.min(1,m),d()):l},t.paddingOuter=function(m){return arguments.length?(h=+m,d()):h},t.align=function(m){return arguments.length?(p=Math.max(0,Math.min(1,m)),d()):p},t.copy=function(){return Ni(e(),[n,a]).round(c).paddingInner(l).paddingOuter(h).align(p)},Ae.apply(d(),arguments)}function Ew(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ew(e())},t}function Ai(){return Ew(Ni.apply(null,arguments).paddingInner(1))}function Zd(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Mw(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function ma(){}var $i=.7,yo=1/$i,wn="\\s*([+-]?\\d+)\\s*",Di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qC=/^#([0-9a-f]{3,8})$/,zC=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),FC=new RegExp(`^rgb\\(${Ue},${Ue},${Ue}\\)$`),WC=new RegExp(`^rgba\\(${wn},${wn},${wn},${Di}\\)$`),UC=new RegExp(`^rgba\\(${Ue},${Ue},${Ue},${Di}\\)$`),HC=new RegExp(`^hsl\\(${Di},${Ue},${Ue}\\)$`),ZC=new RegExp(`^hsla\\(${Di},${Ue},${Ue},${Di}\\)$`),M_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zd(ma,Bi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:C_,formatHex:C_,formatHex8:GC,formatHsl:KC,formatRgb:j_,toString:j_});function C_(){return this.rgb().formatHex()}function GC(){return this.rgb().formatHex8()}function KC(){return Cw(this).formatHsl()}function j_(){return this.rgb().formatRgb()}function Bi(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=qC.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?I_(e):r===3?new fe(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Za(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Za(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=zC.exec(t))?new fe(e[1],e[2],e[3],1):(e=FC.exec(t))?new fe(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=WC.exec(t))?Za(e[1],e[2],e[3],e[4]):(e=UC.exec(t))?Za(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=HC.exec(t))?R_(e[1],e[2]/100,e[3]/100,1):(e=ZC.exec(t))?R_(e[1],e[2]/100,e[3]/100,e[4]):M_.hasOwnProperty(t)?I_(M_[t]):t==="transparent"?new fe(NaN,NaN,NaN,0):null}function I_(t){return new fe(t>>16&255,t>>8&255,t&255,1)}function Za(t,e,r,n){return n<=0&&(t=e=r=NaN),new fe(t,e,r,n)}function VC(t){return t instanceof ma||(t=Bi(t)),t?(t=t.rgb(),new fe(t.r,t.g,t.b,t.opacity)):new fe}function Eh(t,e,r,n){return arguments.length===1?VC(t):new fe(t,e,r,n??1)}function fe(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Zd(fe,Eh,Mw(ma,{brighter(t){return t=t==null?yo:Math.pow(yo,t),new fe(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?$i:Math.pow($i,t),new fe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new fe(Wr(this.r),Wr(this.g),Wr(this.b),go(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:L_,formatHex:L_,formatHex8:XC,formatRgb:k_,toString:k_}));function L_(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}`}function XC(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}${Dr((isNaN(this.opacity)?1:this.opacity)*255)}`}function k_(){const t=go(this.opacity);return`${t===1?"rgb(":"rgba("}${Wr(this.r)}, ${Wr(this.g)}, ${Wr(this.b)}${t===1?")":`, ${t})`}`}function go(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Dr(t){return t=Wr(t),(t<16?"0":"")+t.toString(16)}function R_(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Le(t,e,r,n)}function Cw(t){if(t instanceof Le)return new Le(t.h,t.s,t.l,t.opacity);if(t instanceof ma||(t=Bi(t)),!t)return new Le;if(t instanceof Le)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),o=Math.max(e,r,n),u=NaN,c=o-a,l=(o+a)/2;return c?(e===o?u=(r-n)/c+(r<n)*6:r===o?u=(n-e)/c+2:u=(e-r)/c+4,c/=l<.5?o+a:2-o-a,u*=60):c=l>0&&l<1?0:u,new Le(u,c,l,t.opacity)}function YC(t,e,r,n){return arguments.length===1?Cw(t):new Le(t,e,r,n??1)}function Le(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Zd(Le,YC,Mw(ma,{brighter(t){return t=t==null?yo:Math.pow(yo,t),new Le(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?$i:Math.pow($i,t),new Le(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new fe(hf(t>=240?t-240:t+120,a,n),hf(t,a,n),hf(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new Le(N_(this.h),Ga(this.s),Ga(this.l),go(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 t=go(this.opacity);return`${t===1?"hsl(":"hsla("}${N_(this.h)}, ${Ga(this.s)*100}%, ${Ga(this.l)*100}%${t===1?")":`, ${t})`}`}}));function N_(t){return t=(t||0)%360,t<0?t+360:t}function Ga(t){return Math.max(0,Math.min(1,t||0))}function hf(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Gd=t=>()=>t;function JC(t,e){return function(r){return t+r*e}}function QC(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function tj(t){return(t=+t)==1?jw:function(e,r){return r-e?QC(e,r,t):Gd(isNaN(e)?r:e)}}function jw(t,e){var r=e-t;return r?JC(t,r):Gd(isNaN(t)?e:t)}const $_=function t(e){var r=tj(e);function n(a,o){var u=r((a=Eh(a)).r,(o=Eh(o)).r),c=r(a.g,o.g),l=r(a.b,o.b),h=jw(a.opacity,o.opacity);return function(p){return a.r=u(p),a.g=c(p),a.b=l(p),a.opacity=h(p),a+""}}return n.gamma=t,n}(1);function ej(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(o){for(a=0;a<r;++a)n[a]=t[a]*(1-o)+e[a]*o;return n}}function rj(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function nj(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,a=new Array(n),o=new Array(r),u;for(u=0;u<n;++u)a[u]=Kn(t[u],e[u]);for(;u<r;++u)o[u]=e[u];return function(c){for(u=0;u<n;++u)o[u]=a[u](c);return o}}function ij(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function _o(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function aj(t,e){var r={},n={},a;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(a in e)a in t?r[a]=Kn(t[a],e[a]):n[a]=e[a];return function(o){for(a in r)n[a]=r[a](o);return n}}var Mh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,df=new RegExp(Mh.source,"g");function oj(t){return function(){return t}}function sj(t){return function(e){return t(e)+""}}function uj(t,e){var r=Mh.lastIndex=df.lastIndex=0,n,a,o,u=-1,c=[],l=[];for(t=t+"",e=e+"";(n=Mh.exec(t))&&(a=df.exec(e));)(o=a.index)>r&&(o=e.slice(r,o),c[u]?c[u]+=o:c[++u]=o),(n=n[0])===(a=a[0])?c[u]?c[u]+=a:c[++u]=a:(c[++u]=null,l.push({i:u,x:_o(n,a)})),r=df.lastIndex;return r<e.length&&(o=e.slice(r),c[u]?c[u]+=o:c[++u]=o),c.length<2?l[0]?sj(l[0].x):oj(e):(e=l.length,function(h){for(var p=0,d;p<e;++p)c[(d=l[p]).i]=d.x(h);return c.join("")})}function Kn(t,e){var r=typeof e,n;return e==null||r==="boolean"?Gd(e):(r==="number"?_o:r==="string"?(n=Bi(e))?(e=n,$_):uj:e instanceof Bi?$_:e instanceof Date?ij:rj(e)?ej:Array.isArray(e)?nj:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?aj:_o)(t,e)}function Kd(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function cj(t,e){e===void 0&&(e=t,t=Kn);for(var r=0,n=e.length-1,a=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(a,a=e[++r]);return function(u){var c=Math.max(0,Math.min(n-1,Math.floor(u*=n)));return o[c](u-c)}}function lj(t){return function(){return t}}function bo(t){return+t}var D_=[0,1];function ce(t){return t}function Ch(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:lj(isNaN(e)?NaN:.5)}function fj(t,e){var r;return t>e&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function hj(t,e,r){var n=t[0],a=t[1],o=e[0],u=e[1];return a<n?(n=Ch(a,n),o=r(u,o)):(n=Ch(n,a),o=r(o,u)),function(c){return o(n(c))}}function dj(t,e,r){var n=Math.min(t.length,e.length)-1,a=new Array(n),o=new Array(n),u=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<n;)a[u]=Ch(t[u],t[u+1]),o[u]=r(e[u],e[u+1]);return function(c){var l=va(t,c,1,n)-1;return o[l](a[l](c))}}function ya(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ls(){var t=D_,e=D_,r=Kn,n,a,o,u=ce,c,l,h;function p(){var m=Math.min(t.length,e.length);return u!==ce&&(u=fj(t[0],t[m-1])),c=m>2?dj:hj,l=h=null,d}function d(m){return m==null||isNaN(m=+m)?o:(l||(l=c(t.map(n),e,r)))(n(u(m)))}return d.invert=function(m){return u(a((h||(h=c(e,t.map(n),_o)))(m)))},d.domain=function(m){return arguments.length?(t=Array.from(m,bo),p()):t.slice()},d.range=function(m){return arguments.length?(e=Array.from(m),p()):e.slice()},d.rangeRound=function(m){return e=Array.from(m),r=Kd,p()},d.clamp=function(m){return arguments.length?(u=m?!0:ce,p()):u!==ce},d.interpolate=function(m){return arguments.length?(r=m,p()):r},d.unknown=function(m){return arguments.length?(o=m,d):o},function(m,g){return n=m,a=g,p()}}function Vd(){return ls()(ce,ce)}function pj(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function xo(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Mn(t){return t=xo(Math.abs(t)),t?t[1]:NaN}function vj(t,e){return function(r,n){for(var a=r.length,o=[],u=0,c=t[0],l=0;a>0&&c>0&&(l+c+1>n&&(c=Math.max(1,n-l)),o.push(r.substring(a-=c,a+c)),!((l+=c+1)>n));)c=t[u=(u+1)%t.length];return o.reverse().join(e)}}function mj(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var yj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qi(t){if(!(e=yj.exec(t)))throw new Error("invalid format: "+t);var e;return new Xd({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}qi.prototype=Xd.prototype;function Xd(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Xd.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 gj(t){t:for(var e=t.length,r=1,n=-1,a;r<e;++r)switch(t[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+t[r])break t;n>0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(a+1):t}var Iw;function _j(t,e){var r=xo(t,e);if(!r)return t+"";var n=r[0],a=r[1],o=a-(Iw=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,u=n.length;return o===u?n:o>u?n+new Array(o-u+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+xo(t,Math.max(0,e+o-1))[0]}function B_(t,e){var r=xo(t,e);if(!r)return t+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const q_={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:pj,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>B_(t*100,e),r:B_,s:_j,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function z_(t){return t}var F_=Array.prototype.map,W_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bj(t){var e=t.grouping===void 0||t.thousands===void 0?z_:vj(F_.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?z_:mj(F_.call(t.numerals,String)),u=t.percent===void 0?"%":t.percent+"",c=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function h(d){d=qi(d);var m=d.fill,g=d.align,x=d.sign,b=d.symbol,_=d.zero,A=d.width,T=d.comma,O=d.precision,E=d.trim,w=d.type;w==="n"?(T=!0,w="g"):q_[w]||(O===void 0&&(O=12),E=!0,w="g"),(_||m==="0"&&g==="=")&&(_=!0,m="0",g="=");var S=b==="$"?r:b==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",M=b==="$"?n:/[%p]/.test(w)?u:"",I=q_[w],k=/[defgprs%]/.test(w);O=O===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function $(C){var N=S,q=M,F,W,Z;if(w==="c")q=I(C)+q,C="";else{C=+C;var X=C<0||1/C<0;if(C=isNaN(C)?l:I(Math.abs(C),O),E&&(C=gj(C)),X&&+C==0&&x!=="+"&&(X=!1),N=(X?x==="("?x:c:x==="-"||x==="("?"":x)+N,q=(w==="s"?W_[8+Iw/3]:"")+q+(X&&x==="("?")":""),k){for(F=-1,W=C.length;++F<W;)if(Z=C.charCodeAt(F),48>Z||Z>57){q=(Z===46?a+C.slice(F+1):C.slice(F))+q,C=C.slice(0,F);break}}}T&&!_&&(C=e(C,1/0));var H=N.length+C.length+q.length,Q=H<A?new Array(A-H+1).join(m):"";switch(T&&_&&(C=e(Q+C,Q.length?A-q.length:1/0),Q=""),g){case"<":C=N+C+q+Q;break;case"=":C=N+Q+C+q;break;case"^":C=Q.slice(0,H=Q.length>>1)+N+C+q+Q.slice(H);break;default:C=Q+N+C+q;break}return o(C)}return $.toString=function(){return d+""},$}function p(d,m){var g=h((d=qi(d),d.type="f",d)),x=Math.max(-8,Math.min(8,Math.floor(Mn(m)/3)))*3,b=Math.pow(10,-x),_=W_[8+x/3];return function(A){return g(b*A)+_}}return{format:h,formatPrefix:p}}var Ka,Yd,Lw;xj({thousands:",",grouping:[3],currency:["$",""]});function xj(t){return Ka=bj(t),Yd=Ka.format,Lw=Ka.formatPrefix,Ka}function wj(t){return Math.max(0,-Mn(Math.abs(t)))}function Pj(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Mn(e)/3)))*3-Mn(Math.abs(t)))}function Oj(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Mn(e)-Mn(t))+1}function kw(t,e,r,n){var a=Ah(t,e,r),o;switch(n=qi(n??",f"),n.type){case"s":{var u=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(o=Pj(a,u))&&(n.precision=o),Lw(n,u)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=Oj(a,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=wj(a))&&(n.precision=o-(n.type==="%")*2);break}}return Yd(n)}function Pr(t){var e=t.domain;return t.ticks=function(r){var n=e();return Oh(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var a=e();return kw(a[0],a[a.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),a=0,o=n.length-1,u=n[a],c=n[o],l,h,p=10;for(c<u&&(h=u,u=c,c=h,h=a,a=o,o=h);p-- >0;){if(h=Sh(u,c,r),h===l)return n[a]=u,n[o]=c,e(n);if(h>0)u=Math.floor(u/h)*h,c=Math.ceil(c/h)*h;else if(h<0)u=Math.ceil(u*h)/h,c=Math.floor(c*h)/h;else break;l=h}return t},t}function wo(){var t=Vd();return t.copy=function(){return ya(t,wo())},Ae.apply(t,arguments),Pr(t)}function Rw(t){var e;function r(n){return n==null||isNaN(n=+n)?e:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(t=Array.from(n,bo),r):t.slice()},r.unknown=function(n){return arguments.length?(e=n,r):e},r.copy=function(){return Rw(t).unknown(e)},t=arguments.length?Array.from(t,bo):[0,1],Pr(r)}function Nw(t,e){t=t.slice();var r=0,n=t.length-1,a=t[r],o=t[n],u;return o<a&&(u=r,r=n,n=u,u=a,a=o,o=u),t[r]=e.floor(a),t[n]=e.ceil(o),t}function U_(t){return Math.log(t)}function H_(t){return Math.exp(t)}function Sj(t){return-Math.log(-t)}function Aj(t){return-Math.exp(-t)}function Tj(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ej(t){return t===10?Tj:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Mj(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Z_(t){return(e,r)=>-t(-e,r)}function Jd(t){const e=t(U_,H_),r=e.domain;let n=10,a,o;function u(){return a=Mj(n),o=Ej(n),r()[0]<0?(a=Z_(a),o=Z_(o),t(Sj,Aj)):t(U_,H_),e}return e.base=function(c){return arguments.length?(n=+c,u()):n},e.domain=function(c){return arguments.length?(r(c),u()):r()},e.ticks=c=>{const l=r();let h=l[0],p=l[l.length-1];const d=p<h;d&&([h,p]=[p,h]);let m=a(h),g=a(p),x,b;const _=c==null?10:+c;let A=[];if(!(n%1)&&g-m<_){if(m=Math.floor(m),g=Math.ceil(g),h>0){for(;m<=g;++m)for(x=1;x<n;++x)if(b=m<0?x/o(-m):x*o(m),!(b<h)){if(b>p)break;A.push(b)}}else for(;m<=g;++m)for(x=n-1;x>=1;--x)if(b=m>0?x/o(-m):x*o(m),!(b<h)){if(b>p)break;A.push(b)}A.length*2<_&&(A=Oh(h,p,_))}else A=Oh(m,g,Math.min(g-m,_)).map(o);return d?A.reverse():A},e.tickFormat=(c,l)=>{if(c==null&&(c=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=qi(l)).precision==null&&(l.trim=!0),l=Yd(l)),c===1/0)return l;const h=Math.max(1,n*c/e.ticks().length);return p=>{let d=p/o(Math.round(a(p)));return d*n<n-.5&&(d*=n),d<=h?l(p):""}},e.nice=()=>r(Nw(r(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),e}function $w(){const t=Jd(ls()).domain([1,10]);return t.copy=()=>ya(t,$w()).base(t.base()),Ae.apply(t,arguments),t}function G_(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function K_(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Qd(t){var e=1,r=t(G_(e),K_(e));return r.constant=function(n){return arguments.length?t(G_(e=+n),K_(e)):e},Pr(r)}function Dw(){var t=Qd(ls());return t.copy=function(){return ya(t,Dw()).constant(t.constant())},Ae.apply(t,arguments)}function V_(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Cj(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function jj(t){return t<0?-t*t:t*t}function tp(t){var e=t(ce,ce),r=1;function n(){return r===1?t(ce,ce):r===.5?t(Cj,jj):t(V_(r),V_(1/r))}return e.exponent=function(a){return arguments.length?(r=+a,n()):r},Pr(e)}function ep(){var t=tp(ls());return t.copy=function(){return ya(t,ep()).exponent(t.exponent())},Ae.apply(t,arguments),t}function Ij(){return ep.apply(null,arguments).exponent(.5)}function X_(t){return Math.sign(t)*t*t}function Lj(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Bw(){var t=Vd(),e=[0,1],r=!1,n;function a(o){var u=Lj(t(o));return isNaN(u)?n:r?Math.round(u):u}return a.invert=function(o){return t.invert(X_(o))},a.domain=function(o){return arguments.length?(t.domain(o),a):t.domain()},a.range=function(o){return arguments.length?(t.range((e=Array.from(o,bo)).map(X_)),a):e.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(r=!!o,a):r},a.clamp=function(o){return arguments.length?(t.clamp(o),a):t.clamp()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return Bw(t.domain(),e).round(r).clamp(t.clamp()).unknown(n)},Ae.apply(a,arguments),Pr(a)}function qw(){var t=[],e=[],r=[],n;function a(){var u=0,c=Math.max(1,e.length);for(r=new Array(c-1);++u<c;)r[u-1]=DC(t,u/c);return o}function o(u){return u==null||isNaN(u=+u)?n:e[va(r,u)]}return o.invertExtent=function(u){var c=e.indexOf(u);return c<0?[NaN,NaN]:[c>0?r[c-1]:t[0],c<r.length?r[c]:t[t.length-1]]},o.domain=function(u){if(!arguments.length)return t.slice();t=[];for(let c of u)c!=null&&!isNaN(c=+c)&&t.push(c);return t.sort(_r),a()},o.range=function(u){return arguments.length?(e=Array.from(u),a()):e.slice()},o.unknown=function(u){return arguments.length?(n=u,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return qw().domain(t).range(e).unknown(n)},Ae.apply(o,arguments)}function zw(){var t=0,e=1,r=1,n=[.5],a=[0,1],o;function u(l){return l!=null&&l<=l?a[va(n,l,0,r)]:o}function c(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*e-(l-r)*t)/(r+1);return u}return u.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,c()):[t,e]},u.range=function(l){return arguments.length?(r=(a=Array.from(l)).length-1,c()):a.slice()},u.invertExtent=function(l){var h=a.indexOf(l);return h<0?[NaN,NaN]:h<1?[t,n[0]]:h>=r?[n[r-1],e]:[n[h-1],n[h]]},u.unknown=function(l){return arguments.length&&(o=l),u},u.thresholds=function(){return n.slice()},u.copy=function(){return zw().domain([t,e]).range(a).unknown(o)},Ae.apply(Pr(u),arguments)}function Fw(){var t=[.5],e=[0,1],r,n=1;function a(o){return o!=null&&o<=o?e[va(t,o,0,n)]:r}return a.domain=function(o){return arguments.length?(t=Array.from(o),n=Math.min(t.length,e.length-1),a):t.slice()},a.range=function(o){return arguments.length?(e=Array.from(o),n=Math.min(t.length,e.length-1),a):e.slice()},a.invertExtent=function(o){var u=e.indexOf(o);return[t[u-1],t[u]]},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return Fw().domain(t).range(e).unknown(r)},Ae.apply(a,arguments)}const pf=new Date,vf=new Date;function Kt(t,e,r,n){function a(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(t(o=new Date(+o)),o),a.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),a.round=o=>{const u=a(o),c=a.ceil(o);return o-u<c-o?u:c},a.offset=(o,u)=>(e(o=new Date(+o),u==null?1:Math.floor(u)),o),a.range=(o,u,c)=>{const l=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<u)||!(c>0))return l;let h;do l.push(h=new Date(+o)),e(o,c),t(o);while(h<o&&o<u);return l},a.filter=o=>Kt(u=>{if(u>=u)for(;t(u),!o(u);)u.setTime(u-1)},(u,c)=>{if(u>=u)if(c<0)for(;++c<=0;)for(;e(u,-1),!o(u););else for(;--c>=0;)for(;e(u,1),!o(u););}),r&&(a.count=(o,u)=>(pf.setTime(+o),vf.setTime(+u),t(pf),t(vf),Math.floor(r(pf,vf))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(n?u=>n(u)%o===0:u=>a.count(0,u)%o===0):a)),a}const Po=Kt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Po.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Kt(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Po);Po.range;const er=1e3,Pe=er*60,rr=Pe*60,sr=rr*24,rp=sr*7,Y_=sr*30,mf=sr*365,Br=Kt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*er)},(t,e)=>(e-t)/er,t=>t.getUTCSeconds());Br.range;const np=Kt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*er)},(t,e)=>{t.setTime(+t+e*Pe)},(t,e)=>(e-t)/Pe,t=>t.getMinutes());np.range;const ip=Kt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Pe)},(t,e)=>(e-t)/Pe,t=>t.getUTCMinutes());ip.range;const ap=Kt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*er-t.getMinutes()*Pe)},(t,e)=>{t.setTime(+t+e*rr)},(t,e)=>(e-t)/rr,t=>t.getHours());ap.range;const op=Kt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*rr)},(t,e)=>(e-t)/rr,t=>t.getUTCHours());op.range;const ga=Kt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Pe)/sr,t=>t.getDate()-1);ga.range;const fs=Kt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/sr,t=>t.getUTCDate()-1);fs.range;const Ww=Kt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/sr,t=>Math.floor(t/sr));Ww.range;function Yr(t){return Kt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Pe)/rp)}const hs=Yr(0),Oo=Yr(1),kj=Yr(2),Rj=Yr(3),Cn=Yr(4),Nj=Yr(5),$j=Yr(6);hs.range;Oo.range;kj.range;Rj.range;Cn.range;Nj.range;$j.range;function Jr(t){return Kt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/rp)}const ds=Jr(0),So=Jr(1),Dj=Jr(2),Bj=Jr(3),jn=Jr(4),qj=Jr(5),zj=Jr(6);ds.range;So.range;Dj.range;Bj.range;jn.range;qj.range;zj.range;const sp=Kt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());sp.range;const up=Kt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());up.range;const ur=Kt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ur.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Kt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});ur.range;const cr=Kt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());cr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Kt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});cr.range;function Uw(t,e,r,n,a,o){const u=[[Br,1,er],[Br,5,5*er],[Br,15,15*er],[Br,30,30*er],[o,1,Pe],[o,5,5*Pe],[o,15,15*Pe],[o,30,30*Pe],[a,1,rr],[a,3,3*rr],[a,6,6*rr],[a,12,12*rr],[n,1,sr],[n,2,2*sr],[r,1,rp],[e,1,Y_],[e,3,3*Y_],[t,1,mf]];function c(h,p,d){const m=p<h;m&&([h,p]=[p,h]);const g=d&&typeof d.range=="function"?d:l(h,p,d),x=g?g.range(h,+p+1):[];return m?x.reverse():x}function l(h,p,d){const m=Math.abs(p-h)/d,g=Ud(([,,_])=>_).right(u,m);if(g===u.length)return t.every(Ah(h/mf,p/mf,d));if(g===0)return Po.every(Math.max(Ah(h,p,d),1));const[x,b]=u[m/u[g-1][2]<u[g][2]/m?g-1:g];return x.every(b)}return[c,l]}const[Fj,Wj]=Uw(cr,up,ds,Ww,op,ip),[Uj,Hj]=Uw(ur,sp,hs,ga,ap,np);function yf(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function gf(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function pi(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Zj(t){var e=t.dateTime,r=t.date,n=t.time,a=t.periods,o=t.days,u=t.shortDays,c=t.months,l=t.shortMonths,h=vi(a),p=mi(a),d=vi(o),m=mi(o),g=vi(u),x=mi(u),b=vi(c),_=mi(c),A=vi(l),T=mi(l),O={a:X,A:H,b:Q,B:Y,c:null,d:nb,e:nb,f:vI,g:SI,G:TI,H:hI,I:dI,j:pI,L:Hw,m:mI,M:yI,p:et,q:J,Q:ob,s:sb,S:gI,u:_I,U:bI,V:xI,w:wI,W:PI,x:null,X:null,y:OI,Y:AI,Z:EI,"%":ab},E={a:at,A:ft,b:ut,B:lt,c:null,d:ib,e:ib,f:II,g:FI,G:UI,H:MI,I:CI,j:jI,L:Gw,m:LI,M:kI,p:te,q:Nt,Q:ob,s:sb,S:RI,u:NI,U:$I,V:DI,w:BI,W:qI,x:null,X:null,y:zI,Y:WI,Z:HI,"%":ab},w={a:$,A:C,b:N,B:q,c:F,d:eb,e:eb,f:uI,g:tb,G:Q_,H:rb,I:rb,j:iI,L:sI,m:nI,M:aI,p:k,q:rI,Q:lI,s:fI,S:oI,u:Yj,U:Jj,V:Qj,w:Xj,W:tI,x:W,X:Z,y:tb,Y:Q_,Z:eI,"%":cI};O.x=S(r,O),O.X=S(n,O),O.c=S(e,O),E.x=S(r,E),E.X=S(n,E),E.c=S(e,E);function S(rt,ht){return function(dt){var V=[],jt=-1,_t=0,Dt=rt.length,Bt,Vt,de;for(dt instanceof Date||(dt=new Date(+dt));++jt<Dt;)rt.charCodeAt(jt)===37&&(V.push(rt.slice(_t,jt)),(Vt=J_[Bt=rt.charAt(++jt)])!=null?Bt=rt.charAt(++jt):Vt=Bt==="e"?" ":"0",(de=ht[Bt])&&(Bt=de(dt,Vt)),V.push(Bt),_t=jt+1);return V.push(rt.slice(_t,jt)),V.join("")}}function M(rt,ht){return function(dt){var V=pi(1900,void 0,1),jt=I(V,rt,dt+="",0),_t,Dt;if(jt!=dt.length)return null;if("Q"in V)return new Date(V.Q);if("s"in V)return new Date(V.s*1e3+("L"in V?V.L:0));if(ht&&!("Z"in V)&&(V.Z=0),"p"in V&&(V.H=V.H%12+V.p*12),V.m===void 0&&(V.m="q"in V?V.q:0),"V"in V){if(V.V<1||V.V>53)return null;"w"in V||(V.w=1),"Z"in V?(_t=gf(pi(V.y,0,1)),Dt=_t.getUTCDay(),_t=Dt>4||Dt===0?So.ceil(_t):So(_t),_t=fs.offset(_t,(V.V-1)*7),V.y=_t.getUTCFullYear(),V.m=_t.getUTCMonth(),V.d=_t.getUTCDate()+(V.w+6)%7):(_t=yf(pi(V.y,0,1)),Dt=_t.getDay(),_t=Dt>4||Dt===0?Oo.ceil(_t):Oo(_t),_t=ga.offset(_t,(V.V-1)*7),V.y=_t.getFullYear(),V.m=_t.getMonth(),V.d=_t.getDate()+(V.w+6)%7)}else("W"in V||"U"in V)&&("w"in V||(V.w="u"in V?V.u%7:"W"in V?1:0),Dt="Z"in V?gf(pi(V.y,0,1)).getUTCDay():yf(pi(V.y,0,1)).getDay(),V.m=0,V.d="W"in V?(V.w+6)%7+V.W*7-(Dt+5)%7:V.w+V.U*7-(Dt+6)%7);return"Z"in V?(V.H+=V.Z/100|0,V.M+=V.Z%100,gf(V)):yf(V)}}function I(rt,ht,dt,V){for(var jt=0,_t=ht.length,Dt=dt.length,Bt,Vt;jt<_t;){if(V>=Dt)return-1;if(Bt=ht.charCodeAt(jt++),Bt===37){if(Bt=ht.charAt(jt++),Vt=w[Bt in J_?ht.charAt(jt++):Bt],!Vt||(V=Vt(rt,dt,V))<0)return-1}else if(Bt!=dt.charCodeAt(V++))return-1}return V}function k(rt,ht,dt){var V=h.exec(ht.slice(dt));return V?(rt.p=p.get(V[0].toLowerCase()),dt+V[0].length):-1}function $(rt,ht,dt){var V=g.exec(ht.slice(dt));return V?(rt.w=x.get(V[0].toLowerCase()),dt+V[0].length):-1}function C(rt,ht,dt){var V=d.exec(ht.slice(dt));return V?(rt.w=m.get(V[0].toLowerCase()),dt+V[0].length):-1}function N(rt,ht,dt){var V=A.exec(ht.slice(dt));return V?(rt.m=T.get(V[0].toLowerCase()),dt+V[0].length):-1}function q(rt,ht,dt){var V=b.exec(ht.slice(dt));return V?(rt.m=_.get(V[0].toLowerCase()),dt+V[0].length):-1}function F(rt,ht,dt){return I(rt,e,ht,dt)}function W(rt,ht,dt){return I(rt,r,ht,dt)}function Z(rt,ht,dt){return I(rt,n,ht,dt)}function X(rt){return u[rt.getDay()]}function H(rt){return o[rt.getDay()]}function Q(rt){return l[rt.getMonth()]}function Y(rt){return c[rt.getMonth()]}function et(rt){return a[+(rt.getHours()>=12)]}function J(rt){return 1+~~(rt.getMonth()/3)}function at(rt){return u[rt.getUTCDay()]}function ft(rt){return o[rt.getUTCDay()]}function ut(rt){return l[rt.getUTCMonth()]}function lt(rt){return c[rt.getUTCMonth()]}function te(rt){return a[+(rt.getUTCHours()>=12)]}function Nt(rt){return 1+~~(rt.getUTCMonth()/3)}return{format:function(rt){var ht=S(rt+="",O);return ht.toString=function(){return rt},ht},parse:function(rt){var ht=M(rt+="",!1);return ht.toString=function(){return rt},ht},utcFormat:function(rt){var ht=S(rt+="",E);return ht.toString=function(){return rt},ht},utcParse:function(rt){var ht=M(rt+="",!0);return ht.toString=function(){return rt},ht}}}var J_={"-":"",_:" ",0:"0"},Qt=/^\s*\d+/,Gj=/^%/,Kj=/[\\^$*+?|[\]().{}]/g;function wt(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",o=a.length;return n+(o<r?new Array(r-o+1).join(e)+a:a)}function Vj(t){return t.replace(Kj,"\\$&")}function vi(t){return new RegExp("^(?:"+t.map(Vj).join("|")+")","i")}function mi(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function Xj(t,e,r){var n=Qt.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Yj(t,e,r){var n=Qt.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Jj(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Qj(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function tI(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Q_(t,e,r){var n=Qt.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function tb(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eI(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function rI(t,e,r){var n=Qt.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function nI(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function eb(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function iI(t,e,r){var n=Qt.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function rb(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function aI(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function oI(t,e,r){var n=Qt.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function sI(t,e,r){var n=Qt.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function uI(t,e,r){var n=Qt.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function cI(t,e,r){var n=Gj.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function lI(t,e,r){var n=Qt.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function fI(t,e,r){var n=Qt.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function nb(t,e){return wt(t.getDate(),e,2)}function hI(t,e){return wt(t.getHours(),e,2)}function dI(t,e){return wt(t.getHours()%12||12,e,2)}function pI(t,e){return wt(1+ga.count(ur(t),t),e,3)}function Hw(t,e){return wt(t.getMilliseconds(),e,3)}function vI(t,e){return Hw(t,e)+"000"}function mI(t,e){return wt(t.getMonth()+1,e,2)}function yI(t,e){return wt(t.getMinutes(),e,2)}function gI(t,e){return wt(t.getSeconds(),e,2)}function _I(t){var e=t.getDay();return e===0?7:e}function bI(t,e){return wt(hs.count(ur(t)-1,t),e,2)}function Zw(t){var e=t.getDay();return e>=4||e===0?Cn(t):Cn.ceil(t)}function xI(t,e){return t=Zw(t),wt(Cn.count(ur(t),t)+(ur(t).getDay()===4),e,2)}function wI(t){return t.getDay()}function PI(t,e){return wt(Oo.count(ur(t)-1,t),e,2)}function OI(t,e){return wt(t.getFullYear()%100,e,2)}function SI(t,e){return t=Zw(t),wt(t.getFullYear()%100,e,2)}function AI(t,e){return wt(t.getFullYear()%1e4,e,4)}function TI(t,e){var r=t.getDay();return t=r>=4||r===0?Cn(t):Cn.ceil(t),wt(t.getFullYear()%1e4,e,4)}function EI(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wt(e/60|0,"0",2)+wt(e%60,"0",2)}function ib(t,e){return wt(t.getUTCDate(),e,2)}function MI(t,e){return wt(t.getUTCHours(),e,2)}function CI(t,e){return wt(t.getUTCHours()%12||12,e,2)}function jI(t,e){return wt(1+fs.count(cr(t),t),e,3)}function Gw(t,e){return wt(t.getUTCMilliseconds(),e,3)}function II(t,e){return Gw(t,e)+"000"}function LI(t,e){return wt(t.getUTCMonth()+1,e,2)}function kI(t,e){return wt(t.getUTCMinutes(),e,2)}function RI(t,e){return wt(t.getUTCSeconds(),e,2)}function NI(t){var e=t.getUTCDay();return e===0?7:e}function $I(t,e){return wt(ds.count(cr(t)-1,t),e,2)}function Kw(t){var e=t.getUTCDay();return e>=4||e===0?jn(t):jn.ceil(t)}function DI(t,e){return t=Kw(t),wt(jn.count(cr(t),t)+(cr(t).getUTCDay()===4),e,2)}function BI(t){return t.getUTCDay()}function qI(t,e){return wt(So.count(cr(t)-1,t),e,2)}function zI(t,e){return wt(t.getUTCFullYear()%100,e,2)}function FI(t,e){return t=Kw(t),wt(t.getUTCFullYear()%100,e,2)}function WI(t,e){return wt(t.getUTCFullYear()%1e4,e,4)}function UI(t,e){var r=t.getUTCDay();return t=r>=4||r===0?jn(t):jn.ceil(t),wt(t.getUTCFullYear()%1e4,e,4)}function HI(){return"+0000"}function ab(){return"%"}function ob(t){return+t}function sb(t){return Math.floor(+t/1e3)}var mn,Vw,Xw;ZI({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 ZI(t){return mn=Zj(t),Vw=mn.format,mn.parse,Xw=mn.utcFormat,mn.utcParse,mn}function GI(t){return new Date(t)}function KI(t){return t instanceof Date?+t:+new Date(+t)}function cp(t,e,r,n,a,o,u,c,l,h){var p=Vd(),d=p.invert,m=p.domain,g=h(".%L"),x=h(":%S"),b=h("%I:%M"),_=h("%I %p"),A=h("%a %d"),T=h("%b %d"),O=h("%B"),E=h("%Y");function w(S){return(l(S)<S?g:c(S)<S?x:u(S)<S?b:o(S)<S?_:n(S)<S?a(S)<S?A:T:r(S)<S?O:E)(S)}return p.invert=function(S){return new Date(d(S))},p.domain=function(S){return arguments.length?m(Array.from(S,KI)):m().map(GI)},p.ticks=function(S){var M=m();return t(M[0],M[M.length-1],S??10)},p.tickFormat=function(S,M){return M==null?w:h(M)},p.nice=function(S){var M=m();return(!S||typeof S.range!="function")&&(S=e(M[0],M[M.length-1],S??10)),S?m(Nw(M,S)):p},p.copy=function(){return ya(p,cp(t,e,r,n,a,o,u,c,l,h))},p}function VI(){return Ae.apply(cp(Uj,Hj,ur,sp,hs,ga,ap,np,Br,Vw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function XI(){return Ae.apply(cp(Fj,Wj,cr,up,ds,fs,op,ip,Br,Xw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ps(){var t=0,e=1,r,n,a,o,u=ce,c=!1,l;function h(d){return d==null||isNaN(d=+d)?l:u(a===0?.5:(d=(o(d)-r)*a,c?Math.max(0,Math.min(1,d)):d))}h.domain=function(d){return arguments.length?([t,e]=d,r=o(t=+t),n=o(e=+e),a=r===n?0:1/(n-r),h):[t,e]},h.clamp=function(d){return arguments.length?(c=!!d,h):c},h.interpolator=function(d){return arguments.length?(u=d,h):u};function p(d){return function(m){var g,x;return arguments.length?([g,x]=m,u=d(g,x),h):[u(0),u(1)]}}return h.range=p(Kn),h.rangeRound=p(Kd),h.unknown=function(d){return arguments.length?(l=d,h):l},function(d){return o=d,r=d(t),n=d(e),a=r===n?0:1/(n-r),h}}function Or(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Yw(){var t=Pr(ps()(ce));return t.copy=function(){return Or(t,Yw())},hr.apply(t,arguments)}function Jw(){var t=Jd(ps()).domain([1,10]);return t.copy=function(){return Or(t,Jw()).base(t.base())},hr.apply(t,arguments)}function Qw(){var t=Qd(ps());return t.copy=function(){return Or(t,Qw()).constant(t.constant())},hr.apply(t,arguments)}function lp(){var t=tp(ps());return t.copy=function(){return Or(t,lp()).exponent(t.exponent())},hr.apply(t,arguments)}function YI(){return lp.apply(null,arguments).exponent(.5)}function t1(){var t=[],e=ce;function r(n){if(n!=null&&!isNaN(n=+n))return e((va(t,n,1)-1)/(t.length-1))}return r.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let a of n)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(_r),r},r.interpolator=function(n){return arguments.length?(e=n,r):e},r.range=function(){return t.map((n,a)=>e(a/(t.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,o)=>$C(t,o/n))},r.copy=function(){return t1(e).domain(t)},hr.apply(r,arguments)}function vs(){var t=0,e=.5,r=1,n=1,a,o,u,c,l,h=ce,p,d=!1,m;function g(b){return isNaN(b=+b)?m:(b=.5+((b=+p(b))-o)*(n*b<n*o?c:l),h(d?Math.max(0,Math.min(1,b)):b))}g.domain=function(b){return arguments.length?([t,e,r]=b,a=p(t=+t),o=p(e=+e),u=p(r=+r),c=a===o?0:.5/(o-a),l=o===u?0:.5/(u-o),n=o<a?-1:1,g):[t,e,r]},g.clamp=function(b){return arguments.length?(d=!!b,g):d},g.interpolator=function(b){return arguments.length?(h=b,g):h};function x(b){return function(_){var A,T,O;return arguments.length?([A,T,O]=_,h=cj(b,[A,T,O]),g):[h(0),h(.5),h(1)]}}return g.range=x(Kn),g.rangeRound=x(Kd),g.unknown=function(b){return arguments.length?(m=b,g):m},function(b){return p=b,a=b(t),o=b(e),u=b(r),c=a===o?0:.5/(o-a),l=o===u?0:.5/(u-o),n=o<a?-1:1,g}}function e1(){var t=Pr(vs()(ce));return t.copy=function(){return Or(t,e1())},hr.apply(t,arguments)}function r1(){var t=Jd(vs()).domain([.1,1,10]);return t.copy=function(){return Or(t,r1()).base(t.base())},hr.apply(t,arguments)}function n1(){var t=Qd(vs());return t.copy=function(){return Or(t,n1()).constant(t.constant())},hr.apply(t,arguments)}function fp(){var t=tp(vs());return t.copy=function(){return Or(t,fp()).exponent(t.exponent())},hr.apply(t,arguments)}function JI(){return fp.apply(null,arguments).exponent(.5)}const ub=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ni,scaleDiverging:e1,scaleDivergingLog:r1,scaleDivergingPow:fp,scaleDivergingSqrt:JI,scaleDivergingSymlog:n1,scaleIdentity:Rw,scaleImplicit:Th,scaleLinear:wo,scaleLog:$w,scaleOrdinal:Hd,scalePoint:Ai,scalePow:ep,scaleQuantile:qw,scaleQuantize:zw,scaleRadial:Bw,scaleSequential:Yw,scaleSequentialLog:Jw,scaleSequentialPow:lp,scaleSequentialQuantile:t1,scaleSequentialSqrt:YI,scaleSequentialSymlog:Qw,scaleSqrt:Ij,scaleSymlog:Dw,scaleThreshold:Fw,scaleTime:VI,scaleUtc:XI,tickFormat:kw},Symbol.toStringTag,{value:"Module"}));var _f,cb;function i1(){if(cb)return _f;cb=1;var t=Hn();function e(r,n,a){for(var o=-1,u=r.length;++o<u;){var c=r[o],l=n(c);if(l!=null&&(h===void 0?l===l&&!t(l):a(l,h)))var h=l,p=c}return p}return _f=e,_f}var bf,lb;function QI(){if(lb)return bf;lb=1;function t(e,r){return e>r}return bf=t,bf}var xf,fb;function tL(){if(fb)return xf;fb=1;var t=i1(),e=QI(),r=Gn();function n(a){return a&&a.length?t(a,r,e):void 0}return xf=n,xf}var eL=tL();const ms=Ct(eL);var wf,hb;function rL(){if(hb)return wf;hb=1;function t(e,r){return e<r}return wf=t,wf}var Pf,db;function nL(){if(db)return Pf;db=1;var t=i1(),e=rL(),r=Gn();function n(a){return a&&a.length?t(a,r,e):void 0}return Pf=n,Pf}var iL=nL();const ys=Ct(iL);var Of,pb;function aL(){if(pb)return Of;pb=1;var t=Td(),e=wr(),r=hw(),n=he();function a(o,u){var c=n(o)?t:r;return c(o,e(u,3))}return Of=a,Of}var Sf,vb;function oL(){if(vb)return Sf;vb=1;var t=lw(),e=aL();function r(n,a){return t(e(n,a),1)}return Sf=r,Sf}var sL=oL();const uL=Ct(sL);var Af,mb;function cL(){if(mb)return Af;mb=1;var t=qd();function e(r,n){return t(r,n)}return Af=e,Af}var lL=cL();const hp=Ct(lL);var Vn=1e9,fL={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},pp,Rt=!0,Se="[DecimalError] ",Ur=Se+"Invalid argument: ",dp=Se+"Exponent out of range: ",Xn=Math.floor,Nr=Math.pow,hL=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ye,Yt=1e7,kt=7,a1=9007199254740991,Ao=Xn(a1/kt),it={};it.absoluteValue=it.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};it.comparedTo=it.cmp=function(t){var e,r,n,a,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(n=o.d.length,a=t.d.length,e=0,r=n<a?n:a;e<r;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return n===a?0:n>a^o.s<0?1:-1};it.decimalPlaces=it.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*kt;if(e=t.d[e],e)for(;e%10==0;e/=10)r--;return r<0?0:r};it.dividedBy=it.div=function(t){return or(this,new this.constructor(t))};it.dividedToIntegerBy=it.idiv=function(t){var e=this,r=e.constructor;return Mt(or(e,new r(t),0,1),r.precision)};it.equals=it.eq=function(t){return!this.cmp(t)};it.exponent=function(){return Ht(this)};it.greaterThan=it.gt=function(t){return this.cmp(t)>0};it.greaterThanOrEqualTo=it.gte=function(t){return this.cmp(t)>=0};it.isInteger=it.isint=function(){return this.e>this.d.length-2};it.isNegative=it.isneg=function(){return this.s<0};it.isPositive=it.ispos=function(){return this.s>0};it.isZero=function(){return this.s===0};it.lessThan=it.lt=function(t){return this.cmp(t)<0};it.lessThanOrEqualTo=it.lte=function(t){return this.cmp(t)<1};it.logarithm=it.log=function(t){var e,r=this,n=r.constructor,a=n.precision,o=a+5;if(t===void 0)t=new n(10);else if(t=new n(t),t.s<1||t.eq(ye))throw Error(Se+"NaN");if(r.s<1)throw Error(Se+(r.s?"NaN":"-Infinity"));return r.eq(ye)?new n(0):(Rt=!1,e=or(zi(r,o),zi(t,o),o),Rt=!0,Mt(e,a))};it.minus=it.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?u1(e,t):o1(e,(t.s=-t.s,t))};it.modulo=it.mod=function(t){var e,r=this,n=r.constructor,a=n.precision;if(t=new n(t),!t.s)throw Error(Se+"NaN");return r.s?(Rt=!1,e=or(r,t,0,1).times(t),Rt=!0,r.minus(e)):Mt(new n(r),a)};it.naturalExponential=it.exp=function(){return s1(this)};it.naturalLogarithm=it.ln=function(){return zi(this)};it.negated=it.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};it.plus=it.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?o1(e,t):u1(e,(t.s=-t.s,t))};it.precision=it.sd=function(t){var e,r,n,a=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(Ur+t);if(e=Ht(a)+1,n=a.d.length-1,r=n*kt+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return t&&e>r?e:r};it.squareRoot=it.sqrt=function(){var t,e,r,n,a,o,u,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(Se+"NaN")}for(t=Ht(c),Rt=!1,a=Math.sqrt(+c),a==0||a==1/0?(e=We(c.d),(e.length+t)%2==0&&(e+="0"),a=Math.sqrt(e),t=Xn((t+1)/2)-(t<0||t%2),a==1/0?e="5e"+t:(e=a.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),n=new l(e)):n=new l(a.toString()),r=l.precision,a=u=r+3;;)if(o=n,n=o.plus(or(c,o,u+2)).times(.5),We(o.d).slice(0,u)===(e=We(n.d)).slice(0,u)){if(e=e.slice(u-3,u+1),a==u&&e=="4999"){if(Mt(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if(e!="9999")break;u+=4}return Rt=!0,Mt(n,r)};it.times=it.mul=function(t){var e,r,n,a,o,u,c,l,h,p=this,d=p.constructor,m=p.d,g=(t=new d(t)).d;if(!p.s||!t.s)return new d(0);for(t.s*=p.s,r=p.e+t.e,l=m.length,h=g.length,l<h&&(o=m,m=g,g=o,u=l,l=h,h=u),o=[],u=l+h,n=u;n--;)o.push(0);for(n=h;--n>=0;){for(e=0,a=l+n;a>n;)c=o[a]+g[n]*m[a-n-1]+e,o[a--]=c%Yt|0,e=c/Yt|0;o[a]=(o[a]+e)%Yt|0}for(;!o[--u];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,Rt?Mt(t,d.precision):t};it.toDecimalPlaces=it.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),t===void 0?r:(Ze(t,0,Vn),e===void 0?e=n.rounding:Ze(e,0,8),Mt(r,t+Ht(r)+1,e))};it.toExponential=function(t,e){var r,n=this,a=n.constructor;return t===void 0?r=Gr(n,!0):(Ze(t,0,Vn),e===void 0?e=a.rounding:Ze(e,0,8),n=Mt(new a(n),t+1,e),r=Gr(n,!0,t+1)),r};it.toFixed=function(t,e){var r,n,a=this,o=a.constructor;return t===void 0?Gr(a):(Ze(t,0,Vn),e===void 0?e=o.rounding:Ze(e,0,8),n=Mt(new o(a),t+Ht(a)+1,e),r=Gr(n.abs(),!1,t+Ht(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};it.toInteger=it.toint=function(){var t=this,e=t.constructor;return Mt(new e(t),Ht(t)+1,e.rounding)};it.toNumber=function(){return+this};it.toPower=it.pow=function(t){var e,r,n,a,o,u,c=this,l=c.constructor,h=12,p=+(t=new l(t));if(!t.s)return new l(ye);if(c=new l(c),!c.s){if(t.s<1)throw Error(Se+"Infinity");return c}if(c.eq(ye))return c;if(n=l.precision,t.eq(ye))return Mt(c,n);if(e=t.e,r=t.d.length-1,u=e>=r,o=c.s,u){if((r=p<0?-p:p)<=a1){for(a=new l(ye),e=Math.ceil(n/kt+4),Rt=!1;r%2&&(a=a.times(c),gb(a.d,e)),r=Xn(r/2),r!==0;)c=c.times(c),gb(c.d,e);return Rt=!0,t.s<0?new l(ye).div(a):Mt(a,n)}}else if(o<0)throw Error(Se+"NaN");return o=o<0&&t.d[Math.max(e,r)]&1?-1:1,c.s=1,Rt=!1,a=t.times(zi(c,n+h)),Rt=!0,a=s1(a),a.s=o,a};it.toPrecision=function(t,e){var r,n,a=this,o=a.constructor;return t===void 0?(r=Ht(a),n=Gr(a,r<=o.toExpNeg||r>=o.toExpPos)):(Ze(t,1,Vn),e===void 0?e=o.rounding:Ze(e,0,8),a=Mt(new o(a),t,e),r=Ht(a),n=Gr(a,t<=r||r<=o.toExpNeg,t)),n};it.toSignificantDigits=it.tosd=function(t,e){var r=this,n=r.constructor;return t===void 0?(t=n.precision,e=n.rounding):(Ze(t,1,Vn),e===void 0?e=n.rounding:Ze(e,0,8)),Mt(new n(r),t,e)};it.toString=it.valueOf=it.val=it.toJSON=it[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Ht(t),r=t.constructor;return Gr(t,e<=r.toExpNeg||e>=r.toExpPos)};function o1(t,e){var r,n,a,o,u,c,l,h,p=t.constructor,d=p.precision;if(!t.s||!e.s)return e.s||(e=new p(t)),Rt?Mt(e,d):e;if(l=t.d,h=e.d,u=t.e,a=e.e,l=l.slice(),o=u-a,o){for(o<0?(n=l,o=-o,c=h.length):(n=h,a=u,c=l.length),u=Math.ceil(d/kt),c=u>c?u+1:c+1,o>c&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(c=l.length,o=h.length,c-o<0&&(o=c,n=h,h=l,l=n),r=0;o;)r=(l[--o]=l[o]+h[o]+r)/Yt|0,l[o]%=Yt;for(r&&(l.unshift(r),++a),c=l.length;l[--c]==0;)l.pop();return e.d=l,e.e=a,Rt?Mt(e,d):e}function Ze(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Ur+t)}function We(t){var e,r,n,a=t.length-1,o="",u=t[0];if(a>0){for(o+=u,e=1;e<a;e++)n=t[e]+"",r=kt-n.length,r&&(o+=mr(r)),o+=n;u=t[e],n=u+"",r=kt-n.length,r&&(o+=mr(r))}else if(u===0)return"0";for(;u%10===0;)u/=10;return o+u}var or=function(){function t(n,a){var o,u=0,c=n.length;for(n=n.slice();c--;)o=n[c]*a+u,n[c]=o%Yt|0,u=o/Yt|0;return u&&n.unshift(u),n}function e(n,a,o,u){var c,l;if(o!=u)l=o>u?1:-1;else for(c=l=0;c<o;c++)if(n[c]!=a[c]){l=n[c]>a[c]?1:-1;break}return l}function r(n,a,o){for(var u=0;o--;)n[o]-=u,u=n[o]<a[o]?1:0,n[o]=u*Yt+n[o]-a[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,o,u){var c,l,h,p,d,m,g,x,b,_,A,T,O,E,w,S,M,I,k=n.constructor,$=n.s==a.s?1:-1,C=n.d,N=a.d;if(!n.s)return new k(n);if(!a.s)throw Error(Se+"Division by zero");for(l=n.e-a.e,M=N.length,w=C.length,g=new k($),x=g.d=[],h=0;N[h]==(C[h]||0);)++h;if(N[h]>(C[h]||0)&&--l,o==null?T=o=k.precision:u?T=o+(Ht(n)-Ht(a))+1:T=o,T<0)return new k(0);if(T=T/kt+2|0,h=0,M==1)for(p=0,N=N[0],T++;(h<w||p)&&T--;h++)O=p*Yt+(C[h]||0),x[h]=O/N|0,p=O%N|0;else{for(p=Yt/(N[0]+1)|0,p>1&&(N=t(N,p),C=t(C,p),M=N.length,w=C.length),E=M,b=C.slice(0,M),_=b.length;_<M;)b[_++]=0;I=N.slice(),I.unshift(0),S=N[0],N[1]>=Yt/2&&++S;do p=0,c=e(N,b,M,_),c<0?(A=b[0],M!=_&&(A=A*Yt+(b[1]||0)),p=A/S|0,p>1?(p>=Yt&&(p=Yt-1),d=t(N,p),m=d.length,_=b.length,c=e(d,b,m,_),c==1&&(p--,r(d,M<m?I:N,m))):(p==0&&(c=p=1),d=N.slice()),m=d.length,m<_&&d.unshift(0),r(b,d,_),c==-1&&(_=b.length,c=e(N,b,M,_),c<1&&(p++,r(b,M<_?I:N,_))),_=b.length):c===0&&(p++,b=[0]),x[h++]=p,c&&b[0]?b[_++]=C[E]||0:(b=[C[E]],_=1);while((E++<w||b[0]!==void 0)&&T--)}return x[0]||x.shift(),g.e=l,Mt(g,u?o+Ht(g)+1:o)}}();function s1(t,e){var r,n,a,o,u,c,l=0,h=0,p=t.constructor,d=p.precision;if(Ht(t)>16)throw Error(dp+Ht(t));if(!t.s)return new p(ye);for(Rt=!1,c=d,u=new p(.03125);t.abs().gte(.1);)t=t.times(u),h+=5;for(n=Math.log(Nr(2,h))/Math.LN10*2+5|0,c+=n,r=a=o=new p(ye),p.precision=c;;){if(a=Mt(a.times(t),c),r=r.times(++l),u=o.plus(or(a,r,c)),We(u.d).slice(0,c)===We(o.d).slice(0,c)){for(;h--;)o=Mt(o.times(o),c);return p.precision=d,e==null?(Rt=!0,Mt(o,d)):o}o=u}}function Ht(t){for(var e=t.e*kt,r=t.d[0];r>=10;r/=10)e++;return e}function Tf(t,e,r){if(e>t.LN10.sd())throw Rt=!0,r&&(t.precision=r),Error(Se+"LN10 precision limit exceeded");return Mt(new t(t.LN10),e)}function mr(t){for(var e="";t--;)e+="0";return e}function zi(t,e){var r,n,a,o,u,c,l,h,p,d=1,m=10,g=t,x=g.d,b=g.constructor,_=b.precision;if(g.s<1)throw Error(Se+(g.s?"NaN":"-Infinity"));if(g.eq(ye))return new b(0);if(e==null?(Rt=!1,h=_):h=e,g.eq(10))return e==null&&(Rt=!0),Tf(b,h);if(h+=m,b.precision=h,r=We(x),n=r.charAt(0),o=Ht(g),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)g=g.times(t),r=We(g.d),n=r.charAt(0),d++;o=Ht(g),n>1?(g=new b("0."+r),o++):g=new b(n+"."+r.slice(1))}else return l=Tf(b,h+2,_).times(o+""),g=zi(new b(n+"."+r.slice(1)),h-m).plus(l),b.precision=_,e==null?(Rt=!0,Mt(g,_)):g;for(c=u=g=or(g.minus(ye),g.plus(ye),h),p=Mt(g.times(g),h),a=3;;){if(u=Mt(u.times(p),h),l=c.plus(or(u,new b(a),h)),We(l.d).slice(0,h)===We(c.d).slice(0,h))return c=c.times(2),o!==0&&(c=c.plus(Tf(b,h+2,_).times(o+""))),c=or(c,new b(d),h),b.precision=_,e==null?(Rt=!0,Mt(c,_)):c;c=l,a+=2}}function yb(t,e){var r,n,a;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;e.charCodeAt(n)===48;)++n;for(a=e.length;e.charCodeAt(a-1)===48;)--a;if(e=e.slice(n,a),e){if(a-=n,r=r-n-1,t.e=Xn(r/kt),t.d=[],n=(r+1)%kt,r<0&&(n+=kt),n<a){for(n&&t.d.push(+e.slice(0,n)),a-=kt;n<a;)t.d.push(+e.slice(n,n+=kt));e=e.slice(n),n=kt-e.length}else n-=a;for(;n--;)e+="0";if(t.d.push(+e),Rt&&(t.e>Ao||t.e<-Ao))throw Error(dp+r)}else t.s=0,t.e=0,t.d=[0];return t}function Mt(t,e,r){var n,a,o,u,c,l,h,p,d=t.d;for(u=1,o=d[0];o>=10;o/=10)u++;if(n=e-u,n<0)n+=kt,a=e,h=d[p=0];else{if(p=Math.ceil((n+1)/kt),o=d.length,p>=o)return t;for(h=o=d[p],u=1;o>=10;o/=10)u++;n%=kt,a=n-kt+u}if(r!==void 0&&(o=Nr(10,u-a-1),c=h/o%10|0,l=e<0||d[p+1]!==void 0||h%o,l=r<4?(c||l)&&(r==0||r==(t.s<0?3:2)):c>5||c==5&&(r==4||l||r==6&&(n>0?a>0?h/Nr(10,u-a):0:d[p-1])%10&1||r==(t.s<0?8:7))),e<1||!d[0])return l?(o=Ht(t),d.length=1,e=e-o-1,d[0]=Nr(10,(kt-e%kt)%kt),t.e=Xn(-e/kt)||0):(d.length=1,d[0]=t.e=t.s=0),t;if(n==0?(d.length=p,o=1,p--):(d.length=p+1,o=Nr(10,kt-n),d[p]=a>0?(h/Nr(10,u-a)%Nr(10,a)|0)*o:0),l)for(;;)if(p==0){(d[0]+=o)==Yt&&(d[0]=1,++t.e);break}else{if(d[p]+=o,d[p]!=Yt)break;d[p--]=0,o=1}for(n=d.length;d[--n]===0;)d.pop();if(Rt&&(t.e>Ao||t.e<-Ao))throw Error(dp+Ht(t));return t}function u1(t,e){var r,n,a,o,u,c,l,h,p,d,m=t.constructor,g=m.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new m(t),Rt?Mt(e,g):e;if(l=t.d,d=e.d,n=e.e,h=t.e,l=l.slice(),u=h-n,u){for(p=u<0,p?(r=l,u=-u,c=d.length):(r=d,n=h,c=l.length),a=Math.max(Math.ceil(g/kt),c)+2,u>a&&(u=a,r.length=1),r.reverse(),a=u;a--;)r.push(0);r.reverse()}else{for(a=l.length,c=d.length,p=a<c,p&&(c=a),a=0;a<c;a++)if(l[a]!=d[a]){p=l[a]<d[a];break}u=0}for(p&&(r=l,l=d,d=r,e.s=-e.s),c=l.length,a=d.length-c;a>0;--a)l[c++]=0;for(a=d.length;a>u;){if(l[--a]<d[a]){for(o=a;o&&l[--o]===0;)l[o]=Yt-1;--l[o],l[a]+=Yt}l[a]-=d[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(e.d=l,e.e=n,Rt?Mt(e,g):e):new m(0)}function Gr(t,e,r){var n,a=Ht(t),o=We(t.d),u=o.length;return e?(r&&(n=r-u)>0?o=o.charAt(0)+"."+o.slice(1)+mr(n):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+mr(-a-1)+o,r&&(n=r-u)>0&&(o+=mr(n))):a>=u?(o+=mr(a+1-u),r&&(n=r-a-1)>0&&(o=o+"."+mr(n))):((n=a+1)<u&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-u)>0&&(a+1===u&&(o+="."),o+=mr(n))),t.s<0?"-"+o:o}function gb(t,e){if(t.length>e)return t.length=e,!0}function c1(t){var e,r,n;function a(o){var u=this;if(!(u instanceof a))return new a(o);if(u.constructor=a,o instanceof a){u.s=o.s,u.e=o.e,u.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Ur+o);if(o>0)u.s=1;else if(o<0)o=-o,u.s=-1;else{u.s=0,u.e=0,u.d=[0];return}if(o===~~o&&o<1e7){u.e=0,u.d=[o];return}return yb(u,o.toString())}else if(typeof o!="string")throw Error(Ur+o);if(o.charCodeAt(0)===45?(o=o.slice(1),u.s=-1):u.s=1,hL.test(o))yb(u,o);else throw Error(Ur+o)}if(a.prototype=it,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=c1,a.config=a.set=dL,t===void 0&&(t={}),t)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<n.length;)t.hasOwnProperty(r=n[e++])||(t[r]=this[r]);return a.config(t),a}function dL(t){if(!t||typeof t!="object")throw Error(Se+"Object expected");var e,r,n,a=["precision",1,Vn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<a.length;e+=3)if((n=t[r=a[e]])!==void 0)if(Xn(n)===n&&n>=a[e+1]&&n<=a[e+2])this[r]=n;else throw Error(Ur+r+": "+n);if((n=t[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ur+r+": "+n);return this}var pp=c1(fL);ye=new pp(1);const Et=pp;function pL(t){return gL(t)||yL(t)||mL(t)||vL()}function vL(){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 mL(t,e){if(t){if(typeof t=="string")return jh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jh(t,e)}}function yL(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function gL(t){if(Array.isArray(t))return jh(t)}function jh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var _L=function(e){return e},l1={},f1=function(e){return e===l1},_b=function(e){return function r(){return arguments.length===0||arguments.length===1&&f1(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},bL=function t(e,r){return e===1?r:_b(function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var u=a.filter(function(c){return c!==l1}).length;return u>=e?r.apply(void 0,a):t(e-u,_b(function(){for(var c=arguments.length,l=new Array(c),h=0;h<c;h++)l[h]=arguments[h];var p=a.map(function(d){return f1(d)?l.shift():d});return r.apply(void 0,pL(p).concat(l))}))})},gs=function(e){return bL(e.length,e)},Ih=function(e,r){for(var n=[],a=e;a<r;++a)n[a-e]=a;return n},xL=gs(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return e[r]}).map(t)}),wL=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.length)return _L;var a=r.reverse(),o=a[0],u=a.slice(1);return function(){return u.reduce(function(c,l){return l(c)},o.apply(void 0,arguments))}},Lh=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},h1=function(e){var r=null,n=null;return function(){for(var a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];return r&&o.every(function(c,l){return c===r[l]})||(r=o,n=e.apply(void 0,o)),n}};function PL(t){var e;return t===0?e=1:e=Math.floor(new Et(t).abs().log(10).toNumber())+1,e}function OL(t,e,r){for(var n=new Et(t),a=0,o=[];n.lt(e)&&a<1e5;)o.push(n.toNumber()),n=n.add(r),a++;return o}var SL=gs(function(t,e,r){var n=+t,a=+e;return n+r*(a-n)}),AL=gs(function(t,e,r){var n=e-+t;return n=n||1/0,(r-t)/n}),TL=gs(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const _s={rangeStep:OL,getDigitCount:PL,interpolateNumber:SL,uninterpolateNumber:AL,uninterpolateTruncation:TL};function kh(t){return CL(t)||ML(t)||d1(t)||EL()}function EL(){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 ML(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function CL(t){if(Array.isArray(t))return Rh(t)}function Fi(t,e){return LL(t)||IL(t,e)||d1(t,e)||jL()}function jL(){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 d1(t,e){if(t){if(typeof t=="string")return Rh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rh(t,e)}}function Rh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function IL(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,a=!1,o=void 0;try{for(var u=t[Symbol.iterator](),c;!(n=(c=u.next()).done)&&(r.push(c.value),!(e&&r.length===e));n=!0);}catch(l){a=!0,o=l}finally{try{!n&&u.return!=null&&u.return()}finally{if(a)throw o}}return r}}function LL(t){if(Array.isArray(t))return t}function p1(t){var e=Fi(t,2),r=e[0],n=e[1],a=r,o=n;return r>n&&(a=n,o=r),[a,o]}function v1(t,e,r){if(t.lte(0))return new Et(0);var n=_s.getDigitCount(t.toNumber()),a=new Et(10).pow(n),o=t.div(a),u=n!==1?.05:.1,c=new Et(Math.ceil(o.div(u).toNumber())).add(r).mul(u),l=c.mul(a);return e?l:new Et(Math.ceil(l))}function kL(t,e,r){var n=1,a=new Et(t);if(!a.isint()&&r){var o=Math.abs(t);o<1?(n=new Et(10).pow(_s.getDigitCount(t)-1),a=new Et(Math.floor(a.div(n).toNumber())).mul(n)):o>1&&(a=new Et(Math.floor(t)))}else t===0?a=new Et(Math.floor((e-1)/2)):r||(a=new Et(Math.floor(t)));var u=Math.floor((e-1)/2),c=wL(xL(function(l){return a.add(new Et(l-u).mul(n)).toNumber()}),Ih);return c(0,e)}function m1(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Et(0),tickMin:new Et(0),tickMax:new Et(0)};var o=v1(new Et(e).sub(t).div(r-1),n,a),u;t<=0&&e>=0?u=new Et(0):(u=new Et(t).add(e).div(2),u=u.sub(new Et(u).mod(o)));var c=Math.ceil(u.sub(t).div(o).toNumber()),l=Math.ceil(new Et(e).sub(u).div(o).toNumber()),h=c+l+1;return h>r?m1(t,e,r,n,a+1):(h<r&&(l=e>0?l+(r-h):l,c=e>0?c:c+(r-h)),{step:o,tickMin:u.sub(new Et(c).mul(o)),tickMax:u.add(new Et(l).mul(o))})}function RL(t){var e=Fi(t,2),r=e[0],n=e[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(a,2),c=p1([r,n]),l=Fi(c,2),h=l[0],p=l[1];if(h===-1/0||p===1/0){var d=p===1/0?[h].concat(kh(Ih(0,a-1).map(function(){return 1/0}))):[].concat(kh(Ih(0,a-1).map(function(){return-1/0})),[p]);return r>n?Lh(d):d}if(h===p)return kL(h,a,o);var m=m1(h,p,u,o),g=m.step,x=m.tickMin,b=m.tickMax,_=_s.rangeStep(x,b.add(new Et(.1).mul(g)),g);return r>n?Lh(_):_}function NL(t,e){var r=Fi(t,2),n=r[0],a=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=p1([n,a]),c=Fi(u,2),l=c[0],h=c[1];if(l===-1/0||h===1/0)return[n,a];if(l===h)return[l];var p=Math.max(e,2),d=v1(new Et(h).sub(l).div(p-1),o,0),m=[].concat(kh(_s.rangeStep(new Et(l),new Et(h).sub(new Et(.99).mul(d)),d)),[h]);return n>a?Lh(m):m}var $L=h1(RL),DL=h1(NL),BL="Invariant failed";function Kr(t,e){throw new Error(BL)}var qL=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function In(t){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(t)}function To(){return To=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},To.apply(this,arguments)}function zL(t,e){return HL(t)||UL(t,e)||WL(t,e)||FL()}function FL(){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 WL(t,e){if(t){if(typeof t=="string")return bb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bb(t,e)}}function bb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function UL(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function HL(t){if(Array.isArray(t))return t}function ZL(t,e){if(t==null)return{};var r=GL(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function GL(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function KL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function VL(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_1(n.key),n)}}function XL(t,e,r){return e&&VL(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function YL(t,e,r){return e=Eo(e),JL(t,y1()?Reflect.construct(e,r||[],Eo(t).constructor):e.apply(t,r))}function JL(t,e){if(e&&(In(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QL(t)}function QL(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y1=function(){return!!t})()}function Eo(t){return Eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Eo(t)}function tk(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nh(t,e)}function Nh(t,e){return Nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Nh(t,e)}function g1(t,e,r){return e=_1(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _1(t){var e=ek(t,"string");return In(e)=="symbol"?e:e+""}function ek(t,e){if(In(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var bs=function(t){function e(){return KL(this,e),YL(this,e,arguments)}return tk(e,t),XL(e,[{key:"render",value:function(){var n=this.props,a=n.offset,o=n.layout,u=n.width,c=n.dataKey,l=n.data,h=n.dataPointFormatter,p=n.xAxis,d=n.yAxis,m=ZL(n,qL),g=Pt(m,!1);this.props.direction==="x"&&p.type!=="number"&&Kr();var x=l.map(function(b){var _=h(b,c),A=_.x,T=_.y,O=_.value,E=_.errorVal;if(!E)return null;var w=[],S,M;if(Array.isArray(E)){var I=zL(E,2);S=I[0],M=I[1]}else S=M=E;if(o==="vertical"){var k=p.scale,$=T+a,C=$+u,N=$-u,q=k(O-S),F=k(O+M);w.push({x1:F,y1:C,x2:F,y2:N}),w.push({x1:q,y1:$,x2:F,y2:$}),w.push({x1:q,y1:C,x2:q,y2:N})}else if(o==="horizontal"){var W=d.scale,Z=A+a,X=Z-u,H=Z+u,Q=W(O-S),Y=W(O+M);w.push({x1:X,y1:Y,x2:H,y2:Y}),w.push({x1:Z,y1:Q,x2:Z,y2:Y}),w.push({x1:X,y1:Q,x2:H,y2:Q})}return R.createElement(Jt,To({className:"recharts-errorBar",key:"bar-".concat(w.map(function(et){return"".concat(et.x1,"-").concat(et.x2,"-").concat(et.y1,"-").concat(et.y2)}))},g),w.map(function(et){return R.createElement("line",To({},et,{key:"line-".concat(et.x1,"-").concat(et.x2,"-").concat(et.y1,"-").concat(et.y2)}))}))});return R.createElement(Jt,{className:"recharts-errorBars"},x)}}])}(R.Component);g1(bs,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});g1(bs,"displayName","ErrorBar");function Wi(t){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wi(t)}function xb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Lr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xb(Object(r),!0).forEach(function(n){rk(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xb(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rk(t,e,r){return e=nk(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nk(t){var e=ik(t,"string");return Wi(e)=="symbol"?e:e+""}function ik(t,e){if(Wi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var b1=function(e){var r=e.children,n=e.formattedGraphicalItems,a=e.legendWidth,o=e.legendContent,u=ve(r,Fe);if(!u)return null;var c=Fe.defaultProps,l=c!==void 0?Lr(Lr({},c),u.props):{},h;return u.props&&u.props.payload?h=u.props&&u.props.payload:o==="children"?h=(n||[]).reduce(function(p,d){var m=d.item,g=d.props,x=g.sectors||g.data||[];return p.concat(x.map(function(b){return{type:u.props.iconType||m.props.legendType,value:b.name,color:b.fill,payload:b}}))},[]):h=(n||[]).map(function(p){var d=p.item,m=d.type.defaultProps,g=m!==void 0?Lr(Lr({},m),d.props):{},x=g.dataKey,b=g.name,_=g.legendType,A=g.hide;return{inactive:A,dataKey:x,type:l.iconType||_||"square",color:vp(d),value:b||x,payload:g}}),Lr(Lr(Lr({},l),Fe.getWithHeight(u,a)),{},{payload:h,item:u})};function Ui(t){"@babel/helpers - typeof";return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(t)}function wb(t){return uk(t)||sk(t)||ok(t)||ak()}function ak(){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 ok(t,e){if(t){if(typeof t=="string")return $h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $h(t,e)}}function sk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uk(t){if(Array.isArray(t))return $h(t)}function $h(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function qt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Pb(Object(r),!0).forEach(function(n){Pn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pn(t,e,r){return e=ck(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ck(t){var e=lk(t,"string");return Ui(e)=="symbol"?e:e+""}function lk(t,e){if(Ui(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ge(t,e,r){return At(t)||At(e)?r:Gt(e)?Oe(t,e,r):gt(e)?e(t):r}function Ti(t,e,r,n){var a=uL(t,function(c){return Ge(c,e)});if(r==="number"){var o=a.filter(function(c){return tt(c)||parseFloat(c)});return o.length?[ys(o),ms(o)]:[1/0,-1/0]}var u=n?a.filter(function(c){return!At(c)}):a;return u.map(function(c){return Gt(c)||c instanceof Date?c:""})}var fk=function(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=-1,c=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(c<=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,h=0;h<c;h++){var p=h>0?a[h-1].coordinate:a[c-1].coordinate,d=a[h].coordinate,m=h>=c-1?a[0].coordinate:a[h+1].coordinate,g=void 0;if(ke(d-p)!==ke(m-d)){var x=[];if(ke(m-d)===ke(l[1]-l[0])){g=m;var b=d+l[1]-l[0];x[0]=Math.min(b,(b+p)/2),x[1]=Math.max(b,(b+p)/2)}else{g=p;var _=m+l[1]-l[0];x[0]=Math.min(d,(_+d)/2),x[1]=Math.max(d,(_+d)/2)}var A=[Math.min(d,(g+d)/2),Math.max(d,(g+d)/2)];if(e>A[0]&&e<=A[1]||e>=x[0]&&e<=x[1]){u=a[h].index;break}}else{var T=Math.min(p,m),O=Math.max(p,m);if(e>(T+d)/2&&e<=(O+d)/2){u=a[h].index;break}}}else for(var E=0;E<c;E++)if(E===0&&e<=(n[E].coordinate+n[E+1].coordinate)/2||E>0&&E<c-1&&e>(n[E].coordinate+n[E-1].coordinate)/2&&e<=(n[E].coordinate+n[E+1].coordinate)/2||E===c-1&&e>(n[E].coordinate+n[E-1].coordinate)/2){u=n[E].index;break}return u},vp=function(e){var r,n=e,a=n.type.displayName,o=(r=e.type)!==null&&r!==void 0&&r.defaultProps?qt(qt({},e.type.defaultProps),e.props):e.props,u=o.stroke,c=o.fill,l;switch(a){case"Line":l=u;break;case"Area":case"Radar":l=u&&u!=="none"?u:c;break;default:l=c;break}return l},hk=function(e){var r=e.barSize,n=e.totalSize,a=e.stackGroups,o=a===void 0?{}:a;if(!o)return{};for(var u={},c=Object.keys(o),l=0,h=c.length;l<h;l++)for(var p=o[c[l]].stackGroups,d=Object.keys(p),m=0,g=d.length;m<g;m++){var x=p[d[m]],b=x.items,_=x.cateAxisId,A=b.filter(function(M){return ir(M.type).indexOf("Bar")>=0});if(A&&A.length){var T=A[0].type.defaultProps,O=T!==void 0?qt(qt({},T),A[0].props):A[0].props,E=O.barSize,w=O[_];u[w]||(u[w]=[]);var S=At(E)?r:E;u[w].push({item:A[0],stackList:A.slice(1),barSize:At(S)?void 0:Zr(S,n,0)})}}return u},dk=function(e){var r=e.barGap,n=e.barCategoryGap,a=e.bandSize,o=e.sizeList,u=o===void 0?[]:o,c=e.maxBarSize,l=u.length;if(l<1)return null;var h=Zr(r,a,0,!0),p,d=[];if(u[0].barSize===+u[0].barSize){var m=!1,g=a/l,x=u.reduce(function(E,w){return E+w.barSize||0},0);x+=(l-1)*h,x>=a&&(x-=(l-1)*h,h=0),x>=a&&g>0&&(m=!0,g*=.9,x=l*g);var b=(a-x)/2>>0,_={offset:b-h,size:0};p=u.reduce(function(E,w){var S={item:w.item,position:{offset:_.offset+_.size+h,size:m?g:w.barSize}},M=[].concat(wb(E),[S]);return _=M[M.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(I){M.push({item:I,position:_})}),M},d)}else{var A=Zr(n,a,0,!0);a-2*A-(l-1)*h<=0&&(h=0);var T=(a-2*A-(l-1)*h)/l;T>1&&(T>>=0);var O=c===+c?Math.min(T,c):T;p=u.reduce(function(E,w,S){var M=[].concat(wb(E),[{item:w.item,position:{offset:A+(T+h)*S+(T-O)/2,size:O}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(I){M.push({item:I,position:M[M.length-1].position})}),M},d)}return p},pk=function(e,r,n,a){var o=n.children,u=n.width,c=n.margin,l=u-(c.left||0)-(c.right||0),h=b1({children:o,legendWidth:l});if(h){var p=a||{},d=p.width,m=p.height,g=h.align,x=h.verticalAlign,b=h.layout;if((b==="vertical"||b==="horizontal"&&x==="middle")&&g!=="center"&&tt(e[g]))return qt(qt({},e),{},Pn({},g,e[g]+(d||0)));if((b==="horizontal"||b==="vertical"&&g==="center")&&x!=="middle"&&tt(e[x]))return qt(qt({},e),{},Pn({},x,e[x]+(m||0)))}return e},vk=function(e,r,n){return At(r)?!0:e==="horizontal"?r==="yAxis":e==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},x1=function(e,r,n,a,o){var u=r.props.children,c=Re(u,bs).filter(function(h){return vk(a,o,h.props.direction)});if(c&&c.length){var l=c.map(function(h){return h.props.dataKey});return e.reduce(function(h,p){var d=Ge(p,n);if(At(d))return h;var m=Array.isArray(d)?[ys(d),ms(d)]:[d,d],g=l.reduce(function(x,b){var _=Ge(p,b,0),A=m[0]-Math.abs(Array.isArray(_)?_[0]:_),T=m[1]+Math.abs(Array.isArray(_)?_[1]:_);return[Math.min(A,x[0]),Math.max(T,x[1])]},[1/0,-1/0]);return[Math.min(g[0],h[0]),Math.max(g[1],h[1])]},[1/0,-1/0])}return null},mk=function(e,r,n,a,o){var u=r.map(function(c){return x1(e,c,n,o,a)}).filter(function(c){return!At(c)});return u&&u.length?u.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]):null},w1=function(e,r,n,a,o){var u=r.map(function(l){var h=l.props.dataKey;return n==="number"&&h&&x1(e,l,h,a)||Ti(e,h,n,o)});if(n==="number")return u.reduce(function(l,h){return[Math.min(l[0],h[0]),Math.max(l[1],h[1])]},[1/0,-1/0]);var c={};return u.reduce(function(l,h){for(var p=0,d=h.length;p<d;p++)c[h[p]]||(c[h[p]]=!0,l.push(h[p]));return l},[])},P1=function(e,r){return e==="horizontal"&&r==="xAxis"||e==="vertical"&&r==="yAxis"||e==="centric"&&r==="angleAxis"||e==="radial"&&r==="radiusAxis"},O1=function(e,r,n,a){if(a)return e.map(function(l){return l.coordinate});var o,u,c=e.map(function(l){return l.coordinate===r&&(o=!0),l.coordinate===n&&(u=!0),l.coordinate});return o||c.push(r),u||c.push(n),c},nr=function(e,r,n){if(!e)return null;var a=e.scale,o=e.duplicateDomain,u=e.type,c=e.range,l=e.realScaleType==="scaleBand"?a.bandwidth()/2:2,h=(r||n)&&u==="category"&&a.bandwidth?a.bandwidth()/l:0;if(h=e.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?ke(c[0]-c[1])*2*h:h,r&&(e.ticks||e.niceTicks)){var p=(e.ticks||e.niceTicks).map(function(d){var m=o?o.indexOf(d):d;return{coordinate:a(m)+h,value:d,offset:h}});return p.filter(function(d){return!ha(d.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(d,m){return{coordinate:a(d)+h,value:d,index:m,offset:h}}):a.ticks&&!n?a.ticks(e.tickCount).map(function(d){return{coordinate:a(d)+h,value:d,offset:h}}):a.domain().map(function(d,m){return{coordinate:a(d)+h,value:o?o[d]:d,index:m,offset:h}})},Ef=new WeakMap,Va=function(e,r){if(typeof r!="function")return e;Ef.has(e)||Ef.set(e,new WeakMap);var n=Ef.get(e);if(n.has(r))return n.get(r);var a=function(){e.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},yk=function(e,r,n){var a=e.scale,o=e.type,u=e.layout,c=e.axisType;if(a==="auto")return u==="radial"&&c==="radiusAxis"?{scale:Ni(),realScaleType:"band"}:u==="radial"&&c==="angleAxis"?{scale:wo(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Ai(),realScaleType:"point"}:o==="category"?{scale:Ni(),realScaleType:"band"}:{scale:wo(),realScaleType:"linear"};if(fa(a)){var l="scale".concat(ns(a));return{scale:(ub[l]||Ai)(),realScaleType:ub[l]?l:"point"}}return gt(a)?{scale:a}:{scale:Ai(),realScaleType:"point"}},Ob=1e-4,gk=function(e){var r=e.domain();if(!(!r||r.length<=2)){var n=r.length,a=e.range(),o=Math.min(a[0],a[1])-Ob,u=Math.max(a[0],a[1])+Ob,c=e(r[0]),l=e(r[n-1]);(c<o||c>u||l<o||l>u)&&e.domain([r[0],r[n-1]])}},_k=function(e,r){if(!e)return null;for(var n=0,a=e.length;n<a;n++)if(e[n].item===r)return e[n].position;return null},bk=function(e,r){if(!r||r.length!==2||!tt(r[0])||!tt(r[1]))return e;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),o=[e[0],e[1]];return(!tt(e[0])||e[0]<n)&&(o[0]=n),(!tt(e[1])||e[1]>a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]<n&&(o[1]=n),o},xk=function(e){var r=e.length;if(!(r<=0))for(var n=0,a=e[0].length;n<a;++n)for(var o=0,u=0,c=0;c<r;++c){var l=ha(e[c][n][1])?e[c][n][0]:e[c][n][1];l>=0?(e[c][n][0]=o,e[c][n][1]=o+l,o=e[c][n][1]):(e[c][n][0]=u,e[c][n][1]=u+l,u=e[c][n][1])}},wk=function(e){var r=e.length;if(!(r<=0))for(var n=0,a=e[0].length;n<a;++n)for(var o=0,u=0;u<r;++u){var c=ha(e[u][n][1])?e[u][n][0]:e[u][n][1];c>=0?(e[u][n][0]=o,e[u][n][1]=o+c,o=e[u][n][1]):(e[u][n][0]=0,e[u][n][1]=0)}},Pk={sign:xk,expand:oT,none:On,silhouette:sT,wiggle:uT,positive:wk},Ok=function(e,r,n){var a=r.map(function(c){return c.props.dataKey}),o=Pk[n],u=aT().keys(a).value(function(c,l){return+Ge(c,l,0)}).order(dh).offset(o);return u(e)},Sk=function(e,r,n,a,o,u){if(!e)return null;var c=u?r.reverse():r,l={},h=c.reduce(function(d,m){var g,x=(g=m.type)!==null&&g!==void 0&&g.defaultProps?qt(qt({},m.type.defaultProps),m.props):m.props,b=x.stackId,_=x.hide;if(_)return d;var A=x[n],T=d[A]||{hasStack:!1,stackGroups:{}};if(Gt(b)){var O=T.stackGroups[b]||{numericAxisId:n,cateAxisId:a,items:[]};O.items.push(m),T.hasStack=!0,T.stackGroups[b]=O}else T.stackGroups[rs("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[m]};return qt(qt({},d),{},Pn({},A,T))},l),p={};return Object.keys(h).reduce(function(d,m){var g=h[m];if(g.hasStack){var x={};g.stackGroups=Object.keys(g.stackGroups).reduce(function(b,_){var A=g.stackGroups[_];return qt(qt({},b),{},Pn({},_,{numericAxisId:n,cateAxisId:a,items:A.items,stackedData:Ok(e,A.items,o)}))},x)}return qt(qt({},d),{},Pn({},m,g))},p)},Ak=function(e,r){var n=r.realScaleType,a=r.type,o=r.tickCount,u=r.originalDomain,c=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&a==="number"&&u&&(u[0]==="auto"||u[1]==="auto")){var h=e.domain();if(!h.length)return null;var p=$L(h,o,c);return e.domain([ys(p),ms(p)]),{niceTicks:p}}if(o&&a==="number"){var d=e.domain(),m=DL(d,o,c);return{niceTicks:m}}return null},Sb=function(e){var r=e.axis,n=e.ticks,a=e.offset,o=e.bandSize,u=e.entry,c=e.index;if(r.type==="category")return n[c]?n[c].coordinate+a:null;var l=Ge(u,r.dataKey,r.domain[c]);return At(l)?null:r.scale(l)-o/2+a},Tk=function(e){var r=e.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return a<=0&&o>=0?0:o<0?o:a}return n[0]},Ek=function(e,r){var n,a=(n=e.type)!==null&&n!==void 0&&n.defaultProps?qt(qt({},e.type.defaultProps),e.props):e.props,o=a.stackId;if(Gt(o)){var u=r[o];if(u){var c=u.items.indexOf(e);return c>=0?u.stackedData[c]:null}}return null},Mk=function(e){return e.reduce(function(r,n){return[ys(n.concat([r[0]]).filter(tt)),ms(n.concat([r[1]]).filter(tt))]},[1/0,-1/0])},S1=function(e,r,n){return Object.keys(e).reduce(function(a,o){var u=e[o],c=u.stackedData,l=c.reduce(function(h,p){var d=Mk(p.slice(r,n+1));return[Math.min(h[0],d[0]),Math.max(h[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Ab=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Tb=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dh=function(e,r,n){if(gt(e))return e(r,n);if(!Array.isArray(e))return r;var a=[];if(tt(e[0]))a[0]=n?e[0]:Math.min(e[0],r[0]);else if(Ab.test(e[0])){var o=+Ab.exec(e[0])[1];a[0]=r[0]-o}else gt(e[0])?a[0]=e[0](r[0]):a[0]=r[0];if(tt(e[1]))a[1]=n?e[1]:Math.max(e[1],r[1]);else if(Tb.test(e[1])){var u=+Tb.exec(e[1])[1];a[1]=r[1]+u}else gt(e[1])?a[1]=e[1](r[1]):a[1]=r[1];return a},Mo=function(e,r,n){if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!n||a>0)return a}if(e&&r&&r.length>=2){for(var o=Fd(r,function(d){return d.coordinate}),u=1/0,c=1,l=o.length;c<l;c++){var h=o[c],p=o[c-1];u=Math.min((h.coordinate||0)-(p.coordinate||0),u)}return u===1/0?0:u}return n?void 0:0},Eb=function(e,r,n){return!e||!e.length||hp(e,Oe(n,"type.defaultProps.domain"))?r:e},A1=function(e,r){var n=e.type.defaultProps?qt(qt({},e.type.defaultProps),e.props):e.props,a=n.dataKey,o=n.name,u=n.unit,c=n.formatter,l=n.tooltipType,h=n.chartType,p=n.hide;return qt(qt({},Pt(e,!1)),{},{dataKey:a,unit:u,formatter:c,name:o||a,color:vp(e),value:Ge(r,a),type:l,payload:r,chartType:h,hide:p})};function Hi(t){"@babel/helpers - typeof";return Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hi(t)}function Mb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Cb(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Mb(Object(r),!0).forEach(function(n){Ck(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ck(t,e,r){return e=jk(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jk(t){var e=Ik(t,"string");return Hi(e)=="symbol"?e:e+""}function Ik(t,e){if(Hi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Co=Math.PI/180,Lk=function(e){return e*180/Math.PI},ne=function(e,r,n,a){return{x:e+Math.cos(-Co*a)*n,y:r+Math.sin(-Co*a)*n}},kk=function(e,r){var n=e.x,a=e.y,o=r.x,u=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(a-u,2))},Rk=function(e,r){var n=e.x,a=e.y,o=r.cx,u=r.cy,c=kk({x:n,y:a},{x:o,y:u});if(c<=0)return{radius:c};var l=(n-o)/c,h=Math.acos(l);return a>u&&(h=2*Math.PI-h),{radius:c,angle:Lk(h),angleInRadian:h}},Nk=function(e){var r=e.startAngle,n=e.endAngle,a=Math.floor(r/360),o=Math.floor(n/360),u=Math.min(a,o);return{startAngle:r-u*360,endAngle:n-u*360}},$k=function(e,r){var n=r.startAngle,a=r.endAngle,o=Math.floor(n/360),u=Math.floor(a/360),c=Math.min(o,u);return e+c*360},jb=function(e,r){var n=e.x,a=e.y,o=Rk({x:n,y:a},r),u=o.radius,c=o.angle,l=r.innerRadius,h=r.outerRadius;if(u<l||u>h)return!1;if(u===0)return!0;var p=Nk(r),d=p.startAngle,m=p.endAngle,g=c,x;if(d<=m){for(;g>m;)g-=360;for(;g<d;)g+=360;x=g>=d&&g<=m}else{for(;g>d;)g-=360;for(;g<m;)g+=360;x=g>=m&&g<=d}return x?Cb(Cb({},r),{},{radius:u,angle:$k(g,r)}):null};function Zi(t){"@babel/helpers - typeof";return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zi(t)}var Dk=["offset"];function Bk(t){return Wk(t)||Fk(t)||zk(t)||qk()}function qk(){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 zk(t,e){if(t){if(typeof t=="string")return Bh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bh(t,e)}}function Fk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wk(t){if(Array.isArray(t))return Bh(t)}function Bh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Uk(t,e){if(t==null)return{};var r=Hk(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Hk(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Ib(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ib(Object(r),!0).forEach(function(n){Zk(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ib(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Zk(t,e,r){return e=Gk(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gk(t){var e=Kk(t,"string");return Zi(e)=="symbol"?e:e+""}function Kk(t,e){if(Zi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Zi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gi(){return Gi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gi.apply(this,arguments)}var Vk=function(e){var r=e.value,n=e.formatter,a=At(e.children)?r:e.children;return gt(n)?n(a):a},Xk=function(e,r){var n=ke(r-e),a=Math.min(Math.abs(r-e),360);return n*a},Yk=function(e,r,n){var a=e.position,o=e.viewBox,u=e.offset,c=e.className,l=o,h=l.cx,p=l.cy,d=l.innerRadius,m=l.outerRadius,g=l.startAngle,x=l.endAngle,b=l.clockWise,_=(d+m)/2,A=Xk(g,x),T=A>=0?1:-1,O,E;a==="insideStart"?(O=g+T*u,E=b):a==="insideEnd"?(O=x-T*u,E=!b):a==="end"&&(O=x+T*u,E=b),E=A<=0?E:!E;var w=ne(h,p,_,O),S=ne(h,p,_,O+(E?1:-1)*359),M="M".concat(w.x,",").concat(w.y,`
A`).concat(_,",").concat(_,",0,1,").concat(E?0:1,`,
`).concat(S.x,",").concat(S.y),I=At(e.id)?rs("recharts-radial-line-"):e.id;return R.createElement("text",Gi({},n,{dominantBaseline:"central",className:Tt("recharts-radial-bar-label",c)}),R.createElement("defs",null,R.createElement("path",{id:I,d:M})),R.createElement("textPath",{xlinkHref:"#".concat(I)},r))},Jk=function(e){var r=e.viewBox,n=e.offset,a=e.position,o=r,u=o.cx,c=o.cy,l=o.innerRadius,h=o.outerRadius,p=o.startAngle,d=o.endAngle,m=(p+d)/2;if(a==="outside"){var g=ne(u,c,h+n,m),x=g.x,b=g.y;return{x,y:b,textAnchor:x>=u?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:u,y:c,textAnchor:"middle",verticalAnchor:"end"};var _=(l+h)/2,A=ne(u,c,_,m),T=A.x,O=A.y;return{x:T,y:O,textAnchor:"middle",verticalAnchor:"middle"}},Qk=function(e){var r=e.viewBox,n=e.parentViewBox,a=e.offset,o=e.position,u=r,c=u.x,l=u.y,h=u.width,p=u.height,d=p>=0?1:-1,m=d*a,g=d>0?"end":"start",x=d>0?"start":"end",b=h>=0?1:-1,_=b*a,A=b>0?"end":"start",T=b>0?"start":"end";if(o==="top"){var O={x:c+h/2,y:l-d*a,textAnchor:"middle",verticalAnchor:g};return Zt(Zt({},O),n?{height:Math.max(l-n.y,0),width:h}:{})}if(o==="bottom"){var E={x:c+h/2,y:l+p+m,textAnchor:"middle",verticalAnchor:x};return Zt(Zt({},E),n?{height:Math.max(n.y+n.height-(l+p),0),width:h}:{})}if(o==="left"){var w={x:c-_,y:l+p/2,textAnchor:A,verticalAnchor:"middle"};return Zt(Zt({},w),n?{width:Math.max(w.x-n.x,0),height:p}:{})}if(o==="right"){var S={x:c+h+_,y:l+p/2,textAnchor:T,verticalAnchor:"middle"};return Zt(Zt({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:p}:{})}var M=n?{width:h,height:p}:{};return o==="insideLeft"?Zt({x:c+_,y:l+p/2,textAnchor:T,verticalAnchor:"middle"},M):o==="insideRight"?Zt({x:c+h-_,y:l+p/2,textAnchor:A,verticalAnchor:"middle"},M):o==="insideTop"?Zt({x:c+h/2,y:l+m,textAnchor:"middle",verticalAnchor:x},M):o==="insideBottom"?Zt({x:c+h/2,y:l+p-m,textAnchor:"middle",verticalAnchor:g},M):o==="insideTopLeft"?Zt({x:c+_,y:l+m,textAnchor:T,verticalAnchor:x},M):o==="insideTopRight"?Zt({x:c+h-_,y:l+m,textAnchor:A,verticalAnchor:x},M):o==="insideBottomLeft"?Zt({x:c+_,y:l+p-m,textAnchor:T,verticalAnchor:g},M):o==="insideBottomRight"?Zt({x:c+h-_,y:l+p-m,textAnchor:A,verticalAnchor:g},M):Zn(o)&&(tt(o.x)||$r(o.x))&&(tt(o.y)||$r(o.y))?Zt({x:c+Zr(o.x,h),y:l+Zr(o.y,p),textAnchor:"end",verticalAnchor:"end"},M):Zt({x:c+h/2,y:l+p/2,textAnchor:"middle",verticalAnchor:"middle"},M)},t2=function(e){return"cx"in e&&tt(e.cx)};function ae(t){var e=t.offset,r=e===void 0?5:e,n=Uk(t,Dk),a=Zt({offset:r},n),o=a.viewBox,u=a.position,c=a.value,l=a.children,h=a.content,p=a.className,d=p===void 0?"":p,m=a.textBreakAll;if(!o||At(c)&&At(l)&&!K.isValidElement(h)&&!gt(h))return null;if(K.isValidElement(h))return K.cloneElement(h,a);var g;if(gt(h)){if(g=K.createElement(h,a),K.isValidElement(g))return g}else g=Vk(a);var x=t2(o),b=Pt(a,!0);if(x&&(u==="insideStart"||u==="insideEnd"||u==="end"))return Yk(a,g,b);var _=x?Jk(a):Qk(a);return R.createElement(vo,Gi({className:Tt("recharts-label",d)},b,_,{breakAll:m}),g)}ae.displayName="Label";var T1=function(e){var r=e.cx,n=e.cy,a=e.angle,o=e.startAngle,u=e.endAngle,c=e.r,l=e.radius,h=e.innerRadius,p=e.outerRadius,d=e.x,m=e.y,g=e.top,x=e.left,b=e.width,_=e.height,A=e.clockWise,T=e.labelViewBox;if(T)return T;if(tt(b)&&tt(_)){if(tt(d)&&tt(m))return{x:d,y:m,width:b,height:_};if(tt(g)&&tt(x))return{x:g,y:x,width:b,height:_}}return tt(d)&&tt(m)?{x:d,y:m,width:0,height:0}:tt(r)&&tt(n)?{cx:r,cy:n,startAngle:o||a||0,endAngle:u||a||0,innerRadius:h||0,outerRadius:p||l||c||0,clockWise:A}:e.viewBox?e.viewBox:{}},e2=function(e,r){return e?e===!0?R.createElement(ae,{key:"label-implicit",viewBox:r}):Gt(e)?R.createElement(ae,{key:"label-implicit",viewBox:r,value:e}):K.isValidElement(e)?e.type===ae?K.cloneElement(e,{key:"label-implicit",viewBox:r}):R.createElement(ae,{key:"label-implicit",content:e,viewBox:r}):gt(e)?R.createElement(ae,{key:"label-implicit",content:e,viewBox:r}):Zn(e)?R.createElement(ae,Gi({viewBox:r},e,{key:"label-implicit"})):null:null},r2=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var a=e.children,o=T1(e),u=Re(a,ae).map(function(l,h){return K.cloneElement(l,{viewBox:r||o,key:"label-".concat(h)})});if(!n)return u;var c=e2(e.label,r||o);return[c].concat(Bk(u))};ae.parseViewBox=T1;ae.renderCallByParent=r2;var Mf,Lb;function n2(){if(Lb)return Mf;Lb=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return Mf=t,Mf}var i2=n2();const a2=Ct(i2);function Ki(t){"@babel/helpers - typeof";return Ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ki(t)}var o2=["valueAccessor"],s2=["data","dataKey","clockWise","id","textBreakAll"];function u2(t){return h2(t)||f2(t)||l2(t)||c2()}function c2(){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 l2(t,e){if(t){if(typeof t=="string")return qh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qh(t,e)}}function f2(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function h2(t){if(Array.isArray(t))return qh(t)}function qh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jo(){return jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jo.apply(this,arguments)}function kb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Rb(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kb(Object(r),!0).forEach(function(n){d2(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function d2(t,e,r){return e=p2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p2(t){var e=v2(t,"string");return Ki(e)=="symbol"?e:e+""}function v2(t,e){if(Ki(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nb(t,e){if(t==null)return{};var r=m2(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function m2(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var y2=function(e){return Array.isArray(e.value)?a2(e.value):e.value};function Hr(t){var e=t.valueAccessor,r=e===void 0?y2:e,n=Nb(t,o2),a=n.data,o=n.dataKey,u=n.clockWise,c=n.id,l=n.textBreakAll,h=Nb(n,s2);return!a||!a.length?null:R.createElement(Jt,{className:"recharts-label-list"},a.map(function(p,d){var m=At(o)?r(p,d):Ge(p&&p.payload,o),g=At(c)?{}:{id:"".concat(c,"-").concat(d)};return R.createElement(ae,jo({},Pt(p,!0),h,g,{parentViewBox:p.parentViewBox,value:m,textBreakAll:l,viewBox:ae.parseViewBox(At(u)?p:Rb(Rb({},p),{},{clockWise:u})),key:"label-".concat(d),index:d}))}))}Hr.displayName="LabelList";function g2(t,e){return t?t===!0?R.createElement(Hr,{key:"labelList-implicit",data:e}):R.isValidElement(t)||gt(t)?R.createElement(Hr,{key:"labelList-implicit",data:e,content:t}):Zn(t)?R.createElement(Hr,jo({data:e},t,{key:"labelList-implicit"})):null:null}function _2(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var n=t.children,a=Re(n,Hr).map(function(u,c){return K.cloneElement(u,{data:e,key:"labelList-".concat(c)})});if(!r)return a;var o=g2(t.label,e);return[o].concat(u2(a))}Hr.renderCallByParent=_2;function Vi(t){"@babel/helpers - typeof";return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(t)}function zh(){return zh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zh.apply(this,arguments)}function $b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Db(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$b(Object(r),!0).forEach(function(n){b2(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function b2(t,e,r){return e=x2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x2(t){var e=w2(t,"string");return Vi(e)=="symbol"?e:e+""}function w2(t,e){if(Vi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var P2=function(e,r){var n=ke(r-e),a=Math.min(Math.abs(r-e),359.999);return n*a},Xa=function(e){var r=e.cx,n=e.cy,a=e.radius,o=e.angle,u=e.sign,c=e.isExternal,l=e.cornerRadius,h=e.cornerIsExternal,p=l*(c?1:-1)+a,d=Math.asin(l/p)/Co,m=h?o:o+u*d,g=ne(r,n,p,m),x=ne(r,n,a,m),b=h?o-u*d:o,_=ne(r,n,p*Math.cos(d*Co),b);return{center:g,circleTangency:x,lineTangency:_,theta:d}},E1=function(e){var r=e.cx,n=e.cy,a=e.innerRadius,o=e.outerRadius,u=e.startAngle,c=e.endAngle,l=P2(u,c),h=u+l,p=ne(r,n,o,u),d=ne(r,n,o,h),m="M ".concat(p.x,",").concat(p.y,`
A `).concat(o,",").concat(o,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(u>h),`,
`).concat(d.x,",").concat(d.y,`
`);if(a>0){var g=ne(r,n,a,u),x=ne(r,n,a,h);m+="L ".concat(x.x,",").concat(x.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(u<=h),`,
`).concat(g.x,",").concat(g.y," Z")}else m+="L ".concat(r,",").concat(n," Z");return m},O2=function(e){var r=e.cx,n=e.cy,a=e.innerRadius,o=e.outerRadius,u=e.cornerRadius,c=e.forceCornerRadius,l=e.cornerIsExternal,h=e.startAngle,p=e.endAngle,d=ke(p-h),m=Xa({cx:r,cy:n,radius:o,angle:h,sign:d,cornerRadius:u,cornerIsExternal:l}),g=m.circleTangency,x=m.lineTangency,b=m.theta,_=Xa({cx:r,cy:n,radius:o,angle:p,sign:-d,cornerRadius:u,cornerIsExternal:l}),A=_.circleTangency,T=_.lineTangency,O=_.theta,E=l?Math.abs(h-p):Math.abs(h-p)-b-O;if(E<0)return c?"M ".concat(x.x,",").concat(x.y,`
a`).concat(u,",").concat(u,",0,0,1,").concat(u*2,`,0
a`).concat(u,",").concat(u,",0,0,1,").concat(-u*2,`,0
`):E1({cx:r,cy:n,innerRadius:a,outerRadius:o,startAngle:h,endAngle:p});var w="M ".concat(x.x,",").concat(x.y,`
A`).concat(u,",").concat(u,",0,0,").concat(+(d<0),",").concat(g.x,",").concat(g.y,`
A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(d<0),",").concat(A.x,",").concat(A.y,`
A`).concat(u,",").concat(u,",0,0,").concat(+(d<0),",").concat(T.x,",").concat(T.y,`
`);if(a>0){var S=Xa({cx:r,cy:n,radius:a,angle:h,sign:d,isExternal:!0,cornerRadius:u,cornerIsExternal:l}),M=S.circleTangency,I=S.lineTangency,k=S.theta,$=Xa({cx:r,cy:n,radius:a,angle:p,sign:-d,isExternal:!0,cornerRadius:u,cornerIsExternal:l}),C=$.circleTangency,N=$.lineTangency,q=$.theta,F=l?Math.abs(h-p):Math.abs(h-p)-k-q;if(F<0&&u===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(N.x,",").concat(N.y,`
A`).concat(u,",").concat(u,",0,0,").concat(+(d<0),",").concat(C.x,",").concat(C.y,`
A`).concat(a,",").concat(a,",0,").concat(+(F>180),",").concat(+(d>0),",").concat(M.x,",").concat(M.y,`
A`).concat(u,",").concat(u,",0,0,").concat(+(d<0),",").concat(I.x,",").concat(I.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},S2={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},M1=function(e){var r=Db(Db({},S2),e),n=r.cx,a=r.cy,o=r.innerRadius,u=r.outerRadius,c=r.cornerRadius,l=r.forceCornerRadius,h=r.cornerIsExternal,p=r.startAngle,d=r.endAngle,m=r.className;if(u<o||p===d)return null;var g=Tt("recharts-sector",m),x=u-o,b=Zr(c,x,0,!0),_;return b>0&&Math.abs(p-d)<360?_=O2({cx:n,cy:a,innerRadius:o,outerRadius:u,cornerRadius:Math.min(b,x/2),forceCornerRadius:l,cornerIsExternal:h,startAngle:p,endAngle:d}):_=E1({cx:n,cy:a,innerRadius:o,outerRadius:u,startAngle:p,endAngle:d}),R.createElement("path",zh({},Pt(r,!0),{className:g,d:_,role:"img"}))};function Xi(t){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xi(t)}function Fh(){return Fh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fh.apply(this,arguments)}function Bb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function qb(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bb(Object(r),!0).forEach(function(n){A2(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function A2(t,e,r){return e=T2(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function T2(t){var e=E2(t,"string");return Xi(e)=="symbol"?e:e+""}function E2(t,e){if(Xi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zb={curveBasisClosed:KA,curveBasisOpen:VA,curveBasis:GA,curveBumpX:LA,curveBumpY:kA,curveLinearClosed:XA,curveLinear:as,curveMonotoneX:YA,curveMonotoneY:JA,curveNatural:QA,curveStep:tT,curveStepAfter:rT,curveStepBefore:eT},Ya=function(e){return e.x===+e.x&&e.y===+e.y},yi=function(e){return e.x},gi=function(e){return e.y},M2=function(e,r){if(gt(e))return e;var n="curve".concat(ns(e));return(n==="curveMonotone"||n==="curveBump")&&r?zb["".concat(n).concat(r==="vertical"?"Y":"X")]:zb[n]||as},C2=function(e){var r=e.type,n=r===void 0?"linear":r,a=e.points,o=a===void 0?[]:a,u=e.baseLine,c=e.layout,l=e.connectNulls,h=l===void 0?!1:l,p=M2(n,c),d=h?o.filter(function(b){return Ya(b)}):o,m;if(Array.isArray(u)){var g=h?u.filter(function(b){return Ya(b)}):u,x=d.map(function(b,_){return qb(qb({},b),{},{base:g[_]})});return c==="vertical"?m=za().y(gi).x1(yi).x0(function(b){return b.base.x}):m=za().x(yi).y1(gi).y0(function(b){return b.base.y}),m.defined(Ya).curve(p),m(x)}return c==="vertical"&&tt(u)?m=za().y(gi).x1(yi).x0(u):tt(u)?m=za().x(yi).y1(gi).y0(u):m=Lx().x(yi).y(gi),m.defined(Ya).curve(p),m(d)},Fb=function(e){var r=e.className,n=e.points,a=e.path,o=e.pathRef;if((!n||!n.length)&&!a)return null;var u=n&&n.length?C2(e):a;return R.createElement("path",Fh({},Pt(e,!1),ro(e),{className:Tt("recharts-curve",r),d:u,ref:o}))},Cf={exports:{}},jf,Wb;function j2(){if(Wb)return jf;Wb=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jf=t,jf}var If,Ub;function I2(){if(Ub)return If;Ub=1;var t=j2();function e(){}function r(){}return r.resetWarningCache=e,If=function(){function n(u,c,l,h,p,d){if(d!==t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o},If}var Hb;function L2(){return Hb||(Hb=1,Cf.exports=I2()()),Cf.exports}var k2=L2();const St=Ct(k2);var R2=Object.getOwnPropertyNames,N2=Object.getOwnPropertySymbols,$2=Object.prototype.hasOwnProperty;function Zb(t,e){return function(n,a,o){return t(n,a,o)&&e(n,a,o)}}function Ja(t){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return t(r,n,a);var o=a.cache,u=o.get(r),c=o.get(n);if(u&&c)return u===n&&c===r;o.set(r,n),o.set(n,r);var l=t(r,n,a);return o.delete(r),o.delete(n),l}}function Gb(t){return R2(t).concat(N2(t))}var D2=Object.hasOwn||function(t,e){return $2.call(t,e)};function Qr(t,e){return t===e||!t&&!e&&t!==t&&e!==e}var B2="__v",q2="__o",z2="_owner",Kb=Object.getOwnPropertyDescriptor,Vb=Object.keys;function F2(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function W2(t,e){return Qr(t.getTime(),e.getTime())}function U2(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function H2(t,e){return t===e}function Xb(t,e,r){var n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var a=new Array(n),o=t.entries(),u,c,l=0;(u=o.next())&&!u.done;){for(var h=e.entries(),p=!1,d=0;(c=h.next())&&!c.done;){if(a[d]){d++;continue}var m=u.value,g=c.value;if(r.equals(m[0],g[0],l,d,t,e,r)&&r.equals(m[1],g[1],m[0],g[0],t,e,r)){p=a[d]=!0;break}d++}if(!p)return!1;l++}return!0}var Z2=Qr;function G2(t,e,r){var n=Vb(t),a=n.length;if(Vb(e).length!==a)return!1;for(;a-- >0;)if(!C1(t,e,r,n[a]))return!1;return!0}function _i(t,e,r){var n=Gb(t),a=n.length;if(Gb(e).length!==a)return!1;for(var o,u,c;a-- >0;)if(o=n[a],!C1(t,e,r,o)||(u=Kb(t,o),c=Kb(e,o),(u||c)&&(!u||!c||u.configurable!==c.configurable||u.enumerable!==c.enumerable||u.writable!==c.writable)))return!1;return!0}function K2(t,e){return Qr(t.valueOf(),e.valueOf())}function V2(t,e){return t.source===e.source&&t.flags===e.flags}function Yb(t,e,r){var n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var a=new Array(n),o=t.values(),u,c;(u=o.next())&&!u.done;){for(var l=e.values(),h=!1,p=0;(c=l.next())&&!c.done;){if(!a[p]&&r.equals(u.value,c.value,u.value,c.value,t,e,r)){h=a[p]=!0;break}p++}if(!h)return!1}return!0}function X2(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function Y2(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function C1(t,e,r,n){return(n===z2||n===q2||n===B2)&&(t.$$typeof||e.$$typeof)?!0:D2(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var J2="[object Arguments]",Q2="[object Boolean]",tR="[object Date]",eR="[object Error]",rR="[object Map]",nR="[object Number]",iR="[object Object]",aR="[object RegExp]",oR="[object Set]",sR="[object String]",uR="[object URL]",cR=Array.isArray,Jb=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Qb=Object.assign,lR=Object.prototype.toString.call.bind(Object.prototype.toString);function fR(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areErrorsEqual,a=t.areFunctionsEqual,o=t.areMapsEqual,u=t.areNumbersEqual,c=t.areObjectsEqual,l=t.arePrimitiveWrappersEqual,h=t.areRegExpsEqual,p=t.areSetsEqual,d=t.areTypedArraysEqual,m=t.areUrlsEqual;return function(x,b,_){if(x===b)return!0;if(x==null||b==null)return!1;var A=typeof x;if(A!==typeof b)return!1;if(A!=="object")return A==="number"?u(x,b,_):A==="function"?a(x,b,_):!1;var T=x.constructor;if(T!==b.constructor)return!1;if(T===Object)return c(x,b,_);if(cR(x))return e(x,b,_);if(Jb!=null&&Jb(x))return d(x,b,_);if(T===Date)return r(x,b,_);if(T===RegExp)return h(x,b,_);if(T===Map)return o(x,b,_);if(T===Set)return p(x,b,_);var O=lR(x);return O===tR?r(x,b,_):O===aR?h(x,b,_):O===rR?o(x,b,_):O===oR?p(x,b,_):O===iR?typeof x.then!="function"&&typeof b.then!="function"&&c(x,b,_):O===uR?m(x,b,_):O===eR?n(x,b,_):O===J2?c(x,b,_):O===Q2||O===nR||O===sR?l(x,b,_):!1}}function hR(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,a={areArraysEqual:n?_i:F2,areDatesEqual:W2,areErrorsEqual:U2,areFunctionsEqual:H2,areMapsEqual:n?Zb(Xb,_i):Xb,areNumbersEqual:Z2,areObjectsEqual:n?_i:G2,arePrimitiveWrappersEqual:K2,areRegExpsEqual:V2,areSetsEqual:n?Zb(Yb,_i):Yb,areTypedArraysEqual:n?_i:X2,areUrlsEqual:Y2};if(r&&(a=Qb({},a,r(a))),e){var o=Ja(a.areArraysEqual),u=Ja(a.areMapsEqual),c=Ja(a.areObjectsEqual),l=Ja(a.areSetsEqual);a=Qb({},a,{areArraysEqual:o,areMapsEqual:u,areObjectsEqual:c,areSetsEqual:l})}return a}function dR(t){return function(e,r,n,a,o,u,c){return t(e,r,c)}}function pR(t){var e=t.circular,r=t.comparator,n=t.createState,a=t.equals,o=t.strict;if(n)return function(l,h){var p=n(),d=p.cache,m=d===void 0?e?new WeakMap:void 0:d,g=p.meta;return r(l,h,{cache:m,equals:a,meta:g,strict:o})};if(e)return function(l,h){return r(l,h,{cache:new WeakMap,equals:a,meta:void 0,strict:o})};var u={cache:void 0,equals:a,meta:void 0,strict:o};return function(l,h){return r(l,h,u)}}var vR=Sr();Sr({strict:!0});Sr({circular:!0});Sr({circular:!0,strict:!0});Sr({createInternalComparator:function(){return Qr}});Sr({strict:!0,createInternalComparator:function(){return Qr}});Sr({circular:!0,createInternalComparator:function(){return Qr}});Sr({circular:!0,createInternalComparator:function(){return Qr},strict:!0});function Sr(t){t===void 0&&(t={});var e=t.circular,r=e===void 0?!1:e,n=t.createInternalComparator,a=t.createState,o=t.strict,u=o===void 0?!1:o,c=hR(t),l=fR(c),h=n?n(l):dR(l);return pR({circular:r,comparator:l,createState:a,equals:h,strict:u})}function mR(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function t0(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(o){r<0&&(r=o),o-r>e?(t(o),r=-1):mR(a)};requestAnimationFrame(n)}function Wh(t){"@babel/helpers - typeof";return Wh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wh(t)}function yR(t){return xR(t)||bR(t)||_R(t)||gR()}function gR(){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 _R(t,e){if(t){if(typeof t=="string")return e0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e0(t,e)}}function e0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function xR(t){if(Array.isArray(t))return t}function wR(){var t={},e=function(){return null},r=!1,n=function a(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var u=o,c=yR(u),l=c[0],h=c.slice(1);if(typeof l=="number"){t0(a.bind(null,h),l);return}a(l),t0(a.bind(null,h));return}Wh(o)==="object"&&(t=o,e(t)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,n(o)},subscribe:function(o){return e=o,function(){e=function(){return null}}}}}function Yi(t){"@babel/helpers - typeof";return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yi(t)}function r0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function n0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?r0(Object(r),!0).forEach(function(n){j1(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):r0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function j1(t,e,r){return e=PR(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function PR(t){var e=OR(t,"string");return Yi(e)==="symbol"?e:String(e)}function OR(t,e){if(Yi(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Yi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var SR=function(e,r){return[Object.keys(e),Object.keys(r)].reduce(function(n,a){return n.filter(function(o){return a.includes(o)})})},AR=function(e){return e},TR=function(e){return e.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ei=function(e,r){return Object.keys(r).reduce(function(n,a){return n0(n0({},n),{},j1({},a,e(a,r[a])))},{})},i0=function(e,r,n){return e.map(function(a){return"".concat(TR(a)," ").concat(r,"ms ").concat(n)}).join(",")};function ER(t,e){return jR(t)||CR(t,e)||I1(t,e)||MR()}function MR(){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 CR(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function jR(t){if(Array.isArray(t))return t}function IR(t){return RR(t)||kR(t)||I1(t)||LR()}function LR(){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 I1(t,e){if(t){if(typeof t=="string")return Uh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uh(t,e)}}function kR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function RR(t){if(Array.isArray(t))return Uh(t)}function Uh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Io=1e-4,L1=function(e,r){return[0,3*e,3*r-6*e,3*e-3*r+1]},k1=function(e,r){return e.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},a0=function(e,r){return function(n){var a=L1(e,r);return k1(a,n)}},NR=function(e,r){return function(n){var a=L1(e,r),o=[].concat(IR(a.map(function(u,c){return u*c}).slice(1)),[0]);return k1(o,n)}},o0=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=r[0],o=r[1],u=r[2],c=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,o=0,u=1,c=1;break;case"ease":a=.25,o=.1,u=.25,c=1;break;case"ease-in":a=.42,o=0,u=1,c=1;break;case"ease-out":a=.42,o=0,u=.58,c=1;break;case"ease-in-out":a=0,o=0,u=.58,c=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var h=l[1].split(")")[0].split(",").map(function(_){return parseFloat(_)}),p=ER(h,4);a=p[0],o=p[1],u=p[2],c=p[3]}}}var d=a0(a,u),m=a0(o,c),g=NR(a,u),x=function(A){return A>1?1:A<0?0:A},b=function(A){for(var T=A>1?1:A,O=T,E=0;E<8;++E){var w=d(O)-T,S=g(O);if(Math.abs(w-T)<Io||S<Io)return m(O);O=x(O-w/S)}return m(O)};return b.isStepper=!1,b},$R=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.stiff,n=r===void 0?100:r,a=e.damping,o=a===void 0?8:a,u=e.dt,c=u===void 0?17:u,l=function(p,d,m){var g=-(p-d)*n,x=m*o,b=m+(g-x)*c/1e3,_=m*c/1e3+p;return Math.abs(_-d)<Io&&Math.abs(b)<Io?[d,0]:[_,b]};return l.isStepper=!0,l.dt=c,l},DR=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return o0(a);case"spring":return $R();default:if(a.split("(")[0]==="cubic-bezier")return o0(a)}return typeof a=="function"?a:null};function Ji(t){"@babel/helpers - typeof";return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ji(t)}function s0(t){return zR(t)||qR(t)||R1(t)||BR()}function BR(){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 qR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function zR(t){if(Array.isArray(t))return Zh(t)}function u0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?u0(Object(r),!0).forEach(function(n){Hh(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Hh(t,e,r){return e=FR(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FR(t){var e=WR(t,"string");return Ji(e)==="symbol"?e:String(e)}function WR(t,e){if(Ji(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ji(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function UR(t,e){return GR(t)||ZR(t,e)||R1(t,e)||HR()}function HR(){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 R1(t,e){if(t){if(typeof t=="string")return Zh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zh(t,e)}}function Zh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ZR(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function GR(t){if(Array.isArray(t))return t}var Lo=function(e,r,n){return e+(r-e)*n},Gh=function(e){var r=e.from,n=e.to;return r!==n},KR=function t(e,r,n){var a=Ei(function(o,u){if(Gh(u)){var c=e(u.from,u.to,u.velocity),l=UR(c,2),h=l[0],p=l[1];return re(re({},u),{},{from:h,velocity:p})}return u},r);return n<1?Ei(function(o,u){return Gh(u)?re(re({},u),{},{velocity:Lo(u.velocity,a[o].velocity,n),from:Lo(u.from,a[o].from,n)}):u},r):t(e,a,n-1)};const VR=function(t,e,r,n,a){var o=SR(t,e),u=o.reduce(function(_,A){return re(re({},_),{},Hh({},A,[t[A],e[A]]))},{}),c=o.reduce(function(_,A){return re(re({},_),{},Hh({},A,{from:t[A],velocity:0,to:e[A]}))},{}),l=-1,h,p,d=function(){return null},m=function(){return Ei(function(A,T){return T.from},c)},g=function(){return!Object.values(c).filter(Gh).length},x=function(A){h||(h=A);var T=A-h,O=T/r.dt;c=KR(r,c,O),a(re(re(re({},t),e),m())),h=A,g()||(l=requestAnimationFrame(d))},b=function(A){p||(p=A);var T=(A-p)/n,O=Ei(function(w,S){return Lo.apply(void 0,s0(S).concat([r(T)]))},u);if(a(re(re(re({},t),e),O)),T<1)l=requestAnimationFrame(d);else{var E=Ei(function(w,S){return Lo.apply(void 0,s0(S).concat([r(1)]))},u);a(re(re(re({},t),e),E))}};return d=r.isStepper?x:b,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function Ln(t){"@babel/helpers - typeof";return Ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ln(t)}var XR=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function YR(t,e){if(t==null)return{};var r=JR(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function JR(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,o;for(o=0;o<n.length;o++)a=n[o],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Lf(t){return rN(t)||eN(t)||tN(t)||QR()}function QR(){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 tN(t,e){if(t){if(typeof t=="string")return Kh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kh(t,e)}}function eN(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rN(t){if(Array.isArray(t))return Kh(t)}function Kh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function je(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?c0(Object(r),!0).forEach(function(n){Oi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Oi(t,e,r){return e=N1(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iN(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,N1(n.key),n)}}function aN(t,e,r){return e&&iN(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function N1(t){var e=oN(t,"string");return Ln(e)==="symbol"?e:String(e)}function oN(t,e){if(Ln(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ln(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sN(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vh(t,e)}function Vh(t,e){return Vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Vh(t,e)}function uN(t){var e=cN();return function(){var n=ko(t),a;if(e){var o=ko(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Xh(this,a)}}function Xh(t,e){if(e&&(Ln(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yh(t)}function Yh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ko(t){return ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ko(t)}var br=function(t){sN(r,t);var e=uN(r);function r(n,a){var o;nN(this,r),o=e.call(this,n,a);var u=o.props,c=u.isActive,l=u.attributeName,h=u.from,p=u.to,d=u.steps,m=u.children,g=u.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Yh(o)),o.changeStyle=o.changeStyle.bind(Yh(o)),!c||g<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:p}),Xh(o);if(d&&d.length)o.state={style:d[0].style};else if(h){if(typeof m=="function")return o.state={style:h},Xh(o);o.state={style:l?Oi({},l,h):h}}else o.state={style:{}};return o}return aN(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.isActive,u=a.canBegin;this.mounted=!0,!(!o||!u)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var o=this.props,u=o.isActive,c=o.canBegin,l=o.attributeName,h=o.shouldReAnimate,p=o.to,d=o.from,m=this.state.style;if(c){if(!u){var g={style:l?Oi({},l,p):p};this.state&&m&&(l&&m[l]!==p||!l&&m!==p)&&this.setState(g);return}if(!(vR(a.to,p)&&a.canBegin&&a.isActive)){var x=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=x||h?d:a.to;if(this.state&&m){var _={style:l?Oi({},l,b):b};(l&&m[l]!==b||!l&&m!==b)&&this.setState(_)}this.runAnimation(je(je({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var o=this,u=a.from,c=a.to,l=a.duration,h=a.easing,p=a.begin,d=a.onAnimationEnd,m=a.onAnimationStart,g=VR(u,c,DR(h),l,this.changeStyle),x=function(){o.stopJSAnimation=g()};this.manager.start([m,p,x,l,d])}},{key:"runStepAnimation",value:function(a){var o=this,u=a.steps,c=a.begin,l=a.onAnimationStart,h=u[0],p=h.style,d=h.duration,m=d===void 0?0:d,g=function(b,_,A){if(A===0)return b;var T=_.duration,O=_.easing,E=O===void 0?"ease":O,w=_.style,S=_.properties,M=_.onAnimationEnd,I=A>0?u[A-1]:_,k=S||Object.keys(w);if(typeof E=="function"||E==="spring")return[].concat(Lf(b),[o.runJSAnimation.bind(o,{from:I.style,to:w,duration:T,easing:E}),T]);var $=i0(k,T,E),C=je(je(je({},I.style),w),{},{transition:$});return[].concat(Lf(b),[C,T,M]).filter(AR)};return this.manager.start([l].concat(Lf(u.reduce(g,[p,Math.max(m,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=wR());var o=a.begin,u=a.duration,c=a.attributeName,l=a.to,h=a.easing,p=a.onAnimationStart,d=a.onAnimationEnd,m=a.steps,g=a.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof h=="function"||typeof g=="function"||h==="spring"){this.runJSAnimation(a);return}if(m.length>1){this.runStepAnimation(a);return}var b=c?Oi({},c,l):l,_=i0(Object.keys(b),u,h);x.start([p,o,je(je({},b),{},{transition:_}),u,d])}},{key:"render",value:function(){var a=this.props,o=a.children;a.begin;var u=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=YR(a,XR),h=K.Children.count(o),p=this.state.style;if(typeof o=="function")return o(p);if(!c||h===0||u<=0)return o;var d=function(g){var x=g.props,b=x.style,_=b===void 0?{}:b,A=x.className,T=K.cloneElement(g,je(je({},l),{},{style:je(je({},_),p),className:A}));return T};return h===1?d(K.Children.only(o)):R.createElement("div",null,K.Children.map(o,function(m){return d(m)}))}}]),r}(K.PureComponent);br.displayName="Animate";br.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};br.propTypes={from:St.oneOfType([St.object,St.string]),to:St.oneOfType([St.object,St.string]),attributeName:St.string,duration:St.number,begin:St.number,easing:St.oneOfType([St.string,St.func]),steps:St.arrayOf(St.shape({duration:St.number.isRequired,style:St.object.isRequired,easing:St.oneOfType([St.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),St.func]),properties:St.arrayOf("string"),onAnimationEnd:St.func})),children:St.oneOfType([St.node,St.func]),isActive:St.bool,canBegin:St.bool,onAnimationEnd:St.func,shouldReAnimate:St.bool,onAnimationStart:St.func,onAnimationReStart:St.func};function Qi(t){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi(t)}function Ro(){return Ro=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ro.apply(this,arguments)}function lN(t,e){return pN(t)||dN(t,e)||hN(t,e)||fN()}function fN(){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 hN(t,e){if(t){if(typeof t=="string")return l0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l0(t,e)}}function l0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function dN(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function pN(t){if(Array.isArray(t))return t}function f0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function h0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?f0(Object(r),!0).forEach(function(n){vN(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vN(t,e,r){return e=mN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mN(t){var e=yN(t,"string");return Qi(e)=="symbol"?e:e+""}function yN(t,e){if(Qi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Qi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var d0=function(e,r,n,a,o){var u=Math.min(Math.abs(n)/2,Math.abs(a)/2),c=a>=0?1:-1,l=n>=0?1:-1,h=a>=0&&n>=0||a<0&&n<0?1:0,p;if(u>0&&o instanceof Array){for(var d=[0,0,0,0],m=0,g=4;m<g;m++)d[m]=o[m]>u?u:o[m];p="M".concat(e,",").concat(r+c*d[0]),d[0]>0&&(p+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(h,",").concat(e+l*d[0],",").concat(r)),p+="L ".concat(e+n-l*d[1],",").concat(r),d[1]>0&&(p+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(h,`,
`).concat(e+n,",").concat(r+c*d[1])),p+="L ".concat(e+n,",").concat(r+a-c*d[2]),d[2]>0&&(p+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(h,`,
`).concat(e+n-l*d[2],",").concat(r+a)),p+="L ".concat(e+l*d[3],",").concat(r+a),d[3]>0&&(p+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(h,`,
`).concat(e,",").concat(r+a-c*d[3])),p+="Z"}else if(u>0&&o===+o&&o>0){var x=Math.min(u,o);p="M ".concat(e,",").concat(r+c*x,`
A `).concat(x,",").concat(x,",0,0,").concat(h,",").concat(e+l*x,",").concat(r,`
L `).concat(e+n-l*x,",").concat(r,`
A `).concat(x,",").concat(x,",0,0,").concat(h,",").concat(e+n,",").concat(r+c*x,`
L `).concat(e+n,",").concat(r+a-c*x,`
A `).concat(x,",").concat(x,",0,0,").concat(h,",").concat(e+n-l*x,",").concat(r+a,`
L `).concat(e+l*x,",").concat(r+a,`
A `).concat(x,",").concat(x,",0,0,").concat(h,",").concat(e,",").concat(r+a-c*x," Z")}else p="M ".concat(e,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return p},gN=function(e,r){if(!e||!r)return!1;var n=e.x,a=e.y,o=r.x,u=r.y,c=r.width,l=r.height;if(Math.abs(c)>0&&Math.abs(l)>0){var h=Math.min(o,o+c),p=Math.max(o,o+c),d=Math.min(u,u+l),m=Math.max(u,u+l);return n>=h&&n<=p&&a>=d&&a<=m}return!1},_N={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mp=function(e){var r=h0(h0({},_N),e),n=K.useRef(),a=K.useState(-1),o=lN(a,2),u=o[0],c=o[1];K.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var E=n.current.getTotalLength();E&&c(E)}catch{}},[]);var l=r.x,h=r.y,p=r.width,d=r.height,m=r.radius,g=r.className,x=r.animationEasing,b=r.animationDuration,_=r.animationBegin,A=r.isAnimationActive,T=r.isUpdateAnimationActive;if(l!==+l||h!==+h||p!==+p||d!==+d||p===0||d===0)return null;var O=Tt("recharts-rectangle",g);return T?R.createElement(br,{canBegin:u>0,from:{width:p,height:d,x:l,y:h},to:{width:p,height:d,x:l,y:h},duration:b,animationEasing:x,isActive:T},function(E){var w=E.width,S=E.height,M=E.x,I=E.y;return R.createElement(br,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:b,isActive:A,easing:x},R.createElement("path",Ro({},Pt(r,!0),{className:O,d:d0(M,I,w,S,m),ref:n})))}):R.createElement("path",Ro({},Pt(r,!0),{className:O,d:d0(l,h,p,d,m)}))};function Jh(){return Jh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Jh.apply(this,arguments)}var $1=function(e){var r=e.cx,n=e.cy,a=e.r,o=e.className,u=Tt("recharts-dot",o);return r===+r&&n===+n&&a===+a?R.createElement("circle",Jh({},Pt(e,!1),ro(e),{className:u,cx:r,cy:n,r:a})):null};function ta(t){"@babel/helpers - typeof";return ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(t)}var bN=["x","y","top","left","width","height","className"];function Qh(){return Qh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qh.apply(this,arguments)}function p0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function xN(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?p0(Object(r),!0).forEach(function(n){wN(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wN(t,e,r){return e=PN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function PN(t){var e=ON(t,"string");return ta(e)=="symbol"?e:e+""}function ON(t,e){if(ta(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function SN(t,e){if(t==null)return{};var r=AN(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function AN(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var TN=function(e,r,n,a,o,u){return"M".concat(e,",").concat(o,"v").concat(a,"M").concat(u,",").concat(r,"h").concat(n)},EN=function(e){var r=e.x,n=r===void 0?0:r,a=e.y,o=a===void 0?0:a,u=e.top,c=u===void 0?0:u,l=e.left,h=l===void 0?0:l,p=e.width,d=p===void 0?0:p,m=e.height,g=m===void 0?0:m,x=e.className,b=SN(e,bN),_=xN({x:n,y:o,top:c,left:h,width:d,height:g},b);return!tt(n)||!tt(o)||!tt(d)||!tt(g)||!tt(c)||!tt(h)?null:R.createElement("path",Qh({},Pt(_,!0),{className:Tt("recharts-cross",x),d:TN(n,o,d,g,c,h)}))},kf,v0;function MN(){if(v0)return kf;v0=1;var t=rw(),e=t(Object.getPrototypeOf,Object);return kf=e,kf}var Rf,m0;function CN(){if(m0)return Rf;m0=1;var t=lr(),e=MN(),r=fr(),n="[object Object]",a=Function.prototype,o=Object.prototype,u=a.toString,c=o.hasOwnProperty,l=u.call(Object);function h(p){if(!r(p)||t(p)!=n)return!1;var d=e(p);if(d===null)return!0;var m=c.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&u.call(m)==l}return Rf=h,Rf}var jN=CN();const IN=Ct(jN);var Nf,y0;function LN(){if(y0)return Nf;y0=1;var t=lr(),e=fr(),r="[object Boolean]";function n(a){return a===!0||a===!1||e(a)&&t(a)==r}return Nf=n,Nf}var kN=LN();const RN=Ct(kN);function ea(t){"@babel/helpers - typeof";return ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ea(t)}function No(){return No=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},No.apply(this,arguments)}function NN(t,e){return qN(t)||BN(t,e)||DN(t,e)||$N()}function $N(){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 DN(t,e){if(t){if(typeof t=="string")return g0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g0(t,e)}}function g0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function BN(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function qN(t){if(Array.isArray(t))return t}function _0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function b0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_0(Object(r),!0).forEach(function(n){zN(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function zN(t,e,r){return e=FN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FN(t){var e=WN(t,"string");return ea(e)=="symbol"?e:e+""}function WN(t,e){if(ea(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var x0=function(e,r,n,a,o){var u=n-a,c;return c="M ".concat(e,",").concat(r),c+="L ".concat(e+n,",").concat(r),c+="L ".concat(e+n-u/2,",").concat(r+o),c+="L ".concat(e+n-u/2-a,",").concat(r+o),c+="L ".concat(e,",").concat(r," Z"),c},UN={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},HN=function(e){var r=b0(b0({},UN),e),n=K.useRef(),a=K.useState(-1),o=NN(a,2),u=o[0],c=o[1];K.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&c(O)}catch{}},[]);var l=r.x,h=r.y,p=r.upperWidth,d=r.lowerWidth,m=r.height,g=r.className,x=r.animationEasing,b=r.animationDuration,_=r.animationBegin,A=r.isUpdateAnimationActive;if(l!==+l||h!==+h||p!==+p||d!==+d||m!==+m||p===0&&d===0||m===0)return null;var T=Tt("recharts-trapezoid",g);return A?R.createElement(br,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:m,x:l,y:h},to:{upperWidth:p,lowerWidth:d,height:m,x:l,y:h},duration:b,animationEasing:x,isActive:A},function(O){var E=O.upperWidth,w=O.lowerWidth,S=O.height,M=O.x,I=O.y;return R.createElement(br,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:b,easing:x},R.createElement("path",No({},Pt(r,!0),{className:T,d:x0(M,I,E,w,S),ref:n})))}):R.createElement("g",null,R.createElement("path",No({},Pt(r,!0),{className:T,d:x0(l,h,p,d,m)})))},ZN=["option","shapeType","propTransformer","activeClassName","isActive"];function ra(t){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ra(t)}function GN(t,e){if(t==null)return{};var r=KN(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function KN(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function w0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function $o(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?w0(Object(r),!0).forEach(function(n){VN(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function VN(t,e,r){return e=XN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XN(t){var e=YN(t,"string");return ra(e)=="symbol"?e:e+""}function YN(t,e){if(ra(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ra(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function JN(t,e){return $o($o({},e),t)}function QN(t,e){return t==="symbols"}function P0(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return R.createElement(mp,r);case"trapezoid":return R.createElement(HN,r);case"sector":return R.createElement(M1,r);case"symbols":if(QN(e))return R.createElement(kd,r);break;default:return null}}function t$(t){return K.isValidElement(t)?t.props:t}function e$(t){var e=t.option,r=t.shapeType,n=t.propTransformer,a=n===void 0?JN:n,o=t.activeClassName,u=o===void 0?"recharts-active-shape":o,c=t.isActive,l=GN(t,ZN),h;if(K.isValidElement(e))h=K.cloneElement(e,$o($o({},l),t$(e)));else if(gt(e))h=e(l);else if(IN(e)&&!RN(e)){var p=a(e,l);h=R.createElement(P0,{shapeType:r,elementProps:p})}else{var d=l;h=R.createElement(P0,{shapeType:r,elementProps:d})}return c?R.createElement(Jt,{className:u},h):h}function xs(t,e){return e!=null&&"trapezoids"in t.props}function ws(t,e){return e!=null&&"sectors"in t.props}function na(t,e){return e!=null&&"points"in t.props}function r$(t,e){var r,n,a=t.x===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.x)||t.x===e.x,o=t.y===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.y)||t.y===e.y;return a&&o}function n$(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function i$(t,e){var r=t.x===e.x,n=t.y===e.y,a=t.z===e.z;return r&&n&&a}function a$(t,e){var r;return xs(t,e)?r=r$:ws(t,e)?r=n$:na(t,e)&&(r=i$),r}function o$(t,e){var r;return xs(t,e)?r="trapezoids":ws(t,e)?r="sectors":na(t,e)&&(r="points"),r}function s$(t,e){if(xs(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(ws(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return na(t,e)?e.payload:{}}function u$(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,a=o$(r,e),o=s$(r,e),u=n.filter(function(l,h){var p=hp(o,l),d=r.props[a].filter(function(x){var b=a$(r,e);return b(x,e)}),m=r.props[a].indexOf(d[d.length-1]),g=h===m;return p&&g}),c=n.indexOf(u[u.length-1]);return c}var $f,O0;function c$(){if(O0)return $f;O0=1;var t=Math.ceil,e=Math.max;function r(n,a,o,u){for(var c=-1,l=e(t((a-n)/(o||1)),0),h=Array(l);l--;)h[u?l:++c]=n,n+=o;return h}return $f=r,$f}var Df,S0;function D1(){if(S0)return Df;S0=1;var t=gw(),e=1/0,r=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=t(a),a===e||a===-1/0){var o=a<0?-1:1;return o*r}return a===a?a:0}return Df=n,Df}var Bf,A0;function l$(){if(A0)return Bf;A0=1;var t=c$(),e=cs(),r=D1();function n(a){return function(o,u,c){return c&&typeof c!="number"&&e(o,u,c)&&(u=c=void 0),o=r(o),u===void 0?(u=o,o=0):u=r(u),c=c===void 0?o<u?1:-1:r(c),t(o,u,c,a)}}return Bf=n,Bf}var qf,T0;function f$(){if(T0)return qf;T0=1;var t=l$(),e=t();return qf=e,qf}var h$=f$();const Do=Ct(h$);function ia(t){"@babel/helpers - typeof";return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ia(t)}function E0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function M0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?E0(Object(r),!0).forEach(function(n){B1(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function B1(t,e,r){return e=d$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d$(t){var e=p$(t,"string");return ia(e)=="symbol"?e:e+""}function p$(t,e){if(ia(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var v$=["Webkit","Moz","O","ms"],m$=function(e,r){var n=e.replace(/(\w)/,function(o){return o.toUpperCase()}),a=v$.reduce(function(o,u){return M0(M0({},o),{},B1({},u+n,r))},{});return a[e]=r,a};function kn(t){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(t)}function Bo(){return Bo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Bo.apply(this,arguments)}function C0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function zf(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?C0(Object(r),!0).forEach(function(n){pe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function y$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j0(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,z1(n.key),n)}}function g$(t,e,r){return e&&j0(t.prototype,e),r&&j0(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _$(t,e,r){return e=qo(e),b$(t,q1()?Reflect.construct(e,r||[],qo(t).constructor):e.apply(t,r))}function b$(t,e){if(e&&(kn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x$(t)}function x$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function q1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q1=function(){return!!t})()}function qo(t){return qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qo(t)}function w$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&td(t,e)}function td(t,e){return td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},td(t,e)}function pe(t,e,r){return e=z1(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z1(t){var e=P$(t,"string");return kn(e)=="symbol"?e:e+""}function P$(t,e){if(kn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var O$=function(e){var r=e.data,n=e.startIndex,a=e.endIndex,o=e.x,u=e.width,c=e.travellerWidth;if(!r||!r.length)return{};var l=r.length,h=Ai().domain(Do(0,l)).range([o,o+u-c]),p=h.domain().map(function(d){return h(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:h(n),endX:h(a),scale:h,scaleValues:p}},I0=function(e){return e.changedTouches&&!!e.changedTouches.length},Rn=function(t){function e(r){var n;return y$(this,e),n=_$(this,e,[r]),pe(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),pe(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),pe(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,o=a.endIndex,u=a.onDragEnd,c=a.startIndex;u==null||u({endIndex:o,startIndex:c})}),n.detachDragEndListener()}),pe(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),pe(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),pe(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),pe(n,"handleSlideDragStart",function(a){var o=I0(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return w$(e,t),g$(e,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,o=n.endX,u=this.state.scaleValues,c=this.props,l=c.gap,h=c.data,p=h.length-1,d=Math.min(a,o),m=Math.max(a,o),g=e.getIndexInRange(u,d),x=e.getIndexInRange(u,m);return{startIndex:g-g%l,endIndex:x===p?p:x-x%l}}},{key:"getTextOfTick",value:function(n){var a=this.props,o=a.data,u=a.tickFormatter,c=a.dataKey,l=Ge(o[n],c,n);return gt(u)?u(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 a=this.state,o=a.slideMoveStartX,u=a.startX,c=a.endX,l=this.props,h=l.x,p=l.width,d=l.travellerWidth,m=l.startIndex,g=l.endIndex,x=l.onChange,b=n.pageX-o;b>0?b=Math.min(b,h+p-d-c,h+p-d-u):b<0&&(b=Math.max(b,h-u,h-c));var _=this.getIndex({startX:u+b,endX:c+b});(_.startIndex!==m||_.endIndex!==g)&&x&&x(_),this.setState({startX:u+b,endX:c+b,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var o=I0(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,o=a.brushMoveStartX,u=a.movingTravellerId,c=a.endX,l=a.startX,h=this.state[u],p=this.props,d=p.x,m=p.width,g=p.travellerWidth,x=p.onChange,b=p.gap,_=p.data,A={startX:this.state.startX,endX:this.state.endX},T=n.pageX-o;T>0?T=Math.min(T,d+m-g-h):T<0&&(T=Math.max(T,d-h)),A[u]=h+T;var O=this.getIndex(A),E=O.startIndex,w=O.endIndex,S=function(){var I=_.length-1;return u==="startX"&&(c>l?E%b===0:w%b===0)||c<l&&w===I||u==="endX"&&(c>l?w%b===0:E%b===0)||c>l&&w===I};this.setState(pe(pe({},u,h+T),"brushMoveStartX",n.pageX),function(){x&&S()&&x(O)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var o=this,u=this.state,c=u.scaleValues,l=u.startX,h=u.endX,p=this.state[a],d=c.indexOf(p);if(d!==-1){var m=d+n;if(!(m===-1||m>=c.length)){var g=c[m];a==="startX"&&g>=h||a==="endX"&&g<=l||this.setState(pe({},a,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,o=n.y,u=n.width,c=n.height,l=n.fill,h=n.stroke;return R.createElement("rect",{stroke:h,fill:l,x:a,y:o,width:u,height:c})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,o=n.y,u=n.width,c=n.height,l=n.data,h=n.children,p=n.padding,d=K.Children.only(h);return d?R.cloneElement(d,{x:a,y:o,width:u,height:c,margin:p,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,a){var o,u,c=this,l=this.props,h=l.y,p=l.travellerWidth,d=l.height,m=l.traveller,g=l.ariaLabel,x=l.data,b=l.startIndex,_=l.endIndex,A=Math.max(n,this.props.x),T=zf(zf({},Pt(this.props,!1)),{},{x:A,y:h,width:p,height:d}),O=g||"Min value: ".concat((o=x[b])===null||o===void 0?void 0:o.name,", Max value: ").concat((u=x[_])===null||u===void 0?void 0:u.name);return R.createElement(Jt,{tabIndex:0,role:"slider","aria-label":O,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),c.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(m,T))}},{key:"renderSlide",value:function(n,a){var o=this.props,u=o.y,c=o.height,l=o.stroke,h=o.travellerWidth,p=Math.min(n,a)+h,d=Math.max(Math.abs(a-n)-h,0);return R.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:p,y:u,width:d,height:c})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,o=n.endIndex,u=n.y,c=n.height,l=n.travellerWidth,h=n.stroke,p=this.state,d=p.startX,m=p.endX,g=5,x={pointerEvents:"none",fill:h};return R.createElement(Jt,{className:"recharts-brush-texts"},R.createElement(vo,Bo({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,m)-g,y:u+c/2},x),this.getTextOfTick(a)),R.createElement(vo,Bo({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,m)+l+g,y:u+c/2},x),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,a=n.data,o=n.className,u=n.children,c=n.x,l=n.y,h=n.width,p=n.height,d=n.alwaysShowText,m=this.state,g=m.startX,x=m.endX,b=m.isTextActive,_=m.isSlideMoving,A=m.isTravellerMoving,T=m.isTravellerFocused;if(!a||!a.length||!tt(c)||!tt(l)||!tt(h)||!tt(p)||h<=0||p<=0)return null;var O=Tt("recharts-brush",o),E=R.Children.count(u)===1,w=m$("userSelect","none");return R.createElement(Jt,{className:O,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(g,x),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(x,"endX"),(b||_||A||T||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,o=n.y,u=n.width,c=n.height,l=n.stroke,h=Math.floor(o+c/2)-1;return R.createElement(R.Fragment,null,R.createElement("rect",{x:a,y:o,width:u,height:c,fill:l,stroke:"none"}),R.createElement("line",{x1:a+1,y1:h,x2:a+u-1,y2:h,fill:"none",stroke:"#fff"}),R.createElement("line",{x1:a+1,y1:h+2,x2:a+u-1,y2:h+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var o;return R.isValidElement(n)?o=R.cloneElement(n,a):gt(n)?o=n(a):o=e.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(n,a){var o=n.data,u=n.width,c=n.x,l=n.travellerWidth,h=n.updateId,p=n.startIndex,d=n.endIndex;if(o!==a.prevData||h!==a.prevUpdateId)return zf({prevData:o,prevTravellerWidth:l,prevUpdateId:h,prevX:c,prevWidth:u},o&&o.length?O$({data:o,width:u,x:c,travellerWidth:l,startIndex:p,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(u!==a.prevWidth||c!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([c,c+u-l]);var m=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:h,prevX:c,prevWidth:u,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(n,a){for(var o=n.length,u=0,c=o-1;c-u>1;){var l=Math.floor((u+c)/2);n[l]>a?c=l:u=l}return a>=n[c]?c:u}}])}(K.PureComponent);pe(Rn,"displayName","Brush");pe(Rn,"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 Ff,L0;function S$(){if(L0)return Ff;L0=1;var t=zd();function e(r,n){var a;return t(r,function(o,u,c){return a=n(o,u,c),!a}),!!a}return Ff=e,Ff}var Wf,k0;function A$(){if(k0)return Wf;k0=1;var t=Vx(),e=wr(),r=S$(),n=he(),a=cs();function o(u,c,l){var h=n(u)?t:r;return l&&a(u,c,l)&&(c=void 0),h(u,e(c,3))}return Wf=o,Wf}var T$=A$();const E$=Ct(T$);var He=function(e,r){var n=e.alwaysShow,a=e.ifOverflow;return n&&(a="extendDomain"),a===r},Uf,R0;function M$(){if(R0)return Uf;R0=1;var t=dw();function e(r,n,a){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return Uf=e,Uf}var Hf,N0;function C$(){if(N0)return Hf;N0=1;var t=M$(),e=fw(),r=wr();function n(a,o){var u={};return o=r(o,3),e(a,function(c,l,h){t(u,l,o(c,l,h))}),u}return Hf=n,Hf}var j$=C$();const I$=Ct(j$);var Zf,$0;function L$(){if($0)return Zf;$0=1;function t(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(!r(e[n],n,e))return!1;return!0}return Zf=t,Zf}var Gf,D0;function k$(){if(D0)return Gf;D0=1;var t=zd();function e(r,n){var a=!0;return t(r,function(o,u,c){return a=!!n(o,u,c),a}),a}return Gf=e,Gf}var Kf,B0;function R$(){if(B0)return Kf;B0=1;var t=L$(),e=k$(),r=wr(),n=he(),a=cs();function o(u,c,l){var h=n(u)?t:e;return l&&a(u,c,l)&&(c=void 0),h(u,r(c,3))}return Kf=o,Kf}var N$=R$();const F1=Ct(N$);var $$=["x","y"];function aa(t){"@babel/helpers - typeof";return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aa(t)}function ed(){return ed=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ed.apply(this,arguments)}function q0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function bi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?q0(Object(r),!0).forEach(function(n){D$(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function D$(t,e,r){return e=B$(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function B$(t){var e=q$(t,"string");return aa(e)=="symbol"?e:e+""}function q$(t,e){if(aa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(aa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function z$(t,e){if(t==null)return{};var r=F$(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function F$(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function W$(t,e){var r=t.x,n=t.y,a=z$(t,$$),o="".concat(r),u=parseInt(o,10),c="".concat(n),l=parseInt(c,10),h="".concat(e.height||a.height),p=parseInt(h,10),d="".concat(e.width||a.width),m=parseInt(d,10);return bi(bi(bi(bi(bi({},e),a),u?{x:u}:{}),l?{y:l}:{}),{},{height:p,width:m,name:e.name,radius:e.radius})}function z0(t){return R.createElement(e$,ed({shapeType:"rectangle",propTransformer:W$,activeClassName:"recharts-active-bar"},t))}var U$=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof e=="number")return e;var o=typeof n=="number";return o?e(n,a):(o||Kr(),r)}},H$=["value","background"],W1;function Nn(t){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn(t)}function Z$(t,e){if(t==null)return{};var r=G$(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function G$(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function zo(){return zo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zo.apply(this,arguments)}function F0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ut(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?F0(Object(r),!0).forEach(function(n){gr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function K$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W0(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,H1(n.key),n)}}function V$(t,e,r){return e&&W0(t.prototype,e),r&&W0(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function X$(t,e,r){return e=Fo(e),Y$(t,U1()?Reflect.construct(e,r||[],Fo(t).constructor):e.apply(t,r))}function Y$(t,e){if(e&&(Nn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J$(t)}function J$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U1=function(){return!!t})()}function Fo(t){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fo(t)}function Q$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rd(t,e)}function rd(t,e){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},rd(t,e)}function gr(t,e,r){return e=H1(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function H1(t){var e=tD(t,"string");return Nn(e)=="symbol"?e:e+""}function tD(t,e){if(Nn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var vt=function(t){function e(){var r;K$(this,e);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return r=X$(this,e,[].concat(a)),gr(r,"state",{isAnimationFinished:!1}),gr(r,"id",rs("recharts-bar-")),gr(r,"handleAnimationEnd",function(){var u=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),u&&u()}),gr(r,"handleAnimationStart",function(){var u=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),u&&u()}),r}return Q$(e,t),V$(e,[{key:"renderRectanglesStatically",value:function(n){var a=this,o=this.props,u=o.shape,c=o.dataKey,l=o.activeIndex,h=o.activeBar,p=Pt(this.props,!1);return n&&n.map(function(d,m){var g=m===l,x=g?h:u,b=Ut(Ut(Ut({},p),d),{},{isActive:g,option:x,index:m,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return R.createElement(Jt,zo({className:"recharts-bar-rectangle"},no(a.props,d,m),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value)}),R.createElement(z0,b))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,o=a.data,u=a.layout,c=a.isAnimationActive,l=a.animationBegin,h=a.animationDuration,p=a.animationEasing,d=a.animationId,m=this.state.prevData;return R.createElement(br,{begin:l,duration:h,isActive:c,easing:p,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t,b=o.map(function(_,A){var T=m&&m[A];if(T){var O=pn(T.x,_.x),E=pn(T.y,_.y),w=pn(T.width,_.width),S=pn(T.height,_.height);return Ut(Ut({},_),{},{x:O(x),y:E(x),width:w(x),height:S(x)})}if(u==="horizontal"){var M=pn(0,_.height),I=M(x);return Ut(Ut({},_),{},{y:_.y+_.height-I,height:I})}var k=pn(0,_.width),$=k(x);return Ut(Ut({},_),{},{width:$})});return R.createElement(Jt,null,n.renderRectanglesStatically(b))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,o=n.isAnimationActive,u=this.state.prevData;return o&&a&&a.length&&(!u||!hp(u,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,o=a.data,u=a.dataKey,c=a.activeIndex,l=Pt(this.props.background,!1);return o.map(function(h,p){h.value;var d=h.background,m=Z$(h,H$);if(!d)return null;var g=Ut(Ut(Ut(Ut(Ut({},m),{},{fill:"#eee"},d),l),no(n.props,h,p)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:u,index:p,className:"recharts-bar-background-rectangle"});return R.createElement(z0,zo({key:"background-bar-".concat(p),option:n.props.background,isActive:p===c},g))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,u=o.data,c=o.xAxis,l=o.yAxis,h=o.layout,p=o.children,d=Re(p,bs);if(!d)return null;var m=h==="vertical"?u[0].height/2:u[0].width/2,g=function(_,A){var T=Array.isArray(_.value)?_.value[1]:_.value;return{x:_.x,y:_.y,value:T,errorVal:Ge(_,A)}},x={clipPath:n?"url(#clipPath-".concat(a,")"):null};return R.createElement(Jt,x,d.map(function(b){return R.cloneElement(b,{key:"error-bar-".concat(a,"-").concat(b.props.dataKey),data:u,xAxis:c,yAxis:l,layout:h,offset:m,dataPointFormatter:g})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,o=n.data,u=n.className,c=n.xAxis,l=n.yAxis,h=n.left,p=n.top,d=n.width,m=n.height,g=n.isAnimationActive,x=n.background,b=n.id;if(a||!o||!o.length)return null;var _=this.state.isAnimationFinished,A=Tt("recharts-bar",u),T=c&&c.allowDataOverflow,O=l&&l.allowDataOverflow,E=T||O,w=At(b)?this.id:b;return R.createElement(Jt,{className:A},T||O?R.createElement("defs",null,R.createElement("clipPath",{id:"clipPath-".concat(w)},R.createElement("rect",{x:T?h:h-d/2,y:O?p:p-m/2,width:T?d:d*2,height:O?m:m*2}))):null,R.createElement(Jt,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(w,")"):null},x?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,w),(!g||_)&&Hr.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])}(K.PureComponent);W1=vt;gr(vt,"displayName","Bar");gr(vt,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!pa.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});gr(vt,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,a=t.bandSize,o=t.xAxis,u=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,h=t.stackedData,p=t.dataStartIndex,d=t.displayedData,m=t.offset,g=_k(n,r);if(!g)return null;var x=e.layout,b=r.type.defaultProps,_=b!==void 0?Ut(Ut({},b),r.props):r.props,A=_.dataKey,T=_.children,O=_.minPointSize,E=x==="horizontal"?u:o,w=h?E.scale.domain():null,S=Tk({numericAxis:E}),M=Re(T,bw),I=d.map(function(k,$){var C,N,q,F,W,Z;h?C=bk(h[p+$],w):(C=Ge(k,A),Array.isArray(C)||(C=[S,C]));var X=U$(O,W1.defaultProps.minPointSize)(C[1],$);if(x==="horizontal"){var H,Q=[u.scale(C[0]),u.scale(C[1])],Y=Q[0],et=Q[1];N=Sb({axis:o,ticks:c,bandSize:a,offset:g.offset,entry:k,index:$}),q=(H=et??Y)!==null&&H!==void 0?H:void 0,F=g.size;var J=Y-et;if(W=Number.isNaN(J)?0:J,Z={x:N,y:u.y,width:F,height:u.height},Math.abs(X)>0&&Math.abs(W)<Math.abs(X)){var at=ke(W||X)*(Math.abs(X)-Math.abs(W));q-=at,W+=at}}else{var ft=[o.scale(C[0]),o.scale(C[1])],ut=ft[0],lt=ft[1];if(N=ut,q=Sb({axis:u,ticks:l,bandSize:a,offset:g.offset,entry:k,index:$}),F=lt-ut,W=g.size,Z={x:o.x,y:q,width:o.width,height:W},Math.abs(X)>0&&Math.abs(F)<Math.abs(X)){var te=ke(F||X)*(Math.abs(X)-Math.abs(F));F+=te}}return Ut(Ut(Ut({},k),{},{x:N,y:q,width:F,height:W,value:h?C:C[1],payload:k,background:Z},M&&M[$]&&M[$].props),{},{tooltipPayload:[A1(r,k)],tooltipPosition:{x:N+F/2,y:q+W/2}})});return Ut({data:I,layout:x},m)});function oa(t){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oa(t)}function eD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U0(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z1(n.key),n)}}function rD(t,e,r){return e&&U0(t.prototype,e),r&&U0(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function H0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?H0(Object(r),!0).forEach(function(n){Ps(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ps(t,e,r){return e=Z1(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Z1(t){var e=nD(t,"string");return oa(e)=="symbol"?e:e+""}function nD(t,e){if(oa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var iD=function(e,r,n,a,o){var u=e.width,c=e.height,l=e.layout,h=e.children,p=Object.keys(r),d={left:n.left,leftMirror:n.left,right:u-n.right,rightMirror:u-n.right,top:n.top,topMirror:n.top,bottom:c-n.bottom,bottomMirror:c-n.bottom},m=!!ve(h,vt);return p.reduce(function(g,x){var b=r[x],_=b.orientation,A=b.domain,T=b.padding,O=T===void 0?{}:T,E=b.mirror,w=b.reversed,S="".concat(_).concat(E?"Mirror":""),M,I,k,$,C;if(b.type==="number"&&(b.padding==="gap"||b.padding==="no-gap")){var N=A[1]-A[0],q=1/0,F=b.categoricalDomain.sort();if(F.forEach(function(ft,ut){ut>0&&(q=Math.min((ft||0)-(F[ut-1]||0),q))}),Number.isFinite(q)){var W=q/N,Z=b.layout==="vertical"?n.height:n.width;if(b.padding==="gap"&&(M=W*Z/2),b.padding==="no-gap"){var X=Zr(e.barCategoryGap,W*Z),H=W*Z/2;M=H-X-(H-X)/Z*X}}}a==="xAxis"?I=[n.left+(O.left||0)+(M||0),n.left+n.width-(O.right||0)-(M||0)]:a==="yAxis"?I=l==="horizontal"?[n.top+n.height-(O.bottom||0),n.top+(O.top||0)]:[n.top+(O.top||0)+(M||0),n.top+n.height-(O.bottom||0)-(M||0)]:I=b.range,w&&(I=[I[1],I[0]]);var Q=yk(b,o,m),Y=Q.scale,et=Q.realScaleType;Y.domain(A).range(I),gk(Y);var J=Ak(Y,Ie(Ie({},b),{},{realScaleType:et}));a==="xAxis"?(C=_==="top"&&!E||_==="bottom"&&E,k=n.left,$=d[S]-C*b.height):a==="yAxis"&&(C=_==="left"&&!E||_==="right"&&E,k=d[S]-C*b.width,$=n.top);var at=Ie(Ie(Ie({},b),J),{},{realScaleType:et,x:k,y:$,scale:Y,width:a==="xAxis"?n.width:b.width,height:a==="yAxis"?n.height:b.height});return at.bandSize=Mo(at,J),!b.hide&&a==="xAxis"?d[S]+=(C?-1:1)*at.height:b.hide||(d[S]+=(C?-1:1)*at.width),Ie(Ie({},g),{},Ps({},x,at))},{})},G1=function(e,r){var n=e.x,a=e.y,o=r.x,u=r.y;return{x:Math.min(n,o),y:Math.min(a,u),width:Math.abs(o-n),height:Math.abs(u-a)}},aD=function(e){var r=e.x1,n=e.y1,a=e.x2,o=e.y2;return G1({x:r,y:n},{x:a,y:o})},K1=function(){function t(e){eD(this,t),this.scale=e}return rD(t,[{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]:{},a=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(r)+c}default:return this.scale(r)}if(a){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(),a=n[0],o=n[n.length-1];return a<=o?r>=a&&r<=o:r>=o&&r<=a}}],[{key:"create",value:function(r){return new t(r)}}])}();Ps(K1,"EPS",1e-4);var yp=function(e){var r=Object.keys(e).reduce(function(n,a){return Ie(Ie({},n),{},Ps({},a,K1.create(e[a])))},{});return Ie(Ie({},r),{},{apply:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.bandAware,c=o.position;return I$(a,function(l,h){return r[h].apply(l,{bandAware:u,position:c})})},isInRange:function(a){return F1(a,function(o,u){return r[u].isInRange(o)})}})};function oD(t){return(t%180+180)%180}var sD=function(e){var r=e.width,n=e.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=oD(a),u=o*Math.PI/180,c=Math.atan(n/r),l=u>c&&u<Math.PI-c?n/Math.sin(u):r/Math.cos(u);return Math.abs(l)},Vf,Z0;function uD(){if(Z0)return Vf;Z0=1;var t=wr(),e=da(),r=ss();function n(a){return function(o,u,c){var l=Object(o);if(!e(o)){var h=t(u,3);o=r(o),u=function(d){return h(l[d],d,l)}}var p=a(o,u,c);return p>-1?l[h?o[p]:p]:void 0}}return Vf=n,Vf}var Xf,G0;function cD(){if(G0)return Xf;G0=1;var t=D1();function e(r){var n=t(r),a=n%1;return n===n?a?n-a:n:0}return Xf=e,Xf}var Yf,K0;function lD(){if(K0)return Yf;K0=1;var t=ow(),e=wr(),r=cD(),n=Math.max;function a(o,u,c){var l=o==null?0:o.length;if(!l)return-1;var h=c==null?0:r(c);return h<0&&(h=n(l+h,0)),t(o,e(u,3),h)}return Yf=a,Yf}var Jf,V0;function fD(){if(V0)return Jf;V0=1;var t=uD(),e=lD(),r=t(e);return Jf=r,Jf}var hD=fD();const dD=Ct(hD);var pD=wx();const vD=Ct(pD);var mD=vD(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),gp=K.createContext(void 0),_p=K.createContext(void 0),V1=K.createContext(void 0),X1=K.createContext({}),Y1=K.createContext(void 0),J1=K.createContext(0),Q1=K.createContext(0),X0=function(e){var r=e.state,n=r.xAxisMap,a=r.yAxisMap,o=r.offset,u=e.clipPathId,c=e.children,l=e.width,h=e.height,p=mD(o);return R.createElement(gp.Provider,{value:n},R.createElement(_p.Provider,{value:a},R.createElement(X1.Provider,{value:o},R.createElement(V1.Provider,{value:p},R.createElement(Y1.Provider,{value:u},R.createElement(J1.Provider,{value:h},R.createElement(Q1.Provider,{value:l},c)))))))},yD=function(){return K.useContext(Y1)},tP=function(e){var r=K.useContext(gp);r==null&&Kr();var n=r[e];return n==null&&Kr(),n},gD=function(){var e=K.useContext(gp);return yr(e)},_D=function(){var e=K.useContext(_p),r=dD(e,function(n){return F1(n.domain,Number.isFinite)});return r||yr(e)},eP=function(e){var r=K.useContext(_p);r==null&&Kr();var n=r[e];return n==null&&Kr(),n},bD=function(){var e=K.useContext(V1);return e},xD=function(){return K.useContext(X1)},bp=function(){return K.useContext(Q1)},xp=function(){return K.useContext(J1)};function $n(t){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(t)}function wD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nP(n.key),n)}}function OD(t,e,r){return e&&PD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function SD(t,e,r){return e=Wo(e),AD(t,rP()?Reflect.construct(e,r||[],Wo(t).constructor):e.apply(t,r))}function AD(t,e){if(e&&($n(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TD(t)}function TD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rP=function(){return!!t})()}function Wo(t){return Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wo(t)}function ED(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nd(t,e)}function nd(t,e){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},nd(t,e)}function Y0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function J0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Y0(Object(r),!0).forEach(function(n){wp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y0(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wp(t,e,r){return e=nP(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nP(t){var e=MD(t,"string");return $n(e)=="symbol"?e:e+""}function MD(t,e){if($n(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function CD(t,e){return kD(t)||LD(t,e)||ID(t,e)||jD()}function jD(){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 ID(t,e){if(t){if(typeof t=="string")return Q0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q0(t,e)}}function Q0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function LD(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function kD(t){if(Array.isArray(t))return t}function id(){return id=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},id.apply(this,arguments)}var RD=function(e,r){var n;return R.isValidElement(e)?n=R.cloneElement(e,r):gt(e)?n=e(r):n=R.createElement("line",id({},r,{className:"recharts-reference-line-line"})),n},ND=function(e,r,n,a,o,u,c,l,h){var p=o.x,d=o.y,m=o.width,g=o.height;if(n){var x=h.y,b=e.y.apply(x,{position:u});if(He(h,"discard")&&!e.y.isInRange(b))return null;var _=[{x:p+m,y:b},{x:p,y:b}];return l==="left"?_.reverse():_}if(r){var A=h.x,T=e.x.apply(A,{position:u});if(He(h,"discard")&&!e.x.isInRange(T))return null;var O=[{x:T,y:d+g},{x:T,y:d}];return c==="top"?O.reverse():O}if(a){var E=h.segment,w=E.map(function(S){return e.apply(S,{position:u})});return He(h,"discard")&&E$(w,function(S){return!e.isInRange(S)})?null:w}return null};function $D(t){var e=t.x,r=t.y,n=t.segment,a=t.xAxisId,o=t.yAxisId,u=t.shape,c=t.className,l=t.alwaysShow,h=yD(),p=tP(a),d=eP(o),m=bD();if(!h||!m)return null;ar(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=yp({x:p.scale,y:d.scale}),x=Gt(e),b=Gt(r),_=n&&n.length===2,A=ND(g,x,b,_,m,t.position,p.orientation,d.orientation,t);if(!A)return null;var T=CD(A,2),O=T[0],E=O.x,w=O.y,S=T[1],M=S.x,I=S.y,k=He(t,"hidden")?"url(#".concat(h,")"):void 0,$=J0(J0({clipPath:k},Pt(t,!0)),{},{x1:E,y1:w,x2:M,y2:I});return R.createElement(Jt,{className:Tt("recharts-reference-line",c)},RD(u,$),ae.renderCallByParent(t,aD({x1:E,y1:w,x2:M,y2:I})))}var Pp=function(t){function e(){return wD(this,e),SD(this,e,arguments)}return ED(e,t),OD(e,[{key:"render",value:function(){return R.createElement($D,this.props)}}])}(R.Component);wp(Pp,"displayName","ReferenceLine");wp(Pp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ad(){return ad=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ad.apply(this,arguments)}function Dn(t){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(t)}function tx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ex(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tx(Object(r),!0).forEach(function(n){Os(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function DD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aP(n.key),n)}}function qD(t,e,r){return e&&BD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function zD(t,e,r){return e=Uo(e),FD(t,iP()?Reflect.construct(e,r||[],Uo(t).constructor):e.apply(t,r))}function FD(t,e){if(e&&(Dn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WD(t)}function WD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iP=function(){return!!t})()}function Uo(t){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uo(t)}function UD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&od(t,e)}function od(t,e){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},od(t,e)}function Os(t,e,r){return e=aP(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aP(t){var e=HD(t,"string");return Dn(e)=="symbol"?e:e+""}function HD(t,e){if(Dn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ZD=function(e){var r=e.x,n=e.y,a=e.xAxis,o=e.yAxis,u=yp({x:a.scale,y:o.scale}),c=u.apply({x:r,y:n},{bandAware:!0});return He(e,"discard")&&!u.isInRange(c)?null:c},Ss=function(t){function e(){return DD(this,e),zD(this,e,arguments)}return UD(e,t),qD(e,[{key:"render",value:function(){var n=this.props,a=n.x,o=n.y,u=n.r,c=n.alwaysShow,l=n.clipPathId,h=Gt(a),p=Gt(o);if(ar(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!h||!p)return null;var d=ZD(this.props);if(!d)return null;var m=d.x,g=d.y,x=this.props,b=x.shape,_=x.className,A=He(this.props,"hidden")?"url(#".concat(l,")"):void 0,T=ex(ex({clipPath:A},Pt(this.props,!0)),{},{cx:m,cy:g});return R.createElement(Jt,{className:Tt("recharts-reference-dot",_)},e.renderDot(b,T),ae.renderCallByParent(this.props,{x:m-u,y:g-u,width:2*u,height:2*u}))}}])}(R.Component);Os(Ss,"displayName","ReferenceDot");Os(Ss,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Os(Ss,"renderDot",function(t,e){var r;return R.isValidElement(t)?r=R.cloneElement(t,e):gt(t)?r=t(e):r=R.createElement($1,ad({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),r});function sd(){return sd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sd.apply(this,arguments)}function Bn(t){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bn(t)}function rx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function nx(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rx(Object(r),!0).forEach(function(n){As(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function GD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sP(n.key),n)}}function VD(t,e,r){return e&&KD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function XD(t,e,r){return e=Ho(e),YD(t,oP()?Reflect.construct(e,r||[],Ho(t).constructor):e.apply(t,r))}function YD(t,e){if(e&&(Bn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JD(t)}function JD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oP=function(){return!!t})()}function Ho(t){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ho(t)}function QD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ud(t,e)}function ud(t,e){return ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ud(t,e)}function As(t,e,r){return e=sP(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sP(t){var e=tB(t,"string");return Bn(e)=="symbol"?e:e+""}function tB(t,e){if(Bn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var eB=function(e,r,n,a,o){var u=o.x1,c=o.x2,l=o.y1,h=o.y2,p=o.xAxis,d=o.yAxis;if(!p||!d)return null;var m=yp({x:p.scale,y:d.scale}),g={x:e?m.x.apply(u,{position:"start"}):m.x.rangeMin,y:n?m.y.apply(l,{position:"start"}):m.y.rangeMin},x={x:r?m.x.apply(c,{position:"end"}):m.x.rangeMax,y:a?m.y.apply(h,{position:"end"}):m.y.rangeMax};return He(o,"discard")&&(!m.isInRange(g)||!m.isInRange(x))?null:G1(g,x)},Ts=function(t){function e(){return GD(this,e),XD(this,e,arguments)}return QD(e,t),VD(e,[{key:"render",value:function(){var n=this.props,a=n.x1,o=n.x2,u=n.y1,c=n.y2,l=n.className,h=n.alwaysShow,p=n.clipPathId;ar(h===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Gt(a),m=Gt(o),g=Gt(u),x=Gt(c),b=this.props.shape;if(!d&&!m&&!g&&!x&&!b)return null;var _=eB(d,m,g,x,this.props);if(!_&&!b)return null;var A=He(this.props,"hidden")?"url(#".concat(p,")"):void 0;return R.createElement(Jt,{className:Tt("recharts-reference-area",l)},e.renderRect(b,nx(nx({clipPath:A},Pt(this.props,!0)),_)),ae.renderCallByParent(this.props,_))}}])}(R.Component);As(Ts,"displayName","ReferenceArea");As(Ts,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});As(Ts,"renderRect",function(t,e){var r;return R.isValidElement(t)?r=R.cloneElement(t,e):gt(t)?r=t(e):r=R.createElement(mp,sd({},e,{className:"recharts-reference-area-rect"})),r});function uP(t,e,r){if(e<1)return[];if(e===1&&r===void 0)return t;for(var n=[],a=0;a<t.length;a+=e)n.push(t[a]);return n}function rB(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return sD(n,r)}function nB(t,e,r){var n=r==="width",a=t.x,o=t.y,u=t.width,c=t.height;return e===1?{start:n?a:o,end:n?a+u:o+c}:{start:n?a+u:o+c,end:n?a:o}}function Zo(t,e,r,n,a){if(t*e<t*n||t*e>t*a)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-a)<=0}function iB(t,e){return uP(t,e+1)}function aB(t,e,r,n,a){for(var o=(n||[]).slice(),u=e.start,c=e.end,l=0,h=1,p=u,d=function(){var x=n==null?void 0:n[l];if(x===void 0)return{v:uP(n,h)};var b=l,_,A=function(){return _===void 0&&(_=r(x,b)),_},T=x.coordinate,O=l===0||Zo(t,T,A,p,c);O||(l=0,p=u,h+=1),O&&(p=T+t*(A()/2+a),l+=h)},m;h<=o.length;)if(m=d(),m)return m.v;return[]}function sa(t){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sa(t)}function ix(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ix(Object(r),!0).forEach(function(n){oB(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ix(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function oB(t,e,r){return e=sB(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sB(t){var e=uB(t,"string");return sa(e)=="symbol"?e:e+""}function uB(t,e){if(sa(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cB(t,e,r,n,a){for(var o=(n||[]).slice(),u=o.length,c=e.start,l=e.end,h=function(m){var g=o[m],x,b=function(){return x===void 0&&(x=r(g,m)),x};if(m===u-1){var _=t*(g.coordinate+t*b()/2-l);o[m]=g=ie(ie({},g),{},{tickCoord:_>0?g.coordinate-_*t:g.coordinate})}else o[m]=g=ie(ie({},g),{},{tickCoord:g.coordinate});var A=Zo(t,g.tickCoord,b,c,l);A&&(l=g.tickCoord-t*(b()/2+a),o[m]=ie(ie({},g),{},{isShow:!0}))},p=u-1;p>=0;p--)h(p);return o}function lB(t,e,r,n,a,o){var u=(n||[]).slice(),c=u.length,l=e.start,h=e.end;if(o){var p=n[c-1],d=r(p,c-1),m=t*(p.coordinate+t*d/2-h);u[c-1]=p=ie(ie({},p),{},{tickCoord:m>0?p.coordinate-m*t:p.coordinate});var g=Zo(t,p.tickCoord,function(){return d},l,h);g&&(h=p.tickCoord-t*(d/2+a),u[c-1]=ie(ie({},p),{},{isShow:!0}))}for(var x=o?c-1:c,b=function(T){var O=u[T],E,w=function(){return E===void 0&&(E=r(O,T)),E};if(T===0){var S=t*(O.coordinate-t*w()/2-l);u[T]=O=ie(ie({},O),{},{tickCoord:S<0?O.coordinate-S*t:O.coordinate})}else u[T]=O=ie(ie({},O),{},{tickCoord:O.coordinate});var M=Zo(t,O.tickCoord,w,l,h);M&&(l=O.tickCoord+t*(w()/2+a),u[T]=ie(ie({},O),{},{isShow:!0}))},_=0;_<x;_++)b(_);return u}function Op(t,e,r){var n=t.tick,a=t.ticks,o=t.viewBox,u=t.minTickGap,c=t.orientation,l=t.interval,h=t.tickFormatter,p=t.unit,d=t.angle;if(!a||!a.length||!n)return[];if(tt(l)||pa.isSsr)return iB(a,typeof l=="number"&&tt(l)?l:0);var m=[],g=c==="top"||c==="bottom"?"width":"height",x=p&&g==="width"?Si(p,{fontSize:e,letterSpacing:r}):{width:0,height:0},b=function(O,E){var w=gt(h)?h(O.value,E):O.value;return g==="width"?rB(Si(w,{fontSize:e,letterSpacing:r}),x,d):Si(w,{fontSize:e,letterSpacing:r})[g]},_=a.length>=2?ke(a[1].coordinate-a[0].coordinate):1,A=nB(o,_,g);return l==="equidistantPreserveStart"?aB(_,A,b,a,u):(l==="preserveStart"||l==="preserveStartEnd"?m=lB(_,A,b,a,u,l==="preserveStartEnd"):m=cB(_,A,b,a,u),m.filter(function(T){return T.isShow}))}var fB=["viewBox"],hB=["viewBox"],dB=["ticks"];function qn(t){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qn(t)}function _n(){return _n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_n.apply(this,arguments)}function ax(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ax(Object(r),!0).forEach(function(n){Sp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ax(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Qf(t,e){if(t==null)return{};var r=pB(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function pB(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function vB(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ox(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,lP(n.key),n)}}function mB(t,e,r){return e&&ox(t.prototype,e),r&&ox(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yB(t,e,r){return e=Go(e),gB(t,cP()?Reflect.construct(e,r||[],Go(t).constructor):e.apply(t,r))}function gB(t,e){if(e&&(qn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _B(t)}function _B(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cP=function(){return!!t})()}function Go(t){return Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Go(t)}function bB(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cd(t,e)}function cd(t,e){return cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},cd(t,e)}function Sp(t,e,r){return e=lP(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lP(t){var e=xB(t,"string");return qn(e)=="symbol"?e:e+""}function xB(t,e){if(qn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Yn=function(t){function e(r){var n;return vB(this,e),n=yB(this,e,[r]),n.state={fontSize:"",letterSpacing:""},n}return bB(e,t),mB(e,[{key:"shouldComponentUpdate",value:function(n,a){var o=n.viewBox,u=Qf(n,fB),c=this.props,l=c.viewBox,h=Qf(c,hB);return!xn(o,l)||!xn(u,h)||!xn(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,o=a.x,u=a.y,c=a.width,l=a.height,h=a.orientation,p=a.tickSize,d=a.mirror,m=a.tickMargin,g,x,b,_,A,T,O=d?-1:1,E=n.tickSize||p,w=tt(n.tickCoord)?n.tickCoord:n.coordinate;switch(h){case"top":g=x=n.coordinate,_=u+ +!d*l,b=_-O*E,T=b-O*m,A=w;break;case"left":b=_=n.coordinate,x=o+ +!d*c,g=x-O*E,A=g-O*m,T=w;break;case"right":b=_=n.coordinate,x=o+ +d*c,g=x+O*E,A=g+O*m,T=w;break;default:g=x=n.coordinate,_=u+ +d*l,b=_+O*E,T=b+O*m,A=w;break}return{line:{x1:g,y1:b,x2:x,y2:_},tick:{x:A,y:T}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,o=n.mirror,u;switch(a){case"left":u=o?"start":"end";break;case"right":u=o?"end":"start";break;default:u="middle";break}return u}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,o=n.mirror,u="end";switch(a){case"left":case"right":u="middle";break;case"top":u=o?"start":"end";break;default:u=o?"end":"start";break}return u}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,o=n.y,u=n.width,c=n.height,l=n.orientation,h=n.mirror,p=n.axisLine,d=ue(ue(ue({},Pt(this.props,!1)),Pt(p,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var m=+(l==="top"&&!h||l==="bottom"&&h);d=ue(ue({},d),{},{x1:a,y1:o+m*c,x2:a+u,y2:o+m*c})}else{var g=+(l==="left"&&!h||l==="right"&&h);d=ue(ue({},d),{},{x1:a+g*u,y1:o,x2:a+g*u,y2:o+c})}return R.createElement("line",_n({},d,{className:Tt("recharts-cartesian-axis-line",Oe(p,"className"))}))}},{key:"renderTicks",value:function(n,a,o){var u=this,c=this.props,l=c.tickLine,h=c.stroke,p=c.tick,d=c.tickFormatter,m=c.unit,g=Op(ue(ue({},this.props),{},{ticks:n}),a,o),x=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),_=Pt(this.props,!1),A=Pt(p,!1),T=ue(ue({},_),{},{fill:"none"},Pt(l,!1)),O=g.map(function(E,w){var S=u.getTickLineCoord(E),M=S.line,I=S.tick,k=ue(ue(ue(ue({textAnchor:x,verticalAnchor:b},_),{},{stroke:"none",fill:h},A),I),{},{index:w,payload:E,visibleTicksCount:g.length,tickFormatter:d});return R.createElement(Jt,_n({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},no(u.props,E,w)),l&&R.createElement("line",_n({},T,M,{className:Tt("recharts-cartesian-axis-tick-line",Oe(l,"className"))})),p&&e.renderTickItem(p,k,"".concat(gt(d)?d(E.value,w):E.value).concat(m||"")))});return R.createElement("g",{className:"recharts-cartesian-axis-ticks"},O)}},{key:"render",value:function(){var n=this,a=this.props,o=a.axisLine,u=a.width,c=a.height,l=a.ticksGenerator,h=a.className,p=a.hide;if(p)return null;var d=this.props,m=d.ticks,g=Qf(d,dB),x=m;return gt(l)&&(x=m&&m.length>0?l(this.props):l(g)),u<=0||c<=0||!x||!x.length?null:R.createElement(Jt,{className:Tt("recharts-cartesian-axis",h),ref:function(_){n.layerReference=_}},o&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),ae.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,o){var u;return R.isValidElement(n)?u=R.cloneElement(n,a):gt(n)?u=n(a):u=R.createElement(vo,_n({},a,{className:"recharts-cartesian-axis-tick-value"}),o),u}}])}(K.Component);Sp(Yn,"displayName","CartesianAxis");Sp(Yn,"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 wB=["x1","y1","x2","y2","key"],PB=["offset"];function Vr(t){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr(t)}function sx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sx(Object(r),!0).forEach(function(n){OB(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function OB(t,e,r){return e=SB(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SB(t){var e=AB(t,"string");return Vr(e)=="symbol"?e:e+""}function AB(t,e){if(Vr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qr(){return qr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qr.apply(this,arguments)}function ux(t,e){if(t==null)return{};var r=TB(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function TB(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var EB=function(e){var r=e.fill;if(!r||r==="none")return null;var n=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,l=e.ry;return R.createElement("rect",{x:a,y:o,ry:l,width:u,height:c,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function fP(t,e){var r;if(R.isValidElement(t))r=R.cloneElement(t,e);else if(gt(t))r=t(e);else{var n=e.x1,a=e.y1,o=e.x2,u=e.y2,c=e.key,l=ux(e,wB),h=Pt(l,!1);h.offset;var p=ux(h,PB);r=R.createElement("line",qr({},p,{x1:n,y1:a,x2:o,y2:u,fill:"none",key:c}))}return r}function MB(t){var e=t.x,r=t.width,n=t.horizontal,a=n===void 0?!0:n,o=t.horizontalPoints;if(!a||!o||!o.length)return null;var u=o.map(function(c,l){var h=oe(oe({},t),{},{x1:e,y1:c,x2:e+r,y2:c,key:"line-".concat(l),index:l});return fP(a,h)});return R.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function CB(t){var e=t.y,r=t.height,n=t.vertical,a=n===void 0?!0:n,o=t.verticalPoints;if(!a||!o||!o.length)return null;var u=o.map(function(c,l){var h=oe(oe({},t),{},{x1:c,y1:e,x2:c,y2:e+r,key:"line-".concat(l),index:l});return fP(a,h)});return R.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function jB(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,a=t.y,o=t.width,u=t.height,c=t.horizontalPoints,l=t.horizontal,h=l===void 0?!0:l;if(!h||!e||!e.length)return null;var p=c.map(function(m){return Math.round(m+a-a)}).sort(function(m,g){return m-g});a!==p[0]&&p.unshift(0);var d=p.map(function(m,g){var x=!p[g+1],b=x?a+u-m:p[g+1]-m;if(b<=0)return null;var _=g%e.length;return R.createElement("rect",{key:"react-".concat(g),y:m,x:n,height:b,width:o,stroke:"none",fill:e[_],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return R.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function IB(t){var e=t.vertical,r=e===void 0?!0:e,n=t.verticalFill,a=t.fillOpacity,o=t.x,u=t.y,c=t.width,l=t.height,h=t.verticalPoints;if(!r||!n||!n.length)return null;var p=h.map(function(m){return Math.round(m+o-o)}).sort(function(m,g){return m-g});o!==p[0]&&p.unshift(0);var d=p.map(function(m,g){var x=!p[g+1],b=x?o+c-m:p[g+1]-m;if(b<=0)return null;var _=g%n.length;return R.createElement("rect",{key:"react-".concat(g),x:m,y:u,width:b,height:l,stroke:"none",fill:n[_],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return R.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var LB=function(e,r){var n=e.xAxis,a=e.width,o=e.height,u=e.offset;return O1(Op(oe(oe(oe({},Yn.defaultProps),n),{},{ticks:nr(n,!0),viewBox:{x:0,y:0,width:a,height:o}})),u.left,u.left+u.width,r)},kB=function(e,r){var n=e.yAxis,a=e.width,o=e.height,u=e.offset;return O1(Op(oe(oe(oe({},Yn.defaultProps),n),{},{ticks:nr(n,!0),viewBox:{x:0,y:0,width:a,height:o}})),u.top,u.top+u.height,r)},yn={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function ld(t){var e,r,n,a,o,u,c=bp(),l=xp(),h=xD(),p=oe(oe({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:yn.stroke,fill:(r=t.fill)!==null&&r!==void 0?r:yn.fill,horizontal:(n=t.horizontal)!==null&&n!==void 0?n:yn.horizontal,horizontalFill:(a=t.horizontalFill)!==null&&a!==void 0?a:yn.horizontalFill,vertical:(o=t.vertical)!==null&&o!==void 0?o:yn.vertical,verticalFill:(u=t.verticalFill)!==null&&u!==void 0?u:yn.verticalFill,x:tt(t.x)?t.x:h.left,y:tt(t.y)?t.y:h.top,width:tt(t.width)?t.width:h.width,height:tt(t.height)?t.height:h.height}),d=p.x,m=p.y,g=p.width,x=p.height,b=p.syncWithTicks,_=p.horizontalValues,A=p.verticalValues,T=gD(),O=_D();if(!tt(g)||g<=0||!tt(x)||x<=0||!tt(d)||d!==+d||!tt(m)||m!==+m)return null;var E=p.verticalCoordinatesGenerator||LB,w=p.horizontalCoordinatesGenerator||kB,S=p.horizontalPoints,M=p.verticalPoints;if((!S||!S.length)&>(w)){var I=_&&_.length,k=w({yAxis:O?oe(oe({},O),{},{ticks:I?_:O.ticks}):void 0,width:c,height:l,offset:h},I?!0:b);ar(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Vr(k),"]")),Array.isArray(k)&&(S=k)}if((!M||!M.length)&>(E)){var $=A&&A.length,C=E({xAxis:T?oe(oe({},T),{},{ticks:$?A:T.ticks}):void 0,width:c,height:l,offset:h},$?!0:b);ar(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Vr(C),"]")),Array.isArray(C)&&(M=C)}return R.createElement("g",{className:"recharts-cartesian-grid"},R.createElement(EB,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),R.createElement(MB,qr({},p,{offset:h,horizontalPoints:S,xAxis:T,yAxis:O})),R.createElement(CB,qr({},p,{offset:h,verticalPoints:M,xAxis:T,yAxis:O})),R.createElement(jB,qr({},p,{horizontalPoints:S})),R.createElement(IB,qr({},p,{verticalPoints:M})))}ld.displayName="CartesianGrid";function zn(t){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(t)}function RB(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NB(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pP(n.key),n)}}function $B(t,e,r){return e&&NB(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function DB(t,e,r){return e=Ko(e),BB(t,hP()?Reflect.construct(e,r||[],Ko(t).constructor):e.apply(t,r))}function BB(t,e){if(e&&(zn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qB(t)}function qB(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hP=function(){return!!t})()}function Ko(t){return Ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ko(t)}function zB(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fd(t,e)}function fd(t,e){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},fd(t,e)}function dP(t,e,r){return e=pP(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pP(t){var e=FB(t,"string");return zn(e)=="symbol"?e:e+""}function FB(t,e){if(zn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function hd(){return hd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},hd.apply(this,arguments)}function WB(t){var e=t.xAxisId,r=bp(),n=xp(),a=tP(e);return a==null?null:R.createElement(Yn,hd({},a,{className:Tt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(u){return nr(u,!0)}}))}var zr=function(t){function e(){return RB(this,e),DB(this,e,arguments)}return zB(e,t),$B(e,[{key:"render",value:function(){return R.createElement(WB,this.props)}}])}(R.Component);dP(zr,"displayName","XAxis");dP(zr,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Fn(t){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fn(t)}function UB(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HB(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yP(n.key),n)}}function ZB(t,e,r){return e&&HB(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function GB(t,e,r){return e=Vo(e),KB(t,vP()?Reflect.construct(e,r||[],Vo(t).constructor):e.apply(t,r))}function KB(t,e){if(e&&(Fn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VB(t)}function VB(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vP=function(){return!!t})()}function Vo(t){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vo(t)}function XB(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dd(t,e)}function dd(t,e){return dd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},dd(t,e)}function mP(t,e,r){return e=yP(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yP(t){var e=YB(t,"string");return Fn(e)=="symbol"?e:e+""}function YB(t,e){if(Fn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function pd(){return pd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pd.apply(this,arguments)}var JB=function(e){var r=e.yAxisId,n=bp(),a=xp(),o=eP(r);return o==null?null:R.createElement(Yn,pd({},o,{className:Tt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(c){return nr(c,!0)}}))},Fr=function(t){function e(){return UB(this,e),GB(this,e,arguments)}return XB(e,t),ZB(e,[{key:"render",value:function(){return R.createElement(JB,this.props)}}])}(R.Component);mP(Fr,"displayName","YAxis");mP(Fr,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function cx(t){return rq(t)||eq(t)||tq(t)||QB()}function QB(){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 tq(t,e){if(t){if(typeof t=="string")return vd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vd(t,e)}}function eq(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rq(t){if(Array.isArray(t))return vd(t)}function vd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var md=function(e,r,n,a,o){var u=Re(e,Pp),c=Re(e,Ss),l=[].concat(cx(u),cx(c)),h=Re(e,Ts),p="".concat(a,"Id"),d=a[0],m=r;if(l.length&&(m=l.reduce(function(b,_){if(_.props[p]===n&&He(_.props,"extendDomain")&&tt(_.props[d])){var A=_.props[d];return[Math.min(b[0],A),Math.max(b[1],A)]}return b},m)),h.length){var g="".concat(d,"1"),x="".concat(d,"2");m=h.reduce(function(b,_){if(_.props[p]===n&&He(_.props,"extendDomain")&&tt(_.props[g])&&tt(_.props[x])){var A=_.props[g],T=_.props[x];return[Math.min(b[0],A,T),Math.max(b[1],A,T)]}return b},m)}return o&&o.length&&(m=o.reduce(function(b,_){return tt(_)?[Math.min(b[0],_),Math.max(b[1],_)]:b},m)),m},th={exports:{}},lx;function nq(){return lx||(lx=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(l,h,p){this.fn=l,this.context=h,this.once=p||!1}function o(l,h,p,d,m){if(typeof p!="function")throw new TypeError("The listener must be a function");var g=new a(p,d||l,m),x=r?r+h:h;return l._events[x]?l._events[x].fn?l._events[x]=[l._events[x],g]:l._events[x].push(g):(l._events[x]=g,l._eventsCount++),l}function u(l,h){--l._eventsCount===0?l._events=new n:delete l._events[h]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var h=[],p,d;if(this._eventsCount===0)return h;for(d in p=this._events)e.call(p,d)&&h.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(p)):h},c.prototype.listeners=function(h){var p=r?r+h:h,d=this._events[p];if(!d)return[];if(d.fn)return[d.fn];for(var m=0,g=d.length,x=new Array(g);m<g;m++)x[m]=d[m].fn;return x},c.prototype.listenerCount=function(h){var p=r?r+h:h,d=this._events[p];return d?d.fn?1:d.length:0},c.prototype.emit=function(h,p,d,m,g,x){var b=r?r+h:h;if(!this._events[b])return!1;var _=this._events[b],A=arguments.length,T,O;if(_.fn){switch(_.once&&this.removeListener(h,_.fn,void 0,!0),A){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,p),!0;case 3:return _.fn.call(_.context,p,d),!0;case 4:return _.fn.call(_.context,p,d,m),!0;case 5:return _.fn.call(_.context,p,d,m,g),!0;case 6:return _.fn.call(_.context,p,d,m,g,x),!0}for(O=1,T=new Array(A-1);O<A;O++)T[O-1]=arguments[O];_.fn.apply(_.context,T)}else{var E=_.length,w;for(O=0;O<E;O++)switch(_[O].once&&this.removeListener(h,_[O].fn,void 0,!0),A){case 1:_[O].fn.call(_[O].context);break;case 2:_[O].fn.call(_[O].context,p);break;case 3:_[O].fn.call(_[O].context,p,d);break;case 4:_[O].fn.call(_[O].context,p,d,m);break;default:if(!T)for(w=1,T=new Array(A-1);w<A;w++)T[w-1]=arguments[w];_[O].fn.apply(_[O].context,T)}}return!0},c.prototype.on=function(h,p,d){return o(this,h,p,d,!1)},c.prototype.once=function(h,p,d){return o(this,h,p,d,!0)},c.prototype.removeListener=function(h,p,d,m){var g=r?r+h:h;if(!this._events[g])return this;if(!p)return u(this,g),this;var x=this._events[g];if(x.fn)x.fn===p&&(!m||x.once)&&(!d||x.context===d)&&u(this,g);else{for(var b=0,_=[],A=x.length;b<A;b++)(x[b].fn!==p||m&&!x[b].once||d&&x[b].context!==d)&&_.push(x[b]);_.length?this._events[g]=_.length===1?_[0]:_:u(this,g)}return this},c.prototype.removeAllListeners=function(h){var p;return h?(p=r?r+h:h,this._events[p]&&u(this,p)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(th)),th.exports}var iq=nq();const aq=Ct(iq);var eh=new aq,rh="recharts.syncMouseEvents";function ua(t){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ua(t)}function oq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sq(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gP(n.key),n)}}function uq(t,e,r){return e&&sq(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function nh(t,e,r){return e=gP(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gP(t){var e=cq(t,"string");return ua(e)=="symbol"?e:e+""}function cq(t,e){if(ua(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ua(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var lq=function(){function t(){oq(this,t),nh(this,"activeIndex",0),nh(this,"coordinateList",[]),nh(this,"layout","horizontal")}return uq(t,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,o=a===void 0?null:a,u=r.container,c=u===void 0?null:u,l=r.layout,h=l===void 0?null:l,p=r.offset,d=p===void 0?null:p,m=r.mouseHandlerCallback,g=m===void 0?null:m;this.coordinateList=(n=o??this.coordinateList)!==null&&n!==void 0?n:[],this.container=c??this.container,this.layout=h??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=g??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),o=a.x,u=a.y,c=a.height,l=this.coordinateList[this.activeIndex].coordinate,h=((r=window)===null||r===void 0?void 0:r.scrollX)||0,p=((n=window)===null||n===void 0?void 0:n.scrollY)||0,d=o+l+h,m=u+this.offset.top+c/2+p;this.mouseHandlerCallback({pageX:d,pageY:m})}}}])}();function fq(t,e,r){if(r==="number"&&e===!0&&Array.isArray(t)){var n=t==null?void 0:t[0],a=t==null?void 0:t[1];if(n&&a&&tt(n)&&tt(a))return!0}return!1}function hq(t,e,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-a:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-a,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function _P(t){var e=t.cx,r=t.cy,n=t.radius,a=t.startAngle,o=t.endAngle,u=ne(e,r,n,a),c=ne(e,r,n,o);return{points:[u,c],cx:e,cy:r,radius:n,startAngle:a,endAngle:o}}function dq(t,e,r){var n,a,o,u;if(t==="horizontal")n=e.x,o=n,a=r.top,u=r.top+r.height;else if(t==="vertical")a=e.y,u=a,n=r.left,o=r.left+r.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var c=e.cx,l=e.cy,h=e.innerRadius,p=e.outerRadius,d=e.angle,m=ne(c,l,h,d),g=ne(c,l,p,d);n=m.x,a=m.y,o=g.x,u=g.y}else return _P(e);return[{x:n,y:a},{x:o,y:u}]}function ca(t){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ca(t)}function fx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Qa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fx(Object(r),!0).forEach(function(n){pq(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function pq(t,e,r){return e=vq(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vq(t){var e=mq(t,"string");return ca(e)=="symbol"?e:e+""}function mq(t,e){if(ca(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function yq(t){var e,r,n=t.element,a=t.tooltipEventType,o=t.isActive,u=t.activeCoordinate,c=t.activePayload,l=t.offset,h=t.activeTooltipIndex,p=t.tooltipAxisBandSize,d=t.layout,m=t.chartName,g=(e=n.props.cursor)!==null&&e!==void 0?e:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!g||!o||!u||m!=="ScatterChart"&&a!=="axis")return null;var x,b=Fb;if(m==="ScatterChart")x=u,b=EN;else if(m==="BarChart")x=hq(d,u,l,p),b=mp;else if(d==="radial"){var _=_P(u),A=_.cx,T=_.cy,O=_.radius,E=_.startAngle,w=_.endAngle;x={cx:A,cy:T,startAngle:E,endAngle:w,innerRadius:O,outerRadius:O},b=M1}else x={points:dq(d,u,l)},b=Fb;var S=Qa(Qa(Qa(Qa({stroke:"#ccc",pointerEvents:"none"},l),x),Pt(g,!1)),{},{payload:c,payloadIndex:h,className:Tt("recharts-tooltip-cursor",g.className)});return K.isValidElement(g)?K.cloneElement(g,S):K.createElement(b,S)}var gq=["item"],_q=["children","className","width","height","style","compact","title","desc"];function Wn(t){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(t)}function bn(){return bn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bn.apply(this,arguments)}function hx(t,e){return wq(t)||xq(t,e)||xP(t,e)||bq()}function bq(){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(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,o,u,c=[],l=!0,h=!1;try{if(o=(r=r.call(t)).next,e!==0)for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(p){h=!0,a=p}finally{try{if(!l&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(h)throw a}}return c}}function wq(t){if(Array.isArray(t))return t}function dx(t,e){if(t==null)return{};var r=Pq(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Pq(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Oq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sq(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wP(n.key),n)}}function Aq(t,e,r){return e&&Sq(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tq(t,e,r){return e=Xo(e),Eq(t,bP()?Reflect.construct(e,r||[],Xo(t).constructor):e.apply(t,r))}function Eq(t,e){if(e&&(Wn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mq(t)}function Mq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bP(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bP=function(){return!!t})()}function Xo(t){return Xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xo(t)}function Cq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yd(t,e)}function yd(t,e){return yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},yd(t,e)}function Un(t){return Lq(t)||Iq(t)||xP(t)||jq()}function jq(){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 xP(t,e){if(t){if(typeof t=="string")return gd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gd(t,e)}}function Iq(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Lq(t){if(Array.isArray(t))return gd(t)}function gd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function px(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?px(Object(r),!0).forEach(function(n){st(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):px(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function st(t,e,r){return e=wP(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wP(t){var e=kq(t,"string");return Wn(e)=="symbol"?e:e+""}function kq(t,e){if(Wn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Rq={xAxis:["bottom","top"],yAxis:["left","right"]},Nq={width:"100%",height:"100%"},PP={x:0,y:0};function to(t){return t}var $q=function(e,r){return r==="horizontal"?e.x:r==="vertical"?e.y:r==="centric"?e.angle:e.radius},Dq=function(e,r,n,a){var o=r.find(function(p){return p&&p.index===n});if(o){if(e==="horizontal")return{x:o.coordinate,y:a.y};if(e==="vertical")return{x:a.x,y:o.coordinate};if(e==="centric"){var u=o.coordinate,c=a.radius;return U(U(U({},a),ne(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}var l=o.coordinate,h=a.angle;return U(U(U({},a),ne(a.cx,a.cy,l,h)),{},{angle:h,radius:l})}return PP},Es=function(e,r){var n=r.graphicalItems,a=r.dataStartIndex,o=r.dataEndIndex,u=(n??[]).reduce(function(c,l){var h=l.props.data;return h&&h.length?[].concat(Un(c),Un(h)):c},[]);return u.length>0?u:e&&e.length&&tt(a)&&tt(o)?e.slice(a,o+1):[]};function OP(t){return t==="number"?[0,"auto"]:void 0}var _d=function(e,r,n,a){var o=e.graphicalItems,u=e.tooltipAxis,c=Es(r,e);return n<0||!o||!o.length||n>=c.length?null:o.reduce(function(l,h){var p,d=(p=h.props.data)!==null&&p!==void 0?p:r;d&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(d=d.slice(e.dataStartIndex,e.dataEndIndex+1));var m;if(u.dataKey&&!u.allowDuplicatedCategory){var g=d===void 0?c:d;m=ih(g,u.dataKey,a)}else m=d&&d[n]||c[n];return m?[].concat(Un(l),[A1(h,m)]):l},[])},vx=function(e,r,n,a){var o=a||{x:e.chartX,y:e.chartY},u=$q(o,n),c=e.orderedTooltipTicks,l=e.tooltipAxis,h=e.tooltipTicks,p=fk(u,c,h,l);if(p>=0&&h){var d=h[p]&&h[p].value,m=_d(e,r,p,d),g=Dq(n,c,p,o);return{activeTooltipIndex:p,activeLabel:d,activePayload:m,activeCoordinate:g}}return null},Bq=function(e,r){var n=r.axes,a=r.graphicalItems,o=r.axisType,u=r.axisIdKey,c=r.stackGroups,l=r.dataStartIndex,h=r.dataEndIndex,p=e.layout,d=e.children,m=e.stackOffset,g=P1(p,o);return n.reduce(function(x,b){var _,A=b.type.defaultProps!==void 0?U(U({},b.type.defaultProps),b.props):b.props,T=A.type,O=A.dataKey,E=A.allowDataOverflow,w=A.allowDuplicatedCategory,S=A.scale,M=A.ticks,I=A.includeHidden,k=A[u];if(x[k])return x;var $=Es(e.data,{graphicalItems:a.filter(function(J){var at,ft=u in J.props?J.props[u]:(at=J.type.defaultProps)===null||at===void 0?void 0:at[u];return ft===k}),dataStartIndex:l,dataEndIndex:h}),C=$.length,N,q,F;fq(A.domain,E,T)&&(N=Dh(A.domain,null,E),g&&(T==="number"||S!=="auto")&&(F=Ti($,O,"category")));var W=OP(T);if(!N||N.length===0){var Z,X=(Z=A.domain)!==null&&Z!==void 0?Z:W;if(O){if(N=Ti($,O,T),T==="category"&&g){var H=iA(N);w&&H?(q=N,N=Do(0,C)):w||(N=Eb(X,N,b).reduce(function(J,at){return J.indexOf(at)>=0?J:[].concat(Un(J),[at])},[]))}else if(T==="category")w?N=N.filter(function(J){return J!==""&&!At(J)}):N=Eb(X,N,b).reduce(function(J,at){return J.indexOf(at)>=0||at===""||At(at)?J:[].concat(Un(J),[at])},[]);else if(T==="number"){var Q=mk($,a.filter(function(J){var at,ft,ut=u in J.props?J.props[u]:(at=J.type.defaultProps)===null||at===void 0?void 0:at[u],lt="hide"in J.props?J.props.hide:(ft=J.type.defaultProps)===null||ft===void 0?void 0:ft.hide;return ut===k&&(I||!lt)}),O,o,p);Q&&(N=Q)}g&&(T==="number"||S!=="auto")&&(F=Ti($,O,"category"))}else g?N=Do(0,C):c&&c[k]&&c[k].hasStack&&T==="number"?N=m==="expand"?[0,1]:S1(c[k].stackGroups,l,h):N=w1($,a.filter(function(J){var at=u in J.props?J.props[u]:J.type.defaultProps[u],ft="hide"in J.props?J.props.hide:J.type.defaultProps.hide;return at===k&&(I||!ft)}),T,p,!0);if(T==="number")N=md(d,N,k,o,M),X&&(N=Dh(X,N,E));else if(T==="category"&&X){var Y=X,et=N.every(function(J){return Y.indexOf(J)>=0});et&&(N=Y)}}return U(U({},x),{},st({},k,U(U({},A),{},{axisType:o,domain:N,categoricalDomain:F,duplicateDomain:q,originalDomain:(_=A.domain)!==null&&_!==void 0?_:W,isCategorical:g,layout:p})))},{})},qq=function(e,r){var n=r.graphicalItems,a=r.Axis,o=r.axisType,u=r.axisIdKey,c=r.stackGroups,l=r.dataStartIndex,h=r.dataEndIndex,p=e.layout,d=e.children,m=Es(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:h}),g=m.length,x=P1(p,o),b=-1;return n.reduce(function(_,A){var T=A.type.defaultProps!==void 0?U(U({},A.type.defaultProps),A.props):A.props,O=T[u],E=OP("number");if(!_[O]){b++;var w;return x?w=Do(0,g):c&&c[O]&&c[O].hasStack?(w=S1(c[O].stackGroups,l,h),w=md(d,w,O,o)):(w=Dh(E,w1(m,n.filter(function(S){var M,I,k=u in S.props?S.props[u]:(M=S.type.defaultProps)===null||M===void 0?void 0:M[u],$="hide"in S.props?S.props.hide:(I=S.type.defaultProps)===null||I===void 0?void 0:I.hide;return k===O&&!$}),"number",p),a.defaultProps.allowDataOverflow),w=md(d,w,O,o)),U(U({},_),{},st({},O,U(U({axisType:o},a.defaultProps),{},{hide:!0,orientation:Oe(Rq,"".concat(o,".").concat(b%2),null),domain:w,originalDomain:E,isCategorical:x,layout:p})))}return _},{})},zq=function(e,r){var n=r.axisType,a=n===void 0?"xAxis":n,o=r.AxisComp,u=r.graphicalItems,c=r.stackGroups,l=r.dataStartIndex,h=r.dataEndIndex,p=e.children,d="".concat(a,"Id"),m=Re(p,o),g={};return m&&m.length?g=Bq(e,{axes:m,graphicalItems:u,axisType:a,axisIdKey:d,stackGroups:c,dataStartIndex:l,dataEndIndex:h}):u&&u.length&&(g=qq(e,{Axis:o,graphicalItems:u,axisType:a,axisIdKey:d,stackGroups:c,dataStartIndex:l,dataEndIndex:h})),g},Fq=function(e){var r=yr(e),n=nr(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Fd(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Mo(r,n)}},mx=function(e){var r=e.children,n=e.defaultShowTooltip,a=ve(r,Rn),o=0,u=0;return e.data&&e.data.length!==0&&(u=e.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(o=a.props.startIndex),a.props.endIndex>=0&&(u=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:u,activeTooltipIndex:-1,isTooltipActive:!!n}},Wq=function(e){return!e||!e.length?!1:e.some(function(r){var n=ir(r&&r.type);return n&&n.indexOf("Bar")>=0})},yx=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Uq=function(e,r){var n=e.props,a=e.graphicalItems,o=e.xAxisMap,u=o===void 0?{}:o,c=e.yAxisMap,l=c===void 0?{}:c,h=n.width,p=n.height,d=n.children,m=n.margin||{},g=ve(d,Rn),x=ve(d,Fe),b=Object.keys(l).reduce(function(w,S){var M=l[S],I=M.orientation;return!M.mirror&&!M.hide?U(U({},w),{},st({},I,w[I]+M.width)):w},{left:m.left||0,right:m.right||0}),_=Object.keys(u).reduce(function(w,S){var M=u[S],I=M.orientation;return!M.mirror&&!M.hide?U(U({},w),{},st({},I,Oe(w,"".concat(I))+M.height)):w},{top:m.top||0,bottom:m.bottom||0}),A=U(U({},_),b),T=A.bottom;g&&(A.bottom+=g.props.height||Rn.defaultProps.height),x&&r&&(A=pk(A,a,n,r));var O=h-A.left-A.right,E=p-A.top-A.bottom;return U(U({brushBottom:T},A),{},{width:Math.max(O,0),height:Math.max(E,0)})},Hq=function(e,r){if(r==="xAxis")return e[r].width;if(r==="yAxis")return e[r].height},Zq=function(e){var r=e.chartName,n=e.GraphicalChild,a=e.defaultTooltipEventType,o=a===void 0?"axis":a,u=e.validateTooltipEventTypes,c=u===void 0?["axis"]:u,l=e.axisComponents,h=e.legendContent,p=e.formatAxisMap,d=e.defaultProps,m=function(A,T){var O=T.graphicalItems,E=T.stackGroups,w=T.offset,S=T.updateId,M=T.dataStartIndex,I=T.dataEndIndex,k=A.barSize,$=A.layout,C=A.barGap,N=A.barCategoryGap,q=A.maxBarSize,F=yx($),W=F.numericAxisName,Z=F.cateAxisName,X=Wq(O),H=[];return O.forEach(function(Q,Y){var et=Es(A.data,{graphicalItems:[Q],dataStartIndex:M,dataEndIndex:I}),J=Q.type.defaultProps!==void 0?U(U({},Q.type.defaultProps),Q.props):Q.props,at=J.dataKey,ft=J.maxBarSize,ut=J["".concat(W,"Id")],lt=J["".concat(Z,"Id")],te={},Nt=l.reduce(function(Te,$e){var tn=T["".concat($e.axisType,"Map")],_a=J["".concat($e.axisType,"Id")];tn&&tn[_a]||$e.axisType==="zAxis"||Kr();var ba=tn[_a];return U(U({},Te),{},st(st({},$e.axisType,ba),"".concat($e.axisType,"Ticks"),nr(ba)))},te),rt=Nt[Z],ht=Nt["".concat(Z,"Ticks")],dt=E&&E[ut]&&E[ut].hasStack&&Ek(Q,E[ut].stackGroups),V=ir(Q.type).indexOf("Bar")>=0,jt=Mo(rt,ht),_t=[],Dt=X&&hk({barSize:k,stackGroups:E,totalSize:Hq(Nt,Z)});if(V){var Bt,Vt,de=At(ft)?q:ft,dr=(Bt=(Vt=Mo(rt,ht,!0))!==null&&Vt!==void 0?Vt:de)!==null&&Bt!==void 0?Bt:0;_t=dk({barGap:C,barCategoryGap:N,bandSize:dr!==jt?dr:jt,sizeList:Dt[lt],maxBarSize:de}),dr!==jt&&(_t=_t.map(function(Te){return U(U({},Te),{},{position:U(U({},Te.position),{},{offset:Te.position.offset-dr/2})})}))}var Ar=Q&&Q.type&&Q.type.getComposedData;Ar&&H.push({props:U(U({},Ar(U(U({},Nt),{},{displayedData:et,props:A,dataKey:at,item:Q,bandSize:jt,barPosition:_t,offset:w,stackedData:dt,layout:$,dataStartIndex:M,dataEndIndex:I}))),{},st(st(st({key:Q.key||"item-".concat(Y)},W,Nt[W]),Z,Nt[Z]),"animationId",S)),childIndex:vA(Q,A.children),item:Q})}),H},g=function(A,T){var O=A.props,E=A.dataStartIndex,w=A.dataEndIndex,S=A.updateId;if(!Wm({props:O}))return null;var M=O.children,I=O.layout,k=O.stackOffset,$=O.data,C=O.reverseStackOrder,N=yx(I),q=N.numericAxisName,F=N.cateAxisName,W=Re(M,n),Z=Sk($,W,"".concat(q,"Id"),"".concat(F,"Id"),k,C),X=l.reduce(function(J,at){var ft="".concat(at.axisType,"Map");return U(U({},J),{},st({},ft,zq(O,U(U({},at),{},{graphicalItems:W,stackGroups:at.axisType===q&&Z,dataStartIndex:E,dataEndIndex:w}))))},{}),H=Uq(U(U({},X),{},{props:O,graphicalItems:W}),T==null?void 0:T.legendBBox);Object.keys(X).forEach(function(J){X[J]=p(O,X[J],H,J.replace("Map",""),r)});var Q=X["".concat(F,"Map")],Y=Fq(Q),et=m(O,U(U({},X),{},{dataStartIndex:E,dataEndIndex:w,updateId:S,graphicalItems:W,stackGroups:Z,offset:H}));return U(U({formattedGraphicalItems:et,graphicalItems:W,offset:H,stackGroups:Z},Y),X)},x=function(_){function A(T){var O,E,w;return Oq(this,A),w=Tq(this,A,[T]),st(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),st(w,"accessibilityManager",new lq),st(w,"handleLegendBBoxUpdate",function(S){if(S){var M=w.state,I=M.dataStartIndex,k=M.dataEndIndex,$=M.updateId;w.setState(U({legendBBox:S},g({props:w.props,dataStartIndex:I,dataEndIndex:k,updateId:$},U(U({},w.state),{},{legendBBox:S}))))}}),st(w,"handleReceiveSyncEvent",function(S,M,I){if(w.props.syncId===S){if(I===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(M)}}),st(w,"handleBrushChange",function(S){var M=S.startIndex,I=S.endIndex;if(M!==w.state.dataStartIndex||I!==w.state.dataEndIndex){var k=w.state.updateId;w.setState(function(){return U({dataStartIndex:M,dataEndIndex:I},g({props:w.props,dataStartIndex:M,dataEndIndex:I,updateId:k},w.state))}),w.triggerSyncEvent({dataStartIndex:M,dataEndIndex:I})}}),st(w,"handleMouseEnter",function(S){var M=w.getMouseInfo(S);if(M){var I=U(U({},M),{},{isTooltipActive:!0});w.setState(I),w.triggerSyncEvent(I);var k=w.props.onMouseEnter;gt(k)&&k(I,S)}}),st(w,"triggeredAfterMouseMove",function(S){var M=w.getMouseInfo(S),I=M?U(U({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(I),w.triggerSyncEvent(I);var k=w.props.onMouseMove;gt(k)&&k(I,S)}),st(w,"handleItemMouseEnter",function(S){w.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),st(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),st(w,"handleMouseMove",function(S){S.persist(),w.throttleTriggeredAfterMouseMove(S)}),st(w,"handleMouseLeave",function(S){w.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};w.setState(M),w.triggerSyncEvent(M);var I=w.props.onMouseLeave;gt(I)&&I(M,S)}),st(w,"handleOuterEvent",function(S){var M=pA(S),I=Oe(w.props,"".concat(M));if(M&>(I)){var k,$;/.*touch.*/i.test(M)?$=w.getMouseInfo(S.changedTouches[0]):$=w.getMouseInfo(S),I((k=$)!==null&&k!==void 0?k:{},S)}}),st(w,"handleClick",function(S){var M=w.getMouseInfo(S);if(M){var I=U(U({},M),{},{isTooltipActive:!0});w.setState(I),w.triggerSyncEvent(I);var k=w.props.onClick;gt(k)&&k(I,S)}}),st(w,"handleMouseDown",function(S){var M=w.props.onMouseDown;if(gt(M)){var I=w.getMouseInfo(S);M(I,S)}}),st(w,"handleMouseUp",function(S){var M=w.props.onMouseUp;if(gt(M)){var I=w.getMouseInfo(S);M(I,S)}}),st(w,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),st(w,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseDown(S.changedTouches[0])}),st(w,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseUp(S.changedTouches[0])}),st(w,"handleDoubleClick",function(S){var M=w.props.onDoubleClick;if(gt(M)){var I=w.getMouseInfo(S);M(I,S)}}),st(w,"handleContextMenu",function(S){var M=w.props.onContextMenu;if(gt(M)){var I=w.getMouseInfo(S);M(I,S)}}),st(w,"triggerSyncEvent",function(S){w.props.syncId!==void 0&&eh.emit(rh,w.props.syncId,S,w.eventEmitterSymbol)}),st(w,"applySyncEvent",function(S){var M=w.props,I=M.layout,k=M.syncMethod,$=w.state.updateId,C=S.dataStartIndex,N=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)w.setState(U({dataStartIndex:C,dataEndIndex:N},g({props:w.props,dataStartIndex:C,dataEndIndex:N,updateId:$},w.state)));else if(S.activeTooltipIndex!==void 0){var q=S.chartX,F=S.chartY,W=S.activeTooltipIndex,Z=w.state,X=Z.offset,H=Z.tooltipTicks;if(!X)return;if(typeof k=="function")W=k(H,S);else if(k==="value"){W=-1;for(var Q=0;Q<H.length;Q++)if(H[Q].value===S.activeLabel){W=Q;break}}var Y=U(U({},X),{},{x:X.left,y:X.top}),et=Math.min(q,Y.x+Y.width),J=Math.min(F,Y.y+Y.height),at=H[W]&&H[W].value,ft=_d(w.state,w.props.data,W),ut=H[W]?{x:I==="horizontal"?H[W].coordinate:et,y:I==="horizontal"?J:H[W].coordinate}:PP;w.setState(U(U({},S),{},{activeLabel:at,activeCoordinate:ut,activePayload:ft,activeTooltipIndex:W}))}else w.setState(S)}),st(w,"renderCursor",function(S){var M,I=w.state,k=I.isTooltipActive,$=I.activeCoordinate,C=I.activePayload,N=I.offset,q=I.activeTooltipIndex,F=I.tooltipAxisBandSize,W=w.getTooltipEventType(),Z=(M=S.props.active)!==null&&M!==void 0?M:k,X=w.props.layout,H=S.key||"_recharts-cursor";return R.createElement(yq,{key:H,activeCoordinate:$,activePayload:C,activeTooltipIndex:q,chartName:r,element:S,isActive:Z,layout:X,offset:N,tooltipAxisBandSize:F,tooltipEventType:W})}),st(w,"renderPolarAxis",function(S,M,I){var k=Oe(S,"type.axisType"),$=Oe(w.state,"".concat(k,"Map")),C=S.type.defaultProps,N=C!==void 0?U(U({},C),S.props):S.props,q=$&&$[N["".concat(k,"Id")]];return K.cloneElement(S,U(U({},q),{},{className:Tt(k,q.className),key:S.key||"".concat(M,"-").concat(I),ticks:nr(q,!0)}))}),st(w,"renderPolarGrid",function(S){var M=S.props,I=M.radialLines,k=M.polarAngles,$=M.polarRadius,C=w.state,N=C.radiusAxisMap,q=C.angleAxisMap,F=yr(N),W=yr(q),Z=W.cx,X=W.cy,H=W.innerRadius,Q=W.outerRadius;return K.cloneElement(S,{polarAngles:Array.isArray(k)?k:nr(W,!0).map(function(Y){return Y.coordinate}),polarRadius:Array.isArray($)?$:nr(F,!0).map(function(Y){return Y.coordinate}),cx:Z,cy:X,innerRadius:H,outerRadius:Q,key:S.key||"polar-grid",radialLines:I})}),st(w,"renderLegend",function(){var S=w.state.formattedGraphicalItems,M=w.props,I=M.children,k=M.width,$=M.height,C=w.props.margin||{},N=k-(C.left||0)-(C.right||0),q=b1({children:I,formattedGraphicalItems:S,legendWidth:N,legendContent:h});if(!q)return null;var F=q.item,W=dx(q,gq);return K.cloneElement(F,U(U({},W),{},{chartWidth:k,chartHeight:$,margin:C,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),st(w,"renderTooltip",function(){var S,M=w.props,I=M.children,k=M.accessibilityLayer,$=ve(I,me);if(!$)return null;var C=w.state,N=C.isTooltipActive,q=C.activeCoordinate,F=C.activePayload,W=C.activeLabel,Z=C.offset,X=(S=$.props.active)!==null&&S!==void 0?S:N;return K.cloneElement($,{viewBox:U(U({},Z),{},{x:Z.left,y:Z.top}),active:X,label:W,payload:X?F:[],coordinate:q,accessibilityLayer:k})}),st(w,"renderBrush",function(S){var M=w.props,I=M.margin,k=M.data,$=w.state,C=$.offset,N=$.dataStartIndex,q=$.dataEndIndex,F=$.updateId;return K.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Va(w.handleBrushChange,S.props.onChange),data:k,x:tt(S.props.x)?S.props.x:C.left,y:tt(S.props.y)?S.props.y:C.top+C.height+C.brushBottom-(I.bottom||0),width:tt(S.props.width)?S.props.width:C.width,startIndex:N,endIndex:q,updateId:"brush-".concat(F)})}),st(w,"renderReferenceElement",function(S,M,I){if(!S)return null;var k=w,$=k.clipPathId,C=w.state,N=C.xAxisMap,q=C.yAxisMap,F=C.offset,W=S.type.defaultProps||{},Z=S.props,X=Z.xAxisId,H=X===void 0?W.xAxisId:X,Q=Z.yAxisId,Y=Q===void 0?W.yAxisId:Q;return K.cloneElement(S,{key:S.key||"".concat(M,"-").concat(I),xAxis:N[H],yAxis:q[Y],viewBox:{x:F.left,y:F.top,width:F.width,height:F.height},clipPathId:$})}),st(w,"renderActivePoints",function(S){var M=S.item,I=S.activePoint,k=S.basePoint,$=S.childIndex,C=S.isRange,N=[],q=M.props.key,F=M.item.type.defaultProps!==void 0?U(U({},M.item.type.defaultProps),M.item.props):M.item.props,W=F.activeDot,Z=F.dataKey,X=U(U({index:$,dataKey:Z,cx:I.x,cy:I.y,r:4,fill:vp(M.item),strokeWidth:2,stroke:"#fff",payload:I.payload,value:I.value},Pt(W,!1)),ro(W));return N.push(A.renderActiveDot(W,X,"".concat(q,"-activePoint-").concat($))),k?N.push(A.renderActiveDot(W,U(U({},X),{},{cx:k.x,cy:k.y}),"".concat(q,"-basePoint-").concat($))):C&&N.push(null),N}),st(w,"renderGraphicChild",function(S,M,I){var k=w.filterFormatItem(S,M,I);if(!k)return null;var $=w.getTooltipEventType(),C=w.state,N=C.isTooltipActive,q=C.tooltipAxis,F=C.activeTooltipIndex,W=C.activeLabel,Z=w.props.children,X=ve(Z,me),H=k.props,Q=H.points,Y=H.isRange,et=H.baseLine,J=k.item.type.defaultProps!==void 0?U(U({},k.item.type.defaultProps),k.item.props):k.item.props,at=J.activeDot,ft=J.hide,ut=J.activeBar,lt=J.activeShape,te=!!(!ft&&N&&X&&(at||ut||lt)),Nt={};$!=="axis"&&X&&X.props.trigger==="click"?Nt={onClick:Va(w.handleItemMouseEnter,S.props.onClick)}:$!=="axis"&&(Nt={onMouseLeave:Va(w.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Va(w.handleItemMouseEnter,S.props.onMouseEnter)});var rt=K.cloneElement(S,U(U({},k.props),Nt));function ht($e){return typeof q.dataKey=="function"?q.dataKey($e.payload):null}if(te)if(F>=0){var dt,V;if(q.dataKey&&!q.allowDuplicatedCategory){var jt=typeof q.dataKey=="function"?ht:"payload.".concat(q.dataKey.toString());dt=ih(Q,jt,W),V=Y&&et&&ih(et,jt,W)}else dt=Q==null?void 0:Q[F],V=Y&&et&&et[F];if(lt||ut){var _t=S.props.activeIndex!==void 0?S.props.activeIndex:F;return[K.cloneElement(S,U(U(U({},k.props),Nt),{},{activeIndex:_t})),null,null]}if(!At(dt))return[rt].concat(Un(w.renderActivePoints({item:k,activePoint:dt,basePoint:V,childIndex:F,isRange:Y})))}else{var Dt,Bt=(Dt=w.getItemByXY(w.state.activeCoordinate))!==null&&Dt!==void 0?Dt:{graphicalItem:rt},Vt=Bt.graphicalItem,de=Vt.item,dr=de===void 0?S:de,Ar=Vt.childIndex,Te=U(U(U({},k.props),Nt),{},{activeIndex:Ar});return[K.cloneElement(dr,Te),null,null]}return Y?[rt,null,null]:[rt,null]}),st(w,"renderCustomized",function(S,M,I){return K.cloneElement(S,U(U({key:"recharts-customized-".concat(I)},w.props),w.state))}),st(w,"renderMap",{CartesianGrid:{handler:to,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:to},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:to},YAxis:{handler:to},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((O=T.id)!==null&&O!==void 0?O:rs("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=_w(w.triggeredAfterMouseMove,(E=T.throttleDelay)!==null&&E!==void 0?E:1e3/60),w.state={},w}return Cq(A,_),Aq(A,[{key:"componentDidMount",value:function(){var O,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var O=this.props,E=O.children,w=O.data,S=O.height,M=O.layout,I=ve(E,me);if(I){var k=I.props.defaultIndex;if(!(typeof k!="number"||k<0||k>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[k]&&this.state.tooltipTicks[k].value,C=_d(this.state,w,k,$),N=this.state.tooltipTicks[k].coordinate,q=(this.state.offset.top+S)/2,F=M==="horizontal",W=F?{x:N,y:q}:{y:N,x:q},Z=this.state.formattedGraphicalItems.find(function(H){var Q=H.item;return Q.type.name==="Scatter"});Z&&(W=U(U({},W),Z.props.points[k].tooltipPosition),C=Z.props.points[k].tooltipPayload);var X={activeTooltipIndex:k,isTooltipActive:!0,activeLabel:$,activePayload:C,activeCoordinate:W};this.setState(X),this.renderCursor(I),this.accessibilityManager.setIndex(k)}}}},{key:"getSnapshotBeforeUpdate",value:function(O,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==O.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==O.margin){var w,S;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(O){oh([ve(O.children,me)],[ve(this.props.children,me)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var O=ve(this.props.children,me);if(O&&typeof O.props.shared=="boolean"){var E=O.props.shared?"axis":"item";return c.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(O){if(!this.container)return null;var E=this.container,w=E.getBoundingClientRect(),S=eC(w),M={chartX:Math.round(O.pageX-S.left),chartY:Math.round(O.pageY-S.top)},I=w.width/E.offsetWidth||1,k=this.inRange(M.chartX,M.chartY,I);if(!k)return null;var $=this.state,C=$.xAxisMap,N=$.yAxisMap,q=this.getTooltipEventType();if(q!=="axis"&&C&&N){var F=yr(C).scale,W=yr(N).scale,Z=F&&F.invert?F.invert(M.chartX):null,X=W&&W.invert?W.invert(M.chartY):null;return U(U({},M),{},{xValue:Z,yValue:X})}var H=vx(this.state,this.props.data,this.props.layout,k);return H?U(U({},M),H):null}},{key:"inRange",value:function(O,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,M=O/w,I=E/w;if(S==="horizontal"||S==="vertical"){var k=this.state.offset,$=M>=k.left&&M<=k.left+k.width&&I>=k.top&&I<=k.top+k.height;return $?{x:M,y:I}:null}var C=this.state,N=C.angleAxisMap,q=C.radiusAxisMap;if(N&&q){var F=yr(N);return jb({x:M,y:I},F)}return null}},{key:"parseEventsOfWrapper",value:function(){var O=this.props.children,E=this.getTooltipEventType(),w=ve(O,me),S={};w&&E==="axis"&&(w.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var M=ro(this.props,this.handleOuterEvent);return U(U({},M),S)}},{key:"addListener",value:function(){eh.on(rh,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){eh.removeListener(rh,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(O,E,w){for(var S=this.state.formattedGraphicalItems,M=0,I=S.length;M<I;M++){var k=S[M];if(k.item===O||k.props.key===O.key||E===ir(k.item.type)&&w===k.childIndex)return k}return null}},{key:"renderClipPath",value:function(){var O=this.clipPathId,E=this.state.offset,w=E.left,S=E.top,M=E.height,I=E.width;return R.createElement("defs",null,R.createElement("clipPath",{id:O},R.createElement("rect",{x:w,y:S,height:M,width:I})))}},{key:"getXScales",value:function(){var O=this.state.xAxisMap;return O?Object.entries(O).reduce(function(E,w){var S=hx(w,2),M=S[0],I=S[1];return U(U({},E),{},st({},M,I.scale))},{}):null}},{key:"getYScales",value:function(){var O=this.state.yAxisMap;return O?Object.entries(O).reduce(function(E,w){var S=hx(w,2),M=S[0],I=S[1];return U(U({},E),{},st({},M,I.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(O){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[O])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(O){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[O])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(O){var E=this.state,w=E.formattedGraphicalItems,S=E.activeItem;if(w&&w.length)for(var M=0,I=w.length;M<I;M++){var k=w[M],$=k.props,C=k.item,N=C.type.defaultProps!==void 0?U(U({},C.type.defaultProps),C.props):C.props,q=ir(C.type);if(q==="Bar"){var F=($.data||[]).find(function(H){return gN(O,H)});if(F)return{graphicalItem:k,payload:F}}else if(q==="RadialBar"){var W=($.data||[]).find(function(H){return jb(O,H)});if(W)return{graphicalItem:k,payload:W}}else if(xs(k,S)||ws(k,S)||na(k,S)){var Z=u$({graphicalItem:k,activeTooltipItem:S,itemData:N.data}),X=N.activeIndex===void 0?Z:N.activeIndex;return{graphicalItem:U(U({},k),{},{childIndex:X}),payload:na(k,S)?N.data[Z]:k.props.data[Z]}}}return null}},{key:"render",value:function(){var O=this;if(!Wm(this))return null;var E=this.props,w=E.children,S=E.className,M=E.width,I=E.height,k=E.style,$=E.compact,C=E.title,N=E.desc,q=dx(E,_q),F=Pt(q,!1);if($)return R.createElement(X0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},R.createElement(uh,bn({},F,{width:M,height:I,title:C,desc:N}),this.renderClipPath(),Hm(w,this.renderMap)));if(this.props.accessibilityLayer){var W,Z;F.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,F.role=(Z=this.props.role)!==null&&Z!==void 0?Z:"application",F.onKeyDown=function(H){O.accessibilityManager.keyboardEvent(H)},F.onFocus=function(){O.accessibilityManager.focus()}}var X=this.parseEventsOfWrapper();return R.createElement(X0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},R.createElement("div",bn({className:Tt("recharts-wrapper",S),style:U({position:"relative",cursor:"default",width:M,height:I},k)},X,{ref:function(Q){O.container=Q}}),R.createElement(uh,bn({},F,{width:M,height:I,title:C,desc:N,style:Nq}),this.renderClipPath(),Hm(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(K.Component);st(x,"displayName",r),st(x,"defaultProps",U({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),st(x,"getDerivedStateFromProps",function(_,A){var T=_.dataKey,O=_.data,E=_.children,w=_.width,S=_.height,M=_.layout,I=_.stackOffset,k=_.margin,$=A.dataStartIndex,C=A.dataEndIndex;if(A.updateId===void 0){var N=mx(_);return U(U(U({},N),{},{updateId:0},g(U(U({props:_},N),{},{updateId:0}),A)),{},{prevDataKey:T,prevData:O,prevWidth:w,prevHeight:S,prevLayout:M,prevStackOffset:I,prevMargin:k,prevChildren:E})}if(T!==A.prevDataKey||O!==A.prevData||w!==A.prevWidth||S!==A.prevHeight||M!==A.prevLayout||I!==A.prevStackOffset||!xn(k,A.prevMargin)){var q=mx(_),F={chartX:A.chartX,chartY:A.chartY,isTooltipActive:A.isTooltipActive},W=U(U({},vx(A,O,M)),{},{updateId:A.updateId+1}),Z=U(U(U({},q),F),W);return U(U(U({},Z),g(U({props:_},Z),A)),{},{prevDataKey:T,prevData:O,prevWidth:w,prevHeight:S,prevLayout:M,prevStackOffset:I,prevMargin:k,prevChildren:E})}if(!oh(E,A.prevChildren)){var X,H,Q,Y,et=ve(E,Rn),J=et&&(X=(H=et.props)===null||H===void 0?void 0:H.startIndex)!==null&&X!==void 0?X:$,at=et&&(Q=(Y=et.props)===null||Y===void 0?void 0:Y.endIndex)!==null&&Q!==void 0?Q:C,ft=J!==$||at!==C,ut=!At(O),lt=ut&&!ft?A.updateId:A.updateId+1;return U(U({updateId:lt},g(U(U({props:_},A),{},{updateId:lt,dataStartIndex:J,dataEndIndex:at}),A)),{},{prevChildren:E,dataStartIndex:J,dataEndIndex:at})}return null}),st(x,"renderActiveDot",function(_,A,T){var O;return K.isValidElement(_)?O=K.cloneElement(_,A):gt(_)?O=_(A):O=R.createElement($1,A),R.createElement(Jt,{className:"recharts-active-dot",key:T},O)});var b=K.forwardRef(function(A,T){return R.createElement(x,bn({},A,{ref:T}))});return b.displayName=x.displayName,b},eo=Zq({chartName:"BarChart",GraphicalChild:vt,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:zr},{axisType:"yAxis",AxisComp:Fr}],formatAxisMap:iD});function az({tahun:t,tanggal:e,jumlahKota:r,jumlahKecamatan:n,jumlahPelatihan:a,jumlahPeserta:o,dataPeta:u,sebaranPesertaPerKota:c,grafikPesertaJenisKelamin:l,kotas:h,tableData:p,organisasi:d}){const m=[.5022,117.1536],[g,x]=K.useState(!0),[b,_]=K.useState(null),[A,T]=K.useState(null),O=["#FFEDA0","#FED976","#FEB24C","#FD8D3C","#FC4E2A","#E31A1C","#BD0026","#800026"],E=[">0",">10",">20",">50",">100",">200",">500",">1000"],w=d.map($=>{var C={};C.organisasi=$.name,C.jumlah=$.jumlah;for(let N=0;N<$.jumlah_anggotas.length;N++){const q=$.jumlah_anggotas[N];C[`U${q.umur}_L`]=q.jumlah_l,C[`U${q.umur}_P`]=q.jumlah_p}return C}),S=({active:$,payload:C,label:N})=>{if($&&C&&C.length){const q=C.filter(F=>F.value>0);return B.jsxs("div",{className:"p-2 bg-white border border-gray-200 rounded-md shadow-md max-w-4xl",children:[B.jsx("p",{className:"font-bold mb-2",children:N}),B.jsx("div",{className:"grid grid-cols-6 gap-2 mb-2",children:q.map((F,W)=>B.jsxs("div",{style:{color:F.color},className:"flex gap-2",children:[B.jsxs("span",{children:[F.name," :"]}),B.jsx("span",{className:"text-right p-1",children:F.value})]},W))}),B.jsxs("p",{className:"font-bold",children:["Total : ",q.reduce((F,W)=>F+W.value,0)]})]})}return null},M=$=>$>1e3?"#800026":$>500?"#BD0026":$>200?"#E31A1C":$>100?"#FC4E2A":$>50?"#FD8D3C":$>20?"#FEB24C":$>10?"#FED976":"#FFEDA0",I=$=>{const C=$.properties;let N=`<strong>${C.WADMKK}</strong><br/>`;return N+=`Peserta: ${u[C.KDPKAB]}<br/>`,N},k=$=>({fillColor:M(u[$.properties.KDPKAB]),weight:2,opacity:1,color:"white",dashArray:"3",fillOpacity:.7});return K.useEffect(()=>{console.log(h),(async()=>{try{const C=await fetch("/geojson/kaltim.geojson");if(!C.ok)throw new Error("Failed to load GeoJSON data");const N=await C.json();T(N),x(!1)}catch(C){_(C instanceof Error?C.message:"Failed to load GeoJSON data"),x(!1)}})()},[]),B.jsx(GO,{children:B.jsxs("div",{className:"min-h-screen bg-gray-50",children:[B.jsx(HO,{title:"Home"}),B.jsx("div",{className:"container mx-auto px-4 py-2",children:B.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[B.jsx(YO,{className:"h-4 w-4"}),B.jsx("span",{children:"/"}),B.jsx("span",{children:"Home"}),B.jsx("span",{className:"ml-auto",children:e})]})}),B.jsx("div",{className:"container mx-auto mb-4",children:B.jsxs("select",{name:"tahun",onChange:$=>{window.location.href=`?tahun=${$.target.value}`},className:" w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-hidden",children:[B.jsx("option",{value:"2024",...t==2024?{selected:!0}:{},children:"Tahun 2024"}),B.jsx("option",{value:"2025",...t==2025?{selected:!0}:{},children:"Tahun 2025"})]})}),B.jsx("div",{className:"container mx-auto mb-4",children:B.jsxs("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-4",children:[B.jsx(qa,{title:"Kabupaten/Kota",value:`${r}`,className:"bg-[#4CAF50] text-white"}),B.jsx(qa,{title:"Kecamatan",value:`${n}`,className:"bg-[#2196F3] text-white"}),B.jsx(qa,{title:"Pelatihan",value:`${a}`,className:"bg-[#FFC107] text-white"}),B.jsx(qa,{title:"Peserta",value:`${o}`,className:"bg-[#00BCD4] text-white"})]})}),B.jsxs(kr,{className:"container mx-auto overflow-hidden mb-4",children:[B.jsx(fn,{className:"bg-blue-500 text-white ",children:B.jsx(hn,{children:B.jsx("h1",{children:"Persebaran Data Peserta"})})}),B.jsx(dn,{className:"h-[600px] py-6",children:B.jsxs(vS,{center:m,zoom:7,style:{height:"100%",width:"100%"},scrollWheelZoom:!1,children:[A&&B.jsx(dS,{data:A,style:k,onEachFeature:($,C)=>{const N=I($);C.bindTooltip(N,{permanent:!1,direction:"top",opacity:.9,className:"custom-tooltip"}),C.bindPopup(N)}}),B.jsx(mS,{colors:O,labels:E})]})})]}),B.jsxs(kr,{className:"container mx-auto overflow-hidden mb-4",children:[B.jsx(fn,{className:"bg-blue-500 text-white ",children:B.jsx(hn,{children:B.jsx("h1",{children:"Persebaran Data Peserta"})})}),B.jsx(dn,{className:"px-6 py-6",children:B.jsx(Ua,{width:"100%",height:600,children:B.jsxs(eo,{layout:"vertical",data:c,margin:{top:20,right:0,left:0,bottom:5},children:[B.jsx(ld,{strokeDasharray:"3 3"}),B.jsx(zr,{type:"number"}),B.jsx(Fr,{dataKey:"name",type:"category",width:200}),B.jsx(me,{}),B.jsx(Fe,{}),B.jsx(vt,{dataKey:"value",fill:"#8884d8",name:"Peserta"})]})})})]}),B.jsxs(kr,{className:"container mx-auto overflow-hidden mb-4",children:[B.jsx(fn,{className:"bg-blue-500 text-white ",children:B.jsx(hn,{children:B.jsx("h1",{children:"Grafik Peserta"})})}),B.jsxs(dn,{className:"px-6 py-6",children:[B.jsx("div",{className:"mb-4",children:B.jsx(Ua,{width:"100%",height:200,children:B.jsxs(eo,{layout:"vertical",data:l,margin:{top:20,right:0,left:0,bottom:5},children:[B.jsx(ld,{strokeDasharray:"3 3"}),B.jsx(zr,{type:"number"}),B.jsx(Fr,{dataKey:"name",type:"category",width:200}),B.jsx(me,{}),B.jsx(Fe,{}),B.jsx(vt,{dataKey:"value",fill:"#8884d8",name:"Peserta"})]})})}),B.jsxs("div",{className:"mb-4",children:[B.jsx("h1",{children:"Persebaran Data Peserta"}),B.jsxs(Cv,{className:"min-w-full",children:[B.jsx(jv,{children:B.jsxs(fi,{children:[B.jsx(Ir,{children:"Jenis Kelamin"}),h.map(($,C)=>B.jsx(Ir,{children:$.name},`kota-${C}`))]})}),B.jsxs(Iv,{children:[B.jsxs(fi,{children:[B.jsx(Qe,{children:"Laki-Laki"}),h.map(($,C)=>B.jsx(Qe,{children:p["laki-laki"][$.id]},`kota-l-${C}`))]}),B.jsxs(fi,{children:[B.jsx(Qe,{children:"Perempuan"}),h.map(($,C)=>B.jsx(Qe,{children:p.perempuan[$.id]},`kota-p-${C}`))]})]})]})]})]})]}),B.jsxs(kr,{className:"container mx-auto overflow-hidden mb-4",children:[B.jsx(fn,{className:"bg-blue-500 text-white ",children:B.jsx(hn,{children:B.jsx("h1",{children:"Anggota Aktif Pada Organisasi Kepemudaan dan Organisasi Sosial Masyarakat"})})}),B.jsx(dn,{children:B.jsx(Ua,{width:"100%",height:400,children:B.jsxs(eo,{data:w,children:[B.jsx(zr,{dataKey:"organisasi",tick:{fontSize:10},tickFormatter:$=>$.substring(0,10)+"..."}),B.jsx(Fr,{}),B.jsx(me,{}),B.jsx(Fe,{}),B.jsx(vt,{dataKey:"jumlah",fill:"#8884d8",name:"Jumlah Anggota"})]})})})]}),B.jsxs(kr,{className:"container mx-auto overflow-hidden mb-4",children:[B.jsx(fn,{className:"bg-blue-500 text-white ",children:B.jsx(hn,{children:B.jsx("h1",{children:"Anggota Aktif Pada Organisasi Kepemudaan dan Organisasi Sosial Masyarakat"})})}),B.jsx(dn,{children:B.jsx(Ua,{width:"100%",height:2600,children:B.jsxs(eo,{data:w,layout:"vertical",margin:{top:20,right:0,left:0,bottom:20},children:[B.jsx(zr,{type:"number"}),B.jsx(Fr,{type:"category",dataKey:"organisasi",width:200,tick:{fontSize:10},tickFormatter:$=>$.substring(0,40)+"..."}),B.jsx(me,{content:S}),B.jsx(Fe,{}),B.jsx(vt,{dataKey:"U16_L",fill:"#E91E63",stackId:"male"}),B.jsx(vt,{dataKey:"U17_L",fill:"#C2185B",stackId:"male"}),B.jsx(vt,{dataKey:"U18_L",fill:"#880E4F",stackId:"male"}),B.jsx(vt,{dataKey:"U19_L",fill:"#5D0934",stackId:"male"}),B.jsx(vt,{dataKey:"U20_L",fill:"#3D0623",stackId:"male"}),B.jsx(vt,{dataKey:"U21_L",fill:"#370520",stackId:"male"}),B.jsx(vt,{dataKey:"U22_L",fill:"#31051c",stackId:"male"}),B.jsx(vt,{dataKey:"U22_L",fill:"#2b0419",stackId:"male"}),B.jsx(vt,{dataKey:"U23_L",fill:"#250415",stackId:"male"}),B.jsx(vt,{dataKey:"U24_L",fill:"#1f0312",stackId:"male"}),B.jsx(vt,{dataKey:"U25_L",fill:"#18020e",stackId:"male"}),B.jsx(vt,{dataKey:"U26_L",fill:"#12020b",stackId:"male"}),B.jsx(vt,{dataKey:"U27_L",fill:"#0c0107",stackId:"male"}),B.jsx(vt,{dataKey:"U28_L",fill:"#060104",stackId:"male"}),B.jsx(vt,{dataKey:"U29_L",fill:"#1a1a1a",stackId:"male"}),B.jsx(vt,{dataKey:"U30_L",fill:"#000000",stackId:"male"}),B.jsx(vt,{dataKey:"U16_P",fill:"#E91E63",stackId:"female"}),B.jsx(vt,{dataKey:"U17_P",fill:"#C2185B",stackId:"female"}),B.jsx(vt,{dataKey:"U18_P",fill:"#880E4F",stackId:"female"}),B.jsx(vt,{dataKey:"U19_P",fill:"#5D0934",stackId:"female"}),B.jsx(vt,{dataKey:"U20_P",fill:"#3D0623",stackId:"female"}),B.jsx(vt,{dataKey:"U21_P",fill:"#370520",stackId:"female"}),B.jsx(vt,{dataKey:"U22_P",fill:"#31051c",stackId:"female"}),B.jsx(vt,{dataKey:"U22_P",fill:"#2b0419",stackId:"female"}),B.jsx(vt,{dataKey:"U23_P",fill:"#250415",stackId:"female"}),B.jsx(vt,{dataKey:"U24_P",fill:"#1f0312",stackId:"female"}),B.jsx(vt,{dataKey:"U25_P",fill:"#18020e",stackId:"female"}),B.jsx(vt,{dataKey:"U26_P",fill:"#12020b",stackId:"female"}),B.jsx(vt,{dataKey:"U27_P",fill:"#0c0107",stackId:"female"}),B.jsx(vt,{dataKey:"U28_P",fill:"#060104",stackId:"female"}),B.jsx(vt,{dataKey:"U29_P",fill:"#1a1a1a",stackId:"female"}),B.jsx(vt,{dataKey:"U30_P",fill:"#000000",stackId:"female"})]})})})]}),B.jsxs(kr,{className:"container mx-auto overflow-hidden mb-4",children:[B.jsx(fn,{className:"bg-blue-500 text-white ",children:B.jsx(hn,{children:B.jsx("h1",{children:"Anggota Aktif Pada Organisasi Kepemudaan dan Organisasi Sosial Masyarakat"})})}),B.jsx(dn,{children:B.jsx("div",{className:"overflow-auto max-w-full",children:B.jsxs(Cv,{children:[B.jsx(jv,{children:B.jsxs(fi,{children:[B.jsx(Ir,{children:"No"}),B.jsx(Ir,{children:"Organisasi Kepemudaan"}),[...Array(14)].map(($,C)=>B.jsxs(R.Fragment,{children:[B.jsxs(Ir,{children:["U",C+16," L"]}),B.jsxs(Ir,{children:["U",C+16," P"]})]},C)),B.jsx(Ir,{children:"Jumlah"})]})}),B.jsx(Iv,{children:d.map(($,C)=>B.jsxs(fi,{children:[B.jsx(Qe,{children:C+1}),B.jsx(Qe,{children:$.name}),[...Array(14)].map((N,q)=>B.jsxs(R.Fragment,{children:[B.jsx(Qe,{children:$.jumlah_anggotas[q]!=null?$.jumlah_anggotas[q].jumlah_l:0}),B.jsx(Qe,{children:$.jumlah_anggotas[q]!=null?$.jumlah_anggotas[q].jumlah_p:0})]},q)),B.jsx(Qe,{children:$.jumlah})]},"organisasi"+C))})]})})})]})]})})}export{az as default};
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]