@reltio/segmentation 1.4.203 → 1.4.204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/735.bundle.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 735.bundle.js.LICENSE.txt */
2
- (self.webpackChunk_reltio_segmentation=self.webpackChunk_reltio_segmentation||[]).push([[735],{17871:(t,e,n)=>{"use strict";n.d(e,{j_:()=>N,b6:()=>p,vD:()=>K,Jx:()=>F,XL:()=>V,mg:()=>pt,Ji:()=>j});var r=n(8156),o=n(47111),i=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,function(t,e,n,r,o,i,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(e.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}});const a=(0,r.createContext)(null);function s(t){google.maps.event.removeListener(t)}function u(t=[]){t.forEach(s)}function c({updaterMap:t,eventMap:e,prevProps:n,nextProps:r,instance:o}){const i=function(t,e,n){return r=n,o=function(n,r,o){return"function"==typeof t[o]&&n.push(google.maps.event.addListener(e,r,t[o])),n},i=[],Object.keys(r).reduce((function(t,e){return o(t,r[e],e)}),i);var r,o,i}(r,o,e);return((t,e,n,r)=>{const o={};var i,a;i=t,a=(t,i)=>{const a=n[i];a!==e[i]&&(o[i]=a,t(r,a))},Object.keys(i).forEach((function(t){return a(i[t],t)}))})(t,n,r,o),i}const l={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},f={extraMapTypes(t,e){e.forEach((function(e,n){t.mapTypes.set(String(n),e)}))},center(t,e){t.setCenter(e)},clickableIcons(t,e){t.setClickableIcons(e)},heading(t,e){t.setHeading(e)},mapTypeId(t,e){t.setMapTypeId(e)},options(t,e){t.setOptions(e)},streetView(t,e){t.setStreetView(e)},tilt(t,e){t.setTilt(e)},zoom(t,e){t.setZoom(e)}};class p extends r.PureComponent{constructor(){super(...arguments),this.state={map:null},this.registeredEvents=[],this.mapRef=null,this.getInstance=()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options),this.panTo=t=>{const e=this.getInstance();e&&e.panTo(t)},this.setMapCallback=()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)},this.getRef=t=>{this.mapRef=t}}componentDidMount(){const t=this.getInstance();this.registeredEvents=c({updaterMap:f,eventMap:l,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{map:t}}),this.setMapCallback)}componentDidUpdate(t){null!==this.state.map&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:f,eventMap:l,prevProps:t,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),u(this.registeredEvents))}render(){return r.createElement("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},r.createElement(a.Provider,{value:this.state.map},null!==this.state.map?this.props.children:r.createElement(r.Fragment,null)))}}function h(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}const d="undefined"!=typeof document,g=({url:t,id:e,nonce:n})=>d?new Promise((function(r,o){const i=document.getElementById(e),a=window;if(i){const n=i.getAttribute("data-state");if(i.src===t&&"error"!==n){if("ready"===n)return r(e);{const t=a.initMap,n=i.onerror;return a.initMap=function(){t&&t(),r(e)},void(i.onerror=function(t){n&&n(t),o(t)})}}i.remove()}const s=document.createElement("script");s.type="text/javascript",s.src=t,s.id=e,s.async=!0,s.nonce=n,s.onerror=function(t){s.setAttribute("data-state","error"),o(t)},a.initMap=function(){s.setAttribute("data-state","ready"),r(e)},document.head.appendChild(s)})).catch((t=>{throw console.error("injectScript error: ",t),t})):Promise.reject(new Error("document is undefined")),y=t=>!((!t.href||0!==t.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))&&("style"===t.tagName.toLowerCase()&&t.styleSheet&&t.styleSheet.cssText&&0===t.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(t.styleSheet.cssText="",0):"style"===t.tagName.toLowerCase()&&t.innerHTML&&0===t.innerHTML.replace("\r\n","").indexOf(".gm-style")?(t.innerHTML="",0):"style"!==t.tagName.toLowerCase()||t.styleSheet||t.innerHTML)),v=()=>{const t=document.getElementsByTagName("head")[0],e=t.insertBefore.bind(t);t.insertBefore=function(n,r){y(n)||Reflect.apply(e,t,[n,r])};const n=t.appendChild.bind(t);t.appendChild=function(e){y(e)||Reflect.apply(n,t,[e])}};function m({googleMapsApiKey:t,googleMapsClientId:e,version:n="weekly",language:r,region:o,libraries:a,channel:s,mapIds:u}){const c=[];return i(t&&e||!(t&&e),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?c.push(`key=${t}`):e&&c.push(`client=${e}`),n&&c.push(`v=${n}`),r&&c.push(`language=${r}`),o&&c.push(`region=${o}`),a&&a.length&&c.push(`libraries=${a.sort().join(",")}`),s&&c.push(`channel=${s}`),u&&u.length&&c.push(`map_ids=${u.join(",")}`),c.push("callback=initMap"),`https://maps.googleapis.com/maps/api/js?${c.join("&")}`}let b=!1;function x(){return r.createElement("div",null,"Loading...")}const w={id:"script-loader",version:"weekly"};class E extends r.PureComponent{constructor(){super(...arguments),this.check=r.createRef(),this.state={loaded:!1},this.cleanupCallback=()=>{delete window.google.maps,this.injectScript()},this.isCleaningUp=()=>{return t=this,e=void 0,r=function*(){return new Promise((function(t){if(b){if(d){const e=window.setInterval((function(){b||(window.clearInterval(e),t())}),1)}}else t()}))},new((n=void 0)||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}));var t,e,n,r},this.cleanup=()=>{b=!0;const t=document.getElementById(this.props.id);t&&t.parentNode&&t.parentNode.removeChild(t),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return"string"==typeof t.src&&t.src.includes("maps.googleapis")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(t){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===t.href})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(t){return void 0!==t.innerText&&t.innerText.length>0&&t.innerText.includes(".gm-")})).forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))},this.injectScript=()=>{this.props.preventGoogleFontsLoading&&v(),i(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id);const t={id:this.props.id,nonce:this.props.nonce,url:m(this.props)};g(t).then((()=>{this.props.onLoad&&this.props.onLoad(),this.setState((function(){return{loaded:!0}}))})).catch((t=>{this.props.onError&&this.props.onError(t),console.error(`\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${this.props.googleMapsApiKey||"-"}) or Client ID (${this.props.googleMapsClientId||"-"}) to <LoadScript />\n Otherwise it is a Network issue.\n `)}))}}componentDidMount(){if(d){if(window.google&&window.google.maps&&!b)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(t){console.error("Error at injecting script after cleaning up: ",t)}))}}componentDidUpdate(t){this.props.libraries!==t.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),d&&t.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))}componentWillUnmount(){if(d){this.cleanup();const t=()=>{this.check.current||(delete window.google,b=!1)};window.setTimeout(t,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return r.createElement(r.Fragment,null,r.createElement("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||r.createElement(x,null))}}let O;E.defaultProps=w;const S=r.createElement(x,null);r.memo((function(t){var{loadingElement:e,onLoad:n,onError:o,onUnmount:a,children:s}=t,u=h(t,["loadingElement","onLoad","onError","onUnmount","children"]);const{isLoaded:c,loadError:l}=function({id:t=w.id,version:e=w.version,nonce:n,googleMapsApiKey:o,googleMapsClientId:a,language:s,region:u,libraries:c,preventGoogleFontsLoading:l,channel:f,mapIds:p}){const h=r.useRef(!1),[y,b]=r.useState(!1),[x,E]=r.useState(void 0);r.useEffect((function(){return h.current=!0,()=>{h.current=!1}}),[]),r.useEffect((function(){d&&l&&v()}),[l]),r.useEffect((function(){y&&i(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")}),[y]);const S=m({version:e,googleMapsApiKey:o,googleMapsClientId:a,language:s,region:u,libraries:c,channel:f,mapIds:p});r.useEffect((function(){function e(){h.current&&(b(!0),O=S)}d&&(window.google&&window.google.maps&&O===S?e():g({id:t,url:S,nonce:n}).then(e).catch((function(t){h.current&&E(t),console.warn(`\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (${o||"-"}) or Client ID (${a||"-"})\n Otherwise it is a Network issue.\n `),console.error(t)})))}),[t,S,n]);const C=r.useRef();return r.useEffect((function(){C.current&&c!==C.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),C.current=c}),[c]),{isLoaded:y,loadError:x,url:S}}(u);return r.useEffect((function(){c&&"function"==typeof n&&n()}),[c,n]),r.useEffect((function(){l&&"function"==typeof o&&o(l)}),[l,o]),r.useEffect((function(){return()=>{a&&a()}}),[a]),c?s:e||S}));var C=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n};const M="__googleMapsScriptId";class P{constructor({apiKey:t,channel:e,client:n,id:r=M,libraries:o=[],language:i,region:a,version:s,mapIds:u,nonce:c,retries:l=3,url:f="https://maps.googleapis.com/maps/api/js"}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.version=s,this.apiKey=t,this.channel=e,this.client=n,this.id=r||M,this.libraries=o,this.language=i,this.region=a,this.mapIds=u,this.nonce=c,this.retries=l,this.url=f,P.instance){if(!C(this.options,P.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(P.instance.options)}`);return P.instance}P.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url}}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((t,e)=>{this.loadCallback((n=>{n?e(n.error):t(window.google)}))}))}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const t=this.createUrl(),e=document.createElement("script");e.id=this.id,e.type="text/javascript",e.src=t,e.onerror=this.loadErrorCallback.bind(this),e.defer=!0,e.async=!0,this.nonce&&(e.nonce=this.nonce),document.head.appendChild(e)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),t)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((t=>{t(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function j({id:t=w.id,version:e=w.version,nonce:n,googleMapsApiKey:o,language:i,region:a,libraries:s,preventGoogleFontsLoading:u,mapIds:c}){const l=r.useRef(!1),[f,p]=r.useState(!1),[h,g]=r.useState(void 0);r.useEffect((function(){return l.current=!0,()=>{l.current=!1}}),[]);const y=r.useMemo((function(){return new P({id:t,apiKey:o,version:e,libraries:s,language:i,region:a,mapIds:c,nonce:n})}),[t,o,e,s,i,a,c,n]);r.useEffect((function(){f||y.load().then((function(){l.current&&p(!0)})).catch((function(t){g(t)}))}),[]),r.useEffect((function(){d&&u&&v()}),[u]);const m=r.useRef();return r.useEffect((function(){m.current&&s!==m.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),m.current=s}),[s]),{isLoaded:f,loadError:h}}const A={},k={options(t,e){t.setOptions(e)}};class _ extends r.PureComponent{constructor(){super(...arguments),this.state={trafficLayer:null},this.setTrafficLayerCallback=()=>{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)},this.registeredEvents=[]}componentDidMount(){const t=new google.maps.TrafficLayer(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:k,eventMap:A,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{trafficLayer:t}}),this.setTrafficLayerCallback)}componentDidUpdate(t){null!==this.state.trafficLayer&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:k,eventMap:A,prevProps:t,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),u(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}_.contextType=a;class T extends r.PureComponent{constructor(){super(...arguments),this.state={bicyclingLayer:null},this.setBicyclingLayerCallback=()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))}}componentDidMount(){const t=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:t}}),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}T.contextType=a;class D extends r.PureComponent{constructor(){super(...arguments),this.state={transitLayer:null},this.setTransitLayerCallback=()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))}}componentDidMount(){const t=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:t}}),this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}D.contextType=a;const I={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},L={drawingMode(t,e){t.setDrawingMode(e)},options(t,e){t.setOptions(e)}};class N extends r.PureComponent{constructor(t){super(t),this.registeredEvents=[],this.state={drawingManager:null},this.setDrawingManagerCallback=()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)},i(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){const t=new google.maps.drawing.DrawingManager(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:L,eventMap:I,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{drawingManager:t}}),this.setDrawingManagerCallback)}componentDidUpdate(t){null!==this.state.drawingManager&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:L,eventMap:I,prevProps:t,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),u(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return r.createElement(r.Fragment,null)}}N.contextType=a;const R={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},B={animation(t,e){t.setAnimation(e)},clickable(t,e){t.setClickable(e)},cursor(t,e){t.setCursor(e)},draggable(t,e){t.setDraggable(e)},icon(t,e){t.setIcon(e)},label(t,e){t.setLabel(e)},map(t,e){t.setMap(e)},opacity(t,e){t.setOpacity(e)},options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},shape(t,e){t.setShape(e)},title(t,e){t.setTitle(e)},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}};class F extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[]}componentDidMount(){const t=Object.assign(Object.assign(Object.assign({},this.props.options||{}),this.props.clusterer?{}:{map:this.context}),{position:this.props.position});this.marker=new google.maps.Marker(t),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=c({updaterMap:B,eventMap:R,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)}componentDidUpdate(t){this.marker&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:B,eventMap:R,prevProps:t,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),u(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){let t=null;return this.props.children&&(t=r.Children.map(this.props.children,(t=>{if(!r.isValidElement(t))return t;let e=t;return r.cloneElement(e,{anchor:this.marker})}))),t||null}}F.contextType=a;var z=function(){function t(e,n){e.getClusterer().extend(t,google.maps.OverlayView),this.cluster=e,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(e.getMap())}return t.prototype.onAdd=function(){var t,e,n=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",(function(){e=t})),google.maps.event.addDomListener(this.div,"mousedown",(function(){t=!0,e=!1})),google.maps.event.addDomListener(this.div,"click",(function(r){if(t=!1,!e){var o=n.cluster.getClusterer();if(google.maps.event.trigger(o,"click",n.cluster),google.maps.event.trigger(o,"clusterclick",n.cluster),o.getZoomOnClick()){var i=o.getMaxZoom(),a=n.cluster.getBounds();o.getMap().fitBounds(a),setTimeout((function(){o.getMap().fitBounds(a),null!==i&&o.getMap().getZoom()>i&&o.getMap().setZoom(i+1)}),100)}r.cancelBubble=!0,r.stopPropagation&&r.stopPropagation()}})),google.maps.event.addDomListener(this.div,"mouseover",(function(){google.maps.event.trigger(n.cluster.getClusterer(),"mouseover",n.cluster)})),google.maps.event.addDomListener(this.div,"mouseout",(function(){google.maps.event.trigger(n.cluster.getClusterer(),"mouseout",n.cluster)}))},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var t=this.getPosFromLatLng(this.center),e=t.x,n=t.y;this.div.style.top=n+"px",this.div.style.left=e+"px"}},t.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.prototype.show=function(){if(this.div&&this.center){var t,e="",n=this.backgroundPosition.split(" "),r=parseInt(n[0].replace(/^\s+|\s+$/g,""),10),o=parseInt(n[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng(this.center);t=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(i),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+o+"px; left: "+r+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*o+"px, "+(-1*r+this.width)+"px, "+(-1*o+this.height)+"px, "+-1*r+"px);"),e+="'>",this.div.innerHTML=e+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},t.prototype.useStyle=function(t){this.sums=t;var e=this.cluster.getClusterer().getStyles(),n=e[Math.min(e.length-1,Math.max(0,t.index-1))];this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className=this.clusterClassName+" "+n.className),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0"},t.prototype.setCenter=function(t){this.center=t},t.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width+"px; height: "+this.height+"px;"),e.join("")},t.prototype.getPosFromLatLng=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon[1],e.y-=this.anchorIcon[0],e},t}(),U=function(){function t(t){this.markerClusterer=t,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new z(this,this.markerClusterer.getStyles())}return t.prototype.getSize=function(){return this.markers.length},t.prototype.getMarkers=function(){return this.markers},t.prototype.getCenter=function(){return this.center},t.prototype.getMap=function(){return this.map},t.prototype.getClusterer=function(){return this.markerClusterer},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center,this.center),e=this.getMarkers(),n=0;n<e.length;n++){var r=e[n].getPosition();r&&t.extend(r)}return t},t.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;var e;if(this.center){if(this.averageCenter&&(e=t.getPosition())){var n=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(n-1)+e.lat())/n,(this.center.lng()*(n-1)+e.lng())/n),this.calculateBounds()}}else(e=t.getPosition())&&(this.center=e,this.calculateBounds());t.isAdded=!0,this.markers.push(t);var r=this.markers.length,o=this.markerClusterer.getMaxZoom(),i=this.map.getZoom();if(null!==o&&void 0!==i&&i>o)t.getMap()!==this.map&&t.setMap(this.map);else if(r<this.minClusterSize)t.getMap()!==this.map&&t.setMap(this.map);else if(r===this.minClusterSize)for(var a=0;a<r;a++)this.markers[a].setMap(null);else t.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(t){if(null!==this.bounds){var e=t.getPosition();if(e)return this.bounds.contains(e)}return!1},t.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.prototype.updateIcon=function(){var t=this.markers.length,e=this.markerClusterer.getMaxZoom(),n=this.map.getZoom();null!==e&&void 0!==n&&n>e||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},t.prototype.isMarkerAlreadyAdded=function(t){if(this.markers.includes)return this.markers.includes(t);for(var e=0;e<this.markers.length;e++)if(t===this.markers[e])return!0;return!1},t}(),W=function(t,e){var n=t.length,r=n.toString().length,o=Math.min(r,e);return{text:n.toString(),index:o,title:""}},q=[53,56,66,78,90],H=function(){function t(e,n,r){void 0===n&&(n=[]),void 0===r&&(r={}),this.extend(t,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=r.gridSize||60,this.minClusterSize=r.minimumClusterSize||2,this.maxZoom=r.maxZoom||null,this.styles=r.styles||[],this.title=r.title||"",this.zoomOnClick=!0,void 0!==r.zoomOnClick&&(this.zoomOnClick=r.zoomOnClick),this.averageCenter=!1,void 0!==r.averageCenter&&(this.averageCenter=r.averageCenter),this.ignoreHidden=!1,void 0!==r.ignoreHidden&&(this.ignoreHidden=r.ignoreHidden),this.enableRetinaIcons=!1,void 0!==r.enableRetinaIcons&&(this.enableRetinaIcons=r.enableRetinaIcons),this.imagePath=r.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=r.imageExtension||"png",this.imageSizes=r.imageSizes||q,this.calculator=r.calculator||W,this.batchSize=r.batchSize||2e3,this.batchSizeIE=r.batchSizeIE||500,this.clusterClass=r.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(e)}return t.prototype.onAdd=function(){var t=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){t.resetViewport(!1),t.getMap().getZoom()!==(t.get("minZoom")||0)&&t.getMap().getZoom()!==t.get("maxZoom")||google.maps.event.trigger(t,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){t.redraw()}))]},t.prototype.onRemove=function(){for(var t=0;t<this.markers.length;t++)this.markers[t].getMap()!==this.activeMap&&this.markers[t].setMap(this.activeMap);for(t=0;t<this.clusters.length;t++)this.clusters[t].remove();for(this.clusters=[],t=0;t<this.listeners.length;t++)google.maps.event.removeListener(this.listeners[t]);this.listeners=[],this.activeMap=null,this.ready=!1},t.prototype.draw=function(){},t.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var t=0;t<this.imageSizes.length;t++)this.styles.push({url:this.imagePath+(t+1)+"."+this.imageExtension,height:this.imageSizes[t],width:this.imageSizes[t]})},t.prototype.fitMapToMarkers=function(){for(var t=this.getMarkers(),e=new google.maps.LatLngBounds,n=0;n<t.length;n++){var r=t[n].getPosition();r&&e.extend(r)}this.getMap().fitBounds(e)},t.prototype.getGridSize=function(){return this.gridSize},t.prototype.setGridSize=function(t){this.gridSize=t},t.prototype.getMinimumClusterSize=function(){return this.minClusterSize},t.prototype.setMinimumClusterSize=function(t){this.minClusterSize=t},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.setMaxZoom=function(t){this.maxZoom=t},t.prototype.getStyles=function(){return this.styles},t.prototype.setStyles=function(t){this.styles=t},t.prototype.getTitle=function(){return this.title},t.prototype.setTitle=function(t){this.title=t},t.prototype.getZoomOnClick=function(){return this.zoomOnClick},t.prototype.setZoomOnClick=function(t){this.zoomOnClick=t},t.prototype.getAverageCenter=function(){return this.averageCenter},t.prototype.setAverageCenter=function(t){this.averageCenter=t},t.prototype.getIgnoreHidden=function(){return this.ignoreHidden},t.prototype.setIgnoreHidden=function(t){this.ignoreHidden=t},t.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons=t},t.prototype.getImageExtension=function(){return this.imageExtension},t.prototype.setImageExtension=function(t){this.imageExtension=t},t.prototype.getImagePath=function(){return this.imagePath},t.prototype.setImagePath=function(t){this.imagePath=t},t.prototype.getImageSizes=function(){return this.imageSizes},t.prototype.setImageSizes=function(t){this.imageSizes=t},t.prototype.getCalculator=function(){return this.calculator},t.prototype.setCalculator=function(t){this.calculator=t},t.prototype.getBatchSizeIE=function(){return this.batchSizeIE},t.prototype.setBatchSizeIE=function(t){this.batchSizeIE=t},t.prototype.getClusterClass=function(){return this.clusterClass},t.prototype.setClusterClass=function(t){this.clusterClass=t},t.prototype.getMarkers=function(){return this.markers},t.prototype.getTotalMarkers=function(){return this.markers.length},t.prototype.getClusters=function(){return this.clusters},t.prototype.getTotalClusters=function(){return this.clusters.length},t.prototype.addMarker=function(t,e){this.pushMarkerTo(t),e||this.redraw()},t.prototype.addMarkers=function(t,e){for(var n in t)t.hasOwnProperty(n)&&this.pushMarkerTo(t[n]);e||this.redraw()},t.prototype.pushMarkerTo=function(t){var e=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",(function(){e.ready&&(t.isAdded=!1,e.repaint())})),t.isAdded=!1,this.markers.push(t)},t.prototype.removeMarker_=function(t){var e=-1;if(this.markers.indexOf)e=this.markers.indexOf(t);else for(var n=0;n<this.markers.length;n++)if(t===this.markers[n]){e=n;break}return-1!==e&&(t.setMap(null),this.markers.splice(e,1),!0)},t.prototype.removeMarker=function(t,e){var n=this.removeMarker_(t);return!e&&n&&this.repaint(),n},t.prototype.removeMarkers=function(t,e){for(var n=!1,r=0;r<t.length;r++)n=n||this.removeMarker_(t[r]);return!e&&n&&this.repaint(),n},t.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},t.prototype.repaint=function(){var t=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var e=0;e<t.length;e++)t[e].remove()}),0)},t.prototype.getExtendedBounds=function(t){var e=this.getProjection(),n=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()));n.x+=this.gridSize,n.y-=this.gridSize;var r=e.fromLatLngToDivPixel(new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()));return r.x-=this.gridSize,r.y+=this.gridSize,t.extend(e.fromDivPixelToLatLng(n)),t.extend(e.fromDivPixelToLatLng(r)),t},t.prototype.redraw=function(){this.createClusters(0)},t.prototype.resetViewport=function(t){for(var e=0;e<this.clusters.length;e++)this.clusters[e].remove();for(this.clusters=[],e=0;e<this.markers.length;e++){var n=this.markers[e];n.isAdded=!1,t&&n.setMap(null)}},t.prototype.distanceBetweenPoints=function(t,e){var n=(e.lat()-t.lat())*Math.PI/180,r=(e.lng()-t.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371},t.prototype.isMarkerInBounds=function(t,e){var n=t.getPosition();return!!n&&e.contains(n)},t.prototype.addToClosestCluster=function(t){for(var e,n=4e4,r=null,o=0;o<this.clusters.length;o++){var i=(e=this.clusters[o]).getCenter(),a=t.getPosition();if(i&&a){var s=this.distanceBetweenPoints(i,a);s<n&&(n=s,r=e)}}r&&r.isMarkerInClusterBounds(t)?r.addMarker(t):((e=new U(this)).addMarker(t),this.clusters.push(e))},t.prototype.createClusters=function(t){var e=this;if(this.ready){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),r=this.getExtendedBounds(n),o=Math.min(t+this.batchSize,this.markers.length),i=t;i<o;i++){var a=this.markers[i];!a.isAdded&&this.isMarkerInBounds(a,r)&&(!this.ignoreHidden||this.ignoreHidden&&a.getVisible())&&this.addToClosestCluster(a)}if(o<this.markers.length)this.timerRefStatic=window.setTimeout((function(){e.createClusters(o)}),0);else for(this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this),i=0;i<this.clusters.length;i++)this.clusters[i].updateIcon()}},t.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},t}();const Z={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},$={averageCenter(t,e){t.setAverageCenter(e)},batchSizeIE(t,e){t.setBatchSizeIE(e)},calculator(t,e){t.setCalculator(e)},clusterClass(t,e){t.setClusterClass(e)},enableRetinaIcons(t,e){t.setEnableRetinaIcons(e)},gridSize(t,e){t.setGridSize(e)},ignoreHidden(t,e){t.setIgnoreHidden(e)},imageExtension(t,e){t.setImageExtension(e)},imagePath(t,e){t.setImagePath(e)},imageSizes(t,e){t.setImageSizes(e)},maxZoom(t,e){t.setMaxZoom(e)},minimumClusterSize(t,e){t.setMinimumClusterSize(e)},styles(t,e){t.setStyles(e)},title(t,e){t.setTitle(e)},zoomOnClick(t,e){t.setZoomOnClick(e)}};class V extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={markerClusterer:null},this.setClustererCallback=()=>{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)}}componentDidMount(){if(this.context){const t=new H(this.context,[],this.props.options);this.registeredEvents=c({updaterMap:$,eventMap:Z,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{markerClusterer:t}}),this.setClustererCallback)}}componentDidUpdate(t){this.state.markerClusterer&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:$,eventMap:Z,prevProps:t,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),u(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}V.contextType=a;var G=function(){function t(e){void 0===e&&(e={}),this.extend(t,google.maps.OverlayView),this.content=e.content||"",this.disableAutoPan=e.disableAutoPan||!1,this.maxWidth=e.maxWidth||0,this.pixelOffset=e.pixelOffset||new google.maps.Size(0,0),this.position=e.position||new google.maps.LatLng(0,0),this.zIndex=e.zIndex||null,this.boxClass=e.boxClass||"infoBox",this.boxStyle=e.boxStyle||{},this.closeBoxMargin=e.closeBoxMargin||"2px",this.closeBoxURL=e.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===e.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=e.infoBoxClearance||new google.maps.Size(1,1),void 0===e.visible&&(void 0===e.isHidden?e.visible=!0:e.visible=!e.isHidden),this.isHidden=!e.visible,this.alignBottom=e.alignBottom||!1,this.pane=e.pane||"floatPane",this.enableEventPropagation=e.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return t.prototype.createInfoBoxDiv=function(){var t=this;function e(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}if(!this.div){if(this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content)),this.getPanes()[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var r=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],o=0;o<r.length;o++)this.eventListeners.push(google.maps.event.addDomListener(this.div,r[o],e));this.eventListeners.push(google.maps.event.addDomListener(this.div,"mouseover",(function(){t.div&&(t.div.style.cursor="default")})))}this.contextListener=google.maps.event.addDomListener(this.div,"contextmenu",(function(n){n.returnValue=!1,n.preventDefault&&n.preventDefault(),t.enableEventPropagation||e(n)})),google.maps.event.trigger(this,"domready")}},t.prototype.getCloseBoxImg=function(){var t="";return""!==this.closeBoxURL&&(t='<img alt=""',t+=' aria-hidden="true"',t+=" src='"+this.closeBoxURL+"'",t+=" align=right",t+=" style='",t+=" position: relative;",t+=" cursor: pointer;",t+=" margin: "+this.closeBoxMargin+";",t+="'>"),t},t.prototype.addClickHandler=function(){if(this.div&&this.div.firstChild&&""!==this.closeBoxURL){var t=this.div.firstChild;this.closeListener=google.maps.event.addDomListener(t,"click",this.getCloseClickHandler())}else this.closeListener=null},t.prototype.getCloseClickHandler=function(){var t=this;return function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(t,"closeclick"),t.close()}},t.prototype.panBox=function(t){if(this.div&&!t){var e=this.getMap();if(e instanceof google.maps.Map){var n=0,r=0,o=e.getBounds();o&&!o.contains(this.position)&&e.setCenter(this.position);var i=e.getDiv(),a=i.offsetWidth,s=i.offsetHeight,u=this.pixelOffset.width,c=this.pixelOffset.height,l=this.div.offsetWidth,f=this.div.offsetHeight,p=this.infoBoxClearance.width,h=this.infoBoxClearance.height,d=this.getProjection().fromLatLngToContainerPixel(this.position);null!==d&&(d.x<-u+p?n=d.x+u-p:d.x+l+u+p>a&&(n=d.x+l+u+p-a),this.alignBottom?d.y<-c+h+f?r=d.y+c-h-f:d.y+c+h>s&&(r=d.y+c+h-s):d.y<-c+h?r=d.y+c-h:d.y+f+c+h>s&&(r=d.y+f+c+h-s)),0===n&&0===r||e.panBy(n,r)}}},t.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var t=this.boxStyle;for(var e in t)t.hasOwnProperty(e)&&(this.div.style[e]=t[e]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.prototype.getBoxWidths=function(){var t={top:0,bottom:0,left:0,right:0};if(!this.div)return t;if(document.defaultView&&document.defaultView.getComputedStyle){var e=this.div.ownerDocument,n=e&&e.defaultView?e.defaultView.getComputedStyle(this.div,""):null;n&&(t.top=parseInt(n.borderTopWidth||"",10)||0,t.bottom=parseInt(n.borderBottomWidth||"",10)||0,t.left=parseInt(n.borderLeftWidth||"",10)||0,t.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var r=this.div.currentStyle;r&&(t.top=parseInt(r.borderTopWidth||"",10)||0,t.bottom=parseInt(r.borderBottomWidth||"",10)||0,t.left=parseInt(r.borderLeftWidth||"",10)||0,t.right=parseInt(r.borderRightWidth||"",10)||0)}return t},t.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var t=this.getProjection().fromLatLngToDivPixel(this.position);null!==t&&(this.div.style.left=t.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(t.y+this.pixelOffset.height)+"px":this.div.style.top=t.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.prototype.setOptions=function(t){void 0===t&&(t={}),void 0!==t.boxClass&&(this.boxClass=t.boxClass,this.setBoxStyle()),void 0!==t.boxStyle&&(this.boxStyle=t.boxStyle,this.setBoxStyle()),void 0!==t.content&&this.setContent(t.content),void 0!==t.disableAutoPan&&(this.disableAutoPan=t.disableAutoPan),void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.pixelOffset&&(this.pixelOffset=t.pixelOffset),void 0!==t.alignBottom&&(this.alignBottom=t.alignBottom),void 0!==t.position&&this.setPosition(t.position),void 0!==t.zIndex&&this.setZIndex(t.zIndex),void 0!==t.closeBoxMargin&&(this.closeBoxMargin=t.closeBoxMargin),void 0!==t.closeBoxURL&&(this.closeBoxURL=t.closeBoxURL),void 0!==t.infoBoxClearance&&(this.infoBoxClearance=t.infoBoxClearance),void 0!==t.isHidden&&(this.isHidden=t.isHidden),void 0!==t.visible&&(this.isHidden=!t.visible),void 0!==t.enableEventPropagation&&(this.enableEventPropagation=t.enableEventPropagation),this.div&&this.draw()},t.prototype.setContent=function(t){this.content=t,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof t?this.div.innerHTML=this.getCloseBoxImg()+t:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(t))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.prototype.setPosition=function(t){this.position=t,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.prototype.setVisible=function(t){this.isHidden=!t,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.prototype.setZIndex=function(t){this.zIndex=t,this.div&&(this.div.style.zIndex=t+""),google.maps.event.trigger(this,"zindex_changed")},t.prototype.getContent=function(){return this.content},t.prototype.getPosition=function(){return this.position},t.prototype.getZIndex=function(){return this.zIndex},t.prototype.getVisible=function(){return null!=this.getMap()&&!this.isHidden},t.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.prototype.open=function(t,e){var n=this;e&&(this.position=e.getPosition(),this.moveListener=google.maps.event.addListener(e,"position_changed",(function(){var t=e.getPosition();n.setPosition(t)})),this.mapListener=google.maps.event.addListener(e,"map_changed",(function(){n.setMap(e.map)}))),this.setMap(t),this.div&&this.panBox()},t.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var t=0;t<this.eventListeners.length;t++)google.maps.event.removeListener(this.eventListeners[t]);this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype.hasOwnProperty(e)||(this.prototype[e]=t.prototype[e]);return this}.apply(t,[e])},t}();const Y={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},X={options(t,e){t.setOptions(e)},position(t,e){e instanceof google.maps.LatLng?t.setPosition(e):t.setPosition(new google.maps.LatLng(e.lat,e.lng))},visible(t,e){t.setVisible(e)},zIndex(t,e){t.setZIndex(e)}};class K extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoBox:null},this.open=(t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):i(!1,"You must provide either an anchor or a position prop for <InfoBox>.")},this.setInfoBoxCallback=()=>{const{anchor:t,onLoad:e}=this.props,{infoBox:n}=this.state;null!==n&&null!==this.containerElement&&(n.setContent(this.containerElement),this.open(n,t),e&&e(n))}}componentDidMount(){const{options:t}=this.props,e=t||{},{position:n}=e,r=h(e,["position"]);let o;!n||n instanceof google.maps.LatLng||(o=new google.maps.LatLng(n.lat,n.lng));const i=new G(Object.assign(Object.assign({},r),o?{position:o}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=c({updaterMap:X,eventMap:Y,prevProps:{},nextProps:this.props,instance:i}),this.setState({infoBox:i},this.setInfoBoxCallback)}componentDidUpdate(t){const{infoBox:e}=this.state;null!==e&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:X,eventMap:Y,prevProps:t,nextProps:this.props,instance:e}))}componentWillUnmount(){const{onUnmount:t}=this.props,{infoBox:e}=this.state;null!==e&&(t&&t(e),u(this.registeredEvents),e.close())}render(){return this.containerElement?o.createPortal(r.Children.only(this.props.children),this.containerElement):null}}K.contextType=a;var J={exports:{}};!function(t){function e(t,e,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,n,r)}e.prototype.run=function(t,e,n,r){this._init(t,e,n,r);for(var o=0;o<this._datasetLength;o++)if(1!==this._visited[o]){this._visited[o]=1;var i=this._regionQuery(o);if(i.length<this.minPts)this.noise.push(o);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(o,a),this._expandCluster(a,i)}}return this.clusters},e.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},e.prototype._expandCluster=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(1!==this._visited[r]){this._visited[r]=1;var o=this._regionQuery(r);o.length>=this.minPts&&(e=this._mergeArrays(e,o))}1!==this._assigned[r]&&this._addToCluster(r,t)}},e.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},e.prototype._regionQuery=function(t){for(var e=[],n=0;n<this._datasetLength;n++)this.distance(this.dataset[t],this.dataset[n])<this.epsilon&&e.push(n);return e},e.prototype._mergeArrays=function(t,e){for(var n=e.length,r=0;r<n;r++){var o=e[r];t.indexOf(o)<0&&t.push(o)}return t},e.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=e)}(J);var Q={exports:{}};!function(t){function e(t,e,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,n)}e.prototype.init=function(t,e,n){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==n&&(this.distance=n)},e.prototype.run=function(t,e){this.init(t,e);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var o=!0;o;){o=this.assign();for(var i=0;i<this.k;i++){for(var a=new Array(l),s=0,u=0;u<l;u++)a[u]=0;for(var c=0;c<n;c++){var l=this.dataset[c].length;if(i===this.assignments[c]){for(u=0;u<l;u++)a[u]+=this.dataset[c][u];s++}}if(s>0){for(u=0;u<l;u++)a[u]/=s;this.centroids[i]=a}else this.centroids[i]=this.randomCentroid(),o=!0}}return this.getClusters()},e.prototype.randomCentroid=function(){var t,e,n=this.dataset.length-1;do{e=Math.round(Math.random()*n),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},e.prototype.assign=function(){for(var t,e=!1,n=this.dataset.length,r=0;r<n;r++)(t=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=t,e=!0);return e},e.prototype.getClusters=function(){for(var t,e=new Array(this.k),n=0;n<this.assignments.length;n++)void 0===e[t=this.assignments[n]]&&(e[t]=[]),e[t].push(n);return e},e.prototype.argmin=function(t,e,n){for(var r,o=Number.MAX_VALUE,i=0,a=e.length,s=0;s<a;s++)(r=n(t,e[s]))<o&&(o=r,i=s);return i},e.prototype.distance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;){var o=t[r]-e[r];n+=o*o}return Math.sqrt(n)},t.exports&&(t.exports=e)}(Q);var tt,et={exports:{}},nt={exports:{}};!function(t){function e(t,e,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,n)}e.prototype.insert=function(t,e){for(var n=this._queue.length,r=n;r--;){var o=this._priorities[r];"desc"===this._sorting?e>o&&(n=r):e<o&&(n=r)}this._insertAt(t,e,n)},e.prototype.remove=function(t){for(var e=this._queue.length;e--;)if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}},e.prototype.forEach=function(t){this._queue.forEach(t)},e.prototype.getElements=function(){return this._queue},e.prototype.getElementPriority=function(t){return this._priorities[t]},e.prototype.getPriorities=function(){return this._priorities},e.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,n=this._queue.length;e<n;e++)t.push([this._queue[e],this._priorities[e]]);return t},e.prototype._init=function(t,e,n){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var r=0;r<t.length;r++)this.insert(t[r],e[r])}n&&(this._sorting=n)},e.prototype._insertAt=function(t,e,n){this._queue.length===n?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(n,0,t),this._priorities.splice(n,0,e))},t.exports&&(t.exports=e)}(nt),function(t){if(t.exports)var e=nt.exports;function n(t,e,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,n,r)}n.prototype.run=function(t,n,r,o){this._init(t,n,r,o);for(var i=0,a=this.dataset.length;i<a;i++)if(1!==this._processed[i]){this._processed[i]=1,this.clusters.push([i]);var s=this.clusters.length-1;this._orderedList.push(i);var u=new e(null,null,"asc"),c=this._regionQuery(i);void 0!==this._distanceToCore(i)&&(this._updateQueue(i,c,u),this._expandCluster(s,u))}return this.clusters},n.prototype.getReachabilityPlot=function(){for(var t=[],e=0,n=this._orderedList.length;e<n;e++){var r=this._orderedList[e],o=this._reachability[r];t.push([r,o])}return t},n.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},n.prototype._updateQueue=function(t,e,n){var r=this;this._coreDistance=this._distanceToCore(t),e.forEach((function(e){if(void 0===r._processed[e]){var o=r.distance(r.dataset[t],r.dataset[e]),i=Math.max(r._coreDistance,o);void 0===r._reachability[e]?(r._reachability[e]=i,n.insert(e,i)):i<r._reachability[e]&&(r._reachability[e]=i,n.remove(e),n.insert(e,i))}}))},n.prototype._expandCluster=function(t,e){for(var n=e.getElements(),r=0,o=n.length;r<o;r++){var i=n[r];if(void 0===this._processed[i]){var a=this._regionQuery(i);this._processed[i]=1,this.clusters[t].push(i),this._orderedList.push(i),void 0!==this._distanceToCore(i)&&(this._updateQueue(i,a,e),this._expandCluster(t,e))}}},n.prototype._distanceToCore=function(t){for(var e=this.epsilon,n=0;n<e;n++)if(this._regionQuery(t,n).length>=this.minPts)return n},n.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var n=[],r=0,o=this.dataset.length;r<o;r++)this.distance(this.dataset[t],this.dataset[r])<e&&n.push(r);return n},n.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},t.exports&&(t.exports=n)}(et),(tt={exports:{}}).exports&&(tt.exports={DBSCAN:J.exports,KMEANS:Q.exports,OPTICS:et.exports,PriorityQueue:nt.exports});var rt;!function(t){t.exports=function(){function t(n,r,o,i,a,s){if(!(a-i<=o)){var u=i+a>>1;e(n,r,u,i,a,s%2),t(n,r,o,i,u-1,s+1),t(n,r,o,u+1,a,s+1)}}function e(t,r,o,i,a,s){for(;a>i;){if(a-i>600){var u=a-i+1,c=o-i+1,l=Math.log(u),f=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*f*(u-f)/u)*(c-u/2<0?-1:1);e(t,r,o,Math.max(i,Math.floor(o-c*f/u+p)),Math.min(a,Math.floor(o+(u-c)*f/u+p)),s)}var h=r[2*o+s],d=i,g=a;for(n(t,r,i,o),r[2*a+s]>h&&n(t,r,i,a);d<g;){for(n(t,r,d,g),d++,g--;r[2*d+s]<h;)d++;for(;r[2*g+s]>h;)g--}r[2*i+s]===h?n(t,r,i,g):n(t,r,++g,a),g<=o&&(i=g+1),o<=g&&(a=g-1)}}function n(t,e,n,o){r(t,n,o),r(e,2*n,2*o),r(e,2*n+1,2*o+1)}function r(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e,n,r){var o=t-n,i=e-r;return o*o+i*i}var i=function(t){return t[0]},a=function(t){return t[1]},s=function(e,n,r,o,s){void 0===n&&(n=i),void 0===r&&(r=a),void 0===o&&(o=64),void 0===s&&(s=Float64Array),this.nodeSize=o,this.points=e;for(var u=e.length<65536?Uint16Array:Uint32Array,c=this.ids=new u(e.length),l=this.coords=new s(2*e.length),f=0;f<e.length;f++)c[f]=f,l[2*f]=n(e[f]),l[2*f+1]=r(e[f]);t(c,l,o,0,c.length-1,0)};s.prototype.range=function(t,e,n,r){return function(t,e,n,r,o,i,a){for(var s,u,c=[0,t.length-1,0],l=[];c.length;){var f=c.pop(),p=c.pop(),h=c.pop();if(p-h<=a)for(var d=h;d<=p;d++)s=e[2*d],u=e[2*d+1],s>=n&&s<=o&&u>=r&&u<=i&&l.push(t[d]);else{var g=Math.floor((h+p)/2);s=e[2*g],u=e[2*g+1],s>=n&&s<=o&&u>=r&&u<=i&&l.push(t[g]);var y=(f+1)%2;(0===f?n<=s:r<=u)&&(c.push(h),c.push(g-1),c.push(y)),(0===f?o>=s:i>=u)&&(c.push(g+1),c.push(p),c.push(y))}}return l}(this.ids,this.coords,t,e,n,r,this.nodeSize)},s.prototype.within=function(t,e,n){return function(t,e,n,r,i,a){for(var s=[0,t.length-1,0],u=[],c=i*i;s.length;){var l=s.pop(),f=s.pop(),p=s.pop();if(f-p<=a)for(var h=p;h<=f;h++)o(e[2*h],e[2*h+1],n,r)<=c&&u.push(t[h]);else{var d=Math.floor((p+f)/2),g=e[2*d],y=e[2*d+1];o(g,y,n,r)<=c&&u.push(t[d]);var v=(l+1)%2;(0===l?n-i<=g:r-i<=y)&&(s.push(p),s.push(d-1),s.push(v)),(0===l?n+i>=g:r+i>=y)&&(s.push(d+1),s.push(f),s.push(v))}}return u}(this.ids,this.coords,t,e,n,this.nodeSize)};var u,c={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},l=Math.fround||(u=new Float32Array(1),function(t){return u[0]=+t,u[0]}),f=function(t){this.options=m(Object.create(c),t),this.trees=new Array(this.options.maxZoom+1)};function p(t,e,n,r,o){return{x:l(t),y:l(e),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function h(t,e){var n=t.geometry.coordinates,r=n[0],o=n[1];return{x:l(y(r)),y:l(v(o)),zoom:1/0,index:e,parentId:-1}}function d(t){return{type:"Feature",id:t.id,properties:g(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function g(t){var e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return m(m({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function y(t){return t/360+.5}function v(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function m(t,e){for(var n in e)t[n]=e[n];return t}function b(t){return t.x}function x(t){return t.y}return f.prototype.load=function(t){var e=this.options,n=e.log,r=e.minZoom,o=e.maxZoom,i=e.nodeSize;n&&console.time("total time");var a="prepare "+t.length+" points";n&&console.time(a),this.points=t;for(var u=[],c=0;c<t.length;c++)t[c].geometry&&u.push(h(t[c],c));this.trees[o+1]=new s(u,b,x,i,Float32Array),n&&console.timeEnd(a);for(var l=o;l>=r;l--){var f=+Date.now();u=this._cluster(u,l),this.trees[l]=new s(u,b,x,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,u.length,+Date.now()-f)}return n&&console.timeEnd("total time"),this},f.prototype.getClusters=function(t,e){var n=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),o=180===t[2]?180:((t[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],e),s=this.getClusters([-180,r,o,i],e);return a.concat(s)}for(var u=this.trees[this._limitZoom(e)],c=[],l=0,f=u.range(y(n),v(i),y(o),v(r));l<f.length;l+=1){var p=f[l],h=u.points[p];c.push(h.numPoints?d(h):this.points[h.index])}return c},f.prototype.getChildren=function(t){var e=this._getOriginId(t),n=this._getOriginZoom(t),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[e];if(!i)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],u=0,c=o.within(i.x,i.y,a);u<c.length;u+=1){var l=c[u],f=o.points[l];f.parentId===t&&s.push(f.numPoints?d(f):this.points[f.index])}if(0===s.length)throw new Error(r);return s},f.prototype.getLeaves=function(t,e,n){e=e||10,n=n||0;var r=[];return this._appendLeaves(r,t,e,n,0),r},f.prototype.getTile=function(t,e,n){var r=this.trees[this._limitZoom(t)],o=Math.pow(2,t),i=this.options,a=i.extent,s=i.radius/a,u=(n-s)/o,c=(n+1+s)/o,l={features:[]};return this._addTileFeatures(r.range((e-s)/o,u,(e+1+s)/o,c),r.points,e,n,o,l),0===e&&this._addTileFeatures(r.range(1-s/o,u,1,c),r.points,o,n,o,l),e===o-1&&this._addTileFeatures(r.range(0,u,s/o,c),r.points,-1,n,o,l),l.features.length?l:null},f.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var n=this.getChildren(t);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e},f.prototype._appendLeaves=function(t,e,n,r,o){for(var i=0,a=this.getChildren(e);i<a.length;i+=1){var s=a[i],u=s.properties;if(u&&u.cluster?o+u.point_count<=r?o+=u.point_count:o=this._appendLeaves(t,u.cluster_id,n,r,o):o<r?o++:t.push(s),t.length===n)break}return o},f.prototype._addTileFeatures=function(t,e,n,r,o,i){for(var a=0,s=t;a<s.length;a+=1){var u=e[s[a]],c=u.numPoints,l=void 0,f=void 0,p=void 0;if(c)l=g(u),f=u.x,p=u.y;else{var h=this.points[u.index];l=h.properties,f=y(h.geometry.coordinates[0]),p=v(h.geometry.coordinates[1])}var d={type:1,geometry:[[Math.round(this.options.extent*(f*o-n)),Math.round(this.options.extent*(p*o-r))]],tags:l},m=void 0;c?m=u.id:this.options.generateId?m=u.index:this.points[u.index].id&&(m=this.points[u.index].id),void 0!==m&&(d.id=m),i.features.push(d)}},f.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(+t,this.options.maxZoom+1))},f.prototype._cluster=function(t,e){for(var n=[],r=this.options,o=r.radius,i=r.extent,a=r.reduce,s=r.minPoints,u=o/(i*Math.pow(2,e)),c=0;c<t.length;c++){var l=t[c];if(!(l.zoom<=e)){l.zoom=e;for(var f=this.trees[e+1],h=f.within(l.x,l.y,u),d=l.numPoints||1,g=d,y=0,v=h;y<v.length;y+=1){var m=v[y],b=f.points[m];b.zoom>e&&(g+=b.numPoints||1)}if(g>d&&g>=s){for(var x=l.x*d,w=l.y*d,E=a&&d>1?this._map(l,!0):null,O=(c<<5)+(e+1)+this.points.length,S=0,C=h;S<C.length;S+=1){var M=C[S],P=f.points[M];if(!(P.zoom<=e)){P.zoom=e;var j=P.numPoints||1;x+=P.x*j,w+=P.y*j,P.parentId=O,a&&(E||(E=this._map(l,!0)),a(E,this._map(P)))}}l.parentId=O,n.push(p(x/g,w/g,O,g,E))}else if(n.push(l),g>1)for(var A=0,k=h;A<k.length;A+=1){var _=k[A],T=f.points[_];T.zoom<=e||(T.zoom=e,n.push(T))}}}return n},f.prototype._getOriginId=function(t){return t-this.points.length>>5},f.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},f.prototype._map=function(t,e){if(t.numPoints)return e?m({},t.properties):t.properties;var n=this.points[t.index].properties,r=this.options.map(n);return e&&r===n?m({},r):r},f}()}({exports:{}}),function(t){t.CLUSTERING_BEGIN="clusteringbegin",t.CLUSTERING_END="clusteringend",t.CLUSTER_CLICK="click"}(rt||(rt={}));const ot={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},it={options(t,e){t.setOptions(e)},position(t,e){t.setPosition(e)},zIndex(t,e){t.setZIndex(e)}};class at extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=null,this.state={infoWindow:null},this.open=(t,e)=>{e?t.open(this.context,e):t.getPosition()?t.open(this.context):i(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")},this.setInfoWindowCallback=()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))}}componentDidMount(){const t=new google.maps.InfoWindow(Object.assign({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=c({updaterMap:it,eventMap:ot,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{infoWindow:t}}),this.setInfoWindowCallback)}componentDidUpdate(t){null!==this.state.infoWindow&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:it,eventMap:ot,prevProps:t,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(u(this.registeredEvents),this.state.infoWindow.close())}render(){return this.containerElement?o.createPortal(r.Children.only(this.props.children),this.containerElement):r.createElement(r.Fragment,null)}}at.contextType=a;const st={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},ut={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},visible(t,e){t.setVisible(e)}};class ct extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={polyline:null},this.setPolylineCallback=()=>{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)}}componentDidMount(){const t=new google.maps.Polyline(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:ut,eventMap:st,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polyline:t}}),this.setPolylineCallback)}componentDidUpdate(t){null!==this.state.polyline&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:ut,eventMap:st,prevProps:t,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),u(this.registeredEvents),this.state.polyline.setMap(null))}render(){return r.createElement(r.Fragment,null)}}ct.contextType=a;const lt={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},ft={draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},path(t,e){t.setPath(e)},paths(t,e){t.setPaths(e)},visible(t,e){t.setVisible(e)}};class pt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={polygon:null},this.setPolygonCallback=()=>{null!==this.state.polygon&&this.props.onLoad&&this.props.onLoad(this.state.polygon)}}componentDidMount(){const t=new google.maps.Polygon(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:ft,eventMap:lt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{polygon:t}}),this.setPolygonCallback)}componentDidUpdate(t){null!==this.state.polygon&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:ft,eventMap:lt,prevProps:t,nextProps:this.props,instance:this.state.polygon}))}componentWillUnmount(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),u(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))}render(){return null}}pt.contextType=a;const ht={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},dt={bounds(t,e){t.setBounds(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},visible(t,e){t.setVisible(e)}};class gt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={rectangle:null},this.setRectangleCallback=()=>{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)}}componentDidMount(){const t=new google.maps.Rectangle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:dt,eventMap:ht,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{rectangle:t}}),this.setRectangleCallback)}componentDidUpdate(t){null!==this.state.rectangle&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:dt,eventMap:ht,prevProps:t,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),u(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return r.createElement(r.Fragment,null)}}gt.contextType=a;const yt={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},vt={center(t,e){t.setCenter(e)},draggable(t,e){t.setDraggable(e)},editable(t,e){t.setEditable(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},radius(t,e){t.setRadius(e)},visible(t,e){t.setVisible(e)}};class mt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={circle:null},this.setCircleCallback=()=>{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)}}componentDidMount(){const t=new google.maps.Circle(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:vt,eventMap:yt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{circle:t}}),this.setCircleCallback)}componentDidUpdate(t){null!==this.state.circle&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:vt,eventMap:yt,prevProps:t,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),u(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))}render(){return r.createElement(r.Fragment,null)}}mt.contextType=a;const bt={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},xt={add(t,e){t.add(e)},addgeojson(t,e,n){t.addGeoJson(e,n)},contains(t,e){t.contains(e)},foreach(t,e){t.forEach(e)},loadgeojson(t,e,n,r){t.loadGeoJson(e,n,r)},overridestyle(t,e,n){t.overrideStyle(e,n)},remove(t,e){t.remove(e)},revertstyle(t,e){t.revertStyle(e)},controlposition(t,e){t.setControlPosition(e)},controls(t,e){t.setControls(e)},drawingmode(t,e){t.setDrawingMode(e)},map(t,e){t.setMap(e)},style(t,e){t.setStyle(e)},togeojson(t,e){t.toGeoJson(e)}};class wt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={data:null},this.setDataCallback=()=>{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)}}componentDidMount(){const t=new google.maps.Data(Object.assign(Object.assign({},this.props.options||{}),{map:this.context}));this.registeredEvents=c({updaterMap:xt,eventMap:bt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{data:t}}),this.setDataCallback)}componentDidUpdate(t){null!==this.state.data&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:xt,eventMap:bt,prevProps:t,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),u(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}wt.contextType=a;const Et={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},Ot={options(t,e){t.setOptions(e)},url(t,e){t.setUrl(e)},zIndex(t,e){t.setZIndex(e)}};class St extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={kmlLayer:null},this.setKmlLayerCallback=()=>{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)}}componentDidMount(){const t=new google.maps.KmlLayer(Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=c({updaterMap:Ot,eventMap:Et,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{kmlLayer:t}}),this.setKmlLayerCallback)}componentDidUpdate(t){null!==this.state.kmlLayer&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Ot,eventMap:Et,prevProps:t,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),u(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}St.contextType=a;const Ct=(t,e)=>new e(t.lat,t.lng),Mt=(t,e)=>new e(new google.maps.LatLng(t.ne.lat,t.ne.lng),new google.maps.LatLng(t.sw.lat,t.sw.lng)),Pt=(t,e,n)=>t instanceof e?t:n(t,e);function jt(t){return t?(t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng))+"":""}function At(t){return t?(t instanceof google.maps.LatLngBounds?t:new google.maps.LatLngBounds(new google.maps.LatLng(t.south,t.east),new google.maps.LatLng(t.north,t.west)))+"":""}class kt extends r.PureComponent{constructor(t){super(t),this.state={paneEl:null,containerStyle:{position:"absolute"}},this.updatePane=()=>{const t=this.props.mapPaneName,e=this.overlayView.getPanes();i(!!t,"OverlayView requires props.mapPaneName but got %s",t),e?this.setState({paneEl:e[t]}):this.setState({paneEl:null})},this.onAdd=()=>{var t,e;this.updatePane(),null===(e=(t=this.props).onLoad)||void 0===e||e.call(t,this.overlayView)},this.onPositionElement=()=>{var t,e;const n=(s=this.overlayView.getProjection(),u=Object.assign({x:0,y:0},this.containerRef.current?(t=this.containerRef.current,"function"==typeof(e=this.props.getPixelPositionOffset)?e(t.offsetWidth,t.offsetHeight):{}):{}),c=this.props.bounds,l=this.props.position,void 0!==c?((t,e,n)=>{const r=t&&t.fromLatLngToDivPixel(n.getNorthEast()),o=t&&t.fromLatLngToDivPixel(n.getSouthWest());return r&&o?{left:`${o.x+e.x}px`,top:`${r.y+e.y}px`,width:r.x-o.x-e.x+"px",height:o.y-r.y-e.y+"px"}:{left:"-9999px",top:"-9999px"}})(s,u,Pt(c,google.maps.LatLngBounds,Mt)):((t,e,n)=>{const r=t&&t.fromLatLngToDivPixel(n);if(r){const{x:t,y:n}=r;return{left:`${t+e.x}px`,top:`${n+e.y}px`}}return{left:"-9999px",top:"-9999px"}})(s,u,Pt(l,google.maps.LatLng,Ct))),{left:r,top:o,width:i,height:a}=this.state.containerStyle;var s,u,c,l,f,p;p={left:r,top:o,width:i,height:a},((f=n).left!==p.left||f.top!==p.top||f.width!==p.height||f.height!==p.height)&&this.setState({containerStyle:Object.assign(Object.assign({},n),{position:"absolute"})})},this.draw=()=>{this.onPositionElement()},this.onRemove=()=>{var t,e;this.setState((()=>({paneEl:null}))),null===(e=(t=this.props).onUnmount)||void 0===e||e.call(t,this.overlayView)},this.containerRef=r.createRef();const e=new google.maps.OverlayView;e.onAdd=this.onAdd,e.draw=this.draw,e.onRemove=this.onRemove,this.overlayView=e}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(t){const e=jt(t.position),n=jt(this.props.position),r=At(t.bounds),o=At(this.props.bounds);e===n&&r===o||this.overlayView.draw(),t.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){const t=this.state.paneEl;return t?o.createPortal(r.createElement("div",{ref:this.containerRef,style:this.state.containerStyle},r.Children.only(this.props.children)),t):null}}kt.FLOAT_PANE="floatPane",kt.MAP_PANE="mapPane",kt.MARKER_LAYER="markerLayer",kt.OVERLAY_LAYER="overlayLayer",kt.OVERLAY_MOUSE_TARGET="overlayMouseTarget",kt.contextType=a;const _t={onDblClick:"dblclick",onClick:"click"},Tt={opacity(t,e){t.setOpacity(e)}};class Dt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={groundOverlay:null},this.setGroundOverlayCallback=()=>{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)}}componentDidMount(){i(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");const t=new google.maps.GroundOverlay(this.props.url,this.props.bounds,Object.assign(Object.assign({},this.props.options),{map:this.context}));this.registeredEvents=c({updaterMap:Tt,eventMap:_t,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{groundOverlay:t}}),this.setGroundOverlayCallback)}componentDidUpdate(t){null!==this.state.groundOverlay&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Tt,eventMap:_t,prevProps:t,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}Dt.defaultProps={onLoad:function(){}},Dt.contextType=a;const It={},Lt={data(t,e){t.setData(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)}};class Nt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={heatmapLayer:null},this.setHeatmapLayerCallback=()=>{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)}}componentDidMount(){i(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),i(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);const t=new google.maps.visualization.HeatmapLayer(Object.assign(Object.assign({},this.props.options||{}),{data:this.props.data,map:this.context}));this.registeredEvents=c({updaterMap:Lt,eventMap:It,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{heatmapLayer:t}}),this.setHeatmapLayerCallback)}componentDidUpdate(t){u(this.registeredEvents),this.registeredEvents=c({updaterMap:Lt,eventMap:It,prevProps:t,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),u(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}Nt.contextType=a;const Rt={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},Bt={register(t,e,n){t.registerPanoProvider(e,n)},links(t,e){t.setLinks(e)},motionTracking(t,e){t.setMotionTracking(e)},options(t,e){t.setOptions(e)},pano(t,e){t.setPano(e)},position(t,e){t.setPosition(e)},pov(t,e){t.setPov(e)},visible(t,e){t.setVisible(e)},zoom(t,e){t.setZoom(e)}};class Ft extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={streetViewPanorama:null},this.setStreetViewPanoramaCallback=()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)}}componentDidMount(){const t=this.context.getStreetView();this.registeredEvents=c({updaterMap:Bt,eventMap:Rt,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{streetViewPanorama:t}}),this.setStreetViewPanoramaCallback)}componentDidUpdate(t){null!==this.state.streetViewPanorama&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Bt,eventMap:Rt,prevProps:t,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),u(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}Ft.contextType=a;class zt extends r.PureComponent{constructor(){super(...arguments),this.state={streetViewService:null},this.setStreetViewServiceCallback=()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)}}componentDidMount(){const t=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:t}}),this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}zt.contextType=a,r.PureComponent;const Ut={onDirectionsChanged:"directions_changed"},Wt={directions(t,e){t.setDirections(e)},map(t,e){t.setMap(e)},options(t,e){t.setOptions(e)},panel(t,e){t.setPanel(e)},routeIndex(t,e){t.setRouteIndex(e)}};class qt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.state={directionsRenderer:null},this.setDirectionsRendererCallback=()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))}}componentDidMount(){const t=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=c({updaterMap:Wt,eventMap:Ut,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{directionsRenderer:t}}),this.setDirectionsRendererCallback)}componentDidUpdate(t){null!==this.state.directionsRenderer&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Wt,eventMap:Ut,prevProps:t,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),u(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return r.createElement(r.Fragment,null)}}qt.contextType=a,r.PureComponent;const Ht={onPlacesChanged:"places_changed"},Zt={bounds(t,e){t.setBounds(e)}};class $t extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=r.createRef(),this.state={searchBox:null},this.setSearchBoxCallback=()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)}}componentDidMount(){if(i(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){const t=this.containerElement.current.querySelector("input");if(null!==t){const e=new google.maps.places.SearchBox(t,this.props.options);this.registeredEvents=c({updaterMap:Zt,eventMap:Ht,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{searchBox:e}}),this.setSearchBoxCallback)}}}componentDidUpdate(t){null!==this.state.searchBox&&(u(this.registeredEvents),this.registeredEvents=c({updaterMap:Zt,eventMap:Ht,prevProps:t,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),u(this.registeredEvents))}render(){return r.createElement("div",{ref:this.containerElement},r.Children.only(this.props.children))}}$t.contextType=a;const Vt={onPlaceChanged:"place_changed"},Gt={bounds(t,e){t.setBounds(e)},restrictions(t,e){t.setComponentRestrictions(e)},fields(t,e){t.setFields(e)},options(t,e){t.setOptions(e)},types(t,e){t.setTypes(e)}};class Yt extends r.PureComponent{constructor(){super(...arguments),this.registeredEvents=[],this.containerElement=r.createRef(),this.state={autocomplete:null},this.setAutocompleteCallback=()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)}}componentDidMount(){i(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);const t=this.containerElement.current.querySelector("input");if(t){const e=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=c({updaterMap:Gt,eventMap:Vt,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{autocomplete:e}}),this.setAutocompleteCallback)}}componentDidUpdate(t){u(this.registeredEvents),this.registeredEvents=c({updaterMap:Gt,eventMap:Vt,prevProps:t,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&u(this.registeredEvents)}render(){return r.createElement("div",{ref:this.containerElement,className:this.props.className||""},r.Children.only(this.props.children))}}Yt.contextType=a},33316:(t,e,n)=>{"use strict";n.d(e,{A:()=>I,B:()=>v,C:()=>N,D:()=>x,E:()=>c,F:()=>B,G:()=>Z,H:()=>_,I:()=>G,J:()=>F,K:()=>Y,L:()=>tt,M:()=>nt,N:()=>Q,O:()=>it,P:()=>D,Q:()=>ot,R:()=>L,S:()=>U,T:()=>T,Y:()=>X,_:()=>K,a:()=>R,a2:()=>et,a3:()=>rt,b:()=>z,d:()=>W,e:()=>k,f:()=>q,g:()=>H,h:()=>$,i:()=>m,j:()=>C,k:()=>s,l:()=>S,m:()=>b,n:()=>A,o:()=>h,p:()=>l,q:()=>y,r:()=>p,s:()=>O,t:()=>u,u:()=>f,v:()=>M,y:()=>E,z:()=>w});var r=n(23143),o=n(7896),i=n(83594);const a=function(t,e){var n;void 0===e&&(e=!0);var o=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,t),e)}));return o[r.n1]=function(){clearTimeout(n)},o};var s=function(){return function(){return true}}(),u=function(){},c=function(t){return t};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var l=function(t,e){(0,o.Z)(t,e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach((function(n){t[n]=e[n]}))},f=function(t,e){var n;return(n=[]).concat.apply(n,e.map(t))};function p(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}function h(t){var e=!1;return function(){e||(e=!0,t())}}var d=function(t){throw t},g=function(t){return{value:t,done:!0}};function y(t,e,n){void 0===e&&(e=d),void 0===n&&(n="iterator");var r={meta:{name:n},next:t,throw:e,return:g,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function v(t,e){var n=e.sagaStack;console.error(t),console.error(n)}var m=function(t){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+t+"\n")},b=function(t){return Array.apply(null,new Array(t))},x=function(t){return function(e){return t(Object.defineProperty(e,r.Nm,{value:!0}))}},w=function(t){return t===r.EO},E=function(t){return t===r.Wd},O=function(t){return w(t)||E(t)};function S(t,e){var n,r=Object.keys(t),o=r.length,a=0,s=(0,i.IX)(t)?b(o):{},c={};return r.forEach((function(t){var r=function(r,i){n||(i||O(r)?(e.cancel(),e(r,i)):(s[t]=r,++a===o&&(n=!0,e(s))))};r.cancel=u,c[t]=r})),e.cancel=function(){n||(n=!0,r.forEach((function(t){return c[t].cancel()})))},c}function C(t){return{name:t.name||"anonymous",location:M(t)}}function M(t){return t[r.b_]}var P={isEmpty:s,put:u,take:u};function j(t,e){void 0===t&&(t=10);var n=new Array(t),r=0,o=0,i=0,a=function(e){n[o]=e,o=(o+1)%t,r++},s=function(){if(0!=r){var e=n[i];return n[i]=null,r--,i=(i+1)%t,e}},u=function(){for(var t=[];r;)t.push(s());return t};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<t)a(s);else switch(e){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%t;break;case 4:c=2*t,n=u(),r=n.length,o=n.length,i=0,n.length=c,t=c,a(s)}},take:s,flush:u}}var A=function(){return P},k=function(t){return j(t,4)},_=Object.freeze({__proto__:null,none:A,fixed:function(t){return j(t,1)},dropping:function(t){return j(t,2)},sliding:function(t){return j(t,3)},expanding:k}),T="TAKE",D="PUT",I="ALL",L="RACE",N="CALL",R="CPS",B="FORK",F="JOIN",z="CANCEL",U="SELECT",W="ACTION_CHANNEL",q="CANCELLED",H="FLUSH",Z="GET_CONTEXT",$="SET_CONTEXT",V=function(t,e){var n;return(n={})[r.IO]=!0,n.combinator=!1,n.type=t,n.payload=e,n},G=function(t){return V(B,(0,o.Z)({},t.payload,{detached:!0}))};function Y(t,e){return void 0===t&&(t="*"),(0,i.uj)(t)?((0,i.d5)(e)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),V(T,{pattern:t})):(0,i.Om)(t)&&(0,i.d5)(e)&&(0,i.uj)(e)?V(T,{channel:t,pattern:e}):(0,i.CE)(t)?((0,i.d5)(e)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),V(T,{channel:t})):void 0}function X(t,e){return(0,i.sR)(e)&&(e=t,t=void 0),V(D,{channel:t,action:e})}function K(t){var e=V(I,t);return e.combinator=!0,e}function J(t,e){var n,r=null;return(0,i.Yl)(t)?n=t:((0,i.IX)(t)?(r=t[0],n=t[1]):(r=t.context,n=t.fn),r&&(0,i.Z_)(n)&&(0,i.Yl)(r[n])&&(n=r[n])),{context:r,fn:n,args:e}}function Q(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return V(N,J(t,n))}function tt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return V(B,J(t,n))}function et(t){return V(F,t)}function nt(t){return void 0===t&&(t=r.sC),V(z,t)}function rt(t){void 0===t&&(t=c);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return V(U,{selector:t,args:n})}function ot(t,e){return V(W,{pattern:t,buffer:e})}var it=Q.bind(null,a)},83594:(t,e,n)=>{"use strict";n.d(e,{IX:()=>u,CE:()=>p,Yl:()=>a,hZ:()=>l,Om:()=>g,d5:()=>i,uj:()=>f,MC:()=>c,Z_:()=>s,eR:()=>h,NA:()=>d,sR:()=>o});var r=n(23143),o=function(t){return null==t},i=function(t){return null!=t},a=function(t){return"function"==typeof t},s=function(t){return"string"==typeof t},u=Array.isArray,c=function(t){return t&&a(t.then)},l=function(t){return t&&a(t.next)&&a(t.throw)},f=function t(e){return e&&(s(e)||d(e)||a(e)||u(e)&&e.every(t))},p=function(t){return t&&a(t.take)&&a(t.close)},h=function(t){return a(t)&&t.hasOwnProperty("toString")},d=function(t){return Boolean(t)&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype},g=function(t){return p(t)&&t[r.AS]}},23143:(t,e,n)=>{"use strict";n.d(e,{n1:()=>o,sZ:()=>i,IO:()=>a,uq:()=>s,AS:()=>u,Nm:()=>c,b_:()=>d,sC:()=>l,Cs:()=>f,Wd:()=>p,EO:()=>h});var r=function(t){return"@@redux-saga/"+t},o=r("CANCEL_PROMISE"),i=r("CHANNEL_END"),a=r("IO"),s=r("MATCH"),u=r("MULTICAST"),c=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),f=r("TASK"),p=r("TASK_CANCEL"),h=r("TERMINATE"),d=r("LOCATION")},17374:function(t,e,n){var r;!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,u="[DecimalError] ",c=u+"Invalid argument: ",l=u+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=1e7,g=7,y=9007199254740991,v=f(y/g),m={};function b(t,e){var n,r,o,i,a,u,c,l,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),s?A(e,p):e;if(c=t.d,l=e.d,a=t.e,o=e.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,u=l.length):(r=l,o=a,u=c.length),i>(u=(a=Math.ceil(p/g))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=c.length)-(i=l.length)<0&&(i=u,r=l,l=c,c=r),n=0;i;)n=(c[--i]=c[i]+l[i]+n)/d|0,c[i]%=d;for(n&&(c.unshift(n),++o),u=c.length;0==c[--u];)c.pop();return e.d=c,e.e=o,s?A(e,p):e}function x(t,e,n){if(t!==~~t||t<e||t>n)throw Error(c+t)}function w(t){var e,n,r,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)r=t[e]+"",(n=g-r.length)&&(i+=M(n)),i+=r;a=t[e],(n=g-(r=a+"").length)&&(i+=M(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}m.absoluteValue=m.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},m.comparedTo=m.cmp=function(t){var e,n,r,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,n=(r=i.d.length)<(o=t.d.length)?r:o;e<n;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},m.decimalPlaces=m.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*g;if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},m.dividedBy=m.div=function(t){return E(this,new this.constructor(t))},m.dividedToIntegerBy=m.idiv=function(t){var e=this.constructor;return A(E(this,new e(t),0,1),e.precision)},m.equals=m.eq=function(t){return!this.cmp(t)},m.exponent=function(){return S(this)},m.greaterThan=m.gt=function(t){return this.cmp(t)>0},m.greaterThanOrEqualTo=m.gte=function(t){return this.cmp(t)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(t){return this.cmp(t)<0},m.lessThanOrEqualTo=m.lte=function(t){return this.cmp(t)<1},m.logarithm=m.log=function(t){var e,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(o))throw Error(u+"NaN");if(n.s<1)throw Error(u+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(s=!1,e=E(P(n,a),P(t,a),a),s=!0,A(e,i))},m.minus=m.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?k(e,t):b(e,(t.s=-t.s,t))},m.modulo=m.mod=function(t){var e,n=this,r=n.constructor,o=r.precision;if(!(t=new r(t)).s)throw Error(u+"NaN");return n.s?(s=!1,e=E(n,t,0,1).times(t),s=!0,n.minus(e)):A(new r(n),o)},m.naturalExponential=m.exp=function(){return O(this)},m.naturalLogarithm=m.ln=function(){return P(this)},m.negated=m.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},m.plus=m.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?b(e,t):k(e,(t.s=-t.s,t))},m.precision=m.sd=function(t){var e,n,r,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(c+t);if(e=S(o)+1,n=(r=o.d.length-1)*g+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},m.squareRoot=m.sqrt=function(){var t,e,n,r,o,i,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(u+"NaN")}for(t=S(c),s=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=w(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),r=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(o.toString()),o=a=(n=l.precision)+3;;)if(r=(i=r).plus(E(c,i,a+2)).times(.5),w(i.d).slice(0,a)===(e=w(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(A(i,n+1,0),i.times(i).eq(c)){r=i;break}}else if("9999"!=e)break;a+=4}return s=!0,A(r,n)},m.times=m.mul=function(t){var e,n,r,o,i,a,u,c,l,f=this,p=f.constructor,h=f.d,g=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,n=f.e+t.e,(c=h.length)<(l=g.length)&&(i=h,h=g,g=i,a=c,c=l,l=a),i=[],r=a=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(e=0,o=c+r;o>r;)u=i[o]+g[r]*h[o-r-1]+e,i[o--]=u%d|0,e=u/d|0;i[o]=(i[o]+e)%d|0}for(;!i[--a];)i.pop();return e?++n:i.shift(),t.d=i,t.e=n,s?A(t,p.precision):t},m.toDecimalPlaces=m.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(x(t,0,i),void 0===e?e=r.rounding:x(e,0,8),A(n,t+S(n)+1,e))},m.toExponential=function(t,e){var n,r=this,o=r.constructor;return void 0===t?n=_(r,!0):(x(t,0,i),void 0===e?e=o.rounding:x(e,0,8),n=_(r=A(new o(r),t+1,e),!0,t+1)),n},m.toFixed=function(t,e){var n,r,o=this,a=o.constructor;return void 0===t?_(o):(x(t,0,i),void 0===e?e=a.rounding:x(e,0,8),n=_((r=A(new a(o),t+S(o)+1,e)).abs(),!1,t+S(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},m.toInteger=m.toint=function(){var t=this,e=t.constructor;return A(new e(t),S(t)+1,e.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(t){var e,n,r,i,a,c,l=this,p=l.constructor,h=+(t=new p(t));if(!t.s)return new p(o);if(!(l=new p(l)).s){if(t.s<1)throw Error(u+"Infinity");return l}if(l.eq(o))return l;if(r=p.precision,t.eq(o))return A(l,r);if(c=(e=t.e)>=(n=t.d.length-1),a=l.s,c){if((n=h<0?-h:h)<=y){for(i=new p(o),e=Math.ceil(r/g+4),s=!1;n%2&&T((i=i.times(l)).d,e),0!==(n=f(n/2));)T((l=l.times(l)).d,e);return s=!0,t.s<0?new p(o).div(i):A(i,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,l.s=1,s=!1,i=t.times(P(l,r+12)),s=!0,(i=O(i)).s=a,i},m.toPrecision=function(t,e){var n,r,o=this,a=o.constructor;return void 0===t?r=_(o,(n=S(o))<=a.toExpNeg||n>=a.toExpPos):(x(t,1,i),void 0===e?e=a.rounding:x(e,0,8),r=_(o=A(new a(o),t,e),t<=(n=S(o))||n<=a.toExpNeg,t)),r},m.toSignificantDigits=m.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(x(t,1,i),void 0===e?e=n.rounding:x(e,0,8)),A(new n(this),t,e)},m.toString=m.valueOf=m.val=m.toJSON=function(){var t=this,e=S(t),n=t.constructor;return _(t,e<=n.toExpNeg||e>=n.toExpPos)};var E=function(){function t(t,e){var n,r=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+r,t[o]=n%d|0,r=n/d|0;return r&&t.unshift(r),t}function e(t,e,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*d+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,o,i,a){var s,c,l,f,p,h,y,v,m,b,x,w,E,O,C,M,P,j,k=r.constructor,_=r.s==o.s?1:-1,T=r.d,D=o.d;if(!r.s)return new k(r);if(!o.s)throw Error(u+"Division by zero");for(c=r.e-o.e,P=D.length,C=T.length,v=(y=new k(_)).d=[],l=0;D[l]==(T[l]||0);)++l;if(D[l]>(T[l]||0)&&--c,(w=null==i?i=k.precision:a?i+(S(r)-S(o))+1:i)<0)return new k(0);if(w=w/g+2|0,l=0,1==P)for(f=0,D=D[0],w++;(l<C||f)&&w--;l++)E=f*d+(T[l]||0),v[l]=E/D|0,f=E%D|0;else{for((f=d/(D[0]+1)|0)>1&&(D=t(D,f),T=t(T,f),P=D.length,C=T.length),O=P,b=(m=T.slice(0,P)).length;b<P;)m[b++]=0;(j=D.slice()).unshift(0),M=D[0],D[1]>=d/2&&++M;do{f=0,(s=e(D,m,P,b))<0?(x=m[0],P!=b&&(x=x*d+(m[1]||0)),(f=x/M|0)>1?(f>=d&&(f=d-1),1==(s=e(p=t(D,f),m,h=p.length,b=m.length))&&(f--,n(p,P<h?j:D,h))):(0==f&&(s=f=1),p=D.slice()),(h=p.length)<b&&p.unshift(0),n(m,p,b),-1==s&&(s=e(D,m,P,b=m.length))<1&&(f++,n(m,P<b?j:D,b)),b=m.length):0===s&&(f++,m=[0]),v[l++]=f,s&&m[0]?m[b++]=T[O]||0:(m=[T[O]],b=1)}while((O++<C||void 0!==m[0])&&w--)}return v[0]||v.shift(),y.e=c,A(y,a?i+S(y)+1:i)}}();function O(t,e){var n,r,i,a,u,c=0,f=0,h=t.constructor,d=h.precision;if(S(t)>16)throw Error(l+S(t));if(!t.s)return new h(o);for(null==e?(s=!1,u=d):u=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=u;;){if(r=A(r.times(t),u),n=n.times(++c),w((a=i.plus(E(r,n,u))).d).slice(0,u)===w(i.d).slice(0,u)){for(;f--;)i=A(i.times(i),u);return h.precision=d,null==e?(s=!0,A(i,d)):i}i=a}}function S(t){for(var e=t.e*g,n=t.d[0];n>=10;n/=10)e++;return e}function C(t,e,n){if(e>t.LN10.sd())throw s=!0,n&&(t.precision=n),Error(u+"LN10 precision limit exceeded");return A(new t(t.LN10),e)}function M(t){for(var e="";t--;)e+="0";return e}function P(t,e){var n,r,i,a,c,l,f,p,h,d=1,g=t,y=g.d,v=g.constructor,m=v.precision;if(g.s<1)throw Error(u+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new v(0);if(null==e?(s=!1,p=m):p=e,g.eq(10))return null==e&&(s=!0),C(v,p);if(p+=10,v.precision=p,r=(n=w(y)).charAt(0),a=S(g),!(Math.abs(a)<15e14))return f=C(v,p+2,m).times(a+""),g=P(new v(r+"."+n.slice(1)),p-10).plus(f),v.precision=m,null==e?(s=!0,A(g,m)):g;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((g=g.times(t)).d)).charAt(0),d++;for(a=S(g),r>1?(g=new v("0."+n),a++):g=new v(r+"."+n.slice(1)),l=c=g=E(g.minus(o),g.plus(o),p),h=A(g.times(g),p),i=3;;){if(c=A(c.times(h),p),w((f=l.plus(E(c,new v(i),p))).d).slice(0,p)===w(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(C(v,p+2,m).times(a+""))),l=E(l,new v(d),p),v.precision=m,null==e?(s=!0,A(l,m)):l;l=f,i+=2}}function j(t,e){var n,r,o;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(r,o)){if(o-=r,n=n-r-1,t.e=f(n/g),t.d=[],r=(n+1)%g,n<0&&(r+=g),r<o){for(r&&t.d.push(+e.slice(0,r)),o-=g;r<o;)t.d.push(+e.slice(r,r+=g));e=e.slice(r),r=g-e.length}else r-=o;for(;r--;)e+="0";if(t.d.push(+e),s&&(t.e>v||t.e<-v))throw Error(l+n)}else t.s=0,t.e=0,t.d=[0];return t}function A(t,e,n){var r,o,i,a,u,c,h,y,m=t.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((r=e-a)<0)r+=g,o=e,h=m[y=0];else{if((y=Math.ceil((r+1)/g))>=(i=m.length))return t;for(h=i=m[y],a=1;i>=10;i/=10)a++;o=(r%=g)-g+a}if(void 0!==n&&(u=h/(i=p(10,a-o-1))%10|0,c=e<0||void 0!==m[y+1]||h%i,c=n<4?(u||c)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||c||6==n&&(r>0?o>0?h/p(10,a-o):0:m[y-1])%10&1||n==(t.s<0?8:7))),e<1||!m[0])return c?(i=S(t),m.length=1,e=e-i-1,m[0]=p(10,(g-e%g)%g),t.e=f(-e/g)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==r?(m.length=y,i=1,y--):(m.length=y+1,i=p(10,g-r),m[y]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),c)for(;;){if(0==y){(m[0]+=i)==d&&(m[0]=1,++t.e);break}if(m[y]+=i,m[y]!=d)break;m[y--]=0,i=1}for(r=m.length;0===m[--r];)m.pop();if(s&&(t.e>v||t.e<-v))throw Error(l+S(t));return t}function k(t,e){var n,r,o,i,a,u,c,l,f,p,h=t.constructor,y=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),s?A(e,y):e;if(c=t.d,p=e.d,r=e.e,l=t.e,c=c.slice(),a=l-r){for((f=a<0)?(n=c,a=-a,u=p.length):(n=p,r=l,u=c.length),a>(o=Math.max(Math.ceil(y/g),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=c.length)<(u=p.length))&&(u=o),o=0;o<u;o++)if(c[o]!=p[o]){f=c[o]<p[o];break}a=0}for(f&&(n=c,c=p,p=n,e.s=-e.s),u=c.length,o=p.length-u;o>0;--o)c[u++]=0;for(o=p.length;o>a;){if(c[--o]<p[o]){for(i=o;i&&0===c[--i];)c[i]=d-1;--c[i],c[o]+=d}c[o]-=p[o]}for(;0===c[--u];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=r,s?A(e,y):e):new h(0)}function _(t,e,n){var r,o=S(t),i=w(t.d),a=i.length;return e?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+M(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+M(-o-1)+i,n&&(r=n-a)>0&&(i+=M(r))):o>=a?(i+=M(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+M(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=M(r))),t.s<0?"-"+i:i}function T(t,e){if(t.length>e)return t.length=e,!0}function D(t){if(!t||"object"!=typeof t)throw Error(u+"Object expected");var e,n,r,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(r=t[n=o[e]])){if(!(f(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}(a=function t(e){var n,r,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(c+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):j(e,t.toString())}if("string"!=typeof t)throw Error(c+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!h.test(t))throw Error(c+t);j(e,t)}if(i.prototype=m,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=D,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)e.hasOwnProperty(r=o[n++])||(e[r]=this[r]);return i.config(e),i}(a)).default=a.Decimal=a,o=new a(1),void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()},69448:()=>{var t;"function"!=typeof(t=window.Element.prototype).matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){for(var e=this,n=(e.document||e.ownerDocument).querySelectorAll(t),r=0;n[r]&&n[r]!==e;)++r;return Boolean(n[r])}),"function"!=typeof t.closest&&(t.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})},10161:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,o,i,a){var s=n?n+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,o),!0;case 5:return l.fn.call(l.context,e,r,o,i),!0;case 6:return l.fn.call(l.context,e,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,n){return i(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return i(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,o){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==e||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s},47677:t=>{"use strict";t.exports=function(t,e,n,r,o,i,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(u=new Error(e.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},77603:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},38333:(t,e,n)=>{var r=n(77832);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},34893:t=>{t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},50217:t=>{t.exports=function(t){return t.split("")}},50080:(t,e,n)=>{var r=n(24303);t.exports=function(t,e){var n=!0;return r(t,(function(t,r,o){return n=!!e(t,r,o)})),n}},2229:(t,e,n)=>{var r=n(4795);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],s=e(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,c=a}return c}},21359:t=>{t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},84134:t=>{t.exports=function(t,e){return t>e}},77832:(t,e,n)=>{var r=n(21359),o=n(22195),i=n(66024);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},22195:t=>{t.exports=function(t){return t!=t}},17606:t=>{t.exports=function(t,e){return t<e}},93401:(t,e,n)=>{var r=n(24303),o=n(67878);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}},23813:(t,e,n)=>{var r=n(50343),o=n(13324),i=n(68286),a=n(93401),s=n(27095),u=n(47826),c=n(18477),l=n(23059),f=n(86152);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[l];var p=-1;e=r(e,u(i));var h=a(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++p,value:t}}));return s(h,(function(t,e){return c(t,e,n)}))}},36060:(t,e,n)=>{var r=n(23059),o=n(43114),i=n(75251);t.exports=function(t,e){return i(o(t,e,r),t+"")}},39872:t=>{t.exports=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},4751:(t,e,n)=>{var r=n(24303);t.exports=function(t,e){var n;return r(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}},27095:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},67326:(t,e,n)=>{var r=n(45386),o=n(38333),i=n(34893),a=n(59950),s=n(78803),u=n(16909);t.exports=function(t,e,n){var c=-1,l=o,f=t.length,p=!0,h=[],d=h;if(n)p=!1,l=i;else if(f>=200){var g=e?null:s(t);if(g)return u(g);p=!1,l=a,d=new r}else d=e?[]:h;t:for(;++c<f;){var y=t[c],v=e?e(y):y;if(y=n||0!==y?y:0,p&&v==v){for(var m=d.length;m--;)if(d[m]===v)continue t;e&&d.push(v),h.push(y)}else l(d,v,n)||(d!==h&&d.push(v),h.push(y))}return h}},23895:(t,e,n)=>{var r=n(39872);t.exports=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:r(t,e,n)}},27520:(t,e,n)=>{var r=n(4795);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),s=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!l&&t<e||l&&n&&i&&!o&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}},18477:(t,e,n)=>{var r=n(27520);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,s=i.length,u=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=u?c:c*("desc"==n[o]?-1:1)}return t.index-e.index}},83126:(t,e,n)=>{var r=n(23895),o=n(33880),i=n(8435),a=n(66188);t.exports=function(t){return function(e){e=a(e);var n=o(e)?i(e):void 0,s=n?n[0]:e.charAt(0),u=n?r(n,1).join(""):e.slice(1);return s[t]()+u}}},98776:(t,e,n)=>{var r=n(68286),o=n(67878),i=n(90249);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!o(e)){var u=r(n,3);e=i(e),n=function(t){return u(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[u?e[c]:c]:void 0}}},78803:(t,e,n)=>{var r=n(2143),o=n(34291),i=n(16909),a=r&&1/i(new r([,-0]))[1]==1/0?function(t){return new r(t)}:o;t.exports=a},47353:(t,e,n)=>{var r=n(60241)(Object.getPrototypeOf,Object);t.exports=r},33880:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},66024:t=>{t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},8435:(t,e,n)=>{var r=n(50217),o=n(33880),i=n(63344);t.exports=function(t){return o(t)?i(t):r(t)}},63344:t=>{var e="\\ud800-\\udfff",n="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",l=c+u+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+u+")*",f="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+l,"g");t.exports=function(t){return t.match(p)||[]}},39794:(t,e,n)=>{var r=n(77603),o=n(50080),i=n(68286),a=n(86152),s=n(82406);t.exports=function(t,e,n){var u=a(t)?r:o;return n&&s(t,e,n)&&(e=void 0),u(t,i(e,3))}},55281:(t,e,n)=>{var r=n(98776)(n(12982));t.exports=r},12982:(t,e,n)=>{var r=n(21359),o=n(68286),i=n(38101),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:i(n);return u<0&&(u=a(s+u,0)),r(t,o(e,3),u)}},35838:(t,e,n)=>{var r=n(62034),o=n(16760);t.exports=function(t,e){return r(o(t,e),1)}},4335:(t,e,n)=>{var r=n(53366),o=n(15125);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==r(t)}},16951:(t,e,n)=>{var r=n(80537);t.exports=function(t){return r(t)&&t!=+t}},80537:(t,e,n)=>{var r=n(53366),o=n(15125);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},97030:(t,e,n)=>{var r=n(53366),o=n(47353),i=n(15125),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},85505:(t,e,n)=>{var r=n(53366),o=n(86152),i=n(15125);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},16760:(t,e,n)=>{var r=n(50343),o=n(68286),i=n(93401),a=n(86152);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},34519:(t,e,n)=>{var r=n(13940),o=n(26548),i=n(68286);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},71644:(t,e,n)=>{var r=n(2229),o=n(84134),i=n(23059);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},71130:(t,e,n)=>{var r=n(2229),o=n(17606),i=n(23059);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},34291:t=>{t.exports=function(){}},51525:(t,e,n)=>{var r=n(87064),o=n(68286),i=n(4751),a=n(86152),s=n(82406);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),u(t,o(e,3))}},829:(t,e,n)=>{var r=n(62034),o=n(23813),i=n(36060),a=n(82406),s=i((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])}));t.exports=s},38101:(t,e,n)=>{var r=n(5707);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},84636:(t,e,n)=>{var r=n(68286),o=n(67326);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):[]}},23779:(t,e,n)=>{var r=n(83126)("toUpperCase");t.exports=r},51095:function(t,e,n){!function(t,e){"use strict";function n(t){return"string"==typeof t||"number"==typeof t}var r=function(){function t(){this._cache={}}var e=t.prototype;return e.set=function(t,e){this._cache[t]=e},e.get=function(t){return this._cache[t]},e.remove=function(t){delete this._cache[t]},e.clear=function(){this._cache={}},e.isValidCacheKey=function(t){return n(t)},t}(),o=r,i=function(){return!0};function a(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(t,r){if("function"==typeof r)throw new Error('[re-reselect] Second argument "options" must be an object. Please use "options.selectorCreator" to provide a custom selectorCreator.');var a={};"function"==typeof t?Object.assign(a,r,{keySelector:t}):Object.assign(a,t);var s=0,u=n.pop(),c=Array.isArray(n[0])?n[0]:[].concat(n);n.push((function(){return s++,u.apply(void 0,arguments)}));var l=a.cacheObject||new o,f=a.selectorCreator||e.createSelector,p=l.isValidCacheKey||i;a.keySelectorCreator&&(a.keySelector=a.keySelectorCreator({keySelector:a.keySelector,inputSelectors:c,resultFunc:u}));var h=function(){var t=a.keySelector.apply(a,arguments);if(p(t)){var e=l.get(t);return void 0===e&&(e=f.apply(void 0,n),l.set(t,e)),e.apply(void 0,arguments)}console.warn('[re-reselect] Invalid cache key "'+t+'" has been returned by keySelector function.')};return h.getMatchingSelector=function(){var t=a.keySelector.apply(a,arguments);return l.get(t)},h.removeMatchingSelector=function(){var t=a.keySelector.apply(a,arguments);l.remove(t)},h.clearCache=function(){l.clear()},h.resultFunc=u,h.dependencies=c,h.cache=l,h.recomputations=function(){return s},h.resetRecomputations=function(){return s=0},h.keySelector=a.keySelector,h}}function s(t){if(void 0===t)throw new Error('Missing the required property "cacheSize".');if(!Number.isInteger(t)||t<=0)throw new Error('The "cacheSize" property must be a positive integer value.')}var u=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;s(e),this._cache={},this._cacheOrdering=[],this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache[t]=e,this._cacheOrdering.push(t),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},e.get=function(t){return this._cache[t]},e.remove=function(t){var e=this._cacheOrdering.indexOf(t);e>-1&&this._cacheOrdering.splice(e,1),delete this._cache[t]},e.clear=function(){this._cache={},this._cacheOrdering=[]},e.isValidCacheKey=function(t){return n(t)},t}(),c=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;s(e),this._cache={},this._cacheOrdering=[],this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache[t]=e,this._registerCacheHit(t),this._cacheOrdering.length>this._cacheSize){var n=this._cacheOrdering[0];this.remove(n)}},e.get=function(t){return this._registerCacheHit(t),this._cache[t]},e.remove=function(t){this._deleteCacheHit(t),delete this._cache[t]},e.clear=function(){this._cache={},this._cacheOrdering=[]},e._registerCacheHit=function(t){this._deleteCacheHit(t),this._cacheOrdering.push(t)},e._deleteCacheHit=function(t){var e=this._cacheOrdering.indexOf(t);e>-1&&this._cacheOrdering.splice(e,1)},e.isValidCacheKey=function(t){return n(t)},t}(),l=function(){function t(){this._cache=new Map}var e=t.prototype;return e.set=function(t,e){this._cache.set(t,e)},e.get=function(t){return this._cache.get(t)},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}(),f=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;s(e),this._cache=new Map,this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache.set(t,e),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},e.get=function(t){return this._cache.get(t)},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}(),p=function(){function t(t){var e=(void 0===t?{}:t).cacheSize;s(e),this._cache=new Map,this._cacheSize=e}var e=t.prototype;return e.set=function(t,e){if(this._cache.set(t,e),this._cache.size>this._cacheSize){var n=this._cache.keys().next().value;this.remove(n)}},e.get=function(t){var e=this._cache.get(t);return this._cache.has(t)&&(this.remove(t),this._cache.set(t,e)),e},e.remove=function(t){this._cache.delete(t)},e.clear=function(){this._cache.clear()},t}();t.FifoCacheObject=u,t.FifoMapCache=f,t.FifoObjectCache=u,t.FlatCacheObject=r,t.FlatMapCache=l,t.FlatObjectCache=r,t.LruCacheObject=p,t.LruMapCache=p,t.LruObjectCache=c,t.createStructuredCachedSelector=function(t){return e.createStructuredSelector(t,a)},t.default=a,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(97698))},98018:(t,e,n)=>{"use strict";var r=n(71600),o=n(67425);e.ZP=void 0;var i=r(n(53100)),a=r(n(98870)),s=r(n(85297)),u=r(n(68230)),c=r(n(60421)),l=r(n(1147)),f=r(n(26290)),p=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=x(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=i?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(8156)),h=n(80901),d=r(n(1230)),g=r(n(6496)),y=r(n(95099)),v=r(n(80835)),m=r(n(97339)),b=r(n(78310));function x(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(x=function(t){return t?n:e})(t)}var w=n(34841).deepPurple[500],E=function(t){(0,u.default)(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,l.default)(e);if(n){var o=(0,l.default)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,c.default)(this,t)});function o(){var t;(0,i.default)(this,o);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t=r.call.apply(r,[this].concat(n)),(0,f.default)((0,s.default)(t),"buildUrl",(function(e){var n=t.props.storagePath;return e?e.startsWith("http:")||e.startsWith("https:")?e:n+e.replace(/^\/+/,""):""})),(0,f.default)((0,s.default)(t),"getFallbackAvatar",(function(){var e=t.props,n=e.entityType,r=e.classes,o=e.backgroundColor,i=e.color,a=e.className,s=(0,v.default)(n);return p.default.createElement(h.Avatar,{className:(0,b.default)(a,r.avatar),style:{border:"2px solid ".concat(n.typeColor||w),backgroundColor:o||n.typeColor||w,color:i}},s&&s.charAt(0)||p.default.createElement(g.default,null))})),t}return(0,a.default)(o,[{key:"render",value:function(){var t=this.props,e=t.entityType,n=t.classes,r=t.className,o=e.typeIcon||e.typeImage;return o?p.default.createElement(h.Avatar,{className:(0,b.default)(r,n.avatar),style:{border:"2px solid ".concat(e.typeColor||w),backgroundColor:"#FFFFFF"},src:this.buildUrl(o)},this.getFallbackAvatar()):this.getFallbackAvatar()}}]),o}(p.PureComponent);(0,f.default)(E,"propTypes",{entityType:y.default.shape({typeColor:y.default.string,typeIcon:y.default.string,typeImage:y.default.string,label:y.default.string,uri:y.default.string}),className:y.default.string,classes:y.default.shape({avatar:y.default.string}),storagePath:y.default.string,backgroundColor:y.default.string,color:y.default.string}),(0,f.default)(E,"defaultProps",{storagePath:"https://reltio-images.s3.amazonaws.com/api/",entityType:{},color:"#FFFFFF"});var O=(0,d.default)(m.default)(E);e.ZP=O},97339:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={avatar:{"& img":{display:"flex",flexDirection:"row",alignItems:"center","&::before":{width:"100%"}}}}},33788:(t,e,n)=>{"use strict";var r=n(71600);e.Z=void 0;var o=r(n(77028)),i=r(n(53100)),a=r(n(98870)),s=r(n(68230)),u=r(n(60421)),c=r(n(1147)),l=r(n(8156)),f=r(n(15256)),p=r(n(95099)),h=r(n(78310)),d=n(65021);var g={fill:"none",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"\n M 28.398, 39.519\n c -14.533, 8.989-13.168, 29.294, 6.284, 32.279\n c 20.682, 3.175, 43.752-18.226, 46.132-36.005\n c 2.223-16.609-11.404-21.941-21.06-4.372\n c -4.959, 9.022-7.28, 22.401-1.362, 35.663\n c 9.141, 20.487, 31.309, 15.551, 17.568-8.284\n C 66.9, 43.086, 45.263, 29.087, 28.398, 39.519 z\n "},y=[[0,15817265],[.2,16765723],[.33,10931778],[.4,31425],[.45,31425],[.5,15817265],[.55,31425],[.6,31425],[.67,10931778],[.8,16765723],[1,15817265]],v=null,m=function(t){(0,s.default)(m,t);var e,r,p=(e=m,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,c.default)(e);if(r){var o=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function m(){return(0,i.default)(this,m),p.apply(this,arguments)}return(0,a.default)(m,[{key:"componentDidMount",value:function(){!function(t){if("function"==typeof n.g.requestAnimationFrame){var e=Date.now(),r="#ededed",o=450;!function i(){var a=(Date.now()-e)%6e3/6e3;r=(0,d.lerpTable)(1,a,y,!1,d.lerpColor),o=o-4<0?450:o-4,t.style.cssText="stroke-dashoffset: ".concat(o,"; stroke: ").concat(r,";"),v=n.g.requestAnimationFrame(i)}()}}(this._progressPath)}},{key:"componentWillUnmount",value:function(){"function"==typeof n.g.cancelAnimationFrame&&v&&(n.g.cancelAnimationFrame(v),v=null)}},{key:"render",value:function(){var t=this,e=this.props,n=e.size,r=e.className,i=(0,h.default)(f.default.root,r);return l.default.createElement("svg",{className:i,width:n,height:n,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet"},l.default.createElement("path",(0,o.default)({},g,{stroke:"rgba(0, 0, 0, 0.05)"})),l.default.createElement("path",(0,o.default)({},g,{ref:function(e){return t._progressPath=e},className:f.default.progressPath})))}}]),m}(l.default.Component);e.Z=m,m.defaultProps={size:80,className:""},m.propTypes={size:p.default.number,className:p.default.string}},15256:(t,e,n)=>{"use strict";var r=n(71600);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,(0,r(n(86698)).default)("<style>.ReltioProgress__root_3VJMk{display:inline-block}.ReltioProgress__progressPath_1BzPW{stroke-dasharray:50,400;will-change:stroke,stroke-dashoffset}</style>"),e.default={root:"ReltioProgress__root_3VJMk",progressPath:"ReltioProgress__progressPath_1BzPW"}},80835:(t,e,n)=>{"use strict";var r=n(71600);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t?(0,o.default)(t,"label")||(0,o.default)(t,"uri","").slice((0,o.default)(t,"uri","").lastIndexOf("/")+1):null};var o=r(n(72579))},65021:(t,e)=>{"use strict";function n(t,e,n,r,o){return r+(t-e)/(n-e)*(o-r)}Object.defineProperty(e,"__esModule",{value:!0}),e.lerp=n,e.lerpColor=function(t,e,r,o,i){var a=255&o,s=(65280&o)>>8,u=(16711680&o)>>16,c=255&i,l=(65280&i)>>8,f=(16711680&i)>>16;return"#"+("00000"+(Math.floor(n(t,e,r,u,f))<<16|Math.floor(n(t,e,r,s,l))<<8|Math.floor(n(t,e,r,a,c))).toString(16)).slice(-6)},e.lerpTable=function(t,e,r,o){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n,a=r.length,s=0;s<a;++s){var u=r[s][0];if(0===s&&e<u)return o?i(e,u,r[s+1][0],r[s][t],r[s+1][t]):r[s][t];if(s===a-1&&e>=u)return o?i(e,r[s-1][0],u,r[s-1][t],r[s][t]):r[s][t];if(e>=u&&e<=r[s+1][0])return i(e,u,r[s+1][0],r[s][t],r[s+1][t])}return 0}},46847:(t,e,n)=>{"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function o(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function i(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=t.displayName||t.name,c="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}n.r(e),n.d(e,{polyfill:()=>a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},2271:(t,e,n)=>{"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t){return c="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(t){return u(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":u(t)},c(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?l(t):e}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function d(t,e){if("function"!=typeof e&&null!==e)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}}),e&&h(t,e)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{p:()=>Rt,r:()=>Lt});var y=n(8156),v=n.n(y),m=n(47677),b=n.n(m);var x=n(56666),w=n(38777),E=function(t){return t===Object(t)?Object.keys(t):[]},O=function(t){return t===Object(t)?Object.values(t):[]};function S(t,e){var n=Object.assign({},t);return P(t)&&P(e)&&E(e).forEach((function(r){P(e[r])&&r in t?n[r]=S(t[r],e[r]):Object.assign(n,(0,x.Z)({},r,e[r]))})),n}var C=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((function(t,e){return S(t,e)}),t)},M=function(t,e){var n=Object.assign({},t);if(e)for(var r=0;r<e.length;r++)delete n[e[r]];return n},P=function(t){return!(t!==Object(t)||t instanceof Date||Array.isArray(t))},j=function(t){return"&"===t[0]},A=function(t){return!j(t)},k=function(t){return t.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()}))},_=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=E(t),r={},o=0,i=n.length;o<i;o+=1){var a=n[o];("[object Object]"!==Object.prototype.toString.call(t[a])||":"===a[0]||"@"===a[0]||e.indexOf(a)>=0)&&(r[a]=t[a])}return r},T=function(t,e){for(var n=e.map(k),r=E(t),o={},i=0,a=r.length;i<a;i+=1){var s=r[i];(e.indexOf(s)>=0||n.indexOf(k(s))>=0)&&(o[s]=t[s])}return o},D=function t(e,n){for(var r=C.apply(void 0,[{},M(e,n)].concat((0,w.Z)(O(T(e,n))))),o=E(r).filter(j),i=0,a=o.length;i<a;i+=1){var s=o[i],u=t(r[s],n);n.indexOf(s)>=0?(delete r[s],r=C({},r,u)):r[s]=u}return r};function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){(0,x.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var N=["animationName"];const R=function(t){var e=t.style,n=t.className;return L(L({},e?{style:_(e,N)}:{}),n?{className:n}:{})};var B=(0,y.createContext)(R);B.Provider;const F=function(t){if(!t)return[];if("string"==typeof t)return[t];if(!Array.isArray(t)){var e=t;return E(t).reduce((function(t,n){return t.concat(e[n]?[n]:[])}),[])}return t};var z={};function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach((function(e){(0,x.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const q=function t(e){var n=e.style,r=e.className,o=e.classNames,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R,a=r||function(t){var e=t&&E(t)[0];return e&&e.split("__")[0].split("--")[0]}(o)||(null==n?void 0:n.className),s="function"==typeof n?n:function(t){return function(e,n){var r,o=n||z;t.memoize=t.memoize||new WeakMap,t.memoize.has(o)?r=t.memoize.get(o):(r={},t.memoize.set(o,r));var i=F(e).join(" ");return i in r?r[i]:r[i]=t(e||[],n)}}((function(e,r){var s=F(e);b()(Array.isArray(s),"First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."),b()(!r||P(r),"Optional second parameter must be a plain object.");var u=s.filter(j),c=s.filter(A),l=c.length>0?function(t){return O(T(t,c))}:function(t){return[t]},f=function(){return l(D(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u))},p=function(t,e,n){if(t){var r=t.split(" ")[0],o=[].concat((0,w.Z)(0===e.length?n.map((function(t){return"".concat(r,"--").concat(t.substring(1))})):[]),(0,w.Z)(e.map((function(t){return"".concat(r,"__").concat(t)}))));return 0===e.length?[t].concat((0,w.Z)(o)):o}}(a,c,u);return t(W(W(W({},(n||r)&&{style:C.apply(void 0,[{}].concat((0,w.Z)(f(r)),(0,w.Z)(f(n))))}),p&&{className:p.join(" ")}),o&&{classNames:o}),i)})),u=W({},"function"==typeof n?n:{style:n}),c=(0,w.Z)(new Set([].concat((0,w.Z)(u.className?u.className.split(" "):[]),(0,w.Z)(a?a.split(" "):[])))),l=o?(c.map((function(t){return o[t]}))||[]).filter(Boolean):c,f=i(W(W({},u),l.length>0?{className:l.join(" ")}:{}));return Object.assign(s,f),s},H=function(t,e,n){var r=e.style,o=e.className,i=e.classNames,a=(0,y.useContext)(B);return(0,y.useMemo)((function(){return q({style:r,className:o,classNames:i},a)}),[r,o,i,a])(n,t)};function Z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(n),!0).forEach((function(e){(0,x.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var V=n(95099),G=n.n(V),Y=n(47111),X=n.n(Y),K=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},J="__id__",Q="__display__",tt=function(t,e){b()("id"===e||"display"===e,'Second arg must be either "id" or "display", got: "'.concat(e,'"'));var n=t.indexOf(Q),r=t.indexOf(J);return n<0&&(n=null),r<0&&(r=null),b()(null!==n||null!==r,"The markup '".concat(t,"' does not contain either of the placeholders '__id__' or '__display__'")),null!==n&&null!==r?"id"===e&&r<=n||"display"===e&&n<=r?0:1:0},et=function(t){var e=0;return t.indexOf("__id__")>=0&&e++,t.indexOf("__display__")>=0&&e++,e},nt=function(){},rt=function(t,e,n){for(var r,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:nt,s=(r=e.map((function(t){return t.regex})),o=/^\/(.+)\/(\w+)?$/,new RegExp(r.map((function(t){var e,n,r=(e=o.exec(t.toString()),n=3,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=r[1],a=r[2];return b()(!a,"RegExp flags are not supported. Change /".concat(i,"/").concat(a," into /").concat(i,"/")),"(".concat(i,")")})).join("|"),"g")),u=2,c=e.map((function(t){var e=t.markup,n=u;return u+=et(e)+1,n})),l=0,f=0;null!==(i=s.exec(t));){var p=c.find((function(t){return!!i[t]})),h=c.indexOf(p),d=e[h],g=d.markup,y=d.displayTransform,v=p+tt(g,"id"),m=p+tt(g,"display"),x=i[v],w=y(x,i[m]),E=t.substring(l,i.index);a(E,l,f),f+=E.length,n(i[0],i.index,f,x,w,h,l),f+=w.length,l=s.lastIndex}l<t.length&&a(t.substring(l),l,f)},ot=function(t,e){var n="";return rt(t,e,(function(t,e,r,o,i){n+=i}),(function(t){n+=t})),n},it=function(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"START";return"number"!=typeof n?n:(rt(t,e,(function(t,e,i,a,s,u,c){void 0===r&&i+s.length>n&&(r="NULL"===o?null:e+("END"===o?t.length:0))}),(function(t,e,o){void 0===r&&o+t.length>=n&&(r=e+n-o)})),void 0===r?t.length:r)},at=function(t,e,n,r){return t.substring(0,e)+r+t.substring(n)},st=function(t,e){var n=[];return rt(t,e,(function(t,e,r,o,i,a,s){n.push({id:o,display:i,childIndex:a,index:e,plainTextIndex:r})})),n},ut=function(t,e){return"".concat(t,"-").concat(e)},ct=function(t){return Object.values(t).reduce((function(t,e){return t+e.results.length}),0)},lt=function(t){var e=K(t),n=t[t.indexOf(Q)+11],r=t[t.indexOf(J)+6];return new RegExp(e.replace(Q,"([^".concat(K(n||""),"]+?)")).replace(J,"([^".concat(K(r||""),"]+?)")))},ft=function(t){return y.Children.toArray(t).map((function(t){var e=t.props,n=e.markup,r=e.regex,o=e.displayTransform;return{markup:n,regex:r?pt(r,n):lt(n),displayTransform:o||function(t,e){return e||t}}}))},pt=function(t,e){var n=new RegExp(t.toString()+"|").exec("").length-1,r=et(e);return b()(n===r,"Number of capturing groups in RegExp ".concat(t.toString()," (").concat(n,") does not match the number of placeholders in the markup '").concat(e,"' (").concat(r,")")),t},ht=[{base:"A",letters:/(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g},{base:"AA",letters:/(&#42802;|[\uA732])/g},{base:"AE",letters:/(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g},{base:"AO",letters:/(&#42804;|[\uA734])/g},{base:"AU",letters:/(&#42806;|[\uA736])/g},{base:"AV",letters:/(&#42808;|&#42810;|[\uA738\uA73A])/g},{base:"AY",letters:/(&#42812;|[\uA73C])/g},{base:"B",letters:/(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g},{base:"C",letters:/(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g},{base:"D",letters:/(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g},{base:"DZ",letters:/(&#497;|&#452;|[\u01F1\u01C4])/g},{base:"Dz",letters:/(&#498;|&#453;|[\u01F2\u01C5])/g},{base:"E",letters:/(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g},{base:"F",letters:/(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g},{base:"G",letters:/(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g},{base:"H",letters:/(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g},{base:"I",letters:/(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g},{base:"J",letters:/(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g},{base:"K",letters:/(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g},{base:"L",letters:/(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g},{base:"LJ",letters:/(&#455;|[\u01C7])/g},{base:"Lj",letters:/(&#456;|[\u01C8])/g},{base:"M",letters:/(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g},{base:"N",letters:/(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g},{base:"NJ",letters:/(&#458;|[\u01CA])/g},{base:"Nj",letters:/(&#459;|[\u01CB])/g},{base:"O",letters:/(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g},{base:"OE",letters:/(&#338;|[\u0152])/g},{base:"OI",letters:/(&#418;|[\u01A2])/g},{base:"OO",letters:/(&#42830;|[\uA74E])/g},{base:"OU",letters:/(&#546;|[\u0222])/g},{base:"P",letters:/(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g},{base:"Q",letters:/(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g},{base:"R",letters:/(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g},{base:"S",letters:/(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g},{base:"T",letters:/(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g},{base:"TH",letters:/(&#222;|[\u00DE])/g},{base:"TZ",letters:/(&#42792;|[\uA728])/g},{base:"U",letters:/(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g},{base:"V",letters:/(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g},{base:"VY",letters:/(&#42848;|[\uA760])/g},{base:"W",letters:/(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g},{base:"X",letters:/(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g},{base:"Y",letters:/(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g},{base:"Z",letters:/(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g},{base:"a",letters:/(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g},{base:"aa",letters:/(&#42803;|[\uA733])/g},{base:"ae",letters:/(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g},{base:"ao",letters:/(&#42805;|[\uA735])/g},{base:"au",letters:/(&#42807;|[\uA737])/g},{base:"av",letters:/(&#42809;|&#42811;|[\uA739\uA73B])/g},{base:"ay",letters:/(&#42813;|[\uA73D])/g},{base:"b",letters:/(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g},{base:"c",letters:/(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g},{base:"d",letters:/(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g},{base:"dz",letters:/(&#499;|&#454;|[\u01F3\u01C6])/g},{base:"e",letters:/(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g},{base:"f",letters:/(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g},{base:"g",letters:/(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g},{base:"h",letters:/(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g},{base:"hv",letters:/(&#405;|[\u0195])/g},{base:"i",letters:/(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g},{base:"ij",letters:/(&#307;|[\u0133])/g},{base:"j",letters:/(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g},{base:"k",letters:/(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g},{base:"l",letters:/(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g},{base:"lj",letters:/(&#457;|[\u01C9])/g},{base:"m",letters:/(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g},{base:"n",letters:/(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g},{base:"nj",letters:/(&#460;|[\u01CC])/g},{base:"o",letters:/(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g},{base:"oe",letters:/(&#339;|[\u0153])/g},{base:"oi",letters:/(&#419;|[\u01A3])/g},{base:"ou",letters:/(&#547;|[\u0223])/g},{base:"oo",letters:/(&#42831;|[\uA74F])/g},{base:"p",letters:/(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g},{base:"q",letters:/(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g},{base:"r",letters:/(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g},{base:"s",letters:/(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g},{base:"ss",letters:/(&#223;|[\u00DF])/g},{base:"t",letters:/(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g},{base:"th",letters:/(&#254;|[\u00FE])/g},{base:"tz",letters:/(&#42793;|[\uA729])/g},{base:"u",letters:/(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g},{base:"v",letters:/(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g},{base:"vy",letters:/(&#42849;|[\uA761])/g},{base:"w",letters:/(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g},{base:"x",letters:/(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g},{base:"y",letters:/(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g},{base:"z",letters:/(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g}],dt=function(t){return function(t){var e=t;return ht.forEach((function(t){e=e.replace(t.letters,t.base)})),e}(t).toLowerCase()},gt=function(t,e,n){return n?dt(t).indexOf(dt(e)):t.toLowerCase().indexOf(e.toLowerCase())},yt=function(t){return"number"==typeof t},vt=function(t){return t===Object(t)?Object.keys(t):[]},mt=function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=(e=[]).concat.apply(e,r);return Object.keys(t).reduce((function(e,n){return t.hasOwnProperty(n)&&!i.includes(n)&&void 0!==t[n]&&(e[n]=t[n]),e}),{})};function bt(t,e){return function(n){var r=function(r){var i=r.style,a=r.className,s=r.classNames,u=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(r,["style","className","classNames"]),c=e?e(u):void 0,l=H(t,{style:i,className:a,classNames:s},c);return v().createElement(n,o({},u,{style:l}))},i=n.displayName||n.name||"Component";return r.displayName="defaultStyle(".concat(i,")"),r}}var xt=function(t){function e(){var t;return i(this,e),g(l(t=f(this,p(e).apply(this,arguments))),"setCaretElement",(function(e){t.caretElement=e})),t.state={left:void 0,top:void 0},t}return d(e,t),s(e,[{key:"componentDidMount",value:function(){this.notifyCaretPosition()}},{key:"componentDidUpdate",value:function(){this.notifyCaretPosition()}},{key:"notifyCaretPosition",value:function(){if(this.caretElement){var t=this.caretElement,e=t.offsetLeft,n=t.offsetTop;if(this.state.left!==e||this.state.top!==n){var r={left:e,top:n};this.setState(r),this.props.onCaretPositionChange(r)}}}},{key:"render",value:function(){var t,e=this,n=this.props,r=n.selectionStart,i=n.selectionEnd,a=n.value,s=n.style,u=n.children,c=n.containerRef,l=ft(u);r===i&&(t=it(a,l,r,"START"));var f=[],p={},h=f,d=0;return rt(a,l,(function(t,n,r,o,i,a,s){var u=function(t,e){return t.hasOwnProperty(e)?t[e]++:t[e]=0,e+"_"+t[e]}(p,o);h.push(e.getMentionComponentForMatch(o,i,a,u))}),(function(n,r,o){if(yt(t)&&t>=r&&t<=r+n.length){var i=t-r;h.push(e.renderSubstring(n.substring(0,i),d)),h=[e.renderSubstring(n.substring(i),d)]}else h.push(e.renderSubstring(n,d));d++})),h.push(" "),h!==f&&f.push(this.renderHighlighterCaret(h)),v().createElement("div",o({},s,{ref:c}),f)}},{key:"renderSubstring",value:function(t,e){return v().createElement("span",o({},this.props.style("substring"),{key:e}),t)}},{key:"getMentionComponentForMatch",value:function(t,e,n,r){var o={id:t,display:e,key:r},i=y.Children.toArray(this.props.children)[n];return v().cloneElement(i,o)}},{key:"renderHighlighterCaret",value:function(t){return v().createElement("span",o({},this.props.style("caret"),{ref:this.setCaretElement,key:"caret"}),t)}}]),e}(y.Component);g(xt,"propTypes",{selectionStart:G().number,selectionEnd:G().number,value:G().string.isRequired,onCaretPositionChange:G().func.isRequired,containerRef:G().oneOfType([G().func,G().shape({current:"undefined"==typeof Element?G().any:G().instanceOf(Element)})]),children:G().oneOfType([G().element,G().arrayOf(G().element)]).isRequired}),g(xt,"defaultProps",{value:""});var wt=bt({position:"relative",boxSizing:"border-box",width:"100%",color:"transparent",overflow:"hidden",whiteSpace:"pre-wrap",wordWrap:"break-word",border:"1px solid transparent",textAlign:"start","&singleLine":{whiteSpace:"pre",wordWrap:null},substring:{visibility:"hidden"}},(function(t){return{"&singleLine":t.singleLine}}))(xt),Et=function(t){function e(){return i(this,e),f(this,p(e).apply(this,arguments))}return d(e,t),s(e,[{key:"render",value:function(){var t=mt(this.props,["style","classNames","className"],vt(e.propTypes));return v().createElement("li",o({id:this.props.id,role:"option","aria-selected":this.props.focused},t,this.props.style),this.renderContent())}},{key:"renderContent",value:function(){var t=this.props,e=t.query,n=t.renderSuggestion,r=t.suggestion,o=t.index,i=t.focused,a=this.getDisplay(),s=this.renderHighlightedDisplay(a,e);return n?n(r,e,s,o,i):s}},{key:"getDisplay",value:function(){var t=this.props.suggestion;if("string"==typeof t)return t;var e=t.id,n=t.display;return void 0!==e&&n?n:e}},{key:"renderHighlightedDisplay",value:function(t){var e=this.props,n=e.ignoreAccents,r=e.query,o=e.style,i=gt(t,r,n);return-1===i?v().createElement("span",o("display"),t):v().createElement("span",o("display"),t.substring(0,i),v().createElement("b",o("highlight"),t.substring(i,i+r.length)),t.substring(i+r.length))}}]),e}(y.Component);g(Et,"propTypes",{id:G().string.isRequired,query:G().string.isRequired,index:G().number.isRequired,ignoreAccents:G().bool,suggestion:G().oneOfType([G().string,G().shape({id:G().oneOfType([G().string,G().number]).isRequired,display:G().string})]).isRequired,renderSuggestion:G().func,focused:G().bool});var Ot=bt({cursor:"pointer"},(function(t){return{"&focused":t.focused}}))(Et);function St(){var t=H(),e=t("spinner");return v().createElement("div",t,v().createElement("div",e,v().createElement("div",e(["element","element1"])),v().createElement("div",e(["element","element2"])),v().createElement("div",e(["element","element3"])),v().createElement("div",e(["element","element4"])),v().createElement("div",e(["element","element5"]))))}var Ct=function(t){function e(){var t,n;i(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return g(l(n=f(this,(t=p(e)).call.apply(t,[this].concat(o)))),"handleMouseEnter",(function(t,e){n.props.onMouseEnter&&n.props.onMouseEnter(t)})),g(l(n),"select",(function(t,e){n.props.onSelect(t,e)})),g(l(n),"setUlElement",(function(t){n.ulElement=t})),n}return d(e,t),s(e,[{key:"componentDidUpdate",value:function(){if(this.ulElement&&!(this.ulElement.offsetHeight>=this.ulElement.scrollHeight)&&this.props.scrollFocusedIntoView){var t=this.ulElement.scrollTop,e=this.ulElement.children[this.props.focusIndex].getBoundingClientRect(),n=e.top,r=e.bottom,o=this.ulElement.getBoundingClientRect().top;r=r-o+t,(n=n-o+t)<t?this.ulElement.scrollTop=n:r>this.ulElement.offsetHeight&&(this.ulElement.scrollTop=r-this.ulElement.offsetHeight)}}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.a11ySuggestionsListLabel,r=t.isOpened,i=t.style,a=t.onMouseDown,s=t.containerRef,u=t.position,c=t.left,l=t.top;return r?v().createElement("div",o({},function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return $($($({},t),"function"==typeof e?e:{}),{},{style:$($({},t.style),"function"==typeof e?e.style:e)})}),{})}({position:u||"absolute",left:c,top:l},i),{onMouseDown:a,ref:s}),v().createElement("ul",o({ref:this.setUlElement,id:e,role:"listbox","aria-label":n},i("list")),this.renderSuggestions()),this.renderLoadingIndicator()):null}},{key:"renderSuggestions",value:function(){var t=this;return Object.values(this.props.suggestions).reduce((function(e,n){var o=n.results,i=n.queryInfo;return[].concat(r(e),r(o.map((function(n,r){return t.renderSuggestion(n,i,e.length+r)}))))}),[])}},{key:"renderSuggestion",value:function(t,e,n){var r=this,o=n===this.props.focusIndex,i=e.childIndex,a=e.query,s=y.Children.toArray(this.props.children)[i].props.renderSuggestion,u=this.props.ignoreAccents;return v().createElement(Ot,{style:this.props.style("item"),key:"".concat(i,"-").concat(Mt(t)),id:ut(this.props.id,n),query:a,index:n,ignoreAccents:u,renderSuggestion:s,suggestion:t,focused:o,onClick:function(){return r.select(t,e)},onMouseEnter:function(){return r.handleMouseEnter(n)}})}},{key:"renderLoadingIndicator",value:function(){if(this.props.isLoading)return v().createElement(St,{style:this.props.style("loadingIndicator")})}}]),e}(y.Component);g(Ct,"propTypes",{id:G().string.isRequired,suggestions:G().object.isRequired,a11ySuggestionsListLabel:G().string,focusIndex:G().number,position:G().string,left:G().number,top:G().number,scrollFocusedIntoView:G().bool,isLoading:G().bool,isOpened:G().bool.isRequired,onSelect:G().func,ignoreAccents:G().bool,containerRef:G().oneOfType([G().func,G().shape({current:"undefined"==typeof Element?G().any:G().instanceOf(Element)})]),children:G().oneOfType([G().element,G().arrayOf(G().element)]).isRequired}),g(Ct,"defaultProps",{suggestions:{},onSelect:function(){return null}});var Mt=function(t){return"string"==typeof t?t:t.id},Pt=bt({zIndex:1,backgroundColor:"white",marginTop:14,minWidth:100,list:{margin:0,padding:0,listStyleType:"none"}})(Ct);function jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function At(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jt(n,!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jt(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var kt={TAB:9,RETURN:13,ESC:27,UP:38,DOWN:40},_t=!1,Tt={singleLine:G().bool,allowSpaceInQuery:G().bool,allowSuggestionsAboveCursor:G().bool,forceSuggestionsAboveCursor:G().bool,ignoreAccents:G().bool,a11ySuggestionsListLabel:G().string,value:G().string,onKeyDown:G().func,onSelect:G().func,onBlur:G().func,onChange:G().func,suggestionsPortalHost:"undefined"==typeof Element?G().any:G().PropTypes.instanceOf(Element),inputRef:G().oneOfType([G().func,G().shape({current:"undefined"==typeof Element?G().any:G().instanceOf(Element)})]),children:G().oneOfType([G().element,G().arrayOf(G().element)]).isRequired},Dt=function(t){function e(t){var n;return i(this,e),g(l(n=f(this,p(e).call(this,t))),"setContainerElement",(function(t){n.containerElement=t})),g(l(n),"getInputProps",(function(){var t=n.props,e=t.readOnly,r=t.disabled,o=t.style;return At({},mt(n.props,["style","classNames","className"],vt(Tt)),{},o("input"),{value:n.getPlainText()},!e&&!r&&{onChange:n.handleChange,onSelect:n.handleSelect,onKeyDown:n.handleKeyDown,onBlur:n.handleBlur,onCompositionStart:n.handleCompositionStart,onCompositionEnd:n.handleCompositionEnd,onScroll:n.updateHighlighterScroll},{},n.isOpened()&&{role:"combobox","aria-controls":n.uuidSuggestionsOverlay,"aria-expanded":!0,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":ut(n.uuidSuggestionsOverlay,n.state.focusIndex)})})),g(l(n),"renderControl",(function(){var t=n.props,e=t.singleLine,r=t.style,o=n.getInputProps();return v().createElement("div",r("control"),n.renderHighlighter(),e?n.renderInput(o):n.renderTextarea(o))})),g(l(n),"renderInput",(function(t){return v().createElement("input",o({type:"text",ref:n.setInputRef},t))})),g(l(n),"renderTextarea",(function(t){return v().createElement("textarea",o({ref:n.setInputRef},t))})),g(l(n),"setInputRef",(function(t){n.inputElement=t;var e=n.props.inputRef;"function"==typeof e?e(t):e&&(e.current=t)})),g(l(n),"setSuggestionsElement",(function(t){n.suggestionsElement=t})),g(l(n),"renderSuggestionsOverlay",(function(){if(!yt(n.state.selectionStart))return null;var t=n.state.suggestionsPosition,e=t.position,r=t.left,o=t.top,i=v().createElement(Pt,{id:n.uuidSuggestionsOverlay,style:n.props.style("suggestions"),position:e,left:r,top:o,focusIndex:n.state.focusIndex,scrollFocusedIntoView:n.state.scrollFocusedIntoView,containerRef:n.setSuggestionsElement,suggestions:n.state.suggestions,onSelect:n.addMention,onMouseDown:n.handleSuggestionsMouseDown,onMouseEnter:n.handleSuggestionsMouseEnter,isLoading:n.isLoading(),isOpened:n.isOpened(),ignoreAccents:n.props.ignoreAccents,a11ySuggestionsListLabel:n.props.a11ySuggestionsListLabel},n.props.children);return n.props.suggestionsPortalHost?X().createPortal(i,n.props.suggestionsPortalHost):i})),g(l(n),"renderHighlighter",(function(){var t=n.state,e=t.selectionStart,r=t.selectionEnd,o=n.props,i=o.singleLine,a=o.children,s=o.value,u=o.style;return v().createElement(wt,{containerRef:n.setHighlighterElement,style:u("highlighter"),value:s,singleLine:i,selectionStart:e,selectionEnd:r,onCaretPositionChange:n.handleCaretPositionChange},a)})),g(l(n),"setHighlighterElement",(function(t){n.highlighterElement=t})),g(l(n),"handleCaretPositionChange",(function(t){n.setState({caretPosition:t})})),g(l(n),"getPlainText",(function(){return ot(n.props.value||"",ft(n.props.children))})),g(l(n),"executeOnChange",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];var i,a;return n.props.onChange?(i=n.props).onChange.apply(i,[t].concat(r)):n.props.valueLink?(a=n.props.valueLink).requestChange.apply(a,[t.target.value].concat(r)):void 0})),g(l(n),"handleChange",(function(t){if(_t=!1,(document.activeElement&&document.activeElement.contentDocument||document).activeElement===t.target){var e=n.props.value||"",r=ft(n.props.children),o=t.target.value,i=function(t,e,n,r){var o=n.selectionStartBefore,i=n.selectionEndBefore,a=n.selectionEndAfter,s=ot(t,r),u=s.length-e.length;"undefined"===o&&(o=a+u),"undefined"===i&&(i=o),o===i&&i===a&&s.length===e.length&&(o-=1);var c=e.slice(o,a),l=Math.min(o,a),f=i;o===a&&(f=Math.max(i,o+u));var p=it(t,r,l,"START"),h=it(t,r,f,"END"),d=it(t,r,l,"NULL"),g=it(t,r,f,"NULL"),y=null===d||null===g,v=at(t,p,h,c);if(!y){var m=ot(v,r);if(m!==e){for(l=0;e[l]===m[l];)l++;c=e.slice(l,a),f=s.lastIndexOf(e.substring(a)),p=it(t,r,l,"START"),h=it(t,r,f,"END"),v=at(t,p,h,c)}}return v}(e,o,{selectionStartBefore:n.state.selectionStart,selectionEndBefore:n.state.selectionEnd,selectionEndAfter:t.target.selectionEnd},r);o=ot(i,r);var a=t.target.selectionStart,s=t.target.selectionEnd,u=!1,c=function(t,e,n){var r=n,o=!1;if(rt(t,e,(function(t,e,i,a,s,u,c){i<=n&&i+s.length>n&&(r=i,o=!0)})),o)return r}(e,r,a);void 0!==c&&n.state.selectionEnd>c&&(s=a=c,u=!0),n.setState({selectionStart:a,selectionEnd:s,setSelectionAfterMentionChange:u});var l=st(i,r),f={target:{value:i}};n.executeOnChange(f,i,o,l)}})),g(l(n),"handleSelect",(function(t){if(n.setState({selectionStart:t.target.selectionStart,selectionEnd:t.target.selectionEnd}),!_t){var e=n.inputElement;t.target.selectionStart===t.target.selectionEnd?n.updateMentionsQueries(e.value,t.target.selectionStart):n.clearSuggestions(),n.updateHighlighterScroll(),n.props.onSelect(t)}})),g(l(n),"handleKeyDown",(function(t){if(0!==ct(n.state.suggestions)&&n.suggestionsElement)switch(Object.values(kt).indexOf(t.keyCode)>=0&&(t.preventDefault(),t.stopPropagation()),t.keyCode){case kt.ESC:return void n.clearSuggestions();case kt.DOWN:return void n.shiftFocus(1);case kt.UP:return void n.shiftFocus(-1);case kt.RETURN:case kt.TAB:return void n.selectFocused();default:return}else n.props.onKeyDown(t)})),g(l(n),"shiftFocus",(function(t){var e=ct(n.state.suggestions);n.setState({focusIndex:(e+n.state.focusIndex+t)%e,scrollFocusedIntoView:!0})})),g(l(n),"selectFocused",(function(){var t=n.state,e=t.suggestions,o=t.focusIndex,i=Object.values(e).reduce((function(t,e){var n=e.results,o=e.queryInfo;return[].concat(r(t),r(n.map((function(t){return{result:t,queryInfo:o}}))))}),[])[o],a=i.result,s=i.queryInfo;n.addMention(a,s),n.setState({focusIndex:0})})),g(l(n),"handleBlur",(function(t){var e=n._suggestionsMouseDown;n._suggestionsMouseDown=!1,e||n.setState({selectionStart:null,selectionEnd:null}),window.setTimeout((function(){n.updateHighlighterScroll()}),1),n.props.onBlur(t,e)})),g(l(n),"handleSuggestionsMouseDown",(function(t){n._suggestionsMouseDown=!0})),g(l(n),"handleSuggestionsMouseEnter",(function(t){n.setState({focusIndex:t,scrollFocusedIntoView:!1})})),g(l(n),"updateSuggestionsPosition",(function(){var t=n.state.caretPosition,e=n.props,r=e.suggestionsPortalHost,o=e.allowSuggestionsAboveCursor,i=e.forceSuggestionsAboveCursor;if(t&&n.suggestionsElement){var a=n.suggestionsElement,s=n.highlighterElement,u=s.getBoundingClientRect(),c=It(s,"font-size"),l={left:u.left+t.left,top:u.top+t.top+c},f=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(a){var p={};if(r){p.position="fixed";var h=l.left,d=l.top;h-=It(a,"margin-left"),d-=It(a,"margin-top"),h-=s.scrollLeft,d-=s.scrollTop;var g=Math.max(document.documentElement.clientWidth,window.innerWidth||0);h+a.offsetWidth>g?p.left=Math.max(0,g-a.offsetWidth):p.left=h,o&&d+a.offsetHeight>f&&a.offsetHeight<d-c||i?p.top=Math.max(0,d-a.offsetHeight-c):p.top=d}else{var y=t.left-s.scrollLeft,v=t.top-s.scrollTop;y+a.offsetWidth>n.containerElement.offsetWidth?p.right=0:p.left=y,o&&l.top-s.scrollTop+a.offsetHeight>f&&a.offsetHeight<u.top-c-s.scrollTop?p.top=v-a.offsetHeight-c:p.top=v}p.left===n.state.suggestionsPosition.left&&p.top===n.state.suggestionsPosition.top&&p.position===n.state.suggestionsPosition.position||n.setState({suggestionsPosition:p})}}})),g(l(n),"updateHighlighterScroll",(function(){var t=n.inputElement,e=n.highlighterElement;t&&e&&(e.scrollLeft=t.scrollLeft,e.scrollTop=t.scrollTop,e.height=t.height)})),g(l(n),"handleCompositionStart",(function(){_t=!0})),g(l(n),"handleCompositionEnd",(function(){_t=!1})),g(l(n),"setSelection",(function(t,e){if(null!==t&&null!==e){var r=n.inputElement;if(r.setSelectionRange)r.setSelectionRange(t,e);else if(r.createTextRange){var o=r.createTextRange();o.collapse(!0),o.moveEnd("character",e),o.moveStart("character",t),o.select()}}})),g(l(n),"updateMentionsQueries",(function(t,e){n._queryId++,n.suggestions={},n.setState({suggestions:{}});var r=n.props.value||"",o=n.props.children,i=ft(o),a=it(r,i,e,"NULL");if(null!==a){var s=function(t,e){var n=st(t,e),r=n[n.length-1];return r?r.plainTextIndex+r.display.length:0}(r.substring(0,a),i),u=t.substring(s,e);v().Children.forEach(o,(function(e,r){if(e){var o=function(t){if(t instanceof RegExp)return t;var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowSpaceInQuery,n=K(t);return new RegExp("(?:^|\\s)(".concat(n,"([^").concat(e?"":"\\s").concat(n,"]*))$"))}(e.props.trigger,n.props),i=u.match(o);if(i){var a=s+u.indexOf(i[1],i.index);n.queryData(i[2],r,a,a+i[1].length,t)}}}))}})),g(l(n),"clearSuggestions",(function(){n._queryId++,n.suggestions={},n.setState({suggestions:{},focusIndex:0})})),g(l(n),"queryData",(function(t,e,r,o,i){var a=n.props,s=a.children,u=a.ignoreAccents,c=function(t,e){return t instanceof Array?function(n,r){for(var o=[],i=0,a=t.length;i<a;++i){var s=t[i].display||t[i].id;gt(s,n,e)>=0&&o.push(t[i])}return o}:t}(y.Children.toArray(s)[e].props.data,u),l=c(t,n.updateSuggestions.bind(null,n._queryId,e,t,r,o,i));l instanceof Array&&n.updateSuggestions(n._queryId,e,t,r,o,i,l)})),g(l(n),"updateSuggestions",(function(t,e,r,o,i,a,s){if(t===n._queryId){n.suggestions=At({},n.suggestions,g({},e,{queryInfo:{childIndex:e,query:r,querySequenceStart:o,querySequenceEnd:i,plainTextValue:a},results:s}));var u=n.state.focusIndex,c=ct(n.suggestions);n.setState({suggestions:n.suggestions,focusIndex:u>=c?Math.max(c-1,0):u})}})),g(l(n),"addMention",(function(t,e){var r=t.id,o=t.display,i=e.childIndex,a=e.querySequenceStart,s=e.querySequenceEnd,u=e.plainTextValue,c=n.props.value||"",l=ft(n.props.children),f=y.Children.toArray(n.props.children)[i].props,p=f.markup,h=f.displayTransform,d=f.appendSpaceOnAdd,g=f.onAdd,v=it(c,l,a,"START"),m=v+s-a,b=function(t,e,n){return t.replace(J,e).replace(Q,n)}(p,r,o);d&&(b+=" ");var x=at(c,v,m,b);n.inputElement.focus();var w=h(r,o);d&&(w+=" ");var E=a+w.length;n.setState({selectionStart:E,selectionEnd:E,setSelectionAfterMentionChange:!0});var O={target:{value:x}},S=st(x,l),C=at(u,a,s,w);n.executeOnChange(O,x,C,S),g&&g(r,o,v,m),n.clearSuggestions()})),g(l(n),"isLoading",(function(){var t=!1;return v().Children.forEach(n.props.children,(function(e){t=t||e&&e.props.isLoading})),t})),g(l(n),"isOpened",(function(){return yt(n.state.selectionStart)&&(0!==ct(n.state.suggestions)||n.isLoading())})),g(l(n),"_queryId",0),n.suggestions={},n.uuidSuggestionsOverlay=Math.random().toString(16).substring(2),n.handleCopy=n.handleCopy.bind(l(n)),n.handleCut=n.handleCut.bind(l(n)),n.handlePaste=n.handlePaste.bind(l(n)),n.state={focusIndex:0,selectionStart:null,selectionEnd:null,suggestions:{},caretPosition:null,suggestionsPosition:{}},n}return d(e,t),s(e,[{key:"componentDidMount",value:function(){document.addEventListener("copy",this.handleCopy),document.addEventListener("cut",this.handleCut),document.addEventListener("paste",this.handlePaste),this.updateSuggestionsPosition()}},{key:"componentDidUpdate",value:function(t,e){e.suggestionsPosition===this.state.suggestionsPosition&&this.updateSuggestionsPosition(),this.state.setSelectionAfterMentionChange&&(this.setState({setSelectionAfterMentionChange:!1}),this.setSelection(this.state.selectionStart,this.state.selectionEnd))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("copy",this.handleCopy),document.removeEventListener("cut",this.handleCut),document.removeEventListener("paste",this.handlePaste)}},{key:"render",value:function(){return v().createElement("div",o({ref:this.setContainerElement},this.props.style),this.renderControl(),this.renderSuggestionsOverlay())}},{key:"handlePaste",value:function(t){if(t.target===this.inputElement&&this.supportsClipboardActions(t)){t.preventDefault();var e=this.state,n=e.selectionStart,r=e.selectionEnd,o=this.props,i=o.value,a=o.children,s=ft(a),u=it(i,s,n,"START"),c=it(i,s,r,"END"),l=t.clipboardData.getData("text/react-mentions"),f=t.clipboardData.getData("text/plain"),p=at(i,u,c,l||f).replace(/\r/g,""),h=ot(p,s),d={target:At({},t.target,{value:p})};this.executeOnChange(d,p,h,st(p,s))}}},{key:"saveSelectionToClipboard",value:function(t){var e=this.state,n=e.selectionStart,r=e.selectionEnd,o=this.props,i=o.children,a=o.value,s=ft(i),u=it(a,s,n,"START"),c=it(a,s,r,"END");t.clipboardData.setData("text/plain",t.target.value.slice(n,r)),t.clipboardData.setData("text/react-mentions",a.slice(u,c))}},{key:"supportsClipboardActions",value:function(t){return!!t.clipboardData}},{key:"handleCopy",value:function(t){t.target===this.inputElement&&this.supportsClipboardActions(t)&&(t.preventDefault(),this.saveSelectionToClipboard(t))}},{key:"handleCut",value:function(t){if(t.target===this.inputElement&&this.supportsClipboardActions(t)){t.preventDefault(),this.saveSelectionToClipboard(t);var e=this.state,n=e.selectionStart,r=e.selectionEnd,o=this.props,i=o.children,a=o.value,s=ft(i),u=it(a,s,n,"START"),c=it(a,s,r,"END"),l=[a.slice(0,u),a.slice(c)].join(""),f=ot(l,s),p={target:At({},t.target,{value:f})};this.executeOnChange(p,l,f,st(a,s))}}}]),e}(v().Component);g(Dt,"propTypes",Tt),g(Dt,"defaultProps",{ignoreAccents:!1,singleLine:!1,allowSuggestionsAboveCursor:!1,onKeyDown:function(){return null},onSelect:function(){return null},onBlur:function(){return null}});var It=function(t,e){var n=parseFloat(window.getComputedStyle(t,null).getPropertyValue(e));return isFinite(n)?n:0},Lt=bt({position:"relative",overflowY:"visible",input:{display:"block",width:"100%",position:"absolute",margin:0,top:0,left:0,boxSizing:"border-box",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit"},"&multiLine":{input:At({height:"100%",bottom:0,overflow:"hidden",resize:"none"},"undefined"!=typeof navigator&&/iPhone|iPad|iPod/i.test(navigator.userAgent)?{marginTop:1,marginLeft:-3}:null)}},(function(t){var e=t.singleLine;return{"&singleLine":e,"&multiLine":!e}}))(Dt),Nt={fontWeight:"inherit"},Rt=function(t){var e=t.display,n=t.style,r=t.className,o=t.classNames,i=H(Nt,{style:n,className:r,classNames:o});return v().createElement("strong",i,e)};Rt.propTypes={onAdd:G().func,onRemove:G().func,renderSuggestion:G().func,trigger:G().oneOfType([G().string,G().instanceOf(RegExp)]),markup:G().string,displayTransform:G().func,allowSpaceInQuery:G().bool,isLoading:G().bool},Rt.defaultProps={trigger:"@",markup:"@[__display__](__id__)",displayTransform:function(t,e){return e||t},onAdd:function(){return null},onRemove:function(){return null},renderSuggestion:null,isLoading:!1,appendSpaceOnAdd:!1}},95641:(t,e,n)=>{"use strict";n.d(e,{s_:()=>S,eh:()=>Pt,OT:()=>kt});var r=n(8156);const{createElement:o,createContext:i,createRef:a,forwardRef:s,useCallback:u,useContext:c,useEffect:l,useImperativeHandle:f,useLayoutEffect:p,useMemo:h,useRef:d,useState:g}=r,y=r["useId".toString()],v=p,m=i(null);m.displayName="PanelGroupContext";const b=v,x="function"==typeof y?y:()=>null;let w=0;function E(t=null){const e=x(),n=d(t||e||null);return null===n.current&&(n.current=""+w++),null!=t?t:n.current}function O({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:a,id:s,maxSize:u,minSize:l,onCollapse:p,onExpand:h,onResize:g,order:y,style:v,tagName:x="div",...w}){const O=c(m);if(null===O)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:C,getPanelSize:M,getPanelStyle:P,groupId:j,isPanelCollapsed:A,reevaluatePanelConstraints:k,registerPanel:_,resizePanel:T,unregisterPanel:D}=O,I=E(s),L=d({callbacks:{onCollapse:p,onExpand:h,onResize:g},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:u,minSize:l},id:I,idIsFromProps:void 0!==s,order:y});d({didLogMissingDefaultSizeWarning:!1}),b((()=>{const{callbacks:t,constraints:e}=L.current,o={...e};L.current.id=I,L.current.idIsFromProps=void 0!==s,L.current.order=y,t.onCollapse=p,t.onExpand=h,t.onResize=g,e.collapsedSize=n,e.collapsible=r,e.defaultSize=i,e.maxSize=u,e.minSize=l,o.collapsedSize===e.collapsedSize&&o.collapsible===e.collapsible&&o.maxSize===e.maxSize&&o.minSize===e.minSize||k(L.current,o)})),b((()=>{const t=L.current;return _(t),()=>{D(t)}}),[y,I,_,D]),f(a,(()=>({collapse:()=>{S(L.current)},expand:t=>{C(L.current,t)},getId:()=>I,getSize:()=>M(L.current),isCollapsed:()=>A(L.current),isExpanded:()=>!A(L.current),resize:t=>{T(L.current,t)}})),[S,C,M,A,I,T]);const N=P(L.current,i);return o(x,{...w,children:t,className:e,id:s,style:{...N,...v},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":j,"data-panel-id":I,"data-panel-size":parseFloat(""+N.flexGrow).toFixed(1)})}const S=s(((t,e)=>o(O,{...t,forwardedRef:e})));O.displayName="Panel",S.displayName="forwardRef(Panel)";let C=null,M=null;function P(t,e){const n=function(t,e){if(e){const t=!!(e&z),n=!!(e&U);if(e&B)return t?"se-resize":n?"ne-resize":"e-resize";if(e&F)return t?"sw-resize":n?"nw-resize":"w-resize";if(t)return"s-resize";if(n)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(t,e);C!==n&&(C=n,null===M&&(M=document.createElement("style"),document.head.appendChild(M)),M.innerHTML=`*{cursor: ${n}!important;}`)}function j(t){return"keydown"===t.type}function A(t){return t.type.startsWith("pointer")}function k(t){return t.type.startsWith("mouse")}function _(t){if(A(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(k(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}const T=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function D(t){const e=getComputedStyle(t);return"fixed"===e.position||!("auto"===e.zIndex||"static"===e.position&&!function(t){var e;const n=getComputedStyle(null!==(e=R(t))&&void 0!==e?e:t).display;return"flex"===n||"inline-flex"===n}(t))||+e.opacity<1||"transform"in e&&"none"!==e.transform||"webkitTransform"in e&&"none"!==e.webkitTransform||"mixBlendMode"in e&&"normal"!==e.mixBlendMode||"filter"in e&&"none"!==e.filter||"webkitFilter"in e&&"none"!==e.webkitFilter||"isolation"in e&&"isolate"===e.isolation||!!T.test(e.willChange)||"touch"===e.webkitOverflowScrolling}function I(t){let e=t.length;for(;e--;){const n=t[e];if(et(n,"Missing node"),D(n))return n}return null}function L(t){return t&&Number(getComputedStyle(t).zIndex)||0}function N(t){const e=[];for(;t;)e.push(t),t=R(t);return e}function R(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const B=1,F=2,z=4,U=8,W="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let q=[],H=!1,Z=new Map,$=new Map;const V=new Set;function G(t){const{target:e}=t,{x:n,y:r}=_(t);H=!0,K({target:e,x:n,y:r}),Q(),q.length>0&&(tt("down",t),t.preventDefault(),t.stopPropagation())}function Y(t){const{x:e,y:n}=_(t);if(!H){const{target:r}=t;K({target:r,x:e,y:n})}tt("move",t),J(),q.length>0&&t.preventDefault()}function X(t){const{target:e}=t,{x:n,y:r}=_(t);$.clear(),H=!1,q.length>0&&t.preventDefault(),tt("up",t),K({target:e,x:n,y:r}),J(),Q()}function K({target:t,x:e,y:n}){q.splice(0);let r=null;t instanceof HTMLElement&&(r=t),V.forEach((t=>{const{element:o,hitAreaMargins:i}=t,a=o.getBoundingClientRect(),{bottom:s,left:u,right:c,top:l}=a,f=W?i.coarse:i.fine;if(e>=u-f&&e<=c+f&&n>=l-f&&n<=s+f){if(null!==r&&o!==r&&!o.contains(r)&&!r.contains(o)&&function(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:N(t),b:N(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;et(r,"Stacking order can only be calculated for elements with a common ancestor");const o=L(I(n.a)),i=L(I(n.b));if(o===i){const t=r.childNodes,e={a:n.a.at(-1),b:n.b.at(-1)};let o=t.length;for(;o--;){const n=t[o];if(n===e.a)return 1;if(n===e.b)return-1}}return Math.sign(o-i)}(r,o)>0){let t=r,e=!1;for(;t&&!t.contains(o);){if(p=t.getBoundingClientRect(),h=a,!0?p.x<h.x+h.width&&p.x+p.width>h.x&&p.y<h.y+h.height&&p.y+p.height>h.y:p.x<=h.x+h.width&&p.x+p.width>=h.x&&p.y<=h.y+h.height&&p.y+p.height>=h.y){e=!0;break}t=t.parentElement}if(e)return}q.push(t)}var p,h}))}function J(){let t=!1,e=!1;q.forEach((n=>{const{direction:r}=n;"horizontal"===r?t=!0:e=!0}));let n=0;$.forEach((t=>{n|=t})),t&&e?P("intersection",n):t?P("horizontal",n):e?P("vertical",n):null!==M&&(document.head.removeChild(M),C=null,M=null)}function Q(){Z.forEach(((t,e)=>{const{body:n}=e;n.removeEventListener("contextmenu",X),n.removeEventListener("pointerdown",G),n.removeEventListener("pointerleave",Y),n.removeEventListener("pointermove",Y)})),window.removeEventListener("pointerup",X),window.removeEventListener("pointercancel",X),V.size>0&&(H?(q.length>0&&Z.forEach(((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("contextmenu",X),n.addEventListener("pointerleave",Y),n.addEventListener("pointermove",Y))})),window.addEventListener("pointerup",X),window.addEventListener("pointercancel",X)):Z.forEach(((t,e)=>{const{body:n}=e;t>0&&(n.addEventListener("pointerdown",G,{capture:!0}),n.addEventListener("pointermove",Y))})))}function tt(t,e){V.forEach((n=>{const{setResizeHandlerState:r}=n,o=q.includes(n);r(t,o,e)}))}function et(t,e){if(!t)throw console.error(e),Error(e)}const nt=10;function rt(t,e,n=nt){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ot(t,e,n=nt){return 0===rt(t,e,n)}function it(t,e,n){return 0===rt(t,e,n)}function at({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];et(null!=r,`Panel constraints not found for index ${e}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=r;return rt(n,s)<0&&(n=i&&rt(n,(o+s)/2)<0?o:s),n=Math.min(a,n),parseFloat(n.toFixed(nt))}function st({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(it(t,0))return e;const a=[...e],[s,u]=r;et(null!=s,"Invalid first pivot index"),et(null!=u,"Invalid second pivot index");let c=0;if("keyboard"===i){{const r=t<0?u:s,o=n[r];et(o,`Panel constraints not found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=e[r];if(et(null!=n,`Previous layout not found for panel index ${r}`),it(n,i)){const e=c-n;rt(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}{const r=t<0?s:u,o=n[r];et(o,`No panel constraints found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=e[r];if(et(null!=n,`Previous layout not found for panel index ${r}`),it(n,c)){const e=n-i;rt(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}}{const r=t<0?1:-1;let o=t<0?u:s,i=0;for(;;){const t=e[o];if(et(null!=t,`Previous layout not found for panel index ${o}`),i+=at({panelConstraints:n,panelIndex:o,size:100})-t,o+=r,o<0||o>=n.length)break}const a=Math.min(Math.abs(t),Math.abs(i));t=t<0?0-a:a}{let r=t<0?s:u;for(;r>=0&&r<n.length;){const o=Math.abs(t)-Math.abs(c),i=e[r];et(null!=i,`Previous layout not found for panel index ${r}`);const s=at({panelConstraints:n,panelIndex:r,size:i-o});if(!it(i,s)&&(c+=i-s,a[r]=s,c.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?r--:r++}}if(function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!it(t[n],e[n],undefined))return!1;return!0}(o,a))return o;{const r=t<0?u:s,o=e[r];et(null!=o,`Previous layout not found for panel index ${r}`);const i=o+c,l=at({panelConstraints:n,panelIndex:r,size:i});if(a[r]=l,!it(l,i)){let e=i-l,r=t<0?u:s;for(;r>=0&&r<n.length;){const o=a[r];et(null!=o,`Previous layout not found for panel index ${r}`);const i=at({panelConstraints:n,panelIndex:r,size:o+e});if(it(o,i)||(e-=i-o,a[r]=i),it(e,0))break;t>0?r--:r++}}}return it(a.reduce(((t,e)=>e+t),0),100)?a:o}function ut({layout:t,panelsArray:e,pivotIndices:n}){let r=0,o=100,i=0,a=0;const s=n[0];return et(null!=s,"No pivot index found"),e.forEach(((t,e)=>{const{constraints:n}=t,{maxSize:u=100,minSize:c=0}=n;e===s?(r=c,o=u):(i+=c,a+=u)})),{valueMax:Math.min(o,100-i),valueMin:Math.max(r,100-a),valueNow:t[s]}}function ct(t,e=document){return Array.from(e.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${t}"]`))}function lt(t,e,n=document){const r=ct(t,n).findIndex((t=>t.getAttribute("data-panel-resize-handle-id")===e));return null!=r?r:null}function ft(t,e,n){const r=lt(t,e,n);return null!=r?[r,r+1]:[-1,-1]}function pt(t,e=document){var n;if(e instanceof HTMLElement&&(null==e||null===(n=e.dataset)||void 0===n?void 0:n.panelGroupId)==t)return e;return e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`)||null}function ht(t,e=document){return e.querySelector(`[data-panel-resize-handle-id="${t}"]`)||null}function dt(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function gt(t,e){const n="horizontal"===t,{x:r,y:o}=_(e);return n?r:o}function yt(t,e,n){e.forEach(((e,r)=>{const o=t[r];et(o,`Panel data not found for index ${r}`);const{callbacks:i,constraints:a,id:s}=o,{collapsedSize:u=0,collapsible:c}=a,l=n[s];if(null==l||e!==l){n[s]=e;const{onCollapse:t,onExpand:r,onResize:o}=i;o&&o(e,l),c&&(t||r)&&(!r||null!=l&&!ot(l,u)||ot(e,u)||r(),!t||null!=l&&ot(l,u)||!ot(e,u)||t())}}))}function vt(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function mt(t){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");t.getItem=t=>localStorage.getItem(t),t.setItem=(t,e)=>{localStorage.setItem(t,e)}}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function bt(t){return`react-resizable-panels:${t}`}function xt(t){return t.map((t=>{const{constraints:e,id:n,idIsFromProps:r,order:o}=t;return r?n:o?`${o}:${JSON.stringify(e)}`:JSON.stringify(e)})).sort(((t,e)=>t.localeCompare(e))).join(",")}function wt(t,e){try{const n=bt(t),r=e.getItem(n);if(r){const t=JSON.parse(r);if("object"==typeof t&&null!=t)return t}}catch(t){}return null}function Et(t,e,n,r,o){var i;const a=bt(t),s=xt(e),u=null!==(i=wt(t,o))&&void 0!==i?i:{};u[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(a,JSON.stringify(u))}catch(t){console.error(t)}}function Ot({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce(((t,e)=>t+e),0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map((t=>`${t}%`)).join(", ")}`);if(!it(r,100))for(let t=0;t<e.length;t++){const e=n[t];et(null!=e,`No layout data found for index ${t}`);const o=100/r*e;n[t]=o}let o=0;for(let t=0;t<e.length;t++){const r=n[t];et(null!=r,`No layout data found for index ${t}`);const i=at({panelConstraints:e,panelIndex:t,size:r});r!=i&&(o+=r-i,n[t]=i)}if(!it(o,0))for(let t=0;t<e.length;t++){const r=n[t];et(null!=r,`No layout data found for index ${t}`);const i=at({panelConstraints:e,panelIndex:t,size:r+o});if(r!==i&&(o-=i-r,n[t]=i,it(o,0)))break}return n}const St={getItem:t=>(mt(St),St.getItem(t)),setItem:(t,e)=>{mt(St),St.setItem(t,e)}},Ct={};function Mt({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:i,id:a=null,onLayout:s=null,keyboardResizeBy:c=null,storage:p=St,style:y,tagName:v="div",...x}){const w=E(a),O=d(null),[S,C]=g(null),[M,P]=g([]),_=d({}),T=d(new Map),D=d(0),I=d({autoSaveId:t,direction:r,dragState:S,id:w,keyboardResizeBy:c,onLayout:s,storage:p}),L=d({layout:M,panelDataArray:[],panelDataArrayChanged:!1});d({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f(i,(()=>({getId:()=>I.current.id,getLayout:()=>{const{layout:t}=L.current;return t},setLayout:t=>{const{onLayout:e}=I.current,{layout:n,panelDataArray:r}=L.current,o=Ot({layout:t,panelConstraints:r.map((t=>t.constraints))});dt(n,o)||(P(o),L.current.layout=o,e&&e(o),yt(r,o,_.current))}})),[]),b((()=>{I.current.autoSaveId=t,I.current.direction=r,I.current.dragState=S,I.current.id=w,I.current.onLayout=s,I.current.storage=p})),function({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:o,panelGroupElement:i,setLayout:a}){d({didWarnAboutMissingResizeHandle:!1}),b((()=>{if(!i)return;const t=ct(n,i);for(let e=0;e<o.length-1;e++){const{valueMax:n,valueMin:i,valueNow:a}=ut({layout:r,panelsArray:o,pivotIndices:[e,e+1]}),s=t[e];if(null==s);else{const t=o[e];et(t,`No panel data found for index "${e}"`),s.setAttribute("aria-controls",t.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(i)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{t.forEach(((t,e)=>{t.removeAttribute("aria-controls"),t.removeAttribute("aria-valuemax"),t.removeAttribute("aria-valuemin"),t.removeAttribute("aria-valuenow")}))}}),[n,r,o,i]),l((()=>{if(!i)return;const t=e.current;et(t,"Eager values not found");const{panelDataArray:o}=t;et(null!=pt(n,i),`No group found for id "${n}"`);const s=ct(n,i);et(s,`No resize handles found for group id "${n}"`);const u=s.map((t=>{const e=t.getAttribute("data-panel-resize-handle-id");et(e,"Resize handle element has no handle id attribute");const[s,u]=function(t,e,n,r=document){var o,i,a,s;const u=ht(e,r),c=ct(t,r),l=u?c.indexOf(u):-1;return[null!==(o=null===(i=n[l])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=n[l+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,e,o,i);if(null==s||null==u)return()=>{};const c=t=>{if(!t.defaultPrevented)switch(t.key){case"Enter":{t.preventDefault();const u=o.findIndex((t=>t.id===s));if(u>=0){const t=o[u];et(t,`No panel data found for index ${u}`);const s=r[u],{collapsedSize:c=0,collapsible:l,minSize:f=0}=t.constraints;if(null!=s&&l){const t=st({delta:it(s,c)?f-c:c-s,initialLayout:r,panelConstraints:o.map((t=>t.constraints)),pivotIndices:ft(n,e,i),prevLayout:r,trigger:"keyboard"});r!==t&&a(t)}}break}}};return t.addEventListener("keydown",c),()=>{t.removeEventListener("keydown",c)}}));return()=>{u.forEach((t=>t()))}}),[i,t,e,n,r,o,a])}({committedValuesRef:I,eagerValuesRef:L,groupId:w,layout:M,panelDataArray:L.current.panelDataArray,setLayout:P,panelGroupElement:O.current}),l((()=>{const{panelDataArray:e}=L.current;if(t){if(0===M.length||M.length!==e.length)return;let n=Ct[t];null==n&&(n=function(t,e=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{t(...r)}),e)}}(Et,100),Ct[t]=n);const r=[...e],o=new Map(T.current);n(t,r,o,M,p)}}),[t,M,p]),l((()=>{}));const N=u((t=>{const{onLayout:e}=I.current,{layout:n,panelDataArray:r}=L.current;if(t.constraints.collapsible){const o=r.map((t=>t.constraints)),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=At(r,t,n);if(et(null!=a,`Panel size not found for panel "${t.id}"`),!ot(a,i)){T.current.set(t.id,a);const u=st({delta:jt(r,t)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});vt(n,u)||(P(u),L.current.layout=u,e&&e(u),yt(r,u,_.current))}}}),[]),R=u(((t,e)=>{const{onLayout:n}=I.current,{layout:r,panelDataArray:o}=L.current;if(t.constraints.collapsible){const i=o.map((t=>t.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:u=0,pivotIndices:c}=At(o,t,r),l=null!=e?e:u;if(ot(s,a)){const e=T.current.get(t.id),a=null!=e&&e>=l?e:l,u=st({delta:jt(o,t)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});vt(r,u)||(P(u),L.current.layout=u,n&&n(u),yt(o,u,_.current))}}}),[]),W=u((t=>{const{layout:e,panelDataArray:n}=L.current,{panelSize:r}=At(n,t,e);return et(null!=r,`Panel size not found for panel "${t.id}"`),r}),[]),q=u(((t,e)=>{const{panelDataArray:n}=L.current,r=jt(n,t);return function({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:o,precision:i=3}){const a=n[o];let s;return s=null==a?null!=t?t.toPrecision(i):"1":1===r.length?"1":a.toPrecision(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==e?"none":void 0}}({defaultSize:e,dragState:S,layout:M,panelData:n,panelIndex:r})}),[S,M]),H=u((t=>{const{layout:e,panelDataArray:n}=L.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=At(n,t,e);return et(null!=i,`Panel size not found for panel "${t.id}"`),!0===o&&ot(i,r)}),[]),Z=u((t=>{const{layout:e,panelDataArray:n}=L.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=At(n,t,e);return et(null!=i,`Panel size not found for panel "${t.id}"`),!o||rt(i,r)>0}),[]),V=u((t=>{const{panelDataArray:e}=L.current;e.push(t),e.sort(((t,e)=>{const n=t.order,r=e.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),L.current.panelDataArrayChanged=!0}),[]);b((()=>{if(L.current.panelDataArrayChanged){L.current.panelDataArrayChanged=!1;const{autoSaveId:t,onLayout:e,storage:n}=I.current,{layout:r,panelDataArray:o}=L.current;let i=null;if(t){const e=function(t,e,n){var r,o;return null!==(o=(null!==(r=wt(t,n))&&void 0!==r?r:{})[xt(e)])&&void 0!==o?o:null}(t,o,n);e&&(T.current=new Map(Object.entries(e.expandToSizes)),i=e.layout)}null==i&&(i=function({panelDataArray:t}){const e=Array(t.length),n=t.map((t=>t.constraints));let r=0,o=100;for(let i=0;i<t.length;i++){const t=n[i];et(t,`Panel constraints not found for index ${i}`);const{defaultSize:a}=t;null!=a&&(r++,e[i]=a,o-=a)}for(let i=0;i<t.length;i++){const a=n[i];et(a,`Panel constraints not found for index ${i}`);const{defaultSize:s}=a;if(null!=s)continue;const u=o/(t.length-r);r++,e[i]=u,o-=u}return e}({panelDataArray:o}));const a=Ot({layout:i,panelConstraints:o.map((t=>t.constraints))});dt(r,a)||(P(a),L.current.layout=a,e&&e(a),yt(o,a,_.current))}})),b((()=>{const t=L.current;return()=>{t.layout=[]}}),[]);const G=u((t=>function(e){e.preventDefault();const n=O.current;if(!n)return()=>null;const{direction:r,dragState:o,id:i,keyboardResizeBy:a,onLayout:s}=I.current,{layout:u,panelDataArray:c}=L.current,{initialLayout:l}=null!=o?o:{},f=ft(i,t,n);let p=function(t,e,n,r,o,i){if(j(t)){const e="horizontal"===n;let r=0;r=t.shiftKey?100:null!=o?o:10;let i=0;switch(t.key){case"ArrowDown":i=e?0:r;break;case"ArrowLeft":i=e?-r:0;break;case"ArrowRight":i=e?r:0;break;case"ArrowUp":i=e?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(t,e,n,r,o){const i="horizontal"===n,a=ht(e,o);et(a,`No resize handle element found for id "${e}"`);const s=a.getAttribute("data-panel-group-id");et(s,"Resize handle element has no group id attribute");let{initialCursorPosition:u}=r;const c=gt(n,t),l=pt(s,o);et(l,`No group element found for id "${s}"`);const f=l.getBoundingClientRect();return(c-u)/(i?f.width:f.height)*100}(t,e,n,r,i)}(e,t,r,o,a,n);if(0===p)return;const h="horizontal"===r;"rtl"===document.dir&&h&&(p=-p);const d=st({delta:p,initialLayout:null!=l?l:u,panelConstraints:c.map((t=>t.constraints)),pivotIndices:f,prevLayout:u,trigger:j(e)?"keyboard":"mouse-or-touch"}),g=!vt(u,d);var y,v;(A(e)||k(e))&&D.current!=p&&(D.current=p,y=t,v=g?0:h?p<0?B:F:p<0?z:U,$.set(y,v)),g&&(P(d),L.current.layout=d,s&&s(d),yt(c,d,_.current))}),[]),Y=u(((t,e)=>{const{onLayout:n}=I.current,{layout:r,panelDataArray:o}=L.current,i=o.map((t=>t.constraints)),{panelSize:a,pivotIndices:s}=At(o,t,r);et(null!=a,`Panel size not found for panel "${t.id}"`);const u=st({delta:jt(o,t)===o.length-1?a-e:e-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});vt(r,u)||(P(u),L.current.layout=u,n&&n(u),yt(o,u,_.current))}),[]),X=u(((t,e)=>{const{layout:n,panelDataArray:r}=L.current,{collapsedSize:o=0,collapsible:i}=e,{collapsedSize:a=0,collapsible:s,maxSize:u=100,minSize:c=0}=t.constraints,{panelSize:l}=At(r,t,n);null!=l&&(i&&s&&ot(l,o)?ot(o,a)||Y(t,a):l<c?Y(t,c):l>u&&Y(t,u))}),[Y]),K=u(((t,e)=>{const{direction:n}=I.current,{layout:r}=L.current;if(!O.current)return;const o=ht(t,O.current);et(o,`Drag handle element not found for id "${t}"`);const i=gt(n,e);C({dragHandleId:t,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})}),[]),J=u((()=>{C(null)}),[]),Q=u((t=>{const{panelDataArray:e}=L.current,n=jt(e,t);n>=0&&(e.splice(n,1),delete _.current[t.id],L.current.panelDataArrayChanged=!0)}),[]),tt=h((()=>({collapsePanel:N,direction:r,dragState:S,expandPanel:R,getPanelSize:W,getPanelStyle:q,groupId:w,isPanelCollapsed:H,isPanelExpanded:Z,reevaluatePanelConstraints:X,registerPanel:V,registerResizeHandle:G,resizePanel:Y,startDragging:K,stopDragging:J,unregisterPanel:Q,panelGroupElement:O.current})),[N,S,r,R,W,q,w,H,Z,X,V,G,Y,K,J,Q]),nt={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return o(m.Provider,{value:tt},o(v,{...x,children:e,className:n,id:a,ref:O,style:{...nt,...y},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":w}))}const Pt=s(((t,e)=>o(Mt,{...t,forwardedRef:e})));function jt(t,e){return t.findIndex((t=>t===e||t.id===e.id))}function At(t,e,n){const r=jt(t,e),o=r===t.length-1?[r-1,r]:[r,r+1],i=n[r];return{...e.constraints,panelSize:i,pivotIndices:o}}function kt({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:a,onDragging:s,onFocus:u,style:f={},tabIndex:p=0,tagName:h="div",...y}){var v,x;const w=d(null),O=d({onDragging:s});l((()=>{O.current.onDragging=s}));const S=c(m);if(null===S)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:C,groupId:M,registerResizeHandle:P,startDragging:j,stopDragging:A,panelGroupElement:k}=S,_=E(i),[T,D]=g("inactive"),[I,L]=g(!1),[N,R]=g(null),B=d({state:T});b((()=>{B.current.state=T})),l((()=>{if(n)R(null);else{const t=P(_);R((()=>t))}}),[n,_,P]);const F=null!==(v=null==r?void 0:r.coarse)&&void 0!==v?v:15,z=null!==(x=null==r?void 0:r.fine)&&void 0!==x?x:5;return l((()=>{if(n||null==N)return;const t=w.current;return et(t,"Element ref not attached"),function(t,e,n,r,o){var i;const{ownerDocument:a}=e,s={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:o},u=null!==(i=Z.get(a))&&void 0!==i?i:0;return Z.set(a,u+1),V.add(s),Q(),function(){var e;$.delete(t),V.delete(s);const n=null!==(e=Z.get(a))&&void 0!==e?e:1;if(Z.set(a,n-1),Q(),1===n&&Z.delete(a),q.includes(s)){const t=q.indexOf(s);t>=0&&q.splice(t,1),J()}}}(_,t,C,{coarse:F,fine:z},((t,e,n)=>{if(e)switch(t){case"down":{D("drag"),j(_,n);const{onDragging:t}=O.current;t&&t(!0);break}case"move":{const{state:t}=B.current;"drag"!==t&&D("hover"),N(n);break}case"up":{D("hover"),A();const{onDragging:t}=O.current;t&&t(!1);break}}else D("inactive")}))}),[F,C,n,z,P,_,N,j,A]),function({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){l((()=>{if(t||null==n||null==r)return;const o=ht(e,r);if(null==o)return;const i=t=>{if(!t.defaultPrevented)switch(t.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":t.preventDefault(),n(t);break;case"F6":{t.preventDefault();const n=o.getAttribute("data-panel-group-id");et(n,`No group element found for id "${n}"`);const i=ct(n,r),a=lt(n,e,r);et(null!==a,`No resize element found for id "${e}"`),i[t.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0].focus();break}}};return o.addEventListener("keydown",i),()=>{o.removeEventListener("keydown",i)}}),[r,t,e,n])}({disabled:n,handleId:_,resizeHandler:N,panelGroupElement:k}),o(h,{...y,children:t,className:e,id:i,onBlur:()=>{L(!1),null==a||a()},onFocus:()=>{L(!0),null==u||u()},ref:w,role:"separator",style:{touchAction:"none",userSelect:"none",...f},tabIndex:p,"data-panel-group-direction":C,"data-panel-group-id":M,"data-resize-handle":"","data-resize-handle-active":"drag"===T?"pointer":I?"keyboard":void 0,"data-resize-handle-state":T,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":_})}Mt.displayName="PanelGroup",Pt.displayName="forwardRef(PanelGroup)",kt.displayName="PanelResizeHandle"},24217:(t,e,n)=>{"use strict";n.d(e,{rU:()=>l});var r,o=n(8156),i=r||(r={});function a(t){var e=t.pathname;e=void 0===e?"/":e;var n=t.search;return n=void 0===n?"":n,t=void 0===(t=t.hash)?"":t,n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),t&&"#"!==t&&(e+="#"===t.charAt(0)?t:"#"+t),e}i.Pop="POP",i.Push="PUSH",i.Replace="REPLACE";var s=n(16782);function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}const c=["onClick","reloadDocument","replace","state","target","to"],l=(0,o.forwardRef)((function(t,e){let{onClick:n,reloadDocument:r,replace:i=!1,state:l,target:f,to:p}=t,h=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,c),d=(0,s.oQ)(p),g=function(t,e){let{target:n,replace:r,state:i}=void 0===e?{}:e,u=(0,s.s0)(),c=(0,s.TH)(),l=(0,s.WU)(t);return(0,o.useCallback)((e=>{if(!(0!==e.button||n&&"_self"!==n||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(e))){e.preventDefault();let n=!!r||a(c)===a(l);u(t,{replace:n,state:i})}}),[c,u,l,r,i,n,t])}(p,{replace:i,state:l,target:f});return(0,o.createElement)("a",u({},h,{href:d,onClick:function(t){n&&n(t),t.defaultPrevented||r||g(t)},ref:e,target:f}))}))},16782:(t,e,n)=>{"use strict";n.d(e,{oQ:()=>f,GV:()=>p,TH:()=>h,s0:()=>d,WU:()=>g});var r,o=n(8156),i=r||(r={});function a(t){var e={};if(t){var n=t.indexOf("#");0<=n&&(e.hash=t.substr(n),t=t.substr(0,n)),0<=(n=t.indexOf("?"))&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function s(t,e){if(!t)throw new Error(e)}i.Pop="POP",i.Push="PUSH",i.Replace="REPLACE";const u=(0,o.createContext)(null),c=(0,o.createContext)(null),l=(0,o.createContext)({outlet:null,matches:[]});function f(t){p()||s(!1);let{basename:e,navigator:n}=(0,o.useContext)(u),{hash:r,pathname:i,search:c}=g(t),l=i;if("/"!==e){let n=function(t){return""===t||""===t.pathname?"/":"string"==typeof t?a(t).pathname:t.pathname}(t),r=null!=n&&n.endsWith("/");l="/"===i?e+(r?"/":""):v([e,i])}return n.createHref({pathname:l,search:c,hash:r})}function p(){return null!=(0,o.useContext)(c)}function h(){return p()||s(!1),(0,o.useContext)(c).location}function d(){p()||s(!1);let{basename:t,navigator:e}=(0,o.useContext)(u),{matches:n}=(0,o.useContext)(l),{pathname:r}=h(),i=JSON.stringify(n.map((t=>t.pathnameBase))),a=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{a.current=!0})),(0,o.useCallback)((function(n,o){if(void 0===o&&(o={}),!a.current)return;if("number"==typeof n)return void e.go(n);let s=y(n,JSON.parse(i),r);"/"!==t&&(s.pathname=v([t,s.pathname])),(o.replace?e.replace:e.push)(s,o.state)}),[t,e,i,r])}function g(t){let{matches:e}=(0,o.useContext)(l),{pathname:n}=h(),r=JSON.stringify(e.map((t=>t.pathnameBase)));return(0,o.useMemo)((()=>y(t,JSON.parse(r),n)),[t,r,n])}function y(t,e,n){let r,o="string"==typeof t?a(t):t,i=""===t||""===o.pathname?"/":o.pathname;if(null==i)r=n;else{let t=e.length-1;if(i.startsWith("..")){let e=i.split("/");for(;".."===e[0];)e.shift(),t-=1;o.pathname=e.join("/")}r=t>=0?e[t]:"/"}let s=function(t,e){void 0===e&&(e="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof t?a(t):t,i=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:i,search:m(r),hash:b(o)}}(o,r);return i&&"/"!==i&&i.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}const v=t=>t.join("/").replace(/\/\/+/g,"/"),m=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",b=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:""},97317:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(7896),o=n(8156),i=n(39588),a=n(88137),s=n(33028),u=n(38777),c=n(59740),l=n(55454),f=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],p=function(){var t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(e.getOptionValue(t)).toLowerCase(),o=String(e.getOptionLabel(t)).toLowerCase();return r===n||o===n},h={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,e,n,r){return!(!t||e.some((function(e){return p(t,e,r)}))||n.some((function(e){return p(t,e,r)})))},getNewOptionData:function(t,e){return{label:e,value:t,__isNew__:!0}}};n(47111),n(84337);var d=(0,o.forwardRef)((function(t,e){var n,p,d,g,y,v,m,b,x,w,E,O,S,C,M,P,j,A,k,_,T,D,I,L,N,R,B,F,z=(p=(n=(0,a.u)(t)).allowCreateWhileLoading,d=void 0!==p&&p,g=n.createOptionPosition,y=void 0===g?"last":g,v=n.formatCreateLabel,m=void 0===v?h.formatCreateLabel:v,b=n.isValidNewOption,x=void 0===b?h.isValidNewOption:b,w=n.getNewOptionData,E=void 0===w?h.getNewOptionData:w,O=n.onCreateOption,S=n.options,C=void 0===S?[]:S,M=n.onChange,j=(P=(0,c.Z)(n,f)).getOptionValue,A=void 0===j?i.g:j,k=P.getOptionLabel,_=void 0===k?i.b:k,T=P.inputValue,D=P.isLoading,I=P.isMulti,L=P.value,N=P.name,R=(0,o.useMemo)((function(){return x(T,(0,l.H)(L),C,{getOptionValue:A,getOptionLabel:_})?E(T,m(T)):void 0}),[m,E,_,A,T,x,C,L]),B=(0,o.useMemo)((function(){return!d&&D||!R?C:"first"===y?[R].concat((0,u.Z)(C)):[].concat((0,u.Z)(C),[R])}),[d,y,D,R,C]),F=(0,o.useCallback)((function(t,e){if("select-option"!==e.action)return M(t,e);var n=Array.isArray(t)?t:[t];if(n[n.length-1]!==R)M(t,e);else if(O)O(T);else{var r=E(T,T),o={action:"create-option",name:N,option:r};M((0,l.D)(I,[].concat((0,u.Z)((0,l.H)(L)),[r]),r),o)}}),[E,T,I,N,R,O,M,L]),(0,s.Z)((0,s.Z)({},P),{},{options:B,onChange:F}));return o.createElement(i.S,(0,r.Z)({ref:e},z))}))},87935:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>Wt,bO:()=>$});var r=n(8156),o=n.n(r),i=n(95099),a=n.n(i),s=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty;function l(t,e){return function(n,r,o){return t(n,r,o)&&e(n,r,o)}}function f(t){return function(e,n,r){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r);var o=r.cache,i=o.get(e),a=o.get(n);if(i&&a)return i===n&&a===e;o.set(e,n),o.set(n,e);var s=t(e,n,r);return o.delete(e),o.delete(n),s}}function p(t){return s(t).concat(u(t))}var h=Object.hasOwn||function(t,e){return c.call(t,e)};function d(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var g="_owner",y=Object.getOwnPropertyDescriptor,v=Object.keys;function m(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function b(t,e){return d(t.getTime(),e.getTime())}function x(t,e,n){if(t.size!==e.size)return!1;for(var r,o,i={},a=t.entries(),s=0;(r=a.next())&&!r.done;){for(var u=e.entries(),c=!1,l=0;(o=u.next())&&!o.done;){var f=r.value,p=f[0],h=f[1],d=o.value,g=d[0],y=d[1];c||i[l]||!(c=n.equals(p,g,s,l,t,e,n)&&n.equals(h,y,p,g,t,e,n))||(i[l]=!0),l++}if(!c)return!1;s++}return!0}function w(t,e,n){var r,o=v(t),i=o.length;if(v(e).length!==i)return!1;for(;i-- >0;){if((r=o[i])===g&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!h(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1}return!0}function E(t,e,n){var r,o,i,a=p(t),s=a.length;if(p(e).length!==s)return!1;for(;s-- >0;){if((r=a[s])===g&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!h(e,r))return!1;if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;if(o=y(t,r),i=y(e,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function O(t,e){return d(t.valueOf(),e.valueOf())}function S(t,e){return t.source===e.source&&t.flags===e.flags}function C(t,e,n){if(t.size!==e.size)return!1;for(var r,o,i={},a=t.values();(r=a.next())&&!r.done;){for(var s=e.values(),u=!1,c=0;(o=s.next())&&!o.done;)u||i[c]||!(u=n.equals(r.value,o.value,r.value,o.value,t,e,n))||(i[c]=!0),c++;if(!u)return!1}return!0}function M(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var P=Array.isArray,j="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,A=Object.assign,k=Object.prototype.toString.call.bind(Object.prototype.toString),_=T();function T(t){void 0===t&&(t={});var e,n=t.circular,r=void 0!==n&&n,o=t.createInternalComparator,i=t.createState,a=t.strict,s=void 0!==a&&a,u=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,o={areArraysEqual:r?E:m,areDatesEqual:b,areMapsEqual:r?l(x,E):x,areObjectsEqual:r?E:w,arePrimitiveWrappersEqual:O,areRegExpsEqual:S,areSetsEqual:r?l(C,E):C,areTypedArraysEqual:r?E:M};if(n&&(o=A({},o,n(o))),e){var i=f(o.areArraysEqual),a=f(o.areMapsEqual),s=f(o.areObjectsEqual),u=f(o.areSetsEqual);o=A({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:u})}return o}(t),c=function(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,s=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,c,l){if(t===c)return!0;if(null==t||null==c||"object"!=typeof t||"object"!=typeof c)return t!=t&&c!=c;var f=t.constructor;if(f!==c.constructor)return!1;if(f===Object)return o(t,c,l);if(P(t))return e(t,c,l);if(null!=j&&j(t))return u(t,c,l);if(f===Date)return n(t,c,l);if(f===RegExp)return a(t,c,l);if(f===Map)return r(t,c,l);if(f===Set)return s(t,c,l);var p=k(t);return"[object Date]"===p?n(t,c,l):"[object RegExp]"===p?a(t,c,l):"[object Map]"===p?r(t,c,l):"[object Set]"===p?s(t,c,l):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof c.then&&o(t,c,l):"[object Arguments]"===p?o(t,c,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(t,c,l)}}(u);return function(t){var e=t.circular,n=t.comparator,r=t.createState,o=t.equals,i=t.strict;if(r)return function(t,a){var s=r(),u=s.cache,c=void 0===u?e?new WeakMap:void 0:u,l=s.meta;return n(t,a,{cache:c,equals:o,meta:l,strict:i})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return n(t,e,a)}}({circular:r,comparator:c,createState:i,equals:o?o(c):(e=c,function(t,n,r,o,i,a,s){return e(t,n,s)}),strict:s})}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>e?(t(o),n=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(r)}))}function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function N(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var o=function(t){if(Array.isArray(t))return t}(s=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(s)||function(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o.slice(1);return"number"==typeof i?void D(n.bind(null,a),i):(n(i),void D(n.bind(null,a)))}"object"===I(r)&&t(r),"function"==typeof r&&r()}var s};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function F(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function z(t,e,n){return(e=function(t){var e=function(t){if("object"!==R(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===R(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}T({strict:!0}),T({circular:!0}),T({circular:!0,strict:!0}),T({createInternalComparator:function(){return d}}),T({strict:!0,createInternalComparator:function(){return d}}),T({circular:!0,createInternalComparator:function(){return d}}),T({circular:!0,createInternalComparator:function(){return d},strict:!0});var U=["Webkit","Moz","O","ms"],W=["-webkit-","-moz-","-o-","-ms-"],q=["transform","transformOrigin","transition"],H=function(t){return t},Z=function(t,e){return Object.keys(e).reduce((function(n,r){return F(F({},n),{},z({},r,t(r,e[r])))}),{})},$=function(t){return Object.keys(t).reduce((function(t,e){return F(F({},t),function(t,e){if(-1===q.indexOf(t))return z({},t,Number.isNaN(e)?0:e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),o=e;return U.reduce((function(t,i,a){return n&&(o=e.replace(/(transform|transform-origin)/gim,"".concat(W[a],"$1"))),F(F({},t),{},z({},i+r,o))}),{})}(e,t[e]))}),t)},V=function(t,e,n){return t.map((function(t){return"".concat((r=t,r.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(n);var r})).join(",")};function G(t,e){if(t){if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(t,e):void 0}}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var X=1e-4,K=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},J=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},Q=function(t,e){return function(n){var r=K(t,e);return J(r,n)}},tt=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,o,i=e[0],a=e[1],s=e[2],u=e[3];if(1===e.length)switch(e[0]){case"linear":i=0,a=0,s=1,u=1;break;case"ease":i=.25,a=.1,s=.25,u=1;break;case"ease-in":i=.42,a=0,s=1,u=1;break;case"ease-out":i=.42,a=0,s=.58,u=1;break;case"ease-in-out":i=0,a=0,s=.58,u=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=(r=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),o=4,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(r,o)||G(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i=l[0],a=l[1],s=l[2],u=l[3]}}[i,s,a,u].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var f,p,h=Q(i,s),d=Q(a,u),g=(f=i,p=s,function(t){var e=K(f,p),n=[].concat(function(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||G(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.map((function(t,e){return t*e})).slice(1)),[0]);return J(n,t)}),y=function(t){for(var e,n=t>1?1:t,r=n,o=0;o<8;++o){var i=h(r)-n,a=g(r);if(Math.abs(i-n)<X||a<X)return d(r);r=(e=r-i/a)>1?1:e<0?0:e}return d(r)};return y.isStepper=!1,y};function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function nt(t){return function(t){if(Array.isArray(t))return st(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||at(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(n),!0).forEach((function(e){it(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function it(t,e,n){return(e=function(t){var e=function(t){if("object"!==et(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===et(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t,e){if(t){if("string"==typeof t)return st(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(t,e):void 0}}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ut=function(t,e,n){return t+(e-t)*n},ct=function(t){return t.from!==t.to},lt=function t(e,n,r){var o=Z((function(t,n){if(ct(n)){var r=(a=e(n.from,n.to,n.velocity),s=2,function(t){if(Array.isArray(t))return t}(a)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(a,s)||at(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return ot(ot({},n),{},{from:o,velocity:i})}var a,s;return n}),n);return r<1?Z((function(t,e){return ct(e)?ot(ot({},e),{},{velocity:ut(e.velocity,o[t].velocity,r),from:ut(e.from,o[t].from,r)}):e}),n):t(e,o,r-1)};function ft(t){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(t)}var pt=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ht(t){return function(t){if(Array.isArray(t))return dt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return dt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(n),!0).forEach((function(e){vt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vt(t,e,n){return(e=bt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,bt(r.key),r)}}function bt(t){var e=function(t){if("object"!==ft(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ft(e)?e:String(e)}function xt(t,e){return xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xt(t,e)}function wt(t,e){if(e&&("object"===ft(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Et(t)}function Et(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ot(t){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(t)}var St=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&xt(t,e)}(u,t);var e,n,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ot(i);if(a){var n=Ot(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return wt(this,t)});function u(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);var r=(n=s.call(this,t,e)).props,o=r.isActive,i=r.attributeName,a=r.from,c=r.to,l=r.steps,f=r.children,p=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(Et(n)),n.changeStyle=n.changeStyle.bind(Et(n)),!o||p<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:c}),wt(n);if(l&&l.length)n.state={style:l[0].style};else if(a){if("function"==typeof f)return n.state={style:a},wt(n);n.state={style:i?vt({},i,a):a}}else n.state={style:{}};return n}return e=u,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isActive,r=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,s=e.from,u=this.state.style;if(r)if(n){if(!(_(t.to,a)&&t.canBegin&&t.isActive)){var c=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var l=c||i?s:t.to;if(this.state&&u){var f={style:o?vt({},o,l):l};(o&&[o]!==l||!o&&u!==l)&&this.setState(f)}this.runAnimation(yt(yt({},this.props),{},{from:l,begin:0}))}}else{var p={style:o?vt({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,o=t.duration,i=t.easing,a=t.begin,s=t.onAnimationEnd,u=t.onAnimationStart,c=function(t,e,n,r,o){var i,a,s,u,c=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),l=c.reduce((function(n,r){return ot(ot({},n),{},it({},r,[t[r],e[r]]))}),{}),f=c.reduce((function(n,r){return ot(ot({},n),{},it({},r,{from:t[r],velocity:0,to:e[r]}))}),{}),p=-1,h=function(){return null};return h=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;f=lt(n,f,i),o(ot(ot(ot({},t),e),Z((function(t,e){return e.from}),f))),s=r,Object.values(f).filter(ct).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/r,s=Z((function(t,e){return ut.apply(void 0,nt(e).concat([n(a)]))}),l);if(o(ot(ot(ot({},t),e),s)),a<1)p=requestAnimationFrame(h);else{var c=Z((function(t,e){return ut.apply(void 0,nt(e).concat([n(1)]))}),l);o(ot(ot(ot({},t),e),c))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}}(n,r,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return tt(r);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,o=void 0===r?8:r,i=t.dt,a=void 0===i?17:i,s=function(t,e,r){var i=r+(-(t-e)*n-r*o)*a/1e3,s=r*a/1e3+t;return Math.abs(s-e)<X&&Math.abs(i)<X?[e,0]:[s,i]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return tt(r)}return"function"==typeof r?r:null}(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=c()},o,s])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,o=t.onAnimationStart,i=n[0],a=i.style,s=i.duration,u=void 0===s?0:s;return this.manager.start([o].concat(ht(n.reduce((function(t,r,o){if(0===o)return t;var i=r.duration,a=r.easing,s=void 0===a?"ease":a,u=r.style,c=r.properties,l=r.onAnimationEnd,f=o>0?n[o-1]:r,p=c||Object.keys(u);if("function"==typeof s||"spring"===s)return[].concat(ht(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:s}),i]);var h=V(p,i,s),d=yt(yt(yt({},f.style),u),{},{transition:h});return[].concat(ht(t),[d,i,l]).filter(H)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=N());var e=t.begin,n=t.duration,r=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,s=t.onAnimationEnd,u=t.steps,c=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof c&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=r?vt({},r,o):o,p=V(Object.keys(f),n,i);l.start([a,e,yt(yt({},f),{},{transition:p}),n,s])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),a=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,pt)),s=r.Children.count(e),u=$(this.state.style);if("function"==typeof e)return e(u);if(!i||0===s||n<=0)return e;var c=function(t){var e=t.props,n=e.style,o=void 0===n?{}:n,i=e.className;return(0,r.cloneElement)(t,yt(yt({},a),{},{style:yt(yt({},o),u),className:i}))};return 1===s?c(r.Children.only(e)):o().createElement("div",null,r.Children.map(e,(function(t){return c(t)})))}}])&&mt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.PureComponent);St.displayName="Animate",St.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},St.propTypes={from:a().oneOfType([a().object,a().string]),to:a().oneOfType([a().object,a().string]),attributeName:a().string,duration:a().number,begin:a().number,easing:a().oneOfType([a().string,a().func]),steps:a().arrayOf(a().shape({duration:a().number.isRequired,style:a().object.isRequired,easing:a().oneOfType([a().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),a().func]),properties:a().arrayOf("string"),onAnimationEnd:a().func})),children:a().oneOfType([a().node,a().func]),isActive:a().bool,canBegin:a().bool,onAnimationEnd:a().func,shouldReAnimate:a().bool,onAnimationStart:a().func,onAnimationReStart:a().func};const Ct=St;var Mt=n(44824),Pt=["children","appearOptions","enterOptions","leaveOptions"];function jt(t){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(t)}function At(){return At=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},At.apply(this,arguments)}function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach((function(e){Nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Rt(r.key),r)}}function Dt(t,e){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dt(t,e)}function It(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lt(t){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lt(t)}function Nt(t,e,n){return(e=Rt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rt(t){var e=function(t){if("object"!==jt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jt(e)?e:String(e)}void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)});var Bt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(n)?n:0},Ft=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&Dt(t,e)}(u,t);var e,n,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Lt(i);if(a){var n=Lt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===jt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return It(t)}(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),Nt(It(t=s.call(this)),"handleEnter",(function(e,n){var r=t.props,o=r.appearOptions,i=r.enterOptions;t.handleStyleActive(n?o:i)})),Nt(It(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=u,(n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(_t(_t({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return Bt(e)+Bt(n)+Bt(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,i=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,Pt));return o().createElement(Mt.Transition,At({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return o().createElement(Ct,t.state,r.Children.only(n))}))}}])&&Tt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.Component);Ft.propTypes={appearOptions:a().object,enterOptions:a().object,leaveOptions:a().object,children:a().element};const zt=Ft;function Ut(t){var e=t.component,n=t.children,i=t.appear,a=t.enter,s=t.leave;return o().createElement(Mt.TransitionGroup,{component:e},r.Children.map(n,(function(t,e){return o().createElement(zt,{appearOptions:i,enterOptions:a,leaveOptions:s,key:"child-".concat(e)},t)})))}Ut.propTypes={appear:a().object,enter:a().object,leave:a().object,children:a().oneOfType([a().array,a().element]),component:a().any},Ut.defaultProps={component:"span"};const Wt=Ct},46006:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0,function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(95099));var r=s(n(2196)),o=s(n(24812)),i=s(n(8156)),a=s(n(24815));function s(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}n(22911);var c=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,r.default)(t,e)}))},l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,o.default)(t,e)}))},f=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).onEnter=function(t,n){var r=e.getClassNames(n?"appear":"enter").className;e.removeClasses(t,"exit"),c(t,r),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.getClassNames(n?"appear":"enter").activeClassName;e.reflowAndAddClass(t,r),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.getClassNames("appear").doneClassName,o=e.getClassNames("enter").doneClassName,i=n?r+" "+o:o;e.removeClasses(t,n?"appear":"enter"),c(t,i),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),c(t,n),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,n),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),c(t,n),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+t:n[t];return{className:o,activeClassName:r?o+"-active":n[t+"Active"],doneClassName:r?o+"-done":n[t+"Done"]}},e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.removeClasses=function(t,e){var n=this.getClassNames(e),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&l(t,r),o&&l(t,o),i&&l(t,i)},o.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,c(t,e))},o.render=function(){var t=u({},this.props);return delete t.classNames,i.default.createElement(a.default,u({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;e.default=p,t.exports=e.default},639:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0,a(n(95099));var r=a(n(8156)),o=n(47111),i=a(n(49634));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){var e,n;function a(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).handleEnter=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEnter",0,n)},e.handleEntering=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntering",0,n)},e.handleEntered=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onEntered",0,n)},e.handleExit=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExit",1,n)},e.handleExiting=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExiting",1,n)},e.handleExited=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.handleLifecycle("onExited",1,n)},e}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(t,e,n){var i,a=this.props.children,s=r.default.Children.toArray(a)[e];s.props[t]&&(i=s.props)[t].apply(i,n),this.props[t]&&this.props[t]((0,o.findDOMNode)(this))},s.render=function(){var t=this.props,e=t.children,n=t.in,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["children","in"]),a=r.default.Children.toArray(e),s=a[0],u=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var u=s;e.default=u,t.exports=e.default},24815:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(95099)),o=s(n(8156)),i=s(n(47111)),a=n(46847);function s(t){return t&&t.__esModule?t:{default:t}}n(22911);var u="unmounted";e.UNMOUNTED=u;var c="exited";e.EXITED=c;var l="entering";e.ENTERING=l;var f="entered";e.ENTERED=f;var p="exiting";e.EXITING=p;var h=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=c,r.appearStatus=l):o=f:o=e.unmountOnExit||e.mountOnEnter?u:c,r.state={status:o},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:c}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==f&&(e=l):n!==l&&n!==f||(e=p)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=i.default.findDOMNode(this);e===l?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},a.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts(),a=o?i.appear:i.enter;e||r?(this.props.onEnter(t,o),this.safeSetState({status:l},(function(){n.props.onEntering(t,o),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:f},(function(){n.props.onEntered(t,o)}))}))}))):this.safeSetState({status:f},(function(){n.props.onEntered(t)}))},a.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:p},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(t,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function d(){}h.contextTypes={transitionGroup:r.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var g=(0,a.polyfill)(h);e.default=g},49634:(t,e,n)=>{"use strict";e.__esModule=!0,e.default=void 0;var r=s(n(95099)),o=s(n(8156)),i=n(46847),a=n(68620);function s(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var l=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},f=function(t){var e,n;function r(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(c(c(r)));return r.state={handleExited:o,firstRender:!0},r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,e){var n=e.children,r=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,r):(0,a.getNextChildMapping)(t,n,r),firstRender:!1}},i.handleExited=function(t,e){var n=(0,a.getChildMapping)(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=u({},e.children);return delete n[t.key],{children:n}})))},i.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["component","childFactory"]),i=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?i:o.default.createElement(e,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,i.polyfill)(f);e.default=p,t.exports=e.default},44824:(t,e,n)=>{"use strict";var r=s(n(46006)),o=s(n(639)),i=s(n(49634)),a=s(n(24815));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},68620:(t,e,n)=>{"use strict";e.__esModule=!0,e.getChildMapping=o,e.mergeChildMappings=i,e.getInitialChildMapping=function(t,e){return o(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:a(n,"appear",t),enter:a(n,"enter",t),exit:a(n,"exit",t)})}))},e.getNextChildMapping=function(t,e,n){var s=o(t.children),u=i(e,s);return Object.keys(u).forEach((function(o){var i=u[o];if((0,r.isValidElement)(i)){var c=o in e,l=o in s,f=e[o],p=(0,r.isValidElement)(f)&&!f.props.in;!l||c&&!p?l||!c||p?l&&c&&(0,r.isValidElement)(f)&&(u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",t),enter:a(i,"enter",t)})):u[o]=(0,r.cloneElement)(i,{in:!1}):u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",t),enter:a(i,"enter",t)})}})),u};var r=n(8156);function o(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function i(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in e){if(o[u])for(r=0;r<o[u].length;r++){var c=o[u][r];s[o[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}function a(t,e,n){return null!=n[e]?n[e]:t.props[e]}},22911:(t,e,n)=>{"use strict";var r;e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0,(r=n(95099))&&r.__esModule,e.timeoutsShape=null,e.classNamesShape=null},42400:(t,e,n)=>{"use strict";n.d(e,{$:()=>et});var r=n(8156),o=n.n(r),i=n(75877),a=n(87935),s=n(18149),u=n.n(s),c=n(1842),l=n.n(c),f=n(84618),p=n(18694),h=n(11011),d=n(29259),g=n.n(d),y=n(61049),v=n.n(y),m=n(56974),b=n.n(m),x=n(81224),w=n(79376),E=n(24847);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}var S=["valueAccessor"],C=["data","dataKey","clockWise","id","textBreakAll"];function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P(){return P=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},P.apply(this,arguments)}function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==O(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===O(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var _=function(t){return Array.isArray(t.value)?b()(t.value):t.value};function T(t){var e=t.valueAccessor,n=void 0===e?_:e,r=k(t,S),i=r.data,a=r.dataKey,s=r.clockWise,u=r.id,c=r.textBreakAll,p=k(r,C);return i&&i.length?o().createElement(f.m,{className:"recharts-label-list"},i.map((function(t,e){var r=l()(a)?n(t,e):(0,E.F$)(t&&t.payload,a),i=l()(u)?{}:{id:"".concat(u,"-").concat(e)};return o().createElement(x._,P({},(0,w.L6)(t,!0),p,i,{parentViewBox:t.parentViewBox,value:r,textBreakAll:c,viewBox:x._.parseViewBox(l()(s)?t:A(A({},t),{},{clockWise:s})),key:"label-".concat(e),index:e}))}))):null}T.displayName="LabelList",T.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var i,a=t.children,s=(0,w.NN)(a,T).map((function(t,n){return(0,r.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));return n?[function(t,e){return t?!0===t?o().createElement(T,{key:"labelList-implicit",data:e}):o().isValidElement(t)||v()(t)?o().createElement(T,{key:"labelList-implicit",data:e,content:t}):g()(t)?o().createElement(T,P({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(function(t){if(Array.isArray(t))return M(t)}(i=s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):s};var D=n(15027),I=n(79499),L=n(21442),N=n(29742);function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}var B=["x","y"];function F(){return F=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F.apply(this,arguments)}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==R(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===R(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function W(t,e){var n=t.x,r=t.y,o=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,B),i="".concat(n),a=parseInt(i,10),s="".concat(r),u=parseInt(s,10),c="".concat(e.height||o.height),l=parseInt(c,10),f="".concat(e.width||o.width),p=parseInt(f,10);return U(U(U(U(U({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:l,width:p,name:e.name,radius:e.radius})}function q(t){return o().createElement(N.bn,F({shapeType:"rectangle",propTransformer:W,activeClassName:"recharts-active-bar"},t))}var H=["value","background"];function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}function $(){return $=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$.apply(this,arguments)}function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){Q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tt(r.key),r)}}function X(t,e){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},X(t,e)}function K(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},J(t)}function Q(t,e,n){return(e=tt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tt(t){var e=function(t){if("object"!==Z(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Z(e)?e:String(e)}var et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&X(t,e)}(d,t);var e,n,r,s,c,h=(s=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=J(s);if(c){var n=J(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Z(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return K(t)}(this,t)});function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Q(K(t=h.call.apply(h,[this].concat(n))),"state",{isAnimationFinished:!1}),Q(K(t),"id",(0,D.EL)("recharts-bar-")),Q(K(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),Q(K(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return e=d,r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(n=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,s=n.activeBar,u=(0,w.L6)(this.props);return t&&t.map((function(t,n){var c=n===a,l=c?s:r,p=G(G(G({},u),t),{},{isActive:c,option:l,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return o().createElement(f.m,$({className:"recharts-bar-rectangle"},(0,L.bw)(e.props,t,n),{key:"rectangle-".concat(n)}),o().createElement(q,p))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.layout,i=e.isAnimationActive,s=e.animationBegin,u=e.animationDuration,c=e.animationEasing,l=e.animationId,p=this.state.prevData;return o().createElement(a.ZP,{begin:s,duration:u,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,a=n.map((function(t,e){var n=p&&p[e];if(n){var o=(0,D.k4)(n.x,t.x),a=(0,D.k4)(n.y,t.y),s=(0,D.k4)(n.width,t.width),u=(0,D.k4)(n.height,t.height);return G(G({},t),{},{x:o(i),y:a(i),width:s(i),height:u(i)})}if("horizontal"===r){var c=(0,D.k4)(0,t.height)(i);return G(G({},t),{},{y:t.y+t.height-c,height:c})}var l=(0,D.k4)(0,t.width)(i);return G(G({},t),{},{width:l})}));return o().createElement(f.m,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&u()(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,n=e.data,r=e.dataKey,i=e.activeIndex,a=(0,w.L6)(this.props.background);return n.map((function(e,n){e.value;var s=e.background,u=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,H);if(!s)return null;var c=G(G(G(G(G({},u),{},{fill:"#eee"},s),a),(0,L.bw)(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return o().createElement(q,$({option:t.props.background,isActive:n===i},c))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,s=n.layout,u=n.children,c=(0,w.NN)(u,p.W);if(!c)return null;var l="vertical"===s?r[0].height/2:r[0].width/2,h=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:(0,E.F$)(t,e)}},d={clipPath:t?"url(#clipPath-".concat(e,")"):null};return o().createElement(f.m,d,c.map((function(t,e){return o().cloneElement(t,{key:"error-bar-".concat(e),data:r,xAxis:i,yAxis:a,layout:s,offset:l,dataPointFormatter:h})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,a=t.xAxis,s=t.yAxis,u=t.left,c=t.top,p=t.width,h=t.height,d=t.isAnimationActive,g=t.background,y=t.id;if(e||!n||!n.length)return null;var v=this.state.isAnimationFinished,m=(0,i.Z)("recharts-bar",r),b=a&&a.allowDataOverflow,x=s&&s.allowDataOverflow,w=b||x,E=l()(y)?this.id:y;return o().createElement(f.m,{className:m},b||x?o().createElement("defs",null,o().createElement("clipPath",{id:"clipPath-".concat(E)},o().createElement("rect",{x:b?u:u-p/2,y:x?c:c-h/2,width:b?p:2*p,height:x?h:2*h}))):null,o().createElement(f.m,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(E,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,E),(!d||v)&&T.renderCallByParent(this.props,n))}}])&&Y(e.prototype,n),r&&Y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.PureComponent);Q(et,"displayName","Bar"),Q(et,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!I.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Q(et,"getComposedData",(function(t){var e=t.props,n=t.item,r=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,s=t.xAxisTicks,u=t.yAxisTicks,c=t.stackedData,l=t.dataStartIndex,f=t.displayedData,p=t.offset,d=(0,E.Bu)(r,n);if(!d)return null;var g=e.layout,y=n.props,v=y.dataKey,m=y.children,b=y.minPointSize,x="horizontal"===g?a:i,O=c?x.scale.domain():null,S=(0,E.Yj)({numericAxis:x}),C=(0,w.NN)(m,h.b),M=f.map((function(t,e){var r,f,p,h,y,m;if(c?r=(0,E.Vv)(c[l+e],O):(r=(0,E.F$)(t,v),Array.isArray(r)||(r=[S,r])),"horizontal"===g){var x,w=[a.scale(r[0]),a.scale(r[1])],M=w[0],P=w[1];f=(0,E.Fy)({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:t,index:e}),p=null!==(x=null!=P?P:M)&&void 0!==x?x:void 0,h=d.size;var j=M-P;if(y=Number.isNaN(j)?0:j,m={x:f,y:a.y,width:h,height:a.height},Math.abs(b)>0&&Math.abs(y)<Math.abs(b)){var A=(0,D.uY)(y||b)*(Math.abs(b)-Math.abs(y));p-=A,y+=A}}else{var k=[i.scale(r[0]),i.scale(r[1])],_=k[0],T=k[1];f=_,p=(0,E.Fy)({axis:a,ticks:u,bandSize:o,offset:d.offset,entry:t,index:e}),h=T-_,y=d.size,m={x:i.x,y:p,width:i.width,height:y},Math.abs(b)>0&&Math.abs(h)<Math.abs(b)&&(h+=(0,D.uY)(h||b)*(Math.abs(b)-Math.abs(h)))}return G(G(G({},t),{},{x:f,y:p,width:h,height:y,value:c?r:r[1],payload:t,background:m},C&&C[e]&&C[e].props),{},{tooltipPayload:[(0,E.Qo)(n,t)],tooltipPosition:{x:f+h/2,y:p+y/2}})}));return G({data:M,layout:g},p)}))},55484:(t,e,n)=>{"use strict";n.d(e,{q:()=>w});var r=n(8156),o=n.n(r),i=n(61049),a=n.n(i),s=n(15027),u=n(79376),c=["x1","y1","x2","y2","key"],l=["offset"];function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function h(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function b(t,e,n){return(e=x(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t){var e=function(t){if("object"!==f(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===f(e)?e:String(e)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&v(t,e)}(x,t);var e,n,r,i,d,b=(i=x,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=m(i);if(d){var n=m(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function x(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,x),b.apply(this,arguments)}return e=x,r=[{key:"renderLineItem",value:function(t,e){var n;if(o().isValidElement(t))n=o().cloneElement(t,e);else if(a()(t))n=t(e);else{var r=e.x1,i=e.y1,s=e.x2,f=e.y2,d=e.key,g=h(e,c),y=(0,u.L6)(g),v=(y.offset,h(y,l));n=o().createElement("line",p({},v,{x1:r,y1:i,x2:s,y2:f,fill:"none",key:d}))}return n}}],(n=[{key:"renderHorizontal",value:function(t){var e=this,n=this.props,r=n.x,i=n.width,a=n.horizontal;if(!t||!t.length)return null;var s=t.map((function(t,n){var o=g(g({},e.props),{},{x1:r,y1:t,x2:r+i,y2:t,key:"line-".concat(n),index:n});return x.renderLineItem(a,o)}));return o().createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(t){var e=this,n=this.props,r=n.y,i=n.height,a=n.vertical;if(!t||!t.length)return null;var s=t.map((function(t,n){var o=g(g({},e.props),{},{x1:t,y1:r,x2:t,y2:r+i,key:"line-".concat(n),index:n});return x.renderLineItem(a,o)}));return o().createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(t){var e=this.props.verticalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,u=n.height,c=t.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==c[0]&&c.unshift(0);var l=c.map((function(t,n){var l=c[n+1]?c[n+1]-t:i+s-t;if(l<=0)return null;var f=n%e.length;return o().createElement("rect",{key:"react-".concat(n),x:t,y:a,width:l,height:u,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(t){var e=this.props.horizontalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,s=n.width,u=n.height,c=t.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==c[0]&&c.unshift(0);var l=c.map((function(t,n){var l=c[n+1]?c[n+1]-t:a+u-t;if(l<=0)return null;var f=n%e.length;return o().createElement("rect",{key:"react-".concat(n),y:t,x:i,height:l,width:s,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var e=this.props,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,s=e.height;return o().createElement("rect",{x:r,y:i,width:a,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,u=t.horizontal,c=t.vertical,l=t.horizontalCoordinatesGenerator,f=t.verticalCoordinatesGenerator,p=t.xAxis,h=t.yAxis,d=t.offset,y=t.chartWidth,v=t.chartHeight,m=t.syncWithTicks,b=t.horizontalValues,x=t.verticalValues;if(!(0,s.hj)(r)||r<=0||!(0,s.hj)(i)||i<=0||!(0,s.hj)(e)||e!==+e||!(0,s.hj)(n)||n!==+n)return null;var w=this.props,E=w.horizontalPoints,O=w.verticalPoints;if((!E||!E.length)&&a()(l)){var S=b&&b.length;E=l({yAxis:h?g(g({},h),{},{ticks:S?b:h.ticks}):void 0,width:y,height:v,offset:d},!!S||m)}if((!O||!O.length)&&a()(f)){var C=x&&x.length;O=f({xAxis:p?g(g({},p),{},{ticks:C?x:p.ticks}):void 0,width:y,height:v,offset:d},!!C||m)}return o().createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(E),c&&this.renderVertical(O),u&&this.renderHorizontalStripes(E),c&&this.renderVerticalStripes(O))}}])&&y(e.prototype,n),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),x}(r.PureComponent);b(w,"displayName","CartesianGrid"),b(w,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]})},18694:(t,e,n)=>{"use strict";n.d(e,{W:()=>l});var r=n(8156),o=n.n(r),i=n(84618),a=n(79376),s=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){var e=t.offset,n=t.layout,r=t.width,l=t.dataKey,f=t.data,p=t.dataPointFormatter,h=t.xAxis,d=t.yAxis,g=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,s),y=(0,a.L6)(g),v=f.map((function(t,a){var s=p(t,l),f=s.x,g=s.y,v=s.value,m=s.errorVal;if(!m)return null;var b,x,w=[];if(Array.isArray(m)){var E=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(m,2);b=E[0],x=E[1]}else b=x=m;if("vertical"===n){var O=h.scale,S=g+e,C=S+r,M=S-r,P=O(v-b),j=O(v+x);w.push({x1:j,y1:C,x2:j,y2:M}),w.push({x1:P,y1:S,x2:j,y2:S}),w.push({x1:P,y1:C,x2:P,y2:M})}else if("horizontal"===n){var A=d.scale,k=f+e,_=k-r,T=k+r,D=A(v-b),I=A(v+x);w.push({x1:_,y1:I,x2:T,y2:I}),w.push({x1:k,y1:D,x2:k,y2:I}),w.push({x1:_,y1:D,x2:T,y2:D})}return o().createElement(i.m,u({className:"recharts-errorBar",key:"bar-".concat(a)},y),w.map((function(t,e){return o().createElement("line",u({},t,{key:"line-".concat(e)}))})))}));return o().createElement(i.m,{className:"recharts-errorBars"},v)}l.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},l.displayName="ErrorBar"},25556:(t,e,n)=>{"use strict";n.d(e,{K:()=>r});var r=function(){return null};r.displayName="XAxis",r.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}},3131:(t,e,n)=>{"use strict";n.d(e,{B:()=>r});var r=function(){return null};r.displayName="YAxis",r.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}},19406:(t,e,n)=>{"use strict";n.d(e,{v:()=>Yn});var r=n(8156),o=n.n(r),i=n(1842),a=n.n(i),s=n(61049),u=n.n(s),c=n(2689),l=n.n(c),f=n(72579),p=n.n(f),h=n(829),d=n.n(h),g=n(12436),y=n.n(g),v=n(55281),m=n.n(v),b=n(39794),x=n.n(b),w=n(75877),E=n(22089);function O(t){var e=t.cx,n=t.cy,r=t.radius,o=t.startAngle,i=t.endAngle;return{points:[(0,E.op)(e,n,r,o),(0,E.op)(e,n,r,i)],cx:e,cy:n,radius:r,startAngle:o,endAngle:i}}var S=n(15027),C=n(88089),M=n(79499),P=n(34519),j=n.n(P),A=n(24847),k=n(79376),_=n(42400);function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,R(r.key),r)}}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N(t,e,n){return(e=R(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function R(t){var e=function(t){if("object"!==T(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===T(e)?e:String(e)}var B=function(t,e){var n=t.x,r=t.y,o=e.x,i=e.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},F=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,n,r;return e=t,n=[{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(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],r=[{key:"create",value:function(e){return new t(e)}}],n&&D(e.prototype,n),r&&D(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();N(F,"EPS",1e-4);var z=function(t){var e=Object.keys(t).reduce((function(e,n){return L(L({},e),{},N({},n,F.create(t[n])))}),{});return L(L({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return j()(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:o})}))},isInRange:function(t){return x()(t,(function(t,n){return e[n].isInRange(t)}))}})};function U(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],o=0;o<t.length;o+=e){if(void 0!==n&&!0!==n(t[o]))return;r.push(t[o])}return r}function W(t,e,n,r,o){if(t*e<t*r||t*e>t*o)return!1;var i=n();return t*(e-t*i/2-r)>=0&&t*(e+t*i/2-o)<=0}function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==q(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===q(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $(t,e,n){var r=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,s=t.orientation,c=t.interval,l=t.tickFormatter,f=t.unit,p=t.angle;if(!o||!o.length||!r)return[];if((0,S.hj)(c)||M.x.isSsr)return function(t,e){return U(t,e+1)}(o,"number"==typeof c&&(0,S.hj)(c)?c:0);var h=[],d="top"===s||"bottom"===s?"width":"height",g=f&&"width"===d?(0,C.xE)(f,{fontSize:e,letterSpacing:n}):{width:0,height:0},y=function(t,r){var o=u()(l)?l(t.value,r):t.value;return"width"===d?function(t,e,n){return function(t){var e=t.width,n=t.height,r=((arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)%180+180)%180*Math.PI/180,o=Math.atan(n/e),i=r>o&&r<Math.PI-o?n/Math.sin(r):e/Math.cos(r);return Math.abs(i)}({width:t.width+e.width,height:t.height+e.height},n)}((0,C.xE)(o,{fontSize:e,letterSpacing:n}),g,p):(0,C.xE)(o,{fontSize:e,letterSpacing:n})[d]},v=o.length>=2?(0,S.uY)(o[1].coordinate-o[0].coordinate):1,m=function(t,e,n){var r="width"===n,o=t.x,i=t.y,a=t.width,s=t.height;return 1===e?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}(i,v,d);return"equidistantPreserveStart"===c?function(t,e,n,r,o){for(var i,a=(r||[]).slice(),s=e.start,u=e.end,c=0,l=1,f=s,p=function(){var e=null==r?void 0:r[c];if(void 0===e)return{v:U(r,l)};var i,a=c,p=function(){return void 0===i&&(i=n(e,a)),i},h=e.coordinate,d=0===c||W(t,h,p,f,u);d||(c=0,f=s,l+=1),d&&(f=h+t*(p()/2+o),c+=l)};l<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(h="preserveStart"===c||"preserveStartEnd"===c?function(t,e,n,r,o,i){var a=(r||[]).slice(),s=a.length,u=e.start,c=e.end;if(i){var l=r[s-1],f=n(l,s-1),p=t*(l.coordinate+t*f/2-c);a[s-1]=l=Z(Z({},l),{},{tickCoord:p>0?l.coordinate-p*t:l.coordinate}),W(t,l.tickCoord,(function(){return f}),u,c)&&(c=l.tickCoord-t*(f/2+o),a[s-1]=Z(Z({},l),{},{isShow:!0}))}for(var h=i?s-1:s,d=function(e){var r,i=a[e],s=function(){return void 0===r&&(r=n(i,e)),r};if(0===e){var l=t*(i.coordinate-t*s()/2-u);a[e]=i=Z(Z({},i),{},{tickCoord:l<0?i.coordinate-l*t:i.coordinate})}else a[e]=i=Z(Z({},i),{},{tickCoord:i.coordinate});W(t,i.tickCoord,s,u,c)&&(u=i.tickCoord+t*(s()/2+o),a[e]=Z(Z({},i),{},{isShow:!0}))},g=0;g<h;g++)d(g);return a}(v,m,y,o,a,"preserveStartEnd"===c):function(t,e,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=e.start,u=e.end,c=function(e){var r,c=i[e],l=function(){return void 0===r&&(r=n(c,e)),r};if(e===a-1){var f=t*(c.coordinate+t*l()/2-u);i[e]=c=Z(Z({},c),{},{tickCoord:f>0?c.coordinate-f*t:c.coordinate})}else i[e]=c=Z(Z({},c),{},{tickCoord:c.coordinate});W(t,c.tickCoord,l,s,u)&&(u=c.tickCoord-t*(l()/2+o),i[e]=Z(Z({},c),{},{isShow:!0}))},l=a-1;l>=0;l--)c(l);return i}(v,m,y,o,a),h.filter((function(t){return t.isShow})))}var V=n(19617),G=n(84618),Y=n(27741),X=n(97245);function K(){}function J(t,e,n){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+n)/6)}function Q(t){this._context=t}function tt(t){this._context=t}function et(t){this._context=t}Q.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:J(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:J(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},tt.prototype={areaStart:K,areaEnd:K,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)}},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:J(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},et.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||0!==this._line&&3===this._point)&&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 n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:J(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class nt{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function rt(t){this._context=t}function ot(t){this._context=t}function it(t){return new ot(t)}function at(t){return t<0?-1:1}function st(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(at(i)+at(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function ut(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ct(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,s=(i-r)/3;t._context.bezierCurveTo(r+s,o+s*e,i-s,a-s*n,i,a)}function lt(t){this._context=t}function ft(t){this._context=new pt(t)}function pt(t){this._context=t}function ht(t){this._context=t}function dt(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=o[e]/i[e-1],i[e]-=n,a[e]-=n*a[e-1];for(o[r-1]=a[r-1]/i[r-1],e=r-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function gt(t,e){this._context=t,this._t=e}rt.prototype={areaStart:K,areaEnd:K,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))}},ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}},lt.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:ct(this,this._t0,ut(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+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,ct(this,ut(this,n=st(this,t,e)),n);break;default:ct(this,this._t0,n=st(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(ft.prototype=Object.create(lt.prototype)).point=function(t,e){lt.prototype.point.call(this,e,t)},pt.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,n,r,o,i){this._context.bezierCurveTo(e,t,r,n,i,o)}},ht.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,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=dt(t),o=dt(e),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===n)&&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)}},gt.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&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 n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var yt=n(16426),vt=n(6677),mt=n(13149);function bt(t){return t[0]}function xt(t){return t[1]}function wt(t,e){var n=(0,vt.Z)(!0),r=null,o=it,i=null,a=(0,mt.d)(s);function s(s){var u,c,l,f=(s=(0,yt.Z)(s)).length,p=!1;for(null==r&&(i=o(l=a())),u=0;u<=f;++u)!(u<f&&n(c=s[u],u,s))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(c,u,s),+e(c,u,s));if(l)return i=null,l+""||null}return t="function"==typeof t?t:void 0===t?bt:(0,vt.Z)(t),e="function"==typeof e?e:void 0===e?xt:(0,vt.Z)(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,vt.Z)(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,vt.Z)(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:(0,vt.Z)(!!t),s):n},s.curve=function(t){return arguments.length?(o=t,null!=r&&(i=o(r)),s):o},s.context=function(t){return arguments.length?(null==t?r=i=null:i=o(r=t),s):r},s}function Et(t,e,n){var r=null,o=(0,vt.Z)(!0),i=null,a=it,s=null,u=(0,mt.d)(c);function c(c){var l,f,p,h,d,g=(c=(0,yt.Z)(c)).length,y=!1,v=new Array(g),m=new Array(g);for(null==i&&(s=a(d=u())),l=0;l<=g;++l){if(!(l<g&&o(h=c[l],l,c))===y)if(y=!y)f=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=l-1;p>=f;--p)s.point(v[p],m[p]);s.lineEnd(),s.areaEnd()}y&&(v[l]=+t(h,l,c),m[l]=+e(h,l,c),s.point(r?+r(h,l,c):v[l],n?+n(h,l,c):m[l]))}if(d)return s=null,d+""||null}function l(){return wt().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?bt:(0,vt.Z)(+t),e="function"==typeof e?e:void 0===e?(0,vt.Z)(0):(0,vt.Z)(+e),n="function"==typeof n?n:void 0===n?xt:(0,vt.Z)(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,vt.Z)(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,vt.Z)(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,vt.Z)(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,vt.Z)(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,vt.Z)(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,vt.Z)(+t),c):n},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(n)},c.lineX1=function(){return l().x(r).y(e)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:(0,vt.Z)(!!t),c):o},c.curve=function(t){return arguments.length?(a=t,null!=i&&(s=a(i)),c):a},c.context=function(t){return arguments.length?(null==t?i=s=null:s=a(i=t),c):i},c}var Ot=n(23779),St=n.n(Ot),Ct=n(21442);function Mt(t){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(t)}function Pt(){return Pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Pt.apply(this,arguments)}function jt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function At(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==Mt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Mt(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var kt={curveBasisClosed:function(t){return new tt(t)},curveBasisOpen:function(t){return new et(t)},curveBasis:function(t){return new Q(t)},curveBumpX:function(t){return new nt(t,!0)},curveBumpY:function(t){return new nt(t,!1)},curveLinearClosed:function(t){return new rt(t)},curveLinear:it,curveMonotoneX:function(t){return new lt(t)},curveMonotoneY:function(t){return new ft(t)},curveNatural:function(t){return new ht(t)},curveStep:function(t){return new gt(t,.5)},curveStepAfter:function(t){return new gt(t,1)},curveStepBefore:function(t){return new gt(t,0)}},_t=function(t){return t.x===+t.x&&t.y===+t.y},Tt=function(t){return t.x},Dt=function(t){return t.y},It=function(t){var e=t.className,n=t.points,r=t.path,i=t.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?function(t){var e,n=t.type,r=void 0===n?"linear":n,o=t.points,i=void 0===o?[]:o,a=t.baseLine,s=t.layout,c=t.connectNulls,l=void 0!==c&&c,f=function(t,e){if(u()(t))return t;var n="curve".concat(St()(t));return"curveMonotone"!==n&&"curveBump"!==n||!e?kt[n]||it:kt["".concat(n).concat("vertical"===e?"Y":"X")]}(r,s),p=l?i.filter((function(t){return _t(t)})):i;if(Array.isArray(a)){var h=l?a.filter((function(t){return _t(t)})):a,d=p.map((function(t,e){return At(At({},t),{},{base:h[e]})}));return(e="vertical"===s?Et().y(Dt).x1(Tt).x0((function(t){return t.base.x})):Et().x(Tt).y1(Dt).y0((function(t){return t.base.y}))).defined(_t).curve(f),e(d)}return(e="vertical"===s&&(0,S.hj)(a)?Et().y(Dt).x1(Tt).x0(a):(0,S.hj)(a)?Et().x(Tt).y1(Dt).y0(a):wt().x(Tt).y(Dt)).defined(_t).curve(f),e(p)}(t):r;return o().createElement("path",Pt({},(0,k.L6)(t),(0,Ct.Ym)(t),{className:(0,w.Z)("recharts-curve",e),d:a,ref:i}))};function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}var Nt=["x","y","top","left","width","height","className"];function Rt(){return Rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rt.apply(this,arguments)}function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Ft=function(t,e,n,r,o,i){return"M".concat(t,",").concat(o,"v").concat(r,"M").concat(i,",").concat(e,"h").concat(n)},zt=function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,a=t.top,s=void 0===a?0:a,u=t.left,c=void 0===u?0:u,l=t.width,f=void 0===l?0:l,p=t.height,h=void 0===p?0:p,d=t.className,g=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==Lt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Lt(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({x:n,y:i,top:s,left:c,width:f,height:h},function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Nt));return(0,S.hj)(n)&&(0,S.hj)(i)&&(0,S.hj)(f)&&(0,S.hj)(h)&&(0,S.hj)(s)&&(0,S.hj)(c)?o().createElement("path",Rt({},(0,k.L6)(g,!0),{className:(0,w.Z)("recharts-cross",d),d:Ft(n,i,f,h,s,c)})):null},Ut=n(21844);function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wt.apply(this,arguments)}var qt=function(t){var e=t.cx,n=t.cy,r=t.r,i=t.className,a=(0,w.Z)("recharts-dot",i);return e===+e&&n===+n&&r===+r?o().createElement("circle",Wt({},(0,k.L6)(t),(0,Ct.Ym)(t),{className:a,cx:e,cy:n,r})):null},Ht=n(43624),Zt=n(47022),$t=n(75963),Vt=n(81224),Gt=["viewBox"],Yt=["viewBox"],Xt=["ticks"];function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Jt(){return Jt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jt.apply(this,arguments)}function Qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qt(Object(n),!0).forEach((function(e){ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ee(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ae(r.key),r)}}function re(t,e){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},re(t,e)}function oe(t){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oe(t)}function ie(t,e,n){return(e=ae(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ae(t){var e=function(t){if("object"!==Kt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Kt(e)?e:String(e)}var se=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&re(t,e)}(c,t);var e,n,r,i,a,s=(i=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=oe(i);if(a){var n=oe(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Kt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=s.call(this,t)).state={fontSize:"",letterSpacing:""},e}return e=c,n=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=ee(t,Gt),o=this.props,i=o.viewBox,a=ee(o,Yt);return!(0,Zt.w)(n,i)||!(0,Zt.w)(r,a)||!(0,Zt.w)(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,n,r,o,i,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,p=s.orientation,h=s.tickSize,d=s.mirror,g=s.tickMargin,y=d?-1:1,v=t.tickSize||h,m=(0,S.hj)(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=n=t.coordinate,a=(r=(o=c+ +!d*f)-y*v)-y*g,i=m;break;case"left":r=o=t.coordinate,i=(e=(n=u+ +!d*l)-y*v)-y*g,a=m;break;case"right":r=o=t.coordinate,i=(e=(n=u+ +d*l)+y*v)+y*g,a=m;break;default:e=n=t.coordinate,a=(r=(o=c+ +d*f)+y*v)+y*g,i=m}return{line:{x1:e,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.orientation,s=t.mirror,u=t.axisLine,c=te(te(te({},(0,k.L6)(this.props)),(0,k.L6)(u)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);c=te(te({},c),{},{x1:e,y1:n+l*i,x2:e+r,y2:n+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);c=te(te({},c),{},{x1:e+f*r,y1:n,x2:e+f*r,y2:n+i})}return o().createElement("line",Jt({},c,{className:(0,w.Z)("recharts-cartesian-axis-line",p()(u,"className"))}))}},{key:"renderTicks",value:function(t,e,n){var r=this,i=this.props,a=i.tickLine,s=i.stroke,l=i.tick,f=i.tickFormatter,h=i.unit,d=$(te(te({},this.props),{},{ticks:t}),e,n),g=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=(0,k.L6)(this.props),m=(0,k.L6)(l),b=te(te({},v),{},{fill:"none"},(0,k.L6)(a)),x=d.map((function(t,e){var n=r.getTickLineCoord(t),i=n.line,x=n.tick,E=te(te(te(te({textAnchor:g,verticalAnchor:y},v),{},{stroke:"none",fill:s},m),x),{},{index:e,payload:t,visibleTicksCount:d.length,tickFormatter:f});return o().createElement(G.m,Jt({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},(0,Ct.bw)(r.props,t,e)),a&&o().createElement("line",Jt({},b,i,{className:(0,w.Z)("recharts-cartesian-axis-tick-line",p()(a,"className"))})),l&&c.renderTickItem(l,E,"".concat(u()(f)?f(t.value,e):t.value).concat(h||"")))}));return o().createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,r=e.width,i=e.height,a=e.ticksGenerator,s=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,f=ee(c,Xt),p=l;return u()(a)&&(p=l&&l.length>0?a(this.props):a(f)),r<=0||i<=0||!p||!p.length?null:o().createElement(G.m,{className:(0,w.Z)("recharts-cartesian-axis",s),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),Vt._.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,n){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):o().createElement($t.x,Jt({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&ne(e.prototype,n),r&&ne(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Component);ie(se,"displayName","CartesianAxis"),ie(se,"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 ue=n(78520);function ce(t){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(t)}function le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?le(Object(n),!0).forEach((function(e){pe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pe(t,e,n){return(e=function(t){var e=function(t){if("object"!==ce(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===ce(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var he=["Webkit","Moz","O","ms"];function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function ge(){return ge=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ge.apply(this,arguments)}function ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ve(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(n),!0).forEach((function(e){Ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function me(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Oe(r.key),r)}}function be(t,e){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},be(t,e)}function xe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function we(t){return we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},we(t)}function Ee(t,e,n){return(e=Oe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oe(t){var e=function(t){if("object"!==de(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==de(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===de(e)?e:String(e)}var Se=function(t){return t.changedTouches&&!!t.changedTouches.length},Ce=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&be(t,e)}(f,t);var e,n,i,a,s,c=(a=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=we(a);if(s){var n=we(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===de(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xe(t)}(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),Ee(xe(e=c.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),Ee(xe(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),Ee(xe(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,n=t.endIndex,r=t.onDragEnd,o=t.startIndex;null==r||r({endIndex:n,startIndex:o})})),e.detachDragEndListener()})),Ee(xe(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),Ee(xe(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),Ee(xe(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),Ee(xe(e),"handleSlideDragStart",(function(t){var n=Se(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(xe(e),"startX"),endX:e.handleTravellerDragStart.bind(xe(e),"endX")},e.state={},e}return e=f,i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=t.stroke,s=Math.floor(n+i/2)-1;return o().createElement(o().Fragment,null,o().createElement("rect",{x:e,y:n,width:r,height:i,fill:a,stroke:"none"}),o().createElement("line",{x1:e+1,y1:s,x2:e+r-1,y2:s,fill:"none",stroke:"#fff"}),o().createElement("line",{x1:e+1,y1:s+2,x2:e+r-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):f.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,s=t.startIndex,u=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return ve({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(t){var e=t.data,n=t.startIndex,r=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var s=e.length,u=(0,ue.x)().domain(l()(0,s)).range([o,o+i-a]),c=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(r),scale:u,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+r-i]);var c=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var o=Math.floor((n+r)/2);t[o]>e?r=o:n=o}return e>=t[r]?r:n}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,o=this.props,i=o.gap,a=o.data.length-1,s=Math.min(e,n),u=Math.max(e,n),c=f.getIndexInRange(r,s),l=f.getIndexInRange(r,u);return{startIndex:c-c%i,endIndex:l===a?a:l-l%i}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,o=e.dataKey,i=(0,A.F$)(n[t],o,t);return u()(r)?r(i,t):i}},{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(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,o=e.endX,i=this.props,a=i.x,s=i.width,u=i.travellerWidth,c=i.startIndex,l=i.endIndex,f=i.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+s-u-o,a+s-u-r):p<0&&(p=Math.max(p,a-r,a-o));var h=this.getIndex({startX:r+p,endX:o+p});h.startIndex===c&&h.endIndex===l||!f||f(h),this.setState({startX:r+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=Se(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],u=this.props,c=u.x,l=u.width,f=u.travellerWidth,p=u.onChange,h=u.gap,d=u.data,g={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-f-s):y<0&&(y=Math.max(y,c-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((Ee(e={},o,s+y),Ee(e,"brushMoveStartX",t.pageX),e),(function(){var t;p&&(t=d.length-1,("startX"===o&&(i>a?m%h==0:b%h==0)||i<a&&b===t||"endX"===o&&(i>a?b%h==0:m%h==0)||i>a&&b===t)&&p(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,s=this.state[e],u=o.indexOf(s);if(-1!==u){var c=u+t;if(!(-1===c||c>=o.length)){var l=o[c];"startX"===e&&l>=a||"endX"===e&&l<=i||this.setState(Ee({},e,l),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,a=t.fill,s=t.stroke;return o().createElement("rect",{stroke:s,fill:a,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,a=t.height,s=t.data,u=t.children,c=t.padding,l=r.Children.only(u);return l?o().cloneElement(l,{x:e,y:n,width:i,height:a,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(t,e){var n=this,r=this.props,i=r.y,a=r.travellerWidth,s=r.height,u=r.traveller,c=Math.max(t,this.props.x),l=ve(ve({},(0,k.L6)(this.props)),{},{x:c,y:i,width:a,height:s});return o().createElement(G.m,{tabIndex:0,role:"slider",className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},f.renderTraveller(u,l))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,a=n.stroke,s=n.travellerWidth,u=Math.min(t,e)+s,c=Math.max(Math.abs(e-t)-s,0);return o().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:r,width:c,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,a=t.travellerWidth,s=t.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:s};return o().createElement(G.m,{className:"recharts-brush-texts"},o().createElement($t.x,ge({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:r+i/2},f),this.getTextOfTick(e)),o().createElement($t.x,ge({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+a+5,y:r+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,a=t.y,s=t.width,u=t.height,c=t.alwaysShowText,l=this.state,f=l.startX,p=l.endX,h=l.isTextActive,d=l.isSlideMoving,g=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!(0,S.hj)(i)||!(0,S.hj)(a)||!(0,S.hj)(s)||!(0,S.hj)(u)||s<=0||u<=0)return null;var v,m,b,x,E=(0,w.Z)("recharts-brush",n),O=1===o().Children.count(r),C=(m="none",b=(v="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(x=he.reduce((function(t,e){return fe(fe({},t),{},pe({},e+b,m))}),{}))[v]=m,x);return o().createElement(G.m,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:C},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||d||g||y||c)&&this.renderText())}}])&&me(e.prototype,n),i&&me(e,i),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.PureComponent);Ee(Ce,"displayName","Brush"),Ee(Ce,"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 Me=n(12076),Pe=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},je=n(91745);function Ae(t){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(t)}function ke(){return ke=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ke.apply(this,arguments)}function _e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==Ae(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ae(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function De(t){var e=t.x,n=t.y,r=t.r,i=t.alwaysShow,a=t.clipPathId,s=(0,S.P2)(e),u=(0,S.P2)(n);if((0,je.Z)(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!u)return null;var c=function(t){var e=t.x,n=t.y,r=t.xAxis,o=t.yAxis,i=z({x:r.scale,y:o.scale}),a=i.apply({x:e,y:n},{bandAware:!0});return Pe(t,"discard")&&!i.isInRange(a)?null:a}(t);if(!c)return null;var l=c.x,f=c.y,p=t.shape,h=t.className,d=Te(Te({clipPath:Pe(t,"hidden")?"url(#".concat(a,")"):void 0},(0,k.L6)(t,!0)),{},{cx:l,cy:f});return o().createElement(G.m,{className:(0,w.Z)("recharts-reference-dot",h)},De.renderDot(p,d),Vt._.renderCallByParent(t,{x:l-r,y:f-r,width:2*r,height:2*r}))}De.displayName="ReferenceDot",De.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},De.renderDot=function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):o().createElement(qt,ke({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var Ie=n(51525),Le=n.n(Ie);function Ne(t){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ne(t)}function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Re(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==Ne(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ne(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ze.apply(this,arguments)}function Ue(t){var e=t.x,n=t.y,r=t.segment,i=t.xAxis,a=t.yAxis,s=t.shape,c=t.className,l=t.alwaysShow,f=t.clipPathId;(0,je.Z)(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=function(t,e,n,r,o){var i=o.viewBox,a=i.x,s=i.y,u=i.width,c=i.height,l=o.position;if(n){var f=o.y,p=o.yAxis.orientation,h=t.y.apply(f,{position:l});if(Pe(o,"discard")&&!t.y.isInRange(h))return null;var d=[{x:a+u,y:h},{x:a,y:h}];return"left"===p?d.reverse():d}if(e){var g=o.x,y=o.xAxis.orientation,v=t.x.apply(g,{position:l});if(Pe(o,"discard")&&!t.x.isInRange(v))return null;var m=[{x:v,y:s+c},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(e){return t.apply(e,{position:l})}));return Pe(o,"discard")&&Le()(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(z({x:i.scale,y:a.scale}),(0,S.P2)(e),(0,S.P2)(n),r&&2===r.length,t);if(!p)return null;var h,d,g,y=(d=2,function(t){if(Array.isArray(t))return t}(h=p)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(h,d)||function(t,e){if(t){if("string"==typeof t)return Fe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(t,e):void 0}}(h,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=y[0],m=v.x,b=v.y,x=y[1],E=x.x,O=x.y,C=Be(Be({clipPath:Pe(t,"hidden")?"url(#".concat(f,")"):void 0},(0,k.L6)(t,!0)),{},{x1:m,y1:b,x2:E,y2:O});return o().createElement(G.m,{className:(0,w.Z)("recharts-reference-line",c)},function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):o().createElement("line",ze({},e,{className:"recharts-reference-line-line"}))}(s,C),Vt._.renderCallByParent(t,B({x:(g={x1:m,y1:b,x2:E,y2:O}).x1,y:g.y1},{x:g.x2,y:g.y2})))}function We(t){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},We(t)}function qe(){return qe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qe.apply(this,arguments)}function He(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ze(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?He(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==We(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===We(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $e(t){var e=t.x1,n=t.x2,r=t.y1,i=t.y2,a=t.className,s=t.alwaysShow,u=t.clipPathId;(0,je.Z)(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=(0,S.P2)(e),l=(0,S.P2)(n),f=(0,S.P2)(r),p=(0,S.P2)(i),h=t.shape;if(!(c||l||f||p||h))return null;var d=function(t,e,n,r,o){var i=o.x1,a=o.x2,s=o.y1,u=o.y2,c=o.xAxis,l=o.yAxis;if(!c||!l)return null;var f=z({x:c.scale,y:l.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!Pe(o,"discard")||f.isInRange(p)&&f.isInRange(h)?B(p,h):null}(c,l,f,p,t);if(!d&&!h)return null;var g=Pe(t,"hidden")?"url(#".concat(u,")"):void 0;return o().createElement(G.m,{className:(0,w.Z)("recharts-reference-area",a)},$e.renderRect(h,Ze(Ze({clipPath:g},(0,k.L6)(t,!0)),d)),Vt._.renderCallByParent(t,d))}function Ve(t){return function(t){if(Array.isArray(t))return Ge(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ge(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ge(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Ue.displayName="ReferenceLine",Ue.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"},$e.displayName="ReferenceArea",$e.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},$e.renderRect=function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):u()(t)?t(e):o().createElement(Ht.A,qe({},e,{className:"recharts-reference-area-rect"}))};var Ye=function(t,e,n,r,o){var i=(0,k.NN)(t,Ue),a=(0,k.NN)(t,De),s=[].concat(Ve(i),Ve(a)),u=(0,k.NN)(t,$e),c="".concat(r,"Id"),l=r[0],f=e;if(s.length&&(f=s.reduce((function(t,e){if(e.props[c]===n&&Pe(e.props,"extendDomain")&&(0,S.hj)(e.props[l])){var r=e.props[l];return[Math.min(t[0],r),Math.max(t[1],r)]}return t}),f)),u.length){var p="".concat(l,"1"),h="".concat(l,"2");f=u.reduce((function(t,e){if(e.props[c]===n&&Pe(e.props,"extendDomain")&&(0,S.hj)(e.props[p])&&(0,S.hj)(e.props[h])){var r=e.props[p],o=e.props[h];return[Math.min(t[0],r,o),Math.max(t[1],r,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return(0,S.hj)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},Xe=n(10161),Ke=new(n.n(Xe)()),Je="recharts.syncMouseEvents";function Qe(t){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(t)}function tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nn(r.key),r)}}function en(t,e,n){return(e=nn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nn(t){var e=function(t){if("object"!==Qe(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Qe(e)?e:String(e)}var rn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),en(this,"activeIndex",0),en(this,"coordinateList",[]),en(this,"layout","horizontal")}var e,n;return e=t,(n=[{key:"setDetails",value:function(t){var e=t.coordinateList,n=void 0===e?[]:e,r=t.container,o=void 0===r?null:r,i=t.layout,a=void 0===i?null:i,s=t.offset,u=void 0===s?null:s,c=t.mouseHandlerCallback,l=void 0===c?null:c;this.coordinateList=null!=n?n:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=l?l: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(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,c=r+a+s,l=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:c,pageY:l})}}}])&&tn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),on=n(29742);function an(t,e,n){var r,o,i,a;if("horizontal"===t)i=r=e.x,o=n.top,a=n.top+n.height;else if("vertical"===t)a=o=e.y,r=n.left,i=n.left+n.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return O(e);var s=e.cx,u=e.cy,c=e.innerRadius,l=e.outerRadius,f=e.angle,p=(0,E.op)(s,u,c,f),h=(0,E.op)(s,u,l,f);r=p.x,o=p.y,i=h.x,a=h.y}return[{x:r,y:o},{x:i,y:a}]}var sn=["item"],un=["children","className","width","height","style","compact","title","desc"];function cn(t){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(t)}function ln(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||mn(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(){return fn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fn.apply(this,arguments)}function pn(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function hn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,On(r.key),r)}}function dn(t,e){return dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dn(t,e)}function gn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yn(t){return yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yn(t)}function vn(t){return function(t){if(Array.isArray(t))return bn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||mn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(t,e){if(t){if("string"==typeof t)return bn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bn(t,e):void 0}}function bn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xn(Object(n),!0).forEach((function(e){En(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function En(t,e,n){return(e=On(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function On(t){var e=function(t){if("object"!==cn(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==cn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===cn(e)?e:String(e)}var Sn={xAxis:["bottom","top"],yAxis:["left","right"]},Cn={width:"100%",height:"100%"},Mn={x:0,y:0},Pn=function(t,e){var n=e.graphicalItems,r=e.dataStartIndex,o=e.dataEndIndex,i=(null!=n?n:[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(vn(t),vn(n)):t}),[]);return i.length>0?i:t&&t.length&&(0,S.hj)(r)&&(0,S.hj)(o)?t.slice(r,o+1):[]};function jn(t){return"number"===t?[0,"auto"]:void 0}var An,kn,_n,Tn,Dn,In,Ln,Nn,Rn,Bn,Fn,zn,Un,Wn=function(t,e,n,r){var o=t.graphicalItems,i=t.tooltipAxis,a=Pn(e,t);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,s){var u;if(s.props.hide)return o;var c,l=null!==(u=s.props.data)&&void 0!==u?u:e;if(l&&t.dataStartIndex+t.dataEndIndex!==0&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===l?a:l;c=(0,S.Ap)(f,i.dataKey,r)}else c=l&&l[n]||a[n];return c?[].concat(vn(o),[(0,A.Qo)(s,c)]):o}),[])},qn=function(t,e,n,r){var o=r||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,n),a=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=(0,A.VO)(i,a,u,s);if(c>=0&&u){var l=u[c]&&u[c].value,f=Wn(t,e,c,l),p=function(t,e,n,r){var o=e.find((function(t){return t&&t.index===n}));if(o){if("horizontal"===t)return{x:o.coordinate,y:r.y};if("vertical"===t)return{x:r.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=r.radius;return wn(wn(wn({},r),(0,E.op)(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,u=r.angle;return wn(wn(wn({},r),(0,E.op)(r.cx,r.cy,s,u)),{},{angle:u,radius:s})}return Mn}(n,a,c,o);return{activeTooltipIndex:c,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},Hn=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,o=e.AxisComp,i=e.graphicalItems,s=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,f=t.children,h="".concat(r,"Id"),d=(0,k.NN)(f,o),g={};return d&&d.length?g=function(t,e){var n=e.axes,r=e.graphicalItems,o=e.axisType,i=e.axisIdKey,s=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,f=t.layout,p=t.children,h=t.stackOffset,d=(0,A.NA)(f,o);return n.reduce((function(e,n){var g,y=n.props,v=y.type,m=y.dataKey,b=y.allowDataOverflow,x=y.allowDuplicatedCategory,w=y.scale,E=y.ticks,O=y.includeHidden,C=n.props[i];if(e[C])return e;var M,P,j,k=Pn(t.data,{graphicalItems:r.filter((function(t){return t.props[i]===C})),dataStartIndex:u,dataEndIndex:c}),_=k.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],o=null==t?void 0:t[1];if(r&&o&&(0,S.hj)(r)&&(0,S.hj)(o))return!0}return!1})(n.props.domain,b,v)&&(M=(0,A.LG)(n.props.domain,null,b),!d||"number"!==v&&"auto"===w||(j=(0,A.gF)(k,m,"category")));var T=jn(v);if(!M||0===M.length){var D,I=null!==(D=n.props.domain)&&void 0!==D?D:T;if(m){if(M=(0,A.gF)(k,m,v),"category"===v&&d){var L=(0,S.bv)(M);x&&L?(P=M,M=l()(0,_)):x||(M=(0,A.ko)(I,M,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(vn(t),[e])}),[]))}else if("category"===v)M=x?M.filter((function(t){return""!==t&&!a()(t)})):(0,A.ko)(I,M,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||a()(e)?t:[].concat(vn(t),[e])}),[]);else if("number"===v){var N=(0,A.ZI)(k,r.filter((function(t){return t.props[i]===C&&(O||!t.props.hide)})),m,o,f);N&&(M=N)}!d||"number"!==v&&"auto"===w||(j=(0,A.gF)(k,m,"category"))}else M=d?l()(0,_):s&&s[C]&&s[C].hasStack&&"number"===v?"expand"===h?[0,1]:(0,A.EB)(s[C].stackGroups,u,c):(0,A.s6)(k,r.filter((function(t){return t.props[i]===C&&(O||!t.props.hide)})),v,f,!0);if("number"===v)M=Ye(p,M,C,o,E),I&&(M=(0,A.LG)(I,M,b));else if("category"===v&&I){var R=I;M.every((function(t){return R.indexOf(t)>=0}))&&(M=R)}}return wn(wn({},e),{},En({},C,wn(wn({},n.props),{},{axisType:o,domain:M,categoricalDomain:j,duplicateDomain:P,originalDomain:null!==(g=n.props.domain)&&void 0!==g?g:T,isCategorical:d,layout:f})))}),{})}(t,{axes:d,graphicalItems:i,axisType:r,axisIdKey:h,stackGroups:s,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(g=function(t,e){var n=e.graphicalItems,r=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.layout,f=t.children,h=Pn(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),d=h.length,g=(0,A.NA)(c,o),y=-1;return n.reduce((function(t,e){var v,m=e.props[i],b=jn("number");return t[m]?t:(y++,g?v=l()(0,d):a&&a[m]&&a[m].hasStack?(v=(0,A.EB)(a[m].stackGroups,s,u),v=Ye(f,v,m,o)):(v=(0,A.LG)(b,(0,A.s6)(h,n.filter((function(t){return t.props[i]===m&&!t.props.hide})),"number",c),r.defaultProps.allowDataOverflow),v=Ye(f,v,m,o)),wn(wn({},t),{},En({},m,wn(wn({axisType:o},r.defaultProps),{},{hide:!0,orientation:p()(Sn,"".concat(o,".").concat(y%2),null),domain:v,originalDomain:b,isCategorical:g,layout:c}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:h,stackGroups:s,dataStartIndex:u,dataEndIndex:c})),g},Zn=function(t){var e,n,r=t.children,o=t.defaultShowTooltip,i=(0,k.sP)(r,Ce);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(e=i.props)||void 0===e?void 0:e.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:Boolean(o)}},$n=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Vn=n(25556),Gn=n(3131),Yn=(An={chartName:"BarChart",GraphicalChild:_.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Vn.K},{axisType:"yAxis",AxisComp:Gn.B}],formatAxisMap:function(t,e,n,r,o){var i=t.width,a=t.height,s=t.layout,u=t.children,c=Object.keys(e),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!(0,k.sP)(u,_.$);return c.reduce((function(i,a){var u,c,p,h,d,g=e[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,x=g.mirror,w=g.reversed,E="".concat(y).concat(x?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var O=v[1]-v[0],C=1/0,M=g.categoricalDomain.sort();M.forEach((function(t,e){e>0&&(C=Math.min((t||0)-(M[e-1]||0),C))}));var P=C/O,j="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(u=P*j/2),"no-gap"===g.padding){var k=(0,S.h1)(t.barCategoryGap,P*j),_=P*j/2;u=_-k-(_-k)/j*k}}c="xAxis"===r?[n.left+(b.left||0)+(u||0),n.left+n.width-(b.right||0)-(u||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(u||0),n.top+n.height-(b.bottom||0)-(u||0)]:g.range,w&&(c=[c[1],c[0]]);var T=(0,A.Hq)(g,o,f),D=T.scale,I=T.realScaleType;D.domain(v).range(c),(0,A.zF)(D);var R=(0,A.g$)(D,L(L({},g),{},{realScaleType:I}));"xAxis"===r?(d="top"===y&&!x||"bottom"===y&&x,p=n.left,h=l[E]-d*g.height):"yAxis"===r&&(d="left"===y&&!x||"right"===y&&x,p=l[E]-d*g.width,h=n.top);var B=L(L(L({},g),R),{},{realScaleType:I,x:p,y:h,scale:D,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return B.bandSize=(0,A.zT)(B,R),g.hide||"xAxis"!==r?g.hide||(l[E]+=(d?-1:1)*B.width):l[E]+=(d?-1:1)*B.height,L(L({},i),{},N({},a,B))}),{})}},_n=An.chartName,Tn=An.GraphicalChild,In=void 0===(Dn=An.defaultTooltipEventType)?"axis":Dn,Nn=void 0===(Ln=An.validateTooltipEventTypes)?["axis"]:Ln,Rn=An.axisComponents,Bn=An.legendContent,Fn=An.formatAxisMap,zn=An.defaultProps,Un=function(t,e){var n=t.props,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;if(!(0,k.TT)({props:n}))return null;var s=n.children,u=n.layout,c=n.stackOffset,l=n.data,f=n.reverseStackOrder,h=$n(u),g=h.numericAxisName,y=h.cateAxisName,v=(0,k.NN)(s,Tn),m=(0,A.wh)(l,v,"".concat(g,"Id"),"".concat(y,"Id"),c,f),b=Rn.reduce((function(t,e){var i="".concat(e.axisType,"Map");return wn(wn({},t),{},En({},i,Hn(n,wn(wn({},e),{},{graphicalItems:v,stackGroups:e.axisType===g&&m,dataStartIndex:r,dataEndIndex:o}))))}),{}),x=function(t,e){var n=t.props,r=t.graphicalItems,o=t.xAxisMap,i=void 0===o?{}:o,a=t.yAxisMap,s=void 0===a?{}:a,u=n.width,c=n.height,l=n.children,f=n.margin||{},h=(0,k.sP)(l,Ce),d=(0,k.sP)(l,X.D),g=Object.keys(s).reduce((function(t,e){var n=s[e],r=n.orientation;return n.mirror||n.hide?t:wn(wn({},t),{},En({},r,t[r]+n.width))}),{left:f.left||0,right:f.right||0}),y=Object.keys(i).reduce((function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:wn(wn({},t),{},En({},r,p()(t,"".concat(r))+n.height))}),{top:f.top||0,bottom:f.bottom||0}),v=wn(wn({},y),g),m=v.bottom;h&&(v.bottom+=h.props.height||Ce.defaultProps.height),d&&e&&(v=(0,A.By)(v,r,n,e));var b=u-v.left-v.right,x=c-v.top-v.bottom;return wn(wn({brushBottom:m},v),{},{width:Math.max(b,0),height:Math.max(x,0)})}(wn(wn({},b),{},{props:n,graphicalItems:v}),null==e?void 0:e.legendBBox);Object.keys(b).forEach((function(t){b[t]=Fn(n,b[t],x,t.replace("Map",""),_n)}));var w,E,O,C=(w=b["".concat(y,"Map")],E=(0,S.Kt)(w),{tooltipTicks:O=(0,A.uY)(E,!1,!0),orderedTooltipTicks:d()(O,(function(t){return t.coordinate})),tooltipAxis:E,tooltipAxisBandSize:(0,A.zT)(E,O)}),M=function(t,e){var n=e.graphicalItems,r=e.stackGroups,o=e.offset,i=e.updateId,s=e.dataStartIndex,u=e.dataEndIndex,c=t.barSize,l=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=$n(l),g=d.numericAxisName,y=d.cateAxisName,v=function(t){return!(!t||!t.length)&&t.some((function(t){var e=(0,k.Gf)(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(n),m=v&&(0,A.pt)({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var d=Pn(t.data,{graphicalItems:[n],dataStartIndex:s,dataEndIndex:u}),v=n.props,x=v.dataKey,w=v.maxBarSize,E=n.props["".concat(g,"Id")],O=n.props["".concat(y,"Id")],S=Rn.reduce((function(t,r){var o,i=e["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")];i&&i[a]||"zAxis"===r.axisType||function(){throw new Error("Invariant failed")}();var s=i[a];return wn(wn({},t),{},(En(o={},r.axisType,s),En(o,"".concat(r.axisType,"Ticks"),(0,A.uY)(s)),o))}),{}),C=S[y],M=S["".concat(y,"Ticks")],P=r&&r[E]&&r[E].hasStack&&(0,A.O3)(n,r[E].stackGroups),j=(0,k.Gf)(n.type).indexOf("Bar")>=0,_=(0,A.zT)(C,M),T=[];if(j){var D,I,L=a()(w)?h:w,N=null!==(D=null!==(I=(0,A.zT)(C,M,!0))&&void 0!==I?I:L)&&void 0!==D?D:0;T=(0,A.qz)({barGap:f,barCategoryGap:p,bandSize:N!==_?N:_,sizeList:m[O],maxBarSize:L}),N!==_&&(T=T.map((function(t){return wn(wn({},t),{},{position:wn(wn({},t.position),{},{offset:t.position.offset-N/2})})})))}var R,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:wn(wn({},B(wn(wn({},S),{},{displayedData:d,props:t,dataKey:x,item:n,bandSize:_,barPosition:T,offset:o,stackedData:P,layout:l,dataStartIndex:s,dataEndIndex:u}))),{},(R={key:n.key||"item-".concat(c)},En(R,g,S[g]),En(R,y,S[y]),En(R,"animationId",i),R)),childIndex:(0,k.$R)(n,t.children),item:n})})),b}(n,wn(wn({},b),{},{dataStartIndex:r,dataEndIndex:o,updateId:i,graphicalItems:v,stackGroups:m,offset:x}));return wn(wn({formattedGraphicalItems:M,graphicalItems:v,offset:x,stackGroups:m},C),b)},kn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&dn(t,e)}(l,t);var e,n,i,s,c=(i=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=yn(i);if(s){var n=yn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===cn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gn(t)}(this,t)});function l(t){var e,n,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),En(gn(o=c.call(this,t)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),En(gn(o),"accessibilityManager",new rn),En(gn(o),"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,n=e.dataStartIndex,r=e.dataEndIndex,i=e.updateId;o.setState(wn({legendBBox:t},Un({props:o.props,dataStartIndex:n,dataEndIndex:r,updateId:i},wn(wn({},o.state),{},{legendBBox:t}))))}})),En(gn(o),"handleReceiveSyncEvent",(function(t,e,n){if(o.props.syncId===t){if(n===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),En(gn(o),"handleBrushChange",(function(t){var e=t.startIndex,n=t.endIndex;if(e!==o.state.dataStartIndex||n!==o.state.dataEndIndex){var r=o.state.updateId;o.setState((function(){return wn({dataStartIndex:e,dataEndIndex:n},Un({props:o.props,dataStartIndex:e,dataEndIndex:n,updateId:r},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}})),En(gn(o),"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var n=wn(wn({},e),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseEnter;u()(r)&&r(n,t)}})),En(gn(o),"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),n=e?wn(wn({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseMove;u()(r)&&r(n,t)})),En(gn(o),"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),En(gn(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),En(gn(o),"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),En(gn(o),"handleMouseLeave",(function(t){var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var n=o.props.onMouseLeave;u()(n)&&n(e,t)})),En(gn(o),"handleOuterEvent",(function(t){var e,n=(0,k.Bh)(t),r=p()(o.props,"".concat(n));n&&u()(r)&&r(null!==(e=/.*touch.*/i.test(n)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),En(gn(o),"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var n=wn(wn({},e),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onClick;u()(r)&&r(n,t)}})),En(gn(o),"handleMouseDown",(function(t){var e=o.props.onMouseDown;u()(e)&&e(o.getMouseInfo(t),t)})),En(gn(o),"handleMouseUp",(function(t){var e=o.props.onMouseUp;u()(e)&&e(o.getMouseInfo(t),t)})),En(gn(o),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),En(gn(o),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),En(gn(o),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),En(gn(o),"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&Ke.emit(Je,o.props.syncId,t,o.eventEmitterSymbol)})),En(gn(o),"applySyncEvent",(function(t){var e=o.props,n=e.layout,r=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,s=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(wn({dataStartIndex:a,dataEndIndex:s},Un({props:o.props,dataStartIndex:a,dataEndIndex:s,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,c=t.chartY,l=t.activeTooltipIndex,f=o.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof r)l=r(h,t);else if("value"===r){l=-1;for(var d=0;d<h.length;d++)if(h[d].value===t.activeLabel){l=d;break}}var g=wn(wn({},p),{},{x:p.left,y:p.top}),y=Math.min(u,g.x+g.width),v=Math.min(c,g.y+g.height),m=h[l]&&h[l].value,b=Wn(o.state,o.props.data,l),x=h[l]?{x:"horizontal"===n?h[l].coordinate:y,y:"horizontal"===n?v:h[l].coordinate}:Mn;o.setState(wn(wn({},t),{},{activeLabel:m,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else o.setState(t)})),En(gn(o),"verticalCoordinatesGenerator",(function(t,e){var n=t.xAxis,r=t.width,o=t.height,i=t.offset;return(0,A.Rf)($(wn(wn(wn({},se.defaultProps),n),{},{ticks:(0,A.uY)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,e)})),En(gn(o),"horizontalCoordinatesGenerator",(function(t,e){var n=t.yAxis,r=t.width,o=t.height,i=t.offset;return(0,A.Rf)($(wn(wn(wn({},se.defaultProps),n),{},{ticks:(0,A.uY)(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,e)})),En(gn(o),"axesTicksGenerator",(function(t){return(0,A.uY)(t,!0)})),En(gn(o),"renderCursor",(function(t){var e,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,s=n.activePayload,u=n.offset,c=n.activeTooltipIndex,l=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(e=t.props.active)&&void 0!==e?e:i;if(!t||!t.props.cursor||!p||!a||"ScatterChart"!==_n&&"axis"!==f)return null;var h,d=o.props.layout,g=It;if("ScatterChart"===_n)h=a,g=zt;else if("BarChart"===_n)h=function(t,e,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:n.left+.5,y:"horizontal"===t?n.top+.5:e.y-o,width:"horizontal"===t?r:n.width-1,height:"horizontal"===t?n.height-1:r}}(d,a,u,l),g=Ht.A;else if("radial"===d){var y=O(a),v=y.cx,m=y.cy,b=y.radius;h={cx:v,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},g=Ut.L}else h={points:an(d,a,u)},g=It;var x=t.key||"_recharts-cursor",w=wn(wn(wn(wn({stroke:"#ccc",pointerEvents:"none"},u),h),(0,k.L6)(t.props.cursor)),{},{payload:s,payloadIndex:c,key:x,className:"recharts-tooltip-cursor"});return(0,r.isValidElement)(t.props.cursor)?(0,r.cloneElement)(t.props.cursor,w):(0,r.createElement)(g,w)})),En(gn(o),"renderPolarAxis",(function(t,e,n){var i=p()(t,"type.axisType"),a=p()(o.state,"".concat(i,"Map")),s=a&&a[t.props["".concat(i,"Id")]];return(0,r.cloneElement)(t,wn(wn({},s),{},{className:i,key:t.key||"".concat(e,"-").concat(n),ticks:(0,A.uY)(s,!0)}))})),En(gn(o),"renderXAxis",(function(t,e,n){var r=o.state.xAxisMap[t.props.xAxisId];return o.renderAxis(r,t,e,n)})),En(gn(o),"renderYAxis",(function(t,e,n){var r=o.state.yAxisMap[t.props.yAxisId];return o.renderAxis(r,t,e,n)})),En(gn(o),"renderGrid",(function(t){var e=o.state,n=e.xAxisMap,i=e.yAxisMap,a=e.offset,s=o.props,u=s.width,c=s.height,l=(0,S.Kt)(n),f=m()(i,(function(t){return x()(t.domain,Number.isFinite)}))||(0,S.Kt)(i),p=t.props||{};return(0,r.cloneElement)(t,{key:t.key||"grid",x:(0,S.hj)(p.x)?p.x:a.left,y:(0,S.hj)(p.y)?p.y:a.top,width:(0,S.hj)(p.width)?p.width:a.width,height:(0,S.hj)(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||o.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||o.horizontalCoordinatesGenerator})})),En(gn(o),"renderPolarGrid",(function(t){var e=t.props,n=e.radialLines,i=e.polarAngles,a=e.polarRadius,s=o.state,u=s.radiusAxisMap,c=s.angleAxisMap,l=(0,S.Kt)(u),f=(0,S.Kt)(c),p=f.cx,h=f.cy,d=f.innerRadius,g=f.outerRadius;return(0,r.cloneElement)(t,{polarAngles:Array.isArray(i)?i:(0,A.uY)(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(a)?a:(0,A.uY)(l,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:d,outerRadius:g,key:t.key||"polar-grid",radialLines:n})})),En(gn(o),"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,n=e.children,i=e.width,a=e.height,s=o.props.margin||{},u=i-(s.left||0)-(s.right||0),c=(0,Me.z)({children:n,formattedGraphicalItems:t,legendWidth:u,legendContent:Bn});if(!c)return null;var l=c.item,f=pn(c,sn);return(0,r.cloneElement)(l,wn(wn({},f),{},{chartWidth:i,chartHeight:a,margin:s,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),En(gn(o),"renderTooltip",(function(){var t,e=o.props.children,n=(0,k.sP)(e,Y.u);if(!n)return null;var i=o.state,a=i.isTooltipActive,s=i.activeCoordinate,u=i.activePayload,c=i.activeLabel,l=i.offset,f=null!==(t=n.props.active)&&void 0!==t?t:a;return(0,r.cloneElement)(n,{viewBox:wn(wn({},l),{},{x:l.left,y:l.top}),active:f,label:c,payload:f?u:[],coordinate:s})})),En(gn(o),"renderBrush",(function(t){var e=o.props,n=e.margin,i=e.data,a=o.state,s=a.offset,u=a.dataStartIndex,c=a.dataEndIndex,l=a.updateId;return(0,r.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:(0,A.DO)(o.handleBrushChange,t.props.onChange),data:i,x:(0,S.hj)(t.props.x)?t.props.x:s.left,y:(0,S.hj)(t.props.y)?t.props.y:s.top+s.height+s.brushBottom-(n.bottom||0),width:(0,S.hj)(t.props.width)?t.props.width:s.width,startIndex:u,endIndex:c,updateId:"brush-".concat(l)})})),En(gn(o),"renderReferenceElement",(function(t,e,n){if(!t)return null;var i=gn(o).clipPathId,a=o.state,s=a.xAxisMap,u=a.yAxisMap,c=a.offset,l=t.props,f=l.xAxisId,p=l.yAxisId;return(0,r.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(n),xAxis:s[f],yAxis:u[p],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})})),En(gn(o),"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,r=t.basePoint,o=t.childIndex,i=t.isRange,a=[],s=e.props.key,u=e.item.props,c=u.activeDot,f=wn(wn({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:(0,A.fk)(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},(0,k.L6)(c)),(0,Ct.Ym)(c));return a.push(l.renderActiveDot(c,f)),r?a.push(l.renderActiveDot(c,wn(wn({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),En(gn(o),"renderGraphicChild",(function(t,e,n){var i=o.filterFormatItem(t,e,n);if(!i)return null;var s=o.getTooltipEventType(),u=o.state,c=u.isTooltipActive,l=u.tooltipAxis,f=u.activeTooltipIndex,p=u.activeLabel,h=o.props.children,d=(0,k.sP)(h,Y.u),g=i.props,y=g.points,v=g.isRange,m=g.baseLine,b=i.item.props,x=b.activeDot,w=b.hide,E=b.activeBar,O=b.activeShape,C=Boolean(!w&&c&&d&&(x||E||O)),M={};"axis"!==s&&d&&"click"===d.props.trigger?M={onClick:(0,A.DO)(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==s&&(M={onMouseLeave:(0,A.DO)(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:(0,A.DO)(o.handleItemMouseEnter,t.props.onMouseEnter)});var P=(0,r.cloneElement)(t,wn(wn({},i.props),M));if(C){if(!(f>=0)){var j,_=(null!==(j=o.getItemByXY(o.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:P}).graphicalItem,T=_.item,D=void 0===T?t:T,I=_.childIndex,L=wn(wn(wn({},i.props),M),{},{activeIndex:I});return[(0,r.cloneElement)(D,L),null,null]}var N,R;if(l.dataKey&&!l.allowDuplicatedCategory){var B="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());N=(0,S.Ap)(y,B,p),R=v&&m&&(0,S.Ap)(m,B,p)}else N=null==y?void 0:y[f],R=v&&m&&m[f];if(O||E){var F=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,r.cloneElement)(t,wn(wn(wn({},i.props),M),{},{activeIndex:F})),null,null]}if(!a()(N))return[P].concat(vn(o.renderActivePoints({item:i,activePoint:N,basePoint:R,childIndex:f,isRange:v})))}return v?[P,null,null]:[P,null]})),En(gn(o),"renderCustomized",(function(t,e,n){return(0,r.cloneElement)(t,wn(wn({key:"recharts-customized-".concat(n)},o.props),o.state))})),En(gn(o),"renderMap",{CartesianGrid:{handler:o.renderGrid,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:o.renderReferenceElement},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:o.renderXAxis},YAxis:{handler:o.renderYAxis},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(e=t.id)&&void 0!==e?e:(0,S.EL)("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=y()(o.triggeredAfterMouseMove,null!==(n=t.throttleDelay)&&void 0!==n?n:1e3/60),o.state={},o}return e=l,n=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,k.sP)(this.props.children,Y.u);if(t&&Boolean(t.props.shared)){var e=t.props.shared?"axis":"item";return Nn.indexOf(e)>=0?e:In}return In}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,n=e.getBoundingClientRect(),r=(0,C.os)(n),o={chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)},i=n.width/e.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var s=this.state,u=s.xAxisMap,c=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&c){var l=(0,S.Kt)(u).scale,f=(0,S.Kt)(c).scale,p=l&&l.invert?l.invert(o.chartX):null,h=f&&f.invert?f.invert(o.chartY):null;return wn(wn({},o),{},{xValue:p,yValue:h})}var d=qn(this.state,this.props.data,this.props.layout,a);return d?wn(wn({},o),d):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=t/n,i=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var s=this.state,u=s.angleAxisMap,c=s.radiusAxisMap;if(u&&c){var l=(0,S.Kt)(u);return(0,E.z3)({x:o,y:i},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=(0,k.sP)(t,Y.u),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),wn(wn({},(0,Ct.Ym)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Ke.on(Je,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ke.removeListener(Je,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===t||a.props.key===t.key||e===(0,k.Gf)(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,n,r){var i=this.props,a=i.width,s=i.height;return o().createElement(se,fn({},t,{className:(0,w.Z)("recharts-".concat(t.axisType," ").concat(t.axisType),t.className),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,i=e.height,a=e.width;return o().createElement("defs",null,o().createElement("clipPath",{id:t},o().createElement("rect",{x:n,y:r,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=ln(e,2),r=n[0],o=n[1];return wn(wn({},t),{},En({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=ln(e,2),r=n[0],o=n[1];return wn(wn({},t),{},En({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,n=e.formattedGraphicalItems,r=e.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],s=a.props,u=a.item,c=(0,k.Gf)(u.type);if("Bar"===c){var l=(s.data||[]).find((function(e){return(0,Ht.X)(t,e)}));if(l)return{graphicalItem:a,payload:l}}else if("RadialBar"===c){var f=(s.data||[]).find((function(e){return(0,E.z3)(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if((0,on.lT)(a,r)||(0,on.V$)(a,r)||(0,on.w7)(a,r)){var p=(0,on.a3)({graphicalItem:a,activeTooltipItem:r,itemData:u.props.data}),h=void 0===u.props.activeIndex?p:u.props.activeIndex;return{graphicalItem:wn(wn({},a),{},{childIndex:h}),payload:(0,on.w7)(a,r)?u.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var t=this;if(!(0,k.TT)(this))return null;var e,n,r=this.props,i=r.children,a=r.className,s=r.width,u=r.height,c=r.style,l=r.compact,f=r.title,p=r.desc,h=pn(r,un),d=(0,k.L6)(h);if(l)return o().createElement(V.T,fn({},d,{width:s,height:u,title:f,desc:p}),this.renderClipPath(),(0,k.eu)(i,this.renderMap));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"img",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return o().createElement("div",fn({className:(0,w.Z)("recharts-wrapper",a),style:wn({position:"relative",cursor:"default",width:s,height:u},c)},g,{ref:function(e){t.container=e},role:"region"}),o().createElement(V.T,fn({},d,{width:s,height:u,title:f,desc:p,style:Cn}),this.renderClipPath(),(0,k.eu)(i,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],n&&hn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Component),En(kn,"displayName",_n),En(kn,"defaultProps",wn({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},zn)),En(kn,"getDerivedStateFromProps",(function(t,e){var n=t.dataKey,r=t.data,o=t.children,i=t.width,s=t.height,u=t.layout,c=t.stackOffset,l=t.margin;if(void 0===e.updateId){var f=Zn(t);return wn(wn(wn({},f),{},{updateId:0},Un(wn(wn({props:t},f),{},{updateId:0}),e)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:s,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(n!==e.prevDataKey||r!==e.prevData||i!==e.prevWidth||s!==e.prevHeight||u!==e.prevLayout||c!==e.prevStackOffset||!(0,Zt.w)(l,e.prevMargin)){var p=Zn(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=wn(wn({},qn(e,r,u)),{},{updateId:e.updateId+1}),g=wn(wn(wn({},p),h),d);return wn(wn(wn({},g),Un(wn({props:t},g),e)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:s,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!(0,k.rL)(o,e.prevChildren)){var y=a()(r)?e.updateId+1:e.updateId;return wn(wn({updateId:y},Un(wn(wn({props:t},e),{},{updateId:y}),e)),{},{prevChildren:o})}return null})),En(kn,"renderActiveDot",(function(t,e){var n;return n=(0,r.isValidElement)(t)?(0,r.cloneElement)(t,e):u()(t)?t(e):o().createElement(qt,e),o().createElement(G.m,{className:"recharts-active-dot",key:e.key},n)})),kn)},11011:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var r=function(t){return null};r.displayName="Cell"},81224:(t,e,n)=>{"use strict";n.d(e,{_:()=>P});var r=n(8156),o=n.n(r),i=n(1842),a=n.n(i),s=n(61049),u=n.n(s),c=n(29259),l=n.n(c),f=n(75877),p=n(75963),h=n(79376),d=n(15027),g=n(22089);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}var v=["offset"];function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==y(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===y(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(){return w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},w.apply(this,arguments)}var E=function(t){var e=t.value,n=t.formatter,r=a()(t.children)?e:t.children;return u()(n)?n(r):r},O=function(t,e,n){var r,i,s=t.position,u=t.viewBox,c=t.offset,l=t.className,p=u,h=p.cx,y=p.cy,v=p.innerRadius,m=p.outerRadius,b=p.startAngle,x=p.endAngle,E=p.clockWise,O=(v+m)/2,S=function(t,e){return(0,d.uY)(e-t)*Math.min(Math.abs(e-t),360)}(b,x),C=S>=0?1:-1;"insideStart"===s?(r=b+C*c,i=E):"insideEnd"===s?(r=x-C*c,i=!E):"end"===s&&(r=x+C*c,i=E),i=S<=0?i:!i;var M=(0,g.op)(h,y,O,r),P=(0,g.op)(h,y,O,r+359*(i?1:-1)),j="M".concat(M.x,",").concat(M.y,"\n A").concat(O,",").concat(O,",0,1,").concat(i?0:1,",\n ").concat(P.x,",").concat(P.y),A=a()(t.id)?(0,d.EL)("recharts-radial-line-"):t.id;return o().createElement("text",w({},n,{dominantBaseline:"central",className:(0,f.Z)("recharts-radial-bar-label",l)}),o().createElement("defs",null,o().createElement("path",{id:A,d:j})),o().createElement("textPath",{xlinkHref:"#".concat(A)},e))},S=function(t){var e=t.viewBox,n=t.offset,r=t.position,o=e,i=o.cx,a=o.cy,s=o.innerRadius,u=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=(0,g.op)(i,a,u+n,c),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=(s+u)/2,h=(0,g.op)(i,a,p,c);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},C=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,o=t.position,i=e,a=i.x,s=i.y,u=i.width,c=i.height,f=c>=0?1:-1,p=f*r,h=f>0?"end":"start",g=f>0?"start":"end",y=u>=0?1:-1,v=y*r,m=y>0?"end":"start",b=y>0?"start":"end";if("top"===o)return x(x({},{x:a+u/2,y:s-f*r,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(s-n.y,0),width:u}:{});if("bottom"===o)return x(x({},{x:a+u/2,y:s+c+p,textAnchor:"middle",verticalAnchor:g}),n?{height:Math.max(n.y+n.height-(s+c),0),width:u}:{});if("left"===o){var w={x:a-v,y:s+c/2,textAnchor:m,verticalAnchor:"middle"};return x(x({},w),n?{width:Math.max(w.x-n.x,0),height:c}:{})}if("right"===o){var E={x:a+u+v,y:s+c/2,textAnchor:b,verticalAnchor:"middle"};return x(x({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:c}:{})}var O=n?{width:u,height:c}:{};return"insideLeft"===o?x({x:a+v,y:s+c/2,textAnchor:b,verticalAnchor:"middle"},O):"insideRight"===o?x({x:a+u-v,y:s+c/2,textAnchor:m,verticalAnchor:"middle"},O):"insideTop"===o?x({x:a+u/2,y:s+p,textAnchor:"middle",verticalAnchor:g},O):"insideBottom"===o?x({x:a+u/2,y:s+c-p,textAnchor:"middle",verticalAnchor:h},O):"insideTopLeft"===o?x({x:a+v,y:s+p,textAnchor:b,verticalAnchor:g},O):"insideTopRight"===o?x({x:a+u-v,y:s+p,textAnchor:m,verticalAnchor:g},O):"insideBottomLeft"===o?x({x:a+v,y:s+c-p,textAnchor:b,verticalAnchor:h},O):"insideBottomRight"===o?x({x:a+u-v,y:s+c-p,textAnchor:m,verticalAnchor:h},O):l()(o)&&((0,d.hj)(o.x)||(0,d.hU)(o.x))&&((0,d.hj)(o.y)||(0,d.hU)(o.y))?x({x:a+(0,d.h1)(o.x,u),y:s+(0,d.h1)(o.y,c),textAnchor:"end",verticalAnchor:"end"},O):x({x:a+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},M=function(t){return"cx"in t&&(0,d.hj)(t.cx)};function P(t){var e,n=t.offset,i=x({offset:void 0===n?5:n},function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,v)),s=i.viewBox,c=i.position,l=i.value,d=i.children,g=i.content,y=i.className,m=void 0===y?"":y,b=i.textBreakAll;if(!s||a()(l)&&a()(d)&&!(0,r.isValidElement)(g)&&!u()(g))return null;if((0,r.isValidElement)(g))return(0,r.cloneElement)(g,i);if(u()(g)){if(e=(0,r.createElement)(g,i),(0,r.isValidElement)(e))return e}else e=E(i);var P=M(s),j=(0,h.L6)(i,!0);if(P&&("insideStart"===c||"insideEnd"===c||"end"===c))return O(i,e,j);var A=P?S(i):C(i);return o().createElement(p.x,w({className:(0,f.Z)("recharts-label",m)},j,A,{breakAll:b}),e)}P.displayName="Label";var j=function(t){var e=t.cx,n=t.cy,r=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,l=t.x,f=t.y,p=t.top,h=t.left,g=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,d.hj)(g)&&(0,d.hj)(y)){if((0,d.hj)(l)&&(0,d.hj)(f))return{x:l,y:f,width:g,height:y};if((0,d.hj)(p)&&(0,d.hj)(h))return{x:p,y:h,width:g,height:y}}return(0,d.hj)(l)&&(0,d.hj)(f)?{x:l,y:f,width:0,height:0}:(0,d.hj)(e)&&(0,d.hj)(n)?{cx:e,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:c||s||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};P.parseViewBox=j,P.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=j(t),s=(0,h.NN)(i,P).map((function(t,n){return(0,r.cloneElement)(t,{viewBox:e||a,key:"label-".concat(n)})}));if(!n)return s;var c,f=function(t,e){return t?!0===t?o().createElement(P,{key:"label-implicit",viewBox:e}):(0,d.P2)(t)?o().createElement(P,{key:"label-implicit",viewBox:e,value:t}):(0,r.isValidElement)(t)?t.type===P?(0,r.cloneElement)(t,{key:"label-implicit",viewBox:e}):o().createElement(P,{key:"label-implicit",content:t,viewBox:e}):u()(t)?o().createElement(P,{key:"label-implicit",content:t,viewBox:e}):l()(t)?o().createElement(P,w({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||a);return[f].concat(function(t){if(Array.isArray(t))return m(t)}(c=s)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(c)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(c)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},97245:(t,e,n)=>{"use strict";n.d(e,{D:()=>L});var r=n(8156),o=n.n(r),i=n(61049),a=n.n(i),s=n(75877),u=n(91745),c=n(19617),l=n(66406),f=n(21442);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(this,arguments)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function m(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t){if("object"!==p(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===p(e)?e:String(e)}var x=32,w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&y(t,e)}(w,t);var e,n,r,i,b=(r=w,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=v(r);if(i){var n=v(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function w(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,w),b.apply(this,arguments)}return e=w,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,r=x/6,i=x/3,a=t.inactive?e:t.color;if("plainline"===t.type)return o().createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:x,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return o().createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(x,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return o().createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(x,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o().isValidElement(t.legendIcon)){var s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return delete s.legendIcon,o().cloneElement(t.legendIcon,s)}return o().createElement(l.v,{fill:a,cx:n,cy:n,size:x,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,i=e.layout,l=e.formatter,p=e.inactiveColor,d={x:0,y:0,width:x,height:x},g={display:"horizontal"===i?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var i,v=e.formatter||l,b=(0,s.Z)((m(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),m(i,"inactive",e.inactive),i));if("none"===e.type)return null;var x=a()(e.value)?null:e.value;(0,u.Z)(!a()(e.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 w=e.inactive?p:e.color;return o().createElement("li",h({className:b,style:g,key:"legend-item-".concat(n)},(0,f.bw)(t.props,e,n)),o().createElement(c.T,{width:r,height:r,viewBox:d,style:y},t.renderIcon(e)),o().createElement("span",{className:"recharts-legend-item-text",style:{color:w}},v?v(x,e,n):x))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return o().createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),w}(r.PureComponent);m(w,"displayName","Legend"),m(w,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var E=n(15027),O=n(32391);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}var C=["ref"];function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,D(r.key),r)}}function A(t,e){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},A(t,e)}function k(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function T(t,e,n){return(e=D(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D(t){var e=function(t){if("object"!==S(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===S(e)?e:String(e)}function I(t){return t.value}var L=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&A(t,e)}(u,t);var e,n,r,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_(i);if(a){var n=_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return k(t)}(this,t)});function u(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return T(k(t=s.call.apply(s,[this].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}return e=u,r=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&(0,E.hj)(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?P({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,s=r.margin,u=r.chartWidth,c=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),P(P({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,a=e.wrapperStyle,s=e.payloadUniqBy,u=e.payload,c=P(P({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(o().isValidElement(t))return o().cloneElement(t,e);if("function"==typeof t)return o().createElement(t,e);e.ref;var n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,C);return o().createElement(w,n)}(n,P(P({},this.props),{},{payload:(0,O.z)(u,s,I)})))}}])&&j(e.prototype,n),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(r.PureComponent);T(L,"displayName","Legend"),T(L,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},18205:(t,e,n)=>{"use strict";n.d(e,{h:()=>y});var r=n(75877),o=n(8156),i=n.n(o),a=n(12436),s=n.n(a),u=n(48570),c=n(15027),l=n(91745),f=n(79376);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==p(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===p(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var y=(0,o.forwardRef)((function(t,e){var n=t.aspect,a=t.initialDimension,p=void 0===a?{width:-1,height:-1}:a,h=t.width,y=void 0===h?"100%":h,v=t.height,m=void 0===v?"100%":v,b=t.minWidth,x=void 0===b?0:b,w=t.minHeight,E=t.maxHeight,O=t.children,S=t.debounce,C=void 0===S?0:S,M=t.id,P=t.className,j=t.onResize,A=t.style,k=void 0===A?{}:A,_=(0,o.useRef)(null),T=(0,o.useRef)();T.current=j,(0,o.useImperativeHandle)(e,(function(){return _}));var D,I,L=(D=(0,o.useState)({containerWidth:p.width,containerHeight:p.height}),I=2,function(t){if(Array.isArray(t))return t}(D)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(D,I)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}(D,I)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),N=L[0],R=L[1],B=(0,o.useCallback)((function(t,e){R((function(n){var r=Math.round(t),o=Math.round(e);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);(0,o.useEffect)((function(){var t=function(t){var e,n=t[0].contentRect,r=n.width,o=n.height;B(r,o),null===(e=T.current)||void 0===e||e.call(T,r,o)};C>0&&(t=s()(t,C,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=_.current.getBoundingClientRect(),r=n.width,o=n.height;return B(r,o),e.observe(_.current),function(){e.disconnect()}}),[B,C]);var F=(0,o.useMemo)((function(){var t=N.containerWidth,e=N.containerHeight;if(t<0||e<0)return null;(0,l.Z)((0,c.hU)(y)||(0,c.hU)(m),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,m),(0,l.Z)(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=(0,c.hU)(y)?t:y,a=(0,c.hU)(m)?e:m;n&&n>0&&(r?a=r/n:a&&(r=a*n),E&&a>E&&(a=E)),(0,l.Z)(r>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,a,y,m,x,w,n);var s=!Array.isArray(O)&&(0,u.isElement)(O)&&(0,f.Gf)(O.type).endsWith("Chart");return i().Children.map(O,(function(t){return(0,u.isElement)(t)?(0,o.cloneElement)(t,d({width:r,height:a},s?{style:d({height:"100%",width:"100%",maxHeight:a,maxWidth:r},t.props.style)}:{})):t}))}),[n,O,m,E,w,x,N,y]);return i().createElement("div",{id:M?"".concat(M):void 0,className:(0,r.Z)("recharts-responsive-container",P),style:d(d({},k),{},{width:y,height:m,minWidth:x,minHeight:w,maxHeight:E}),ref:_},F)}))},75963:(t,e,n)=>{"use strict";n.d(e,{x:()=>R});var r=n(8156),o=n.n(r),i=n(1842),a=n.n(i),s=n(75877),u=n(15027),c=n(79499),l=n(79376),f=n(88089);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t){if("object"!==p(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===p(o)?o:String(o)),r)}var o}var y=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,v=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,m=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,b=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,x={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},w=Object.keys(x),E="NaN",O=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=n,this.num=e,this.unit=n,Number.isNaN(e)&&(this.unit=""),""===n||m.test(n)||(this.num=NaN,this.unit=""),w.includes(n)&&(this.num=function(t,e){return t*x[e]}(e,n),this.unit="px")}var e,n,r;return e=t,r=[{key:"parse",value:function(e){var n,r=h(null!==(n=b.exec(e))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new t(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&g(e.prototype,n),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function S(t){if(t.includes(E))return E;for(var e=t;e.includes("*")||e.includes("/");){var n,r=h(null!==(n=y.exec(e))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],s=O.parse(null!=o?o:""),u=O.parse(null!=a?a:""),c="*"===i?s.multiply(u):s.divide(u);if(c.isNaN())return E;e=e.replace(y,c.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var l,f=h(null!==(l=v.exec(e))&&void 0!==l?l:[],4),p=f[1],d=f[2],g=f[3],m=O.parse(null!=p?p:""),b=O.parse(null!=g?g:""),x="+"===d?m.add(b):m.subtract(b);if(x.isNaN())return E;e=e.replace(v,x.toString())}return e}var C=/\(([^()]*)\)/;function M(t){var e=function(t){try{return function(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var n=h(C.exec(e),2)[1];e=e.replace(C,S(n))}return e}(e),S(e)}(t)}catch(t){return E}}(t.slice(5,-1));return e===E?"":e}var P=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],j=["dx","dy","angle","className","breakAll"];function A(){return A=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A.apply(this,arguments)}function k(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var D=/[ \f\n\r\t\v\u2028\u2029]+/,I=function(t){var e=t.children,n=t.breakAll,r=t.style;try{var o=[];return a()(e)||(o=n?e.toString().split(""):e.toString().split(D)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:(0,f.xE)(t,r).width}})),spaceWidth:n?0:(0,f.xE)(" ",r).width}}catch(t){return null}},L=function(t){return[{words:a()(t)?[]:t.toString().split(D)}]},N="#808080",R=function(t){var e=t.x,n=void 0===e?0:e,i=t.y,a=void 0===i?0:i,f=t.lineHeight,p=void 0===f?"1em":f,h=t.capHeight,d=void 0===h?"0.71em":h,g=t.scaleToFit,y=void 0!==g&&g,v=t.textAnchor,m=void 0===v?"start":v,b=t.verticalAnchor,x=void 0===b?"end":b,w=t.fill,E=void 0===w?N:w,O=k(t,P),S=(0,r.useMemo)((function(){return function(t){var e=t.width,n=t.scaleToFit,r=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||n)&&!c.x.isSsr){var s=I({breakAll:i,children:r,style:o});return s?function(t,e,n,r,o){var i=t.maxLines,a=t.children,s=t.style,c=t.breakAll,l=(0,u.hj)(i),f=a,p=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,s=t[t.length-1];if(s&&(null==r||o||s.width+a+n<Number(r)))s.words.push(i),s.width+=a+n;else{var u={words:[i],width:a};t.push(u)}return t}),[])},h=p(e);if(!l)return h;for(var d,g=function(t){var e=f.slice(0,t),n=I({breakAll:c,style:s,children:e+"…"}).wordsWithComputedWidth,o=p(n),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(r);return[a,o]},y=0,v=f.length-1,m=0;y<=v&&m<=f.length-1;){var b=Math.floor((y+v)/2),x=_(g(b-1),2),w=x[0],E=x[1],O=_(g(b),1)[0];if(w||O||(y=b+1),w&&O&&(v=b-1),!w&&O){d=E;break}m++}return d||h}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,e,n):L(r)}return L(r)}({breakAll:O.breakAll,children:O.children,maxLines:O.maxLines,scaleToFit:y,style:O.style,width:O.width})}),[O.breakAll,O.children,O.maxLines,y,O.style,O.width]),C=O.dx,T=O.dy,D=O.angle,R=O.className,B=O.breakAll,F=k(O,j);if(!(0,u.P2)(n)||!(0,u.P2)(a))return null;var z,U=n+((0,u.hj)(C)?C:0),W=a+((0,u.hj)(T)?T:0);switch(x){case"start":z=M("calc(".concat(d,")"));break;case"middle":z=M("calc(".concat((S.length-1)/2," * -").concat(p," + (").concat(d," / 2))"));break;default:z=M("calc(".concat(S.length-1," * -").concat(p,")"))}var q=[];if(y){var H=S[0].width,Z=O.width;q.push("scale(".concat(((0,u.hj)(Z)?Z/H:1)/H,")"))}return D&&q.push("rotate(".concat(D,", ").concat(U,", ").concat(W,")")),q.length&&(F.transform=q.join(" ")),o().createElement("text",A({},(0,l.L6)(F,!0),{x:U,y:W,className:(0,s.Z)("recharts-text",R),textAnchor:m,fill:E.includes("url")?N:E}),S.map((function(t,e){return o().createElement("tspan",{x:U,dy:0===e?z:p,key:e},t.words.join(B?"":" "))})))}},27741:(t,e,n)=>{"use strict";n.d(e,{u:()=>Z});var r=n(8156),o=n.n(r),i=n(829),a=n.n(i),s=n(1842),u=n.n(s),c=n(75877),l=n(15027);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==f(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===f(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t){return Array.isArray(t)&&(0,l.P2)(t[0])&&(0,l.P2)(t[1])?t.join(" ~ "):t}var y=function(t){var e=t.separator,n=void 0===e?" : ":e,r=t.contentStyle,i=void 0===r?{}:r,s=t.itemStyle,f=void 0===s?{}:s,h=t.labelStyle,y=void 0===h?{}:h,v=t.payload,m=t.formatter,b=t.itemSorter,x=t.wrapperClassName,w=t.labelClassName,E=t.label,O=t.labelFormatter,S=d({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),C=d({margin:0},y),M=!u()(E),P=M?E:"",j=(0,c.Z)("recharts-default-tooltip",x),A=(0,c.Z)("recharts-tooltip-label",w);return M&&O&&null!=v&&(P=O(E,v)),o().createElement("div",{className:j,style:S},o().createElement("p",{className:A,style:C},o().isValidElement(P)?P:"".concat(P)),function(){if(v&&v.length){var t=(b?a()(v,b):v).map((function(t,e){if("none"===t.type)return null;var r=d({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},f),i=t.formatter||m||g,a=t.value,s=t.name,u=a,c=s;if(i&&null!=u&&null!=c){var h=i(a,s,t,e,v);if(Array.isArray(h)){var y=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(h,2);u=y[0],c=y[1]}else u=h}return o().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:r},(0,l.P2)(c)?o().createElement("span",{className:"recharts-tooltip-item-name"},c):null,(0,l.P2)(c)?o().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o().createElement("span",{className:"recharts-tooltip-item-value"},u),o().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return o().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())},v=n(87935);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e,n){return(e=function(t){var e=function(t){if("object"!==m(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===m(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x="recharts-tooltip-wrapper",w={visibility:"hidden"};function E(t){var e,n=t.coordinate,r=t.translateX,o=t.translateY;return(0,c.Z)(x,(b(e={},"".concat(x,"-right"),(0,l.hj)(r)&&n&&(0,l.hj)(n.x)&&r>=n.x),b(e,"".concat(x,"-left"),(0,l.hj)(r)&&n&&(0,l.hj)(n.x)&&r<n.x),b(e,"".concat(x,"-bottom"),(0,l.hj)(o)&&n&&(0,l.hj)(n.y)&&o>=n.y),b(e,"".concat(x,"-top"),(0,l.hj)(o)&&n&&(0,l.hj)(n.y)&&o<n.y),e))}function O(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,s=t.tooltipDimension,u=t.viewBox,c=t.viewBoxDimension;if(i&&(0,l.hj)(i[r]))return i[r];var f=n[r]-s-o,p=n[r]+o;return e[r]?a[r]?f:p:a[r]?f<u[r]?Math.max(p,u[r]):Math.max(f,u[r]):p+s>u[r]+c?Math.max(f,u[r]):Math.max(p,u[r])}function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,T(r.key),r)}}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}function _(t,e,n){return(e=T(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t){var e=function(t){if("object"!==S(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===S(e)?e:String(e)}var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&j(t,e)}(s,t);var e,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=k(r);if(i){var n=k(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return A(t)}(this,t)});function s(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return _(A(t=a.call.apply(a,[this].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),_(A(t),"lastBoundingBox",{width:-1,height:-1}),_(A(t),"handleKeyDown",(function(e){var n,r,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=t.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}return e=s,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.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 t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,n=e.active,r=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,s=e.children,u=e.coordinate,c=e.hasPayload,l=e.isAnimationActive,f=e.offset,p=e.position,h=e.reverseDirection,d=e.useTranslate3d,g=e.viewBox,y=e.wrapperStyle,m=function(t){var e,n,r,o=t.allowEscapeViewBox,i=t.coordinate,a=t.offsetTopLeft,s=t.position,u=t.reverseDirection,c=t.tooltipBox,l=t.useTranslate3d,f=t.viewBox;return e=c.height>0&&c.width>0&&i?function(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return(0,v.bO)({transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})}({translateX:n=O({allowEscapeViewBox:o,coordinate:i,key:"x",offsetTopLeft:a,position:s,reverseDirection:u,tooltipDimension:c.width,viewBox:f,viewBoxDimension:f.width}),translateY:r=O({allowEscapeViewBox:o,coordinate:i,key:"y",offsetTopLeft:a,position:s,reverseDirection:u,tooltipDimension:c.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:l}):w,{cssProperties:e,cssClasses:E({translateX:n,translateY:r,coordinate:i})}}({allowEscapeViewBox:r,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:d,viewBox:g}),b=m.cssClasses,x=m.cssProperties,S=M(M(M({},l&&n&&(0,v.bO)({transition:"transform ".concat(i,"ms ").concat(a)})),x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return o().createElement("div",{tabIndex:-1,role:"dialog",className:b,style:S,ref:function(e){t.wrapperNode=e}},s)}}])&&P(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(r.PureComponent),I=n(79499),L=n(32391);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function B(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){W(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,q(r.key),r)}}function z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}function W(t,e,n){return(e=q(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t){var e=function(t){if("object"!==N(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===N(e)?e:String(e)}function H(t){return t.dataKey}var Z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)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&&z(t,e)}(s,t);var e,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=U(r);if(i){var n=U(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===N(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return e=s,(n=[{key:"render",value:function(){var t=this.props,e=t.active,n=t.allowEscapeViewBox,r=t.animationDuration,i=t.animationEasing,a=t.content,s=t.coordinate,u=t.filterNull,c=t.isAnimationActive,l=t.offset,f=t.payload,p=t.payloadUniqBy,h=t.position,d=t.reverseDirection,g=t.useTranslate3d,v=t.viewBox,m=t.wrapperStyle,b=null!=f?f:[];u&&b.length&&(b=(0,L.z)(f.filter((function(t){return null!=t.value})),p,H));var x=b.length>0;return o().createElement(D,{allowEscapeViewBox:n,animationDuration:r,animationEasing:i,isAnimationActive:c,active:e,coordinate:s,hasPayload:x,offset:l,position:h,reverseDirection:d,useTranslate3d:g,viewBox:v,wrapperStyle:m},function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):"function"==typeof t?o().createElement(t,e):o().createElement(y,e)}(a,B(B({},this.props),{},{payload:b})))}}])&&F(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(r.PureComponent);W(Z,"displayName","Tooltip"),W(Z,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!I.x.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:{}})},84618:(t,e,n)=>{"use strict";n.d(e,{m:()=>c});var r=n(8156),o=n.n(r),i=n(75877),a=n(79376),s=["children","className"];function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}var c=o().forwardRef((function(t,e){var n=t.children,r=t.className,c=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,s),l=(0,i.Z)("recharts-layer",r);return o().createElement("g",u({className:l},(0,a.L6)(c,!0),{ref:e}),n)}))},19617:(t,e,n)=>{"use strict";n.d(e,{T:()=>c});var r=n(8156),o=n.n(r),i=n(75877),a=n(79376),s=["children","width","height","viewBox","className","style","title","desc"];function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t){var e=t.children,n=t.width,r=t.height,c=t.viewBox,l=t.className,f=t.style,p=t.title,h=t.desc,d=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,s),g=c||{width:n,height:r,x:0,y:0},y=(0,i.Z)("recharts-surface",l);return o().createElement("svg",u({},(0,a.L6)(d,!0,"svg"),{className:y,width:n,height:r,style:f,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height)}),o().createElement("title",null,p),o().createElement("desc",null,h),e)}},43624:(t,e,n)=>{"use strict";n.d(e,{X:()=>d,A:()=>y});var r=n(8156),o=n.n(r),i=n(75877),a=n(87935),s=n(79376);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==u(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===u(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(t,e,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+u*l[0],",").concat(e)),i+="L ".concat(t+n-u*l[1],",").concat(e),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,",\n ").concat(t+n,",").concat(e+s*l[1])),i+="L ".concat(t+n,",").concat(e+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,",\n ").concat(t+n-u*l[2],",").concat(e+r)),i+="L ".concat(t+u*l[3],",").concat(e+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+n-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+n,",").concat(e+s*p,"\n L ").concat(t+n,",").concat(e+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+n-u*p,",").concat(e+r,"\n L ").concat(t+u*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t,",").concat(e+r-s*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},d=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,o=e.x,i=e.y,a=e.width,s=e.height;if(Math.abs(a)>0&&Math.abs(s)>0){var u=Math.min(o,o+a),c=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=u&&n<=c&&r>=l&&r<=f}return!1},g={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,n,u=p(p({},g),t),f=(0,r.useRef)(),d=(e=(0,r.useState)(-1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=d[0],v=d[1];(0,r.useEffect)((function(){if(f.current&&f.current.getTotalLength)try{var t=f.current.getTotalLength();t&&v(t)}catch(t){}}),[]);var m=u.x,b=u.y,x=u.width,w=u.height,E=u.radius,O=u.className,S=u.animationEasing,C=u.animationDuration,M=u.animationBegin,P=u.isAnimationActive,j=u.isUpdateAnimationActive;if(m!==+m||b!==+b||x!==+x||w!==+w||0===x||0===w)return null;var A=(0,i.Z)("recharts-rectangle",O);return j?o().createElement(a.ZP,{canBegin:y>0,from:{width:x,height:w,x:m,y:b},to:{width:x,height:w,x:m,y:b},duration:C,animationEasing:S,isActive:j},(function(t){var e=t.width,n=t.height,r=t.x,i=t.y;return o().createElement(a.ZP,{canBegin:y>0,from:"0px ".concat(-1===y?1:y,"px"),to:"".concat(y,"px 0px"),attributeName:"strokeDasharray",begin:M,duration:C,isActive:P,easing:S},o().createElement("path",c({},(0,s.L6)(u,!0),{className:A,d:h(r,i,e,n,E),ref:f})))})):o().createElement("path",c({},(0,s.L6)(u,!0),{className:A,d:h(m,b,x,w,E)}))}},21844:(t,e,n)=>{"use strict";n.d(e,{L:()=>y});var r=n(8156),o=n.n(r),i=n(75877),a=n(79376),s=n(22089),u=n(15027);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l.apply(this,arguments)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==c(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===c(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(t){var e=t.cx,n=t.cy,r=t.radius,o=t.angle,i=t.sign,a=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(a?1:-1)+r,f=Math.asin(u/l)/s.Wk,p=c?o:o+i*f,h=c?o-i*f:o;return{center:(0,s.op)(e,n,l,p),circleTangency:(0,s.op)(e,n,r,p),lineTangency:(0,s.op)(e,n,l*Math.cos(f*s.Wk),h),theta:f}},d=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return(0,u.uY)(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,l=(0,s.op)(e,n,o,i),f=(0,s.op)(e,n,o,c),p="M ".concat(l.x,",").concat(l.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(f.x,",").concat(f.y,"\n ");if(r>0){var h=(0,s.op)(e,n,r,i),d=(0,s.op)(e,n,r,c);p+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(h.x,",").concat(h.y," Z")}else p+="L ".concat(e,",").concat(n," Z");return p},g={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},y=function(t){var e=p(p({},g),t),n=e.cx,r=e.cy,s=e.innerRadius,c=e.outerRadius,f=e.cornerRadius,y=e.forceCornerRadius,v=e.cornerIsExternal,m=e.startAngle,b=e.endAngle,x=e.className;if(c<s||m===b)return null;var w,E=(0,i.Z)("recharts-sector",x),O=c-s,S=(0,u.h1)(f,O,0,!0);return w=S>0&&Math.abs(m-b)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,f=(0,u.uY)(l-c),p=h({cx:e,cy:n,radius:o,angle:c,sign:f,cornerRadius:i,cornerIsExternal:s}),g=p.circleTangency,y=p.lineTangency,v=p.theta,m=h({cx:e,cy:n,radius:o,angle:l,sign:-f,cornerRadius:i,cornerIsExternal:s}),b=m.circleTangency,x=m.lineTangency,w=m.theta,E=s?Math.abs(c-l):Math.abs(c-l)-v-w;if(E<0)return a?"M ".concat(y.x,",").concat(y.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):d({cx:e,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l});var O="M ".concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var S=h({cx:e,cy:n,radius:r,angle:c,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=S.circleTangency,M=S.lineTangency,P=S.theta,j=h({cx:e,cy:n,radius:r,angle:l,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),A=j.circleTangency,k=j.lineTangency,_=j.theta,T=s?Math.abs(c-l):Math.abs(c-l)-P-_;if(T<0&&0===i)return"".concat(O,"L").concat(e,",").concat(n,"Z");O+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(f>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,"Z")}else O+="L".concat(e,",").concat(n,"Z");return O}({cx:n,cy:r,innerRadius:s,outerRadius:c,cornerRadius:Math.min(S,O/2),forceCornerRadius:y,cornerIsExternal:v,startAngle:m,endAngle:b}):d({cx:n,cy:r,innerRadius:s,outerRadius:c,startAngle:m,endAngle:b}),o().createElement("path",l({},(0,a.L6)(e,!0),{className:E,d:w,role:"img"}))}},66406:(t,e,n)=>{"use strict";n.d(e,{v:()=>z});var r=n(8156),o=n.n(r),i=n(23779),a=n.n(i);Math.abs,Math.atan2;const s=Math.cos,u=(Math.max,Math.min,Math.sin),c=Math.sqrt,l=Math.PI,f=2*l,p={draw(t,e){const n=c(e/l);t.moveTo(n,0),t.arc(0,0,n,0,f)}},h={draw(t,e){const n=c(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},d=c(1/3),g=2*d,y={draw(t,e){const n=c(e/g),r=n*d;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},v={draw(t,e){const n=c(e),r=-n/2;t.rect(r,r,n,n)}},m=u(l/10)/u(7*l/10),b=u(f/10)*m,x=-s(f/10)*m,w={draw(t,e){const n=c(.8908130915292852*e),r=b*n,o=x*n;t.moveTo(0,-n),t.lineTo(r,o);for(let e=1;e<5;++e){const i=f*e/5,a=s(i),c=u(i);t.lineTo(c*n,-a*n),t.lineTo(a*r-c*o,c*r+a*o)}t.closePath()}},E=c(3),O={draw(t,e){const n=-c(e/(3*E));t.moveTo(0,2*n),t.lineTo(-E*n,-n),t.lineTo(E*n,-n),t.closePath()}},S=-.5,C=c(3)/2,M=1/c(12),P=3*(M/2+1),j={draw(t,e){const n=c(e/P),r=n/2,o=n*M,i=r,a=n*M+n,s=-i,u=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(s,u),t.lineTo(S*r-C*o,C*r+S*o),t.lineTo(S*i-C*a,C*i+S*a),t.lineTo(S*s-C*u,C*s+S*u),t.lineTo(S*r+C*o,S*o-C*r),t.lineTo(S*i+C*a,S*a-C*i),t.lineTo(S*s+C*u,S*u-C*s),t.closePath()}};var A=n(6677),k=n(13149);c(3),c(3);var _=n(75877),T=n(79376);function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}var I=["type","size","sizeType"];function L(){return L=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},L.apply(this,arguments)}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==D(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===D(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var B={symbolCircle:p,symbolCross:h,symbolDiamond:y,symbolSquare:v,symbolStar:w,symbolTriangle:O,symbolWye:j},F=Math.PI/180,z=function(t){var e,n,r=t.type,i=void 0===r?"circle":r,s=t.size,u=void 0===s?64:s,c=t.sizeType,l=void 0===c?"area":c,f=R(R({},function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,I)),{},{type:i,size:u,sizeType:l}),h=f.className,d=f.cx,g=f.cy,y=(0,T.L6)(f,!0);return d===+d&&g===+g&&u===+u?o().createElement("path",L({},y,{className:(0,_.Z)("recharts-symbols",h),transform:"translate(".concat(d,", ").concat(g,")"),d:(e=function(t){var e="symbol".concat(a()(t));return B[e]||p}(i),n=function(t,e){let n=null,r=(0,k.d)(o);function o(){let o;if(n||(n=o=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return t="function"==typeof t?t:(0,A.Z)(t||p),e="function"==typeof e?e:(0,A.Z)(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,A.Z)(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,A.Z)(+t),o):e},o.context=function(t){return arguments.length?(n=null==t?null:t,o):n},o}().type(e).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*F;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(u,l,i)),n())})):null};z.registerSymbol=function(t,e){B["symbol".concat(a()(t))]=e}},29742:(t,e,n)=>{"use strict";n.d(e,{bn:()=>I,a3:()=>U,lT:()=>L,V$:()=>N,w7:()=>R});var r=n(8156),o=n.n(r),i=n(61049),a=n.n(i),s=n(97030),u=n.n(s),c=n(4335),l=n.n(c),f=n(18149),p=n.n(f),h=n(43624),d=n(75877),g=n(87935),y=n(79376);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function m(){return m=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},m.apply(this,arguments)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==v(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===v(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var E=function(t,e,n,r,o){var i,a=n-r;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+n,",").concat(e),i+="L ".concat(t+n-a/2,",").concat(e+o),(i+="L ".concat(t+n-a/2-r,",").concat(e+o))+"L ".concat(t,",").concat(e," Z")},O={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},S=function(t){var e,n,i=w(w({},O),t),a=(0,r.useRef)(),s=(e=(0,r.useState)(-1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],c=s[1];(0,r.useEffect)((function(){if(a.current&&a.current.getTotalLength)try{var t=a.current.getTotalLength();t&&c(t)}catch(t){}}),[]);var l=i.x,f=i.y,p=i.upperWidth,h=i.lowerWidth,v=i.height,x=i.className,S=i.animationEasing,C=i.animationDuration,M=i.animationBegin,P=i.isUpdateAnimationActive;if(l!==+l||f!==+f||p!==+p||h!==+h||v!==+v||0===p&&0===h||0===v)return null;var j=(0,d.Z)("recharts-trapezoid",x);return P?o().createElement(g.ZP,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:v,x:l,y:f},to:{upperWidth:p,lowerWidth:h,height:v,x:l,y:f},duration:C,animationEasing:S,isActive:P},(function(t){var e=t.upperWidth,n=t.lowerWidth,r=t.height,s=t.x,c=t.y;return o().createElement(g.ZP,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:M,duration:C,easing:S},o().createElement("path",m({},(0,y.L6)(i,!0),{className:j,d:E(s,c,e,n,r),ref:a})))})):o().createElement("g",null,o().createElement("path",m({},(0,y.L6)(i,!0),{className:j,d:E(l,f,p,h,v)})))},C=n(21844),M=n(84618),P=n(66406),j=["option","shapeType","propTransformer","activeClassName","isActive"];function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==A(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===A(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t,e){return _(_({},e),t)}function D(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return o().createElement(h.A,n);case"trapezoid":return o().createElement(S,n);case"sector":return o().createElement(C.L,n);case"symbols":if(function(t){return"symbols"===t}(e))return o().createElement(P.v,n);break;default:return null}}function I(t){var e,n=t.option,i=t.shapeType,s=t.propTransformer,c=void 0===s?T:s,f=t.activeClassName,p=void 0===f?"recharts-active-shape":f,h=t.isActive,d=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,j);if((0,r.isValidElement)(n))e=(0,r.cloneElement)(n,_(_({},d),function(t){return(0,r.isValidElement)(t)?t.props:t}(n)));else if(a()(n))e=n(d);else if(u()(n)&&!l()(n)){var g=c(n,d);e=o().createElement(D,{shapeType:i,elementProps:g})}else{var y=d;e=o().createElement(D,{shapeType:i,elementProps:y})}return h?o().createElement(M.m,{className:p},e):e}function L(t,e){return"trapezoids"in t.props}function N(t,e){return"sectors"in t.props}function R(t,e){return"points"in t.props}function B(t,e){var n,r,o=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,i=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return o&&i}function F(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function z(t,e){var n=t.x===e.x,r=t.y===e.y,o=t.z===e.z;return n&&r&&o}function U(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,o=function(t){var e;return L(t)?e="trapezoids":N(t)?e="sectors":R(t)&&(e="points"),e}(n),i=function(t,e){var n,r;return L(t)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:N(t)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:R(t)?e.payload:{}}(n,e),a=r.filter((function(t,r){var a=p()(i,t),s=n.props[o].filter((function(t){var r=function(t){var e;return L(t)?e=B:N(t)?e=F:R(t)&&(e=z),e}(n);return r(t,e)})),u=n.props[o].indexOf(s[s.length-1]);return a&&r===u}));return r.indexOf(a[a.length-1])}},24847:(t,e,n)=>{"use strict";n.d(e,{By:()=>Fi,VO:()=>Li,zF:()=>Xi,DO:()=>Vi,Bu:()=>Ki,zT:()=>la,qz:()=>Bi,pt:()=>Ri,Yj:()=>oa,Fy:()=>ra,Rf:()=>Hi,gF:()=>Ii,s6:()=>Wi,EB:()=>aa,fk:()=>Ni,wh:()=>ea,O3:()=>ia,uY:()=>Zi,g$:()=>na,Qo:()=>pa,F$:()=>Di,NA:()=>qi,ko:()=>fa,ZI:()=>Ui,Hq:()=>Gi,LG:()=>ca,Vv:()=>Ji});var r={};n.r(r),n.d(r,{scaleBand:()=>o.Z,scaleDiverging:()=>bo,scaleDivergingLog:()=>xo,scaleDivergingPow:()=>Eo,scaleDivergingSqrt:()=>Oo,scaleDivergingSymlog:()=>wo,scaleIdentity:()=>Bt,scaleImplicit:()=>Jt.O,scaleLinear:()=>Rt,scaleLog:()=>Vt,scaleOrdinal:()=>Jt.Z,scalePoint:()=>o.x,scalePow:()=>re,scaleQuantile:()=>he,scaleQuantize:()=>de,scaleRadial:()=>ae,scaleSequential:()=>fo,scaleSequentialLog:()=>po,scaleSequentialPow:()=>go,scaleSequentialQuantile:()=>vo,scaleSequentialSqrt:()=>yo,scaleSequentialSymlog:()=>ho,scaleSqrt:()=>oe,scaleSymlog:()=>Kt,scaleThreshold:()=>ge,scaleTime:()=>so,scaleUtc:()=>uo,tickFormat:()=>Lt});var o=n(78520);const i=Math.sqrt(50),a=Math.sqrt(10),s=Math.sqrt(2);function u(t,e,n){const r=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(r)),c=r/Math.pow(10,o),l=c>=i?10:c>=a?5:c>=s?2:1;let f,p,h;return o<0?(h=Math.pow(10,-o)/l,f=Math.round(t*h),p=Math.round(e*h),f/h<t&&++f,p/h>e&&--p,h=-h):(h=Math.pow(10,o)*l,f=Math.round(t/h),p=Math.round(e/h),f*h<t&&++f,p*h>e&&--p),p<f&&.5<=n&&n<2?u(t,e,2*n):[f,p,h]}function c(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[o,i,a]=r?u(e,t,n):u(t,e,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let t=0;t<s;++t)c[t]=(i-t)/-a;else for(let t=0;t<s;++t)c[t]=(i-t)*a;else if(a<0)for(let t=0;t<s;++t)c[t]=(o+t)/-a;else for(let t=0;t<s;++t)c[t]=(o+t)*a;return c}function l(t,e,n){return u(t=+t,e=+e,n=+n)[2]}function f(t,e,n){n=+n;const r=(e=+e)<(t=+t),o=r?l(e,t,n):l(t,e,n);return(r?-1:1)*(o<0?1/-o:o)}function p(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function h(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d(t){let e,n,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=p,n=(e,n)=>p(t(e),n),r=(e,n)=>t(e)-n):(e=t===p||t===h?t:g,n=t,r=t),{left:o,center:function(t,e,n=0,i=t.length){const a=o(t,e,n,i-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<=0?o=e+1:i=e}while(o<i)}return o}}}function g(){return 0}function y(t){return null===t?NaN:+t}const v=d(p),m=v.right,b=(v.left,d(y).center,m);function x(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function w(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function E(){}var O=.7,S=1/O,C="\\s*([+-]?\\d+)\\s*",M="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",P="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j=/^#([0-9a-f]{3,8})$/,A=new RegExp("^rgb\\("+[C,C,C]+"\\)$"),k=new RegExp("^rgb\\("+[P,P,P]+"\\)$"),_=new RegExp("^rgba\\("+[C,C,C,M]+"\\)$"),T=new RegExp("^rgba\\("+[P,P,P,M]+"\\)$"),D=new RegExp("^hsl\\("+[M,P,P]+"\\)$"),I=new RegExp("^hsla\\("+[M,P,P,M]+"\\)$"),L={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};function N(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function B(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=j.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?F(e):3===n?new W(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?z(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?z(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=A.exec(t))?new W(e[1],e[2],e[3],1):(e=k.exec(t))?new W(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=_.exec(t))?z(e[1],e[2],e[3],e[4]):(e=T.exec(t))?z(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=D.exec(t))?$(e[1],e[2]/100,e[3]/100,1):(e=I.exec(t))?$(e[1],e[2]/100,e[3]/100,e[4]):L.hasOwnProperty(t)?F(L[t]):"transparent"===t?new W(NaN,NaN,NaN,0):null}function F(t){return new W(t>>16&255,t>>8&255,255&t,1)}function z(t,e,n,r){return r<=0&&(t=e=n=NaN),new W(t,e,n,r)}function U(t,e,n,r){return 1===arguments.length?((o=t)instanceof E||(o=B(o)),o?new W((o=o.rgb()).r,o.g,o.b,o.opacity):new W):new W(t,e,n,null==r?1:r);var o}function W(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function q(){return"#"+Z(this.r)+Z(this.g)+Z(this.b)}function H(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Z(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function $(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new G(t,e,n,r)}function V(t){if(t instanceof G)return new G(t.h,t.s,t.l,t.opacity);if(t instanceof E||(t=B(t)),!t)return new G;if(t instanceof G)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,s=i-o,u=(i+o)/2;return s?(a=e===i?(n-r)/s+6*(n<r):n===i?(r-e)/s+2:(e-n)/s+4,s/=u<.5?i+o:2-i-o,a*=60):s=u>0&&u<1?0:a,new G(a,s,u,t.opacity)}function G(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Y(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function X(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}x(E,B,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:N,formatHex:N,formatHsl:function(){return V(this).formatHsl()},formatRgb:R,toString:R}),x(W,U,w(E,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new W(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?O:Math.pow(O,t),new W(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:q,formatHex:q,formatRgb:H,toString:H})),x(G,(function(t,e,n,r){return 1===arguments.length?V(t):new G(t,e,n,null==r?1:r)}),w(E,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new G(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?O:Math.pow(O,t),new G(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new W(Y(t>=240?t-240:t+120,o,r),Y(t,o,r),Y(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const K=t=>()=>t;function J(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):K(isNaN(t)?e:t)}const Q=function t(e){var n=function(t){return 1==(t=+t)?J:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):K(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=U(t)).r,(e=U(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=J(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function tt(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=U(e[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=t(i),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=s(t),r+""}}}function et(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=ct(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}function nt(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function rt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ot(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=ct(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}tt((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,s=r<e-1?t[r+2]:2*i-o;return X((n-r/e)*e,a,o,i,s)}})),tt((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return X((n-r/e)*e,o,i,a,s)}}));var it=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,at=new RegExp(it.source,"g");function st(t,e){var n,r,o,i=it.lastIndex=at.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=it.exec(t))&&(r=at.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:rt(n,r)})),i=at.lastIndex;return i<e.length&&(o=e.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function ut(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}}function ct(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?K(e):("number"===o?rt:"string"===o?(n=B(e))?(e=n,Q):st:e instanceof B?Q:e instanceof Date?nt:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?et:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ot:rt:ut))(t,e)}function lt(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function ft(t){return+t}var pt=[0,1];function ht(t){return t}function dt(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function gt(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=dt(o,r),i=n(a,i)):(r=dt(r,o),i=n(i,a)),function(t){return i(r(t))}}function yt(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=dt(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=b(t,e,1,r)-1;return i[n](o[n](e))}}function vt(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function mt(){var t,e,n,r,o,i,a=pt,s=pt,u=ct,c=ht;function l(){var t,e,n,u=Math.min(a.length,s.length);return c!==ht&&(t=a[0],e=a[u-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?yt:gt,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),s,u)))(t(c(e)))}return f.invert=function(n){return c(e((i||(i=r(s,a.map(t),rt)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,ft),l()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=lt,l()},f.clamp=function(t){return arguments.length?(c=!!t||ht,l()):c!==ht},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function bt(){return mt()(ht,ht)}var xt,wt=n(82669),Et=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ot(t){if(!(e=Et.exec(t)))throw new Error("invalid format: "+t);var e;return new St({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]})}function St(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ct(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Mt(t){return(t=Ct(Math.abs(t)))?t[1]:NaN}function Pt(t,e){var n=Ct(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Ot.prototype=St.prototype,St.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const jt={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},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)=>Pt(100*t,e),r:Pt,s:function(t,e){var n=Ct(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(xt=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Ct(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function At(t){return t}var kt,_t,Tt,Dt=Array.prototype.map,It=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lt(t,e,n,r){var o,i=f(t,e,n);switch((r=Ot(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Mt(e)/3)))-Mt(Math.abs(t)))}(i,a))||(r.precision=o),Tt(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Mt(e)-Mt(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Mt(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return _t(r)}function Nt(t){var e=t.domain;return t.ticks=function(t){var n=e();return c(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Lt(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,i=e(),a=0,s=i.length-1,u=i[a],c=i[s],f=10;for(c<u&&(o=u,u=c,c=o,o=a,a=s,s=o);f-- >0;){if((o=l(u,c,n))===r)return i[a]=u,i[s]=c,e(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o}r=o}return t},t}function Rt(){var t=bt();return t.copy=function(){return vt(t,Rt())},wt.o.apply(t,arguments),Nt(t)}function Bt(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,ft),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Bt(t).unknown(e)},t=arguments.length?Array.from(t,ft):[0,1],Nt(n)}function Ft(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}function zt(t){return Math.log(t)}function Ut(t){return Math.exp(t)}function Wt(t){return-Math.log(-t)}function qt(t){return-Math.exp(-t)}function Ht(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Zt(t){return(e,n)=>-t(-e,n)}function $t(t){const e=t(zt,Ut),n=e.domain;let r,o,i=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Ht:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=Zt(r),o=Zt(o),t(Wt,qt)):t(zt,Ut),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],s=e[e.length-1];const u=s<a;u&&([a,s]=[s,a]);let l,f,p=r(a),h=r(s);const d=null==t?10:+t;let g=[];if(!(i%1)&&h-p<d){if(p=Math.floor(p),h=Math.ceil(h),a>0){for(;p<=h;++p)for(l=1;l<i;++l)if(f=p<0?l/o(-p):l*o(p),!(f<a)){if(f>s)break;g.push(f)}}else for(;p<=h;++p)for(l=i-1;l>=1;--l)if(f=p>0?l/o(-p):l*o(p),!(f<a)){if(f>s)break;g.push(f)}2*g.length<d&&(g=c(a,s,d))}else g=c(p,h,Math.min(h-p,d)).map(o);return u?g.reverse():g},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=Ot(n)).precision||(n.trim=!0),n=_t(n)),t===1/0)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(r(t)));return e*i<i-.5&&(e*=i),e<=a?n(t):""}},e.nice=()=>n(Ft(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function Vt(){const t=$t(mt()).domain([1,10]);return t.copy=()=>vt(t,Vt()).base(t.base()),wt.o.apply(t,arguments),t}function Gt(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Yt(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Xt(t){var e=1,n=t(Gt(e),Yt(e));return n.constant=function(n){return arguments.length?t(Gt(e=+n),Yt(e)):e},Nt(n)}function Kt(){var t=Xt(mt());return t.copy=function(){return vt(t,Kt()).constant(t.constant())},wt.o.apply(t,arguments)}kt=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?At:(e=Dt.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(t.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?At:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Dt.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Ot(t)).fill,n=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):jt[m]||(void 0===y&&(y=12),v=!0,m="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===p?i:/[%p]/.test(m)?u:"",w=jt[m],E=/[defgprs%]/.test(m);function O(t){var o,i,u,p=b,O=x;if("c"===m)O=w(t)+O,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:c:"-"===f||"("===f?"":f)+p,O=("s"===m?It[8+xt/3]:"")+O+(S&&"("===f?")":""),E)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){O=(46===u?a+t.slice(o+1):t.slice(o))+O,t=t.slice(0,o);break}}g&&!h&&(t=r(t,1/0));var C=p.length+t.length+O.length,M=C<d?new Array(d-C+1).join(e):"";switch(g&&h&&(t=r(M+t,M.length?d-O.length:1/0),M=""),n){case"<":t=p+t+O+M;break;case"=":t=p+M+t+O;break;case"^":t=M.slice(0,C=M.length>>1)+p+t+O+M.slice(C);break;default:t=M+p+t+O}return s(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return t+""},O}return{format:f,formatPrefix:function(t,e){var n=f(((t=Ot(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Mt(e)/3))),o=Math.pow(10,-r),i=It[8+r/3];return function(t){return n(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),_t=kt.format,Tt=kt.formatPrefix;var Jt=n(29939);function Qt(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function te(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ee(t){return t<0?-t*t:t*t}function ne(t){var e=t(ht,ht),n=1;return e.exponent=function(e){return arguments.length?1==(n=+e)?t(ht,ht):.5===n?t(te,ee):t(Qt(n),Qt(1/n)):n},Nt(e)}function re(){var t=ne(mt());return t.copy=function(){return vt(t,re()).exponent(t.exponent())},wt.o.apply(t,arguments),t}function oe(){return re.apply(null,arguments).exponent(.5)}function ie(t){return Math.sign(t)*t*t}function ae(){var t,e=bt(),n=[0,1],r=!1;function o(n){var o=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(n));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return e.invert(ie(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((n=Array.from(t,ft)).map(ie)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return ae(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},wt.o.apply(o,arguments),Nt(o)}function se(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function ue(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function ce(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function le(t,e,n=0,r=1/0,o){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(o=void 0===o?ce:function(t=p){if(t===p)return ce;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=e-n+1,s=Math.log(i),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(i-u)/i)*(a-i/2<0?-1:1);le(t,e,Math.max(n,Math.floor(e-a*u/i+c)),Math.min(r,Math.floor(e+(i-a)*u/i+c)),o)}const i=t[e];let a=n,s=r;for(fe(t,n,e),o(t[r],i)>0&&fe(t,n,r);a<s;){for(fe(t,a,s),++a,--s;o(t[a],i)<0;)++a;for(;o(t[s],i)>0;)--s}0===o(t[n],i)?fe(t,n,s):(++s,fe(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function fe(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function pe(t,e,n=y){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function he(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t<o;)r[t-1]=pe(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[b(r,e)]}return i.invertExtent=function(t){var o=n.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(p),o()},i.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return he().domain(e).range(n).unknown(t)},wt.o.apply(i,arguments)}function de(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[b(o,e,0,r)]:t}function s(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,s()):[e,n]},a.range=function(t){return arguments.length?(r=(i=Array.from(t)).length-1,s()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return de().domain([e,n]).range(i).unknown(t)},wt.o.apply(Nt(a),arguments)}function ge(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[b(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return ge().domain(e).range(n).unknown(t)},wt.o.apply(o,arguments)}const ye=1e3,ve=6e4,me=36e5,be=864e5,xe=6048e5,we=31536e6,Ee=new Date,Oe=new Date;function Se(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=t=>{const e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),e(n,i),t(n)}while(s<n&&n<r);return a},o.filter=n=>Se((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(o.count=(e,r)=>(Ee.setTime(+e),Oe.setTime(+r),t(Ee),t(Oe),Math.floor(n(Ee,Oe))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?e=>r(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const Ce=Se((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Ce.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Se((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Ce:null),Ce.range;const Me=Se((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*ye)}),((t,e)=>(e-t)/ye),(t=>t.getUTCSeconds())),Pe=(Me.range,Se((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ye)}),((t,e)=>{t.setTime(+t+e*ve)}),((t,e)=>(e-t)/ve),(t=>t.getMinutes()))),je=(Pe.range,Se((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*ve)}),((t,e)=>(e-t)/ve),(t=>t.getUTCMinutes()))),Ae=(je.range,Se((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ye-t.getMinutes()*ve)}),((t,e)=>{t.setTime(+t+e*me)}),((t,e)=>(e-t)/me),(t=>t.getHours()))),ke=(Ae.range,Se((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*me)}),((t,e)=>(e-t)/me),(t=>t.getUTCHours()))),_e=(ke.range,Se((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ve)/be),(t=>t.getDate()-1))),Te=(_e.range,Se((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/be),(t=>t.getUTCDate()-1))),De=(Te.range,Se((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/be),(t=>Math.floor(t/be))));function Ie(t){return Se((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ve)/xe))}De.range;const Le=Ie(0),Ne=Ie(1),Re=Ie(2),Be=Ie(3),Fe=Ie(4),ze=Ie(5),Ue=Ie(6);function We(t){return Se((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/xe))}Le.range,Ne.range,Re.range,Be.range,Fe.range,ze.range,Ue.range;const qe=We(0),He=We(1),Ze=We(2),$e=We(3),Ve=We(4),Ge=We(5),Ye=We(6),Xe=(qe.range,He.range,Ze.range,$e.range,Ve.range,Ge.range,Ye.range,Se((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Ke=(Xe.range,Se((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Je=(Ke.range,Se((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())));Je.every=t=>isFinite(t=Math.floor(t))&&t>0?Se((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null,Je.range;const Qe=Se((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()));function tn(t,e,n,r,o,i){const a=[[Me,1,ye],[Me,5,5e3],[Me,15,15e3],[Me,30,3e4],[i,1,ve],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,me],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,be],[r,2,1728e5],[n,1,xe],[e,1,2592e6],[e,3,7776e6],[t,1,we]];function s(e,n,r){const o=Math.abs(n-e)/r,i=d((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(f(e/we,n/we,r));if(0===i)return Ce.every(Math.max(f(e,n,r),1));const[s,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(u)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:s(t,e,n),i=o?o.range(t,+e+1):[];return r?i.reverse():i},s]}Qe.every=t=>isFinite(t=Math.floor(t))&&t>0?Se((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null,Qe.range;const[en,nn]=tn(Qe,Ke,qe,De,ke,je),[rn,on]=tn(Je,Xe,Le,_e,Ae,Pe);var an=new Date,sn=new Date;function un(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return s},o.filter=function(n){return un((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return an.setTime(+e),sn.setTime(+r),t(an),t(sn),Math.floor(n(an,sn))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}const cn=864e5,ln=6048e5;function fn(t){return un((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/ln}))}var pn=fn(0),hn=fn(1),dn=fn(2),gn=fn(3),yn=fn(4),vn=fn(5),mn=fn(6),bn=(pn.range,hn.range,dn.range,gn.range,yn.range,vn.range,mn.range,un((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/cn}),(function(t){return t.getUTCDate()-1})));const xn=bn;function wn(t){return un((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/ln}))}bn.range;var En=wn(0),On=wn(1),Sn=wn(2),Cn=wn(3),Mn=wn(4),Pn=wn(5),jn=wn(6),An=(En.range,On.range,Sn.range,Cn.range,Mn.range,Pn.range,jn.range,un((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/cn),(t=>t.getDate()-1)));const kn=An;An.range;var _n=un((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));_n.every=function(t){return isFinite(t=Math.floor(t))&&t>0?un((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Tn=_n;_n.range;var Dn=un((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Dn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?un((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const In=Dn;function Ln(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 Nn(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 Rn(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}Dn.range;var Bn,Fn,zn,Un={"-":"",_:" ",0:"0"},Wn=/^\s*\d+/,qn=/^%/,Hn=/[\\^$*+?|[\]().{}]/g;function Zn(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function $n(t){return t.replace(Hn,"\\$&")}function Vn(t){return new RegExp("^(?:"+t.map($n).join("|")+")","i")}function Gn(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Yn(t,e,n){var r=Wn.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Xn(t,e,n){var r=Wn.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Kn(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Jn(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Qn(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function tr(t,e,n){var r=Wn.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function er(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rr(t,e,n){var r=Wn.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function or(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ir(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ar(t,e,n){var r=Wn.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function sr(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ur(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function cr(t,e,n){var r=Wn.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function lr(t,e,n){var r=Wn.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=Wn.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pr(t,e,n){var r=qn.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function hr(t,e,n){var r=Wn.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function dr(t,e,n){var r=Wn.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function gr(t,e){return Zn(t.getDate(),e,2)}function yr(t,e){return Zn(t.getHours(),e,2)}function vr(t,e){return Zn(t.getHours()%12||12,e,2)}function mr(t,e){return Zn(1+kn.count(Tn(t),t),e,3)}function br(t,e){return Zn(t.getMilliseconds(),e,3)}function xr(t,e){return br(t,e)+"000"}function wr(t,e){return Zn(t.getMonth()+1,e,2)}function Er(t,e){return Zn(t.getMinutes(),e,2)}function Or(t,e){return Zn(t.getSeconds(),e,2)}function Sr(t){var e=t.getDay();return 0===e?7:e}function Cr(t,e){return Zn(En.count(Tn(t)-1,t),e,2)}function Mr(t){var e=t.getDay();return e>=4||0===e?Mn(t):Mn.ceil(t)}function Pr(t,e){return t=Mr(t),Zn(Mn.count(Tn(t),t)+(4===Tn(t).getDay()),e,2)}function jr(t){return t.getDay()}function Ar(t,e){return Zn(On.count(Tn(t)-1,t),e,2)}function kr(t,e){return Zn(t.getFullYear()%100,e,2)}function _r(t,e){return Zn((t=Mr(t)).getFullYear()%100,e,2)}function Tr(t,e){return Zn(t.getFullYear()%1e4,e,4)}function Dr(t,e){var n=t.getDay();return Zn((t=n>=4||0===n?Mn(t):Mn.ceil(t)).getFullYear()%1e4,e,4)}function Ir(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Zn(e/60|0,"0",2)+Zn(e%60,"0",2)}function Lr(t,e){return Zn(t.getUTCDate(),e,2)}function Nr(t,e){return Zn(t.getUTCHours(),e,2)}function Rr(t,e){return Zn(t.getUTCHours()%12||12,e,2)}function Br(t,e){return Zn(1+xn.count(In(t),t),e,3)}function Fr(t,e){return Zn(t.getUTCMilliseconds(),e,3)}function zr(t,e){return Fr(t,e)+"000"}function Ur(t,e){return Zn(t.getUTCMonth()+1,e,2)}function Wr(t,e){return Zn(t.getUTCMinutes(),e,2)}function qr(t,e){return Zn(t.getUTCSeconds(),e,2)}function Hr(t){var e=t.getUTCDay();return 0===e?7:e}function Zr(t,e){return Zn(pn.count(In(t)-1,t),e,2)}function $r(t){var e=t.getUTCDay();return e>=4||0===e?yn(t):yn.ceil(t)}function Vr(t,e){return t=$r(t),Zn(yn.count(In(t),t)+(4===In(t).getUTCDay()),e,2)}function Gr(t){return t.getUTCDay()}function Yr(t,e){return Zn(hn.count(In(t)-1,t),e,2)}function Xr(t,e){return Zn(t.getUTCFullYear()%100,e,2)}function Kr(t,e){return Zn((t=$r(t)).getUTCFullYear()%100,e,2)}function Jr(t,e){return Zn(t.getUTCFullYear()%1e4,e,4)}function Qr(t,e){var n=t.getUTCDay();return Zn((t=n>=4||0===n?yn(t):yn.ceil(t)).getUTCFullYear()%1e4,e,4)}function to(){return"+0000"}function eo(){return"%"}function no(t){return+t}function ro(t){return Math.floor(+t/1e3)}function oo(t){return new Date(t)}function io(t){return t instanceof Date?+t:+new Date(+t)}function ao(t,e,n,r,o,i,a,s,u,c){var l=bt(),f=l.invert,p=l.domain,h=c(".%L"),d=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),b=c("%B"),x=c("%Y");function w(t){return(u(t)<t?h:s(t)<t?d:a(t)<t?g:i(t)<t?y:r(t)<t?o(t)<t?v:m:n(t)<t?b:x)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?p(Array.from(t,io)):p().map(oo)},l.ticks=function(e){var n=p();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?w:c(e)},l.nice=function(t){var n=p();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?p(Ft(n,t)):l},l.copy=function(){return vt(l,ao(t,e,n,r,o,i,a,s,u,c))},l}function so(){return wt.o.apply(ao(rn,on,Je,Xe,Le,_e,Ae,Pe,Me,Fn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function uo(){return wt.o.apply(ao(en,nn,Qe,Ke,qe,Te,ke,je,Me,zn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function co(){var t,e,n,r,o,i=0,a=1,s=ht,u=!1;function c(e){return null==e||isNaN(e=+e)?o:s(0===n?.5:(e=(r(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}function l(t){return function(e){var n,r;return arguments.length?([n,r]=e,s=t(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),e=r(a=+a),n=t===e?0:1/(e-t),c):[i,a]},c.clamp=function(t){return arguments.length?(u=!!t,c):u},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=l(ct),c.rangeRound=l(lt),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),c}}function lo(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function fo(){var t=Nt(co()(ht));return t.copy=function(){return lo(t,fo())},wt.O.apply(t,arguments)}function po(){var t=$t(co()).domain([1,10]);return t.copy=function(){return lo(t,po()).base(t.base())},wt.O.apply(t,arguments)}function ho(){var t=Xt(co());return t.copy=function(){return lo(t,ho()).constant(t.constant())},wt.O.apply(t,arguments)}function go(){var t=ne(co());return t.copy=function(){return lo(t,go()).exponent(t.exponent())},wt.O.apply(t,arguments)}function yo(){return go.apply(null,arguments).exponent(.5)}function vo(){var t=[],e=ht;function n(n){if(null!=n&&!isNaN(n=+n))return e((b(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(p),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),(r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return ue(t);if(e>=1)return se(t);var r,o=(r-1)*e,i=Math.floor(o),a=se(le(t,i).subarray(0,i+1));return a+(ue(t.subarray(i+1))-a)*(o-i)}}(t,r/e)))},n.copy=function(){return vo(e).domain(t)},wt.O.apply(n,arguments)}function mo(){var t,e,n,r,o,i,a,s=0,u=.5,c=1,l=1,f=ht,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(l*t<l*e?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,f=function(t,e){void 0===e&&(e=t,t=ct);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[e](t-e)}}(t,[n,r,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([s,u,c]=a,t=i(s=+s),e=i(u=+u),n=i(c=+c),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),l=e<t?-1:1,h):[s,u,c]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=d(ct),h.rangeRound=d(lt),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(s),e=a(u),n=a(c),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),l=e<t?-1:1,h}}function bo(){var t=Nt(mo()(ht));return t.copy=function(){return lo(t,bo())},wt.O.apply(t,arguments)}function xo(){var t=$t(mo()).domain([.1,1,10]);return t.copy=function(){return lo(t,xo()).base(t.base())},wt.O.apply(t,arguments)}function wo(){var t=Xt(mo());return t.copy=function(){return lo(t,wo()).constant(t.constant())},wt.O.apply(t,arguments)}function Eo(){var t=ne(mo());return t.copy=function(){return lo(t,Eo()).exponent(t.exponent())},wt.O.apply(t,arguments)}function Oo(){return Eo.apply(null,arguments).exponent(.5)}function So(t,e){if((o=t.length)>1)for(var n,r,o,i=1,a=t[e[0]],s=a.length;i<o;++i)for(r=a,a=t[e[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}Bn=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=Vn(o),l=Gn(o),f=Vn(i),p=Gn(i),h=Vn(a),d=Gn(a),g=Vn(s),y=Gn(s),v=Vn(u),m=Gn(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:gr,e:gr,f:xr,g:_r,G:Dr,H:yr,I:vr,j:mr,L:br,m:wr,M:Er,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:no,s:ro,S:Or,u:Sr,U:Cr,V:Pr,w:jr,W:Ar,x:null,X:null,y:kr,Y:Tr,Z:Ir,"%":eo},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Lr,e:Lr,f:zr,g:Kr,G:Qr,H:Nr,I:Rr,j:Br,L:Fr,m:Ur,M:Wr,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:no,s:ro,S:qr,u:Hr,U:Zr,V:Vr,w:Gr,W:Yr,x:null,X:null,y:Xr,Y:Jr,Z:to,"%":eo},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:ir,e:ir,f:fr,g:er,G:tr,H:sr,I:sr,j:ar,L:lr,m:or,M:ur,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:rr,Q:hr,s:dr,S:cr,u:Xn,U:Kn,V:Jn,w:Yn,W:Qn,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:er,Y:tr,Z:nr,"%":pr};function E(t,e){return function(n){var r,o,i,a=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(o=Un[r=t.charAt(++s)])?r=t.charAt(++s):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function O(t,e){return function(n){var r,o,i=Rn(1900,void 0,1);if(S(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Nn(Rn(i.y,0,1))).getUTCDay(),r=o>4||0===o?hn.ceil(r):hn(r),r=xn.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Ln(Rn(i.y,0,1))).getDay(),r=o>4||0===o?On.ceil(r):On(r),r=kn.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Nn(Rn(i.y,0,1)).getUTCDay():Ln(Rn(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Nn(i)):Ln(i)}}function S(t,e,n,r){for(var o,i,a=0,s=e.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in Un?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(e,b),x.x=E(n,x),x.X=E(r,x),x.c=E(e,x),{format:function(t){var e=E(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=E(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),Fn=Bn.format,Bn.parse,zn=Bn.utcFormat,Bn.utcParse;var Co=n(16426),Mo=n(6677);function Po(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function jo(t,e){return t[e]}function Ao(t){const e=[];return e.key=t,e}var ko=n(71644),_o=n.n(ko),To=n(71130),Do=n.n(To),Io=n(1842),Lo=n.n(Io),No=n(61049),Ro=n.n(No),Bo=n(85505),Fo=n.n(Bo),zo=n(72579),Uo=n.n(zo),Wo=n(35838),qo=n.n(Wo),Ho=n(16951),Zo=n.n(Ho),$o=n(23779),Vo=n.n($o),Go=n(18149),Yo=n.n(Go),Xo=n(829),Ko=n.n(Xo),Jo=n(17374),Qo=n.n(Jo);function ti(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ei=function(t){return t},ni={"@@functional/placeholder":!0},ri=function(t){return t===ni},oi=function(t){return function e(){return 0===arguments.length||1===arguments.length&&ri(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},ii=function t(e,n){return 1===e?n:oi((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==ni})).length;return a>=e?n.apply(void 0,o):t(e-a,oi((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i,a=o.map((function(t){return ri(t)?e.shift():t}));return n.apply(void 0,(i=a,function(t){if(Array.isArray(t))return ti(t)}(i)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return ti(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(e))})))}))},ai=function(t){return ii(t.length,t)},si=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},ui=ai((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),ci=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return ei;var r=e.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},li=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},fi=function(t){var e=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e&&o.every((function(t,n){return t===e[n]}))?n:(e=o,n=t.apply(void 0,o))}};const pi={rangeStep:function(t,e,n){for(var r=new(Qo())(t),o=0,i=[];r.lt(e)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new(Qo())(t).abs().log(10).toNumber())+1},interpolateNumber:ai((function(t,e,n){var r=+t;return r+n*(+e-r)})),uninterpolateNumber:ai((function(t,e,n){var r=e-+t;return(n-t)/(r||1/0)})),uninterpolateTruncation:ai((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))}))};function hi(t){return function(t){if(Array.isArray(t))return yi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||gi(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function di(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,e)||gi(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(t,e){if(t){if("string"==typeof t)return yi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yi(t,e):void 0}}function yi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function vi(t){var e=di(t,2),n=e[0],r=e[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function mi(t,e,n){if(t.lte(0))return new(Qo())(0);var r=pi.getDigitCount(t.toNumber()),o=new(Qo())(10).pow(r),i=t.div(o),a=1!==r?.05:.1,s=new(Qo())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return e?s:new(Qo())(Math.ceil(s))}function bi(t,e,n){var r=1,o=new(Qo())(t);if(!o.isint()&&n){var i=Math.abs(t);i<1?(r=new(Qo())(10).pow(pi.getDigitCount(t)-1),o=new(Qo())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(Qo())(Math.floor(t)))}else 0===t?o=new(Qo())(Math.floor((e-1)/2)):n||(o=new(Qo())(Math.floor(t)));var a=Math.floor((e-1)/2);return ci(ui((function(t){return o.add(new(Qo())(t-a).mul(r)).toNumber()})),si)(0,e)}function xi(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new(Qo())(0),tickMin:new(Qo())(0),tickMax:new(Qo())(0)};var i,a=mi(new(Qo())(e).sub(t).div(n-1),r,o);i=t<=0&&e>=0?new(Qo())(0):(i=new(Qo())(t).add(e).div(2)).sub(new(Qo())(i).mod(a));var s=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new(Qo())(e).sub(i).div(a).toNumber()),c=s+u+1;return c>n?xi(t,e,n,r,o+1):(c<n&&(u=e>0?u+(n-c):u,s=e>0?s:s+(n-c)),{step:a,tickMin:i.sub(new(Qo())(s).mul(a)),tickMax:i.add(new(Qo())(u).mul(a))})}var wi=fi((function(t){var e=di(t,2),n=e[0],r=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=di(vi([n,r]),2),u=s[0],c=s[1];if(u===-1/0||c===1/0){var l=c===1/0?[u].concat(hi(si(0,o-1).map((function(){return 1/0})))):[].concat(hi(si(0,o-1).map((function(){return-1/0}))),[c]);return n>r?li(l):l}if(u===c)return bi(u,o,i);var f=xi(u,c,a,i),p=f.step,h=f.tickMin,d=f.tickMax,g=pi.rangeStep(h,d.add(new(Qo())(.1).mul(p)),p);return n>r?li(g):g})),Ei=(fi((function(t){var e=di(t,2),n=e[0],r=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=di(vi([n,r]),2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[n,r];if(u===c)return bi(u,o,i);var l=mi(new(Qo())(c).sub(u).div(a-1),i,0),f=ci(ui((function(t){return new(Qo())(u).add(new(Qo())(t).mul(l)).toNumber()})),si)(0,a).filter((function(t){return t>=u&&t<=c}));return n>r?li(f):f})),fi((function(t,e){var n=di(t,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=di(vi([r,o]),2),s=a[0],u=a[1];if(s===-1/0||u===1/0)return[r,o];if(s===u)return[s];var c=Math.max(e,2),l=mi(new(Qo())(u).sub(s).div(c-1),i,0),f=[].concat(hi(pi.rangeStep(new(Qo())(s),new(Qo())(u).sub(new(Qo())(.99).mul(l)),l)),[u]);return r>o?li(f):f}))),Oi=n(18694),Si=n(15027),Ci=n(79376),Mi=n(12076);function Pi(t){return Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(t)}function ji(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ai(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ji(Object(n),!0).forEach((function(e){ki(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ki(t,e,n){return(e=function(t){var e=function(t){if("object"!==Pi(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==Pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Pi(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _i(t){return function(t){if(Array.isArray(t))return Ti(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ti(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ti(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ti(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Di(t,e,n){return Lo()(t)||Lo()(e)?n:(0,Si.P2)(e)?Uo()(t,e,n):Ro()(e)?e(t):n}function Ii(t,e,n,r){var o=qo()(t,(function(t){return Di(t,e)}));if("number"===n){var i=o.filter((function(t){return(0,Si.hj)(t)||parseFloat(t)}));return i.length?[Do()(i),_o()(i)]:[1/0,-1/0]}return(r?o.filter((function(t){return!Lo()(t)})):o).map((function(t){return(0,Si.P2)(t)||t instanceof Date?t:""}))}var Li=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,u=0;u<a;u++){var c=u>0?r[u-1].coordinate:r[a-1].coordinate,l=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if((0,Si.uY)(l-c)!==(0,Si.uY)(f-l)){var h=[];if((0,Si.uY)(f-l)===(0,Si.uY)(s[1]-s[0])){p=f;var d=l+s[1]-s[0];h[0]=Math.min(d,(d+c)/2),h[1]=Math.max(d,(d+c)/2)}else{p=c;var g=f+s[1]-s[0];h[0]=Math.min(l,(g+l)/2),h[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>y[0]&&t<=y[1]||t>=h[0]&&t<=h[1]){i=r[u].index;break}}else{var v=Math.min(c,f),m=Math.max(c,f);if(t>(v+l)/2&&t<=(m+l)/2){i=r[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i},Ni=function(t){var e,n=t.type.displayName,r=t.props,o=r.stroke,i=r.fill;switch(n){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},Ri=function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var u=r[i[a]].stackGroups,c=Object.keys(u),l=0,f=c.length;l<f;l++){var p=u[c[l]],h=p.items,d=p.cateAxisId,g=h.filter((function(t){return(0,Ci.Gf)(t.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[d];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:Lo()(y)?e:y})}}return o},Bi=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,s=i.length;if(s<1)return null;var u,c=(0,Si.h1)(e,r,0,!0),l=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=r/s,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(s-1)*c)>=r&&(h-=(s-1)*c,c=0),h>=r&&p>0&&(f=!0,h=s*(p*=.9));var d={offset:((r-h)/2|0)-c,size:0};u=i.reduce((function(t,e){var n={item:e.item,position:{offset:d.offset+d.size+c,size:f?p:e.barSize}},r=[].concat(_i(t),[n]);return d=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:d})})),r}),l)}else{var g=(0,Si.h1)(n,r,0,!0);r-2*g-(s-1)*c<=0&&(c=0);var y=(r-2*g-(s-1)*c)/s;y>1&&(y>>=0);var v=a===+a?Math.min(y,a):y;u=i.reduce((function(t,e,n){var r=[].concat(_i(t),[{item:e.item,position:{offset:g+(y+c)*n+(y-v)/2,size:v}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),l)}return u},Fi=function(t,e,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),u=(0,Mi.z)({children:o,legendWidth:s});if(u){var c=r||{},l=c.width,f=c.height,p=u.align,h=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&(0,Si.hj)(t[p]))return Ai(Ai({},t),{},ki({},p,t[p]+(l||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&(0,Si.hj)(t[h]))return Ai(Ai({},t),{},ki({},h,t[h]+(f||0)))}return t},zi=function(t,e,n,r,o){var i=e.props.children,a=(0,Ci.NN)(i,Oi.W).filter((function(t){return function(t,e,n){return!!Lo()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===n?"xAxis"===e:"y"!==n||"yAxis"===e)}(r,o,t.props.direction)}));if(a&&a.length){var s=a.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=Di(e,n,0),o=Array.isArray(r)?[Do()(r),_o()(r)]:[r,r],i=s.reduce((function(t,n){var r=Di(e,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Ui=function(t,e,n,r,o){var i=e.map((function(e){return zi(t,e,n,o,r)})).filter((function(t){return!Lo()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null},Wi=function(t,e,n,r,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===n&&i&&zi(t,e,i,r)||Ii(t,i,n,o)}));if("number"===n)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var n=0,r=e.length;n<r;n++)a[e[n]]||(a[e[n]]=!0,t.push(e[n]));return t}),[])},qi=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Hi=function(t,e,n,r){if(r)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===n&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(n),a},Zi=function(t,e,n){if(!t)return null;var r=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,s="scaleBand"===t.realScaleType?r.bandwidth()/2:2,u=(e||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*(0,Si.uY)(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:r(e)+u,value:t,offset:u}})).filter((function(t){return!Zo()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:r(t)+u,value:t,index:e,offset:u}})):r.ticks&&!n?r.ticks(t.tickCount).map((function(t){return{coordinate:r(t)+u,value:t,offset:u}})):r.domain().map((function(t,e){return{coordinate:r(t)+u,value:o?o[t]:t,index:e,offset:u}}))},$i=new WeakMap,Vi=function(t,e){if("function"!=typeof e)return t;$i.has(t)||$i.set(t,new WeakMap);var n=$i.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},Gi=function(t,e,n){var i=t.scale,a=t.type,s=t.layout,u=t.axisType;if("auto"===i)return"radial"===s&&"radiusAxis"===u?{scale:o.Z(),realScaleType:"band"}:"radial"===s&&"angleAxis"===u?{scale:Rt(),realScaleType:"linear"}:"category"===a&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:o.x(),realScaleType:"point"}:"category"===a?{scale:o.Z(),realScaleType:"band"}:{scale:Rt(),realScaleType:"linear"};if(Fo()(i)){var c="scale".concat(Vo()(i));return{scale:(r[c]||o.x)(),realScaleType:r[c]?c:"point"}}return Ro()(i)?{scale:i}:{scale:o.x(),realScaleType:"point"}},Yi=1e-4,Xi=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),o=Math.min(r[0],r[1])-Yi,i=Math.max(r[0],r[1])+Yi,a=t(e[0]),s=t(e[n-1]);(a<o||a>i||s<o||s>i)&&t.domain([e[0],e[n-1]])}},Ki=function(t,e){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null},Ji=function(t,e){if(!e||2!==e.length||!(0,Si.hj)(e[0])||!(0,Si.hj)(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!(0,Si.hj)(t[0])||t[0]<n)&&(o[0]=n),(!(0,Si.hj)(t[1])||t[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},Qi={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var o=0,i=0,a=0;a<e;++a){var s=Zo()(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=i,t[a][n][1]=i+s,i=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,o,i=0,a=t[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=t[n][i][1]||0;if(o)for(n=0;n<r;++n)t[n][i][1]/=o}So(t,e)}},none:So,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,o=t[e[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}So(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,u=0,c=0;s<o;++s){for(var l=t[e[s]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,h=0;h<s;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,c+=p*f}n[a-1][1]+=n[a-1][0]=i,u&&(i-=c/u)}n[a-1][1]+=n[a-1][0]=i,So(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var o=0,i=0;i<e;++i){var a=Zo()(t[i][n][1])?t[i][n][0]:t[i][n][1];a>=0?(t[i][n][0]=o,t[i][n][1]=o+a,o=t[i][n][1]):(t[i][n][0]=0,t[i][n][1]=0)}}},ta=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),o=Qi[n],i=function(){var t=(0,Mo.Z)([]),e=Po,n=So,r=jo;function o(o){var i,a,s=Array.from(t.apply(this,arguments),Ao),u=s.length,c=-1;for(const t of o)for(i=0,++c;i<u;++i)(s[i][c]=[0,+r(t,s[i].key,c,o)]).data=t;for(i=0,a=(0,Co.Z)(e(s));i<u;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:(0,Mo.Z)(Array.from(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:(0,Mo.Z)(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?Po:"function"==typeof t?t:(0,Mo.Z)(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?So:t,o):n},o}().keys(r).value((function(t,e){return+Di(t,e,0)})).order(Po).offset(o);return i(t)},ea=function(t,e,n,r,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[n],s=t[a]||{hasStack:!1,stackGroups:{}};if((0,Si.P2)(i)){var u=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(e),s.hasStack=!0,s.stackGroups[i]=u}else s.stackGroups[(0,Si.EL)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return Ai(Ai({},t),{},ki({},a,s))}),{});return Object.keys(a).reduce((function(e,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(e,i){var a=s.stackGroups[i];return Ai(Ai({},e),{},ki({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:ta(t,a.items,o)}))}),{})),Ai(Ai({},e),{},ki({},i,s))}),{})},na=function(t,e){var n=e.realScaleType,r=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,s=n||e.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var c=wi(u,o,a);return t.domain([Do()(c),_o()(c)]),{niceTicks:c}}if(o&&"number"===r){var l=t.domain();return{niceTicks:Ei(l,o,a)}}return null},ra=function(t){var e=t.axis,n=t.ticks,r=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return n[a]?n[a].coordinate+r:null;var s=Di(i,e.dataKey,e.domain[a]);return Lo()(s)?null:e.scale(s)-o/2+r},oa=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},ia=function(t,e){var n=t.props.stackId;if((0,Si.P2)(n)){var r=e[n];if(r){var o=r.items.indexOf(t);return o>=0?r.stackedData[o]:null}}return null},aa=function(t,e,n){return Object.keys(t).reduce((function(r,o){var i=t[o].stackedData.reduce((function(t,r){var o=r.slice(e,n+1).reduce((function(t,e){return[Do()(e.concat([t[0]]).filter(Si.hj)),_o()(e.concat([t[1]]).filter(Si.hj))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},sa=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ua=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ca=function(t,e,n){if(Ro()(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if((0,Si.hj)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(sa.test(t[0])){var o=+sa.exec(t[0])[1];r[0]=e[0]-o}else Ro()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if((0,Si.hj)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(ua.test(t[1])){var i=+ua.exec(t[1])[1];r[1]=e[1]+i}else Ro()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},la=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var o=Ko()(e,(function(t){return t.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var u=o[a],c=o[a-1];i=Math.min((u.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},fa=function(t,e,n){return t&&t.length?Yo()(t,Uo()(n,"type.defaultProps.domain"))?e:t:e},pa=function(t,e){var n=t.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,u=n.chartType;return Ai(Ai({},(0,Ci.L6)(t)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:Ni(t),value:Di(e,r),type:s,payload:e,chartType:u})}},88089:(t,e,n)=>{"use strict";n.d(e,{xE:()=>l,os:()=>f});var r=n(79499);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){var r,i,a;r=t,i=e,a=n[e],(i=function(t){var e=function(t){if("object"!==o(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===o(e)?e:String(e)}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={widthCache:{},cacheCount:0},u={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},c="recharts_measurement_span",l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||r.x.isSsr)return{width:0,height:0};var n,o=(n=a({},e),Object.keys(n).forEach((function(t){n[t]||delete n[t]})),n),i=JSON.stringify({text:t,copyStyle:o});if(s.widthCache[i])return s.widthCache[i];try{var l=document.getElementById(c);l||((l=document.createElement("span")).setAttribute("id",c),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var f=a(a({},u),o);Object.assign(l.style,f),l.textContent="".concat(t);var p=l.getBoundingClientRect(),h={width:p.width,height:p.height};return s.widthCache[i]=h,++s.cacheCount>2e3&&(s.cacheCount=0,s.widthCache={}),h}catch(t){return{width:0,height:0}}},f=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},15027:(t,e,n)=>{"use strict";n.d(e,{uY:()=>f,hU:()=>p,hj:()=>h,P2:()=>d,EL:()=>y,h1:()=>v,Kt:()=>m,bv:()=>b,k4:()=>x,Ap:()=>w});var r=n(85505),o=n.n(r),i=n(16951),a=n.n(i),s=n(72579),u=n.n(s),c=n(80537),l=n.n(c),f=function(t){return 0===t?0:t>0?1:-1},p=function(t){return o()(t)&&t.indexOf("%")===t.length-1},h=function(t){return l()(t)&&!a()(t)},d=function(t){return h(t)||o()(t)},g=0,y=function(t){var e=++g;return"".concat(t||"").concat(e)},v=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!h(t)&&!o()(t))return r;if(p(t)){var s=t.indexOf("%");n=e*parseFloat(t.slice(0,s))/100}else n=+t;return a()(n)&&(n=r),i&&n>e&&(n=e),n},m=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},b=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1},x=function(t,e){return h(t)&&h(e)?function(n){return t+n*(e-t)}:function(){return e}};function w(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):u()(t,e))===n})):null}},79499:(t,e,n)=>{"use strict";n.d(e,{x:()=>r});var r={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return r[t]},set:function(t,e){if("string"==typeof t)r[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach((function(e){r[e]=t[e]}))}}}},91745:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var r=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o]}},22089:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){var o,i,a;o=t,i=e,a=n[e],(i=function(t){var e=function(t){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===r(e)?e:String(e)}(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.d(e,{Wk:()=>a,op:()=>u,z3:()=>l}),n(1842);var a=Math.PI/180,s=function(t){return 180*t/Math.PI},u=function(t,e,n,r){return{x:t+Math.cos(-a*r)*n,y:e+Math.sin(-a*r)*n}},c=function(t,e){var n=e.startAngle,r=e.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return t+360*Math.min(o,i)},l=function(t,e){var n=function(t,e){var n,r,o,i,a,u,c=t.x,l=t.y,f=e.cx,p=e.cy,h=(o=(n={x:c,y:l}).x,i=n.y,a=(r={x:f,y:p}).x,u=r.y,Math.sqrt(Math.pow(o-a,2)+Math.pow(i-u,2)));if(h<=0)return{radius:h};var d=(c-f)/h,g=Math.acos(d);return l>p&&(g=2*Math.PI-g),{radius:h,angle:s(g),angleInRadian:g}}({x:t.x,y:t.y},e),r=n.radius,o=n.angle,a=e.innerRadius,u=e.outerRadius;if(r<a||r>u)return!1;if(0===r)return!0;var l,f=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:e-360*i,endAngle:n-360*i}}(e),p=f.startAngle,h=f.endAngle,d=o;if(p<=h){for(;d>h;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=h}else{for(;d>p;)d-=360;for(;d<h;)d+=360;l=d>=h&&d<=p}return l?i(i({},e),{},{radius:r,angle:c(d,e)}):null}},79376:(t,e,n)=>{"use strict";n.d(e,{Gf:()=>E,NN:()=>M,sP:()=>P,TT:()=>j,L6:()=>k,rL:()=>_,eu:()=>D,Bh:()=>I,$R:()=>L});var r=n(72579),o=n.n(r),i=n(1842),a=n.n(i),s=n(85505),u=n.n(s),c=n(61049),l=n.n(c),f=n(29259),p=n.n(f),h=n(8156),d=n(48570),g=n(15027),y=n(47022),v=n(21442),m=["children"],b=["children"];function x(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var w={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},E=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},O=null,S=null,C=function t(e){if(e===O&&Array.isArray(S))return S;var n=[];return h.Children.forEach(e,(function(e){a()(e)||((0,d.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))})),S=n,O=e,n};function M(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map((function(t){return E(t)})):[E(e)],C(t).forEach((function(t){var e=o()(t,"type.displayName")||o()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n}function P(t,e){var n=M(t,e);return n&&n[0]}var j=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!(0,g.hj)(n)||n<=0||!(0,g.hj)(r)||r<=0)},A=["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"],k=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,h.isValidElement)(t)&&(r=t.props),!p()(r))return null;var o={};return Object.keys(r).forEach((function(t){var i;(function(t,e,n,r){var o,i=null!==(o=null===v.ry||void 0===v.ry?void 0:v.ry[r])&&void 0!==o?o:[];return!l()(t)&&(r&&i.includes(e)||v.Yh.includes(e))||n&&v.nv.includes(e)})(null===(i=r)||void 0===i?void 0:i[t],t,e,n)&&(o[t]=r[t])})),o},_=function t(e,n){if(e===n)return!0;var r=h.Children.count(e);if(r!==h.Children.count(n))return!1;if(0===r)return!0;if(1===r)return T(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=e[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!t(i,a))return!1}else if(!T(i,a))return!1}return!0},T=function(t,e){if(a()(t)&&a()(e))return!0;if(!a()(t)&&!a()(e)){var n=t.props||{},r=n.children,o=x(n,m),i=e.props||{},s=i.children,u=x(i,b);return r&&s?(0,y.w)(o,u)&&_(r,s):!r&&!s&&(0,y.w)(o,u)}return!1},D=function(t,e){var n=[],r={};return C(t).forEach((function(t,o){if(function(t){return t&&t.type&&u()(t.type)&&A.indexOf(t.type)>=0}(t))n.push(t);else if(t){var i=E(t.type),a=e[i]||{},s=a.handler,c=a.once;if(s&&(!c||!r[i])){var l=s(t,i,o);n.push(l),r[i]=!0}}})),n},I=function(t){var e=t&&t.type;return e&&w[e]?w[e]:null},L=function(t,e){return C(e).indexOf(t)}},47022:(t,e,n)=>{"use strict";function r(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}n.d(e,{w:()=>r})},12076:(t,e,n)=>{"use strict";n.d(e,{z:()=>c});var r=n(97245),o=n(24847),i=n(79376);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=function(t){var e=function(t){if("object"!==a(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(t){var e,n=t.children,a=t.formattedGraphicalItems,s=t.legendWidth,c=t.legendContent,l=(0,i.sP)(n,r.D);return l?(e=l.props&&l.props.payload?l.props&&l.props.payload:"children"===c?(a||[]).reduce((function(t,e){var n=e.item,r=e.props,o=r.sectors||r.data||[];return t.concat(o.map((function(t){return{type:l.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(a||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:r,type:l.props.iconType||a||"square",color:(0,o.fk)(e),value:i||r,payload:e.props}})),u(u(u({},l.props),r.D.getWithHeight(l,s)),{},{payload:e,item:l})):null}},32391:(t,e,n)=>{"use strict";n.d(e,{z:()=>s});var r=n(84636),o=n.n(r),i=n(61049),a=n.n(i);function s(t,e,n){return!0===e?o()(t,n):a()(e)?o()(t,e):t}},21442:(t,e,n)=>{"use strict";n.d(e,{Yh:()=>s,ry:()=>c,nv:()=>l,Ym:()=>f,bw:()=>p});var r=n(8156),o=n(29259),i=n.n(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s=["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"],u=["points","pathLength"],c={svg:["viewBox","children"],polygon:u,polyline:u},l=["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"],f=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,r.isValidElement)(t)&&(n=t.props),!i()(n))return null;var o={};return Object.keys(n).forEach((function(t){l.includes(t)&&(o[t]=e||function(e){return n[t](n,e)})})),o},p=function(t,e,n){if(!i()(t)||"object"!==a(t))return null;var r=null;return Object.keys(t).forEach((function(o){var i=t[o];l.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(t,e,n){return function(r){return t(e,n,r),null}}(i,e,n))})),r}},2314:(t,e,n)=>{"use strict";var r=n(75580).compose;e.__esModule=!0,e.composeWithDevTools=function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)},e.devToolsEnhancer=function(){return function(t){return t}}},83273:(t,e,n)=>{"use strict";e.__esModule=!0,e.createDynamicMiddlewares=e.resetMiddlewares=e.removeMiddleware=e.addMiddleware=void 0;var r=n(75580),o=function(){var t=[];return{enhancer:function(e){return function(n){return function(o){var i=t.map((function(t){return t(e)}));return r.compose.apply(void 0,i)(n)(o)}}},addMiddleware:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t=[].concat(t,n)},removeMiddleware:function(e){var n=t.findIndex((function(t){return t===e}));-1!==n?t=t.filter((function(t,e){return e!==n})):console.error("Middleware does not exist!",e)},resetMiddlewares:function(){t=[]}}},i=o();e.default=i.enhancer;var a=i.addMiddleware,s=i.removeMiddleware,u=i.resetMiddlewares;e.addMiddleware=a,e.removeMiddleware=s,e.resetMiddlewares=u,e.createDynamicMiddlewares=o},95174:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(83273);e.getMiddlewareManager=function(){var t=r.createDynamicMiddlewares();return{getItems:function(){return[]},enhancer:t.enhancer,add:function(e){return t.addMiddleware.apply(t,e),e},remove:function(e){return e.forEach(t.removeMiddleware),e},dispose:function(){t.resetMiddlewares()}}}},12519:function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};e.__esModule=!0;var o=n(79329);e.getModuleManager=function(t,e,n){var i,a=null,s=[],u=new Set,c=function(t){if(t){if(!a)throw new Error("setDispatch should be called on ModuleManager before adding any modules.");t.forEach(a)}},l={getReducer:function(t,e){return i?i.reduce(t,e):t||null},setDispatch:function(t){a=t},getItems:function(){return[]},add:function(l){if(l&&0!==l.length){l=l.filter((function(t){return t}));var f=[];l.forEach((function(e){if(!u.has(e.id)){u.add(e.id),s.push(e),function(t){if(t)if(i)for(var e in t)i.add(e,t[e]);else i=o.getRefCountedReducerManager(o.getReducerManager(t,n))}(e.reducerMap);var r=e.middlewares;r&&function(e){e&&t.add(e)}(r),f.push(e)}})),a({type:"@@Internal/ModuleManager/SeedReducers"}),f.forEach((function(t){e.forEach((function(e){e.onModuleAdded&&e.onModuleAdded(t)}));var n={type:"@@Internal/ModuleManager/ModuleAdded",payload:t.id};c(t.initialActions?r([n],t.initialActions):[n])}))}},remove:function(n){n&&(n=n.filter((function(t){return t})).reverse()).forEach((function(n){var r;u.has(n.id)&&(c(n.finalActions),function(t){if(t&&i)for(var e in t)i.remove(e)}(n.reducerMap),(r=n.middlewares)&&t.remove(r),e.forEach((function(t){t.onModuleRemoved&&t.onModuleRemoved(n)})),u.delete(n.id),s=s.filter((function(t){return t.id!==n.id})),c([{type:"@@Internal/ModuleManager/ModuleRemoved",payload:n.id}]))}))},dispose:function(){l.remove(s)}};return l}},79329:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};e.__esModule=!0;var o=n(75580),i=n(24446);function a(t,e){return void 0===e&&(e=o.combineReducers),t&&0!==Object.keys(t).length?e(t):function(t,e){return t||null}}e.getRefCountedReducerManager=function(t){var e=i.getStringRefCounter();for(var n in t.getReducerMap())e.add(n);return{reduce:t.reduce,getReducerMap:t.getReducerMap,add:function(n,r){0===e.getCount(n)&&t.add(n,r),e.add(n)},remove:function(n){e.remove(n),0===e.getCount(n)&&t.remove(n)}}},e.getReducerManager=function(t,e){void 0===e&&(e=o.combineReducers);var n=e(t),i=r({},t),s=[];return{getReducerMap:function(){return i},reduce:function(t,e){if(s.length>0){t=r({},t);for(var o=0,i=s;o<i.length;o++)delete t[i[o]];s=[]}return void 0===t&&(t={}),n(t,e)},add:function(t,r){t&&!i[t]&&(i[t]=r,n=a(i,e))},remove:function(t){t&&i[t]&&(delete i[t],s.push(t),n=a(i,e))}}}},45105:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};e.__esModule=!0;var o=n(24446);e.getRefCountedManager=function(t,e,n){var i=o.getObjectRefCounter(e,n);t.getItems().forEach((function(t){return i.add(t)}));var a=r({},t);return a.add=function(e){if(e){var n=e.filter((function(t){return t})),r=n.filter((function(t){return 0===i.getCount(t)}));t.add(r),n.forEach(i.add)}},a.remove=function(e){e&&e.forEach((function(e){e&&(i.remove(e),0===i.getCount(e)&&t.remove([e]))}))},a.dispose=function(){t.dispose()},a}},88526:function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};e.__esModule=!0;var o=n(75580),i=n(2314),a=n(95174),s=n(12519),u=n(45105),c=n(23425);e.createStore=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var l=t.initialState,f=void 0===l?{}:l,p=t.extensions,h=void 0===p?[]:p,d=t.enhancers,g=void 0===d?[]:d,y=t.advancedComposeEnhancers,v=void 0===y?i.composeWithDevTools({}):y,m=t.advancedCombineReducers,b=h.reduce((function(t,e){return e.middleware&&t.push.apply(t,e.middleware),t}),[]),x=u.getRefCountedManager(a.getMiddlewareManager(),(function(t,e){return t===e})),w=v.apply(void 0,r(g,[o.applyMiddleware.apply(void 0,r(b,[x.enhancer]))])),E=u.getRefCountedManager(s.getModuleManager(x,h,m),(function(t,e){return t.id===e.id}),(function(t){return t.retained})),O=o.createStore(E.getReducer,f,w);E.setDispatch(O.dispatch);var S=function(t){var e=c.flatten(t);return E.add(e),{remove:function(){E.remove(e)}}},C=function(t){return S([t])};return h.forEach((function(t){t.onModuleManagerCreated&&t.onModuleManagerCreated({addModule:C,addModules:S})})),O.addModule=C,O.addModules=S,O.dispose=function(){E.dispose(),x.dispose(),h.forEach((function(t){t.dispose&&t.dispose()}))},O.addModules(e),O}},58166:(t,e)=>{"use strict";e.__esModule=!0,e.getMap=function(t){var e=[],n={};return{keys:e,get:function(r){if(r){var o=e.findIndex((function(e){return e&&t(e,r)}));if(-1!==o)return n[o]}},add:function(r,o){r&&-1===e.findIndex((function(e){return e&&t(e,r)}))&&(e.push(r),n[e.length-1]=o)},remove:function(r){if(r){var o=e.findIndex((function(e){return e&&t(e,r)}));if(-1!==o){delete e[o];var i=n[o];return delete n[o],i}}}}}},23425:function(t,e){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};e.__esModule=!0,e.flatten=function(t){if(t){for(var e=t.slice(),r=0;r<e.length;)Array.isArray(e[r])?e.splice.apply(e,n([r,1],e[r])):r++;return e}return t}},24446:(t,e)=>{"use strict";e.__esModule=!0,e.getObjectRefCounter=function(t,e){t||(t=function(t,e){return t===e}),e||(e=function(){return!1});var n=[],r=[];return{getCount:function(e){if(null==e)return 0;var o=n.findIndex((function(n){return n&&t(n,e)}));return-1===o?0:r[o]},add:function(o){if(null!=o){var i=n.findIndex((function(e){return e&&t(e,o)})),a=1;-1===i?(i=n.length,n.push(o)):a=r[i]+1,e(o)&&(a=1/0),r[i]=a}},remove:function(o){if(e(o))return!1;var i=n.findIndex((function(e){return e&&t(e,o)}));return-1!==i&&(1===r[i]?(delete n[i],delete r[i],!0):(r[i]=r[i]-1,!1))}}},e.getStringRefCounter=function(){var t={};return{getCount:function(e){return null==e?0:t[e]||0},add:function(e){null!=e&&(t[e]?t[e]++:t[e]=1)},remove:function(e){return null!=e&&!!t[e]&&(1===t[e]?(delete t[e],!0):(t[e]--,!1))}}}},70315:(t,e,n)=>{"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(88526)),r(n(58166)),r(n(24446)),r(n(95174)),r(n(45105))},78522:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};e.__esModule=!0;var a=n(8156),s=n(34756),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a.createElement(s.ReactReduxContext.Consumer,null,(function(e){return a.createElement(c,i({},t.props,{reactReduxContext:e}))}))},e}(a.Component);e.DynamicModuleLoader=u;var c=function(t){function e(e){var n=t.call(this,e)||this;if(n._providerInitializationNeeded=!1,n._cleanup=function(){n._addedModules&&(n._addedModules.remove(),n._addedModules=void 0)},null==e.reactReduxContext){var r="Tried to render DynamicModuleLoader, but no ReactReduxContext was provided";throw console.error(r),new Error(r)}return n._store=e.reactReduxContext?e.reactReduxContext.store:void 0,n.props.strictMode?n.state={readyToRender:!1}:(n._addModules(),n.state={readyToRender:!0}),n}return o(e,t),e.prototype.render=function(){return this.state.readyToRender?this._providerInitializationNeeded?a.createElement(s.Provider,{store:this._store},a.createElement(u,i({},this.props))):a.createElement(a.Fragment,null,this._renderLoader(),a.createElement(l,{cleanup:this._cleanup})):null},e.prototype._renderLoader=function(){return this.props.children?"function"==typeof this.props.children?this.props.children():this.props.children:null},e.prototype._addModules=function(){var t=this.props,e=t.createStore,n=t.modules;if(this._store)this._addedModules=this._store.addModules(n);else{if(!e)throw new Error("Store could not be resolved from React context");this._store=e(),this._providerInitializationNeeded=!0}},e.prototype.componentDidMount=function(){this.props.strictMode&&(this._addModules(),this.setState({readyToRender:!0}))},e}(a.Component),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){return null},e.prototype.componentWillUnmount=function(){this.props.cleanup()},e}(a.Component)},66780:(t,e,n)=>{"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(70315)),r(n(78522))},64657:(t,e)=>{"use strict";e.__esModule=!0,e.sagaEquals=function(t,e){if("function"==typeof t&&"function"==typeof e)return t===e;if(!t||!e)return t===e;if("function"==typeof t)return(r=t)===(n=e).saga&&!n.argument;if("function"==typeof e){var n=e;return(r=t).saga===n&&!r.argument}var r;return n=e,(r=t).saga===n.saga&&r.argument===n.argument}},34428:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(59006),o=n(70315),i=n(1305),a=n(64657);e.getSagaExtension=function(t,e){var n=r.default({context:t,sagaMonitor:void 0,onError:e}),s=o.getRefCountedManager(i.getSagaManager(n),a.sagaEquals);return{middleware:[n],onModuleManagerCreated:function(e){t&&(t.moduleManager=e)},onModuleAdded:function(t){t.sagas&&s.add(t.sagas)},onModuleRemoved:function(t){t.sagas&&s.remove(t.sagas)},dispose:function(){s.dispose()}}}},1305:function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};e.__esModule=!0;var o=n(64657),i=n(70315);e.getSagaManager=function(t){var e=i.getMap(o.sagaEquals);return{getItems:function(){return r(e.keys)},add:function(n){n&&n.forEach((function(n){n&&!e.get(n)&&e.add(n,function(t,e){if("function"==typeof e){var n=e;return t.run(n)}var r=e.saga,o=e.argument;return t.run(r,o)}(t,n))}))},remove:function(t){t&&t.forEach((function(t){e.get(t)&&e.remove(t).cancel()}))},dispose:function(){e.keys.forEach((function(t){return e.get(t).cancel()}))}}}},39235:(t,e,n)=>{"use strict";e.__esModule=!0,function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(34428))},58512:(t,e,n)=>{"use strict";n(43292)},36801:(t,e,n)=>{"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}e.__esModule=!0,r(n(70315)),r(n(66780))},59006:(t,e,n)=>{"use strict";n.r(e),n.d(e,{CANCEL:()=>r.n1,END:()=>S,SAGA_LOCATION:()=>r.b_,buffers:()=>s.H,channel:()=>M,default:()=>K,detach:()=>s.I,eventChannel:()=>P,isEnd:()=>C,multicastChannel:()=>j,runSaga:()=>X,stdChannel:()=>A});var r=n(23143),o=n(7896),i=n(31461),a=n(83594),s=n(33316),u=n(75580);const c=function(){var t={};return t.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),t};var l=[],f=0;function p(t){try{g(),t()}finally{y()}}function h(t){l.push(t),f||(g(),v())}function d(t){try{return g(),t()}finally{v()}}function g(){f++}function y(){f--}function v(){var t;for(y();!f&&void 0!==(t=l.shift());)p(t)}var m=function(t){return function(e){return t.some((function(t){return O(t)(e)}))}},b=function(t){return function(e){return t(e)}},x=function(t){return function(e){return e.type===String(t)}},w=function(t){return function(e){return e.type===t}},E=function(){return s.k};function O(t){var e="*"===t?E:(0,a.Z_)(t)?x:(0,a.IX)(t)?m:(0,a.eR)(t)?x:(0,a.Yl)(t)?b:(0,a.NA)(t)?w:null;if(null===e)throw new Error("invalid pattern: "+t);return e(t)}var S={type:r.sZ},C=function(t){return t&&t.type===r.sZ};function M(t){void 0===t&&(t=(0,s.e)());var e=!1,n=[];return{take:function(r){e&&t.isEmpty()?r(S):t.isEmpty()?(n.push(r),r.cancel=function(){(0,s.r)(n,r)}):r(t.take())},put:function(r){if(!e){if(0===n.length)return t.put(r);n.shift()(r)}},flush:function(n){e&&t.isEmpty()?n(S):n(t.flush())},close:function(){if(!e){e=!0;var t=n;n=[];for(var r=0,o=t.length;r<o;r++)(0,t[r])(S)}}}}function P(t,e){void 0===e&&(e=(0,s.n)());var n,r=!1,o=M(e),i=function(){r||(r=!0,(0,a.Yl)(n)&&n(),o.close())};return n=t((function(t){C(t)?i():o.put(t)})),n=(0,s.o)(n),r&&n(),{take:o.take,flush:o.flush,close:i}}function j(){var t,e=!1,n=[],o=n,i=function(){o===n&&(o=n.slice())},a=function(){e=!0;var t=n=o;o=[],t.forEach((function(t){t(S)}))};return(t={})[r.AS]=!0,t.put=function(t){if(!e)if(C(t))a();else for(var i=n=o,s=0,u=i.length;s<u;s++){var c=i[s];c[r.uq](t)&&(c.cancel(),c(t))}},t.take=function(t,n){void 0===n&&(n=E),e?t(S):(t[r.uq]=n,i(),o.push(t),t.cancel=(0,s.o)((function(){i(),(0,s.r)(o,t)})))},t.close=a,t}function A(){var t=j(),e=t.put;return t.put=function(t){t[r.Nm]?e(t):h((function(){e(t)}))},t}var k=0,_=1,T=2,D=3;function I(t,e){var n=t[r.n1];(0,a.Yl)(n)&&(e.cancel=n),t.then(e,(function(t){e(t,!0)}))}var L,N=0,R=function(){return++N};function B(t){t.isRunning()&&t.cancel()}var F=((L={})[s.T]=function(t,e,n){var o=e.channel,i=void 0===o?t.channel:o,s=e.pattern,u=e.maybe,c=function(t){t instanceof Error?n(t,!0):!C(t)||u?n(t):n(r.EO)};try{i.take(c,(0,a.d5)(s)?O(s):null)}catch(t){return void n(t,!0)}n.cancel=c.cancel},L[s.P]=function(t,e,n){var r=e.channel,o=e.action,i=e.resolve;h((function(){var e;try{e=(r?r.put:t.dispatch)(o)}catch(t){return void n(t,!0)}i&&(0,a.MC)(e)?I(e,n):n(e)}))},L[s.A]=function(t,e,n,r){var o=r.digestEffect,i=N,u=Object.keys(e);if(0!==u.length){var c=(0,s.l)(e,n);u.forEach((function(t){o(e[t],i,c[t],t)}))}else n((0,a.IX)(e)?[]:{})},L[s.R]=function(t,e,n,r){var o=r.digestEffect,i=N,u=Object.keys(e),c=(0,a.IX)(e)?(0,s.m)(u.length):{},l={},f=!1;u.forEach((function(t){var e=function(e,r){f||(r||(0,s.s)(e)?(n.cancel(),n(e,r)):(n.cancel(),f=!0,c[t]=e,n(c)))};e.cancel=s.t,l[t]=e})),n.cancel=function(){f||(f=!0,u.forEach((function(t){return l[t].cancel()})))},u.forEach((function(t){f||o(e[t],i,l[t],t)}))},L[s.C]=function(t,e,n,r){var o=e.context,i=e.fn,u=e.args,c=r.task;try{var l=i.apply(o,u);if((0,a.MC)(l))return void I(l,n);if((0,a.hZ)(l))return void Y(t,l,c.context,N,(0,s.j)(i),!1,n);n(l)}catch(t){n(t,!0)}},L[s.a]=function(t,e,n){var r=e.context,o=e.fn,i=e.args;try{var s=function(t,e){(0,a.sR)(t)?n(e):n(t,!0)};o.apply(r,i.concat(s)),s.cancel&&(n.cancel=s.cancel)}catch(t){n(t,!0)}},L[s.F]=function(t,e,n,r){var o=e.context,i=e.fn,u=e.args,c=e.detached,l=r.task,f=function(t){var e=t.context,n=t.fn,r=t.args;try{var o=n.apply(e,r);if((0,a.hZ)(o))return o;var i=!1;return(0,s.q)((function(t){return i?{value:t,done:!0}:(i=!0,{value:o,done:!(0,a.MC)(o)})}))}catch(t){return(0,s.q)((function(){throw t}))}}({context:o,fn:i,args:u}),p=function(t,e){return t.isSagaIterator?{name:t.meta.name}:(0,s.j)(e)}(f,i);d((function(){var e=Y(t,f,l.context,N,p,c,void 0);c?n(e):e.isRunning()?(l.queue.addTask(e),n(e)):e.isAborted()?l.queue.abort(e.error()):n(e)}))},L[s.J]=function(t,e,n,r){var o=r.task,i=function(t,e){if(t.isRunning()){var n={task:o,cb:e};e.cancel=function(){t.isRunning()&&(0,s.r)(t.joiners,n)},t.joiners.push(n)}else t.isAborted()?e(t.error(),!0):e(t.result())};if((0,a.IX)(e)){if(0===e.length)return void n([]);var u=(0,s.l)(e,n);e.forEach((function(t,e){i(t,u[e])}))}else i(e,n)},L[s.b]=function(t,e,n,o){var i=o.task;e===r.sC?B(i):(0,a.IX)(e)?e.forEach(B):B(e),n()},L[s.S]=function(t,e,n){var r=e.selector,o=e.args;try{n(r.apply(void 0,[t.getState()].concat(o)))}catch(t){n(t,!0)}},L[s.d]=function(t,e,n){var r=e.pattern,o=M(e.buffer),i=O(r),a=function e(n){C(n)||t.channel.take(e,i),o.put(n)},s=o.close;o.close=function(){a.cancel(),s()},t.channel.take(a,i),n(o)},L[s.f]=function(t,e,n,r){n(r.task.isCancelled())},L[s.g]=function(t,e,n){e.flush(n)},L[s.G]=function(t,e,n,r){n(r.task.context[e])},L[s.h]=function(t,e,n,r){var o=r.task;(0,s.p)(o.context,e),n()},L);function z(t,e){return t+"?"+e}function U(t){var e=t.name,n=t.location;return n?e+" "+z(n.fileName,n.lineNumber):e}function W(t){var e=(0,s.u)((function(t){return t.cancelledTasks}),t);return e.length?["Tasks cancelled due to error:"].concat(e).join("\n"):""}var q=null,H=[],Z=function(t){t.crashedEffect=q,H.push(t)},$=function(){q=null,H.length=0},V=function(t){q=t},G=function(){var t,e,n=H[0],r=H.slice(1),o=n.crashedEffect?(t=n.crashedEffect,(e=(0,s.v)(t))?e.code+" "+z(e.fileName,e.lineNumber):""):null;return["The above error occurred in task "+U(n.meta)+(o?" \n when executing effect "+o:"")].concat(r.map((function(t){return" created by "+U(t.meta)})),[W(H)]).join("\n")};function Y(t,e,n,o,i,u,l){var f=t.finalizeRunEffect((function(e,n,o){(0,a.MC)(e)?I(e,o):(0,a.hZ)(e)?Y(t,e,h.context,n,i,!1,o):e&&e[r.IO]?(0,F[e.type])(t,e.payload,o,d):o(e)}));g.cancel=s.t;var p={meta:i,cancel:function(){p.status===k&&(p.status=_,g(r.Wd))},status:k},h=function(t,e,n,o,i,a,u){var l;void 0===u&&(u=s.t);var f,p,h=k,d=null,g=[],y=Object.create(n),v=function(t,e,n){var r,o=[],i=!1;function a(t){e(),c(),n(t,!0)}function u(e){o.push(e),e.cont=function(u,c){i||((0,s.r)(o,e),e.cont=s.t,c?a(u):(e===t&&(r=u),o.length||(i=!0,n(r))))}}function c(){i||(i=!0,o.forEach((function(t){t.cont=s.t,t.cancel()})),o=[])}return u(t),{addTask:u,cancelAll:c,abort:a,getTasks:function(){return o}}}(e,(function(){g.push.apply(g,v.getTasks().map((function(t){return t.meta.name})))}),m);function m(e,n){if(n){if(h=T,Z({meta:i,cancelledTasks:g}),b.isRoot){var o=G();$(),t.onError(e,{sagaStack:o})}p=e,d&&d.reject(e)}else e===r.Wd?h=_:h!==_&&(h=D),f=e,d&&d.resolve(e);b.cont(e,n),b.joiners.forEach((function(t){t.cb(e,n)})),b.joiners=null}var b=((l={})[r.Cs]=!0,l.id=o,l.meta=i,l.isRoot=a,l.context=y,l.joiners=[],l.queue=v,l.cancel=function(){h===k&&(h=_,v.cancelAll(),m(r.Wd,!1))},l.cont=u,l.end=m,l.setContext=function(t){(0,s.p)(y,t)},l.toPromise=function(){return d||(d=c(),h===T?d.reject(p):h!==k&&d.resolve(f)),d.promise},l.isRunning=function(){return h===k},l.isCancelled=function(){return h===_||h===k&&e.status===_},l.isAborted=function(){return h===T},l.result=function(){return f},l.error=function(){return p},l);return b}(t,p,n,o,i,u,l),d={task:h,digestEffect:y};return l&&(l.cancel=h.cancel),g(),h;function g(t,n){try{var i;n?(i=e.throw(t),$()):(0,s.y)(t)?(p.status=_,g.cancel(),i=(0,a.Yl)(e.return)?e.return(r.Wd):{done:!0,value:r.Wd}):i=(0,s.z)(t)?(0,a.Yl)(e.return)?e.return():{done:!0}:e.next(t),i.done?(p.status!==_&&(p.status=D),p.cont(i.value)):y(i.value,o,g)}catch(t){if(p.status===_)throw t;p.status=T,p.cont(t,!0)}}function y(e,n,r,o){void 0===o&&(o="");var i,a=R();function u(n,o){i||(i=!0,r.cancel=s.t,t.sagaMonitor&&(o?t.sagaMonitor.effectRejected(a,n):t.sagaMonitor.effectResolved(a,n)),o&&V(e),r(n,o))}t.sagaMonitor&&t.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:e}),u.cancel=s.t,r.cancel=function(){i||(i=!0,u.cancel(),u.cancel=s.t,t.sagaMonitor&&t.sagaMonitor.effectCancelled(a))},f(e,a,u)}}function X(t,e){for(var n=t.channel,r=void 0===n?A():n,o=t.dispatch,i=t.getState,a=t.context,c=void 0===a?{}:a,l=t.sagaMonitor,f=t.effectMiddlewares,p=t.onError,h=void 0===p?s.B:p,g=arguments.length,y=new Array(g>2?g-2:0),v=2;v<g;v++)y[v-2]=arguments[v];var m,b=e.apply(void 0,y),x=R();if(l&&(l.rootSagaStarted=l.rootSagaStarted||s.t,l.effectTriggered=l.effectTriggered||s.t,l.effectResolved=l.effectResolved||s.t,l.effectRejected=l.effectRejected||s.t,l.effectCancelled=l.effectCancelled||s.t,l.actionDispatched=l.actionDispatched||s.t,l.rootSagaStarted({effectId:x,saga:e,args:y})),f){var w=u.compose.apply(void 0,f);m=function(t){return function(e,n,r){return w((function(e){return t(e,n,r)}))(e)}}}else m=s.E;var E={channel:r,dispatch:(0,s.D)(o),getState:i,sagaMonitor:l,onError:h,finalizeRunEffect:m};return d((function(){var t=Y(E,b,c,x,(0,s.j)(e),!0,void 0);return l&&l.effectResolved(x,t),t}))}const K=function(t){var e,n=void 0===t?{}:t,r=n.context,a=void 0===r?{}:r,u=n.channel,c=void 0===u?A():u,l=n.sagaMonitor,f=(0,i.Z)(n,["context","channel","sagaMonitor"]);function p(t){var n=t.getState,r=t.dispatch;return e=X.bind(null,(0,o.Z)({},f,{context:a,channel:c,dispatch:r,getState:n,sagaMonitor:l})),function(t){return function(e){l&&l.actionDispatched&&l.actionDispatched(e);var n=t(e);return c.put(e),n}}}return p.run=function(){return e.apply(void 0,arguments)},p.setContext=function(t){(0,s.p)(a,t)},p}},27422:(t,e,n)=>{"use strict";n.d(e,{ZO:()=>o.Q,$6:()=>o._,RE:()=>o.N,gw:()=>o.O,rM:()=>o.L,v_:()=>o.a2,gz:()=>o.Y,Ys:()=>o.a3,qn:()=>o.K,ib:()=>p,Fm:()=>h,A7:()=>d});var r=n(83594),o=n(33316),i=function(t){return{done:!0,value:t}},a={};function s(t){return(0,r.CE)(t)?"channel":(0,r.eR)(t)?String(t):(0,r.Yl)(t)?t.name:String(t)}function u(t,e,n){var r,s,u,c=e;function l(e,n){if(c===a)return i(e);if(n&&!s)throw c=a,n;r&&r(e);var o=n?t[s](n):t[c]();return c=o.nextState,u=o.effect,r=o.stateUpdater,s=o.errorState,c===a?i(e):u}return(0,o.q)(l,(function(t){return l(null,t)}),n)}function c(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a,c={done:!1,value:(0,o.K)(t)},l=function(t){return a=t};return u({q1:function(){return{nextState:"q2",effect:c,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:(t=a,{done:!1,value:o.L.apply(void 0,[e].concat(r,[t]))})};var t}},"q1","takeEvery("+s(t)+", "+e.name+")")}function l(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a,c,l={done:!1,value:(0,o.K)(t)},f=function(t){return{done:!1,value:o.L.apply(void 0,[e].concat(r,[t]))}},p=function(t){return{done:!1,value:(0,o.M)(t)}},h=function(t){return a=t},d=function(t){return c=t};return u({q1:function(){return{nextState:"q2",effect:l,stateUpdater:d}},q2:function(){return a?{nextState:"q3",effect:p(a)}:{nextState:"q1",effect:f(c),stateUpdater:h}},q3:function(){return{nextState:"q1",effect:f(c),stateUpdater:h}}},"q1","takeLatest("+s(t)+", "+e.name+")")}function f(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a,c={done:!1,value:(0,o.K)(t)},l=function(t){return a=t};return u({q1:function(){return{nextState:"q2",effect:c,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:(t=a,{done:!1,value:o.N.apply(void 0,[e].concat(r,[t]))})};var t}},"q1","takeLeading("+s(t)+", "+e.name+")")}function p(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return o.L.apply(void 0,[c,t,e].concat(r))}function h(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return o.L.apply(void 0,[l,t,e].concat(r))}function d(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return o.L.apply(void 0,[f,t,e].concat(r))}},43292:(t,e,n)=>{"use strict";function r(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}n.r(e),n.d(e,{default:()=>i});var o=r();o.withExtraArgument=r;const i=o},97698:(t,e,n)=>{"use strict";n.r(e),n.d(e,{createSelector:()=>s,createSelectorCreator:()=>a,createStructuredSelector:()=>u,defaultEqualityCheck:()=>o,defaultMemoize:()=>i});var r="NOT_FOUND",o=function(t,e){return t===e};function i(t,e){var n,i,a="object"==typeof e?e:{equalityCheck:e},s=a.equalityCheck,u=void 0===s?o:s,c=a.maxSize,l=void 0===c?1:c,f=a.resultEqualityCheck,p=function(t){return function(e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!t(e[o],n[o]))return!1;return!0}}(u),h=1===l?(n=p,{get:function(t){return i&&n(i.key,t)?i.value:r},put:function(t,e){i={key:t,value:e}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(t,e){var n=[];function o(t){var o=n.findIndex((function(n){return e(t,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(e,i){o(e)===r&&(n.unshift({key:e,value:i}),n.length>t&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,p);function d(){var e=h.get(arguments);if(e===r){if(e=t.apply(null,arguments),f){var n=h.getEntries().find((function(t){return f(t.value,e)}));n&&(e=n.value)}h.put(arguments,e)}return e}return d.clearCache=function(){return h.clear()},d}function a(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},u=r.pop();if("object"==typeof u&&(s=u,u=r.pop()),"function"!=typeof u)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof u+"]");var c=s.memoizeOptions,l=void 0===c?n:c,f=Array.isArray(l)?l:[l],p=function(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return"function"==typeof t?"function "+(t.name||"unnamed")+"()":typeof t})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}(r),h=t.apply(void 0,[function(){return a++,u.apply(null,arguments)}].concat(f)),d=t((function(){for(var t=[],e=p.length,n=0;n<e;n++)t.push(p[n].apply(null,arguments));return i=h.apply(null,t)}));return Object.assign(d,{resultFunc:u,memoizedResultFunc:h,dependencies:p,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),d}}var s=a(i),u=function(t,e){if(void 0===e&&(e=s),"object"!=typeof t)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);var n=Object.keys(t),r=e(n.map((function(e){return t[e]})),(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce((function(t,e,r){return t[n[r]]=e,t}),{})}));return r}},16426:(t,e,n)=>{"use strict";function r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}n.d(e,{Z:()=>r}),Array.prototype.slice},6677:(t,e,n)=>{"use strict";function r(t){return function(){return t}}n.d(e,{Z:()=>r})},13149:(t,e,n)=>{"use strict";n.d(e,{d:()=>c});const r=Math.PI,o=2*r,i=1e-6,a=o-i;function s(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class u{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?s:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return s;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,o,i){this._append`C${+t},${+e},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,n,o,a){if(t=+t,e=+e,n=+n,o=+o,(a=+a)<0)throw new Error(`negative radius: ${a}`);let s=this._x1,u=this._y1,c=n-t,l=o-e,f=s-t,p=u-e,h=f*f+p*p;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>i)if(Math.abs(p*c-l*f)>i&&a){let d=n-s,g=o-u,y=c*c+l*l,v=d*d+g*g,m=Math.sqrt(y),b=Math.sqrt(h),x=a*Math.tan((r-Math.acos((y+h-v)/(2*m*b)))/2),w=x/b,E=x/m;Math.abs(w-1)>i&&this._append`L${t+w*f},${e+w*p}`,this._append`A${a},${a},0,0,${+(p*d>f*g)},${this._x1=t+E*c},${this._y1=e+E*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,s,u,c){if(t=+t,e=+e,c=!!c,(n=+n)<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(s),f=n*Math.sin(s),p=t+l,h=e+f,d=1^c,g=c?s-u:u-s;null===this._x1?this._append`M${p},${h}`:(Math.abs(this._x1-p)>i||Math.abs(this._y1-h)>i)&&this._append`L${p},${h}`,n&&(g<0&&(g=g%o+o),g>a?this._append`A${n},${n},0,1,${d},${t-l},${e-f}A${n},${n},0,1,${d},${this._x1=p},${this._y1=h}`:g>i&&this._append`A${n},${n},0,${+(g>=r)},${d},${this._x1=t+n*Math.cos(u)},${this._y1=e+n*Math.sin(u)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new u(e)}u.prototype},75877:(t,e,n)=>{"use strict";function r(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(o&&(o+=" "),o+=n);else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}n.d(e,{Z:()=>o});const o=function(){for(var t,e,n=0,o="";n<arguments.length;)(t=arguments[n++])&&(e=r(t))&&(o&&(o+=" "),o+=e);return o}},78520:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i,x:()=>s});var r=n(82669),o=n(29939);function i(){var t,e,n=(0,o.Z)().unknown(void 0),a=n.domain,s=n.range,u=0,c=1,l=!1,f=0,p=0,h=.5;function d(){var n=a().length,r=c<u,o=r?c:u,i=r?u:c;t=(i-o)/Math.max(1,n-f+2*p),l&&(t=Math.floor(t)),o+=(i-o-t*(n-f))*h,e=t*(1-f),l&&(o=Math.round(o),e=Math.round(e));var d=function(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}(n).map((function(e){return o+t*e}));return s(r?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(a(t),d()):a()},n.range=function(t){return arguments.length?([u,c]=t,u=+u,c=+c,d()):[u,c]},n.rangeRound=function(t){return[u,c]=t,u=+u,c=+c,l=!0,d()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(l=!!t,d()):l},n.padding=function(t){return arguments.length?(f=Math.min(1,p=+t),d()):f},n.paddingInner=function(t){return arguments.length?(f=Math.min(1,t),d()):f},n.paddingOuter=function(t){return arguments.length?(p=+t,d()):p},n.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),d()):h},n.copy=function(){return i(a(),[u,c]).round(l).paddingInner(f).paddingOuter(p).align(h)},r.o.apply(d(),arguments)}function a(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return a(e())},t}function s(){return a(i.apply(null,arguments).paddingInner(1))}},82669:(t,e,n)=>{"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}n.d(e,{o:()=>r,O:()=>o})},29939:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u,O:()=>s});class r extends Map{constructor(t,e=i){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}(this,t))}}function o({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function i(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;var a=n(82669);const s=Symbol("implicit");function u(){var t=new r,e=[],n=[],o=s;function i(r){let i=t.get(r);if(void 0===i){if(o!==s)return o;t.set(r,i=e.push(r)-1)}return n[i%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new r;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(o=t,i):o},i.copy=function(){return u(e,n).unknown(o)},a.o.apply(i,arguments),i}}}]);