import r from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/helpers/typeof";import t from"highcharts";import i from"highcharts/highcharts-more";import e from"highcharts-multicolor-series";import h from"highcharts/modules/solid-gauge";import m from"highcharts/modules/heatmap";import s from"highcharts/modules/boost";import a from"highcharts/modules/exporting";import n from"highcharts/modules/xrange";import c from"highcharts/modules/dumbbell";import p from"highcharts/modules/pattern-fill";import f from"./highcharts-contour.js";import*as l from"dompurify";var u=function t(i){return"string"==typeof i?l.sanitize(i):("object"===o(i)&&null!==i&&Object.entries(i).forEach((function(e){var h=r(e,2),m=h[0],s=h[1];"string"==typeof s?i[m]=l.sanitize(i[m]):Array.isArray(s)?s.forEach((function(r,o){i[m][o]=t(r)})):"object"===o(s)&&(i[m]=t(s))})),i)};function g(){window.Highcharts=t,e(t),i(t),h(t),m(t),s(t),a(t),n(t),c(t),p(t),f(t);var r=t.chart;t.chart=function(o){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length,e=new Array(i>2?i-2:0),h=2;h<i;h++)e[h-2]=arguments[h];return r.apply(void 0,[o,u(t)].concat(e))},t.setOptions({plotOptions:{series:{states:{inactive:{enabled:!1}}}}})}export{g as initHighcharts};
