/*! For license information please see react-jsx-highmaps.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactHighcharts=t(require("react")):e.ReactHighcharts=t(e.React)}(Object("undefined"!=typeof self?self:this),e=>(()=>{"use strict";var t={197(e,t){var n=Symbol.for("react.transitional.element");Symbol.for("react.fragment"),t.jsx=function(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}},85(e,t,n){e.exports=n(197)},12(t){t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.r(i),r.d(i,{Chart:()=>F,ColorAxis:()=>$,Credits:()=>Z,Debug:()=>Y,HighchartsMapChart:()=>we,HighmapsProvider:()=>J,Legend:()=>ae,Loading:()=>W,MapBubbleSeries:()=>Ye,MapLineSeries:()=>Ge,MapNavigation:()=>Le,MapPointSeries:()=>Je,MapSeries:()=>Ke,Series:()=>I,Subtitle:()=>ue,Title:()=>pe,Tooltip:()=>ye,XAxis:()=>Fe,YAxis:()=>Xe,useAxis:()=>P,useChart:()=>C,useHighcharts:()=>O,useSeries:()=>he,withHighmaps:()=>G,withSeriesType:()=>B});var o=r(12);const s={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let a;const c=new Uint8Array(16),l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));const u=function(e,t,n){if(s.randomUUID&&!t&&!e)return s.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!a){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");a=crypto.getRandomValues.bind(crypto)}return a(c)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}(r)},d=(0,o.createContext)();d.displayName="SeriesContext";const f=d;function p(e,t){let n={};return e&&Object.keys(e).filter(n=>t(n,e[n])).forEach(t=>{n[t]=e[t]}),n}Object.defineProperty(p,"name",{value:"default",configurable:!0});const b=e=>p(e,(e,t)=>!y(e,t)),m=e=>{const t=(e=>p(e,y))(e),n={};return Object.keys(t).forEach(e=>{const r=e.slice(2)[0].toLowerCase()+e.slice(3);n[r]=t[e]}),n},y=(e,t)=>0===e.indexOf("on")&&e.length>2&&"function"==typeof t;function h(e,t,n=!1){let{children:r,...i}=t;const o=p(i,(t,n)=>!e||!1===Object.is(n,e[t]));return!n||e&&!1!==Object.is(e.children,r)||(o.text=r),Object.keys(o).length>0&&o}function g(e){const t=(0,o.useRef)();return(0,o.useEffect)(()=>{t.current=e}),t.current}const v=(0,o.createContext)();v.displayName="HighchartsContext";const x=v;function O(){return(0,o.useContext)(x)}const j=(0,o.createContext)();j.displayName="ChartContext";const E=j;function C(){return(0,o.useContext)(E)}const w=(0,o.createContext)();w.displayName="AxisContext";const A=w,S=e=>e?{object:e,id:e.userOptions&&e.userOptions.id,type:e.coll,update:e.update.bind(e),remove:e.remove.bind(e),addPlotBandOrLine:e.addPlotBandOrLine.bind(e),removePlotBandOrLine:e.removePlotBandOrLine.bind(e),getExtremes:e.getExtremes.bind(e),setExtremes:e.setExtremes.bind(e),setTitle:e.setTitle.bind(e)}:null;function P(e){const t=C(),n=(0,o.useContext)(A),r=()=>{if(n)return n;if(e){const n=t.get(e);return S(n)}return null},[i,s]=(0,o.useState)(r);return(0,o.useEffect)(()=>{i||s(r())},[]),(0,o.useDebugValue)(i?i.id:null),i}const R=(0,o.createContext)();R.displayName="ColorAxisContext";const T=R,k=e=>e?{object:e,id:e.userOptions&&e.userOptions.id}:null;function N(e){return e?{object:e,id:e.userOptions&&e.userOptions.id,type:e.type,update:e.update.bind(e),remove:e.remove.bind(e),setData:e.setData.bind(e),setVisible:e.setVisible.bind(e)}:null}var L=r(85);const M=[],D=(0,o.memo)(({id:e=u,data:t=M,isDataEqual:n=Object.is,type:r="line",visible:i=!0,children:s=null,axisId:a,requiresAxis:c=!0,jsxOptions:l,...d})=>{const p={id:e,data:t,type:r,visible:i,...d},y=O(),{addSeries:v,needsRedraw:x}=C(),j=(0,o.useRef)(null),[,E]=(0,o.useState)(!1),w=(0,o.useRef)(null),A=P(a),S=function(){C();const e=(0,o.useContext)(T),t=()=>e||null,[n,r]=(0,o.useState)(t);return(0,o.useEffect)(()=>{n||r(t())},[]),(0,o.useDebugValue)(n?n.id:null),n}();(0,o.useEffect)(()=>{if(c&&!A)return;const e=U(p,A,S,c),t=v(e,!1);return j.current=t,w.current=N(j.current),E(!0),x(),()=>{if(t&&t.remove){try{t.remove.bind(t)(!1),j.current=null}catch{}x()}}},[A]);const R=g(p);return(0,o.useEffect)(()=>{if(!R)return;if(!j.current)return;const e=j.current,{visible:t,data:r,...i}=p;let o=!1;if(!1===n(r,R.data)){const t=l&&l.animation,n=l&&l.updatePoints;e.setData(r,!1,t,n),o=!0}t!==R.visible&&(e.setVisible(t,!1),o=!0);const s=h(R,i);if(!1!==s){const t=b(s);e.update(t,!1);const n=m(s),r=m(R);Object.keys(n).forEach(t=>{const i=r[t];i&&y.removeEvent(e,t,i);const o=n[t];o&&y.addEvent(e,t,o)}),o=!0}o&&x()}),j.current?(0,L.jsx)(f.Provider,{value:w.current,children:s}):null}),U=(e,t,n,r)=>{const{id:i,data:o,...s}=e,a="function"==typeof i?i():i,c=b(s),l={id:a,data:o,events:m(s),...c};return n&&(l.colorAxis=n.id),r&&(l[t.type]=t.id),l};D.displayName="Series";const I=D;function B(e,t={}){const n=n=>(0,L.jsx)(I,{...n,...t,type:e.toLowerCase()});return n.displayName=`${e}Series`,n}function V(e,t=!1){const n=(0,o.useRef)();(0,o.useEffect)(()=>{n.current=e});const r=h(n.current,e,t);return(0,o.useDebugValue)(r?"Modified":"Not modified"),r}const H=(0,o.memo)(({type:e="line",width:t,height:n,...r})=>{const i=C(),s=(0,o.useRef)(!1),a=V({type:e,...r});return(0,o.useEffect)(()=>{void 0===t&&void 0===n||i.setSize(t,n)},[t,n]),(0,o.useEffect)(()=>{if(!1!==a&&s.current){const e=b(a);Object.getOwnPropertyNames(e).length>0&&z(a,i,i.needsRedraw)}}),(0,o.useEffect)(()=>{const t=b({type:e,...r});z(t,i),s.current=!0},[]),function(e,t){const n=O(),r=m(e),i=g(r),o=h(i,r);!1!==o&&Object.keys(o).forEach(e=>{if(i){const r=i[e];r&&n.removeEvent(t,e,r)}const r=o[e];r&&n.addEvent(t,e,r)})}(r,i.object),null}),z=(e,t)=>{t.update({chart:e},!1),t.needsRedraw()};H.displayName="Chart";const F=H,$=({children:e=null,...t})=>{const n=C(),r=(0,o.useRef)(null),i=(0,o.useRef)(null),[s,a]=(0,o.useState)(!1);(0,o.useEffect)(()=>{const e=((e,t)=>{const n=(e=>{const{id:t=u,...n}=e,r="function"==typeof t?t():t,i=b(n);return{id:r,events:m(n),...i}})(t);return e.addColorAxis(n,!1)})(n,t);return r.current=e,i.current=k(r.current),a(!0),n.needsRedraw(),()=>{if(e&&e.remove){try{e.remove.bind(e)(!1)}catch{}n.needsRedraw()}}},[]);const c=V(t);return(0,o.useEffect)(()=>{null!==r.current&&!1!==c&&(r.current.update(c,!1),n.needsRedraw())}),s?(0,L.jsx)(T.Provider,{value:i.current,children:e}):null},_=e=>e,q=(e,t=_,n=_,r=!0)=>{const i=C(),s=V(e,r);(0,o.useEffect)(()=>{!1!==s&&(t(i,s),i.needsRedraw())}),(0,o.useEffect)(()=>()=>{try{n(i)}catch{}i.needsRedraw()},[])},X=(e,t)=>{"text"in t&&!t.text&&delete t.text,e.addCredits(t,!0)},Z=({enabled:e=!0,...t})=>(q({enabled:e,...t},X,e=>X(e,{enabled:!1})),null),Y=({varName:e="chart"})=>{const t=C();return(0,o.useEffect)(()=>(window[e]=t.object,console.log(`Chart instance available as global variable as window.${e}`),()=>{window[e]=void 0}),[e]),null};function G(e,t){return function(n){return(0,L.jsx)(J,{Highcharts:t,children:(0,L.jsx)(e,{...n})})}}const J=({Highcharts:e,children:t})=>(0,L.jsx)(x.Provider,{value:e,children:t}),K=(0,o.memo)(({children:e,isLoading:t=!0,...n})=>{const r=C(),i=V(n);return(0,o.useEffect)(()=>{!1!==i&&Q(i,r),t?r.showLoading(e):r.hideLoading()}),(0,o.useEffect)(()=>()=>{try{r.hideLoading()}catch{}},[]),null}),Q=(e,t)=>{t.update({loading:e},!0)};K.displayName="Loading";const W=K,ee=(0,o.memo)(({children:e=null,enabled:t=!0,...n})=>(q({enabled:t,...n},te,e=>te(e,{enabled:!1}),!1),e)),te=(e,t)=>{e.update({legend:t},!1)};ee.displayName="Legend";const ne=ee,re=(0,o.memo)(e=>(q(e,ie,e=>ie(e,{text:null})),null)),ie=(e,t)=>{e.update({legend:{title:t}},!1)};re.displayName="LegendTitle";const oe=re,se=ne;se.Title=oe;const ae=se,ce=(0,o.memo)(e=>(q(e,le,e=>le(e,{text:null})),null)),le=(e,t)=>{e.setTitle(void 0,t,!1)};ce.displayName="Subtitle";const ue=ce,de=(0,o.memo)(e=>(q(e,fe,e=>fe(e,{text:null})),null)),fe=(e,t)=>{e.setTitle(t,null,!1)};de.displayName="Title";const pe=de,be=(0,o.memo)(e=>{var t;const{children:n=null,...r}=e,i=C(),s=O();r.enabled=null===(t=e.enabled)||void 0===t||t,(0,o.useEffect)(()=>(me(i,{...s.defaultOptions&&s.defaultOptions.tooltip,...r}),()=>{try{me(i,{enabled:!1})}catch{}}),[]);const a=V(r);return(0,o.useEffect)(()=>{!1!==a&&me(i,a)}),null}),me=(e,t)=>{e.update({tooltip:t})};be.displayName="Tooltip";const ye=be;function he(e){const t=(0,o.useContext)(f),n=C(),r=()=>t||(e?N(n.get(e)):null),[i,s]=(0,o.useState)(r);return(0,o.useEffect)(()=>{i||s(r())},[]),(0,o.useDebugValue)(i?i.id:null),i}function ge(e){const t=window.cancelAnimationFrame,n=window.requestAnimationFrame;var r;return function(...i){r&&t(r),r=n(e.bind(e,...i))}}Object.defineProperty(ge,"name",{value:"default",configurable:!0});const ve=e=>e,xe=({children:e=null,callback:t=ve,className:n="",containerProps:r=null,...i})=>{const[s,a]=(0,o.useState)(!1),c=(0,o.useRef)(null),l=(0,o.useRef)(null),u=(0,o.useRef)(null);(0,o.useLayoutEffect)(()=>{const e=((e,t)=>{if(!t)return;const{chartCreationFunc:n,callback:r,chart:i,polar:o,gauge:s,styledMode:a=!1,children:c,...l}=e,u=n(t,{chart:{styledMode:a,...i},title:{text:null},subtitle:{text:null},legend:{enabled:!1},rangeSelector:{enabled:!1},navigator:{enabled:!1},scrollbar:{enabled:!1},tooltip:{enabled:!1},credits:{enabled:!1},series:[],xAxis:[],yAxis:[],...l});return u.polar=o,u.angular=s,u})(i,c.current);var n,r;l.current=e,u.current=(n=e,r=i.chartType,{object:n,type:r,get:n.get.bind(n),setSize:n.setSize.bind(n),update:n.update.bind(n),addAxis:n.addAxis.bind(n),addColorAxis:n.addColorAxis.bind(n),addSeries:n.addSeries.bind(n),setTitle:n.setTitle.bind(n),setCaption:n.setCaption.bind(n),showLoading:n.showLoading.bind(n),hideLoading:n.hideLoading.bind(n),addCredits:n.addCredits.bind(n),addAnnotation:n.addAnnotation?n.addAnnotation.bind(n):null,removeAnnotation:n.removeAnnotation?n.removeAnnotation.bind(n):null,needsRedraw:ge(()=>{if(!n.__destroyed)try{n.redraw.bind(n)()}catch{}})}),t(e),a(!0)},[]),(0,o.useEffect)(()=>{const e=l.current;return()=>{e&&(e.destroy.bind(e)(),e.__destroyed=!0)}},[]);const d=g(i);return(0,o.useEffect)(()=>{if(!s)return;const{plotOptions:e}=i,t=l.current;!1===Object.is(d.plotOptions,e)&&t&&(t.update({plotOptions:e},!1),u.current.needsRedraw())}),(0,L.jsx)("div",{...r,className:`chart ${n}`,ref:c,children:s&&(0,L.jsx)(E.Provider,{value:u.current,children:e})})};function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(null,arguments)}const je={id:"xAxis"},Ee={id:"yAxis"},Ce={enabled:!1},we=({map:e,chart:t,callback:n,...r})=>{const i=O(),s=(0,o.useMemo)(()=>((e,t)=>{if(e)return"string"==typeof e?t.maps[e]:e})(e,i),[e]),a=(0,o.useMemo)(()=>({...t,map:s}),[s,t]),c=(0,o.useCallback)(e=>{if(s){const t=i.format,{mapText:n,mapTextFull:r}=e.options.credits;e.mapCredits=t(n,{geojson:s}),e.mapCreditsFull=t(r,{geojson:s})}n&&n(e)},[n]);return o.createElement(xe,Oe({chart:a,mapNavigation:Ce,xAxis:je,yAxis:Ee},r,{callback:c,chartCreationFunc:i.mapChart,chartType:"mapChart"}))},Ae=(e,t)=>{t.update({mapNavigation:e},!0)},Se=e=>{const t=O(),n=C();return(0,o.useEffect)(()=>{const{type:r,...i}=e,o=((e,t)=>{const{children:n,onClick:r,...i}=e;return{...t.defaultOptions&&t.defaultOptions.mapNavigation.buttonOptions,onclick:r,...i,text:n}})(i,t);return((e,t,n)=>{const r=Object.keys(t).length>0;n.update({mapNavigation:{enableButtons:r,buttons:{[e]:t}}})})(r,o,n),()=>{}},[]),null};function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(null,arguments)}const Re=function(){this.mapZoom(.5)};function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Te.apply(null,arguments)}const ke=function(){this.mapZoom(2)},Ne=({children:e,enabled:t=!0,...n})=>{const[r,i]=(0,o.useState)(!1),s=C(),a=O();(0,o.useEffect)(()=>{const e=s.object;e.options.mapNavigation.enabled=!0,a.fireEvent(e,"beforeRender");const r=((e,t)=>({...t.defaultOptions&&t.defaultOptions.mapNavigation,...e,enableButtons:!1,buttons:{zoomIn:{},zoomOut:{}}}))({enabled:t,...n},a);return Ae(r,s),i(!0),()=>{try{Ae({enabled:!1},s)}catch{}}},[]);const c=V({enabled:t,...n});return(0,o.useEffect)(()=>{r&&!1!==c&&Ae(c,s)}),e&&r?o.createElement(o.Fragment,null,e):null};Ne.ZoomIn=({children:e="+",onClick:t=Re,y:n=0,...r})=>o.createElement(Se,Pe({type:"zoomIn",onClick:t,y:n},r),e),Ne.ZoomOut=({children:e="-",onClick:t=ke,y:n=28,...r})=>o.createElement(Se,Te({type:"zoomOut",onClick:t,y:n},r),e);const Le=Ne,Me=(0,o.memo)(({children:e,axisId:t,...n})=>{const r=P(t);return(0,o.useEffect)(()=>{r&&De({text:e,...n},r)}),(0,o.useEffect)(()=>()=>{if(r)try{De({text:null},r)}catch{}},[r]),null}),De=(e,t)=>{t.setTitle(e,!0)};Me.displayName="AxisTitle";const Ue=Me,Ie=({children:e=null,dynamicAxis:t=!0,...n})=>{const r=C(),i=(0,o.useRef)(null),s=(0,o.useRef)(null),[a,c]=(0,o.useState)(!1);(0,o.useEffect)(()=>{const e=((e,t,n)=>{const{id:r=u,isX:i}=t,o=(e=>{const{id:t=u,...n}=e,r="function"==typeof t?t():t,i=b(n);return{id:r,title:{text:null},events:m(n),...i}})(t);let s;if(n)s=e.addAxis(o,i,!1);else{const t="function"==typeof r?r():r;s=e.get(t),s.update.call(s,o,!1)}return s})(r,n,t);return i.current=e,s.current=S(i.current),c(!0),r.needsRedraw(),()=>{if(e.remove&&t){try{e.remove.bind(e)(!1)}catch{}r.needsRedraw()}}},[]);const l=V(n);return(0,o.useEffect)(()=>{if(a&&!1!==l){const e=i.current,t=b(l),o={events:m(n),...t};e.plotLinesAndBands&&e.plotLinesAndBands.length>0?e.update(o,!0):(e.update(o,!1),r.needsRedraw())}}),a?(0,L.jsx)(A.Provider,{value:s.current,children:e}):null};Ie.Title=Ue;const Be=Ie,Ve=({id:e,...t})=>{const n="stockChart"===C().type,r=n?"datetime":"linear",i=n?"xAxis":e;return(0,L.jsx)(Be,{type:r,...t,id:i,isX:!0})};Ve.Title=Be.Title;const He=Ve;function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ze.apply(null,arguments)}const Fe=({endOnTick:e=!1,visible:t=!1,minPadding:n=0,maxPadding:r=0,startOnTick:i=!1,...s})=>o.createElement(He,ze({endOnTick:e,visible:t,minPadding:n,maxPadding:r,startOnTick:i},s,{id:"xAxis",dynamicAxis:!1})),$e=({type:e="linear",...t})=>(0,L.jsx)(Be,{type:e,...t,isX:!1});$e.displayName="YAxis",$e.Title=Be.Title;const _e=$e;function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(null,arguments)}const Xe=({endOnTick:e=!1,visible:t=!1,minPadding:n=0,maxPadding:r=0,startOnTick:i=!1,reversed:s=!0,...a})=>o.createElement(_e,qe({endOnTick:e,visible:t,minPadding:n,maxPadding:r,startOnTick:i,reversed:s},a,{id:"yAxis",dynamicAxis:!1})),Ze={axisId:"yAxis"},Ye=B("MapBubble",Ze),Ge=B("MapLine",Ze),Je=B("MapPoint",Ze),Ke=B("Map",Ze);return i})());