!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/exporting
 * @requires highcharts
 *
 * Exporting module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.AST,e._Highcharts.Chart):"function"==typeof define&&define.amd?define("highcharts/modules/exporting",["highcharts/highcharts"],function(e){return t(e,e.AST,e.Chart)}):"object"==typeof exports?exports["highcharts/modules/exporting"]=t(e._Highcharts,e._Highcharts.AST,e._Highcharts.Chart):e.Highcharts=t(e.Highcharts,e.Highcharts.AST,e.Highcharts.Chart)}("u"<typeof window?this:window,function(e,t,n){return function(){"use strict";var r,o,i,a,s={660:function(e){e.exports=t},944:function(t){t.exports=e},960:function(e){e.exports=n}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return s[e](n,n.exports,c),n.exports}c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var u={};c.d(u,{default:function(){return X}});var h=c(944),p=c.n(h),d=c(660),f=c.n(d),g=c(960),v=c.n(g);(r=i||(i={})).compose=function(e){return e.navigation||(e.navigation=new o(e)),e},r.Additions=o=function(){function e(e){this.updates=[],this.chart=e}return e.prototype.addUpdate=function(e){this.chart.navigation.updates.push(e)},e.prototype.update=function(e,t){var n=this;this.updates.forEach(function(r){r.call(n.chart,e,t)})},e}();var m=i,y=p().isSafari,b=p().win,x=p().win.document,w=b.URL||b.webkitURL||b;function S(e,t){var n=b.navigator,r=x.createElement("a");if("string"!=typeof e&&!(e instanceof String)&&n.msSaveOrOpenBlob)return void n.msSaveOrOpenBlob(e,t);if(e=""+e,n.userAgent.length>1e3)throw Error("Input too long");var o=/Edge\/\d+/.test(n.userAgent);if((y&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||o||e.length>2e6)&&!(e=function(e){var t=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(t&&t.length>3&&b.atob&&b.ArrayBuffer&&b.Uint8Array&&b.Blob&&w.createObjectURL){for(var n=b.atob(t[3]),r=new b.ArrayBuffer(n.length),o=new b.Uint8Array(r),i=0;i<o.length;++i)o[i]=n.charCodeAt(i);return w.createObjectURL(new b.Blob([o],{type:t[1]}))}}(e)||""))throw Error("Failed to convert to blob");if(void 0!==r.download)r.href=e,r.download=t,x.body.appendChild(r),r.click(),x.body.removeChild(r);else try{if(!b.open(e,"chart"))throw Error("Failed to open window")}catch(t){b.location.href=e}}var E=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},C=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var c=[s,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},O=p().isTouchDevice,T={exporting:{allowHTML:!0,allowTableSorting:!0,local:!0,type:"image/png",url:"https://export-svg.highcharts.com?v=".concat(p().version),pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){var e;null==(e=this.fullscreen)||e.toggle()}},printChart:{textKey:"printChart",onclick:function(){var e;null==(e=this.exporting)||e.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){return E(this,void 0,void 0,function(){var e;return C(this,function(t){switch(t.label){case 0:return[4,null==(e=this.exporting)?void 0:e.exportChart()];case 1:return t.sent(),[2]}})})}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){return E(this,void 0,void 0,function(){var e;return C(this,function(t){switch(t.label){case 0:return[4,null==(e=this.exporting)?void 0:e.exportChart({type:"image/jpeg"})];case 1:return t.sent(),[2]}})})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){return E(this,void 0,void 0,function(){var e;return C(this,function(t){switch(t.label){case 0:return[4,null==(e=this.exporting)?void 0:e.exportChart({type:"application/pdf"})];case 1:return t.sent(),[2]}})})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){return E(this,void 0,void 0,function(){var e;return C(this,function(t){switch(t.label){case 0:return[4,null==(e=this.exporting)?void 0:e.exportChart({type:"image/svg+xml"})];case 1:return t.sent(),[2]}})})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"var(--highcharts-neutral-color-60)",symbolStroke:"var(--highcharts-neutral-color-60)",symbolStrokeWidth:3,theme:{fill:"var(--highcharts-background-color)",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"var(--highcharts-background-color)",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"var(--highcharts-neutral-color-80)",padding:"0.5em",fontSize:O?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"var(--highcharts-neutral-color-5)"}}};!function(e){var t=[];function n(e,t,n,r){return[["M",e,t+2.5],["L",e+n,t+2.5],["M",e,t+r/2+.5],["L",e+n,t+r/2+.5],["M",e,t+r-1.5],["L",e+n,t+r-1.5]]}function r(e,t,n,r){var o=r/3-2,i=[];return i.concat(this.circle(n-o,t,o,o),this.circle(n-o,t+o+4,o,o),this.circle(n-o,t+2*(o+4),o,o))}e.compose=function(e){if(-1===t.indexOf(e)){t.push(e);var o=e.prototype.symbols;o.menu=n,o.menuball=r.bind(o)}}}(a||(a={}));var k=a,F=p().composed;function R(){this.fullscreen=new N(this)}var N=function(){function e(e){this.chart=e,this.isOpen=!1;var t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}return e.compose=function(e){(0,h.pushUnique)(F,"Fullscreen")&&(0,h.addEvent)(e,"beforeRender",R)},e.prototype.close=function(){var e=this,t=e.chart,n=t.options.chart;(0,h.fireEvent)(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,n.width=e.origWidthOption,n.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})},e.prototype.open=function(){var e=this,t=e.chart,n=t.options.chart;(0,h.fireEvent)(t,"fullscreenOpen",void 0,function(){if(n&&(e.origWidthOption=n.width,e.origHeightOption=n.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){var r=(0,h.addEvent)(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),o=(0,h.addEvent)(t,"destroy",r);e.unbindFullscreenEvent=function(){r(),o()};var i=t.renderTo[e.browserProps.requestFullscreen]();i&&i.catch(function(){alert("Full screen is not supported inside a frame.")})}})},e.prototype.setButtonText=function(){var e,t,n=this.chart,r=null==(e=n.exporting)?void 0:e.divElements,o=n.options.exporting,i=o&&o.buttons&&o.buttons.contextButton.menuItems,a=n.options.lang;if((null==o?void 0:o.menuItemDefinitions)&&(null==a?void 0:a.exitFullscreen)&&a.viewFullscreen&&i&&r){var s=r[i.indexOf("viewFullscreen")];s&&f().setElementHTML(s,this.isOpen?a.exitFullscreen:(null==(t=o.menuItemDefinitions.viewFullscreen)?void 0:t.text)||a.viewFullscreen)}},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e}(),P=function(){return(P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},A=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var c=[s,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},M=p().win,D={ajax:function(e){var t,n={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},r=new XMLHttpRequest;function o(t,n){e.error&&e.error(t,n)}if(!e.url)return!1;r.open((e.type||"get").toUpperCase(),e.url,!0),(null==(t=e.headers)?void 0:t["Content-Type"])||r.setRequestHeader("Content-Type",n[e.dataType||"json"]||n.text),(0,h.objectEach)(e.headers,function(e,t){r.setRequestHeader(t,e)}),e.responseType&&(r.responseType=e.responseType),r.onreadystatechange=function(){var t,n;if(4===r.readyState){if(200===r.status){if("blob"!==e.responseType&&(n=r.responseText,"json"===e.dataType))try{n=JSON.parse(n)}catch(e){if(e instanceof Error)return o(r,e)}return null==(t=e.success)?void 0:t.call(e,n,r)}o(r,r.responseText)}},e.data&&"string"!=typeof e.data&&(e.data=JSON.stringify(e.data)),r.send(e.data)},getJSON:function(e,t){D.ajax({url:e,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})}};D.post=function(e,t,n){var r,o,i,a;return r=this,o=void 0,i=void 0,a=function(){var r,o,i,a;return A(this,function(s){switch(s.label){case 0:return r=new M.FormData,(0,h.objectEach)(t,function(e,t){r.append(t,e)}),r.append("b64","true"),[4,M.fetch(e,P({method:"POST",body:r},n))];case 1:if(!(o=s.sent()).ok)return[3,3];return[4,o.text()];case 2:i=s.sent(),(a=document.createElement("a")).href="data:".concat(t.type,";base64,").concat(i),a.download=t.filename,a.click(),(0,h.discardElement)(a),s.label=3;case 3:return[2]}})},new(i||(i=Promise))(function(e,t){function n(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(n,s)}l((a=a.apply(r,o||[])).next())})};var L=function(){return(L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},H=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},I=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var c=[s,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},j=p().defaultOptions,U=p().setOptions,G=p().composed,B=p().doc,V=p().isFirefox,q=p().isMS,z=p().isSafari,W=p().SVG_NS,$=p().win;f().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),f().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");var K=$.URL||$.webkitURL||$,_=function(){function e(e,t){this.options={},this.chart=e,this.options=t,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}return e.hyphenate=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})},e.imageToDataURL=function(t,n,r){return H(this,void 0,void 0,function(){var o,i,a;return I(this,function(s){switch(s.label){case 0:return[4,e.loadImage(t)];case 1:if(o=s.sent(),a=null==(i=B.createElement("canvas"))?void 0:i.getContext("2d"))return i.height=o.height*n,i.width=o.width*n,a.drawImage(o,0,0,i.width,i.height),[2,i.toDataURL(r)];throw Error("No canvas found!")}})})},e.fetchCSS=function(e){return H(this,void 0,void 0,function(){var t,n;return I(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch(e)];case 1:return[4,r.sent().text()];case 2:return t=r.sent(),(n=new CSSStyleSheet).replaceSync(t),[2,n];case 3:return r.sent(),(0,h.error)("Warning: Failed to fetch CSS from ".concat(e),!1),[3,4];case 4:return[2]}})})},e.extractFontFamilies=function(e){return e?e.split(",").map(function(e){return e.trim().replace(/^['"]|['"]$/g,"")}).filter(Boolean):[]},e.selectorAffectsSVG=function(e,t){try{if(t.matches(e))return!0;return!!t.querySelector(e)}catch(e){return!1}},e.collectSVGInlineFonts=function(t,n){for(var r=t.querySelectorAll("text, tspan"),o=0,i=Array.from(r);o<i.length;o++){var a=i[o],s=a.getAttribute("style")||"",l=a.getAttribute("font-family")||"";if(s.indexOf("font-family")>-1)for(var c=s.match(/font-family\s*:\s*([^;]+)/i),u=e.extractFontFamilies(null==c?void 0:c[1]),h=0;h<u.length;h++){var p=u[h];n.add(p)}for(var d=0,f=e.extractFontFamilies(l);d<f.length;d++){var p=f[d];n.add(p)}}},e.handleStyleSheet=function(t,n,r,o){return H(this,arguments,void 0,function(t,n,r,o,i){var a,s,l,c,u,h;return void 0===i&&(i=new Set),I(this,function(p){switch(p.label){case 0:if(a=t.href){if(i.has(a))return[2];i.add(a);try{if(new URL(a,B.baseURI).origin!==$.location.origin)return[2]}catch(e){}}p.label=1;case 1:p.trys.push([1,6,,13]),s=function(t){var s,l,c,u,h,p,d;return I(this,function(f){switch(f.label){case 0:if(!(t instanceof CSSImportRule))return[3,6];f.label=1;case 1:return f.trys.push([1,5,,6]),[4,e.fetchCSS(t.href)];case 2:if(!(s=f.sent()))return[3,4];return[4,e.handleStyleSheet(s,n,r,o,i)];case 3:f.sent(),f.label=4;case 4:return[3,6];case 5:return f.sent(),[3,6];case 6:if(t instanceof CSSStyleRule&&e.selectorAffectsSVG(t.selectorText,o))for(l=0,c=e.extractFontFamilies(t.style.fontFamily);l<c.length;l++)u=c[l],r.add(u);return t instanceof CSSFontFaceRule&&(h=t.cssText,a&&(p=a,d=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi,h=h.replace(d,function(e,t,n){var r=new URL(n,p).href;return"url(".concat(t).concat(r).concat(t,")")})),n.push(h)),[2]}})},l=0,c=Array.from(t.cssRules),p.label=2;case 2:if(!(l<c.length))return[3,5];return u=c[l],[5,s(u)];case 3:p.sent(),p.label=4;case 4:return l++,[3,2];case 5:return[3,13];case 6:if(!("SecurityError"===p.sent().name&&a))return[3,12];p.label=7;case 7:return p.trys.push([7,11,,12]),[4,e.fetchCSS(a)];case 8:if(!(h=p.sent()))return[3,10];return[4,e.handleStyleSheet(h,n,r,o,i)];case 9:p.sent(),p.label=10;case 10:return[3,12];case 11:return p.sent(),[3,12];case 12:return[3,13];case 13:return[2]}})})},e.fetchStyleSheets=function(t){return H(this,void 0,void 0,function(){var n,r,o,i,a;return I(this,function(s){switch(s.label){case 0:n=[],r=new Set,e.collectSVGInlineFonts(t,r),o=0,i=Array.from(B.styleSheets),s.label=1;case 1:if(!(o<i.length))return[3,4];return a=i[o],[4,e.handleStyleSheet(a,n,r,t)];case 2:s.sent(),s.label=3;case 3:return o++,[3,1];case 4:if(!r.size)return[2,n];return[2,n.filter(function(t){var n=t.match(/font-family\s*:\s*([^;]+);?/i);return e.extractFontFamilies(null==n?void 0:n[1]).some(function(e){return r.has(e)})})]}})})},e.inlineFonts=function(t){return H(this,void 0,void 0,function(){var n,r,o,i,a,s,l,c,u,h,p,d,f,g,v,m;return I(this,function(y){switch(y.label){case 0:return[4,e.fetchStyleSheets(t)];case 1:for(n=y.sent(),r=/url\(([^)]+)\)/g,o=[],i=n.join("\n");a=r.exec(i);)s=a[1].replace(/['"]/g,""),o.includes(s)||o.push(s);l=function(e){for(var t="",n=new Uint8Array(e),r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)},c={},u=0,h=o,y.label=2;case 2:if(!(u<h.length))return[3,8];p=h[u],y.label=3;case 3:return y.trys.push([3,6,,7]),[4,fetch(p)];case 4:return f=(d=y.sent()).headers.get("Content-Type")||"",v=l,[4,d.arrayBuffer()];case 5:return g=v.apply(void 0,[y.sent()]),c[p]="data:".concat(f,";base64,").concat(g),[3,7];case 6:return y.sent(),[3,7];case 7:return u++,[3,2];case 8:return i=i.replace(r,function(e,t){var n=t.replace(/['"]/g,"");return"url(".concat(c[n]||n,")")}),(m=document.createElementNS("http://www.w3.org/2000/svg","style")).textContent=i,t.append(m),[2,t]}})})},e.loadImage=function(t){return new Promise(function(n,r){var o=new $.Image;o.crossOrigin="Anonymous",o.onload=function(){setTimeout(function(){n(o)},e.loadEventDeferDelay)},o.onerror=function(e){r(e)},o.src=t})},e.prepareImageOptions=function(e){var t,n=(null==e?void 0:e.type)||"image/png",r=(null==e?void 0:e.libURL)||(null==(t=j.exporting)?void 0:t.libURL);return{type:n,filename:((null==e?void 0:e.filename)||"chart")+"."+("image/svg+xml"===n?"svg":n.split("/")[1]),scale:(null==e?void 0:e.scale)||1,libURL:(null==r?void 0:r.slice(-1))!=="/"?r+"/":r}},e.sanitizeDOM=function(e){e.querySelectorAll("foreignObject").forEach(function(e){["width","height"].forEach(function(t){var n=e.getAttribute(t);n&&e.setAttribute(t,Math.ceil(1.15*parseInt(n,10)))})})},e.sanitizeSVG=function(e,t){return e.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">').replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|&quot;)(.*?)("|&quot;)\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/(<image[^>]*) xlink:href=/g,"$1 href=").replace(/\n+/g," ").replace(/&nbsp;/g,"\xa0").replace(/&shy;/g,"\xad")},e.svgToDataURL=function(e){var t=$.navigator.userAgent,n=t.indexOf("WebKit")>-1&&0>t.indexOf("Chrome");try{if(!n&&-1===e.indexOf("<foreignObject"))return K.createObjectURL(new $.Blob([e],{type:"image/svg+xml;charset-utf-16"}))}catch(e){}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e)},e.prototype.addButton=function(e){var t,n,r=this,o=r.chart,i=o.renderer,a=(0,h.merge)(null==(t=o.options.navigation)?void 0:t.buttonOptions,e),s=a.onclick,l=a.menuItems,c=a.symbolSize||12;if(!1!==a.enabled&&a.theme){var u=o.styledMode?{}:a.theme,p=function(){};s?p=function(e){e&&e.stopPropagation(),s.call(o,e,o)}:l&&(p=function(e){e&&e.stopPropagation(),r.contextMenu(d.menuClassName,l,d.translateX||0,d.translateY||0,d.width||0,d.height||0,d),d.setState(2)}),a.text&&a.symbol?u.paddingLeft=(0,h.pick)(u.paddingLeft,30):a.text||(0,h.extend)(u,{width:a.width,height:a.height,padding:0});var d=i.button(a.text||"",0,0,p,u,void 0,void 0,void 0,void 0,a.useHTML).addClass(e.className||"").attr({title:(0,h.pick)(o.options.lang[a._titleKey||a.titleKey],"")});d.menuClassName=e.menuClassName||"highcharts-menu-"+r.btnCount++,a.symbol&&(n=i.symbol(a.symbol,Math.round((a.symbolX||0)-c/2),Math.round((a.symbolY||0)-c/2),c,c,{width:c,height:c}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(d),o.styledMode||n.attr({stroke:a.symbolStroke,fill:a.symbolFill,"stroke-width":a.symbolStrokeWidth||1})),d.add(r.group).align((0,h.extend)(a,{width:d.width,x:(0,h.pick)(a.x,r.buttonOffset)}),!0,"spacingBox"),r.buttonOffset+=((d.width||0)+(a.buttonSpacing||0))*("right"===a.align?-1:1),r.svgElements.push(d,n)}},e.prototype.afterPrint=function(){var t=this.chart;if(this.printReverseInfo){var n=this.printReverseInfo,r=n.childNodes,o=n.origDisplay,i=n.resetParams;this.moveContainers(t.renderTo),[].forEach.call(r,function(e,t){1===e.nodeType&&(e.style.display=o[t]||"")}),this.isPrinting=!1,i&&t.setSize.apply(t,i),delete this.printReverseInfo,e.printingChart=void 0,(0,h.fireEvent)(t,"afterPrint")}},e.prototype.beforePrint=function(){var e,t=this.chart,n=B.body,r=this.options.printMaxWidth,o={childNodes:n.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,null==(e=t.pointer)||e.reset(void 0,0),(0,h.fireEvent)(t,"beforePrint"),r&&t.chartWidth>r&&(o.resetParams=[t.options.chart.width,void 0,!1],t.setSize(r,void 0,!1)),[].forEach.call(o.childNodes,function(e,t){1===e.nodeType&&(o.origDisplay[t]=e.style.display,e.style.display="none")}),this.moveContainers(n),this.printReverseInfo=o},e.prototype.contextMenu=function(e,t,n,r,o,i,a){var s,l,c,u,p=this,d=p.chart,g=d.options.navigation,v=d.chartWidth,m=d.chartHeight,y="cache-"+e,b=Math.max(o,i),x=d[y];x||(p.contextMenuEl=d[y]=x=(0,h.createElement)("div",{className:e},L({position:"absolute",zIndex:1e3,padding:b+"px",pointerEvents:"auto"},d.renderer.style),(null==(s=d.scrollablePlotArea)?void 0:s.fixedDiv)||d.container),u=(0,h.createElement)("ul",{className:"highcharts-menu"},d.styledMode?{}:{listStyle:"none",margin:0,padding:0},x),d.styledMode||(0,h.css)(u,(0,h.extend)({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},(null==g?void 0:g.menuStyle)||{})),x.hideMenu=function(){(0,h.css)(x,{display:"none"}),a&&a.setState(0),d.exporting&&(d.exporting.openMenu=!1),(0,h.css)(d.renderTo,{overflow:"hidden"}),(0,h.css)(d.container,{overflow:"hidden"}),(0,h.internalClearTimeout)(x.hideTimer),(0,h.fireEvent)(d,"exportMenuHidden")},null==(l=p.events)||l.push((0,h.addEvent)(x,"mouseleave",function(){x.hideTimer=$.setTimeout(x.hideMenu,500)}),(0,h.addEvent)(x,"mouseenter",function(){(0,h.internalClearTimeout)(x.hideTimer)}),(0,h.addEvent)(B,"mouseup",function(t){var n;(null==(n=d.pointer)?void 0:n.inClass(t.target,e))||x.hideMenu()}),(0,h.addEvent)(x,"click",function(){var e;(null==(e=d.exporting)?void 0:e.openMenu)&&x.hideMenu()})),t.forEach(function(e){var t;if("string"==typeof e&&(null==(t=p.options.menuItemDefinitions)?void 0:t[e])&&(e=p.options.menuItemDefinitions[e]),(0,h.isObject)(e,!0)){var n=void 0;e.separator?(n=(0,h.createElement)("li",{className:"highcharts-menu-item highcharts-separator",role:"separator"},void 0,u),d.styledMode||(0,h.css)(n,{border:"none",backgroundColor:"var(--highcharts-neutral-color-40)",height:"0.5px",margin:"10px 0",padding:0,listStyle:"none","pointer-events":"none"})):("viewData"===e.textKey&&p.isDataTableVisible&&(e.textKey="hideData"),n=(0,h.createElement)("li",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),x.hideMenu(),"string"!=typeof e&&e.onclick&&e.onclick.apply(d,arguments)}},void 0,u),f().setElementHTML(n,e.text||d.options.lang[e.textKey]),d.styledMode||(n.onmouseover=function(){(0,h.css)(this,(null==g?void 0:g.menuItemHoverStyle)||{})},n.onmouseout=function(){(0,h.css)(this,(null==g?void 0:g.menuItemStyle)||{})},(0,h.css)(n,(0,h.extend)({cursor:"pointer"},(null==g?void 0:g.menuItemStyle)||{})))),p.divElements.push(n)}}),p.divElements.push(u,x),p.menuHeight=x.offsetHeight,p.menuWidth=x.offsetWidth);var w={display:"block"};n+(p.menuWidth||0)>v?w.right=v-n-o-b+"px":w.left=n-b+"px",r+i+(p.menuHeight||0)>m&&(null==(c=a.alignOptions)?void 0:c.verticalAlign)!=="top"?w.bottom=m-r-b+"px":w.top=r+i-b+"px",(0,h.css)(x,w),(0,h.css)(d.renderTo,{overflow:""}),(0,h.css)(d.container,{overflow:""}),d.exporting&&(d.exporting.openMenu=!0),(0,h.fireEvent)(d,"exportMenuShown")},e.prototype.destroy=function(e){var t,n=e?e.target:this.chart,r=this.divElements,o=this.events,i=this.svgElements;i.forEach(function(e,r){e&&(e.onclick=e.ontouchstart=null,n[t="cache-"+e.menuClassName]&&delete n[t],i[r]=e.destroy())}),i.length=0,this.group&&(this.group.destroy(),delete this.group),r.forEach(function(e,t){e&&((0,h.internalClearTimeout)(e.hideTimer),(0,h.removeEvent)(e,"mouseleave"),r[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,(0,h.discardElement)(e))}),r.length=0,o&&(o.forEach(function(e){e()}),o.length=0)},e.prototype.downloadSVG=function(t,n){return H(this,void 0,void 0,function(){var r,o,i,a,s,l,c,u,p,d,f,g,v,m,y,b;return I(this,function(w){switch(w.label){case 0:if(r={svg:t,exportingOptions:n,exporting:this},(0,h.fireEvent)(e.prototype,"downloadSVG",r),r.defaultPrevented)return[2];if(i=(o=e.prepareImageOptions(n)).type,a=o.filename,s=o.scale,l=o.libURL,"application/pdf"!==i)return[3,1];throw Error("Offline exporting logic for PDF type is not found.");case 1:if("image/svg+xml"!==i)return[3,2];return void 0!==$.MSBlobBuilder?((u=new $.MSBlobBuilder).append(t),c=u.getBlob("image/svg+xml")):c=e.svgToDataURL(t),S(c,a),[3,10];case 2:c=e.svgToDataURL(t),w.label=3;case 3:return w.trys.push([3,5,9,10]),e.objectURLRevoke=!0,[4,e.imageToDataURL(c,s,i)];case 4:return S(w.sent(),a),[3,10];case 5:var E;if("No canvas found!"===(p=w.sent()).message)throw p;if(t.length>1e8)throw Error("Input too long");if(f=(d=B.createElement("canvas")).getContext("2d"),g=t.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),v=t.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),!(f&&g&&v))return[3,8];if(m=g[1]*s,y=v[1]*s,b=function(){$.canvg.Canvg.fromString(f,t).start(),S($.navigator.msSaveOrOpenBlob?d.msToBlob():d.toDataURL(i),a)},d.width=m,d.height=y,$.canvg)return[3,7];if(!l)throw Error("Image export requires canvg. Set exporting.libURL or preload canvg.");return e.objectURLRevoke=!0,[4,(E=l+"canvg.js",new Promise(function(e,t){var n=x.getElementsByTagName("head")[0],r=x.createElement("script");r.type="text/javascript",r.src=E,r.onload=function(){e()},r.onerror=function(){var e="Error loading script ".concat(E);(0,h.error)(e),t(Error(e))},n.appendChild(r)}))];case 6:w.sent(),w.label=7;case 7:b(),w.label=8;case 8:return[3,10];case 9:if(e.objectURLRevoke)try{K.revokeObjectURL(c)}catch(e){}return[7];case 10:return[2]}})})},e.prototype.exportChart=function(e,t){return H(this,void 0,void 0,function(){var n;return I(this,function(r){switch(r.label){case 0:if(!(e=(0,h.merge)(this.options,e)).local)return[3,2];return[4,this.localExport(e,t||{})];case 1:return r.sent(),[3,5];case 2:return[4,this.getSVGForExport(e,t)];case 3:if(n=r.sent(),!e.url)return[3,5];return[4,D.post(e.url,{filename:e.filename?e.filename.replace(/\//g,"-"):this.getFilename(),type:e.type,width:e.width,scale:e.scale,svg:n},e.fetchOptions)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},e.prototype.fallbackToServer=function(e,t){return H(this,void 0,void 0,function(){return I(this,function(n){switch(n.label){case 0:if(!1!==e.fallbackToExportServer)return[3,1];return e.error?e.error(e,t):(0,h.error)((null==t?void 0:t.message)||28,!0,this.chart),[3,4];case 1:if("application/pdf"!==e.type)return[3,3];return e.local=!1,[4,this.exportChart(e)];case 2:return n.sent(),[3,4];case 3:(0,h.error)(t.message,!1),n.label=4;case 4:return[2]}})})},e.prototype.getChartHTML=function(t){var n=this.chart;return t&&this.inlineStyles(),this.resolveCSSVariables(),e.sanitizeDOM(n.renderer.box),n.container.querySelectorAll("canvas").forEach(function(e){var t=e.toDataURL("image/png"),r=e.parentNode,o=n.renderer.image(t,0,0,e.width,e.height);(0,h.css)(o.element,{width:e.style.width,height:e.style.height}),r.parentNode.insertBefore(o.element,r),r.remove()}),n.container.innerHTML},e.prototype.getFilename=function(){var e,t=null==(e=this.chart.userOptions.title)?void 0:e.text,n=this.options.filename;return n?n.replace(/\//g,"-"):("string"==typeof t&&(n=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!n||n.length<5)&&(n="chart"),n)},e.prototype.getSVG=function(t,n){var r,o,i,a,s=this,l=this.chart,c=(0,h.merge)(l.options,t);c.plotOptions=(0,h.merge)(l.userOptions.plotOptions,null==t?void 0:t.plotOptions),c.time=(0,h.merge)(l.userOptions.time,null==t?void 0:t.time);var u=(0,h.createElement)("div",void 0,{position:"absolute",top:"-9999em",width:l.chartWidth+"px",height:l.chartHeight+"px"},B.body),p=l.renderTo.style.width,d=l.renderTo.style.height,f=(null==(r=c.exporting)?void 0:r.sourceWidth)||c.chart.width||/px$/.test(p)&&parseInt(p,10)||(c.isGantt?800:600),g=(null==(o=c.exporting)?void 0:o.sourceHeight)||c.chart.height||/px$/.test(d)&&parseInt(d,10)||400;(0,h.extend)(c.chart,{animation:!1,renderTo:u,forExport:!0,renderer:"SVGRenderer",width:f,height:g}),c.exporting&&(c.exporting.enabled=!1),delete c.data,c.series=[],l.series.forEach(function(e){var t;(a=(0,h.merge)(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||null==(t=null==c?void 0:c.series)||t.push(a)});var v={};l.axes.forEach(function(e){e.userOptions.internalKey||(e.userOptions.internalKey=(0,h.uniqueKey)()),c&&!e.options.isInternal&&(v[e.coll]||(v[e.coll]=!0,c[e.coll]=[]),c[e.coll].push((0,h.merge)(e.userOptions,{visible:e.visible,type:e.type,uniqueNames:e.uniqueNames})))}),c.colorAxis=l.userOptions.colorAxis;var m=function(n){t&&["xAxis","yAxis","series"].forEach(function(e){var r;t[e]&&n.update(((r={})[e]=t[e],r))}),l.axes.forEach(function(e){var r=(0,h.find)(n.axes,function(t){return t.options.internalKey===e.userOptions.internalKey});if(r){var o=e.getExtremes(),i=(0,h.splat)((null==t?void 0:t[e.coll])||{})[0],a="min"in i?i.min:o.userMin,s="max"in i?i.max:o.userMax;(void 0!==a&&a!==r.min||void 0!==s&&s!==r.max)&&r.setExtremes(null!=a?a:void 0,null!=s?s:void 0,!0,!1)}});var r,o=n.exporting;return(null==o?void 0:o.options.applyStyleSheets)&&s.applyShadowDOMStyles(n),i=(null==o?void 0:o.getChartHTML(l.styledMode||(null==(r=null==c?void 0:c.exporting)?void 0:r.applyStyleSheets)))||"",(0,h.fireEvent)(l,"getSVG",{chartCopy:n}),i=e.sanitizeSVG(i,c),c=void 0,n.destroy(),(0,h.discardElement)(u),i};return n?new Promise(function(e){return new l.constructor(c||{},function(t){null==(n=l.callback)||n.call(this,t);var n,r=(0,h.addEvent)(this,"render",function(){r(),e(m(this))})})}):m(new l.constructor(c,l.callback))},e.prototype.applyShadowDOMStyles=function(e){for(var t,n=this.chart,r=[],o=n.container;o&&(!(t=o.getRootNode())||"object"!=typeof t.host);)o=o.parentNode,t=null;null==t||t.querySelectorAll("style").forEach(function(t){var n=t.cloneNode(!0);e.container.appendChild(n),r.push(n)}),(0,h.addEvent)(n,"getSVG",function(){r.forEach(function(e){e.remove()})})},e.prototype.getSVGForExport=function(e,t){return H(this,void 0,void 0,function(){var n;return I(this,function(r){switch(r.label){case 0:return n=this.options,[4,this.getSVG((0,h.merge)({chart:{borderRadius:0}},n.chartOptions,t,{exporting:{sourceWidth:(null==e?void 0:e.sourceWidth)||n.sourceWidth,sourceHeight:(null==e?void 0:e.sourceHeight)||n.sourceHeight}}),!0)];case 1:return[2,r.sent()]}})})},e.prototype.inlineStyles=function(){var t,n,r=e.inlineDenylist,o=e.inlineAllowlist,i={},a=(0,h.createElement)("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},B.body),s=null==(t=a.contentWindow)?void 0:t.document;s&&s.body.appendChild(s.createElementNS(W,"svg")),!function t(a){var l,c,u,p,d,f,g={};if(s&&1===a.nodeType&&-1===e.unstyledElements.indexOf(a.nodeName)){if(l=$.getComputedStyle(a,null),c="svg"===a.nodeName?{}:$.getComputedStyle(a.parentNode,null),!i[a.nodeName]){n=s.getElementsByTagName("svg")[0],u=s.createElementNS(a.namespaceURI,a.nodeName),n.appendChild(u);var v=$.getComputedStyle(u,null),m={};for(var y in v)y.length<1e3&&"string"==typeof v[y]&&!/^\d+$/.test(y)&&(m[y]=v[y]);i[a.nodeName]=m,"text"===a.nodeName&&delete i.text.fill,n.removeChild(u)}for(var b in l)(V||q||z||Object.hasOwnProperty.call(l,b))&&function(t,n){if(p=d=!1,o.length){for(f=o.length;f--&&!d;)d=o[f].test(n);p=!d}for("transform"===n&&"none"===t&&(p=!0),f=r.length;f--&&!p;){if(n.length>1e3)throw Error("Input too long");p=r[f].test(n)||"function"==typeof t}!p&&(c[n]!==t||"svg"===a.nodeName)&&i[a.nodeName][n]!==t&&(e.inlineToAttributes&&-1===e.inlineToAttributes.indexOf(n)?g[n]=t:t&&a.setAttribute(e.hyphenate(n),t))}(l[b],b);if((0,h.css)(a,g),"svg"===a.nodeName&&a.setAttribute("stroke-width","1px"),"text"===a.nodeName)return;[].forEach.call(a.children||a.childNodes,t)}}(this.chart.container.querySelector("svg")),n.parentNode.removeChild(n),a.parentNode.removeChild(a)},e.prototype.localExport=function(t,n){return H(this,void 0,void 0,function(){var r,o,i,a,s,l,c,u,p,d,f,g,v,m,y,b,x,w,S;return I(this,function(E){switch(E.label){case 0:if(r=this.chart,o=this,i=function(t){return e.sanitizeSVG(t||"",s)},l=null,q&&r.styledMode&&!e.inlineAllowlist.length&&e.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),!(q&&("application/pdf"===t.type||r.container.getElementsByTagName("image").length&&"image/svg+xml"!==t.type)||"application/pdf"===t.type&&[].some.call(r.container.getElementsByTagName("image"),function(e){var t=e.getAttribute("href");return""!==t&&"string"==typeof t&&0!==t.indexOf("data:")})))return[3,2];return[4,this.fallbackToServer(t,Error("Image type not supported for this chart/browser."))];case 1:return E.sent(),[2];case 2:u=(0,h.addEvent)(r,"getSVG",function(e){s=e.chartCopy.options,c=(a=e.chartCopy.container.cloneNode(!0))&&a.getElementsByTagName("image")||[]}),E.label=3;case 3:return E.trys.push([3,15,17,18]),[4,this.getSVGForExport(t,n)];case 4:E.sent(),p=c?Array.from(c):[],d=0,f=p,E.label=5;case 5:if(!(d<f.length))return[3,9];if(!(l=(g=f[d]).getAttributeNS("http://www.w3.org/1999/xlink","href")))return[3,7];return e.objectURLRevoke=!1,[4,e.imageToDataURL(l,(null==t?void 0:t.scale)||1,(null==t?void 0:t.type)||"image/png")];case 6:return v=E.sent(),g.setAttributeNS("http://www.w3.org/1999/xlink","href",v),[3,8];case 7:g.parentNode.removeChild(g),E.label=8;case 8:return d++,[3,5];case 9:if(!((m=null==a?void 0:a.querySelector("svg"))&&!(null==(S=null==(w=null==(x=t.chartOptions)?void 0:x.chart)?void 0:w.style)?void 0:S.fontFamily)))return[3,11];return[4,e.inlineFonts(m)];case 10:E.sent(),E.label=11;case 11:if(!((y=i(null==a?void 0:a.innerHTML)).indexOf("<foreignObject")>-1&&"image/svg+xml"!==t.type&&(q||"application/pdf"===t.type)))return[3,12];throw Error("Image type not supported for charts with embedded HTML");case 12:return[4,o.downloadSVG(y,(0,h.extend)({filename:o.getFilename()},t))];case 13:E.sent(),E.label=14;case 14:return[2,y];case 15:return b=E.sent(),[4,this.fallbackToServer(t,b)];case 16:return E.sent(),[3,18];case 17:return u(),[7];case 18:return[2]}})})},e.prototype.moveContainers=function(e){var t=this.chart,n=t.scrollablePlotArea;(n?[n.fixedDiv,n.scrollingContainer]:[t.container]).forEach(function(t){e.appendChild(t)})},e.prototype.print=function(){var t=this.chart;this.isPrinting||(e.printingChart=t,z||this.beforePrint(),setTimeout(function(){$.focus(),$.print(),z||setTimeout(function(){var e;null==(e=t.exporting)||e.afterPrint()},1e3)},1))},e.prototype.render=function(){var e=this,t=e.chart,n=e.options,r=(null==e?void 0:e.isDirty)||!(null==e?void 0:e.svgElements.length);e.buttonOffset=0,e.isDirty&&e.destroy(),r&&!1!==n.enabled&&(e.events=[],e.group||(e.group=t.renderer.g("exporting-group").attr({zIndex:3}).add()),(0,h.objectEach)(null==n?void 0:n.buttons,function(t){e.addButton(t)}),e.isDirty=!1)},e.prototype.resolveCSSVariables=function(){Array.from(this.chart.container.querySelectorAll("*")).forEach(function(e){["color","fill","stop-color","stroke"].forEach(function(t){var n,r=e.getAttribute(t);(null==r?void 0:r.includes("var("))&&e.setAttribute(t,getComputedStyle(e).getPropertyValue(t));var o=null==(n=e.style)?void 0:n[t];(null==o?void 0:o.includes("var("))&&(e.style[t]=getComputedStyle(e).getPropertyValue(t))})})},e.prototype.update=function(e,t){this.isDirty=!0,(0,h.merge)(!0,this.options,e),(0,h.pick)(t,!0)&&this.chart.redraw()},e.inlineAllowlist=[],e.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],e.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],e.loadEventDeferDelay=150*!!q,e.unstyledElements=["clipPath","defs","desc"],e}();!function(e){function t(e){var t=e.exporting;t&&(t.render(),(0,h.addEvent)(e,"redraw",function(){var e;null==(e=this.exporting)||e.render()}),(0,h.addEvent)(e,"destroy",function(){var e;null==(e=this.exporting)||e.destroy()}))}function n(){var t=this;t.options.exporting&&(t.exporting=new e(t,t.options.exporting),m.compose(t).navigation.addUpdate(function(e,n){t.exporting&&(t.exporting.isDirty=!0,(0,h.merge)(!0,t.options.navigation,e),(0,h.pick)(n,!0)&&t.redraw())}))}function r(e){var t,n,r,o,i=e.alignTo,a=e.key,s=e.textPxLength,l=this.options.exporting,c=(0,h.merge)(null==(t=this.options.navigation)?void 0:t.buttonOptions,null==(n=null==l?void 0:l.buttons)?void 0:n.contextButton),u=c.align,p=c.buttonSpacing,d=c.verticalAlign,f=c.width,g=i.width-s,v=(void 0===f?0:f)+(void 0===p?0:p);(null==(r=null==l?void 0:l.enabled)||r)&&"title"===a&&"right"===u&&"top"===d&&g<2*v&&(g<v?i.width-=v:(null==(o=this.title)?void 0:o.alignValue)!=="left"&&(i.x-=v-g/2))}e.compose=function(o,i){k.compose(i),N.compose(o),(0,h.pushUnique)(G,"Exporting")&&((0,h.extend)(v().prototype,{exportChart:function(e,t){return H(this,void 0,void 0,function(){var n;return I(this,function(r){switch(r.label){case 0:return[4,null==(n=this.exporting)?void 0:n.exportChart(e,t)];case 1:return r.sent(),[2]}})})},getChartHTML:function(e){var t;return null==(t=this.exporting)?void 0:t.getChartHTML(e)},getFilename:function(){var e;return null==(e=this.exporting)?void 0:e.getFilename()},getSVG:function(e){var t;return null==(t=this.exporting)?void 0:t.getSVG(e,!1)},print:function(){var e;return null==(e=this.exporting)?void 0:e.print()}}),o.prototype.callbacks.push(t),(0,h.addEvent)(o,"afterInit",n),(0,h.addEvent)(o,"layOutTitle",r),z&&$.matchMedia("print").addListener(function(t){var n,r;e.printingChart&&(t.matches?null==(n=e.printingChart.exporting)||n.beforePrint():null==(r=e.printingChart.exporting)||r.afterPrint())}),U(T))}}(_||(_={}));var J=p();J.Exporting=_,J.HttpUtilities=J.HttpUtilities||D,J.ajax=J.HttpUtilities.ajax,J.getJSON=J.HttpUtilities.getJSON,J.post=J.HttpUtilities.post,_.compose(J.Chart,J.Renderer);var X=p();return u.default}()});