playbook_ui 12.25.0.pre.alpha.PLAY733DetailKit761 → 12.25.0.pre.alpha.play822bolddefaultfortitle3764

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -1
  3. data/app/pb_kits/playbook/index.js +0 -1
  4. data/app/pb_kits/playbook/pb_title/_title.scss +1 -1
  5. data/app/pb_kits/playbook/pb_title/_title.tsx +2 -3
  6. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.html.erb +1 -0
  7. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.jsx +6 -0
  8. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.md +1 -2
  9. data/app/pb_kits/playbook/pb_title/title.rb +3 -10
  10. data/app/pb_kits/playbook/pb_title/title.test.js +3 -3
  11. data/app/pb_kits/playbook/playbook-doc.js +0 -2
  12. data/dist/menu.yml +0 -1
  13. data/dist/playbook-rails.js +1 -1
  14. data/lib/playbook/version.rb +1 -1
  15. metadata +1 -17
  16. data/app/pb_kits/playbook/pb_detail/_detail.scss +0 -44
  17. data/app/pb_kits/playbook/pb_detail/_detail.tsx +0 -51
  18. data/app/pb_kits/playbook/pb_detail/_detail_mixins.scss +0 -29
  19. data/app/pb_kits/playbook/pb_detail/detail.html.erb +0 -7
  20. data/app/pb_kits/playbook/pb_detail/detail.rb +0 -23
  21. data/app/pb_kits/playbook/pb_detail/detail.test.jsx +0 -33
  22. data/app/pb_kits/playbook/pb_detail/docs/_description.md +0 -1
  23. data/app/pb_kits/playbook/pb_detail/docs/_detail_bolded.html.erb +0 -33
  24. data/app/pb_kits/playbook/pb_detail/docs/_detail_bolded.jsx +0 -47
  25. data/app/pb_kits/playbook/pb_detail/docs/_detail_default.html.erb +0 -28
  26. data/app/pb_kits/playbook/pb_detail/docs/_detail_default.jsx +0 -43
  27. data/app/pb_kits/playbook/pb_detail/docs/_detail_default.md +0 -6
  28. data/app/pb_kits/playbook/pb_detail/docs/_detail_styled.html.erb +0 -22
  29. data/app/pb_kits/playbook/pb_detail/docs/_detail_styled.jsx +0 -32
  30. data/app/pb_kits/playbook/pb_detail/docs/example.yml +0 -11
  31. data/app/pb_kits/playbook/pb_detail/docs/index.js +0 -3
@@ -3,7 +3,7 @@
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var i=arguments[e];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&t.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){t.push(i.toString());continue}for(var s in i)n.call(i,s)&&i[s]&&t.push(s)}}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(i=function(){return r}.apply(e,[]))||(t.exports=i)}()},function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return u}));var i=n(26),r=n(53);function o(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 i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s=function(t,e){return Object.keys(t).map((function(n){var i="string"==typeof t[n]?Object(r.a)(t[n]):t[n];return"".concat(e,"_").concat(n,"_").concat(i)})).join(" ")},l={spacingProps:function(t){var e=t.marginRight,n=t.marginLeft,i=t.marginTop,r=t.marginBottom,a=t.marginX,s=t.marginY,l=t.margin,c=t.paddingRight,d=t.paddingLeft,u=t.paddingTop,h=t.paddingBottom,p=t.paddingX,f=t.paddingY,g=t.padding,m="",v={marginRight:e,marginLeft:n,marginTop:i,marginBottom:r,marginX:a,marginY:s,margin:l,paddingRight:c,paddingLeft:d,paddingTop:u,paddingBottom:h,paddingX:p,paddingY:f,padding:g};function y(t){return{marginRight:"mr",marginLeft:"ml",marginTop:"mt",marginBottom:"mb",marginX:"mx",marginY:"my",margin:"m",paddingRight:"pr",paddingLeft:"pl",paddingTop:"pt",paddingBottom:"pb",paddingX:"px",paddingY:"py",padding:"p"}[t]}return Object.entries(v).forEach((function(t){var e=o(t,2),n=e[0],i=e[1];if(i)if("object"==typeof i)m+=function(t,e){var n="";return Object.entries(t).forEach((function(t){var i=o(t,2),r=i[0],a=i[1];n+="".concat(e,"_").concat(r,"_").concat(a," ")})),n}(i,y(n));else{var r=y(n);m+="".concat(r,"_").concat(i," ")}})),m.trim()},darkProps:function(t){return t.dark?"dark":""},numberSpacingProps:function(t){var e=t.numberSpacing,n="";return n+=e?"ns_".concat(e," "):""},maxWidthProps:function(t){var e=t.maxWidth,n="";return n+=e?"max_width_".concat(e," "):""},zIndexProps:function(t){var e="";return Object.entries(t).forEach((function(t){"zIndex"==t[0]&&("number"==typeof t[1]?e+="z_index_".concat(t[1]," "):"object"==typeof t[1]&&Object.entries(t[1]).forEach((function(t){e+="z_index_".concat(t[0],"_").concat(t[1]," ")})))})),e},shadowProps:function(t){var e=t.shadow,n="";return n+=e?"shadow_".concat(e," "):""},lineHeightProps:function(t){var e=t.lineHeight,n="";return n+=e?"line_height_".concat(e," "):""},displayProps:function(t){var e="";return Object.entries(t).forEach((function(t){"display"==t[0]&&("string"==typeof t[1]?e+="display_".concat(t[1]," "):"object"==typeof t[1]&&Object.entries(t[1]).forEach((function(t){e+="display_".concat(t[0],"_").concat(t[1]," ")})))})),e},cursorProps:function(t){var e=t.cursor,n="";return n+=e?"cursor_".concat(Object(r.a)(e)):""},alignContentProps:function(t){var e=t.alignContent;return"object"==typeof e?s(e,"align_content"):e?"align_content_".concat(Object(r.a)(e)):""},alignItemsProps:function(t){var e=t.alignItems;return"object"==typeof e?s(e,"align_items"):e?"align_items_".concat(Object(r.a)(e)):""},alignSelfProps:function(t){var e=t.alignSelf;return"object"==typeof e?s(e,"align_self"):e?"align_self_".concat(e):""},flexDirectionProps:function(t){var e=t.flexDirection;return"object"==typeof e?s(e,"flex_direction"):e?"flex_direction_".concat(Object(r.a)(e)):""},flexWrapProps:function(t){var e=t.flexWrap;return"object"==typeof e?s(e,"flex_wrap"):e?"flex_wrap_".concat(Object(r.a)(e)):""},flexProps:function(t){var e=t.flex;return"object"==typeof e?s(e,"flex"):e?"flex_".concat(e):""},flexGrowProps:function(t){var e=t.flexGrow;return"object"==typeof e?s(e,"flex_grow"):e?"flex_grow_".concat(e):""},flexShrinkProps:function(t){var e=t.flexShrink;return"object"==typeof e?s(e,"flex_shrink"):e?"flex_shrink_".concat(e):""},justifyContentProps:function(t){var e=t.justifyContent;return"object"==typeof e?s(e,"justify_content"):e?"justify_content_".concat(Object(r.a)(e)):""},justifySelfProps:function(t){var e=t.justifySelf;return"object"==typeof e?s(e,"justify_self"):e?"justify_self_".concat(e):""},orderProps:function(t){var e=t.order;return"object"==typeof e?s(e,"flex_order"):e?"flex_order_".concat(e):""},positionProps:function(t){var e=t.position,n="";return n+=e&&"static"!==e?"position_".concat(e):""}},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},t),e);return Object.keys(l).map((function(t){return l[t](n)})).filter((function(t){return(null==t?void 0:t.length)>0})).join(" ")},d=function(t){},u=function(t){return Object(i.omit)(t,["marginRight","marginLeft","marginTop","marginBottom","marginX","marginY","margin","paddingRight","paddingLeft","paddingTop","paddingBottom","paddingX","paddingY","padding","dark"])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(144);function r(t,e,n){return(e=Object(i.a)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={windows:"#003DB2",siding:"#6000AC",doors:"#B85C00",solar:"#007E8F",roofing:"#760B24",gutters:"#008540",insulation:"#96006C",product_1_background:"#003DB2",product_1_highlight:"#0057FF",product_2_background:"#6000AC",product_2_highlight:"#8200E9",product_3_background:"#B85C00",product_3_highlight:"#CE7500",product_4_background:"#007E8F",product_4_highlight:"#00B9D2",product_5_background:"#760B24",product_5_highlight:"#B8032E",product_6_background:"#008540",product_6_highlight:"#00A851",product_7_background:"#96006C",product_7_highlight:"#CD0094",product_8_background:"#144075",product_8_highlight:"#1A569E",product_9_background:"#fcc419",product_9_highlight:"#ffd43b",product_10_background:"#20c997",product_10_highlight:"#38d9a9",success:"#1CA05C",success_secondary:"#24cb75",success_sm:"#157F48",success_subtle:"rgba(28,160,92,0.1)",warning:"#F9BB00",warning_secondary:"#ffcb2d",warning_subtle:"rgba(249,187,0,0.1)",error:"#DA0014",error_secondary:"#ff0e24",error_subtle:"rgba(218,0,20,0.1)",info:"#00C4D7",info_secondary:"#0be9ff",info_subtle:"rgba(0,196,215,0.1)",neutral:"#C1CDD6",neutral_secondary:"#e0e6ea",neutral_subtle:"rgba(193,205,214,0.1)",primary:"#0056CF",primary_secondary:"#036cff",data_1:"#0056CF",data_2:"#F9BB00",data_3:"#9E64E9",data_4:"#1CA05C",data_5:"#FD804C",data_6:"#144075",data_7:"#00C4D7",data_8:"#DA0014",shadow:"rgba(60,106,172,0.2)",shadow_dark:"#0a0527",royal:"#0056CF",purple:"#9E64E9",teal:"#00C4D7",red:"#DA0014","#ff0":"#F9BB00",green:"#1CA05C",orange:"#FD804C",default:"#93a8b8","#fff":"#fff",silver:"#F3F7FB",slate:"#C1CDD6",charcoal:"#242B42","#000":"#000",secondary:"#F9BB00",tertiary:"#9E64E9",bg_light:"#F3F7FB",bg_dark:"#0a0527",bg_dark_card:"#231E3D",card_light:"#fff",card_dark:"#231e3d",active_light:"#f7fbff",active_dark:"#0082ff",primary_action:"#0056CF",hover_light:"#e0eaf5",hover_dark:"rgba(255,255,255,0.2)",border_light:"#E4E8F0",border_dark:"#3b3752",text_lt_default:"#242B42",text_lt_light:"#687887",text_lt_lighter:"#C1CDD6",text_dk_default:"#fff",text_dk_light:"rgba(255,255,255,0.6)",text_dk_lighter:"rgba(255,255,255,0.4)",category_1:"#0056CF",category_2:"#0CD2E5",category_3:"#F9BB00",category_4:"#14D595",category_5:"#A057FF",category_6:"#FF7034",category_7:"#97DA22",category_8:"#EA599F",category_9:"#0091FF",category_10:"#5027E4",category_11:"#DA0014",category_12:"#109922",category_13:"#058F9D",category_14:"#A33E6F",category_15:"#B2171C",category_16:"#0A5C49",category_17:"#325B91",category_18:"#BE4714",category_19:"navy",category_20:"#5C0E0A",category_21:"#040830",gradient_start:"#1C75F2",gradient_end:"#0056CF"}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={horizontal:"fa-flip-horizontal",vertical:"fa-flip-vertical",both:"fa-flip-horizontal fa-flip-vertical",none:""};e.a=function(t){var e,n=t.aria,i=void 0===n?{}:n,o=t.border,u=void 0!==o&&o,h=t.className,p=t.customIcon,f=t.data,g=void 0===f?{}:f,m=t.fixedWidth,v=void 0===m||m,y=t.flip,b=void 0===y?"none":y,x=t.icon,_=t.id,O=t.inverse,w=void 0!==O&&O,C=t.listItem,$=void 0!==C&&C,k=t.pull,S=t.pulse,E=void 0!==S&&S,j=t.rotation,A=t.size,P=t.fontStyle,M=void 0===P?"far":P,T=t.spin,L=(c(e={"fa-border":u,"fa-fw":v,"fa-inverse":w,"fa-li":$,"fa-pulse":E,"fa-spin":void 0!==T&&T},"fa-".concat(A),A),c(e,"fa-pull-".concat(k),k),c(e,"fa-rotate-".concat(j),j),e);p||(L["fa-".concat(x)]=x);var D=a()(d[b],"pb_icon_kit",p?"":M,L,Object(l.c)(t),h);!i.label&&(i.label="".concat(x," icon"));var I=Object(s.a)(i),N=Object(s.c)(g);return r.a.createElement(r.a.Fragment,null,function(t){return t?r.a.createElement(r.a.Fragment,null,r.a.cloneElement(t,Object.assign(Object.assign({},N),{className:D,id:_}))):r.a.createElement(r.a.Fragment,null,r.a.createElement("i",Object.assign({},N,{className:D,id:_})),r.a.createElement("span",Object.assign({},I,{hidden:!0})))}(p))}},function(t,e,n){t.exports={font_family_base:'"Proxima Nova","Helvetica Neue",Helvetica,Arial,sans_serif',text_jumbo:"36px",text_largest:"32px",text_larger:"28px",text_large:"20px",text_base:"16px",text_default:"16px",text_normal:"16px",text_medium:"16px",text_small:"14px",text_smaller:"12px",text_smallest:"11px",heading_1:"46px",heading_2:"34px",heading_3:"28px",heading_4:"16px",lighter:"100",light:"300",bold:"600",regular:"400"}},,function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.align,n=void 0===e?"none":e,i=t.children,o=t.className,c=t.data,d=void 0===c?{}:c,u=t.inline,h=void 0!==u&&u,p=t.horizontal,f=void 0===p?"left":p,g=t.justify,m=void 0===g?"none":g,v=t.orientation,y=void 0===v?"row":v,b=t.spacing,x=void 0===b?"none":b,_=t.gap,O=void 0===_?"none":_,w=t.rowGap,C=void 0===w?"none":w,$=t.columnGap,k=void 0===$?"none":$,S=t.reverse,E=void 0!==S&&S,j=t.vertical,A=void 0===j?"top":j,P=t.wrap,M=void 0!==P&&P,T=t.alignSelf,L=void 0===T?"none":T,D=void 0!==y?"orientation_".concat(y):"",I="justify_content_".concat("none"!==m?m:f),N="align_items_".concat("none"!==n?n:A),R=!0===h?"inline":"",F=void 0!==x?"spacing_".concat(x):"",B="none"!==O?"gap_".concat(O):"",z="none"!==C?"rowGap_".concat(C):"",W="none"!==k?"columnGap_".concat(k):"",H=!0===M?"wrap":"",U=!0===E?"reverse":"",Y="none"!==L?"align_self_".concat(L):"",G=Object(s.c)(d);return r.a.createElement("div",Object.assign({className:a()(Object(s.b)("pb_flex_kit",D,I,N,R,U,H,F,B,z,W,Y),Object(l.c)(t),o)},G),i)}},function(t,e,n){"use strict";n.d(e,"m",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"k",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"l",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"d",(function(){return u})),n.d(e,"o",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return f})),n.d(e,"n",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return v}));var i="top",r="bottom",o="right",a="left",s="auto",l=[i,r,o,a],c="start",d="end",u="clippingParents",h="viewport",p="popper",f="reference",g=l.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+d])}),[]),m=[].concat(l,[s]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+d])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},function(t,e,n){t.exports=n(219)()},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),c=n(124);e.a=function(t){t.variant&&Object(l.a)("Body",["status"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,d=t.color,u=void 0===d?"":d,h=t.data,p=void 0===h?{}:h,f=t.highlightedText,g=void 0===f?[]:f,m=t.highlighting,v=void 0!==m&&m,y=t.id,b=void 0===y?"":y,x=t.status,_=void 0===x?null:x,O=t.tag,w=void 0===O?"div":O,C=t.text,$=void 0===C?"":C,k=t.variant,S=void 0===k?null:k,E=Object(s.a)(n),j=Object(s.c)(p),A=a()(Object(s.b)("pb_body_kit",u,S,_),Object(l.c)(t),o),P="".concat(w);return r.a.createElement(P,Object.assign({},E,j,{className:A,id:b}),v&&r.a.createElement(c.a,{highlightedText:g,text:$},i),!v&&($||i))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)("Title",["variant"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,c=t.color,d=t.data,u=void 0===d?{}:d,h=t.id,p=t.size,f=void 0===p?3:p,g=t.bold,m=void 0===g?3!==f:g,v=t.tag,y=void 0===v?"h3":v,b=t.text,x=t.variant,_=void 0===x?null:x,O=Object(s.a)(n),w=Object(s.c)(u),C=m?"":"thin",$=a()(Object(s.b)("pb_title_kit","size_".concat(f),_,c)+" ".concat(C),Object(l.c)(t),o),k="".concat(y);return r.a.createElement(k,Object.assign({},O,w,{className:$,id:h}),b||i)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.children,n=t.className,i=t.fixedSize,o=t.grow,c=t.overflow,d=void 0===c?null:c,u=t.shrink,h=t.flex,p=void 0===h?"none":h,f=t.order,g=void 0===f?"none":f,m=t.alignSelf,v=t.displayFlex,y=!0===o?"grow":"",b=!0===v?"display_flex_".concat(v):"",x="none"!==p?"flex_".concat(p):"",_=d?"overflow_".concat(d):"",O=!0===u?"shrink":"",w=m?"align_self_".concat(m):"",C=void 0!==i?{flexBasis:"".concat(i)}:null,$="none"!==g?"order_".concat(g):null;return r.a.createElement("div",{className:a()(Object(s.b)("pb_flex_item_kit",y,O,x,b),_,$,w,Object(l.c)(t),n),style:C},e)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)("Title",["variant"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,c=t.color,d=t.data,u=void 0===d?{}:d,h=t.id,p=t.size,f=void 0===p?"md":p,g=t.tag,m=void 0===g?"div":g,v=t.text,y=t.variant,b=void 0===y?null:y,x=["h1","h2","h3","h4","h5","h6","p","span","div","caption"].includes(m)?m:"div",_=Object(s.a)(n),O=Object(s.c)(u),w=a()(Object(s.b)("pb_caption_kit",f,b,c),Object(l.c)(t),o);return r.a.createElement(x,Object.assign({},_,O,{className:w,id:h}),v||i)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(26),a=n(3),s=n.n(a),l=n(2),c=n(5);function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t){var e,n,i=t.aria,a=void 0===i?{}:i,u=t.background,h=void 0===u?"none":u,p=t.borderNone,f=void 0!==p&&p,g=t.borderRadius,m=void 0===g?"md":g,v=t.children,y=t.className,b=t.data,x=void 0===b?{}:b,_=t.highlight,O=void 0===_?{}:_,w=t.selected,C=void 0!==w&&w,$=t.tag,k=void 0===$?"div":$,S=t.padding,E=void 0===S?"md":S,j=1==f?"border_none":"",A=1==C?"selected":"deselected",P="none"==h?"":"background_".concat(h),M=Object(l.b)("pb_card_kit",A,j,"border_radius_".concat(m),P,(d(e={},"highlight_".concat(O.position),O.position),d(e,"highlight_".concat(O.color),O.color),e)),T=Object(l.a)(a),L=Object(l.c)(x),D=r.a.Children.toArray(v),I=D.filter((function(t){return"Header"!==Object(o.get)(t,"type.displayName")})),N=["div","section","footer","header","article","aside","main","nav"].includes(k)?k:"div";return r.a.createElement(N,Object.assign({},T,L,{className:s()(M,Object(c.c)(t,{padding:E}),y)}),(n="Header",D.filter((function(t){return Object(o.get)(t,"type.displayName")===n})).map((function(t,e){if(r.a.isValidElement(t))return r.a.cloneElement(t,{key:"".concat(n.toLowerCase(),"-").concat(e)})}))),I)};u.Header=function(t){var e=t.children,n=t.className,i=t.headerColor,o=void 0===i?"category_1":i,a=t.headerColorStriped,d=void 0!==a&&a,u=t.padding,h=void 0===u?"sm":u,p=Object(l.b)("pb_card_header_kit","".concat(o),d?"striped":""),f=Object(c.c)(t,{padding:h});return r.a.createElement("div",{className:s()(p,f,n)},e)},u.Body=function(t){var e=t.children,n=t.padding,i=void 0===n?"md":n,o=t.className,a=Object(l.b)("pb_card_body_kit"),d=Object(c.c)(t,{padding:i});return r.a.createElement("div",{className:s()(a,d,o)},e)},e.a=u},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return O}));var i=n(142);var r=n(0),o=n(114);n(375);function a(t,e,n){var i="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "})),i}var s=function(t,e,n){var i=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var r=e;do{t.insert("."+i,r,t.sheet,!0);r=r.next}while(void 0!==r)}},l=n(83),c=Object.prototype.hasOwnProperty,d=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)():null),u=Object(r.createContext)({}),h=d.Provider,p=function(t){var e=function(e,n){return Object(r.createElement)(d.Consumer,null,(function(i){return t(e,i,n)}))};return Object(r.forwardRef)(e)},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(t,e){var n={};for(var i in e)c.call(e,i)&&(n[i]=e[i]);return n[f]=t,n},m=function(){return null},v=function(t,e,n,i){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var d=e[f],u=[o],h="";"string"==typeof e.className?h=a(t.registered,u,e.className):null!=e.className&&(h=e.className+" ");var p=Object(l.a)(u);s(t,p,"string"==typeof d);h+=t.key+"-"+p.name;var g={};for(var v in e)c.call(e,v)&&"css"!==v&&v!==f&&(g[v]=e[v]);g.ref=i,g.className=h;var y=Object(r.createElement)(d,g),b=Object(r.createElement)(m,null);return Object(r.createElement)(r.Fragment,null,b,y)},y=p((function(t,e,n){return"function"==typeof t.css?Object(r.createElement)(u.Consumer,null,(function(i){return v(e,t,i,n)})):v(e,t,null,n)}));var b=n(143),x=n(61),_=function(t,e){var n=arguments;if(null==e||!c.call(e,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=y,o[1]=g(t,e);for(var a=2;a<i;a++)o[a]=n[a];return r.createElement.apply(null,o)},O=(r.Component,function(){var t=x.a.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),w=function t(e){for(var n=e.length,i=0,r="";i<n;i++){var o=e[i];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=t(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r};function C(t,e,n){var i=[],r=a(t,i,n);return i.length<2?n:r+e(i)}var $=function(){return null},k=p((function(t,e){return Object(r.createElement)(u.Consumer,null,(function(n){var i=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Object(l.a)(n,e.registered);return s(e,r,!1),e.key+"-"+r.name},o={css:i,cx:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(e.registered,i,w(n))},theme:n},a=t.children(o);var c=Object(r.createElement)($,null);return Object(r.createElement)(r.Fragment,null,c,a)}))}))},function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n(39);function r(t){return t instanceof Object(i.a)(t).Element||t instanceof Element}function o(t){return t instanceof Object(i.a)(t).HTMLElement||t instanceof HTMLElement}function a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Object(i.a)(t).ShadowRoot||t instanceof ShadowRoot)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),c=n(8),d=n(42);e.a=function(t){var e=t.active,n=void 0!==e&&e,i=t.aria,o=void 0===i?{}:i,u=t.children,h=t.className,p=t.data,f=void 0===p?{}:p,g=t.iconLeft,m=t.iconRight,v=t.id,y=t.imageUrl,b=t.link,x=t.onClick,_=void 0===x?function(){}:x,O=t.target,w=void 0===O?"_self":O,C=t.text,$=void 0===C?"":C,k=b?"a":"div",S=!0===n?"active":"",E=Object(s.a)(o),j=Object(s.c)(f),A=a()(Object(s.b)("pb_nav_list_kit_item",S),Object(l.c)(t),h);return r.a.createElement("li",Object.assign({},E,j,{className:A,id:v}),r.a.createElement(k,{className:"pb_nav_list_item_link",href:b,onClick:_,target:w},y&&r.a.createElement("div",{className:"pb_nav_list_item_icon_section",key:y},r.a.createElement(d.a,{className:"pb_nav_img_wrapper",url:y})),g&&r.a.createElement("div",{className:"pb_nav_list_item_icon_section",key:g},r.a.createElement(c.a,{className:"pb_nav_list_item_icon_left",fixedWidth:!0,icon:g})),r.a.createElement("span",{className:"pb_nav_list_item_text"},$||u),m&&r.a.createElement("div",{className:"pb_nav_list_item_icon_section",key:m},r.a.createElement(c.a,{className:"pb_nav_list_item_icon_right",fixedWidth:!0,icon:m}))))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),c=n(8);e.a=function(t){var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,d=t.data,u=void 0===d?{}:d,h=t.disabled,p=t.icon,f=void 0===p?null:p,g=t.iconRight,m=void 0!==g&&g,v=t.id,y=t.loading,b=void 0!==y&&y,x=t.onClick,_=t.tabIndex,O=t.link,w=void 0===O?null:O,C=t.newWindow,$=void 0!==C&&C,k=t.target,S=void 0===k?"":k,E=t.text,j=t.htmlType,A=void 0===j?"button":j,P=t.value,M=t.form,T=void 0===M?null:M,L=Object(s.a)(n),D=Object(s.c)(u),I=a()(function(t){var e=t.disabled,n=void 0!==e&&e,i=t.fullWidth,r=void 0!==i&&i,o=t.loading,a=void 0!==o&&o,s=t.type,l=void 0===s?"inline":s,c=t.variant,d=void 0===c?"primary":c,u=t.size,h=void 0===u?null:u,p="pb_button_kit";return p+="".concat(null!==d?"_".concat(d):""),p+="".concat(null!==l?"_".concat(l):""),p+="".concat(r?"_block":""),p+=n?"_disabled":"_enabled",p+=a?"_loading":"",p+="".concat(null!==h?" size_".concat(h):"")}(t),Object(l.c)(t),o),N=r.a.createElement("div",{className:"loading-icon"},r.a.createElement(c.a,{fixedWidth:!0,icon:"spinner",pulse:!0})),R=r.a.createElement("span",{className:"pb_button_content"},f&&!m&&r.a.createElement("i",{className:"pb_icon_kit far fa-".concat(f," fa-fw button_with_icon")}),r.a.createElement("span",null,E||i),f&&m&&r.a.createElement("i",{className:"pb_icon_kit far fa-".concat(f," fa-fw button_with_icon_right")})),F=function(){return b?r.a.createElement(r.a.Fragment,null,N):R};return r.a.createElement(r.a.Fragment,null,w?r.a.createElement("a",Object.assign({},L,D,{className:I,href:w,id:v,rel:"child"!==S?"noreferrer":null,role:"link",tabIndex:_,target:S&&w?S:$?"_blank":null}),F()):r.a.createElement("button",Object.assign({},L,D,{className:I,disabled:h,form:T,id:v,onClick:x,role:"button",tabIndex:_,type:A,value:P}),F()))}},function(t,e,n){"use strict";var i;!function(r,o){t.exports?(o.default=o,t.exports=r.document?o(r):o):void 0===(i=function(){return o(r)}.call(e,n,e,t))||(t.exports=i)}("undefined"!=typeof window?window:this,(function(t){function e(t,e,n,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,n))}var n={};return e(n,"Core/Globals.js",[],(function(){var e,n=void 0!==t?t:"undefined"!=typeof window?window:{};return function(t){t.SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="9.3.3",t.win=n,t.doc=t.win.document,t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect,t.userAgent=t.win.navigator&&t.win.navigator.userAgent||"",t.isChrome=-1!==t.userAgent.indexOf("Chrome"),t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.hasBidiBug=t.isFirefox&&4>parseInt(t.userAgent.split("Firefox/")[1],10),t.hasTouch=!!t.win.TouchEvent,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,n),t.win.removeEventListener("testPassive",t.noop,n))}return e}(),t.charts=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0}(e||(e={})),e})),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function e(n,i,r,o){var a=i?"Highcharts error":"Highcharts warning";32===n&&(n=a+": Deprecated member");var s=l(n),c=s?a+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if(void 0!==o){var d="";s&&(c+="?"),g(o,(function(t,e){d+="\n - "+e+": "+t,s&&(c+=encodeURI(e)+"="+encodeURI(t))})),c+=d}v(t,"displayError",{chart:r,code:n,message:c,params:o},(function(){if(i)throw Error(c);x.console&&-1===e.messages.indexOf(c)&&console.warn(c)})),e.messages.push(c)}function n(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function r(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!(!t||"object"!=typeof t||e&&r(t))}function a(t){return o(t)&&"number"==typeof t.nodeType}function s(t){var e=t&&t.constructor;return!(!o(t,!0)||a(t)||!e||!e.name||"Object"===e.name)}function l(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function c(t){return null!=t}function d(t,e,n){var r;return i(e)?c(n)?t.setAttribute(e,n):t&&t.getAttribute&&((r=t.getAttribute(e))||"class"!==e||(r=t.getAttribute(e+"Name"))):g(e,(function(e,n){c(e)?t.setAttribute(n,e):t.removeAttribute(n)})),r}function u(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t}function h(){for(var t=arguments,e=t.length,n=0;n<e;n++){var i=t[n];if(null!=i)return i}}function p(e,n){t.isMS&&!t.svg&&n&&void 0!==n.opacity&&(n.filter="alpha(opacity="+100*n.opacity+")"),u(e.style,n)}function f(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function g(t,e,n){for(var i in t)Object.hasOwnProperty.call(t,i)&&e.call(n||t[i],t[i],i,t)}function m(e,n,i){function r(n,i){var r=e.removeEventListener||t.removeEventListenerPolyfill;r&&r.call(e,n,i,!1)}function o(t){var i;if(e.nodeName){if(n){var o={};o[n]=!0}else o=t;g(o,(function(e,n){if(t[n])for(i=t[n].length;i--;)r(n,t[n][i].fn)}))}}var a="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(a,"hcEvents")){var s=a.hcEvents;n?(a=s[n]||[],i?(s[n]=a.filter((function(t){return i!==t.fn})),r(n,i)):(o(s),s[n]=[])):(o(s),delete a.hcEvents)}}function v(e,n,i,r){if(i=i||{},b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var o=b.createEvent("Events");o.initEvent(n,!0,!0),i=u(o,i),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(n,i)}else if(e.hcEvents){i.target||u(i,{preventDefault:function(){i.defaultPrevented=!0},target:e,type:n}),o=[];for(var a=e,s=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[n]&&(o.length&&(s=!0),o.unshift.apply(o,a.hcEvents[n])),a=Object.getPrototypeOf(a);s&&o.sort((function(t,e){return t.order-e.order})),o.forEach((function(t){!1===t.fn.call(e,i)&&i.preventDefault()}))}r&&!i.defaultPrevented&&r.call(e,i)}var y=t.charts,b=t.doc,x=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var _=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var n,i=t.length;for(n=0;n<i;n++)if(e(t[n],n))return t[n]};g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(n,i){t[i]=function(t){var r;return e(32,!1,void 0,((r={})["Highcharts."+i]="use Array."+n,r)),Array.prototype[n].apply(t,[].slice.call(arguments,1))}}));var O,w=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(O?"":t)+e++}}();return x.jQuery&&(x.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[i(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):y[d(this[0],"data-highcharts-chart")]}),_={addEvent:function(e,n,i,r){void 0===r&&(r={});var o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={}),o=o.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var a=e.addEventListener||t.addEventListenerPolyfill;return a&&a.call(e,n,i,!!t.supportsPassiveEvents&&{passive:void 0===r.passive?-1!==n.indexOf("touch"):r.passive,capture:!1}),o[n]||(o[n]=[]),o[n].push({fn:i,order:"number"==typeof r.order?r.order:1/0}),o[n].sort((function(t,e){return t.order-e.order})),function(){m(e,n,i)}},arrayMax:function(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n},arrayMin:function(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n},attr:d,clamp:function(t,e,n){return t>e?t<n?t:n:e},cleanRecursively:function t(e,n){var i={};return g(e,(function(r,a){o(e[a],!0)&&!e.nodeType&&n[a]?(r=t(e[a],n[a]),Object.keys(r).length&&(i[a]=r)):(o(e[a])||e[a]!==n[a])&&(i[a]=e[a])})),i},clearTimeout:function(t){c(t)&&clearTimeout(t)},correctFloat:f,createElement:function(t,e,n,i,r){return t=b.createElement(t),e&&u(t,e),r&&p(t,{padding:"0",border:"none",margin:"0"}),n&&p(t,n),i&&i.appendChild(t),t},css:p,defined:c,destroyObjectProperties:function(t,e){g(t,(function(n,i){n&&n!==e&&n.destroy&&n.destroy(),delete t[i]}))},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var n=t.length;n--;)if(t[n]===e){t.splice(n,1);break}},error:e,extend:u,extendClass:function(t,e){var n=function(){};return u(n.prototype=new t,e),n},find:_,fireEvent:v,getMagnitude:function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},getNestedProperty:function(t,e){for(t=t.split(".");t.length&&c(e);){var n=t.shift();if(void 0===n||"__proto__"===n)return;if(!c(e=e[n])||"function"==typeof e||"number"==typeof e.nodeType||e===x)return}return e},getStyle:function i(r,o,a){var s=t.getStyle||i;if("width"===o)return o=Math.min(r.offsetWidth,r.scrollWidth),(a=r.getBoundingClientRect&&r.getBoundingClientRect().width)<o&&a>=o-1&&(o=Math.floor(a)),Math.max(0,o-(s(r,"padding-left",!0)||0)-(s(r,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(r.offsetHeight,r.scrollHeight)-(s(r,"padding-top",!0)||0)-(s(r,"padding-bottom",!0)||0));if(x.getComputedStyle||e(27,!0),r=x.getComputedStyle(r,void 0)){var l=r.getPropertyValue(o);h(a,"opacity"!==o)&&(l=n(l))}return l},inArray:function(t,n,i){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,i)},isArray:r,isClass:s,isDOMElement:a,isFunction:function(t){return"function"==typeof t},isNumber:l,isObject:o,isString:i,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,n={},i=function(t,e){return"object"!=typeof t&&(t={}),g(e,(function(n,r){"__proto__"!==r&&"constructor"!==r&&(!o(n,!0)||s(n)||a(n)?t[r]=e[r]:t[r]=i(t[r]||{},n))})),t};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;t<r;t++)n=i(n,e[t]);return n},normalizeTickInterval:function(t,e,n,i,r){var o=t,a=t/(n=h(n,1));for(e||(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===i&&(1===n?e=e.filter((function(t){return 0==t%1})):.1>=n&&(e=[1/n]))),i=0;i<e.length&&(o=e[i],!(r&&o*n>=t||!r&&a<=(e[i]+(e[i+1]||e[i]))/2));i++);return f(o*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(x.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(x.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:h,pInt:n,relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:m,splat:function(t){return r(t)?t:[t]},stableSort:function(t,e){var n,i,r=t.length;for(i=0;i<r;i++)t[i].safeI=i;for(t.sort((function(t,i){return 0===(n=e(t,i))?t.safeI-i.safeI:n})),i=0;i<r;i++)delete t[i].safeI},syncTimeout:function(t,e,n){return 0<e?setTimeout(t,e,n):(t.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:w,useSerialIds:function(t){return O=h(t,O)},wrap:function(t,e,n){var i=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,r=this;return r.proceed=function(){i.apply(r,arguments.length?arguments:e)},t.unshift(i),t=n.apply(this,t),r.proceed=null,t}}}})),e(n,"Core/Chart/ChartDefaults.js",[],(function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),e(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.isNumber,i=e.merge,r=e.pInt;return e=function(){function e(n){this.rgba=[NaN,NaN,NaN,NaN],this.input=n;var i=t.Color;return i&&i!==e?new i(n):this instanceof e?void this.init(n):new e(n)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var n;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map((function(t){return new e(t[1])}));else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var i=t.length,r=parseInt(t.substr(1),16);7===i?n=[(16711680&r)>>16,(65280&r)>>8,255&r,1]:4===i&&(n=[(3840&r)>>4|(3840&r)>>8,(240&r)>>4|240&r,(15&r)<<4|15&r,1])}if(!n)for(r=e.parsers.length;r--&&!n;){var o=e.parsers[r];(i=o.regex.exec(t))&&(n=o.parse(i))}}n&&(this.rgba=n)},e.prototype.get=function(t){var e=this.input,r=this.rgba;if("object"==typeof e&&void 0!==this.stops){var o=i(e);return o.stops=[].slice.call(o.stops),this.stops.forEach((function(e,n){o.stops[n]=[o.stops[n][0],e.get(t)]})),o}return r&&n(r[0])?"rgb"===t||!t&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===t?""+r[3]:"rgba("+r.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(n(t)&&0!==t)for(var i=0;3>i;i++)e[i]+=r(255*t),0>e[i]&&(e[i]=0),255<e[i]&&(e[i]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var i=this.rgba,r=t.rgba;return n(i[0])&&n(r[0])?((t=1!==r[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(r[0]+(i[0]-r[0])*(1-e))+","+Math.round(r[1]+(i[1]-r[1])*(1-e))+","+Math.round(r[2]+(i[2]-r[2])*(1-e))+(t?","+(r[3]+(i[3]-r[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[r(t[1]),r(t[2]),r(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[r(t[1]),r(t[2]),r(t[3]),1]}}],e.None=new e(""),e}()})),e(n,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}})),e(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=t.win,i=e.defined,r=e.error,o=e.extend,a=e.isObject,s=e.merge,l=e.objectEach,c=e.pad,d=e.pick,u=e.splat,h=e.timeUnits,p=t.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var n=e.getTime(),i=n-this.getTimezoneOffset(e);return e.setTime(i),t=e["getUTC"+t](),e.setTime(n),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](n);var i=this.getTimezoneOffset(e);return i=e.getTime()-i,e.setTime(i),e["setUTC"+t](n),t=this.getTimezoneOffset(e),i=e.getTime()+t,e.setTime(i)}return this.useUTC||p&&"FullYear"===t?e["setUTC"+t](n):e["set"+t](n)},e.prototype.update=function(t){var e=d(t&&t.useUTC,!0);this.options=t=s(!0,this.options||{},t),this.Date=t.Date||n.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,n,i,r,o){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),s=this.getTimezoneOffset(a);a+=s;var l=this.getTimezoneOffset(a);s!==l?a+=l-s:s-36e5!==this.getTimezoneOffset(a-36e5)||f||(a-=36e5)}else a=new this.Date(t,e,d(n,1),d(i,0),d(r,0),d(o,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.getTimezoneOffset,o=e.moment||n.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(o)return function(t){return 6e4*-o.tz(t,e.timezone).utcOffset()};r(25)}return this.useUTC&&i?function(t){return 6e4*i(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,n,r){if(!i(n)||isNaN(n))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=d(e,"%Y-%m-%d %H:%M:%S");var a=this,s=new this.Date(n),u=this.get("Hours",s),h=this.get("Day",s),p=this.get("Date",s),f=this.get("Month",s),g=this.get("FullYear",s),m=t.defaultOptions.lang,v=m&&m.weekdays,y=m&&m.shortWeekdays;return s=o({a:y?y[h]:v[h].substr(0,3),A:v[h],d:c(p),e:c(p,2," "),w:h,b:m.shortMonths[f],B:m.months[f],m:c(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:c(u),k:u,I:c(u%12||12),l:u%12||12,M:c(this.get("Minutes",s)),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:c(s.getSeconds()),L:c(Math.floor(n%1e3),3)},t.dateFormats),l(s,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(a,n):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return a(t,!0)?t:{main:(t=u(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,n,r){var a,s=this,l=[],c={},u=new s.Date(e),p=t.unitRange,f=t.count||1;if(r=d(r,1),i(e)){if(s.set("Milliseconds",u,p>=h.second?0:f*Math.floor(s.get("Milliseconds",u)/f)),p>=h.second&&s.set("Seconds",u,p>=h.minute?0:f*Math.floor(s.get("Seconds",u)/f)),p>=h.minute&&s.set("Minutes",u,p>=h.hour?0:f*Math.floor(s.get("Minutes",u)/f)),p>=h.hour&&s.set("Hours",u,p>=h.day?0:f*Math.floor(s.get("Hours",u)/f)),p>=h.day&&s.set("Date",u,p>=h.month?1:Math.max(1,f*Math.floor(s.get("Date",u)/f))),p>=h.month){s.set("Month",u,p>=h.year?0:f*Math.floor(s.get("Month",u)/f));var g=s.get("FullYear",u)}p>=h.year&&s.set("FullYear",u,g-g%f),p===h.week&&(g=s.get("Day",u),s.set("Date",u,s.get("Date",u)-g+r+(g<r?-7:0))),g=s.get("FullYear",u),r=s.get("Month",u);var m=s.get("Date",u),v=s.get("Hours",u);for(e=u.getTime(),!s.variableTimezone&&s.useUTC||!i(n)||(a=n-e>4*h.month||s.getTimezoneOffset(e)!==s.getTimezoneOffset(n)),e=u.getTime(),u=1;e<n;)l.push(e),e=p===h.year?s.makeTime(g+u*f,0):p===h.month?s.makeTime(g,r+u*f):!a||p!==h.day&&p!==h.week?a&&p===h.hour&&1<f?s.makeTime(g,r,m,v+u*f):e+p*f:s.makeTime(g,r,m+u*f*(p===h.day?1:7)),u++;l.push(e),p<=h.hour&&1e4>l.length&&l.forEach((function(t){0==t%18e5&&"000000000"===s.dateFormat("%H%M%S%L",t)&&(c[t]="day")}))}return l.info=o(t,{higherRanks:c,totalRange:p*f}),l},e.prototype.getDateFormat=function(t,e,n,i){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(s in h){if(t===h.week&&+this.dateFormat("%w",e)===n&&"00:00:00.000"===r.substr(6)){var s="week";break}if(h[s]>t){s=a;break}if(o[s]&&r.substr(o[s])!=="01-01 00:00:00.000".substr(o[s]))break;"week"!==s&&(a=s)}if(s)var l=this.resolveDTLFormat(i[s]).main;return l},e}()})),e(n,"Core/DefaultOptions.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){e=e.parse;var a=o.merge,s={colors:i.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:n.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};s.chart.styledMode=!1;var l=new r(a(s.global,s.time));return t={defaultOptions:s,defaultTime:l,getOptions:function(){return s},setOptions:function(t){return a(!0,s,t),(t.time||t.global)&&(n.time?n.time.update(a(s.global,s.time,t.global,t.time)):n.time=l),s}}})),e(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=t.parse,r=e.win,o=n.isNumber,a=n.objectEach;return function(){function t(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var n=this.now||0,i=[];if(1!==n&&e&&t)if(e.length===t.length&&1>n)for(var r=0;r<t.length;r++){for(var a=e[r],s=t[r],l=[],c=0;c<s.length;c++){var d=a[c],u=s[c];o(d)&&o(u)&&("A"!==s[0]||4!==c&&5!==c)?l[c]=d+n*(u-d):l[c]=u}i.push(l)}else i=t;else i=this.toD||[];this.elem.attr("d",i,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,n=this.now,i=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,i&&i.call(t,n,this)},t.prototype.run=function(e,n,i){var o=this,a=o.options,s=function(t){return!s.stopped&&o.step(t)},l=r.requestAnimationFrame||function(t){setTimeout(t,13)},c=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&l(c)};e!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=n,this.unit=i,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===t.timers.push(s)&&l(c)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,n=this.options,i=this.elem,r=n.complete,o=n.duration,s=n.curAnim;if(i.attr&&!i.element)t=!1;else if(t||e>=o+this.startTime){this.now=this.end,this.pos=1,this.update();var l=s[this.prop]=!0;a(s,(function(t){!0!==t&&(l=!1)})),l&&r&&r.call(i),t=!1}else this.pos=n.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,n){function i(t,e){for(;t.length<h;){var n=t[0],i=e[h-t.length];i&&"M"===n[0]&&(t[0]="C"===i[0]?["C",n[1],n[2],n[1],n[2],n[1],n[2]]:["L",n[1],n[2]]),t.unshift(n),l&&(n=t.pop(),t.push(t[t.length-1],n))}}function r(t,e){for(;t.length<h;)if("C"===(e=t[Math.floor(t.length/c)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),l){var n=t[Math.floor(t.length/c)].slice();t.splice(t.length/2,0,e,n)}else t.push(e)}var a=t.startX,s=t.endX;n=n.slice();var l=t.isArea,c=l?2:1;if(!(e=e&&e.slice()))return[n,n];if(a&&s&&s.length){for(t=0;t<a.length;t++){if(a[t]===s[0]){var d=t;break}if(a[0]===s[s.length-a.length+t]){d=t;var u=!0;break}if(a[a.length-1]===s[s.length-a.length+t]){d=a.length-t;break}}void 0===d&&(e=[])}if(e.length&&o(d)){var h=n.length+d*c;u?(i(e,n),r(n,e)):(i(n,e),r(e,n))}return[e,n]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)},t.timers=[],t}()})),e(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],(function(t,e){function n(t){return l(t)?c({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function i(e,n){for(var i=t.timers.length;i--;)t.timers[i].elem!==e||n&&n!==t.timers[i].prop||(t.timers[i].stopped=!0)}var r=e.defined,o=e.getStyle,a=e.isArray,s=e.isNumber,l=e.isObject,c=e.merge,d=e.objectEach,u=e.pick;return{animate:function(e,n,r){var u,h,p,f="";if(!l(r)){var g=arguments;r={duration:g[2],easing:g[3],complete:g[4]}}s(r.duration)||(r.duration=400),r.easing="function"==typeof r.easing?r.easing:Math[r.easing]||Math.easeInOutSine,r.curAnim=c(n),d(n,(function(s,l){i(e,l),p=new t(e,r,l),h=void 0,"d"===l&&a(n.d)?(p.paths=p.initPath(e,e.pathArray,n.d),p.toD=n.d,u=0,h=1):e.attr?u=e.attr(l):(u=parseFloat(o(e,l))||0,"opacity"!==l&&(f="px")),h||(h=s),"string"==typeof h&&h.match("px")&&(h=h.replace(/px/g,"")),p.run(u,h,f)}))},animObject:n,getDeferredAnimation:function(t,e,i){var o=n(e),a=0,s=0;return(i?[i]:t.series).forEach((function(t){t=n(t.options.animation),a=e&&r(e.defer)?o.defer:Math.max(a,t.duration+t.defer),s=Math.min(o.duration,t.duration)})),t.renderer.forExport&&(a=0),{defer:Math.max(0,a-s),duration:Math.min(a,s)}},setAnimation:function(t,e){e.renderer.globalAnimation=u(t,e.options.chart.animation,!0)},stop:i}})),e(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=t.SVG_NS,i=e.attr,r=e.createElement,o=e.error,a=e.isFunction,s=e.isString,l=e.objectEach,c=e.splat,d=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),u=d?d.createHTML(""):"";try{var h=!!(new DOMParser).parseFromString(u,"text/html")}catch(t){h=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return l(t,(function(n,i){var r=!0;-1===e.allowedAttributes.indexOf(i)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(r=s(n)&&e.allowedReferences.some((function(t){return 0===n.indexOf(t)}))),r||(o("Highcharts warning: Invalid attribute '"+i+"' in config"),delete t[i])})),t},e.setElementHTML=function(t,n){t.innerHTML=e.emptyHTML,n&&new e(n).addToDOM(t)},e.prototype.addToDOM=function(r){return function r(a,s){var d;return c(a).forEach((function(a){var c=a.tagName,u=a.textContent?t.doc.createTextNode(a.textContent):void 0;if(c)if("#text"===c)var h=u;else if(-1!==e.allowedTags.indexOf(c)){c=t.doc.createElementNS("svg"===c?n:s.namespaceURI||n,c);var p=a.attributes||{};l(a,(function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"textContent"!==e&&(p[e]=t)})),i(c,e.filterUserAttributes(p)),u&&c.appendChild(u),r(a.children||[],c),h=c}else o("Highcharts warning: Invalid tagName "+c+" in config");h&&s.appendChild(h),d=h})),d}(this.nodes,r)},e.prototype.parseMarkup=function(t){var e=[];if(t=t.trim(),h)t=(new DOMParser).parseFromString(d?d.createHTML(t):t,"text/html");else{var n=r("div");n.innerHTML=t,t={body:n}}var i=function(t,e){var n=t.nodeName.toLowerCase(),r={tagName:n};if("#text"===n&&(r.textContent=t.textContent||""),n=t.attributes){var o={};[].forEach.call(n,(function(t){o[t.name]=t.value})),r.attributes=o}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,(function(t){i(t,a)})),a.length&&(r.children=a)}e.push(r)};return[].forEach.call(t.body.childNodes,(function(t){return i(t,e)})),e},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=u,e}()})),e(n,"Core/FormatUtilities.js",[n["Core/DefaultOptions.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e,n,r){t=+t||0,e=+e;var o=i.lang,c=(t.toString().split(".")[1]||"").split("e")[0].length,d=t.toString().split("e"),u=e;if(-1===e)e=Math.min(c,20);else if(a(e)){if(e&&d[1]&&0>d[1]){var h=e+ +d[1];0<=h?(d[0]=(+d[0]).toExponential(h).split("e")[0],e=h):(d[0]=d[0].split(".")[0]||0,t=20>e?(d[0]*Math.pow(10,d[1])).toFixed(e):0,d[1]=0)}}else e=2;h=(Math.abs(d[1]?d[0]:t)+Math.pow(10,-Math.max(e,c)-1)).toFixed(e);var p=3<(c=String(l(h))).length?c.length%3:0;return n=s(n,o.decimalPoint),r=s(r,o.thousandsSep),t=(0>t?"-":"")+(p?c.substr(0,p)+r:""),t=0>+d[1]&&!u?"0":t+c.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+r),e&&(t+=n+h.slice(-e)),d[1]&&0!=+t&&(t+="e"+d[1]),t}var i=t.defaultOptions,r=t.defaultTime,o=e.getNestedProperty,a=e.isNumber,s=e.pick,l=e.pInt;return{dateFormat:function(t,e,n){return r.dateFormat(t,e,n)},format:function(t,e,a){var s="{",l=!1,c=/f$/,d=/\.([0-9])/,u=i.lang,h=a&&a.time||r;a=a&&a.numberFormatter||n;for(var p=[];t;){var f=t.indexOf(s);if(-1===f)break;var g=t.slice(0,f);if(l){if(g=g.split(":"),s=o(g.shift()||"",e),g.length&&"number"==typeof s)if(g=g.join(":"),c.test(g)){var m=parseInt((g.match(d)||["","-1"])[1],10);null!==s&&(s=a(s,m,u.decimalPoint,-1<g.indexOf(",")?u.thousandsSep:""))}else s=h.dateFormat(g,s);p.push(s)}else p.push(g);t=t.slice(f+1),s=(l=!l)?"}":"{"}return p.push(t),p.join("")},numberFormat:n}})),e(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.clamp,i=t.pick,r=t.stableSort;return function(t){t.distribute=function t(e,o,a){var s,l=e,c=l.reducedLen||o,d=function(t,e){return(e.rank||0)-(t.rank||0)},u=function(t,e){return t.target-e.target},h=!0,p=[],f=0;for(s=e.length;s--;)f+=e[s].size;if(f>c){for(r(e,d),f=s=0;f<=c;)f+=e[s].size,s++;p=e.splice(s-1,e.length)}for(r(e,u),e=e.map((function(t){return{size:t.size,targets:[t.target],align:i(t.align,.5)}}));h;){for(s=e.length;s--;)c=e[s],d=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=n(d-c.size*c.align,0,o-c.size);for(s=e.length,h=!1;s--;)0<s&&e[s-1].pos+e[s-1].size>e[s].pos&&(e[s-1].size+=e[s].size,e[s-1].targets=e[s-1].targets.concat(e[s].targets),e[s-1].align=.5,e[s-1].pos+e[s-1].size>o&&(e[s-1].pos=o-e[s-1].size),e.splice(s,1),h=!0)}return l.push.apply(l,p),s=0,e.some((function(e){var n=0;return(e.targets||[]).some((function(){return l[s].pos=e.pos+n,void 0!==a&&Math.abs(l[s].pos-l[s].target)>a?(l.slice(0,s+1).forEach((function(t){return delete t.pos})),l.reducedLen=(l.reducedLen||o)-.1*o,l.reducedLen>.1*o&&t(l,o,a),!0):(n+=l[s].size,s++,!1)}))})),r(l,u),l}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=t.animate,a=t.animObject,s=t.stop,l=i.deg2rad,c=i.doc,d=i.noop,u=i.svg,h=i.SVG_NS,p=i.win,f=r.addEvent,g=r.attr,m=r.createElement,v=r.css,y=r.defined,b=r.erase,x=r.extend,_=r.fireEvent,O=r.isArray,w=r.isFunction,C=r.isNumber,$=r.isString,k=r.merge,S=r.objectEach,E=r.pick,j=r.pInt,A=r.syncTimeout,P=r.uniqueKey;return(t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=h,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=E(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,n){n.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,n=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var i=this.zIndexSetter();return i||(t?t.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var n=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce((function(t,e){return-1===n.indexOf(e)&&t.push(e),t}),n?[n]:[]).join(" "))!==n&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,n){var i,r,o,a={},s=this.renderer,l=s.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!n||$(n))&&(this.alignTo=i=n||"renderer",b(l,this),l.push(this),n=void 0)):(t=this.alignOptions,e=this.alignByTranslate,i=this.alignTo),n=E(n,s[i],"scrollablePlotBox"===i?s.plotBox:void 0,s),i=t.align;var c=t.verticalAlign;return s=(n.x||0)+(t.x||0),l=(n.y||0)+(t.y||0),"right"===i?r=1:"center"===i&&(r=2),r&&(s+=(n.width-(t.width||0))/r),a[e?"translateX":"x"]=Math.round(s),"bottom"===c?o=1:"middle"===c&&(o=2),o&&(l+=(n.height-(t.height||0))/o),a[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,n){var i=this,r=a(E(e,this.renderer.globalAnimation,!0));return e=r.defer,E(c.hidden,c.msHidden,c.webkitHidden,!1)&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),A((function(){i.element&&o(i,t,r)}),e)):(this.attr(t,void 0,n),S(t,(function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var n=t.split(" ");if(t=n[n.length-1],(n=n[0])&&"none"!==n&&i.svg){this.fakeTS=!0,this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,n){return 2*Number(e)+n})),this.removeTextOutline();var r=c.createElementNS(h,"tspan");g(r,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":n,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),r.appendChild(e)}));var o=c.createElementNS(h,"tspan");o.textContent="​",["x","y"].forEach((function(t){var n=e.getAttribute(t);n&&o.setAttribute(t,n)})),r.appendChild(o),e.insertBefore(r,e.firstChild)}},t.prototype.attr=function(t,e,n,i){var r,o,a,l=this.element,c=this.symbolCustomAttribs,d=this;if("string"==typeof t&&void 0!==e){var u=t;(t={})[u]=e}return"string"==typeof t?d=(this[t+"Getter"]||this._defaultGetter).call(this,t,l):(S(t,(function(e,n){o=!1,i||s(this,n),this.symbolName&&-1!==c.indexOf(n)&&(r||(this.symbolAttr(t),r=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))}),this),this.afterSetters()),n&&n.call(this),d},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var n=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),y(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var r,o,a,s,l,c,d,u,h,p,f,g=this.renderer,m=[];_(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],l=g.gradients,c=t.stops,h=i.radialReference,O(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&h&&!y(a.gradientUnits)&&(s=a,a=k(a,g.getRadialAttr(h,s),{gradientUnits:"userSpaceOnUse"})),S(a,(function(t,e){"id"!==e&&m.push(e,t)})),S(c,(function(t){m.push(t)})),m=m.join(","),l[m])p=l[m].attr("id");else{a.id=p=P();var v=l[m]=g.createElement(o).attr(a).add(g.defs);v.radAttr=s,v.stops=[],c.forEach((function(t){0===t[1].indexOf("rgba")?(r=n.parse(t[1]),d=r.get("rgb"),u=r.get("a")):(d=t[1],u=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":d,"stop-opacity":u}).add(v),v.stops.push(t)}))}f="url("+g.url+"#"+p+")",i.setAttribute(e,f),i.gradient=m,t.toString=function(){return f}}}))},t.prototype.css=function(t){var e=this.styles,n={},i=this.element,r=["textOutline","textOverflow","width"],o="",a=!e;if(t&&t.color&&(t.fill=t.color),e&&S(t,(function(t,i){e&&e[i]!==t&&(n[i]=t,a=!0)})),a){if(e&&(t=x(e,n)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===i.nodeName.toLowerCase()&&t.width)var s=this.textWidth=j(t.width);if(this.styles=t,s&&!u&&this.renderer.forExport&&delete t.width,i.namespaceURI===this.SVG_NS){var l=function(t,e){return"-"+e.toLowerCase()};S(t,(function(t,e){-1===r.indexOf(e)&&(o+=e.replace(/([A-Z])/g,l)+":"+t+";")})),o&&g(i,"style",o)}else v(i,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var n=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=n.length;t--;)n[t]=""+j(n[t])*E(e,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},n=t.renderer,i=e.ownerSVGElement,r=n.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,s(t),t.clipPath&&i){var o=t.clipPath;[].forEach.call(i.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(o.element.id)&&t.removeAttribute("clip-path")})),t.clipPath=o.destroy()}if(t.stops){for(i=0;i<t.stops.length;i++)t.stops[i].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),n.styledMode||t.destroyShadows();r&&r.div&&0===r.div.childNodes.length;)e=r.parentGroup,t.safeRemoveChild(r.div),delete r.div,r=e;t.alignTo&&b(n.alignedObjects,t),S(t,(function(e,n){t[n]&&t[n].parentGroup===t&&t[n].destroy&&t[n].destroy(),delete t[n]}))},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},t.prototype.destroyTextPath=function(t,e){var n=t.getElementsByTagName("text")[0];if(n){if(n.removeAttribute("dx"),n.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&n.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)n.appendChild(t[0]);n.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())},t.prototype.dSetter=function(t,e,n){O(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((function(t,e,n){return e&&e.join?(n?t+" ":"")+e.join(" "):(e||"").toString()}),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(n.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:E(t,150),complete:function(){e.attr({y:-9999}).hide()}})},t.prototype.fillSetter=function(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.complexColor(t,e,n)},t.prototype.getBBox=function(e,n){var i=this.renderer,r=this.element,o=this.styles,a=this.textStr,s=i.cache,c=i.cacheKeys,d=r.namespaceURI===this.SVG_NS;n=E(n,this.rotation,0);var u,h=i.styledMode?r&&t.prototype.getStyle.call(r,"font-size"):o&&o.fontSize;if(y(a)){var p=a.toString();-1===p.indexOf("<")&&(p=p.replace(/[0-9]/g,"0")),p+=["",n,h,this.textWidth,o&&o.textOverflow,o&&o.fontWeight].join()}if(p&&!e&&(u=s[p]),!u){if(d||i.forExport){try{var f=this.fakeTS&&function(t){var e=r.querySelector(".highcharts-text-outline");e&&v(e,{display:t})};w(f)&&f("none"),u=r.getBBox?x({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight},w(f)&&f("")}catch(t){}(!u||0>u.width)&&(u={width:0,height:0})}else u=this.htmlGetBBox();if(i.isSVG&&(e=u.width,i=u.height,d&&(u.height=i={"11px,17":14,"13px,20":16}[(h||"")+","+Math.round(i)]||i),n&&(d=n*l,u.width=Math.abs(i*Math.sin(d))+Math.abs(e*Math.cos(d)),u.height=Math.abs(i*Math.cos(d))+Math.abs(e*Math.sin(d)))),p&&(""===a||0<u.height)){for(;250<c.length;)delete s[c.shift()];s[p]||c.push(p),s[p]=u}}return u},t.prototype.getStyle=function(t){return p.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?m(e):c.createElementNS(this.SVG_NS,e),this.renderer=t,_(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var n=this.onEvents;return n[t]&&n[t](),n[t]=f(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,n){this.opacity=t=Number(Number(t).toFixed(3)),n.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace($(t)?new RegExp("(^| )"+t+"( |$)"):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,n){var i=this.element,r=this.text?this.text.element:i,o={textAnchor:"text-anchor"},a=!1,s=this.textPathWrapper,l=!s;n=k(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},n);var c=e.filterUserAttributes(n.attributes);if(t&&n&&n.enabled){s&&null===s.element.parentNode?(l=!0,s=s.destroy()):s&&this.removeTextOutline.call(s.parentGroup),this.options&&this.options.padding&&(c.dx=-this.options.padding),s||(this.textPathWrapper=s=this.renderer.createElement("textPath"),a=!0);var u=s.element;if((n=t.element.getAttribute("id"))||t.element.setAttribute("id",n=P()),l)for(r.setAttribute("y",0),C(c.dx)&&r.setAttribute("x",-c.dx),t=[].slice.call(r.childNodes),l=0;l<t.length;l++){var h=t[l];h.nodeType!==p.Node.TEXT_NODE&&"tspan"!==h.nodeName||u.appendChild(h)}a&&s&&s.add({element:r}),u.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+n),y(c.dy)&&(u.parentNode.setAttribute("dy",c.dy),delete c.dy),y(c.dx)&&(u.parentNode.setAttribute("dx",c.dx),delete c.dx),S(c,(function(t,e){u.setAttribute(o[e]||e,t)})),i.removeAttribute("transform"),this.removeTextOutline.call(s),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=d}else s&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(i,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},t.prototype.shadow=function(t,e,n){var i,r=[],o=this.element,a=this.oldShadowOptions,s={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},l=!1;if(!0===t?i=s:"object"==typeof t&&(i=x(s,t)),i&&(i&&a&&S(i,(function(t,e){t!==a[e]&&(l=!0)})),l&&this.destroyShadows(),this.oldShadowOptions=i),i){if(!this.shadows){var c=i.opacity/i.width,d=this.parentInverted?"translate("+i.offsetY+", "+i.offsetX+")":"translate("+i.offsetX+", "+i.offsetY+")";for(s=1;s<=i.width;s++){var u=o.cloneNode(!1),h=2*i.width+1-2*s;g(u,{stroke:t.color||"#000000","stroke-opacity":c*s,"stroke-width":h,transform:d,fill:"none"}),u.setAttribute("class",(u.getAttribute("class")||"")+" highcharts-shadow"),n&&(g(u,"height",Math.max(g(u,"height")-h,0)),u.cutHeight=h),e?e.element.appendChild(u):o.parentNode&&o.parentNode.insertBefore(u,o),r.push(u)}this.shadows=r}}else this.destroyShadows();return this},t.prototype.show=function(t){return this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,n,i){this[n]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===n&&0===e&&this.hasStroke?(i.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=j(t);else if(""!==t){var n=c.createElementNS(h,"rect");g(n,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(n),e=n.getBBox().width,n.parentNode.removeChild(n)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(n){e[n]=E(t[n],e[n])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,n=e.getElementsByTagName("title")[0]||c.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(n,e.firstChild):e.appendChild(n),n.textContent=String(E(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,n){var i=this.shadows;if(i)for(var r=i.length;r--;)n.call(i[r],"height"===t?Math.max(e-(i[r].cutHeight||0),0):"d"===t?this.d:e,t,i[r])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,n=this.inverted,i=this.rotation,r=this.matrix,o=this.element,a=this.translateX||0,s=this.translateY||0;n&&(a+=this.width,s+=this.height),a=["translate("+a+","+s+")"],y(r)&&a.push("matrix("+r.join(",")+")"),n?a.push("rotate(90) scale(-1,1)"):i&&a.push("rotate("+i+" "+E(this.rotationOriginX,o.getAttribute("x"),0)+" "+E(this.rotationOriginY,o.getAttribute("y")||0)+")"),(y(t)||y(e))&&a.push("scale("+E(t,1)+" "+E(e,1)+")"),a.length&&o.setAttribute("transform",a.join(" "))},t.prototype.visibilitySetter=function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var n=this.renderer,i=this.parentGroup,r=(i||n).element||n.box,o=this.element;n=r===n.box;var a,s=!1,l=this.added;if(y(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):y(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&i&&(i.handleZ=!0),a=(e=r.childNodes).length-1;0<=a&&!s;a--){l=(i=e[a]).getAttribute("data-z-index");var c=!y(l);i!==o&&(0>t&&c&&!n&&!a?(r.insertBefore(o,e[a]),s=!0):(j(l)<=t||c&&(!y(t)||0<=t))&&(r.insertBefore(o,e[a+1]||null),s=!0))}s||(r.insertBefore(o,e[n?3:0]||null),s=!0)}return s},t}()).prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],(function(t){var e;return function(e){var n;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=n),e.rendererTypes[t]||e.rendererTypes[n]},e.registerRendererType=function(i,r,o){e.rendererTypes[i]=r,n&&!o||(n=i,t.Renderer=r)}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=e.defined,r=e.extend,o=e.isNumber,a=e.merge,s=e.pick,l=e.removeEvent;return function(e){function c(t,n,i,r,o,a,s,l,d,u){var h,p=e.call(this)||this;return p.paddingLeftSetter=p.paddingSetter,p.paddingRightSetter=p.paddingSetter,p.init(t,"g"),p.textStr=n,p.x=i,p.y=r,p.anchorX=a,p.anchorY=s,p.baseline=d,p.className=u,p.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label"),u&&p.addClass("highcharts-"+u),p.text=t.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof o&&((h=/^url\((.*?)\)$/.test(o))||p.renderer.symbols[o])&&(p.symbolKey=o),p.bBox=c.emptyBBox,p.padding=3,p.baselineOffset=0,p.needsBox=t.styledMode||h,p.deferredAttr={},p.alignFactor=0,p}return n(c,e),c.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))},c.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},c.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},c.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},c.prototype.css=function(e){if(e){var n={};e=a(e),c.textProps.forEach((function(t){void 0!==e[t]&&(n[t]=e[t],delete e[t])})),this.text.css(n);var i="width"in n;"fontSize"in n||"fontWeight"in n?this.updateTextPadding():i&&this.updateBoxSize()}return t.prototype.css.call(this,e)},c.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},c.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},c.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=s(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},c.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},c.prototype.heightSetter=function(t){this.heightSetting=t},c.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:i(t)?t:"",x:this.x,y:this.y}),this.box&&i(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},c.prototype.paddingSetter=function(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},c.prototype.rSetter=function(t,e){this.boxAttr(e,t)},c.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},c.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},c.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},c.prototype["text-alignSetter"]=function(t){this.textAlign=t},c.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},c.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},n=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!i(this.text.textStr)?c.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,t=this.renderer.fontMetrics(t&&t.fontSize,this.text),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||t).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-t.h)/2),this.needsBox&&(this.box||((n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),n.add(this)),n=this.getCrispAdjust(),e.x=n,e.y=(this.baseline?-this.baselineOffset:0)+n,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(r(e,this.deferredAttr)),this.deferredAttr={})},c.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,n=s(this.paddingLeft,this.padding);i(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),n===t.x&&e===t.y||(t.attr("x",n),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=n,t.y=e},c.prototype.widthSetter=function(t){this.widthSetting=o(t)?t:void 0},c.prototype.getPaddedWidth=function(){var t=this.padding,e=s(this.paddingLeft,t);return t=s(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},c.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},c.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},c.emptyBBox={width:0,height:0,x:0,y:0},c.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),c}(t)})),e(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],(function(t){function e(t,e,n,i,o){var s=[];if(o){var l=o.start||0,c=a(o.r,n);n=a(o.r,i||n);var d=(o.end||0)-.001;i=o.innerR;var u=a(o.open,.001>Math.abs((o.end||0)-l-2*Math.PI)),h=Math.cos(l),p=Math.sin(l),f=Math.cos(d),g=Math.sin(d);l=a(o.longArc,.001>d-l-Math.PI?0:1),s.push(["M",t+c*h,e+n*p],["A",c,n,0,l,a(o.clockwise,1),t+c*f,e+n*g]),r(i)&&s.push(u?["M",t+i*f,e+i*g]:["L",t+i*f,e+i*g],["A",i,i,0,l,r(o.clockwise)?1-o.clockwise:0,t+i*h,e+i*p]),u||s.push(["Z"])}return s}function n(t,e,n,r,o){return o&&o.r?i(t,e,n,r,o):[["M",t,e],["L",t+n,e],["L",t+n,e+r],["L",t,e+r],["Z"]]}function i(t,e,n,i,r){return[["M",t+(r=r&&r.r||0),e],["L",t+n-r,e],["C",t+n,e,t+n,e,t+n,e+r],["L",t+n,e+i-r],["C",t+n,e+i,t+n,e+i,t+n-r,e+i],["L",t+r,e+i],["C",t,e+i,t,e+i,t,e+i-r],["L",t,e+r],["C",t,e,t,e,t+r,e]]}var r=t.defined,o=t.isNumber,a=t.pick;return{arc:e,callout:function(t,e,n,r,a){var s=Math.min(a&&a.r||0,n,r),l=s+6,c=a&&a.anchorX;a=a&&a.anchorY||0;var d=i(t,e,n,r,{r:s});return o(c)?(t+c>=n?a>e+l&&a<e+r-l?d.splice(3,1,["L",t+n,a-6],["L",t+n+6,a],["L",t+n,a+6],["L",t+n,e+r-s]):d.splice(3,1,["L",t+n,r/2],["L",c,a],["L",t+n,r/2],["L",t+n,e+r-s]):0>=t+c?a>e+l&&a<e+r-l?d.splice(7,1,["L",t,a+6],["L",t-6,a],["L",t,a-6],["L",t,e+s]):d.splice(7,1,["L",t,r/2],["L",c,a],["L",t,r/2],["L",t,e+s]):a&&a>r&&c>t+l&&c<t+n-l?d.splice(5,1,["L",c+6,e+r],["L",c,e+r+6],["L",c-6,e+r],["L",t+s,e+r]):a&&0>a&&c>t+l&&c<t+n-l&&d.splice(1,1,["L",c-6,e],["L",c,e-6],["L",c+6,e],["L",n-s,e]),d):d},circle:function(t,n,i,r){return e(t+i/2,n+r/2,i/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,n,i){return[["M",t+n/2,e],["L",t+n,e+i/2],["L",t+n/2,e+i],["L",t,e+i/2],["Z"]]},rect:n,roundedRect:i,square:n,triangle:function(t,e,n,i){return[["M",t+n/2,e],["L",t+n,e+i],["L",t,e+i],["Z"]]},"triangle-down":function(t,e,n,i){return[["M",t,e],["L",t+n,e],["L",t+n/2,e+i],["Z"]]}}})),e(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=e.doc,r=e.SVG_NS,o=e.win,a=n.attr,s=n.isString,l=n.objectEach,c=n.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,n=e.element,r=e.renderer,o=c(e.textStr,"").toString(),a=-1!==o.indexOf("<"),l=n.childNodes;r=this.width&&!e.added&&r.box;var d=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(d!==e.textCache){for(e.textCache=d,delete e.actualWidth,d=l.length;d--;)n.removeChild(l[d]);a||this.ellipsis||this.width||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))?""!==o&&(r&&r.appendChild(n),o=new t(o),this.modifyTree(o.nodes),o.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),r&&r.removeChild(n)):n.appendChild(i.createTextNode(this.unescapeEntities(o))),s(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,n=this.svgElement,s=a(n.element,"x");for(n.firstLineMetrics=void 0;(t=n.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)n.element.removeChild(t);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),(function(t,i){t.nextSibling&&t.previousSibling&&(0===i&&1===t.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(void 0,t.previousSibling)),a(t,{dy:e.getLineHeight(t.nextSibling),x:s}))}));var l=this.width||0;if(l){var c=function(t,o){var c=t.textContent||"",d=c.replace(/([^\^])-/g,"$1- ").split(" "),u=!e.noWrap&&(1<d.length||1<n.element.childNodes.length),h=e.getLineHeight(o),p=0,f=n.actualWidth;if(e.ellipsis)c&&e.truncate(t,c,void 0,0,Math.max(0,l-parseInt(e.fontSize||12,10)),(function(t,e){return t.substring(0,e)+"…"}));else if(u){for(c=[],u=[];o.firstChild&&o.firstChild!==t;)u.push(o.firstChild),o.removeChild(o.firstChild);for(;d.length;)d.length&&!e.noWrap&&0<p&&(c.push(t.textContent||""),t.textContent=d.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,d,0===p&&f||0,l,(function(t,e){return d.slice(0,e).join(" ").replace(/- /g,"-")})),f=n.actualWidth,p++;u.forEach((function(e){o.insertBefore(e,t)})),c.forEach((function(e){o.insertBefore(i.createTextNode(e),t),(e=i.createElementNS(r,"tspan")).textContent="​",a(e,{dy:h,x:s}),o.insertBefore(e,t)}))}},d=function(t){[].slice.call(t.childNodes).forEach((function(e){e.nodeType===o.Node.TEXT_NODE?c(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(n.actualWidth=0),d(e))}))};d(n.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===o.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,n=function(i,r){var o=i.attributes;o=void 0===o?{}:o;var a=i.children,l=i.tagName,c=e.renderer.styledMode;"b"===l||"strong"===l?c?o.class="highcharts-strong":o.style="font-weight:bold;"+(o.style||""):"i"!==l&&"em"!==l||(c?o.class="highcharts-emphasized":o.style="font-style:italic;"+(o.style||"")),s(o.style)&&(o.style=o.style.replace(/(;| |^)color([ :])/,"$1fill$2")),"br"===l?(o.class="highcharts-br",i.textContent="​",(r=t[r+1])&&r.textContent&&(r.textContent=r.textContent.replace(/^ +/gm,""))):"a"===l&&a&&a.some((function(t){return"#text"===t.tagName}))&&(i.children=[{children:a,tagName:"tspan"}]),"#text"!==l&&"a"!==l&&(i.tagName="tspan"),i.attributes=o,a&&a.filter((function(t){return"#text"!==t.tagName})).forEach(n)};t.forEach(n)},e.prototype.truncate=function(t,e,n,i,r,o){var a,s=this.svgElement,l=s.renderer,c=s.rotation,d=[],u=n?1:0,h=(e||n||"").length,p=h,f=function(r,a){a=a||r;var c=t.parentNode;if(c&&void 0===d[a])if(c.getSubStringLength)try{d[a]=i+c.getSubStringLength(0,n?a+1:a)}catch(t){}else l.getSpanWidth&&(t.textContent=o(e||n,r),d[a]=i+l.getSpanWidth(s,t));return d[a]};s.rotation=0;var g=f(t.textContent.length);if(i+g>r){for(;u<=h;)p=Math.ceil((u+h)/2),n&&(a=o(n,p)),g=f(p,a&&a.length-1),u===h?u=h+1:g>r?h=p-1:u=p;0===h?t.textContent="":e&&h===e.length-1||(t.textContent=a||o(e||n,p))}n&&n.splice(0,p),s.actualWidth=g,s.rotation=c},e.prototype.unescapeEntities=function(t,e){return l(this.renderer.escapes,(function(n,i){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),i))})),t},e}()})),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l){var c,d=n.charts,u=n.deg2rad,h=n.doc,p=n.isFirefox,f=n.isMS,g=n.isWebKit,m=n.noop,v=n.SVG_NS,y=n.symbolSizes,b=n.win,x=l.addEvent,_=l.attr,O=l.createElement,w=l.css,C=l.defined,$=l.destroyObjectProperties,k=l.extend,S=l.isArray,E=l.isNumber,j=l.isObject,A=l.isString,P=l.merge,M=l.pick,T=l.pInt,L=l.uniqueKey;return n=function(){function n(t,e,n,i,r,o,a){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,n,i,r,o,a)}return n.prototype.init=function(t,e,n,i,r,o,a){var s,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),c=l.element;a||l.css(this.getStyle(i)),t.appendChild(c),_(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&_(c,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=c,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(h.createTextNode("Created with Highcharts 9.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=r,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),p&&t.getBoundingClientRect&&((e=function(){w(t,{left:0,top:0}),s=t.getBoundingClientRect(),w(t,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=x(b,"resize",e))},n.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((p||g)&&h.getElementsByTagName("base").length){if(!C(c)){var e=L();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(h.body),w(e,{position:"fixed",top:0,left:0,zIndex:9e5});var n=h.elementFromPoint(6,6);c="hitme"===(n&&n.id),h.body.removeChild(e)}if(c)return b.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},n.prototype.getStyle=function(t){return this.style=k({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},n.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),$(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},n.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},n.prototype.buildText=function(t){new s(t).buildSVG()},n.prototype.getContrast=function(t){return(t=e.parse(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},n.prototype.button=function(e,n,i,r,o,a,s,l,c,d){var u=this.label(e,n,i,c,void 0,void 0,d,void 0,"button"),h=this.styledMode,p=0,g=o?P(o):{};if(e=g&&g.style||{},g=t.filterUserAttributes(g),u.attr(P({padding:8,r:2},g)),!h){var m=(g=P({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:e},g)).style;delete g.style;var v=(a=P(g,{fill:"#e6e6e6"},t.filterUserAttributes(a||{}))).style;delete a.style;var y=(s=P(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(s||{}))).style;delete s.style;var b=(l=P(g,{style:{color:"#cccccc"}},t.filterUserAttributes(l||{}))).style;delete l.style}return x(u.element,f?"mouseover":"mouseenter",(function(){3!==p&&u.setState(1)})),x(u.element,f?"mouseout":"mouseleave",(function(){3!==p&&u.setState(p)})),u.setState=function(t){1!==t&&(u.state=p=t),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),h||u.attr([g,a,s,l][t||0]).css([m,v,y,b][t||0])},h||u.attr(g).css(k({cursor:"default"},m)),u.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==p&&r.call(u,t)}))},n.prototype.crispLine=function(t,e,n){void 0===n&&(n="round");var i=t[0],r=t[1];return C(i[1])&&i[1]===r[1]&&(i[1]=r[1]=Math[n](i[1])-e%2/2),C(i[2])&&i[2]===r[2]&&(i[2]=r[2]=Math[n](i[2])+e%2/2),t},n.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return S(t)?e.d=t:j(t)&&k(e,t),this.createElement("path").attr(e)},n.prototype.circle=function(t,e,n){return t=j(t)?t:void 0===t?{}:{x:t,y:e,r:n},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},e.attr(t)},n.prototype.arc=function(t,e,n,i,r,o){return j(t)?(e=(i=t).y,n=i.r,t=i.x):i={innerR:i,start:r,end:o},(t=this.symbol("arc",t,e,n,n,i)).r=n,t},n.prototype.rect=function(t,e,n,i,r,o){r=j(t)?t.r:r;var a=this.createElement("rect");return t=j(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(i,0)},this.styledMode||(void 0!==o&&(t["stroke-width"]=o,t=a.crisp(t)),t.fill="none"),r&&(t.r=r),a.rSetter=function(t,e,n){a.r=t,_(n,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(t)},n.prototype.setSize=function(t,e,n){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:M(n,!0)?void 0:0}),this.alignElements()},n.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},n.prototype.image=function(t,e,n,i,r,o){var a={preserveAspectRatio:"none"},s=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};E(e)&&(a.x=e),E(n)&&(a.y=n),E(i)&&(a.width=i),E(r)&&(a.height=r);var l=this.createElement("image").attr(a);return e=function(e){s(l.element,t),o.call(l,e)},o?(s(l.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n=new b.Image,x(n,"load",e),n.src=t,n.complete&&e({})):s(l.element,t),l},n.prototype.symbol=function(t,e,n,i,r,o){var a,s=this,l=/^url\((.*?)\)$/,c=l.test(t),u=!c&&(this.symbols[t]?t:"circle"),p=u&&this.symbols[u];if(p){"number"==typeof e&&(a=p.call(this.symbols,Math.round(e||0),Math.round(n||0),i||0,r||0,o));var f=this.path(a);s.styledMode||f.attr("fill","none"),k(f,{symbolName:u||void 0,x:e,y:n,width:i,height:r}),o&&k(f,o)}else if(c){var g=t.match(l)[1],m=f=this.image(g);m.imgwidth=M(y[g]&&y[g].width,o&&o.width),m.imgheight=M(y[g]&&y[g].height,o&&o.height);var v=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach((function(t){m[t+"Setter"]=function(t,e){var n=this["img"+e];this[e]=t,C(n)&&(o&&"within"===o.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(t=((this[e]||0)-n)/2,this.attr("width"===e?{translateX:t}:{translateY:t})))}})),C(e)&&m.attr({x:e,y:n}),m.isImg=!0,C(m.imgwidth)&&C(m.imgheight)?v(m):(m.attr({width:0,height:0}),O("img",{onload:function(){var t=d[s.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),h.body.appendChild(this)),y[g]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&v(m),this.parentNode&&this.parentNode.removeChild(this),s.imgCount--,s.imgCount||!t||t.hasLoaded||t.onload()},src:g}),this.imgCount++)}return f},n.prototype.clipRect=function(t,e,n,i){var r=L()+"-",o=this.createElement("clipPath").attr({id:r}).add(this.defs);return(t=this.rect(t,e,n,i,0).add(o)).id=r,t.clipPath=o,t.count=0,t},n.prototype.text=function(t,e,n,i){var r={};return!i||!this.allowHTML&&this.forExport?(r.x=Math.round(e||0),n&&(r.y=Math.round(n)),C(t)&&(r.text=t),t=this.createElement("text").attr(r),(!i||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,n){for(var i,r=n.getElementsByTagName("tspan"),o=n.getAttribute(e),a=0;a<r.length;a++)(i=r[a]).getAttribute(e)===o&&i.setAttribute(e,t);n.setAttribute(e,t)}),t):this.html(t,e,n)},n.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!b.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&r.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?T(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},n.prototype.rotCorr=function(t,e,n){var i=t;return e&&n&&(i=Math.max(i*Math.cos(e*u),4)),{x:-t/3*Math.sin(e*u),y:i}},n.prototype.pathToSegments=function(t){for(var e=[],n=[],i={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r<t.length;r++)A(n[0])&&E(t[r])&&n.length===i[n[0].toUpperCase()]&&t.splice(r,0,n[0].replace("M","L").replace("m","l")),"string"==typeof t[r]&&(n.length&&e.push(n.slice(0)),n.length=0),n.push(t[r]);return e.push(n.slice(0)),e},n.prototype.label=function(t,e,n,i,r,a,s,l,c){return new o(this,t,e,n,i,r,a,s,l,c)},n.prototype.alignElements=function(){this.alignedObjects.forEach((function(t){return t.align()}))},n}(),k(n.prototype,{Element:r,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:a,draw:m}),i.registerRendererType("svg",n,!0),n})),e(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.isFirefox,o=t.isMS,a=t.isWebKit,s=t.win,l=n.css,c=n.defined,d=n.extend,u=n.pick,h=n.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var n=e.prototype,i=t.prototype;i.getSpanCorrection=n.getSpanCorrection,i.htmlCss=n.htmlCss,i.htmlGetBBox=n.htmlGetBBox,i.htmlUpdateTransform=n.htmlUpdateTransform,i.setSpanRotation=n.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,n){this.xCorr=-t*n,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,n=u(e&&t.width,void 0);if(e){delete t.width,this.textWidth=n;var i=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=d(this.styles,t),l(this.element,t),i&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,i=this.translateY||0,r=this.x||0,o=this.y||0,a=this.textAlign||"left",s={left:0,center:.5,right:1}[a],d=this.styles;if(d=d&&d.whiteSpace,l(e,{marginLeft:n,marginTop:i}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){l(t,{marginLeft:n+1,marginTop:i+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(n){t.invertChild(n,e)})),"SPAN"===e.tagName){var u=this.rotation,p=this.textWidth&&h(this.textWidth),f=[u,a,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,p!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else l(e,{width:"",whiteSpace:d||"nowrap"}),m=e.offsetWidth;(p>this.oldTextWidth||m>p)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(l(e,{width:m>p||u?p+"px":"auto",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=p,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,!c(u)||u===(this.oldRotation||0)&&a===this.oldAlign||this.setSpanRotation(u,s,g),this.getSpanCorrection(!c(u)&&this.textPxLength||e.offsetWidth,g,s,u,a)),l(e,{left:r+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=u,this.oldAlign=a}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,n){var i={},c=o&&!/Edge/.test(s.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":r?"MozTransform":s.opera?"-o-transform":void 0;c&&(i[c]=i.transform="rotate("+t+"deg)",i[c+(r?"Origin":"-origin")]=i.transformOrigin=100*e+"% "+n+"px",l(this.element,i))},e.composedClasses=[],e}(e)})),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=i.attr,a=i.createElement,s=i.extend,l=i.pick;return function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return r(i,n),i.compose=function(t){return-1===i.composedClasses.indexOf(t)&&(i.composedClasses.push(t),t.prototype.html=i.prototype.html),t},i.prototype.html=function(n,i,r){var c=this.createElement("span"),d=c.element,u=c.renderer,h=u.isSVG,p=function(t,n){["opacity","visibility"].forEach((function(i){t[i+"Setter"]=function(r,o,a){var s=t.div?t.div.style:n;e.prototype[i+"Setter"].call(this,r,o,a),s&&(s[o]=r)}})),t.addedSetters=!0};return c.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,l(e,"")),this.textStr=e,c.doTransform=!0)},h&&p(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(t,e){"align"===e?c.alignValue=c.textAlign=t:c[e]=t,c.doTransform=!0},c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},c.attr({text:n,x:Math.round(i),y:Math.round(r)}).css({position:"absolute"}),u.styledMode||c.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),d.style.whiteSpace="nowrap",c.css=c.htmlCss,h&&(c.add=function(t){var e=u.box.parentNode,n=[];if(this.parentGroup=t){var i=t.div;if(!i){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function r(e,n){t[n]=e,"translateX"===n?u.left=e+"px":u.top=e+"px",t.doTransform=!0}var l=o(t.element,"class"),d=t.styles||{},u=(i=t.div=t.div||a("div",l?{className:l}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:d.cursor,pointerEvents:d.pointerEvents,visibility:t.visibility},i||e)).style;s(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(i),on:function(){return n[0].div&&c.on.apply({element:n[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:r,translateYSetter:r}),t.addedSetters||p(t)}))}}else i=e;return i.appendChild(d),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c}),c},i.composedClasses=[],i}(n)})),e(n,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(n,"Core/Foundation.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.isFunction,r=t.objectEach,o=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},r(e.events,(function(e,r){t.eventOptions[r]!==e&&(t.eventOptions[r]&&(o(t,r,t.eventOptions[r]),delete t.eventOptions[r]),i(e)&&(t.eventOptions[r]=e,n(t,r,e)))}))}}(e||(e={})),e})),e(n,"Core/Axis/Tick.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=e.deg2rad,r=n.clamp,o=n.correctFloat,a=n.defined,s=n.destroyObjectProperties,l=n.extend,c=n.fireEvent,d=n.isNumber,u=n.merge,h=n.objectEach,p=n.pick;return e=function(){function e(t,e,n,i,r){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,c(this,"init"),n||i||this.addLabel()}return e.prototype.addLabel=function(){var e=this,n=e.axis,i=n.options,r=n.chart,s=n.categories,u=n.logarithmic,h=n.names,f=e.pos,g=p(e.options&&e.options.labels,i.labels),m=n.tickPositions,v=f===m[0],y=f===m[m.length-1],b=(!g.step||1===g.step)&&1===n.tickInterval;m=m.info;var x,_=e.label;if(s=this.parameters.category||(s?p(s[f],h[f],f):f),u&&d(s)&&(s=o(u.lin2log(s))),n.dateTime)if(m)var O=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&m.higherRanks[f]||m.unitName]),w=O.main;else d(s)&&(w=n.dateTime.getXDateFormat(s,i.dateTimeLabelFormats||{}));e.isFirst=v,e.isLast=y;var C={axis:n,chart:r,dateTimeLabelFormat:w,isFirst:v,isLast:y,pos:f,tick:e,tickPositionInfo:m,value:s};c(this,"labelFormat",C);var $=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=n.defaultLabelFormatter.call(e),t.format(g.format,e,r)):n.defaultLabelFormatter.call(e,e)};i=$.call(C,C);var k=O&&O.list;e.shortenLabel=k?function(){for(x=0;x<k.length;x++)if(l(C,{dateTimeLabelFormat:k[x]}),_.attr({text:$.call(C,C)}),_.getBBox().width<n.getSlotWidth(e)-2*g.padding)return;_.attr({text:""})}:void 0,b&&n._addedPlotLB&&e.moveLabel(i,g),a(_)||e.movedLabel?_&&_.textStr!==i&&!b&&(!_.textWidth||g.style.width||_.styles.width||_.css({width:null}),_.attr({text:i}),_.textPxLength=_.getBBox().width):(e.label=_=e.createLabel({x:0,y:0},i,g),e.rotation=0)},e.prototype.createLabel=function(t,e,n){var i=this.axis,r=i.chart;return(t=a(e)&&n.enabled?r.renderer.text(e,t.x,t.y,n.useHTML).add(i.labelGroup):null)&&(r.styledMode||t.css(u(n.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){s(this,this.axis)},e.prototype.getPosition=function(t,e,n,i){var a=this.axis,s=a.chart,l=i&&s.oldChartHeight||s.chartHeight;return(t={x:t?o(a.translate(e+n,null,null,i)+a.transB):a.left+a.offset+(a.opposite?(i&&s.oldChartWidth||s.chartWidth)-a.right-a.left:0),y:t?l-a.bottom+a.offset-(a.opposite?a.height:0):o(l-a.translate(e+n,null,null,i)-a.transB)}).y=r(t.y,-1e5,1e5),c(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,n,r,o,s,l,d){var u=this.axis,h=u.transA,p=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,f=u.staggerLines,g=u.tickRotCorr||{x:0,y:0},m=r||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),v={},y=o.y;return a(y)||(y=0===u.side?n.rotation?-8:-n.getBBox().height:2===u.side?g.y+8:Math.cos(n.rotation*i)*(g.y-n.getBBox(!1,0).height/2)),t=t+o.x+m+g.x-(s&&r?s*h*(p?-1:1):0),e=e+y-(s&&!r?s*h*(p?1:-1):0),f&&(n=l/(d||1)%f,u.opposite&&(n=f-n-1),e+=u.labelOffset/f*n),v.x=t,v.y=Math.round(e),c(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:s,index:l}),v},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,n,i,r,o){return o.crispLine([["M",t,e],["L",t+(r?0:-n),e+(r?n:0)]],i)},e.prototype.handleOverflow=function(t){var e=this.axis,n=e.options.labels,r=t.x,o=e.chart.chartWidth,a=e.chart.spacing,s=p(e.labelLeft,Math.min(e.pos,a[3]));a=p(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-a[1]));var l,c=this.label,d=this.rotation,u={left:0,center:.5,right:1}[e.labelAlign||c.attr("align")],h=c.getBBox().width,f=e.getSlotWidth(this),g={},m=f,v=1;d||"justify"!==n.overflow?0>d&&r-u*h<s?l=Math.round(r/Math.cos(d*i)-s):0<d&&r+u*h>a&&(l=Math.round((o-r)/Math.cos(d*i))):(o=r+(1-u)*h,r-u*h<s?m=t.x+m*(1-u)-s:o>a&&(m=a-t.x+m*u,v=-1),(m=Math.min(f,m))<f&&"center"===e.labelAlign&&(t.x+=v*(f-m-u*(f-Math.min(h,m)))),(h>m||e.autoRotation&&(c.styles||{}).width)&&(l=m)),l&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(l)+"px",(n.style||{}).textOverflow||(g.textOverflow="ellipsis"),c.css(g)))},e.prototype.moveLabel=function(t,e){var n=this,i=n.label,r=n.axis,o=r.reversed,a=!1;if(i&&i.textStr===t?(n.movedLabel=i,a=!0,delete n.label):h(r.ticks,(function(e){a||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,a=!0,e.labelPos=n.movedLabel.xy,delete e.label)})),!a&&(n.labelPos||i)){var s=n.labelPos||i.xy;i=r.horiz?o?0:r.width+r.left:s.x,r=r.horiz?s.y:o?r.width+r.left:0,n.movedLabel=n.createLabel({x:i,y:r},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,n){var i=this.axis,r=i.horiz,o=this.pos,a=p(this.tickmarkOffset,i.tickmarkOffset);a=(o=this.getPosition(r,o,a,e)).x;var s=o.y;i=r&&a===i.pos+i.len||!r&&s===i.pos?-1:1,r=p(n,this.label&&this.label.newOpacity,1),n=p(n,1),this.isActive=!0,this.renderGridLine(e,n,i),this.renderMark(o,n,i),this.renderLabel(o,e,r,t),this.isNew=!1,c(this,"afterRender")},e.prototype.renderGridLine=function(t,e,n){var i=this.axis,r=i.options,o={},a=this.pos,s=this.type,l=p(this.tickmarkOffset,i.tickmarkOffset),c=i.chart.renderer,d=this.gridLine,u=r.gridLineWidth,h=r.gridLineColor,f=r.gridLineDashStyle;"minor"===this.type&&(u=r.minorGridLineWidth,h=r.minorGridLineColor,f=r.minorGridLineDashStyle),d||(i.chart.styledMode||(o.stroke=h,o["stroke-width"]=u||0,o.dashstyle=f),s||(o.zIndex=1),t&&(e=0),this.gridLine=d=c.path().attr(o).addClass("highcharts-"+(s?s+"-":"")+"grid-line").add(i.gridGroup)),d&&(n=i.getPlotLinePath({value:a+l,lineWidth:d.strokeWidth()*n,force:"pass",old:t}))&&d[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},e.prototype.renderMark=function(t,e,n){var i=this.axis,r=i.options,o=i.chart.renderer,a=this.type,s=i.tickSize(a?a+"Tick":"tick"),l=t.x;t=t.y;var c=p(r["minor"!==a?"tickWidth":"minorTickWidth"],!a&&i.isXAxis?1:0);r=r["minor"!==a?"tickColor":"minorTickColor"];var d=this.mark,u=!d;s&&(i.opposite&&(s[0]=-s[0]),d||(this.mark=d=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||d.attr({stroke:r,"stroke-width":c})),d[u?"attr":"animate"]({d:this.getMarkPath(l,t,s[0],d.strokeWidth()*n,i.horiz,o),opacity:e}))},e.prototype.renderLabel=function(t,e,n,i){var r=this.axis,o=r.horiz,a=r.options,s=this.label,l=a.labels,c=l.step;r=p(this.tickmarkOffset,r.tickmarkOffset);var u=t.x;t=t.y;var h=!0;s&&d(u)&&(s.xy=t=this.getLabelPosition(u,t,s,o,l,r,i,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?h=!1:!o||l.step||l.rotation||e||0===n||this.handleOverflow(t),c&&i%c&&(h=!1),h&&d(t.y)?(t.opacity=n,s[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(s.attr("y",-9999),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,n=e.reversed;if(t&&!this.isNew){var i=e.horiz?n?e.left:e.width+e.left:t.xy.x;n=e.horiz?t.xy.y:n?e.width+e.top:e.top,t.animate({x:i,y:n,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}()})),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s){var l=t.animObject,c=i.defaultOptions,d=r.registerEventOptions,u=o.deg2rad,h=s.arrayMax,p=s.arrayMin,f=s.clamp,g=s.correctFloat,m=s.defined,v=s.destroyObjectProperties,y=s.erase,b=s.error,x=s.extend,_=s.fireEvent,O=s.getMagnitude,w=s.isArray,C=s.isNumber,$=s.isString,k=s.merge,S=s.normalizeTickInterval,E=s.objectEach,j=s.pick,A=s.relativeLength,P=s.removeEvent,M=s.splat,T=s.syncTimeout;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var n=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?"xAxis":"yAxis"),_(this,"init",{userOptions:e}),this.opposite=j(e.opposite,this.opposite),this.side=j(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var i=this.options,r=i.labels,o=i.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=j(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===o||!0===i.categories,this.categories=i.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.min=this.max=null,e=j(i.crosshair,M(t.options.tooltip.crosshairs)[n?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=C(r.rotation)?r.rotation:void 0,d(this,i),_(this,"afterInit")},t.prototype.setOptions=function(t){this.options=k(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],k(c[this.coll],t)),_(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var n=C(this.value)?this.value:NaN,i=e.chart.time,r=this.dateTimeLabelFormat,o=c.lang,a=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var s=e.logarithmic?Math.abs(n):e.tickInterval,l=a&&a.length;if(e.categories)var d=""+this.value;else if(r)d=i.dateFormat(r,n);else if(l&&1e3<=s)for(;l--&&void 0===d;)s>=(e=Math.pow(o,l+1))&&0==10*n%e&&null!==a[l]&&0!==n&&(d=t(n/e,-1)+a[l]);return void 0===d&&(d=1e4<=Math.abs(n)?t(n,-1):t(n,-1,void 0,"")),d},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;_(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(i){if(i.visible||!n.options.chart.ignoreHiddenSeries){var r=i.options,o=r.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((r=i.xData).length){r=e.logarithmic?r.filter(e.validatePositiveValue):r;var a=(t=i.getXExtremes(r)).min,s=t.max;C(a)||a instanceof Date||(r=r.filter(C),a=(t=i.getXExtremes(r)).min,s=t.max),r.length&&(e.dataMin=Math.min(j(e.dataMin,a),a),e.dataMax=Math.max(j(e.dataMax,s),s))}}else i=i.applyExtremes(),C(i.dataMin)&&(a=i.dataMin,e.dataMin=Math.min(j(e.dataMin,a),a)),C(i.dataMax)&&(s=i.dataMax,e.dataMax=Math.max(j(e.dataMax,s),s)),m(o)&&(e.threshold=o),(!r.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),_(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,i,r,o){var a=this.linkedParent||this,s=i&&a.old?a.old.min:a.min,l=a.minPixelPadding;r=(a.isOrdinal||a.brokenAxis&&a.brokenAxis.hasBreaks||a.logarithmic&&r)&&a.lin2val;var c=1,d=0;return(i=i&&a.old?a.old.transA:a.transA)||(i=a.transA),n&&(c*=-1,d=a.len),a.reversed&&(d-=(c*=-1)*(a.sector||a.len)),e?(t=(t*c+d-l)/i+s,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),t=C(s)?c*(t-s)*i+d+c*l+(C(o)?i*o:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,n){return("pass"!==b&&t<e||t>n)&&(b?t=f(t,e,n):a=!0),t}var n,i,r,o,a,s=this,l=s.chart,c=s.left,d=s.top,u=t.old,h=t.value,p=t.lineWidth,g=u&&l.oldChartHeight||l.chartHeight,m=u&&l.oldChartWidth||l.chartWidth,v=s.transB,y=t.translatedValue,b=t.force;return t={value:h,lineWidth:p,old:u,force:b,acrossPanes:t.acrossPanes,translatedValue:y},_(this,"getPlotLinePath",t,(function(t){y=j(y,s.translate(h,null,null,u)),y=f(y,-1e5,1e5),n=r=Math.round(y+v),i=o=Math.round(g-y-v),C(y)?s.horiz?(i=d,o=g-s.bottom,n=r=e(n,c,c+s.width)):(n=c,r=m-s.right,i=o=e(i,d,d+s.height)):(a=!0,b=!1),t.path=a&&!b?null:l.renderer.crispLine([["M",n,i],["L",r,o]],p||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var i=g(Math.floor(e/t)*t);n=g(Math.ceil(n/t)*t);var r,o=[];if(g(i+t)===i&&(r=20),this.single)return[e];for(e=i;e<=n&&(o.push(e),(e=g(e+t,r))!==a);)var a=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?j(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,i=this.pointRangePadding||0,r=this.min-i,o=(i=this.max+i)-r,a=[];if(o&&o/n<this.len/3){var s=this.logarithmic;if(s)this.paddedTicks.forEach((function(t,e,i){e&&a.push.apply(a,s.getLogTickPositions(n,i[e-1],i[e],!0))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())a=a.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),r,i,t.startOfWeek));else for(t=r+(e[0]-r)%n;t<=i&&t!==a[0];t+=n)a.push(t)}return 0!==a.length&&this.trimTicks(a),a},t.prototype.adjustForMinRange=function(){var t,e,n,i,r=this.options,o=this.logarithmic,a=this.min,s=this.max,l=0;if(this.isXAxis&&void 0===this.minRange&&!o&&(m(r.min)||m(r.max)||m(r.floor)||m(r.ceiling)?this.minRange=null:(this.series.forEach((function(r){if(n=r.xData,i=r.xIncrement?1:n.length-1,1<n.length)for(t=i;0<t;t--)e=n[t]-n[t-1],(!l||e<l)&&(l=e)})),this.minRange=Math.min(5*l,this.dataMax-this.dataMin))),s-a<this.minRange){var c=this.dataMax-this.dataMin>=this.minRange,d=this.minRange,u=(d-s+a)/2;u=[a-u,j(r.min,a-u)],c&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),s=[(a=h(u))+d,j(r.max,a+d)],c&&(s[2]=o?o.log2lin(this.dataMax):this.dataMax),(s=p(s))-a<d&&(u[0]=s-d,u[1]=j(r.min,s-d),a=h(u))}this.min=a,this.max=s},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach((function(e){var n=e.closestPointRange,i=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&m(n)&&i&&(t=m(t)?Math.min(t,n):n)})),t},t.prototype.nameToX=function(t){var e=w(this.categories),n=e?this.categories:this.names,i=t.options.x;if(t.series.requireSorting=!1,m(i)||(i=this.options.uniqueNames?e?n.indexOf(t.name):j(n.keys[t.name],-1):t.series.autoIncrement()),-1===i){if(!e)var r=n.length}else r=i;return void 0!==r&&(this.names[r]=t.name,this.names.keys[t.name]=r),r},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(n,i){if(n&&n.options&&void 0!==n.name){var r=t.nameToX(n);void 0!==r&&r!==n.x&&(n.x=r,e.xData[i]=r)}}))})))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,n=t.linkedParent,i=!!t.categories,r=t.isXAxis,o=t.axisPointRange||0,a=0,s=0,l=t.transA;if(r||i||o){var c=t.getClosest();n?(a=n.minPointOffset,s=n.pointRangePadding):t.series.forEach((function(e){var n=i?1:r?j(e.options.pointRange,c,0):t.axisPointRange||0,l=e.options.pointPlacement;o=Math.max(o,n),t.single&&!i||(e=e.is("xrange")?!r:r,a=Math.max(a,e&&$(l)?0:n/2),s=Math.max(s,e&&"on"===l?0:n))})),n=t.ordinal&&t.ordinal.slope&&c?t.ordinal.slope/c:1,t.minPointOffset=a*=n,t.pointRangePadding=s*=n,t.pointRange=Math.min(o,t.single&&i?1:e),r&&(t.closestPointRange=c)}t.translationSlope=t.transA=l=t.staticScale||t.len/(e+s||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=l*a,_(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,n=this.logarithmic,i=this.options,r=this.isXAxis,o=this.isLinked,a=i.tickPixelInterval,s=this.categories,l=this.softThreshold,c=i.maxPadding,d=i.minPadding,u=C(i.tickInterval)&&0<=i.tickInterval?i.tickInterval:void 0,h=C(this.threshold)?this.threshold:null;this.dateTime||s||o||this.getTickAmount();var p=j(this.userMin,i.min),f=j(this.userMax,i.max);if(o){this.linkedParent=e[this.coll][i.linkedTo];var v=this.linkedParent.getExtremes();this.min=j(v.min,v.dataMin),this.max=j(v.max,v.dataMax),i.type!==this.linkedParent.options.type&&b(11,1,e)}else{if(l&&m(h))if(this.dataMin>=h)v=h,d=0;else if(this.dataMax<=h){var y=h;c=0}this.min=j(p,v,this.dataMin),this.max=j(f,y,this.dataMax)}if(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,j(this.dataMin,this.min))&&b(10,1,e),this.min=g(n.log2lin(this.min),16),this.max=g(n.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=p=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),_(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(s||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(p)&&d&&(this.min-=e*d),!m(f)&&c&&(this.max+=e*c)),C(this.userMin)||(C(i.softMin)&&i.softMin<this.min&&(this.min=p=i.softMin),C(i.floor)&&(this.min=Math.max(this.min,i.floor))),C(this.userMax)||(C(i.softMax)&&i.softMax>this.max&&(this.max=f=i.softMax),C(i.ceiling)&&(this.max=Math.min(this.max,i.ceiling))),l&&m(this.dataMin)&&(h=h||0,!m(p)&&this.min<h&&this.dataMin>=h?this.min=this.options.minRange?Math.min(h,this.max-this.minRange):h:!m(f)&&this.max>h&&this.dataMax<=h&&(this.max=this.options.minRange?Math.max(h,this.min+this.minRange):h)),C(this.min)&&C(this.max)&&!this.chart.polar&&this.min>this.max&&(m(this.options.min)?this.max=this.min:m(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:o&&this.linkedParent&&!u&&a===this.linkedParent.options.tickPixelInterval?u=this.linkedParent.tickInterval:j(u,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,s?1:(this.max-this.min)*a/Math.max(this.len,a)),r&&!t){var x=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(x)})),_(this,"postProcessData",{hasExtemesChanged:x})}this.setAxisTranslation(),_(this,"initialAxisTranslation"),this.pointRange&&!u&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=j(i.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!u&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||u||(this.tickInterval=S(this.tickInterval,void 0,O(this.tickInterval),j(i.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,n=this.getMinorTickInterval(),i=this.hasVerticalPanning(),r="colorAxis"===this.coll,o=(r||!i)&&t.startOnTick;i=(r||!i)&&t.endOnTick,r=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=n=e&&e.slice(),!n&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?n=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(n=[this.min,this.max],b(19,!1,this.chart)),n.length>this.len&&((n=[n[0],n.pop()])[0]===n[1]&&(n.length=1)),this.tickPositions=n,r&&(r=r.apply(this,[this.min,this.max])))&&(this.tickPositions=n=r),this.paddedTicks=n.slice(0),this.trimTicks(n,o,i),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||r||this.adjustTickAmount()),_(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var i=t[0],r=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(_(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==i)this.min=i;else for(;this.min-o>t[0];)t.shift();if(n)this.max=r;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&m(i)&&!this.options.tickPositions&&t.push((r+i)/2)}},t.prototype.alignToOthers=function(){var t,e={},n=this.options;return!1!==this.chart.options.chart.alignTicks&&n.alignTicks&&!1!==n.startOnTick&&!1!==n.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach((function(n){var i=n.options;i=[n.horiz?i.left:i.top,i.width,i.height,i.pane].join(),n.series.length&&(e[i]?t=!0:e[i]=1)})),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,n=t.tickAmount;!m(t.tickInterval)&&!n&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/e)+1),4>n&&(this.finalTickAmt=n,n=5),this.tickAmount=n},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,n=this.tickPositions,i=this.tickAmount,r=this.finalTickAmt,o=n&&n.length,a=j(this.threshold,this.softThreshold?0:null);if(this.hasData()&&C(this.min)&&C(this.max)){if(o<i){for(;n.length<i;)n.length%2||this.min===a?n.push(g(n[n.length-1]+e)):n.unshift(g(n[0]-e));this.transA*=(o-1)/(i-1),this.min=t.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=t.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else o>i&&(this.tickInterval*=2,this.setTickPositions());if(m(r)){for(e=t=n.length;e--;)(3===r&&1==e%2||2>=r&&0<e&&e<t-1)&&n.splice(e,1);this.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach((function(n){t=t||n.isDirtyData||n.isDirty,e=e||n.xAxis&&n.xAxis.isDirty||!1})),this.setAxisSize();var n=this.len!==(this.old&&this.old.len);n||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=n||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),_(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,n,i,r){var o=this,a=o.chart;n=j(n,!0),o.series.forEach((function(t){delete t.kdTree})),r=x(r,{min:t,max:e}),_(o,"setExtremes",r,(function(){o.userMin=t,o.userMax=e,o.eventArgs=r,n&&a.redraw(i)}))},t.prototype.zoom=function(t,e){var n=this,i=this.dataMin,r=this.dataMax,o=this.options,a=Math.min(i,j(o.min,i)),s=Math.max(r,j(o.max,r));return _(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,o=t.newMax;e===n.min&&o===n.max||(n.allowZoomOutside||(m(i)&&(e<a&&(e=a),e>s&&(e=s)),m(r)&&(o<a&&(o=a),o>s&&(o=s))),n.displayBtn=void 0!==e||void 0!==o,n.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],i=this.horiz,r=this.width=Math.round(A(j(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),o=this.height=Math.round(A(j(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),a=this.top=Math.round(A(j(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(A(j(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-r-e,this.len=Math.max(i?r:o,0),this.pos=i?e:a},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,n=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=n:1/0===t?t=e:n>t?t=n:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(j(t,0)-90*this.side+720)%360;return _(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,n=j(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),i=e["tick"===t?"tickLength":"minorTickLength"];if(n&&i){"inside"===e[t+"Position"]&&(i=-i);var r=[i,n]}return _(this,"afterTickSize",t={tickSize:r}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,n=this.options.labels,i=this.horiz,r=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/r),a=n.rotation,s=this.labelMetrics(),l=Math.max(this.max-this.min,0),c=function(t){var e=t/(o||1);return(e=1<e?Math.ceil(e):1)*r>l&&1/0!==t&&1/0!==o&&l&&(e=Math.ceil(l/r)),g(e*r)},d=r,h=Number.MAX_VALUE;if(i){if(!n.staggerLines&&!n.step)if(C(a))var p=[a];else o<n.autoRotationLimit&&(p=n.autoRotation);p&&p.forEach((function(n){if(n===a||n&&-90<=n&&90>=n){var i=(e=c(Math.abs(s.h/Math.sin(u*n))))+Math.abs(n/360);i<h&&(h=i,t=n,d=e)}}))}else n.step||(d=c(s.h));return this.autoRotation=p,this.labelRotation=j(t,C(a)?a:0),d},t.prototype.getSlotWidth=function(t){var e=this.chart,n=this.horiz,i=this.options.labels,r=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];if(t&&C(t.slotWidth))return t.slotWidth;if(n&&2>i.step)return i.rotation?0:(this.staggerLines||1)*this.len/r;if(!n){if(void 0!==(t=i.style.width))return parseInt(String(t),10);if(o)return o-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,i=this.ticks,r=this.options.labels,o=r.style,a=this.horiz,s=this.getSlotWidth(),l=Math.max(1,Math.round(s-2*r.padding)),c={},d=this.labelMetrics(),u=o.textOverflow,h=0;if($(r.rotation)||(c.rotation=r.rotation||0),n.forEach((function(t){(t=i[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>h&&(h=t.label.textPxLength)})),this.maxLabelLength=h,this.autoRotation)h>l&&h>d.h?c.rotation=this.labelRotation:this.labelRotation=0;else if(s){var p=l;if(!u){var f="clip";for(l=n.length;!a&&l--;){var g=n[l];(g=i[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>s&&g.css({width:s+"px"}),g.getBBox().height>this.len/n.length-(d.h-d.f)&&(g.specificTextOverflow="ellipsis"))}}}c.rotation&&(p=h>.5*t.chartHeight?.33*t.chartHeight:h,u||(f="ellipsis")),(this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation))&&(c.align=this.labelAlign),n.forEach((function(t){var e=(t=i[t])&&t.label,n=o.width,r={};e&&(e.attr(c),t.shortenLabel?t.shortenLabel():p&&!n&&"nowrap"!==o.whiteSpace&&(p<e.textPxLength||"SPAN"===e.element.tagName)?(r.width=p+"px",u||(r.textOverflow=e.specificTextOverflow||f),e.css(r)):e.styles&&e.styles.width&&!r.width&&!n&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=c.rotation)}),this),this.tickRotCorr=e.rotCorr(d.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&m(this.min)&&m(this.max)},t.prototype.addTitle=function(t){var e,n=this.chart.renderer,i=this.horiz,r=this.opposite,o=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(i?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[o.align]),this.axisTitle=n.text(o.text||"",0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(k(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||o.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new a(this,t)},t.prototype.getOffset=function(){var t=this,e=this,n=e.chart,i=e.horiz,r=e.options,o=e.side,a=e.ticks,s=e.tickPositions,l=e.coll,c=e.axisParent,d=n.renderer,u=n.inverted&&!e.isZAxis?[1,0,3,2][o]:o,h=e.hasData(),p=r.title,f=r.labels,g=n.axisOffset;n=n.clipOffset;var v,y=[-1,1,1,-1][o],b=r.className,x=0,O=0,w=0;if(e.showAxis=v=h||r.showEmpty,e.staggerLines=e.horiz&&f.staggerLines||void 0,!e.axisGroup){var C=function(e,n,i){return d.g(e).attr({zIndex:i}).addClass("highcharts-"+l.toLowerCase()+n+" "+(t.isRadial?"highcharts-radial-axis"+n+" ":"")+(b||"")).add(c)};e.gridGroup=C("grid","-grid",r.gridZIndex),e.axisGroup=C("axis","",r.zIndex),e.labelGroup=C("axis-labels","-labels",f.zIndex)}if(h||e.isLinked?(s.forEach((function(t){e.generateTick(t)})),e.renderUnsquish(),e.reserveSpaceDefault=0===o||2===o||{1:"left",3:"right"}[o]===e.labelAlign,j(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&s.forEach((function(t){w=Math.max(a[t].getLabelSize(),w)})),e.staggerLines&&(w*=e.staggerLines),e.labelOffset=w*(e.opposite?-1:1)):E(a,(function(t,e){t.destroy(),delete a[e]})),p&&p.text&&!1!==p.enabled&&(e.addTitle(v),v&&!1!==p.reserveSpace)){e.titleOffset=x=e.axisTitle.getBBox()[i?"height":"width"];var $=p.offset;O=m($)?0:j(p.margin,i?5:10)}e.renderLine(),e.offset=y*j(r.offset,g[o]?g[o]+(r.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},p=0===o?-e.labelMetrics().h:2===o?e.tickRotCorr.y:0,h=Math.abs(w)+O,w&&(h=h-p+y*(i?j(f.y,e.tickRotCorr.y+8*y):f.x)),e.axisTitleMargin=j($,h),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(a,s)),"colorAxis"!==l&&(i=this.tickSize("tick"),g[o]=Math.max(g[o],(e.axisTitleMargin||0)+x+y*e.offset,h,s&&s.length&&i?i[0]+y*e.offset:0),r=!e.axisLine||r.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),n[u]=Math.max(n[u],r)),_(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,n=this.opposite,i=this.offset,r=this.horiz,o=this.left+(n?this.width:0)+i;return i=e.chartHeight-this.bottom-(n?this.height:0)+i,n&&(t*=-1),e.renderer.crispLine([["M",r?this.left:o,r?i:this.top],["L",r?e.chartWidth-this.right:o,r?i:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,n=this.top,i=this.len,r=this.options.title,o=t?e:n,a=this.opposite,s=this.offset,l=r.x,c=r.y,d=this.axisTitle,u=this.chart.renderer.fontMetrics(r.style.fontSize,d);return d=Math.max(d.getBBox(null,0).height-u.h-1,0),i={low:o+(t?0:i),middle:o+i/2,high:o+(t?i:0)}[r.align],e=(t?n+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+[-d,d,u.f,-d][this.side],t={x:t?i+l:e+(a?this.width:0)+s+l,y:t?e+c-(a?this.height:0)+s:i+c},_(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var n=this.minorTicks;n[t]||(n[t]=new a(this,t,"minor")),e&&n[t].isNew&&n[t].render(null,!0),n[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,n){var i=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(i[t]||(i[t]=new a(this,t)),n&&i[t].isNew&&i[t].render(e,!0,-1),i[t].render(e))},t.prototype.render=function(){var t,e,n=this,i=n.chart,r=n.logarithmic,s=n.options,c=n.isLinked,d=n.tickPositions,u=n.axisTitle,h=n.ticks,p=n.minorTicks,f=n.alternateBands,g=s.stackLabels,m=s.alternateGridColor,v=n.tickmarkOffset,y=n.axisLine,b=n.showAxis,x=l(i.renderer.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[h,p,f].forEach((function(t){E(t,(function(t){t.isActive=!1}))})),n.hasData()||c){var O=n.chart.hasRendered&&n.old&&C(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t,O)})),d.length&&(d.forEach((function(t,e){n.renderTick(t,e,O)})),v&&(0===n.min||n.single)&&(h[-1]||(h[-1]=new a(n,-1,null,!0)),h[-1].render(-1))),m&&d.forEach((function(a,s){e=void 0!==d[s+1]?d[s+1]+v:n.max-v,0==s%2&&a<n.max&&e<=n.max+(i.polar?-v:v)&&(f[a]||(f[a]=new o.PlotLineOrBand(n)),t=a+v,f[a].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:m,className:"highcharts-alternate-grid"},f[a].render(),f[a].isActive=!0)})),n._addedPlotLB||(n._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach((function(t){n.addPlotBandOrLine(t)})))}[h,p,f].forEach((function(t){var e=[],n=x.duration;E(t,(function(t,n){t.isActive||(t.render(n,!1,0),t.isActive=!1,e.push(n))})),T((function(){for(var n=e.length;n--;)t[e[n]]&&!t[e[n]].isActive&&(t[e[n]].destroy(),delete t[e[n]])}),t!==f&&i.hasRendered&&n?n:0)})),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[b?"show":"hide"](b)),u&&b&&(s=n.getTitlePosition(),C(s.y)?(u[u.isNew?"attr":"animate"](s),u.isNew=!1):(u.attr("y",-9999),u.isNew=!0)),g&&g.enabled&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,_(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,n=e.plotLinesAndBands,i=this.eventOptions;if(_(this,"destroy",{keepEvents:t}),t||P(e),[e.ticks,e.minorTicks,e.alternateBands].forEach((function(t){v(t)})),n)for(t=n.length;t--;)n[t].destroy();for(var r in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){e[t]&&(e[t]=e[t].destroy())})),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[r]=e.plotLinesAndBandsGroups[r].destroy();E(e,(function(t,n){-1===e.getKeepProps().indexOf(n)&&delete e[n]})),this.eventOptions=i},t.prototype.drawCrosshair=function(t,e){var i,r=this.crosshair,o=j(r&&r.snap,!0),a=this.chart,s=this.cross;if(_(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),r&&!1!==(m(e)||!o)){if(o?m(e)&&(i=j("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):i=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),m(i)){var l={value:e&&(this.isXAxis?e.x:j(e.stackY,e.y)),translatedValue:i};a.polar&&x(l,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),l=this.getPlotLinePath(l)||null}if(!m(l))return void this.hideCrosshair();o=this.categories&&!this.isRadial,s||(this.cross=s=a.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+(r.className||"")).attr({zIndex:j(r.zIndex,2)}).add(),a.styledMode||(s.attr({stroke:r.color||(o?n.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":j(r.width,1)}).css({"pointer-events":"none"}),r.dashStyle&&s.attr({dashstyle:r.dashStyle}))),s.show().attr({d:l}),o&&!r.width&&s.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();_(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),_(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return C(t)&&0<t},t.prototype.update=function(t,e){var n=this.chart;t=k(this.userOptions,t),this.destroy(!0),this.init(n,t),n.isDirtyBox=!0,j(e,!0)&&n.redraw()},t.prototype.remove=function(t){for(var e=this.chart,n=this.coll,i=this.series,r=i.length;r--;)i[r]&&i[r].remove(!1);y(e.axes,this),y(e[n],this),e[n].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,j(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}()})),e(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.getMagnitude,r=t.normalizeTickInterval,o=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function a(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new l(this))}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,n(t,"init",a)),t};var l=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=n[n.length-1];var a,s=o[e[0]],l=e[1];for(a=0;a<n.length&&(e=n[a],s=o[e[0]],l=e[1],!(n[a+1]&&t<=(s*l[l.length-1]+o[n[a+1][0]])/2));a++);return s===o.year&&t<5*s&&(l=[1,2,5]),{unitRange:s,count:t=r(t/s,l,"year"===e[0]?Math.max(i(t/s),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var n=this.axis;return n.closestPointRange?n.chart.time.getDateFormat(n.closestPointRange,t,n.options.startOfWeek,e)||e.year:e.day},t}();t.Additions=l}(e||(e={})),e})),e(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.getMagnitude,r=t.normalizeTickInterval,o=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new l(this))}function a(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.keepProps.push("logarithmic"),n(t,"init",e),n(t,"afterInit",a)),t};var l=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,n,a){var s=this.axis,l=s.len,c=s.options,d=[];if(a||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),d=s.getLinearTickPositions(t,e,n);else if(.08<=t){var u,h=Math.floor(e),p=c=void 0;for(l=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];h<n+1&&!p;h++){var f=l.length;for(u=0;u<f&&!p;u++){var g=this.log2lin(this.lin2log(h)*l[u]);g>e&&(!a||c<=n)&&void 0!==c&&d.push(c),c>n&&(p=!0),c=g}}}else e=this.lin2log(e),n=this.lin2log(n),t=a?s.getMinorTickInterval():c.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,c.tickPixelInterval/(a?5:1)*(n-e)/((a?l/s.tickPositions.length:l)||1)),t=r(t,void 0,i(t)),d=s.getLinearTickPositions(t,e,n).map(this.log2lin),a||(this.minorAutoInterval=t/5);return a||(s.tickInterval=t),d},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=l}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.erase,i=t.extend,r=t.isNumber;return function(t){var e,o=[];t.compose=function(t,n){return e||(e=t),-1===o.indexOf(n)&&(o.push(n),i(n.prototype,a.prototype)),n};var a=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,n){void 0===n&&(n=this.options);var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),o=[],a=this.horiz;if(e=!r(this.min)||!r(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),n=1,t&&i){if(e){var s=t.toString()===i.toString();n=0}for(e=0;e<t.length;e+=2){var l=t[e],c=t[e+1],d=i[e],u=i[e+1];"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==d[0]&&"L"!==d[0]||"M"!==u[0]&&"L"!==u[0]||(a&&d[1]===l[1]?(d[1]+=n,u[1]+=n):a||d[2]!==l[2]||(d[2]+=n,u[2]+=n),o.push(["M",l[1],l[2]],["L",c[1],c[2]],["L",u[1],u[2]],["L",d[1],d[2]],["Z"])),o.isFlat=s}}return o},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,n){var i=this,r=this.userOptions,o=new e(this,t);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach((function(t){i.addPlotBandOrLine(t)}))),n){var a=r[n]||[];a.push(t),r[n]=a}this.plotLinesAndBands.push(o)}return o},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,i=this.options,r=this.userOptions;if(e){for(var o=e.length;o--;)e[o].id===t&&e[o].destroy();[i.plotLines||[],r.plotLines||[],i.plotBands||[],r.plotBands||[]].forEach((function(e){for(o=e.length;o--;)(e[o]||{}).id===t&&n(e,e[o])}))}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.arrayMax,i=e.arrayMin,r=e.defined,o=e.destroyObjectProperties,a=e.erase,s=e.fireEvent,l=e.merge,c=e.objectEach,d=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(n){return t.compose(e,n)},e.prototype.render=function(){s(this,"render");var t=this,e=t.axis,n=e.horiz,i=e.logarithmic,o=t.options,a=o.color,u=d(o.zIndex,0),h=o.events,p={},f=e.chart.renderer,g=o.label,m=t.label,v=o.to,y=o.from,b=o.value,x=t.svgElem,_=[],O=r(y)&&r(v);_=r(b);var w=!x,C={class:"highcharts-plot-"+(O?"band ":"line ")+(o.className||"")},$=O?"bands":"lines";if(i&&(y=i.log2lin(y),v=i.log2lin(v),b=i.log2lin(b)),e.chart.styledMode||(_?(C.stroke=a||"#999999",C["stroke-width"]=d(o.width,1),o.dashStyle&&(C.dashstyle=o.dashStyle)):O&&(C.fill=a||"#e6ebf5",o.borderWidth&&(C.stroke=o.borderColor,C["stroke-width"]=o.borderWidth))),p.zIndex=u,$+="-"+u,(i=e.plotLinesAndBandsGroups[$])||(e.plotLinesAndBandsGroups[$]=i=f.g("plot-"+$).attr(p).add()),w&&(t.svgElem=x=f.path().attr(C).add(i)),_)_=e.getPlotLinePath({value:b,lineWidth:x.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!O)return;_=e.getPlotBandPath(y,v,o)}return!t.eventsAdded&&h&&(c(h,(function(e,n){x.on(n,(function(e){h[n].apply(t,[e])}))})),t.eventsAdded=!0),(w||!x.d)&&_&&_.length?x.attr({d:_}):x&&(_?(x.show(!0),x.animate({d:_})):x.d&&(x.hide(),m&&(t.label=m=m.destroy()))),g&&(r(g.text)||r(g.formatter))&&_&&_.length&&0<e.width&&0<e.height&&!_.isFlat?(g=l({align:n&&O&&"center",x:n?!O&&4:10,verticalAlign:!n&&O&&"middle",y:n?O?16:10:O?6:-4,rotation:n&&!O&&90},g),this.renderLabel(g,_,O,u)):m&&m.hide(),t},e.prototype.renderLabel=function(t,e,r,o){var a=this.axis,s=a.chart.renderer,c=this.label;c||(this.label=c=s.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(r?"band":"line")+"-label "+(t.className||""),zIndex:o}).add(),a.chart.styledMode||c.css(l({textOverflow:"ellipsis"},t.style))),o=e.xBounds||[e[0][1],e[1][1],r?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],r?e[2][2]:e[0][2]],r=i(o),s=i(e),c.align(t,!1,{x:r,y:s,width:n(o)-r,height:n(e)-s}),c.alignValue&&"left"!==c.alignValue||c.css({width:(90===c.rotation?a.height-(c.alignAttr.y-a.top):a.width-(c.alignAttr.x-a.left))+"px"}),c.show(!0)},e.prototype.getLabelText=function(t){return r(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){a(this.axis.plotLinesAndBands,this),delete this.axis,o(this)},e}()})),e(n,"Core/Tooltip.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=t.format,a=e.doc,s=n.distribute,l=r.addEvent,c=r.clamp,d=r.css,u=r.defined,h=r.discardElement,p=r.extend,f=r.fireEvent,g=r.isArray,m=r.isNumber,v=r.isString,y=r.merge,b=r.pick,x=r.splat,_=r.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))},t.prototype.cleanSplit=function(t){this.chart.series.forEach((function(e){var n=e&&e.tt;n&&(!n.isActive||t?e.tt=n.destroy():n.isActive=!1)}))},t.prototype.defaultFormatter=function(t){var e=this.points||x(this),n=[t.tooltipFooterHeaderFormatter(e[0])];return(n=n.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),n},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),h(this.container)),r.clearTimeout(this.hideTimer),r.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var n,i,r=this.chart,o=r.pointer,a=r.inverted,s=r.plotTop,l=r.plotLeft,c=0,d=0;return t=x(t),this.followPointer&&e?(void 0===e.chartX&&(e=o.normalize(e)),o=[e.chartX-l,e.chartY-s]):t[0].tooltipPos?o=t[0].tooltipPos:(t.forEach((function(t){n=t.series.yAxis,i=t.series.xAxis,c+=t.plotX||0,d+=t.plotLow?(t.plotLow+(t.plotHigh||0))/2:t.plotY||0,i&&n&&(a?(c+=s+r.plotHeight-i.len-i.pos,d+=l+r.plotWidth-n.len-n.pos):(c+=i.pos-l,d+=n.pos-s))})),c/=t.length,d/=t.length,o=[a?r.plotWidth-d:c,a?r.plotHeight-c:d],this.shared&&1<t.length&&e&&(a?o[0]=e.chartX-l:o[1]=e.chartY-s)),o.map(Math.round)},t.prototype.getLabel=function(){var t,n=this,r=this.chart.styledMode,o=this.options,a=this.split&&this.allowShared,s="tooltip"+(u(o.className)?" "+o.className:""),c=o.style.pointerEvents||(!this.followPointer&&o.stickOnContact?"auto":"none"),h=function(){n.inContact=!0},p=function(t){var e=n.chart.hoverSeries;n.inContact=n.shouldStickOnContact()&&n.chart.pointer.inClass(t.relatedTarget,"highcharts-tooltip"),!n.inContact&&e&&e.onMouseOut&&e.onMouseOut()},f=this.chart.renderer;if(n.label){var g=!n.label.hasClass("highcharts-label");(a&&!g||!a&&g)&&n.destroy()}if(!this.label){if(this.outside){g=this.chart.options.chart.style;var m=i.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",d(t,{position:"absolute",top:"1px",pointerEvents:c,zIndex:Math.max(this.options.style.zIndex||0,(g&&g.zIndex||0)+3)}),l(t,"mouseenter",h),l(t,"mouseleave",p),e.doc.body.appendChild(t),this.renderer=f=new m(t,0,0,g,void 0,void 0,f.styledMode)}if(a?this.label=f.g(s):(this.label=f.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,s).attr({padding:o.padding,r:o.borderRadius}),r||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:c}).shadow(o.shadow)),r&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),n.outside&&!n.split){var v=this.label,y=v.xSetter,b=v.ySetter;v.xSetter=function(e){y.call(v,n.distance),t.style.left=e+"px"},v.ySetter=function(e){b.call(v,n.distance),t.style.top=e+"px"}}this.label.on("mouseenter",h).on("mouseleave",p).attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,n){var i,r=this.chart,o=this.distance,s={},l=r.inverted&&n.h||0,c=this.outside,d=c?a.documentElement.clientWidth-2*o:r.chartWidth,u=c?Math.max(a.body.scrollHeight,a.documentElement.scrollHeight,a.body.offsetHeight,a.documentElement.offsetHeight,a.documentElement.clientHeight):r.chartHeight,h=r.pointer.getChartPosition(),p=function(i){var a="x"===i;return[i,a?d:u,a?t:e].concat(c?[a?t*h.scaleX:e*h.scaleY,a?h.left-o+(n.plotX+r.plotLeft)*h.scaleX:h.top-o+(n.plotY+r.plotTop)*h.scaleY,0,a?d:u]:[a?t:e,a?n.plotX+r.plotLeft:n.plotY+r.plotTop,a?r.plotLeft:r.plotTop,a?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},f=p("y"),g=p("x");p=!!n.negative,!r.polar&&r.hoverSeries&&r.hoverSeries.yAxis&&r.hoverSeries.yAxis.reversed&&(p=!p);var m=!this.followPointer&&b(n.ttBelow,!r.inverted===p),v=function(t,e,n,i,r,a,d){var u=c?"y"===t?o*h.scaleY:o*h.scaleX:o,p=(n-i)/2,f=i<r-o,g=r+o+i<e,v=r-u-n+p;if(r=r+u-p,m&&g)s[t]=r;else if(!m&&f)s[t]=v;else if(f)s[t]=Math.min(d-i,0>v-l?v:v-l);else{if(!g)return!1;s[t]=Math.max(a,r+l+n>e?r:r+l)}},y=function(t,e,n,i,r){var a;return r<o||r>e-o?a=!1:s[t]=r<n/2?1:r>e-i/2?e-i-2:r-n/2,a},x=function(t){var e=f;f=g,g=e,i=t},_=function(){!1!==v.apply(0,f)?!1!==y.apply(0,g)||i||(x(!0),_()):i?s.x=s.y=0:(x(!0),_())};return(r.inverted||1<this.len)&&x(),_(),s},t.prototype.hide=function(t){var e=this;r.clearTimeout(this.hideTimer),t=b(t,this.options.hideDelay),this.isHidden||(this.hideTimer=_((function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0}),t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=b(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)},t.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)},t.prototype.move=function(t,e,n,i){var o=this,a=o.now,s=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(t-a.x)||1<Math.abs(e-a.y)),l=o.followPointer||1<o.len;p(a,{x:s?(2*a.x+t)/3:t,y:s?(a.y+e)/2:e,anchorX:l?void 0:s?(2*a.anchorX+n)/3:n,anchorY:l?void 0:s?(a.anchorY+i)/2:i}),o.getLabel().attr(a),o.drawTracker(),s&&(r.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){o&&o.move(t,e,n,i)}),32))},t.prototype.refresh=function(t,e){var n=this.chart,i=this.options,o=x(t),a=o[0],s=[],l=i.formatter||this.defaultFormatter,c=this.shared,d=n.styledMode,u={};if(i.enabled){r.clearTimeout(this.hideTimer),this.allowShared=!(!g(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var h=(t=this.getAnchor(t,e))[0],p=t[1];if(c&&this.allowShared?(n.pointer.applyInactiveState(o),o.forEach((function(t){t.setState("hover"),s.push(t.getLabelConfig())})),(u={x:a.category,y:a.y}).points=s):u=a.getLabelConfig(),this.len=s.length,l=l.call(u,this),c=a.series,this.distance=b(c.tooltipOptions.distance,16),!1===l)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(l,o);else{var m=h,v=p;if(e&&n.pointer.isDirectTouch&&(m=e.chartX-n.plotLeft,v=e.chartY-n.plotTop),!n.polar&&!1!==c.options.clip&&!o.some((function(t){return t.series.shouldShowTooltip(m,v)})))return void this.hide();e=this.getLabel(),i.style.width&&!d||e.css({width:this.chart.spacingBox.width+"px"}),e.attr({text:l&&l.join?l.join(""):l}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+b(a.colorIndex,c.colorIndex)),d||e.attr({stroke:i.borderColor||a.color||c.color||"#666666"}),this.updatePosition({plotX:h,plotY:p,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}f(this,"refresh")}},t.prototype.renderSplit=function(t,e){function n(t,e,n,r,o){return void 0===o&&(o=!0),n?(e=j?0:T,t=c(t-r/2,k.left,k.right-r-(i.outside?A:0))):(e-=P,t=c(t=o?t-r-w:t+w,o?t:k.left,k.right)),{x:t,y:e}}var i=this,r=i.chart,o=i.chart,l=o.chartWidth,d=o.chartHeight,u=o.plotHeight,h=o.plotLeft,f=o.plotTop,g=o.pointer,m=o.scrollablePixelsY;m=void 0===m?0:m;var y=o.scrollablePixelsX,x=o.scrollingContainer,_=(x=void 0===x?{scrollLeft:0,scrollTop:0}:x).scrollLeft;x=x.scrollTop;var O=o.styledMode,w=i.distance,C=i.options,$=i.options.positioner,k=i.outside&&"number"!=typeof y?a.documentElement.getBoundingClientRect():{left:_,right:_+l,top:x,bottom:x+d},S=i.getLabel(),E=this.renderer||r.renderer,j=!(!r.xAxis[0]||!r.xAxis[0].opposite),A=(r=g.getChartPosition()).left;r=r.top;var P=f+x,M=0,T=u-m;v(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce((function(t,r,o){if(!1!==r&&""!==r){var a=(o=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:u,series:{}}).isHeader,s=a?i:o.series;r=r.toString();var l=s.tt,d=o.isHeader,p=o.series,g="highcharts-color-"+b(o.colorIndex,p.colorIndex,"none");if(l||(l={padding:C.padding,r:C.borderRadius},O||(l.fill=C.backgroundColor,l["stroke-width"]=C.borderWidth),l=E.label("",0,0,C[d?"headerShape":"shape"],void 0,void 0,C.useHTML).addClass((d?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+g).attr(l).add(S)),l.isActive=!0,l.attr({text:r}),O||l.css(C.style).shadow(C.shadow).attr({stroke:C.borderColor||o.color||p.color||"#333333"}),r=(d=(s=s.tt=l).getBBox()).width+s.strokeWidth(),a&&(M=d.height,T+=M,j&&(P-=M)),p=void 0===(p=o.plotX)?0:p,g=void 0===(g=o.plotY)?0:g,l=o.series,o.isHeader){p=h+p;var m=f+u/2}else{var v=l.xAxis,y=l.yAxis;p=v.pos+c(p,-w,v.len+w),l.shouldShowTooltip(0,y.pos-f+g,{ignoreX:!0})&&(m=y.pos+g)}p=c(p,k.left-w,k.right+w),"number"==typeof m?(d=d.height+1,g=$?$.call(i,r,d,o):n(p,m,a,r),t.push({align:$?0:void 0,anchorX:p,anchorY:m,boxWidth:r,point:o,rank:b(g.rank,a?1:0),size:d,target:g.y,tt:s,x:g.x})):s.isActive=!1}return t}),[]),!$&&t.some((function(t){var e=(i.outside?A:0)+t.anchorX;return e<k.left&&e+t.boxWidth<k.right||e<A-k.left+t.boxWidth&&k.right-e>e}))&&(t=t.map((function(t){var e=n(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return p(t,{target:e.y,x:e.x})}))),i.cleanSplit(),s(t,T);var L=A,D=A;t.forEach((function(t){var e=t.x,n=t.boxWidth;(t=t.isHeader)||(i.outside&&A+e<L&&(L=A+e),!t&&i.outside&&L+n>D&&(D=A+e))})),t.forEach((function(t){var e=t.x,n=t.anchorX,r=t.pos,o=t.point.isHeader;if(r={visibility:void 0===r?"hidden":"inherit",x:e,y:r+P,anchorX:n,anchorY:t.anchorY},i.outside&&e<n){var a=A-L;0<a&&(o||(r.x=e+a,r.anchorX=n+a),o&&(r.x=(D-L)/2,r.anchorX=n+a))}t.tt.attr(r)})),t=i.container,m=i.renderer,i.outside&&t&&m&&(o=S.getBBox(),m.setSize(o.width+o.x,o.height+o.y,!1),t.style.left=L+"px",t.style.top=r+"px")},t.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,n=this.shared?t.hoverPoints:t.hoverPoint;if(e&&n){var i={x:0,y:0,width:0,height:0};n=this.getAnchor(n);var r=e.getBBox();n[0]+=t.plotLeft-e.translateX,n[1]+=t.plotTop-e.translateY,i.x=Math.min(0,n[0]),i.y=Math.min(0,n[1]),i.width=0>n[0]?Math.max(Math.abs(n[0]),r.width-n[0]):Math.max(Math.abs(n[0]),r.width),i.height=0>n[1]?Math.max(Math.abs(n[1]),r.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),r.height),this.tracker?this.tracker.attr(i):(this.tracker=e.renderer.rect(i).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var n=t.series,i=n.tooltipOptions,r=n.xAxis,a=r&&r.dateTime;r={isFooter:e,labelConfig:t};var s=i.xDateFormat,l=i[e?"footerFormat":"headerFormat"];return f(this,"headerFormatter",r,(function(e){a&&!s&&m(t.key)&&(s=a.getXDateFormat(t.key,i.dateTimeLabelFormats)),a&&s&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){l=l.replace("{point."+t+"}","{point."+t+":"+s+"}")})),n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=o(l,{point:t,series:n},this.chart)})),r.text},t.prototype.update=function(t){this.destroy(),y(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,y(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,n=this.options,i=e.pointer,r=this.getLabel();i=i.getChartPosition();var o=(n.positioner||this.getPosition).call(this,r.width,r.height,t),a=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(r.width+n,r.height+n,!1),1===i.scaleX&&1===i.scaleY||(d(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),a*=i.scaleX,t*=i.scaleY),a+=i.left-o.x,t+=i.top-o.y),this.move(Math.round(o.x),Math.round(o.y||0),a,t)},t}()})),e(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=e.animObject,a=n.defaultOptions,s=i.format,l=r.addEvent,c=r.defined,d=r.erase,u=r.extend,h=r.fireEvent,p=r.getNestedProperty,f=r.isArray,g=r.isFunction,m=r.isNumber,v=r.isObject,y=r.merge,b=r.objectEach,x=r.pick,_=r.syncTimeout,O=r.removeEvent,w=r.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},n=t.getGraphicalProps();n.singular.forEach((function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)})),n.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(u({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,n){var i=this.series,r=i.options.pointValKey||i.pointValKey;return t=e.prototype.optionsToObject.call(this,t),u(this,t),this.options=this.options?u(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,r&&(this.y=e.prototype.getNestedProperty.call(this,r)),this.formatPrefix=(this.isNull=x(this.isValid&&!this.isValid(),null===this.x||!m(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===n&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=void 0===n?i.autoIncrement():n:m(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(r in(e.graphic||e.dataLabel||e.dataLabels)&&(O(e),e.destroyElements()),e)e[r]=null}var e=this,n=e.series,i=n.chart;n=n.options.dataSorting;var r,a=i.hoverPoints,s=o(e.series.chart.renderer.globalAnimation);e.legendItem&&i.legend.destroyItem(e),a&&(e.setState(),d(a,e),a.length||(i.hoverPoints=null)),e===i.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),_(t,s.duration)):t(),i.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,n){var i=this,r=this.series.options;(r.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&i.importEvents(),"click"===t&&r.allowPointSelect&&(n=function(t){i.select&&i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),h(i,t,e,n)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,n=this,i=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelUpper","connector"),e=i.length;e--;){var o=i[e];n[o]&&r.singular.push(o)}return["dataLabel","connector"].forEach((function(e){var i=e+"s";t[e]&&n[i]&&r.plural.push(i)})),r},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?p(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var n,i=0;for(n=e[i];this[t]>=n.value;)n=e[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=c(this.id)?this.id:w(),this.resolveColor(),t.chart.pointCount++,h(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var n=this.series,i=n.options.keys,r=i||n.pointArrayMap||["y"],o=r.length,a={},s=0,l=0;if(m(t)||null===t)a[r[0]]=t;else if(f(t))for(!i&&t.length>o&&("string"===(n=typeof t[0])?a.name=t[0]:"number"===n&&(a.x=t[0]),s++);l<o;)i&&void 0===t[s]||(0<r[l].indexOf(".")?e.prototype.setNestedProperty(a,t[s],r[l]):a[r[l]]=t[s]),s++,l++;else"object"==typeof t&&(a=t,t.dataLabels&&(n._hasPointLabels=!0),t.marker&&(n._hasPointMarkers=!0));return a},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,n=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var i=(n=t.options.colors||t.chart.options.colors)[t.colorCounter];n=n.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===n&&(t.colorCounter=0)}else e||(i=t.color),e=t.colorIndex;this.colorIndex=x(this.options.colorIndex,e),this.color=x(this.options.color,i)},e.prototype.setNestedProperty=function(t,e,n){return n.split(".").reduce((function(t,n,i,r){return t[n]=r.length-1===i?e:v(t[n],!0)?t[n]:{},t[n]}),t),t},e.prototype.tooltipFormatter=function(t){var e=this.series,n=e.tooltipOptions,i=x(n.valueDecimals,""),r=n.valuePrefix||"",o=n.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach((function(e){e="{point."+e,(r||o)&&(t=t.replace(RegExp(e+"}","g"),r+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+i+"f}")})),s(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,n,i){function r(){a.applyOptions(t);var i=l&&a.hasDummyGraphic;i=null===a.y?!i:i,l&&i&&(a.graphic=l.destroy(),delete a.hasDummyGraphic),v(t,!0)&&(l&&l.element&&t&&t.marker&&void 0!==t.marker.symbol&&(a.graphic=l.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),o=a.index,s.updateParallelArrays(a,o),d.data[o]=v(d.data[o],!0)||v(t,!0)?a.options:x(t,d.data[o]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(c.isDirtyBox=!0),"point"===d.legendType&&(c.isDirtyLegend=!0),e&&c.redraw(n)}var o,a=this,s=a.series,l=a.graphic,c=s.chart,d=s.options;e=x(e,!0),!1===i?r():a.firePointEvent("update",{options:t},r)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var n=this,i=n.series,r=i.chart;this.selectedStaging=t=x(t,!n.selected),n.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){n.selected=n.options.selected=t,i.options.data[i.data.indexOf(n)]=n.options,n.setState(t&&"select"),e||r.getSelectedPoints().forEach((function(t){var e=t.series;t.selected&&t!==n&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,n=e.pointer;t=t?n.normalize(t):n.getChartCoordinatesFromPoint(this,e.inverted),n.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=y(t.series.options.point,t.options).events;t.events=e,b(e,(function(e,n){g(e)&&l(t,n,e)})),this.hasImportedEvents=!0}},e.prototype.setState=function(e,n){var i,r=this.series,o=this.state,s=r.options.states[e||"normal"]||{},l=a.plotOptions[r.type].marker&&r.options.marker,c=l&&!1===l.enabled,d=l&&l.states&&l.states[e||"normal"]||{},p=!1===d.enabled,f=this.marker||{},g=r.chart,v=l&&r.markerAttribs,y=r.halo,b=r.stateMarkerGraphic;if(!((e=e||"")===this.state&&!n||this.selected&&"select"!==e||!1===s.enabled||e&&(p||c&&!1===d.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)){if(this.state=e,v&&(i=r.markerAttribs(this,e)),this.graphic&&!this.hasDummyGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){var _=r.pointAttribs(this,e),O=x(g.options.chart.animation,s.animation);r.options.inactiveOtherPoints&&m(_.opacity)&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:_.opacity},O)})),this.connector&&this.connector.animate({opacity:_.opacity},O)),this.graphic.animate(_,O)}i&&this.graphic.animate(i,x(g.options.chart.animation,d.animation,l.animation)),b&&b.hide()}else e&&d&&(o=f.symbol||r.symbol,b&&b.currentSymbol!==o&&(b=b.destroy()),i&&(b?b[n?"animate":"attr"]({x:i.x,y:i.y}):o&&(r.stateMarkerGraphic=b=g.renderer.symbol(o,i.x,i.y,i.width,i.height).add(r.markerGroup),b.currentSymbol=o)),!g.styledMode&&b&&"inactive"!==this.state&&b.attr(r.pointAttribs(this,e))),b&&(b[e&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));s=s.halo,i=(b=this.graphic||b)&&b.visibility||"inherit",s&&s.size&&b&&"hidden"!==i&&!this.isCluster?(y||(r.halo=y=g.renderer.path().add(b.parentGroup)),y.show()[n?"animate":"attr"]({d:this.haloPath(s.size)}),y.attr({class:"highcharts-halo highcharts-color-"+x(this.colorIndex,r.colorIndex)+(this.className?" "+this.className:""),visibility:i,zIndex:-1}),y.point=this,g.styledMode||y.attr(u({fill:this.color||r.color,"fill-opacity":s.opacity},t.filterUserAttributes(s.attributes||{})))):y&&y.point&&y.point.haloPath&&y.animate({d:y.point.haloPath(0)},null,y.hide),h(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)},e}()})),e(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Tooltip.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=t.parse,o=e.charts,a=e.noop,s=i.addEvent,l=i.attr,c=i.css,d=i.defined,u=i.extend,h=i.find,p=i.fireEvent,f=i.isNumber,g=i.isObject,m=i.objectEach,v=i.offset,y=i.pick,b=i.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,n=[];(t||[]).forEach((function(t){e=t.series,n.push(e),e.linkedParent&&n.push(e.linkedParent),e.linkedSeries&&(n=n.concat(e.linkedSeries)),e.navigatorSeries&&n.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===n.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var n=this;this.eventsToUnbind.forEach((function(t){return t()})),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),m(n,(function(t,e){n[e]=void 0}))},t.prototype.drag=function(t){var e=this.chart,n=e.options.chart,i=this.zoomHor,o=this.zoomVert,a=e.plotLeft,s=e.plotTop,l=e.plotWidth,c=e.plotHeight,d=this.mouseDownX||0,u=this.mouseDownY||0,h=g(n.panning)?n.panning&&n.panning.enabled:n.panning,p=n.panKey&&t[n.panKey+"Key"],f=t.chartX,m=t.chartY,v=this.selectionMarker;if((!v||!v.touch)&&(f<a?f=a:f>a+l&&(f=a+l),m<s?m=s:m>s+c&&(m=s+c),this.hasDragged=Math.sqrt(Math.pow(d-f,2)+Math.pow(u-m,2)),10<this.hasDragged)){var y=e.isInsidePlot(d-a,u-s,{visiblePlotOnly:!0});!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!y||p||v||(this.selectionMarker=v=e.renderer.rect(a,s,i?1:l,o?1:c,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||v.attr({fill:n.selectionMarkerFill||r("#335cad").setOpacity(.25).get()})),v&&i&&(i=f-d,v.attr({width:Math.abs(i),x:(0<i?0:i)+d})),v&&o&&(i=m-u,v.attr({height:Math.abs(i),y:(0<i?0:i)+u})),y&&!v&&h&&e.pan(t,n.panning)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.drop=function(t){var e=this,n=this.chart,i=this.hasPinched;if(this.selectionMarker){var r=this.selectionMarker,o=r.attr?r.attr("x"):r.x,a=r.attr?r.attr("y"):r.y,s=r.attr?r.attr("width"):r.width,l=r.attr?r.attr("height"):r.height,h={originalEvent:t,xAxis:[],yAxis:[],x:o,y:a,width:s,height:l},g=!!n.mapView;(this.hasDragged||i)&&(n.axes.forEach((function(n){if(n.zoomEnabled&&d(n.min)&&(i||e[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])&&f(o)&&f(a)){var r=n.horiz,c="touchend"===t.type?n.minPixelPadding:0,u=n.toValue((r?o:a)+c);r=n.toValue((r?o+s:a+l)-c),h[n.coll].push({axis:n,min:Math.min(u,r),max:Math.max(u,r)}),g=!0}})),g&&p(n,"selection",h,(function(t){n.zoom(u(t,i?{animation:!1}:null))}))),f(n.index)&&(this.selectionMarker=this.selectionMarker.destroy()),i&&this.scaleGroups()}n&&f(n.index)&&(c(n.container,{cursor:n._cursor}),n.cancelClick=10<this.hasDragged,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,n){var i,r=this.chart,o=r.hoverPoint;return r=r.tooltip,o&&r&&r.isStickyOnContact()?o:(t.forEach((function(t){var r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,r),(r=g(t,!0)&&t.series)&&!(r=!g(i,!0))){r=i.distX-t.distX;var o=i.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(i.series.group&&i.series.group.zIndex);r=0<(0!==r&&e?r:0!==o?o:0!==a?a:i.series.index>t.series.index?-1:1)}r&&(i=t)})),i)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,i=n.xAxis;n=n.yAxis;var r=t.shapeArgs;if(i&&n){var o=y(t.clientX,t.plotX),a=t.plotY||0;return t.isNode&&r&&f(r.x)&&f(r.y)&&(o=r.x,a=r.y),e?{chartX:n.len+n.pos-a,chartY:i.len+i.pos-o}:{chartX:o+i.pos,chartY:a+n.pos}}if(r&&r.x&&r.y)return{chartX:r.x,chartY:r.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=v(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var n=t.offsetWidth;return t=t.offsetHeight,2<n&&2<t&&(this.chartPosition.scaleX=e.width/n,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,n,i,r,o){var a=[];i=!(!i||!t);var s={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:r};p(this,"beforeGetHoverData",s);var l=e&&!e.stickyTracking?[e]:n.filter((function(t){return s.filter?s.filter(t):t.visible&&!(!r&&t.directTouch)&&y(t.options.enableMouseTracking,!0)&&t.stickyTracking})),c=i||!o?t:this.findNearestKDPoint(l,r,o);return e=c&&c.series,c&&(r&&!e.noSharedTooltip?(l=n.filter((function(t){return s.filter?s.filter(t):t.visible&&!(!r&&t.directTouch)&&y(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}))).forEach((function(t){var e=h(t.points,(function(t){return t.x===c.x&&!t.isNull}));g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))})):a.push(c)),p(this,"afterGetHoverData",s={hoverPoint:c}),{hoverPoint:s.hoverPoint,hoverSeries:e,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var n;t;){if(n=l(t,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},n&&(t.tooltip=new n(t,e.tooltip),this.followTouchMove=y(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var n=t.touches,i=n?n.length?n.item(0):y(n.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),n=i.pageX-e.left,i=i.pageY-e.top,n/=e.scaleX,i/=e.scaleY,u(t,{chartX:Math.round(n),chartY:Math.round(i)})},t.prototype.onContainerClick=function(t){var e=this.chart,n=e.hoverPoint;t=this.normalize(t);var i=e.plotLeft,r=e.plotTop;e.cancelClick||(n&&this.inClass(t.target,"highcharts-tracker")?(p(n.series,"click",u(t,{point:n})),e.hoverPoint&&n.firePointEvent("click",t)):(u(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-i,t.chartY-r,{visiblePlotOnly:!0})&&p(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var n=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||n)&&(this.zoomOption(t),n&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var n=o[y(t.hoverChartIndex,-1)],i=this.chart.tooltip;i&&i.shouldStickOnContact()&&this.inClass(e.relatedTarget,"highcharts-tooltip-container")||(e=this.normalize(e),n&&(e.relatedTarget||e.toElement)&&(n.pointer.reset(),n.pointer.chartPosition=void 0),i&&!i.isHidden&&this.reset())},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var n=o[y(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,n=this.chartPosition;t=this.normalize(t,n);var i=e.tooltip;!n||i&&i.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var n=o[y(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,n=e.chart,i=e.pinchDown,r=t.touches||[],o=r.length,s=e.lastValidTouch,l=e.hasZoom,c={},d=1===o&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),h={},f=e.selectionMarker;1<o?e.initiated=!0:1===o&&this.followTouchMove&&(e.initiated=!1),l&&e.initiated&&!d&&!1!==t.cancelable&&t.preventDefault(),[].map.call(r,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(r,(function(t,e){i[e]={chartX:t.chartX,chartY:t.chartY}})),s.x=[i[0].chartX,i[1]&&i[1].chartX],s.y=[i[0].chartY,i[1]&&i[1].chartY],n.axes.forEach((function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,r=t.toPixels(Math.min(y(t.options.min,t.dataMin),t.dataMin)),o=t.toPixels(Math.max(y(t.options.max,t.dataMax),t.dataMax)),a=Math.max(r,o);e.min=Math.min(t.pos,Math.min(r,o)-i),e.max=Math.max(t.pos+t.len,a+i)}})),e.res=!0):e.followTouchMove&&1===o?this.runPointActions(e.normalize(t)):i.length&&(p(n,"touchpan",{originalEvent:t},(function(){f||(e.selectionMarker=f=u({destroy:a,touch:!0},n.plotBox)),e.pinchTranslate(i,r,c,f,h,s),e.hasPinched=l,e.scaleGroups(c,h)})),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,n,i,r,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,n,i,r,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,n,i,r,o)},t.prototype.pinchTranslateDirection=function(t,e,n,i,r,o,a,s){var l=this.chart,c=t?"x":"y",d=t?"X":"Y",u="chart"+d,h=t?"width":"height",p=l["plot"+(t?"Left":"Top")],f=l.inverted,g=l.bounds[t?"h":"v"],m=1===e.length,v=e[0][u],y=!m&&e[1][u];e=function(){"number"==typeof w&&20<Math.abs(v-y)&&(_=s||Math.abs(O-w)/Math.abs(v-y)),x=(p-O)/_+v,b=l["plot"+(t?"Width":"Height")]/_};var b,x,_=s||1,O=n[0][u],w=!m&&n[1][u];if(e(),(n=x)<g.min){n=g.min;var C=!0}else n+b>g.max&&(n=g.max-b,C=!0);C?(O-=.8*(O-a[c][0]),"number"==typeof w&&(w-=.8*(w-a[c][1])),e()):a[c]=[O,w],f||(o[c]=x-p,o[h]=b),o=f?1/_:_,r[h]=b,r[c]=n,i[f?t?"scaleY":"scaleX":"scale"+d]=_,i["translate"+d]=o*p+(O-o*v)},t.prototype.reset=function(t,e){var n=this.chart,i=n.hoverSeries,r=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,s=a&&a.shared?o:r;t&&s&&b(s).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?a&&s&&b(s).length&&(a.refresh(s),a.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):r&&(r.setState(r.state,!0),n.axes.forEach((function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)})))):(r&&r.onMouseOut(),o&&o.forEach((function(t){t.setState()})),i&&i.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=n.hoverPoints=n.hoverPoint=null)},t.prototype.runPointActions=function(e,n){var i=this.chart,r=i.tooltip&&i.tooltip.options.enabled?i.tooltip:void 0,a=!!r&&r.shared,l=n||i.hoverPoint,c=l&&l.series||i.hoverSeries;l=(n=this.getHoverData(l,c,i.series,(!e||"touchmove"!==e.type)&&(!!n||c&&c.directTouch&&this.isDirectTouch),a,e)).hoverPoint,c=n.hoverSeries;var d=n.hoverPoints;if(n=c&&c.tooltipOptions.followPointer&&!c.tooltipOptions.split,a=a&&c&&!c.noSharedTooltip,l&&(l!==i.hoverPoint||r&&r.isHidden)){if((i.hoverPoints||[]).forEach((function(t){-1===d.indexOf(t)&&t.setState()})),i.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(d),(d||[]).forEach((function(t){t.setState("hover")})),i.hoverPoint&&i.hoverPoint.firePointEvent("mouseOut"),!l.series)return;i.hoverPoints=d,i.hoverPoint=l,l.firePointEvent("mouseOver"),r&&r.refresh(a?d:l,e)}else n&&r&&!r.isHidden&&(l=r.getAnchor([{}],e),i.isInsidePlot(l[0],l[1],{visiblePlotOnly:!0})&&r.updatePosition({plotX:l[0],plotY:l[1]}));this.unDocMouseMove||(this.unDocMouseMove=s(i.container.ownerDocument,"mousemove",(function(e){var n=o[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),i.axes.forEach((function(t){var n,r=y((t.crosshair||{}).snap,!0);r&&((n=i.hoverPoint)&&n.series[t.coll]===t||(n=h(d,(function(e){return e.series[t.coll]===t})))),n||!r?t.drawCrosshair(e,n):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var n=this.chart;n.series.forEach((function(i){var r=t||i.getPlotBox();i.group&&(i.xAxis&&i.xAxis.zoomEnabled||n.mapView)&&(i.group.attr(r),i.markerGroup&&(i.markerGroup.attr(r),i.markerGroup.clip(e?n.clipRect:null)),i.dataLabelsGroup&&i.dataLabelsGroup.attr(r))})),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var n=this,i=this.chart.container,r=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(s(i,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(s(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=s(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(s(o,"scroll",(function(){delete n.chartPosition}))),o=o.parentElement;e.hasTouch&&(this.eventsToUnbind.push(s(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(s(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=s(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var n=this.chart,i=e.charts[y(t.hoverChartIndex,-1)];i&&i!==n&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(t.hoverChartIndex=n.index)},t.prototype.touch=function(t,e){var n=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var i=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));y(i,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,n=e.options.chart;e=e.inverted;var i=n.zoomType||"";/touch/.test(t.type)&&(i=y(n.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=n=/y/.test(i),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}()})),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e,n){function i(){var t=[];return t.item=function(t){return this[t]},h(f,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function r(t,n,r,o){var s=a[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,o(t),s[n]({type:r,target:t.currentTarget,preventDefault:l,touches:i()}))}var o=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=t.charts,s=t.doc,l=t.noop,c=t.win,d=n.addEvent,u=n.css,h=n.objectEach,p=n.removeEvent,f={},g=!!c.PointerEvent;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.isRequired=function(){return!(t.hasTouch||!c.PointerEvent&&!c.MSPointerEvent)},n.prototype.batchMSEvents=function(t){t(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(s,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(p),e.prototype.destroy.call(this)},n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this.hasZoom&&u(t.container,{"-ms-touch-action":"none","touch-action":"none"})},n.prototype.onContainerPointerDown=function(t){r(t,"onContainerTouchStart","touchstart",(function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},n.prototype.onContainerPointerMove=function(t){r(t,"onContainerTouchMove","touchmove",(function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY},f[t.pointerId].target||(f[t.pointerId].target=t.currentTarget)}))},n.prototype.onDocumentPointerUp=function(t){r(t,"onDocumentTouchEnd","touchend",(function(t){delete f[t.pointerId]}))},n.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(d)},n}(e)})),e(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=t.animObject,s=t.setAnimation,l=e.format;t=n.isFirefox;var c=n.marginNames;n=n.win;var d=r.distribute,u=o.addEvent,h=o.createElement,p=o.css,f=o.defined,g=o.discardElement,m=o.find,v=o.fireEvent,y=o.isNumber,b=o.merge,x=o.pick,_=o.relativeLength,O=o.stableSort,w=o.syncTimeout;return r=o.wrap,o=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),u(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=u(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=b(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var n=this.chart;this.setOptions(b(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,x(e,!0)&&n.redraw(),v(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options,i=t.legendItem,r=t.legendLine,o=t.legendSymbol,a=this.itemHiddenStyle.color;n=e?n.itemStyle.color:a;var s=e&&t.color||a,l=t.options&&t.options.marker,c={fill:s};i&&i.css({fill:n,color:n}),r&&r.attr({stroke:s}),o&&(l&&o.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=a)),o.attr(c))}v(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,n=this.options,i=n.symbolPadding,r=!n.rtl,o=t._legendItemPos;n=o[0],o=o[1];var a=t.checkbox,s=t.legendGroup;s&&s.element&&(i={translateX:r?n:this.legendWidth-n-2*i-4,translateY:o},r=function(){v(e,"afterPositionItem",{item:t})},f(s.translateY)?s.animate(i,void 0,r):(s.attr(i),r())),a&&(a.x=n,a.y=o)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&g(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,n=this.titleHeight;if(t){var i=t.translateY;this.allItems.forEach((function(r){var o=r.checkbox;if(o){var a=i+n+o.y+(this.scrollOffset||0)+3;p(o,{left:t.translateX+r.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>i-6&&a<i+e-6?"":"none"})}}),this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,n=t.title,i=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),i=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},t.prototype.setText=function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?l(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,n=e.renderer,i=this.options,r=this.symbolWidth,o=i.symbolPadding||0,a=this.itemStyle,s=this.itemHiddenStyle,l="horizontal"===i.layout?x(i.itemDistance,20):0,c=!i.rtl,d=!t.series,u=!d&&t.series.drawLegendSymbol?t.series:t,h=u.options,p=this.createCheckboxForItem&&h&&h.showCheckbox,f=i.useHTML,g=t.options.className,m=t.legendItem;h=r+o+l+(p?20:0),m||(t.legendGroup=n.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(g?" "+g:"")+(d?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=m=n.text("",c?r+o:-o,this.baseline||0,f),e.styledMode||m.css(b(t.visible?a:s)),m.attr({align:c?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=n.fontMetrics(e.styledMode?12:a.fontSize,m),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,m.attr("y",this.baseline),this.symbolHeight=i.symbolHeight||this.fontMetrics.f,i.squareSymbol&&(this.symbolWidth=x(i.symbolWidth,Math.max(this.symbolHeight,16)),h=this.symbolWidth+o+l+(p?20:0),c&&m.attr("x",this.symbolWidth+o))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,m,f)),p&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&a.width||m.css({width:(i.itemWidth||this.widthOption||e.spacingBox.width)-h+"px"}),this.setText(t),e=m.getBBox(),n=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=i.itemWidth||t.legendItemWidth||e.width+h,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||(e.height>1.5*n?e.height:n))},t.prototype.layoutItem=function(t){var e=this.options,n=this.padding,i="horizontal"===e.layout,r=t.itemHeight,o=this.itemMarginBottom,a=this.itemMarginTop,s=i?x(e.itemDistance,20):0,l=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,i&&this.itemX-n+e>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],i?this.itemX+=e:(this.itemY+=a+r+o,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-n-(t.checkbox?0:s):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var n=e&&e.options;e&&x(n.showInLegend,!f(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),v(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var n=this.chart,i=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,a){o.test(r)&&!f(t[a])&&(n[c[a]]=Math.max(n[c[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*i[a%2?"x":"y"]+x(i.margin,12)+e[a]+(n.titleOffset[a]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],n="left"===this.options.align;this.allItems.forEach((function(i){var r,o=n;if(i.yAxis){i.xAxis.options.reversed&&(o=!o),i.points&&(r=m(o?i.points:i.points.slice(0).reverse(),(function(t){return y(t.plotY)}))),o=this.itemMarginTop+i.legendItem.getBBox().height+this.itemMarginBottom;var a=i.yAxis.top-t.plotTop;i.visible?(r=r?r.plotY:i.yAxis.height,r+=a-.3*o):r=a+i.yAxis.height,e.push({target:r,size:o,item:i})}}),this),d(e,t.plotHeight).forEach((function(e){e.item._legendItemPos&&(e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos)}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.options,i=this.padding,r=this.getAllItems(),o=this.group,a=this.box;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=_(n.width,t.spacingBox.width-i);var s=t.spacingBox.width-2*i-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,o||(this.group=o=e.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(o),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),O(r,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&r.reverse(),this.allItems=r,this.display=s=!!r.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),r=(this.widthOption||this.offsetWidth)+i;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=i,a||(this.box=a=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(o),a.isNew=!0),t.styledMode||a.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0<r&&0<l&&(a[a.isNew?"attr":"animate"](a.crisp.call({},{x:0,y:0,width:r,height:l},a.strokeWidth())),a.isNew=!1),a[s?"show":"hide"](),t.styledMode&&"none"===o.getStyle("display")&&(r=l=0),this.legendWidth=r,this.legendHeight=l,s&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,n=this.options,i=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?i+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(i-=e.titleOffset[2]),i!==t.y&&(t=b(t,{y:i})),this.group.align(b(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,n,i=this,r=this.chart,o=r.renderer,a=this.options,s=a.y,l="top"===a.verticalAlign,c=this.padding,d=a.maxHeight,u=a.navigation,h=x(u.animation,!0),p=u.arrowSize||12,f=this.pages,g=this.allItems,m=function(t){"number"==typeof t?b.attr({height:t}):b&&(i.clipRect=b.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},v=function(t){return i[t]=o.circle(0,0,1.3*p).translate(p/2,p/2).add(y),r.styledMode||i[t].attr("fill","rgba(0,0,0,0.0001)"),i[t]};s=r.spacingBox.height+(l?-s:s)-c;var y=this.nav,b=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(s/=2),d&&(s=Math.min(s,d)),f.length=0,t&&0<s&&t>s&&!1!==u.enabled?(this.clipHeight=e=Math.max(s-20-this.titleHeight-c,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,g.forEach((function(t,i){var r=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),a=f.length;(!a||r-f[a-1]>e&&(n||r)!==f[a-1])&&(f.push(n||r),a++),t.pageIx=a-1,n&&(g[i-1].pageIx=a-1),i===g.length-1&&r+o-f[a-1]>e&&o<=e&&(f.push(r),t.pageIx=a),r!==n&&(n=r)})),b||(b=i.clipRect=o.clipRect(0,c,9999,0),i.contentGroup.clip(b)),m(e),y||(this.nav=y=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,p,p).add(y),v("upTracker").on("click",(function(){i.scroll(-1,h)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),r.styledMode||this.pager.css(u.style),this.pager.add(y),this.down=o.symbol("triangle-down",0,0,p,p).add(y),v("downTracker").on("click",(function(){i.scroll(1,h)}))),i.scroll(0),t=s):y&&(m(),this.nav=y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,i=this.chart,r=this.pages,o=r.length,l=this.clipHeight,c=this.options.navigation,d=this.pager,u=this.padding,h=this.currentPage+t;h>o&&(h=o),0<h&&(void 0!==e&&s(e,i),this.nav.attr({translateX:u,translateY:l+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),d.attr({text:h+"/"+o}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:h===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),i.styledMode||(this.up.attr({fill:1===h?c.inactiveColor:c.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===o?c.inactiveColor:c.activeColor}),this.downTracker.css({cursor:h===o?"default":"pointer"})),this.scrollOffset=-r[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),t=a(x(e,i.renderer.globalAnimation,!0)),w((function(){v(n,"afterScroll",{currentPage:h})}),t.duration))},t.prototype.setItemEvents=function(t,e,n){var r=this,o=r.chart.renderer.boxWrapper,a=t instanceof i,s="highcharts-legend-"+(a?"point":"series")+"-active",l=r.chart.styledMode,c=function(e){r.allItems.forEach((function(n){t!==n&&[n].concat(n.linkedSeries||[]).forEach((function(t){t.setState(e,!a)}))}))};(n?[e,t.legendSymbol]:[t.legendGroup]).forEach((function(n){n&&n.on("mouseover",(function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&o.addClass(s),l||e.css(r.options.itemHoverStyle)})).on("mouseout",(function(){r.chart.styledMode||e.css(b(t.visible?r.itemStyle:r.itemHiddenStyle)),c(""),o.removeClass(s),t.setState()})).on("click",(function(e){var n=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};o.removeClass(s),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,n):v(t,"legendItemClick",e,n)}))}))},t.prototype.createCheckboxForItem=function(t){t.checkbox=h("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),u(t.checkbox,"click",(function(e){v(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))},t}(),(/Trident\/7\.0/.test(n.navigator&&n.navigator.userAgent)||t)&&r(o.prototype,"positionItem",(function(t,e){var n=this,i=function(){e._legendItemPos&&t.call(n,e)};i(),n.bubbleLegend||setTimeout(i)})),o})),e(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/DefaultOptions.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r,o=e.defaultOptions,a=i.error,s=i.extendClass,l=i.merge;return function(e){function i(t,i){var r=o.plotOptions||{},a=i.defaultOptions;i.prototype.pointClass||(i.prototype.pointClass=n),i.prototype.type=t,a&&(r[t]=a),e.seriesTypes[t]=i}e.seriesTypes=t.seriesTypes,e.getSeries=function(t,n){void 0===n&&(n={});var i=t.options.chart;i=n.type||i.type||i.defaultSeriesType||"";var r=e.seriesTypes[i];return e||a(17,!0,t,{missingModuleFor:i}),"function"==typeof(i=new r).init&&i.init(t,n),i},e.registerSeriesType=i,e.seriesType=function(t,r,a,c,d){var u=o.plotOptions||{};return r=r||"",u[t]=l(u[r],a),i(t,s(e.seriesTypes[r]||function(){},c)),e.seriesTypes[t].prototype.type=t,d&&(e.seriesTypes[t].prototype.pointClass=s(n,d)),e.seriesTypes[t]}}(r||(r={})),r})),e(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/FormatUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/Legend.js"],n["Core/MSPointer.js"],n["Core/DefaultOptions.js"],n["Core/Pointer.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"]],(function(t,e,n,i,r,o,a,s,l,c,d,u,h,p,f){var g=t.animate,m=t.animObject,v=t.setAnimation,y=n.numberFormat,b=i.registerEventOptions,x=r.charts,_=r.doc,O=r.marginNames,w=r.svg,C=r.win,$=s.defaultOptions,k=s.defaultTime,S=d.seriesTypes,E=p.addEvent,j=p.attr,A=p.cleanRecursively,P=p.createElement,M=p.css,T=p.defined,L=p.discardElement,D=p.erase,I=p.error,N=p.extend,R=p.find,F=p.fireEvent,B=p.getStyle,z=p.isArray,W=p.isNumber,H=p.isObject,U=p.isString,Y=p.merge,G=p.objectEach,V=p.pick,X=p.pInt,q=p.relativeLength,K=p.removeEvent,Z=p.splat,J=p.syncTimeout,Q=p.uniqueKey;return t=function(){function t(t,e,n){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,n)}return t.chart=function(e,n,i){return new t(e,n,i)},t.prototype.getArgs=function(t,e,n){U(t)||t.nodeName?(this.renderTo=t,this.init(e,n)):this.init(t,e)},t.prototype.init=function(t,e){var n=t.plotOptions||{};F(this,"init",{args:arguments},(function(){var i=Y($,t),o=i.chart;G(i.plotOptions,(function(t,e){H(t)&&(t.tooltip=n[e]&&Y(n[e].tooltip)||void 0)})),i.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new h(t.time):r.time,this.numberFormatter=o.numberFormatter||y,this.styledMode=o.styledMode,this.hasCartesianSeries=o.showAxes,this.index=x.length,x.push(this),r.chartCount++,b(this,o),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,F(this,"afterInit"),this.firstRender()}))},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var n=S[e];return n||I(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new n).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var n=e.length;t<n;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,n){void 0===n&&(n={});var i=this.inverted,r=this.plotBox,o=this.plotLeft,a=this.plotTop,s=this.scrollablePlotBox,l=0,c=0;n.visiblePlotOnly&&this.scrollingContainer&&(l=(c=this.scrollingContainer).scrollLeft,c=c.scrollTop);var d=n.series;if(r=n.visiblePlotOnly&&s||r,t={x:s=n.inverted?e:t,y:e=n.inverted?t:e,isInsidePlot:!0},!n.ignoreX){var u=d&&(i?d.yAxis:d.xAxis)||{pos:o,len:1/0};(s=n.paneCoordinates?u.pos+s:o+s)>=Math.max(l+o,u.pos)&&s<=Math.min(l+o+r.width,u.pos+u.len)||(t.isInsidePlot=!1)}return!n.ignoreY&&t.isInsidePlot&&(i=d&&(i?d.xAxis:d.yAxis)||{pos:a,len:1/0},(n=n.paneCoordinates?i.pos+e:a+e)>=Math.max(c+a,i.pos)&&n<=Math.min(c+a+r.height,i.pos+i.len)||(t.isInsidePlot=!1)),F(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){F(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,i=this.pointer,r=this.legend,o=this.userOptions.legend,a=this.renderer,s=a.isHidden(),l=[],c=this.isDirtyBox,d=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&t,this),s&&this.temporaryDisplay(),this.layOutTitles(),t=n.length;t--;){var u=n[t];if(u.options.stacking||u.options.centerInCategory){var h=!0;if(u.isDirty){var p=!0;break}}}if(p)for(t=n.length;t--;)(u=n[t]).options.stacking&&(u.isDirty=!0);n.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),d=!0):o&&(o.labelFormatter||o.labelFormat)&&(d=!0)),t.isDirtyData&&F(t,"updatedData")})),d&&r&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),h&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(c=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,l.push((function(){F(t,"afterSetExtremes",N(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(c||h)&&t.redraw()})),c&&this.drawChartBox(),F(this,"predraw"),n.forEach((function(t){(c||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),i&&i.reset(!0),a.draw(),F(this,"redraw"),F(this,"render"),s&&this.temporaryDisplay(!0),l.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var n=this.series,i=R(this.axes,e)||R(this.series,e),r=0;!i&&r<n.length;r++)i=R(n[r].points||[],e);return i},t.prototype.getAxes=function(){var t=this,n=this.options,i=n.xAxis=Z(n.xAxis||{});n=n.yAxis=Z(n.yAxis||{}),F(this,"getAxes"),i.forEach((function(t,e){t.index=e,t.isX=!0})),n.forEach((function(t,e){t.index=e})),i.concat(n).forEach((function(n){new e(t,n)})),F(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce((function(t,e){return e.getPointsCollection().forEach((function(e){V(e.selectedStaging,e.selected)&&t.push(e)})),t}),[])},t.prototype.getSelectedSeries=function(){return this.series.filter((function(t){return t.selected}))},t.prototype.setTitle=function(t,e,n){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(n)},t.prototype.applyDescription=function(t,e){var n=this,i="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};i=this.options[t]=Y(!this.styledMode&&{style:i},this.options[t],e);var r=this[t];r&&e&&(this[t]=r=r.destroy()),i&&!r&&((r=this.renderer.text(i.text,0,0,i.useHTML).attr({align:i.align,class:"highcharts-"+t,zIndex:i.zIndex||4}).add()).update=function(e){n[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||r.css(i.style),this[t]=r)},t.prototype.layOutTitles=function(t){var e=[0,0,0],n=this.renderer,i=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var r,o=this[t],a=this.options[t],s=a.verticalAlign||"top";if(t="title"===t?"top"===s?-3:0:"top"===s?e[0]+2:0,o){this.styledMode||(r=a.style&&a.style.fontSize),r=n.fontMetrics(r,o).b,o.css({width:(a.width||i.width+(a.widthAdjust||0))+"px"});var l=Math.round(o.getBBox(a.useHTML).height);o.align(N({y:"bottom"===s?r:t+r,height:l},a),!1,"spacingBox"),a.floating||("top"===s?e[0]=Math.ceil(e[0]+l):"bottom"===s&&(e[2]=Math.ceil(e[2]+l)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,F(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&V(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var n=this.renderTo;T(e)||(this.containerWidth=B(n,"width")),T(t)||(this.containerHeight=B(n,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,q(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(M(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(_.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(_.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,_.body.appendChild(e)),("none"===B(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),M(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==_.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,n=e.chart,i=Q(),r=this.renderTo;r||(this.renderTo=r=n.renderTo),U(r)&&(this.renderTo=r=_.getElementById(r)),r||I(13,!0,this);var o=X(j(r,"data-highcharts-chart"));W(o)&&x[o]&&x[o].hasRendered&&x[o].destroy(),j(r,"data-highcharts-chart",this.index),r.innerHTML=f.emptyHTML,n.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize(),o=this.chartWidth;var a=this.chartHeight;if(M(r,{overflow:"hidden"}),this.styledMode||(t=N({position:"relative",overflow:"hidden",width:o+"px",height:a+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},n.style||{})),this.container=i=P("div",{id:i},t,r),this._cursor=i.style.cursor,this.renderer=new(n.renderer||!w?c.getRendererType(n.renderer):u)(i,o,a,void 0,n.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(n.className),this.styledMode)for(var s in e.defs)this.renderer.definition(e.defs[s]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,F(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,n=this.margin,i=this.titleOffset;this.resetMargins(),i[0]&&!T(n[0])&&(this.plotTop=Math.max(this.plotTop,i[0]+e[0])),i[2]&&!T(n[2])&&(this.marginBottom=Math.max(this.marginBottom,i[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,e),F(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],n=t.colorAxis,i=t.margin,r=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?r(t.axes):n&&n.length&&r(n),O.forEach((function(n,r){T(i[r])||(t[n]+=e[r])})),t.setChartSize()},t.prototype.reflow=function(t){var e=this,n=e.options.chart,i=e.renderTo,r=T(n.width)&&T(n.height),o=n.width||B(i,"width");n=n.height||B(i,"height"),i=t?t.target:C,delete e.pointer.chartPosition,r||e.isPrinting||!o||!n||i!==C&&i!==_||(o===e.containerWidth&&n===e.containerHeight||(p.clearTimeout(e.reflowTimeout),e.reflowTimeout=J((function(){e.container&&e.setSize(void 0,void 0,!1)}),t?100:0)),e.containerWidth=o,e.containerHeight=n)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=E(C,"resize",(function(t){e.options&&e.reflow(t)})),E(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,n){var i=this,r=i.renderer;i.isResizing+=1,v(n,i),n=r.globalAnimation,i.oldChartHeight=i.chartHeight,i.oldChartWidth=i.chartWidth,void 0!==t&&(i.options.chart.width=t),void 0!==e&&(i.options.chart.height=e),i.getChartSize(),i.styledMode||(n?g:M)(i.container,{width:i.chartWidth+"px",height:i.chartHeight+"px"},n),i.setChartSize(!0),r.setSize(i.chartWidth,i.chartHeight,n),i.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),i.isDirtyLegend=!0,i.isDirtyBox=!0,i.layOutTitles(),i.getMargins(),i.redraw(n),i.oldChartHeight=null,F(i,"resize"),J((function(){i&&F(i,"endResize",null,(function(){--i.isResizing}))}),m(n).duration)},t.prototype.setChartSize=function(t){var e,n,i,r,o=this.inverted,a=this.renderer,s=this.chartWidth,l=this.chartHeight,c=this.options.chart,d=this.spacing,u=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=i=Math.max(0,Math.round(s-e-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(l-n-this.marginBottom)),this.plotSizeX=o?r:i,this.plotSizeY=o?i:r,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:d[3],y:d[0],width:s-d[3]-d[1],height:l-d[0]-d[2]},this.plotBox=a.plotBox={x:e,y:n,width:i,height:r},o=2*Math.floor(this.plotBorderWidth/2),s=Math.ceil(Math.max(o,u[3])/2),l=Math.ceil(Math.max(o,u[0])/2),this.clipBox={x:s,y:l,width:Math.floor(this.plotSizeX-Math.max(o,u[1])/2-s),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(o,u[2])/2-l))},t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),a.alignElements()),F(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){F(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(n){var i=e[n],r=H(i)?i:[i,i,i,i];["Top","Right","Bottom","Left"].forEach((function(i,o){t[n][o]=V(e[n+i],r[o])}))})),O.forEach((function(e,n){t[e]=V(t.margin[n],t.spacing[n])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,n=this.renderer,i=this.chartWidth,r=this.chartHeight,o=this.styledMode,a=this.plotBGImage,s=e.backgroundColor,l=e.plotBackgroundColor,c=e.plotBackgroundImage,d=this.plotLeft,u=this.plotTop,h=this.plotWidth,p=this.plotHeight,f=this.plotBox,g=this.clipRect,m=this.clipBox,v=this.chartBackground,y=this.plotBackground,b=this.plotBorder,x="animate";if(v||(this.chartBackground=v=n.rect().addClass("highcharts-background").add(),x="attr"),o)var _=t=v.strokeWidth();else t=(_=e.borderWidth||0)+(e.shadow?8:0),s={fill:s||"none"},(_||v["stroke-width"])&&(s.stroke=e.borderColor,s["stroke-width"]=_),v.attr(s).shadow(e.shadow);v[x]({x:t/2,y:t/2,width:i-t-_%2,height:r-t-_%2,r:e.borderRadius}),x="animate",y||(x="attr",this.plotBackground=y=n.rect().addClass("highcharts-plot-background").add()),y[x](f),o||(y.attr({fill:l||"none"}).shadow(e.plotShadow),c&&(a?(c!==a.attr("href")&&a.attr("href",c),a.animate(f)):this.plotBGImage=n.image(c,d,u,h,p).add())),g?g.animate({width:m.width,height:m.height}):this.clipRect=n.clipRect(m),x="animate",b||(x="attr",this.plotBorder=b=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),o||b.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),b[x](b.crisp({x:d,y:u,width:h,height:p},-b.strokeWidth())),this.isDirtyBox=!1,F(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,n,i=this,r=i.options.chart,o=i.options.series;["inverted","angular","polar"].forEach((function(a){for(e=S[r.type||r.defaultSeriesType],n=r[a]||e&&e.prototype[a],t=o&&o.length;!n&&t--;)(e=S[o[t].type])&&e.prototype[a]&&(n=!0);i[a]=n}))},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var n=e.options.linkedTo;U(n)&&(n=":previous"===n?t.series[e.index-1]:t.get(n))&&n.linkedParent!==e&&(n.linkedSeries.push(e),e.linkedParent=n,n.enabledDataSorting&&e.setDataSortingOptions(),e.visible=V(e.options.visible,n.options.visible,e.visible))})),F(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach((function(t){t.translate(),t.render()}))},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(n){var i=N(e.style,n.style),r=X(i.left)+t.plotLeft,o=X(i.top)+t.plotTop+12;delete i.left,delete i.top,t.renderer.text(n.html,r,o).attr({zIndex:2}).css(i).add()}))},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,n=this.renderer,i=this.options,r=function(t){t.forEach((function(t){t.visible&&t.render()}))},a=0;this.setTitle(),this.legend=new o(this,i.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),i=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return a=21,!0}));var s=this.plotHeight=Math.max(this.plotHeight-a,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var l=1.1<i/this.plotWidth,c=1.05<s/this.plotHeight;(l||c)&&(t.forEach((function(t){(t.horiz&&l||!t.horiz&&c)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?r(t):e&&e.length&&r(e),this.seriesGroup||(this.seriesGroup=n.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,n=Y(!0,this.options.credits,t);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){n.href&&(C.location.href=n.href)})).attr({align:n.position.align,zIndex:8}),e.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,n=e.axes,i=e.series,o=e.container,a=o&&o.parentNode;for(F(e,"destroy"),e.renderer.forExport?D(x,e):x[e.index]=void 0,r.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),K(e),t=n.length;t--;)n[t]=n[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=i.length;t--;)i[t]=i[t].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())})),o&&(o.innerHTML=f.emptyHTML,K(o),a&&L(o)),G(e,(function(t,n){delete e[n]}))},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(z(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSeriesData(),F(t,"beforeRender"),l&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new l(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),F(this,"load"),F(this,"render"),T(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},t.prototype.addSeries=function(t,e,n){var i,r=this;return t&&(e=V(e,!0),F(r,"addSeries",{options:t},(function(){i=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),i.enabledDataSorting&&i.setData(t.data,!1),F(r,"afterAddSeries",{series:i}),e&&r.redraw(n)}))),i},t.prototype.addAxis=function(t,e,n,i){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:n,animation:i})},t.prototype.addColorAxis=function(t,e,n){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:n})},t.prototype.createAxis=function(t,n){return t=new e(this,Y(n.axis,{index:this[t].length,isX:"xAxis"===t})),V(n.redraw,!0)&&this.redraw(n.animation),t},t.prototype.showLoading=function(t){var e=this,n=e.options,i=n.loading,r=function(){o&&M(o,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},o=e.loadingDiv,a=e.loadingSpan;o||(e.loadingDiv=o=P("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),a||(e.loadingSpan=a=P("span",{className:"highcharts-loading-inner"},null,o),E(e,"redraw",r)),o.className="highcharts-loading",f.setElementHTML(a,V(t,n.lang.loading,"")),e.styledMode||(M(o,N(i.style,{zIndex:10})),M(a,i.labelStyle),e.loadingShown||(M(o,{opacity:0,display:""}),g(o,{opacity:i.style.opacity||.5},{duration:i.showDuration||0}))),e.loadingShown=!0,r()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){M(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,n,i){var r,o,a=this,s={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,c=[];F(a,"update",{options:t}),l||a.setResponsive(!1,!0),t=A(t,a.options),a.userOptions=Y(a.userOptions,t);var d=t.chart;if(d){if(Y(!0,a.options.chart,d),"className"in d&&a.setClassName(d.className),"reflow"in d&&a.setReflow(d.reflow),"inverted"in d||"polar"in d||"type"in d){a.propFromSeries();var u=!0}"alignTicks"in d&&(u=!0),"events"in d&&b(this,d),G(d,(function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(r=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(l?a.isDirtyBox=!0:o=!0)})),!a.styledMode&&d.style&&a.renderer.setStyle(a.options.chart.style||{})}!a.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===k&&(this.time=new h(t.time)),Y(!0,a.options.time,t.time)),G(t,(function(e,n){a[n]&&"function"==typeof a[n].update?a[n].update(e,!1):"function"==typeof a[s[n]]?a[s[n]](e):"colors"!==n&&-1===a.collectionsWithUpdate.indexOf(n)&&Y(!0,a.options[n],t[n]),"chart"!==n&&-1!==a.propsRequireUpdateSeries.indexOf(n)&&(r=!0)})),this.collectionsWithUpdate.forEach((function(e){if(t[e]){var i=[];a[e].forEach((function(t,e){t.options.isInternal||i.push(V(t.options.index,e))})),Z(t[e]).forEach((function(t,r){var o,s=T(t.id);s&&(o=a.get(t.id)),!o&&a[e]&&(o=a[e][i?i[r]:r])&&s&&T(o.options.id)&&(o=void 0),o&&o.coll===e&&(o.update(t,!1),n&&(o.touched=!0)),!o&&n&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)})),n&&a[e].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:c.push(t)}))}})),c.forEach((function(t){t.chart&&t.remove&&t.remove(!1)})),u&&a.axes.forEach((function(t){t.update({},!1)})),r&&a.getSeriesOrderByLinks().forEach((function(t){t.chart&&t.update({},!1)}),this),u=d&&d.width,d=d&&(U(d.height)?q(d.height,u||a.chartWidth):d.height),o||W(u)&&u!==a.chartWidth||W(d)&&d!==a.chartHeight?a.setSize(u,d,i):V(e,!0)&&a.redraw(i),F(a,"afterUpdate",{options:t,redraw:e,animation:i})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,n=$.lang,i=e.options.chart.resetZoomButton,r=i.theme,o=r.states,a="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"scrollablePlotBox";F(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(n.resetZoom,null,null,t,r,o&&o.hover).attr({align:i.position.align,title:n.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,a)})),F(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){F(this,"selection",{resetSelection:!0},this.zoom)},t.prototype.zoom=function(t){var e,n=this,i=n.pointer,r=n.inverted?i.mouseDownX:i.mouseDownY,o=!1;!t||t.resetSelection?(n.axes.forEach((function(t){e=t.zoom()})),i.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var a=t.axis,s=n.inverted?a.left:a.top,l=n.inverted?s+a.width:s+a.height,c=a.isXAxis,d=!1;(!c&&r>=s&&r<=l||c||!T(r))&&(d=!0),i[c?"zoomX":"zoomY"]&&d&&(e=a.zoom(t.min,t.max),a.displayBtn&&(o=!0))}));var a=n.resetZoomButton;o&&!a?n.showResetZoom():!o&&H(a)&&(n.resetZoomButton=a.destroy()),e&&n.redraw(V(n.options.chart.animation,t&&t.animation,100>n.pointCount))},t.prototype.pan=function(t,e){var n=this,i=n.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var r=n.options.chart,o=n.options.mapNavigation&&n.options.mapNavigation.enabled;r&&r.panning&&(r.panning=e);var a,s=e.type;F(this,"pan",{originalEvent:t},(function(){i&&i.forEach((function(t){t.setState()}));var e=n.xAxis;"xy"===s?e=e.concat(n.yAxis):"y"===s&&(e=n.yAxis);var r={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var i=e.horiz,l=t[i?"chartX":"chartY"],c=n[i=i?"mouseDownX":"mouseDownY"],d=e.minPointOffset||0,u=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,h=e.getExtremes(),p=e.toValue(c-l,!0)+d*u,f=e.toValue(c+e.len-l,!0)-(d*u||e.isXAxis&&e.pointRangePadding||0),g=f<p;u=e.hasVerticalPanning(),c=g?f:p,p=g?p:f;var m=e.panningState;!u||e.isXAxis||m&&!m.isDirty||e.series.forEach((function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),m||(m={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),W(e.dataMin)&&W(e.dataMax)&&(m.startMin=Math.min(V(t.options.threshold,1/0),e.dataMin,m.startMin),m.startMax=Math.max(V(t.options.threshold,-1/0),e.dataMax,m.startMax))})),u=Math.min(V(m&&m.startMin,h.dataMin),d?h.min:e.toValue(e.toPixels(h.min)-e.minPixelPadding)),f=Math.max(V(m&&m.startMax,h.dataMax),d?h.max:e.toValue(e.toPixels(h.max)+e.minPixelPadding)),e.panningState=m,e.isOrdinal||(0<(d=u-c)&&(p+=d,c=u),0<(d=p-f)&&(p=f,c-=d),e.series.length&&c!==h.min&&p!==h.max&&c>=u&&p<=f&&(e.setExtremes(c,p,!1,!1,{trigger:"pan"}),n.resetZoomButton||o||c===u||p===f||!s.match("y")||(n.showResetZoom(),e.displayBtn=!1),a=!0),r[i]=l)}})),G(r,(function(t,e){n[e]=t})),a&&n.redraw(!1),M(n.container,{cursor:"move"})}))},t}(),N(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.merge,i=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.options,r=t.symbolWidth,o=t.symbolHeight,a=o/2,s=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={},d=e.marker;this.chart.styledMode||(c={"stroke-width":e.lineWidth||0},e.dashStyle&&(c.dashstyle=e.dashStyle)),this.legendLine=s.path([["M",0,t],["L",r,t]]).addClass("highcharts-graph").attr(c).add(l),d&&!1!==d.enabled&&r&&(e=Math.min(i(d.radius,a),a),0===this.symbol.indexOf("url")&&(d=n(d,{width:o,height:o}),e=0),this.legendSymbol=r=s.symbol(this.symbol,r/2-e,t-e,2*e,2*e,d).addClass("highcharts-point").add(l),r.isMarker=!0)},t.drawRectangle=function(t,e){var n=t.symbolHeight,r=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(r?(t.symbolWidth-n)/2:0,t.baseline-n+1,r?n:t.symbolWidth,n,i(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}}(e||(e={})),e})),e(n,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l,c){var d=t.animObject,u=t.setAnimation,h=e.defaultOptions,p=n.registerEventOptions,f=i.hasTouch,g=i.svg,m=i.win,v=s.seriesTypes,y=c.addEvent,b=c.arrayMax,x=c.arrayMin,_=c.clamp,O=c.cleanRecursively,w=c.correctFloat,C=c.defined,$=c.erase,k=c.error,S=c.extend,E=c.find,j=c.fireEvent,A=c.getNestedProperty,P=c.isArray,M=c.isNumber,T=c.isString,L=c.merge,D=c.objectEach,I=c.pick,N=c.removeEvent,R=c.splat,F=c.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){j(this,"init",{options:e});var n=this,i=t.series;this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e),e=n.options,n.linkedSeries=[],n.bindAxes(),S(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),p(this,e);var r,o=e.events;(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.isCartesian&&(t.hasCartesianSeries=!0),i.length&&(r=i[i.length-1]),n._i=I(r&&r._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(i)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),j(this,"afterInit")},t.prototype.is=function(t){return v[t]&&this instanceof v[t]},t.prototype.insert=function(t){var e,n=this.options.index;if(M(n)){for(e=t.length;e--;)if(n>=I(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return I(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,n=e.options,i=e.chart;j(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(r){var o=0;i[r].forEach((function(i){t=i.options,(n[r]===o&&!t.isInternal||void 0!==n[r]&&n[r]===t.id||void 0===n[r]&&0===t.index)&&(e.insert(i.series),e[r]=i,i.isDirty=!0),t.isInternal||o++})),e[r]||e.optionalAxis===r||k(18,!0,i)}))})),j(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var n=t.series,i=arguments,r=M(e)?function(i){var r="y"===i&&n.toYData?n.toYData(t):t[i];n[i+"Data"][e]=r}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(i,2))};n.parallelArrays.forEach(r)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,n=this.options,i=n.pointIntervalUnit,r=n.relativeXValue,o=this.chart.time,a=this.xIncrement;return a=I(a,n.pointStart,0),this.pointInterval=e=I(this.pointInterval,n.pointInterval,1),r&&M(t)&&(e*=t),i&&(n=new o.Date(a),"day"===i?o.set("Date",n,o.get("Date",n)+e):"month"===i?o.set("Month",n,o.get("Month",n)+e):"year"===i&&o.set("FullYear",n,o.get("FullYear",n)+e),e=n.getTime()-a),r&&M(t)?a+e:(this.xIncrement=a+e,a)},t.prototype.setDataSortingOptions=function(){var t=this.options;S(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),C(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,n=e.options,i=n.plotOptions,r=e.userOptions||{};t=L(t),e=e.styledMode;var o={plotOptions:i,userOptions:t};j(this,"setOptions",o);var a=o.plotOptions[this.type],s=r.plotOptions||{};return this.userOptions=o.userOptions,r=L(a,i.series,r.plotOptions&&r.plotOptions[this.type],t),this.tooltipOptions=L(h.tooltip,h.plotOptions.series&&h.plotOptions.series.tooltip,h.plotOptions[this.type].tooltip,n.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,t.tooltip),this.stickyTracking=I(t.stickyTracking,s[this.type]&&s[this.type].stickyTracking,s.series&&s.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||r.stickyTracking),null===a.marker&&delete r.marker,this.zoneAxis=r.zoneAxis,i=this.zones=(r.zones||[]).slice(),!r.negativeColor&&!r.negativeFillColor||r.zones||(n={value:r[this.zoneAxis+"Threshold"]||r.threshold||0,className:"highcharts-negative"},e||(n.color=r.negativeColor,n.fillColor=r.negativeFillColor),i.push(n)),i.length&&C(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),j(this,"afterSetOptions",{options:r}),r},t.prototype.getName=function(){return I(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,n){var i=this.chart,r=this.userOptions,o=t+"Index",a=t+"Counter",s=n?n.length:I(i.options.chart[t+"Count"],i[t+"Count"]);if(!e){var l=I(r[o],r["_"+o]);C(l)||(i.series.length||(i[a]=0),r["_"+o]=l=i[a]%s,i[a]+=1),n&&(e=n[l])}void 0!==l&&(this[o]=l),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||h.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var n,i,r=t.id,a=t.x,s=this.points,l=this.options.dataSorting;if(r)(l=this.chart.get(r))instanceof o&&(n=l);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(n=function(e){return!e.touched&&e.index===t.index},l&&l.matchByName?n=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(n=function(e){return!e.touched&&e.options.x===t.x}),!(n=E(s,n))))return;if(n){var c=n&&n.index;void 0!==c&&(i=!0)}return void 0===c&&M(a)&&(c=this.xData.indexOf(a,e)),-1!==c&&void 0!==c&&this.cropped&&(c=c>=this.cropStart?c-this.cropStart:c),!i&&M(c)&&s[c]&&s[c].touched&&(c=void 0),c},t.prototype.updateData=function(t,e){var n,i,r,o=this.options,a=o.dataSorting,s=this.points,l=[],c=this.requireSorting,d=t.length===s.length,u=!0;if(this.xIncrement=null,t.forEach((function(t,e){var i=C(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},u=i.x;i.id||M(u)?(-1===(i=this.findPointIndex(i,r))||void 0===i?l.push(t):s[i]&&t!==o.data[i]?(s[i].update(t,!1,null,!1),s[i].touched=!0,c&&(r=i+1)):s[i]&&(s[i].touched=!0),(!d||e!==i||a&&a.enabled||this.hasDerivedData)&&(n=!0)):l.push(t)}),this),n)for(t=s.length;t--;)(i=s[t])&&!i.touched&&i.remove&&i.remove(!1,e);else!d||a&&a.enabled?u=!1:(t.forEach((function(t,e){t!==s[e].y&&s[e].update&&s[e].update(t,!1,null,!1)})),l.length=0);return s.forEach((function(t){t&&(t.touched=!1)})),!!u&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=b(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,n,i){var r=this,o=r.points,a=o&&o.length||0,s=r.options,l=r.chart,c=s.dataSorting,d=r.xAxis,u=s.turboThreshold,h=this.xData,p=this.yData,f=r.pointArrayMap;f=f&&f.length;var g,m=s.keys,v=0,y=1,b=null,x=(t=t||[]).length;if(e=I(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==i&&x&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(g=this.updateData(t,n)),!g){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),u&&x>u)if(b=r.getFirstValidPoint(t),M(b))for(n=0;n<x;n++)h[n]=this.autoIncrement(),p[n]=t[n];else if(P(b))if(f)if(b.length===f)for(n=0;n<x;n++)h[n]=this.autoIncrement(),p[n]=t[n];else for(n=0;n<x;n++)i=t[n],h[n]=i[0],p[n]=i.slice(1,f+1);else if(m&&(v=0<=(v=m.indexOf("x"))?v:0,y=0<=(y=m.indexOf("y"))?y:1),1===b.length&&(y=0),v===y)for(n=0;n<x;n++)h[n]=this.autoIncrement(),p[n]=t[n][y];else for(n=0;n<x;n++)i=t[n],h[n]=i[v],p[n]=i[y];else k(12,!1,l);else for(n=0;n<x;n++)void 0!==t[n]&&(i={series:r},r.pointClass.prototype.applyOptions.apply(i,[t[n]]),r.updateParallelArrays(i,n));for(p&&T(p[0])&&k(14,!0,l),r.data=[],r.options.data=r.userOptions.data=t,n=a;n--;)o[n]&&o[n].destroy&&o[n].destroy();d&&(d.minRange=d.userMinRange),r.isDirty=l.isDirtyBox=!0,r.isDirtyData=!!o,n=!1}"point"===s.legendType&&(this.processData(),this.generatePoints()),e&&l.redraw(n)},t.prototype.sortData=function(t){var e=this,n=e.options.dataSorting.sortKey||"y",i=function(t,e){return C(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach((function(n,r){t[r]=i(e,n),t[r].index=r}),this),t.concat().sort((function(t,e){return t=A(n,t),(e=A(n,e))<t?-1:e>t?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var n=e.options,r=n.data;n.dataSorting&&n.dataSorting.enabled||!r||(r.forEach((function(n,o){r[o]=i(e,n),t[o]&&(r[o].x=t[o].x,r[o].index=o)})),e.setData(r,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,n=this.options,i=n.cropThreshold,r=t||this.getExtremesFromAll||n.getExtremesFromAll,o=this.isCartesian;t=e&&e.val2lin,n=!(!e||!e.logarithmic);var a=0,s=this.xData,l=this.yData,c=this.requireSorting,d=!1,u=s.length;if(e){var h=(d=e.getExtremes()).min,p=d.max;d=e.categories&&!e.names.length}if(o&&this.sorted&&!r&&(!i||u>i||this.forceCrop))if(s[u-1]<h||s[0]>p)s=[],l=[];else if(this.yData&&(s[0]<h||s[u-1]>p)){var f=this.cropData(this.xData,this.yData,h,p);s=f.xData,l=f.yData,a=f.start,f=!0}for(i=s.length||1;--i;)if(0<(e=n?t(s[i])-t(s[i-1]):s[i]-s[i-1])&&(void 0===g||e<g))var g=e;else 0>e&&c&&!d&&(k(15,!1,this.chart),c=!1);return{xData:s,yData:l,cropped:f,cropStart:a,closestPointRange:g}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,j(this,"afterProcessData")},t.prototype.cropData=function(t,e,n,i,r){var o,a=t.length,s=0,l=a;for(r=I(r,this.cropShoulder),o=0;o<a;o++)if(t[o]>=n){s=Math.max(0,o-r);break}for(n=o;n<a;n++)if(t[n]>i){l=n+r;break}return{xData:t.slice(s,l),yData:e.slice(s,l),start:s,end:l}},t.prototype.generatePoints=function(){var t=this.options,e=t.data,n=this.processedXData,i=this.processedYData,r=this.pointClass,o=n.length,a=this.cropStart||0,s=this.hasGroupedData,l=t.keys,c=[];t=t.dataGrouping&&t.dataGrouping.groupAll?a:0;var d,u,h=this.data;if(!h&&!s){var p=[];p.length=e.length,h=this.data=p}for(l&&s&&(this.options.keys=!1),u=0;u<o;u++){if(p=a+u,s){var f=(new r).init(this,[n[u]].concat(R(i[u])));f.dataGroup=this.groupMap[t+u],f.dataGroup.options&&(f.options=f.dataGroup.options,S(f,f.dataGroup.options),delete f.dataLabels)}else(f=h[p])||void 0===e[p]||(h[p]=f=(new r).init(this,e[p],n[u]));f&&(f.index=s?t+u:p,c[u]=f)}if(this.options.keys=l,h&&(o!==(d=h.length)||s))for(u=0;u<d;u++)u!==a||s||(u+=o),h[u]&&(h[u].destroyElements(),h[u].plotX=void 0);this.data=h,this.points=c,j(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:x(t),max:b(t)}},t.prototype.getExtremes=function(t,e){var n=this.xAxis,i=this.yAxis,r=this.processedXData||this.xData,o=[],a=this.requireSorting?this.cropShoulder:0;i=!!i&&i.positiveValuesOnly;var s,l=0,c=0,d=0,u=(t=t||this.stackedYData||this.processedYData||[]).length;if(n){var h=n.getExtremes();l=h.min,c=h.max}for(s=0;s<u;s++){var p=r[s];h=t[s];var f=(M(h)||P(h))&&(h.length||0<h||!i);if(p=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(r[s+a]||p)>=l&&(r[s-a]||p)<=c,f&&p)if(f=h.length)for(;f--;)M(h[f])&&(o[d++]=h[f]);else o[d++]=h}return t={activeYData:o,dataMin:x(o),dataMax:b(o)},j(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,n=0,i=null;null===i&&n<e;)i=t[n],n++;return i},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n=this.options,i=n.stacking,r=this.xAxis,o=r.categories,a=this.enabledDataSorting,s=this.yAxis,l=this.points,c=l.length,d=this.pointPlacementToXValue(),u=!!d,h=n.threshold,p=n.startFromThreshold?h:0,f=this.zoneAxis||"y",g=Number.MAX_VALUE;for(t=0;t<c;t++){var m=l[t],v=m.x,y=void 0,b=void 0,x=m.y,O=m.low,$=i&&s.stacking&&s.stacking.stacks[(this.negStacks&&x<(p?0:h)?"-":"")+this.stackKey];if((s.positiveValuesOnly&&!s.validatePositiveValue(x)||r.positiveValuesOnly&&!r.validatePositiveValue(v))&&(m.isNull=!0),m.plotX=e=w(_(r.translate(v,0,0,0,1,d,"flags"===this.type),-1e5,1e5)),i&&this.visible&&$&&$[v]){var k=this.getStackIndicator(k,v,this.index);m.isNull||(b=(y=$[v]).points[k.key])}if(P(b)&&(O=b[0],x=b[1],O===p&&k.key===$[v].base&&(O=I(M(h)&&h,s.min)),s.positiveValuesOnly&&0>=O&&(O=null),m.total=m.stackTotal=y.total,m.percentage=y.total&&m.y/y.total*100,m.stackY=x,this.irregularWidths||y.setOffset(this.pointXOffset||0,this.barW||0)),m.yBottom=C(O)?_(s.translate(O,0,1,0,1),-1e5,1e5):null,this.dataModify&&(x=this.dataModify.modifyValue(x,t)),m.plotY=void 0,M(x)&&(void 0!==(y=s.translate(x,!1,!0,!1,!0))&&(m.plotY=_(y,-1e5,1e5))),m.isInside=this.isPointInside(m),m.clientX=u?w(r.translate(v,0,0,0,1,d)):e,m.negative=m[f]<(n[f+"Threshold"]||h||0),m.category=o&&void 0!==o[m.x]?o[m.x]:m.x,!m.isNull&&!1!==m.visible){void 0!==S&&(g=Math.min(g,Math.abs(e-S)));var S=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&a&&(m.isNew=!0)}this.closestPointRangePx=g,j(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,n){var i=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,{inverted:i.inverted}))&&(!1!==t.visible&&(n||!t.isNull))}))},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis,i=L(t.clipBox);return e&&e.len!==t.plotSizeX&&(i.width=e.len),n&&n.len!==t.plotSizeY&&(i.height=n.len),i},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,n=this.markerGroup,i=t.sharedClips;t=t.renderer;var r=this.getClipBox(),o=this.getSharedClipKey(),a=i[o];a?a.animate(r):i[o]=a=t.clipRect(r),e&&e.clip(!1===this.options.clip?void 0:a),n&&n.clip()},t.prototype.animate=function(t){var e=this.chart,n=this.group,i=this.markerGroup,r=e.inverted,o=d(this.options.animation),a=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(),s=e.sharedClips[a],l=e.sharedClips[a+"m"];if(t&&n)o=this.getClipBox(),s?s.attr("height",o.height):(o.width=0,r&&(o.x=e.plotHeight),s=e.renderer.clipRect(o),e.sharedClips[a]=s,l=e.renderer.clipRect({x:r?(e.plotSizeX||0)+99:-99,y:r?-e.plotLeft:-e.plotTop,width:99,height:r?e.chartWidth:e.chartHeight}),e.sharedClips[a+"m"]=l),n.clip(s),i&&i.clip(l);else if(s&&!s.hasClass("highcharts-animating")){e=this.getClipBox();var c=o.step;i&&i.element.childNodes.length&&(o.step=function(t,e){c&&c.apply(e,arguments),l&&l.element&&l.attr(e.prop,"width"===e.prop?t+99:t)}),s.addClass("highcharts-animating").animate(e,o)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),D(this.chart.sharedClips,(function(e,n,i){e&&!t.chart.container.querySelector('[clip-path="url(#'+e.id+')"]')&&(e.destroy(),delete i[n])})),this.finishedAnimating=!0,j(this,"afterAnimate")},t.prototype.drawPoints=function(){var t,e,n=this.points,i=this.chart,r=this.options.marker,o=this[this.specialGroup]||this.markerGroup,a=this.xAxis,s=I(r.enabled,!(a&&!a.isRadial)||null,this.closestPointRangePx>=r.enabledThreshold*r.radius);if(!1!==r.enabled||this._hasPointMarkers)for(t=0;t<n.length;t++){var l=n[t],c=(e=l.graphic)?"animate":"attr",d=l.marker||{},u=!!l.marker;if((s&&void 0===d.enabled||d.enabled)&&!l.isNull&&!1!==l.visible){var h=I(d.symbol,this.symbol,"rect"),p=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=a.reversed?-(p.width||0):a.width);var f=!1!==l.isInside;e?e[f?"show":"hide"](f).animate(p):f&&(0<(p.width||0)||l.hasImage)&&(l.graphic=e=i.renderer.symbol(h,p.x,p.y,p.width,p.height,u?d:r).add(o),this.enabledDataSorting&&i.hasRendered&&(e.attr({x:l.startXPos}),c="animate")),e&&"animate"===c&&e[f?"show":"hide"](f).animate(p),e&&!i.styledMode&&e[c](this.pointAttribs(l,l.selected&&"select")),e&&e.addClass(l.getClassName(),!0)}else e&&(l.graphic=e.destroy())}},t.prototype.markerAttribs=function(t,e){var n=this.options,i=n.marker,r=t.marker||{},o=r.symbol||i.symbol,a=I(r.radius,i.radius);return e&&(i=i.states[e],e=r.states&&r.states[e],a=I(e&&e.radius,i&&i.radius,a+(i&&i.radiusPlus||0))),t.hasImage=o&&0===o.indexOf("url"),t.hasImage&&(a=0),t={x:n.crisp?Math.floor(t.plotX-a):t.plotX-a,y:t.plotY-a},a&&(t.width=t.height=2*a),t},t.prototype.pointAttribs=function(t,e){var n=this.options.marker,i=t&&t.options,r=i&&i.marker||{},o=i&&i.color,a=t&&t.color,s=t&&t.zone&&t.zone.color,l=this.color;return t=I(r.lineWidth,n.lineWidth),i=1,l=o||s||a||l,o=r.fillColor||n.fillColor||l,a=r.lineColor||n.lineColor||l,e=e||"normal",n=n.states[e]||{},e=r.states&&r.states[e]||{},t=I(e.lineWidth,n.lineWidth,t+I(e.lineWidthPlus,n.lineWidthPlus,0)),o=e.fillColor||n.fillColor||o,{stroke:a=e.lineColor||n.lineColor||a,"stroke-width":t,fill:o,opacity:i=I(e.opacity,n.opacity,i)}},t.prototype.destroy=function(t){var e,n,i,r=this,o=r.chart,a=/AppleWebKit\/533/.test(m.navigator.userAgent),s=r.data||[];for(j(r,"destroy"),this.removeEvents(t),(r.axisTypes||[]).forEach((function(t){(i=r[t])&&i.series&&($(i.series,r),i.isDirty=i.forceRedraw=!0)})),r.legendItem&&r.chart.legend.destroyItem(r),e=s.length;e--;)(n=s[e])&&n.destroy&&n.destroy();r.clips&&r.clips.forEach((function(t){return t.destroy()})),c.clearTimeout(r.animationTimeout),D(r,(function(t,e){t instanceof l&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()})),o.hoverSeries===r&&(o.hoverSeries=void 0),$(o.series,r),o.orderSeries(),D(r,(function(e,n){t&&"hcEvents"===n||delete r[n]}))},t.prototype.applyZones=function(){var t,e,n,i,r,o,a,s,l=this,c=this.chart,d=c.renderer,u=this.zones,h=this.clips||[],p=this.graph,f=this.area,g=Math.max(c.chartWidth,c.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],v=c.inverted,y=!1;if(u.length&&(p||f)&&m&&void 0!==m.min){var b=m.reversed,x=m.horiz;p&&!this.showLine&&p.hide(),f&&f.hide();var O=m.getExtremes();u.forEach((function(u,w){t=b?x?c.plotWidth:0:x?0:m.toPixels(O.min)||0,t=_(I(e,t),0,g),e=_(Math.round(m.toPixels(I(u.value,O.max),!0)||0),0,g),y&&(t=e=m.toPixels(O.max)),i=Math.abs(t-e),r=Math.min(t,e),o=Math.max(t,e),m.isXAxis?(n={x:v?o:r,y:0,width:i,height:g},x||(n.x=c.plotHeight-n.x)):(n={x:0,y:v?o:r,width:g,height:i},x&&(n.y=c.plotWidth-n.y)),v&&d.isVML&&(n=m.isXAxis?{x:0,y:b?r:o,height:n.width,width:c.chartWidth}:{x:n.y-c.plotLeft-c.spacingBox.x,y:0,width:n.height,height:c.chartHeight}),h[w]?h[w].animate(n):h[w]=d.clipRect(n),a=l["zone-area-"+w],s=l["zone-graph-"+w],p&&s&&s.clip(h[w]),f&&a&&a.clip(h[w]),y=u.value>O.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=h}else l.visible&&(p&&p.show(!0),f&&f.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){n[e]&&(i.renderer.isVML&&n[e].attr({width:n.yAxis.len,height:n.xAxis.len}),n[e].width=n.yAxis.len,n[e].height=n.xAxis.len,n[e].invert(!n.isRadialSeries&&t))}))}var n=this,i=n.chart;n.xAxis&&(n.eventsToUnbind.push(y(i,"resize",e)),e(),n.invertGroups=e)},t.prototype.plotGroup=function(t,e,n,i,r){var o=this[t],a=!o;return n={visibility:n,zIndex:i||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),a&&(this[t]=o=this.chart.renderer.g().add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(C(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(n)[a?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||N(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,n=t.options,i=d(n.animation),r=t.visible?"inherit":"hidden",o=n.zIndex,a=t.hasRendered,s=e.seriesGroup,l=e.inverted;e=!t.finishedAnimating&&e.renderer.isSVG?i.duration:0,j(this,"render");var c=t.plotGroup("group","series",r,o,s);t.markerGroup=t.plotGroup("markerGroup","markers",r,o,s),!1!==n.clip&&t.setClip(),t.animate&&e&&t.animate(!0),c.inverted=!!I(t.invertible,t.isCartesian)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),t.animate&&e&&t.animate(),a||(e&&i.defer&&(e+=i.defer),t.animationTimeout=F((function(){t.afterAnimate()}),e||0)),t.isDirty=!1,t.hasRendered=!0,j(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,r=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:I(i&&i.left,t.plotLeft),translateY:I(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var n=this.xAxis,i=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:r?i.len-t.chartX+i.pos:t.chartY-i.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,n=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree,F((function(){e.kdTree=function t(n,i,r){var o=n&&n.length;if(o){var a=e.kdAxisArray[i%r];return n.sort((function(t,e){return t[a]-e[a]})),{point:n[o=Math.floor(o/2)],left:t(n.slice(0,o),i+1,r),right:t(n.slice(o+1),i+1,r)}}}(e.getValidPoints(null,!e.directTouch),n,n),e.buildingKdTree=!1}),e.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,n){var i=this,r=this.kdAxisArray[0],o=this.kdAxisArray[1],a=e?"distX":"dist";if(e=-1<i.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function t(e,n,s,l){var c=n.point,d=i.kdAxisArray[s%l],u=c,h=C(e[r])&&C(c[r])?Math.pow(e[r]-c[r],2):null,p=C(e[o])&&C(c[o])?Math.pow(e[o]-c[o],2):null;return p=(h||0)+(p||0),c.dist=C(p)?Math.sqrt(p):Number.MAX_VALUE,c.distX=C(h)?Math.sqrt(h):Number.MAX_VALUE,h=0>(d=e[d]-c[d])?"right":"left",n[p=0>d?"left":"right"]&&(u=(p=t(e,n[p],s+1,l))[a]<u[a]?p:c),n[h]&&Math.sqrt(d*d)<u[a]&&(u=(e=t(e,n[h],s+1,l))[a]<u[a]?e:u),u}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,n=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=n.reversed?-.5:.5),M(t)?t*(e||n.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,n=this.xAxis,i=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(i?i.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(n?n.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,n=e.trackByArea,i=[].concat(n?t.areaPath:t.graphPath),r=t.chart,o=r.pointer,a=r.renderer,s=r.options.tooltip.snap,l=t.tracker,c=function(e){r.hoverSeries!==t&&t.onMouseOver()},d="rgba(192,192,192,"+(g?1e-4:.002)+")";l?l.attr({d:i}):t.graph&&(t.tracker=a.path(i).attr({visibility:t.visible?"visible":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),r.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:d,fill:n?d:"none","stroke-width":t.graph.strokeWidth()+(n?0:2*s)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach((function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",c).on("mouseout",(function(t){o.onTrackerMouseOut(t)})),e.cursor&&!r.styledMode&&t.css({cursor:e.cursor}),f)&&t.on("touchstart",c)}))),j(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,n,i,r){var o=this.options,a=this.data,s=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var c,d=o.data,u=this.xData;e=I(e,!0);var h={series:this};this.pointClass.prototype.applyOptions.apply(h,[t]);var p=h.x,f=u.length;if(this.requireSorting&&p<u[f-1])for(c=!0;f&&u[f-1]>p;)f--;this.updateParallelArrays(h,"splice",f,0,0),this.updateParallelArrays(h,f),l&&h.name&&(l[p]=h.name),d.splice(f,0,t),c&&(this.data.splice(f,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),n&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(h,"shift"),d.shift())),!1!==r&&j(this,"addPoint",{point:h}),this.isDirtyData=this.isDirty=!0,e&&s.redraw(i)},t.prototype.removePoint=function(t,e,n){var i=this,r=i.data,o=r[t],a=i.points,s=i.chart,l=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),i.options.data.splice(t,1),i.updateParallelArrays(o||{series:i},"splice",t,1),o&&o.destroy(),i.isDirty=!0,i.isDirtyData=!0,e&&s.redraw()};u(n,s),e=I(e,!0),o?o.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,n,i){function r(){o.destroy(i),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),I(t,!0)&&a.redraw(e)}var o=this,a=o.chart;!1!==n?j(o,"remove",null,r):r()},t.prototype.update=function(t,e){t=O(t,this.userOptions),j(this,"update",{options:t});var n,i=this,r=i.chart,o=i.userOptions,a=i.initialType||i.type,s=r.options.plotOptions,l=v[a].prototype,c=i.finishedAnimating&&{animation:!1},d={},u=["eventOptions","navigatorSeries","baseSeries"],h=t.type||o.type||r.options.chart.type,p=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||i.hasOptionChanged("dataGrouping")||i.hasOptionChanged("pointStart")||i.hasOptionChanged("pointInterval")||i.hasOptionChanged("pointIntervalUnit")||i.hasOptionChanged("keys"));if(h=h||a,p&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),i.parallelArrays.forEach((function(t){u.push(t+"Data")})),t.data&&(t.dataSorting&&S(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=L(o,c,{index:void 0===o.index?i.index:o.index,pointStart:I(s&&s.series&&s.series.pointStart,o.pointStart,i.xData[0])},!p&&{data:i.options.data},t),p&&t.data&&(t.data=i.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach((function(t){u[t]=i[t],delete i[t]})),s=!1,v[h]){if(s=h!==i.type,i.remove(!1,!1,!1,!0),s)if(Object.setPrototypeOf)Object.setPrototypeOf(i,v[h].prototype);else{for(n in c=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents,l)i[n]=void 0;S(i,v[h].prototype),c?i.hcEvents=c:delete i.hcEvents}}else k(17,!0,r,{missingModuleFor:h});if(u.forEach((function(t){i[t]=u[t]})),i.init(r,t),p&&this.points){var f=i.options;!1===f.visible?(d.graphic=1,d.dataLabel=1):i._hasPointLabels||(t=f.marker,l=f.dataLabels,!t||!1!==t.enabled&&(o.marker&&o.marker.symbol)===t.symbol||(d.graphic=1),l&&!1===l.enabled&&(d.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(d).length&&t.destroyElements(d),!1===f.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}i.initialType=a,r.linkSeries(),s&&i.linkedSeries.length&&(i.isDirtyData=!0),j(this,"afterUpdate"),I(e,!0)&&r.redraw(!!p&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],n=this.chart.options.plotOptions,i=this.userOptions[t];return i?e!==i:e!==I(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&j(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,n=e.tooltip,i=e.hoverPoint;e.hoverSeries=null,i&&i.onMouseOut(),this&&t.events.mouseOut&&j(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var n=this,i=n.options,r=n.graph,o=i.inactiveOtherPoints,a=i.states,s=I(a[t||"normal"]&&a[t||"normal"].animation,n.chart.options.chart.animation),l=i.lineWidth,c=0,d=i.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach((function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))})),n.state=t,!n.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),d=I(a[t].opacity,d)),r&&!r.dashstyle)for(i={"stroke-width":l},r.animate(i,s);n["zone-graph-"+c];)n["zone-graph-"+c].animate(i,s),c+=1;o||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(t){t&&t.animate({opacity:d},s)}))}e&&o&&n.points&&n.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var n=this,i=n.chart,r=n.legendItem,o=i.options.chart.ignoreHiddenSeries,a=n.visible,s=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){n[t]&&n[t][s]()})),i.hoverSeries!==n&&(i.hoverPoint&&i.hoverPoint.series)!==n||n.onMouseOut(),r&&i.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&i.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),n.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(i.isDirtyBox=!0),j(n,s),!1!==e&&i.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),j(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,n){return void 0===n&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)},t.defaultOptions=a,t}(),S(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:r.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}),s.series=t,t})),e(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=t.stop,s=o.addEvent,l=o.createElement,c=o.merge,d=o.pick;s(n,"afterSetChartSize",(function(t){var n=this.options.chart.scrollablePlotArea,i=n&&n.minWidth;if(n=n&&n.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i;var r={1:{name:"right",value:i}}}}else n&&(this.scrollablePixelsY=i=Math.max(0,n-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,r={2:{name:"bottom",value:i}});r&&!t.skipAxes&&this.axes.forEach((function(t){r[t.side]?t.getPlotLinePath=function(){var n=r[t.side].name,i=this[n];this[n]=i-r[t.side].value;var o=e.prototype.getPlotLinePath.apply(this,arguments);return this[n]=i,o}:(t.setAxisSize(),t.setAxisTranslation())}))}})),s(n,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),n.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},e,this.scrollingParent),s(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,n=this.fixedRenderer,i=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&i.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),i.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},n.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,n=e.scrollablePlotArea,i=r.getRendererType();t?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new i(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(n.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterDrilldown",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),i=this.chartHeight+(this.scrollablePixelsY||0),a(this.container),this.container.style.width=e+"px",this.container.style.height=i+"px",this.renderer.boxWrapper.attr({width:e,height:i,viewBox:[0,0,e,i].join(" ")}),this.chartBackground.attr({width:e,height:i}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),i=this.axisOffset,t=this.plotTop-i[0]-1,n=this.plotLeft-i[3]-1,e=this.plotTop+this.plotHeight+i[2]+1,i=this.plotLeft+this.plotWidth+i[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),c=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",n,0],["L",n,this.plotTop-1],["L",i,this.plotTop-1],["L",i,0],["Z"],["M",n,c],["L",n,this.chartHeight],["L",i,this.chartHeight],["L",i,c],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},s(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),s(i,"show",(function(){this.chart.scrollableDirty=!0}))})),e(n,"Core/Axis/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.getDeferredAnimation,o=n.addEvent,a=n.destroyObjectProperties,s=n.fireEvent,l=n.isNumber,c=n.objectEach;return function(t){function e(){var t=this.stacking;if(t){var e=t.stacks;c(e,(function(t,n){a(t),e[n]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function n(){this.stacking||(this.stacking=new d(this))}var i=[];t.compose=function(t){return-1===i.indexOf(t)&&(i.push(t),o(t,"init",n),o(t,"destroy",e)),t};var d=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,n=e.series,i=e.options.reversedStacks,r=n.length;if(!e.isXAxis){for(this.usePercentage=!1,t=r;t--;){var o=n[i?t:r-t-1];o.setStackedPoints(),o.setGroupedPoints()}for(t=0;t<r;t++)n[t].modifyStacks();s(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;c(t,(function(t){c(t,(function(t){t.cumulative=t.total}))}))}},t.prototype.resetStacks=function(){var t=this,e=t.stacks;t.axis.isXAxis||c(e,(function(e){c(e,(function(n,i){l(n.touched)&&n.touched<t.stacksTouched?(n.destroy(),delete e[i]):(n.total=null,n.cumulative=null)}))}))},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,n=e.renderer,i=this.stacks;t=r(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var o=this.stackTotalGroup=this.stackTotalGroup||n.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();o.translate(e.plotLeft,e.plotTop),c(i,(function(t){c(t,(function(t){t.render(o)}))})),o.animate({opacity:1},t)},t}();t.Additions=d}(i||(i={})),i})),e(n,"Extensions/Stacking.js",[n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Axis/StackingAxis.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a){var s=n.format,l=a.correctFloat,c=a.defined,d=a.destroyObjectProperties,u=a.isArray,h=a.isNumber,p=a.objectEach,f=a.pick,g=function(){function t(t,e,n,i,r){var o=t.chart.inverted;this.axis=t,this.isNegative=n,this.options=e=e||{},this.x=i,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?n?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":n?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?n?"right":"left":"center")}return t.prototype.destroy=function(){d(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,n=this.options,i=n.format;i=i?s(i,this,e):n.formatter.call(this),this.label?this.label.attr({text:i,visibility:"hidden"}):(this.label=e.renderer.label(i,null,null,n.shape,null,null,n.useHTML,!1,"stack-labels"),i={r:n.borderRadius||0,text:i,rotation:n.rotation,padding:f(n.padding,5),visibility:"hidden"},e.styledMode||(i.fill=n.backgroundColor,i.stroke=n.borderColor,i["stroke-width"]=n.borderWidth,this.label.css(n.style)),this.label.attr(i),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,n,i,o){var a=this.axis,s=a.chart;i=a.translate(a.stacking.usePercentage?100:i||this.total,0,0,0,1),n=a.translate(n||0),n=c(i)&&Math.abs(i-n),t=f(o,s.xAxis[0].translate(this.x))+t,a=c(i)&&this.getStackBox(s,this,t,i,e,n,a),e=this.label,n=this.isNegative,t="justify"===f(this.options.overflow,"justify");var l=this.textAlign;e&&a&&(o=e.getBBox(),i=e.padding,l="left"===l?s.inverted?-i:i:"right"===l?o.width:s.inverted&&"center"===l?o.width/2:s.inverted?n?o.width+i:-i:o.width/2,n=s.inverted?o.height/2:n?-i:o.height,this.alignOptions.x=f(this.options.x,0),this.alignOptions.y=f(this.options.y,0),a.x-=l,a.y-=n,e.align(this.alignOptions,null,a),s.isInsidePlot(e.alignAttr.x+l-this.alignOptions.x,e.alignAttr.y+n-this.alignOptions.y)?e.show():(e.alignAttr.y=-9999,t=!1),t&&r.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,o,a),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),f(!t&&this.options.crop,!0)&&((s=h(e.x)&&h(e.y)&&s.isInsidePlot(e.x-i+e.width,e.y)&&s.isInsidePlot(e.x+i,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,n,i,r,o,a){var s=e.axis.reversed,l=t.inverted,c=a.height+a.pos-(l?t.plotLeft:t.plotTop);return e=e.isNegative&&!s||!e.isNegative&&s,{x:l?e?i-a.right:i-o+a.pos-t.plotLeft:n+t.xAxis[0].transB-t.plotLeft,y:l?a.height-n-r:e?c-i-o:c-i,width:l?o:r,height:l?r:o}},t}();return e.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)})),t.series.forEach((function(n){var i=n.xAxis&&n.xAxis.options||{};!n.options.stacking||!0!==n.visible&&!1!==t.options.chart.ignoreHiddenSeries||(n.stackKey=[n.type,f(n.options.stack,""),e?i.top:i.left,e?i.height:i.width].join())}))},o.compose(t),r.prototype.setGroupedPoints=function(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?r.prototype.setStackedPoints.call(this,"group"):t&&p(t.stacks,(function(e,n){"group"===n.slice(-5)&&(p(e,(function(t){return t.destroy()})),delete t.stacks[n])}))},r.prototype.setStackedPoints=function(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var n=this.processedXData,i=this.processedYData,r=[],o=i.length,a=this.options,s=a.threshold,d=f(a.startFromThreshold&&s,0);a=a.stack;var h,p,m="-"+(t=t?this.type+","+e:this.stackKey),v=this.negStacks,y=this.yAxis,b=y.stacking.stacks,x=y.stacking.oldStacks;for(y.stacking.stacksTouched+=1,p=0;p<o;p++){var _=n[p],O=i[p],w=this.getStackIndicator(w,_,this.index),C=w.key,$=(h=v&&O<(d?0:s))?m:t;b[$]||(b[$]={}),b[$][_]||(x[$]&&x[$][_]?(b[$][_]=x[$][_],b[$][_].total=null):b[$][_]=new g(y,y.options.stackLabels,h,_,a)),$=b[$][_],null!==O?($.points[C]=$.points[this.index]=[f($.cumulative,d)],c($.cumulative)||($.base=C),$.touched=y.stacking.stacksTouched,0<w.index&&!1===this.singleStacks&&($.points[C][0]=$.points[this.index+","+_+",0"][0])):$.points[C]=$.points[this.index]=null,"percent"===e?(h=h?t:m,v&&b[h]&&b[h][_]?(h=b[h][_],$.total=h.total=Math.max(h.total,$.total)+Math.abs(O)||0):$.total=l($.total+(Math.abs(O)||0))):"group"===e?(u(O)&&(O=O[0]),null!==O&&($.total=($.total||0)+1)):$.total=l($.total+(O||0)),$.cumulative="group"===e?($.total||1)-1:f($.cumulative,d)+(O||0),null!==O&&($.points[C].push($.cumulative),r[p]=$.cumulative,$.hasValidPoints=!0)}"percent"===e&&(y.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=r),y.stacking.oldStacks={}}},r.prototype.modifyStacks=function(){var t,e=this,n=e.stackKey,i=e.yAxis.stacking.stacks,r=e.processedXData,o=e.options.stacking;e[o+"Stacker"]&&[n,"-"+n].forEach((function(n){for(var a,s,l=r.length;l--;)a=r[l],t=e.getStackIndicator(t,a,e.index,n),(s=(a=i[n]&&i[n][a])&&a.points[t.key])&&e[o+"Stacker"](s,a,l)}))},r.prototype.percentStacker=function(t,e,n){e=e.total?100/e.total:0,t[0]=l(t[0]*e),t[1]=l(t[1]*e),this.stackedYData[n]=t[1]},r.prototype.getStackIndicator=function(t,e,n,i){return!c(t)||t.x!==e||i&&t.key!==i?t={x:e,index:0,key:i}:t.index++,t.key=[n,e,t.index].join(),t},i.StackItem=g,i.StackItem})),e(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n.defined,o=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.prototype.drawGraph=function(){var t=this,e=this.options,n=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode,r=[["graph","highcharts-graph"]];i||r[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(r=t.getZonesGraphs(r)).forEach((function(r,o){var a=r[0],s=t[a],l=s?"animate":"attr";s?(s.endX=t.preventGraphAnimation?null:n.xMap,s.animate({d:n})):n.length&&(t[a]=s=t.chart.renderer.path(n).addClass(r[1]).attr({zIndex:1}).add(t.group)),s&&!i&&(a={stroke:r[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},r[3]?a.dashstyle=r[3]:"square"!==e.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),s[l](a).shadow(2>o&&e.shadow)),s&&(s.startX=n.xMap,s.isArea=n.isArea)}))},n.prototype.getGraphPath=function(t,e,n){var i,o=this,a=o.options,s=[],l=[],c=a.step,d=(t=t||o.points).reversed;return d&&t.reverse(),(c={right:1,center:2}[c]||c&&3)&&d&&(c=4-c),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!n))).forEach((function(d,u){var h=d.plotX,p=d.plotY,f=t[u-1];(d.leftCliff||f&&f.rightCliff)&&!n&&(i=!0),d.isNull&&!r(e)&&0<u?i=!a.connectNulls:d.isNull&&!e?i=!0:(0===u||i?u=[["M",d.plotX,d.plotY]]:o.getPointSpline?u=[o.getPointSpline(t,d,u)]:c?(u=1===c?[["L",f.plotX,p]]:2===c?[["L",(f.plotX+h)/2,f.plotY],["L",(f.plotX+h)/2,p]]:[["L",h,f.plotY]]).push(["L",h,p]):u=[["L",h,p]],l.push(d.x),c&&(l.push(d.x),2===c&&l.push(d.x)),s.push.apply(s,u),i=!1)})),s.xMap=l,o.graphPath=s},n.prototype.getZonesGraphs=function(t){return this.zones.forEach((function(e,n){n=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||"")],this.chart.styledMode||n.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(n)}),this),t},n.defaultOptions=o(t.defaultOptions,{}),n}(t),e.registerSeriesType("line",n),n})),e(n,"Series/Area/AreaSeries.js",[n["Core/Color/Color.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=t.parse,a=n.seriesTypes.line;t=i.extend;var s=i.merge,l=i.objectEach,c=i.pick;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,n=this.areaPath,i=this.options,r=[["area","highcharts-area",this.color,i.fillColor]];this.zones.forEach((function(t,n){r.push(["zone-area-"+n,"highcharts-area highcharts-zone-area-"+n+" "+t.className,t.color||e.color,t.fillColor||i.fillColor])})),r.forEach((function(t){var r=t[0],a=e[r],s=a?"animate":"attr",l={};a?(a.endX=e.preventGraphAnimation?null:n.xMap,a.animate({d:n})):(l.zIndex=0,(a=e[r]=e.chart.renderer.path(n).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(l.fill=c(t[3],o(t[2]).setOpacity(c(i.fillOpacity,.75)).get())),a[s](l),a.startX=n.xMap,a.shiftUnit=i.step?2:1}))},e.prototype.getGraphPath=function(t){var e,n=a.prototype.getGraphPath,i=this.options,r=i.stacking,o=this.yAxis,s=[],l=[],d=this.index,u=o.stacking.stacks[this.stackKey],h=i.threshold,p=Math.round(o.getThreshold(i.threshold));i=c(i.connectNulls,"percent"===r);var f=function(e,n,i){var a=t[e];e=r&&u[a.x].points[d];var c=a[i+"Null"]||0;if(i=a[i+"Cliff"]||0,a=!0,i||c){var f=(c?e[0]:e[1])+i,g=e[0]+i;a=!!c}else!r&&t[n]&&t[n].isNull&&(f=g=h);void 0!==f&&(l.push({plotX:m,plotY:null===f?p:o.getThreshold(f),isNull:a,isCliff:!0}),s.push({plotX:m,plotY:null===g?p:o.getThreshold(g),doCurve:!1}))};for(t=t||this.points,r&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){r||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=c(t[e].rectPlotX,t[e].plotX),v=r?c(t[e].yBottom,p):p;g&&!i||(i||f(e,e-1,"left"),g&&!r&&i||(l.push(t[e]),s.push({x:e,plotX:m,plotY:v})),i||f(e,e+1,"right"))}return e=n.call(this,l,!0,!0),s.reversed=!0,(v=(g=n.call(this,s,!0,!0))[0])&&"M"===v[0]&&(g[0]=["L",v[1],v[2]]),(g=e.concat(g)).length&&g.push(["Z"]),n=n.call(this,l,!1,i),g.xMap=e.xMap,this.areaPath=g,n},e.prototype.getStackPoints=function(t){var e=this,n=[],i=[],r=this.xAxis,o=this.yAxis,a=o.stacking.stacks[this.stackKey],s={},d=o.series,u=d.length,h=o.options.reversedStacks?1:-1,p=d.indexOf(e);if(t=t||this.points,this.options.stacking){for(var f=0;f<t.length;f++)t[f].leftNull=t[f].rightNull=void 0,s[t[f].x]=t[f];l(a,(function(t,e){null!==t.total&&i.push(e)})),i.sort((function(t,e){return t-e}));var g=d.map((function(t){return t.visible}));i.forEach((function(t,l){var f,m,v=0;if(s[t]&&!s[t].isNull)n.push(s[t]),[-1,1].forEach((function(n){var r=1===n?"rightNull":"leftNull",o=0,c=a[i[l+n]];if(c)for(var v=p;0<=v&&v<u;){var y=d[v].index;(f=c.points[y])||(y===e.index?s[t][r]=!0:g[v]&&(m=a[t].points[y])&&(o-=m[1]-m[0])),v+=h}s[t][1===n?"rightCliff":"leftCliff"]=o}));else{for(var y=p;0<=y&&y<u;){if(f=a[t].points[d[y].index]){v=f[1];break}y+=h}v=c(v,0),v=o.translate(v,0,1,0,1),n.push({isNull:!0,plotX:r.translate(t,0,0,0,1),x:t,plotY:v,yBottom:v})}}))}return n},e.defaultOptions=s(a.defaultOptions,{threshold:0}),e}(a),t(i.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),n.registerSeriesType("area",i),i})),e(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=t.seriesTypes.line,r=e.merge,o=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.getPointSpline=function(t,e,n){var i=e.plotX||0,r=e.plotY||0,a=t[n-1];if(n=t[n+1],a&&!a.isNull&&!1!==a.doCurve&&!e.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff){t=a.plotY||0;var s=n.plotX||0;n=n.plotY||0;var l=0,c=(1.5*i+(a.plotX||0))/2.5,d=(1.5*r+t)/2.5,u=(1.5*r+n)/2.5;(s=(1.5*i+s)/2.5)!==c&&(l=(u-d)*(s-i)/(s-c)+r-u),u+=l,(d+=l)>t&&d>r?u=2*r-(d=Math.max(t,r)):d<t&&d<r&&(u=2*r-(d=Math.min(t,r))),u>n&&u>r?d=2*r-(u=Math.max(n,r)):u<n&&u<r&&(d=2*r-(u=Math.min(n,r))),e.rightContX=s,e.rightContY=u}return e=["C",o(a.rightContX,a.plotX,0),o(a.rightContY,a.plotY,0),o(c,i,0),o(d,r,0),i,r],a.rightContX=a.rightContY=void 0,e},e.defaultOptions=r(i.defaultOptions),e}(i),t.registerSeriesType("spline",e),e})),e(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Area/AreaSeries.js"],n["Series/Spline/SplineSeries.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=t.prototype,s=r.extend,l=r.merge;return s((r=function(n){function i(){var t=null!==n&&n.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return o(i,n),i.defaultOptions=l(e.defaultOptions,t.defaultOptions),i}(e)).prototype,{getGraphPath:a.getGraphPath,getStackPoints:a.getStackPoints,drawGraph:a.drawGraph,drawLegendSymbol:n.drawRectangle}),i.registerSeriesType("areaspline",r),r})),e(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a){var s=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=t.animObject,c=e.parse,d=n.hasTouch;t=n.noop;var u=a.clamp,h=a.css,p=a.defined,f=a.extend,g=a.fireEvent,m=a.isArray,v=a.isNumber,y=a.merge,b=a.pick,x=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return s(e,t),e.prototype.animate=function(t){var e=this,n=this.yAxis,i=e.options,r=this.chart.inverted,o={},a=r?"translateX":"translateY";if(t)o.scaleY=.001,t=u(n.toPixels(i.threshold),n.pos,n.pos+n.len),r?o.translateX=t-n.len:o.translateY=t,e.clipBox&&e.setClip(),e.group.attr(o);else{var s=Number(e.group.attr(a));e.group.animate({scaleY:1},f(l(e.options.animation),{step:function(t,i){e.group&&(o[a]=s+i.pos*(n.pos-s),e.group.attr(o))}}))}},e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments);var i=this;(e=i.chart).hasRendered&&e.series.forEach((function(t){t.type===i.type&&(t.isDirty=!0)}))},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,n=t.xAxis,i=t.yAxis,r=n.options.reversedStacks;r=n.reversed&&!r||!n.reversed&&r;var o,a={},s=0;!1===e.grouping?s=1:t.chart.series.forEach((function(e){var n=e.yAxis,r=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&i.len===n.len&&i.pos===n.pos){if(r.stacking&&"group"!==r.stacking){o=e.stackKey,void 0===a[o]&&(a[o]=s++);var l=a[o]}else!1!==r.grouping&&(l=s++);e.columnIndex=l}}));var l=Math.min(Math.abs(n.transA)*(n.ordinal&&n.ordinal.slope||e.pointRange||n.closestPointRange||n.tickInterval||1),n.len),c=l*e.groupPadding,d=(l-2*c)/(s||1);return e=Math.min(e.maxPointWidth||n.len,b(e.pointWidth,d*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(d-e)/2+(c+((t.columnIndex||0)+(r?1:0))*d-l/2)*(r?-1:1),paddedWidth:d,columnCount:s},t.columnMetrics},e.prototype.crispCol=function(t,e,n,i){var r=this.chart,o=this.borderWidth,a=-(o%2?.5:0);return o=o%2?.5:1,r.inverted&&r.renderer.isVML&&(o+=1),this.options.crisp&&(n=Math.round(t+n)+a,n-=t=Math.round(t)+a),i=Math.round(e+i)+o,a=.5>=Math.abs(e)&&.5<i,i-=e=Math.round(e)+o,a&&i&&(--e,i+=1),{x:t,y:e,width:n,height:i}},e.prototype.adjustForMissingColumns=function(t,e,n,i){var r=this,o=this.options.stacking;if(!n.isNull&&1<i.columnCount){var a=0,s=0;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(t){if("number"==typeof n.x&&(t=t[n.x.toString()])){var e=t.points[r.index],i=t.total;o?(e&&(a=s),t.hasValidPoints&&s++):m(e)&&(a=e[1],s=i||0)}})),t=(n.plotX||0)+((s-1)*i.paddedWidth+e)/2-e-a*i.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,n=t.options,i=t.dense=2>t.closestPointRange*t.xAxis.transA;i=t.borderWidth=b(n.borderWidth,i?0:1);var o=t.xAxis,a=t.yAxis,s=n.threshold,l=t.translatedThreshold=a.getThreshold(s),c=b(n.minPointLength,5),d=t.getColumnMetrics(),h=d.width,f=t.pointXOffset=d.offset,g=t.dataMin,m=t.dataMax,y=t.barW=Math.max(h,1+2*i);e.inverted&&(l-=.5),n.pointPadding&&(y=Math.ceil(y)),r.prototype.translate.apply(t),t.points.forEach((function(i){var r=b(i.yBottom,l),x=999+Math.abs(r),_=i.plotX||0;x=u(i.plotY,-x,a.len+x);var O=Math.min(x,r),w=Math.max(x,r)-O,C=h,$=_+f,k=y;c&&Math.abs(w)<c&&(w=c,_=!a.reversed&&!i.negative||a.reversed&&i.negative,v(s)&&v(m)&&i.y===s&&m<=s&&(a.min||0)<s&&(g!==m||(a.max||0)<=s)&&(_=!_),O=Math.abs(O-l)>c?r-c:l-(_?c:0)),p(i.options.pointWidth)&&(C=k=Math.ceil(i.options.pointWidth),$-=Math.round((C-h)/2)),n.centerInCategory&&($=t.adjustForMissingColumns($,C,i,d)),i.barX=$,i.pointWidth=C,i.tooltipPos=e.inverted?[u(a.len+a.pos-e.plotLeft-x,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),o.len+o.pos-e.plotTop-$-k/2,w]:[o.left-e.plotLeft+$+k/2,u(x+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),w],i.shapeType=t.pointClass.prototype.shapeType||"rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[$,l,k,0]:[$,O,k,w])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var n=this.options,i=this.pointAttrToOptions||{},r=i.stroke||"borderColor",o=i["stroke-width"]||"borderWidth",a=t&&t.color||this.color,s=t&&t[r]||n[r]||a;i=t&&t.options.dashStyle||n.dashStyle;var l=t&&t[o]||n[o]||this[o]||0,d=b(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var u=t.getZone();a=t.options.color||u&&(u.color||t.nonZonedColor)||this.color,u&&(s=u.borderColor||s,i=u.dashStyle||i,l=u.borderWidth||l)}return e&&t&&(e=(t=y(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&c(a).brighten(t.brightness).get()||a,s=t[r]||s,l=t[o]||l,i=t.dashStyle||i,d=b(t.opacity,d)),r={fill:a,stroke:s,"stroke-width":l,opacity:d},i&&(r.dashstyle=i),r},e.prototype.drawPoints=function(){var t,e=this,n=this.chart,i=e.options,r=n.renderer,o=i.animationLimit||250;e.points.forEach((function(a){var s=a.graphic,l=!!s,c=s&&n.pointCount<o?"animate":"attr";v(a.plotY)&&null!==a.y?(t=a.shapeArgs,s&&a.hasNewShapeType()&&(s=s.destroy()),e.enabledDataSorting&&(a.startXPos=e.xAxis.reversed?-(t&&t.width||0):e.xAxis.width),s||(a.graphic=s=r[a.shapeType](t).add(a.group||e.group))&&e.enabledDataSorting&&n.hasRendered&&n.pointCount<o&&(s.attr({x:a.startXPos}),l=!0,c="animate"),s&&l&&s[c](y(t)),i.borderRadius&&s[c]({r:i.borderRadius}),n.styledMode||s[c](e.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&i.shadow,null,i.stacking&&!i.borderRadius),s&&(s.addClass(a.getClassName(),!0),s.attr({visibility:a.visible?"inherit":"hidden"}))):s&&(a.graphic=s.destroy())}))},e.prototype.drawTracker=function(){var t,e=this,n=e.chart,i=n.pointer,r=function(t){var e=i.getPointFromEvent(t);void 0!==e&&(i.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach((function(e){t=m(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),e._hasTracking||(e.trackerGroups.forEach((function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",(function(t){i.onTrackerMouseOut(t)})),d&&e[t].on("touchstart",r),!n.styledMode&&e.options.cursor&&e[t].css(h).css({cursor:e.options.cursor}))})),e._hasTracking=!0),g(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),r.prototype.remove.apply(t,arguments)},e.defaultOptions=y(r.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),e}(r),f(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:i.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("column",a),a})),e(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.getDeferredAnimation,o=e.format,a=n.defined,s=n.extend,l=n.fireEvent,c=n.isArray,d=n.merge,u=n.objectEach,h=n.pick,p=n.splat;return function(t){function e(t,e,n,i,r){var o=this,a=this.chart,l=this.isCartesian&&a.inverted,c=this.enabledDataSorting,d=h(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),u=h(t.plotY,-9999),p=e.getBBox(),f=n.rotation,g=n.align,m=a.isInsidePlot(d,Math.round(u),{inverted:l,paneCoordinates:!0,series:o}),v=function(n){c&&o.xAxis&&!y&&o.setDataLabelStartPos(t,e,r,m,n)},y="justify"===h(n.overflow,c?"none":"justify"),b=this.visible&&!1!==t.visible&&(t.series.forceDL||c&&!y||m||h(n.inside,!!this.options.stacking)&&i&&a.isInsidePlot(d,l?i.x+1:i.y+i.height-1,{inverted:l,paneCoordinates:!0,series:o}));if(b){var x=a.renderer.fontMetrics(a.styledMode?void 0:n.style.fontSize,e).b;i=s({x:l?this.yAxis.len-u:d,y:Math.round(l?this.xAxis.len-d:u),width:0,height:0},i),s(n,{width:p.width,height:p.height}),f?(y=!1,d=a.renderer.rotCorr(x,f),v(d={x:i.x+(n.x||0)+i.width/2+d.x,y:i.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height}),e[r?"attr":"animate"](d).attr({align:g}),v=180<(v=(f+720)%360)&&360>v,"left"===g?d.y-=v?p.height:0:"center"===g?(d.x-=p.width/2,d.y-=p.height/2):"right"===g&&(d.x-=p.width,d.y-=v?0:p.height),e.placed=!0,e.alignAttr=d):(v(i),e.align(n,void 0,i),d=e.alignAttr),y&&0<=i.height?this.justifyDataLabel(e,n,d,p,i,r):h(n.crop,!0)&&(b=a.isInsidePlot(d.x,d.y,{paneCoordinates:!0,series:o})&&a.isInsidePlot(d.x+p.width,d.y+p.height,{paneCoordinates:!0,series:o})),n.shape&&!f&&e[r?"attr":"animate"]({anchorX:l?a.plotWidth-t.plotY:t.plotX,anchorY:l?a.plotHeight-t.plotX:t.plotY})}r&&c&&(e.placed=!1),b||c&&!y||(e.hide(!0),e.placed=!1)}function n(){var t=this,e=t.chart,n=t.options,i=t.points,s=t.hasRendered||0,d=e.renderer,g=n.dataLabels,m=g.animation;if(m=g.defer?r(e,m,t):{defer:0,duration:0},g=f(f(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[t.type]&&e.options.plotOptions[t.type].dataLabels),g),l(this,"drawDataLabels"),c(g)||g.enabled||t._hasPointLabels){var v=t.plotGroup("dataLabelsGroup","data-labels",s?"inherit":"hidden",g.zIndex||6);v.attr({opacity:+s}),!s&&(s=t.dataLabelsGroup)&&(t.visible&&v.show(!0),s[n.animation?"animate":"attr"]({opacity:1},m)),i.forEach((function(i){p(f(g,i.dlOptions||i.options&&i.options.dataLabels)).forEach((function(r,s){var l=r.enabled&&(!i.isNull||i.dataLabelOnNull)&&function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t<n||">="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(i,r),c=i.connectors?i.connectors[s]:i.connector,p=i.dataLabels?i.dataLabels[s]:i.dataLabel,f=h(r.distance,i.labelDistance),g=!p;if(l){var m=i.getLabelConfig(),y=h(r[i.formatPrefix+"Format"],r.format);m=a(y)?o(y,m,e):(r[i.formatPrefix+"Formatter"]||r.formatter).call(m,r),y=r.style;var b=r.rotation;e.styledMode||(y.color=h(r.color,y.color,t.color,"#000000"),"contrast"===y.color?(i.contrastColor=d.getContrast(i.color||t.color),y.color=!a(f)&&r.inside||0>f||n.stacking?i.contrastColor:"#000000"):delete i.contrastColor,n.cursor&&(y.cursor=n.cursor));var x={r:r.borderRadius||0,rotation:b,padding:r.padding,zIndex:1};e.styledMode||(x.fill=r.backgroundColor,x.stroke=r.borderColor,x["stroke-width"]=r.borderWidth),u(x,(function(t,e){void 0===t&&delete x[e]}))}!p||l&&a(m)&&!!p.div==!!r.useHTML||(i.dataLabel=p=i.dataLabel&&i.dataLabel.destroy(),i.dataLabels&&(1===i.dataLabels.length?delete i.dataLabels:delete i.dataLabels[s]),s||delete i.dataLabel,c&&(i.connector=i.connector.destroy(),i.connectors&&(1===i.connectors.length?delete i.connectors:delete i.connectors[s]))),l&&a(m)&&(p?x.text=m:(i.dataLabels=i.dataLabels||[],p=i.dataLabels[s]=b?d.text(m,0,-9999,r.useHTML).addClass("highcharts-data-label"):d.label(m,0,-9999,r.shape,null,null,r.useHTML,null,"data-label"),s||(i.dataLabel=p),p.addClass(" highcharts-data-label-color-"+i.colorIndex+" "+(r.className||"")+(r.useHTML?" highcharts-tracker":""))),p.options=r,p.attr(x),e.styledMode||p.css(y).shadow(r.shadow),p.added||p.add(v),r.textPath&&!r.useHTML&&(p.setTextPath(i.getDataLabelPath&&i.getDataLabelPath(p)||i.graphic,r.textPath),i.dataLabelPath&&!r.textPath.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy())),t.alignDataLabel(i,p,r,null,g))}))}))}l(this,"afterDrawDataLabels")}function i(t,e,n,i,r,o){var a=this.chart,s=e.align,l=e.verticalAlign,c=t.box?0:t.padding||0,d=e.x;d=void 0===d?0:d;var u=e.y;u=void 0===u?0:u;var h=(n.x||0)+c;if(0>h){"right"===s&&0<=d?(e.align="left",e.inside=!0):d-=h;var p=!0}return(h=(n.x||0)+i.width-c)>a.plotWidth&&("left"===s&&0>=d?(e.align="right",e.inside=!0):d+=a.plotWidth-h,p=!0),0>(h=n.y+c)&&("bottom"===l&&0<=u?(e.verticalAlign="top",e.inside=!0):u-=h,p=!0),(h=(n.y||0)+i.height-c)>a.plotHeight&&("top"===l&&0>=u?(e.verticalAlign="bottom",e.inside=!0):u+=a.plotHeight-h,p=!0),p&&(e.x=d,e.y=u,t.placed=!o,t.align(e,void 0,r)),p}function f(t,e){var n,i=[];if(c(t)&&!c(e))i=t.map((function(t){return d(t,e)}));else if(c(e)&&!c(t))i=e.map((function(e){return d(t,e)}));else if(c(t)||c(e))for(n=Math.max(t.length,e.length);n--;)i[n]=d(t[n],e[n]);else i=d(t,e);return i}function g(t,e,n,i,r){var o=this.chart,a=o.inverted,s=this.xAxis,l=s.reversed,c=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=a?r.x:l?-c-t:s.width-c+t,e.startYPos=a?l?this.yAxis.height-c+t:-c-t:r.y,i?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var m=[];t.compose=function(t){if(-1===m.indexOf(t)){var r=t.prototype;m.push(t),r.alignDataLabel=e,r.drawDataLabels=n,r.justifyDataLabel=i,r.setDataLabelStartPos=g}}}(i||(i={})),i})),e(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=e.series,o=n.merge,a=n.pick;return function(e){function n(t,e,n,i,s){var l=this.chart.inverted,c=t.series,d=(c.xAxis?c.xAxis.len:this.chart.plotSizeX)||0;c=(c.yAxis?c.yAxis.len:this.chart.plotSizeY)||0;var u=t.dlBox||t.shapeArgs,h=a(t.below,t.plotY>a(this.translatedThreshold,c)),p=a(n.inside,!!this.options.stacking);u&&(0>(i=o(u)).y&&(i.height+=i.y,i.y=0),0<(u=i.y+i.height-c)&&u<i.height&&(i.height-=u),l&&(i={x:c-i.y-i.height,y:d-i.x-i.width,width:i.height,height:i.width}),p||(l?(i.x+=h?0:i.width,i.width=0):(i.y+=h?i.height:0,i.height=0))),n.align=a(n.align,!l||p?"center":h?"right":"left"),n.verticalAlign=a(n.verticalAlign,l||p?"middle":h?"top":"bottom"),r.prototype.alignDataLabel.call(this,t,e,n,i,s),n.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var i=[];e.compose=function(e){t.compose(r),-1===i.indexOf(e)&&(i.push(e),e.prototype.alignDataLabel=n)}}(i||(i={})),i})),e(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n.extend,o=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.defaultOptions=o(t.defaultOptions,{}),n}(t),r(n.prototype,{inverted:!0}),e.registerSeriesType("bar",n),n})),e(n,"Series/Scatter/ScatterSeries.js",[n["Series/Column/ColumnSeries.js"],n["Series/Line/LineSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=i.addEvent,a=i.extend,s=i.merge;return a((i=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(n,t),n.prototype.applyJitter=function(){var t=this,e=this.options.jitter,n=this.points.length;e&&this.points.forEach((function(i,r){["x","y"].forEach((function(o,a){var s="plot"+o.toUpperCase();if(e[o]&&!i.isNull){var l=t[o+"Axis"],c=e[o]*l.transA;if(l&&!l.isLog){var d=Math.max(0,i[s]-c);l=Math.min(l.len,i[s]+c),a=1e4*Math.sin(r+a*n),i[s]=d+(l-d)*(a-Math.floor(a)),"x"===o&&(i.clientX=i.plotX)}}}))}))},n.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},n.defaultOptions=s(e.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),n}(e)).prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(i,"afterTranslate",(function(){this.applyJitter()})),n.registerSeriesType("scatter",i),i})),e(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.deg2rad,o=n.isNumber,a=n.pick,s=n.relativeLength;return function(t){t.getCenter=function(){var t=this.options,n=this.chart,i=2*(t.slicedOffset||0),r=n.plotWidth-2*i,o=n.plotHeight-2*i,l=t.center,c=Math.min(r,o),d=t.size,u=t.innerSize||0;for("string"==typeof d&&(d=parseFloat(d)),"string"==typeof u&&(u=parseFloat(u)),t=[a(l[0],"50%"),a(l[1],"50%"),a(d&&0>d?void 0:t.size,"100%"),a(u&&0>u?void 0:t.innerSize||0,"0%")],!n.angular||this instanceof e||(t[3]=0),l=0;4>l;++l)d=t[l],n=2>l||2===l&&/%$/.test(d),t[l]=s(d,[r,o,c,t[2]][l])+(n?i:0);return t[3]>t[2]&&(t[3]=t[2]),t},t.getStartAndEndRadians=function(t,e){return t=o(t)?t:0,e=o(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}(i||(i={})),i})),e(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.setAnimation,o=n.addEvent,a=n.defined;t=n.extend;var s=n.isNumber,l=n.pick,c=n.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return i(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=this.connectorShapes,i=e.connectorShape;return n[i]&&(i=n[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=l(this.name,"Slice");var n=function(t){e.slice("select"===t.type)};return o(this,"select",n),o(this,"unselect",n),this},e.prototype.isValid=function(){return s(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var n=this,i=this.series,r=i.chart,o=i.options.ignoreHiddenPoint;e=l(e,o),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,i.options.data[i.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){n[e]&&n[e][t?"show":"hide"](t)})),this.legendItem&&r.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),o&&(i.isDirty=!0),e&&r.redraw())},e.prototype.slice=function(t,e,n){var i=this.series;r(n,i.chart),l(e,!0),this.sliced=this.options.sliced=a(t)?t:!this.sliced,i.options.data[i.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,n){var i=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*i.x-e.x,2*i.y-e.y,i.x,i.y]:["L",i.x,i.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,n){e=e.touchingSliceAt;var i=this.series,r=i.center[0],o=i.chart.plotWidth,a=i.chart.plotLeft;i=t.alignment;var s=this.shapeArgs.r;return n=c(n.crookDistance,1),n=["L",o="left"===i?r+s+(o+a-r-s)*(1-n):a+(r-s)*n,t.y],r=!0,("left"===i?o>t.x||o<e.x:o<t.x||o>e.x)&&(r=!1),t=[["M",t.x,t.y]],r&&t.push(n),t.push(["L",e.x,e.y]),t}}}),e})),e(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Series/Pie/PiePoint.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l){var c=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=t.getStartAndEndRadians;n=n.noop;var u=l.clamp,h=l.extend,p=l.fireEvent,f=l.merge,g=l.pick,m=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,n=e.points,i=e.startAngleRad;t||n.forEach((function(t){var n=t.graphic,r=t.shapeArgs;n&&r&&(n.attr({r:g(t.startR,e.center&&e.center[3]/2),start:i,end:i}),n.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var i=this.center[0],r=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(i,r,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:s.arc(i,r,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,n){var i=this.center,r=this.radii?this.radii[n.index]||0:i[2]/2;return t=Math.asin(u((t-i[1])/(r+n.labelDistance),-1,1)),i[0]+(e?-1:1)*Math.cos(t)*(r+n.labelDistance)+(0<n.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,n,i,r=this,o=r.chart,a=o.renderer,s=r.options.shadow;this.drawEmpty(),!s||r.shadowGroup||o.styledMode||(r.shadowGroup=a.g("shadow").attr({zIndex:-1}).add(r.group)),r.points.forEach((function(l){var c={};if(e=l.graphic,!l.isNull&&e){var d=void 0;i=l.shapeArgs,t=l.getTranslate(),o.styledMode||(d=l.shadowGroup,s&&!d&&(d=l.shadowGroup=a.g("shadow").add(r.shadowGroup)),d&&d.attr(t),n=r.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(e.setRadialReference(r.center).attr(i).attr(t),o.styledMode||e.attr(n).attr({"stroke-linejoin":"round"}).shadow(s,d),l.delayedRendering=!1):(e.setRadialReference(r.center),o.styledMode||f(!0,c,n),f(!0,c,i,t),e.animate(c)),e.attr({visibility:l.visible?"inherit":"hidden"}),e.addClass(l.getClassName(),!0)}else e&&(l.graphic=e.destroy())}))},e.prototype.sortByAngle=function(t,e){t.sort((function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e}))},e.prototype.translate=function(t){this.generatePoints();var e=this.options,n=e.slicedOffset,i=n+(e.borderWidth||0),r=d(e.startAngle,e.endAngle),o=this.startAngleRad=r.start;r=(this.endAngleRad=r.end)-o;var a=this.points,s=e.dataLabels.distance;e=e.ignoreHiddenPoint;var l,c=a.length,u=0;for(t||(this.center=t=this.getCenter()),l=0;l<c;l++){var h=a[l],f=o+u*r;!h.isValid()||e&&!h.visible||(u+=h.percentage/100);var v=o+u*r,y={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*f)/1e3,end:Math.round(1e3*v)/1e3};h.shapeType="arc",h.shapeArgs=y,h.labelDistance=g(h.options.dataLabels&&h.options.dataLabels.distance,s),h.labelDistance=m(h.labelDistance,y.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,h.labelDistance),(v=(v+f)/2)>1.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(v)*n),translateY:Math.round(Math.sin(v)*n)},y=Math.cos(v)*t[2]/2;var b=Math.sin(v)*t[2]/2;h.tooltipPos=[t[0]+.7*y,t[1]+.7*b],h.half=v<-Math.PI/2||v>Math.PI/2?1:0,h.angle=v,f=Math.min(i,h.labelDistance/5),h.labelPosition={natural:{x:t[0]+y+Math.cos(v)*h.labelDistance,y:t[1]+b+Math.sin(v)*h.labelDistance},final:{},alignment:0>h.labelDistance?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(v)*f,y:t[1]+b+Math.sin(v)*f},touchingSliceAt:{x:t[0]+y,y:t[1]+b}}}}p(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,n=e.length,i=this.options.ignoreHiddenPoint,r=0;for(t=0;t<n;t++){var o=e[t];!o.isValid()||i&&!o.visible||(r+=o.y)}for(this.total=r,t=0;t<n;t++)(o=e[t]).percentage=0<r&&(o.visible||!i)?o.y/r*100:0,o.total=r},e.defaultOptions=f(o.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),e}(o),h(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:i.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:n,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:r,requireSorting:!1,searchPoint:n,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l})),e(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o,a=e.noop,s=n.distribute,l=i.series,c=r.arrayMax,d=r.clamp,u=r.defined,h=r.merge,p=r.pick,f=r.relativeLength;return function(e){function n(){var t,e,n,i,r,o,a,d,f,g,m,v,y=this,b=y.data,x=y.chart,_=y.options.dataLabels||{},O=_.connectorPadding,w=x.plotWidth,C=x.plotHeight,$=x.plotLeft,k=Math.round(x.chartWidth/3),S=y.center,E=S[2]/2,j=S[1],A=[[],[]],P=[0,0,0,0],M=y.dataLabelPositioners;y.visible&&(_.enabled||y._hasPointLabels)&&(b.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),l.prototype.drawDataLabels.apply(y),b.forEach((function(t){t.dataLabel&&(t.visible?(A[t.half].push(t),t.dataLabel._pos=null,!u(_.style.width)&&!u(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>k&&(t.dataLabel.css({width:Math.round(.7*k)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),A.forEach((function(e,n){var l,c=e.length,h=[];if(c){if(y.sortByAngle(e,n-.5),0<y.maxLabelDistance){var b=Math.max(0,j-E-y.maxLabelDistance),k=Math.min(j+E+y.maxLabelDistance,x.plotHeight);e.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,j-E-t.labelDistance),t.bottom=Math.min(j+E+t.labelDistance,x.plotHeight),l=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+l/2,size:l,rank:t.y},h.push(t.distributeBox))})),s(h,b=k+l-b,b/5)}for(m=0;m<c;m++){if(t=e[m],o=t.labelPosition,i=t.dataLabel,g=!1===t.visible?"hidden":"inherit",f=b=o.natural.y,h&&u(t.distributeBox)&&(void 0===t.distributeBox.pos?g="hidden":(a=t.distributeBox.size,f=M.radialDistributionY(t))),delete t.positionIndex,_.justify)d=M.justify(t,E,S);else switch(_.alignTo){case"connectors":d=M.alignToConnectors(e,n,w,$);break;case"plotEdges":d=M.alignToPlotEdges(i,n,w,$);break;default:d=M.radialDistributionX(y,t,f,b)}i._attr={visibility:g,align:o.alignment},v=t.options.dataLabels||{},i._pos={x:d+p(v.x,_.x)+({left:O,right:-O}[o.alignment]||0),y:f+p(v.y,_.y)-10},o.final.x=d,o.final.y=f,p(_.crop,!0)&&(r=i.getBBox().width,b=null,d-r<O&&1===n?(b=Math.round(r-d+O),P[3]=Math.max(b,P[3])):d+r>w-O&&0===n&&(b=Math.round(d+r-w+O),P[1]=Math.max(b,P[1])),0>f-a/2?P[0]=Math.max(Math.round(a/2-f),P[0]):f+a/2>C&&(P[2]=Math.max(Math.round(f+a/2-C),P[2])),i.sideOverflow=b)}}})),0===c(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),this.points.forEach((function(t){var r;(v=h(_,t.options.dataLabels),e=p(v.connectorWidth,1))&&(n=t.connector,(i=t.dataLabel)&&i._pos&&t.visible&&0<t.labelDistance?(g=i._attr.visibility,(r=!n)&&(t.connector=n=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(y.dataLabelsGroup),x.styledMode||n.attr({"stroke-width":e,stroke:v.connectorColor||t.color||"#666666"})),n[r?"attr":"animate"]({d:t.getConnectorPath()}),n.attr("visibility",g)):n&&(t.connector=n.destroy()))})))}function i(){this.points.forEach((function(t){var e,n=t.dataLabel;n&&t.visible&&((e=n._pos)?(n.sideOverflow&&(n._attr.width=Math.max(n.getBBox().width-n.sideOverflow,0),n.css({width:n._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),n.shortened=!0),n.attr(n._attr),n[n.moved?"animate":"attr"](e),n.moved=!0):n&&n.attr({y:-9999})),delete t.distributeBox}),this)}function r(t){var e=this.center,n=this.options,i=n.center,r=n.minSize||80,o=null!==n.size;if(!o){if(null!==i[0])var a=Math.max(e[2]-Math.max(t[1],t[3]),r);else a=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2;null!==i[1]?a=d(a,r,e[2]-Math.max(t[0],t[2])):(a=d(a,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),a<e[2]?(e[2]=a,e[3]=Math.min(f(n.innerSize||0,a),a),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0}return o}var o=[],g={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,n,i){return t.getX(n<e.top+2||n>e.bottom-2?i:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,i){return t=t.getBBox().width,e?t+i:n-t-i},alignToConnectors:function(t,e,n,i){var r,o=0;return t.forEach((function(t){(r=t.dataLabel.getBBox().width)>o&&(o=r)})),e?o+i:n-o-i}};e.compose=function(e){t.compose(l),-1===o.indexOf(e)&&(o.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=a,e.drawDataLabels=n,e.placeDataLabels=i,e.verifyDataLabelOverflow=r)}}(o||(o={})),o})),e(n,"Extensions/OverlappingDataLabels.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e){var n=!1;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})})),r(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0}return n}var i=e.addEvent,r=e.fireEvent,o=e.isArray,a=e.isNumber,s=e.objectEach,l=e.pick;i(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&s(t.stacking.stacks,(function(t){s(t,(function(t){t.label&&"hidden"!==t.label.visibility&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(i){var r=i.options.dataLabels;i.visible&&(!1!==r.enabled||i._hasPointLabels)&&((r=function(i){return i.forEach((function(i){i.visible&&(o(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach((function(r){var o=r.options;r.labelrank=l(o.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),o.allowOverlap?(r.oldOpacity=r.opacity,r.newOpacity=1,n(r,t)):e.push(r)}))}))})(i.nodes||[]),r(i.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,i,o,s=this,l=t.length,c=s.renderer,d=!1,u=function(t){var e,n,i=t.box?0:t.padding||0,r=e=0;if(t&&(!t.alignAttr||t.placed)){var o=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},s=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=c.fontMetrics(null,t.element).h);var l=t.width-2*i;return(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?r=+n*l:a(t.x)&&Math.round(t.x)!==t.translateX&&(r=t.x-t.translateX),{x:o.x+(s.translateX||0)+i-(r||0),y:o.y+(s.translateY||0)+i-e,width:t.width-2*i,height:t.height-2*i}}};for(i=0;i<l;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=u(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),i=0;i<l;i++){var h=(u=t[i])&&u.absoluteBox;for(e=i+1;e<l;++e){var p=(o=t[e])&&o.absoluteBox;!h||!p||u===o||0===u.newOpacity||0===o.newOpacity||p.x>=h.x+h.width||p.x+p.width<=h.x||p.y>=h.y+h.height||p.y+p.height<=h.y||((u.labelrank<o.labelrank?u:o).newOpacity=0)}}t.forEach((function(t){n(t,s)&&(d=!0)})),d&&r(s,"afterHideAllOverlappingLabels")}})),e(n,"Core/Responsive.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.extend,i=t.find,r=t.isArray,o=t.isObject,a=t.merge,s=t.objectEach,l=t.pick,c=t.splat,d=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),n(t.prototype,u.prototype)),t};var u=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,n={};return function t(n,i,a,l){var d;s(n,(function(n,s){if(!l&&-1<e.collectionsWithUpdate.indexOf(s)&&i[s])for(n=c(n),a[s]=[],d=0;d<Math.max(n.length,i[s].length);d++)i[s][d]&&(void 0===n[d]?a[s][d]=i[s][d]:(a[s][d]={},t(n[d],i[s][d],a[s][d],l+1)));else o(n)?(a[s]=r(n)?[]:{},t(n,i[s]||{},a[s],l+1)):a[s]=void 0===i[s]?null:i[s]}))}(t,this.options,n,0),n},t.prototype.matchResponsiveRule=function(t,e){var n=t.condition;(n.callback||function(){return this.chartWidth<=l(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=l(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=l(n.minWidth,0)&&this.chartHeight>=l(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var n=this,r=this.options.responsive,o=this.currentResponsive,s=[];!e&&r&&r.rules&&r.rules.forEach((function(t){void 0===t._id&&(t._id=d()),n.matchResponsiveRule(t,s)}),this),(e=a.apply(void 0,s.map((function(t){return i((r||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions})))).isResponsiveOptions=!0,(s=s.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),s?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/DefaultOptions.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/FormatUtilities.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Renderer/HTML/HTMLRenderer.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/MSPointer.js"],n["Core/Legend/Legend.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnSeries.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieSeries.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],(function(t,e,n,i,r,o,a,s,l,c,d,u,h,p,f,g,m,v,y,b,x,_,O,w,C,$,k,S,E,j,A,P,M){return t.animate=r.animate,t.animObject=r.animObject,t.getDeferredAnimation=r.getDeferredAnimation,t.setAnimation=r.setAnimation,t.stop=r.stop,t.timers=i.timers,t.AST=o,t.Axis=h,t.Chart=O,t.chart=O.chart,t.Fx=i,t.Legend=_,t.PlotLineOrBand=g,t.Point=y,t.Pointer=x.isRequired()?x:b,t.Series=w,t.SVGElement=l,t.SVGRenderer=c,t.Tick=m,t.Time=M,t.Tooltip=v,t.Color=P,t.color=P.parse,u.compose(c),d.compose(l),t.defaultOptions=n.defaultOptions,t.getOptions=n.getOptions,t.time=n.defaultTime,t.setOptions=n.setOptions,t.dateFormat=a.dateFormat,t.format=a.format,t.numberFormat=a.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=s.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=C.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,k.compose($),j.compose(w),p.compose(h),f.compose(h),E.compose(S),g.compose(h),A.compose(O),t})),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]}))},function(t,e,n){(function(t,i){var r;
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var i=arguments[e];if(i){var o=typeof i;if("string"===o||"number"===o)t.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&t.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){t.push(i.toString());continue}for(var s in i)n.call(i,s)&&i[s]&&t.push(s)}}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(i=function(){return r}.apply(e,[]))||(t.exports=i)}()},function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return u}));var i=n(26),r=n(53);function o(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 i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s=function(t,e){return Object.keys(t).map((function(n){var i="string"==typeof t[n]?Object(r.a)(t[n]):t[n];return"".concat(e,"_").concat(n,"_").concat(i)})).join(" ")},l={spacingProps:function(t){var e=t.marginRight,n=t.marginLeft,i=t.marginTop,r=t.marginBottom,a=t.marginX,s=t.marginY,l=t.margin,c=t.paddingRight,d=t.paddingLeft,u=t.paddingTop,h=t.paddingBottom,p=t.paddingX,f=t.paddingY,g=t.padding,m="",v={marginRight:e,marginLeft:n,marginTop:i,marginBottom:r,marginX:a,marginY:s,margin:l,paddingRight:c,paddingLeft:d,paddingTop:u,paddingBottom:h,paddingX:p,paddingY:f,padding:g};function y(t){return{marginRight:"mr",marginLeft:"ml",marginTop:"mt",marginBottom:"mb",marginX:"mx",marginY:"my",margin:"m",paddingRight:"pr",paddingLeft:"pl",paddingTop:"pt",paddingBottom:"pb",paddingX:"px",paddingY:"py",padding:"p"}[t]}return Object.entries(v).forEach((function(t){var e=o(t,2),n=e[0],i=e[1];if(i)if("object"==typeof i)m+=function(t,e){var n="";return Object.entries(t).forEach((function(t){var i=o(t,2),r=i[0],a=i[1];n+="".concat(e,"_").concat(r,"_").concat(a," ")})),n}(i,y(n));else{var r=y(n);m+="".concat(r,"_").concat(i," ")}})),m.trim()},darkProps:function(t){return t.dark?"dark":""},numberSpacingProps:function(t){var e=t.numberSpacing,n="";return n+=e?"ns_".concat(e," "):""},maxWidthProps:function(t){var e=t.maxWidth,n="";return n+=e?"max_width_".concat(e," "):""},zIndexProps:function(t){var e="";return Object.entries(t).forEach((function(t){"zIndex"==t[0]&&("number"==typeof t[1]?e+="z_index_".concat(t[1]," "):"object"==typeof t[1]&&Object.entries(t[1]).forEach((function(t){e+="z_index_".concat(t[0],"_").concat(t[1]," ")})))})),e},shadowProps:function(t){var e=t.shadow,n="";return n+=e?"shadow_".concat(e," "):""},lineHeightProps:function(t){var e=t.lineHeight,n="";return n+=e?"line_height_".concat(e," "):""},displayProps:function(t){var e="";return Object.entries(t).forEach((function(t){"display"==t[0]&&("string"==typeof t[1]?e+="display_".concat(t[1]," "):"object"==typeof t[1]&&Object.entries(t[1]).forEach((function(t){e+="display_".concat(t[0],"_").concat(t[1]," ")})))})),e},cursorProps:function(t){var e=t.cursor,n="";return n+=e?"cursor_".concat(Object(r.a)(e)):""},alignContentProps:function(t){var e=t.alignContent;return"object"==typeof e?s(e,"align_content"):e?"align_content_".concat(Object(r.a)(e)):""},alignItemsProps:function(t){var e=t.alignItems;return"object"==typeof e?s(e,"align_items"):e?"align_items_".concat(Object(r.a)(e)):""},alignSelfProps:function(t){var e=t.alignSelf;return"object"==typeof e?s(e,"align_self"):e?"align_self_".concat(e):""},flexDirectionProps:function(t){var e=t.flexDirection;return"object"==typeof e?s(e,"flex_direction"):e?"flex_direction_".concat(Object(r.a)(e)):""},flexWrapProps:function(t){var e=t.flexWrap;return"object"==typeof e?s(e,"flex_wrap"):e?"flex_wrap_".concat(Object(r.a)(e)):""},flexProps:function(t){var e=t.flex;return"object"==typeof e?s(e,"flex"):e?"flex_".concat(e):""},flexGrowProps:function(t){var e=t.flexGrow;return"object"==typeof e?s(e,"flex_grow"):e?"flex_grow_".concat(e):""},flexShrinkProps:function(t){var e=t.flexShrink;return"object"==typeof e?s(e,"flex_shrink"):e?"flex_shrink_".concat(e):""},justifyContentProps:function(t){var e=t.justifyContent;return"object"==typeof e?s(e,"justify_content"):e?"justify_content_".concat(Object(r.a)(e)):""},justifySelfProps:function(t){var e=t.justifySelf;return"object"==typeof e?s(e,"justify_self"):e?"justify_self_".concat(e):""},orderProps:function(t){var e=t.order;return"object"==typeof e?s(e,"flex_order"):e?"flex_order_".concat(e):""},positionProps:function(t){var e=t.position,n="";return n+=e&&"static"!==e?"position_".concat(e):""}},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},t),e);return Object.keys(l).map((function(t){return l[t](n)})).filter((function(t){return(null==t?void 0:t.length)>0})).join(" ")},d=function(t){},u=function(t){return Object(i.omit)(t,["marginRight","marginLeft","marginTop","marginBottom","marginX","marginY","margin","paddingRight","paddingLeft","paddingTop","paddingBottom","paddingX","paddingY","padding","dark"])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(144);function r(t,e,n){return(e=Object(i.a)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={windows:"#003DB2",siding:"#6000AC",doors:"#B85C00",solar:"#007E8F",roofing:"#760B24",gutters:"#008540",insulation:"#96006C",product_1_background:"#003DB2",product_1_highlight:"#0057FF",product_2_background:"#6000AC",product_2_highlight:"#8200E9",product_3_background:"#B85C00",product_3_highlight:"#CE7500",product_4_background:"#007E8F",product_4_highlight:"#00B9D2",product_5_background:"#760B24",product_5_highlight:"#B8032E",product_6_background:"#008540",product_6_highlight:"#00A851",product_7_background:"#96006C",product_7_highlight:"#CD0094",product_8_background:"#144075",product_8_highlight:"#1A569E",product_9_background:"#fcc419",product_9_highlight:"#ffd43b",product_10_background:"#20c997",product_10_highlight:"#38d9a9",success:"#1CA05C",success_secondary:"#24cb75",success_sm:"#157F48",success_subtle:"rgba(28,160,92,0.1)",warning:"#F9BB00",warning_secondary:"#ffcb2d",warning_subtle:"rgba(249,187,0,0.1)",error:"#DA0014",error_secondary:"#ff0e24",error_subtle:"rgba(218,0,20,0.1)",info:"#00C4D7",info_secondary:"#0be9ff",info_subtle:"rgba(0,196,215,0.1)",neutral:"#C1CDD6",neutral_secondary:"#e0e6ea",neutral_subtle:"rgba(193,205,214,0.1)",primary:"#0056CF",primary_secondary:"#036cff",data_1:"#0056CF",data_2:"#F9BB00",data_3:"#9E64E9",data_4:"#1CA05C",data_5:"#FD804C",data_6:"#144075",data_7:"#00C4D7",data_8:"#DA0014",shadow:"rgba(60,106,172,0.2)",shadow_dark:"#0a0527",royal:"#0056CF",purple:"#9E64E9",teal:"#00C4D7",red:"#DA0014","#ff0":"#F9BB00",green:"#1CA05C",orange:"#FD804C",default:"#93a8b8","#fff":"#fff",silver:"#F3F7FB",slate:"#C1CDD6",charcoal:"#242B42","#000":"#000",secondary:"#F9BB00",tertiary:"#9E64E9",bg_light:"#F3F7FB",bg_dark:"#0a0527",bg_dark_card:"#231E3D",card_light:"#fff",card_dark:"#231e3d",active_light:"#f7fbff",active_dark:"#0082ff",primary_action:"#0056CF",hover_light:"#e0eaf5",hover_dark:"rgba(255,255,255,0.2)",border_light:"#E4E8F0",border_dark:"#3b3752",text_lt_default:"#242B42",text_lt_light:"#687887",text_lt_lighter:"#C1CDD6",text_dk_default:"#fff",text_dk_light:"rgba(255,255,255,0.6)",text_dk_lighter:"rgba(255,255,255,0.4)",category_1:"#0056CF",category_2:"#0CD2E5",category_3:"#F9BB00",category_4:"#14D595",category_5:"#A057FF",category_6:"#FF7034",category_7:"#97DA22",category_8:"#EA599F",category_9:"#0091FF",category_10:"#5027E4",category_11:"#DA0014",category_12:"#109922",category_13:"#058F9D",category_14:"#A33E6F",category_15:"#B2171C",category_16:"#0A5C49",category_17:"#325B91",category_18:"#BE4714",category_19:"navy",category_20:"#5C0E0A",category_21:"#040830",gradient_start:"#1C75F2",gradient_end:"#0056CF"}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d={horizontal:"fa-flip-horizontal",vertical:"fa-flip-vertical",both:"fa-flip-horizontal fa-flip-vertical",none:""};e.a=function(t){var e,n=t.aria,i=void 0===n?{}:n,o=t.border,u=void 0!==o&&o,h=t.className,p=t.customIcon,f=t.data,g=void 0===f?{}:f,m=t.fixedWidth,v=void 0===m||m,y=t.flip,b=void 0===y?"none":y,x=t.icon,_=t.id,O=t.inverse,w=void 0!==O&&O,C=t.listItem,$=void 0!==C&&C,k=t.pull,S=t.pulse,E=void 0!==S&&S,j=t.rotation,A=t.size,P=t.fontStyle,M=void 0===P?"far":P,T=t.spin,L=(c(e={"fa-border":u,"fa-fw":v,"fa-inverse":w,"fa-li":$,"fa-pulse":E,"fa-spin":void 0!==T&&T},"fa-".concat(A),A),c(e,"fa-pull-".concat(k),k),c(e,"fa-rotate-".concat(j),j),e);p||(L["fa-".concat(x)]=x);var D=a()(d[b],"pb_icon_kit",p?"":M,L,Object(l.c)(t),h);!i.label&&(i.label="".concat(x," icon"));var I=Object(s.a)(i),N=Object(s.c)(g);return r.a.createElement(r.a.Fragment,null,function(t){return t?r.a.createElement(r.a.Fragment,null,r.a.cloneElement(t,Object.assign(Object.assign({},N),{className:D,id:_}))):r.a.createElement(r.a.Fragment,null,r.a.createElement("i",Object.assign({},N,{className:D,id:_})),r.a.createElement("span",Object.assign({},I,{hidden:!0})))}(p))}},function(t,e,n){t.exports={font_family_base:'"Proxima Nova","Helvetica Neue",Helvetica,Arial,sans_serif',text_jumbo:"36px",text_largest:"32px",text_larger:"28px",text_large:"20px",text_base:"16px",text_default:"16px",text_normal:"16px",text_medium:"16px",text_small:"14px",text_smaller:"12px",text_smallest:"11px",heading_1:"46px",heading_2:"34px",heading_3:"28px",heading_4:"16px",lighter:"100",light:"300",bold:"600",regular:"400"}},,function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.align,n=void 0===e?"none":e,i=t.children,o=t.className,c=t.data,d=void 0===c?{}:c,u=t.inline,h=void 0!==u&&u,p=t.horizontal,f=void 0===p?"left":p,g=t.justify,m=void 0===g?"none":g,v=t.orientation,y=void 0===v?"row":v,b=t.spacing,x=void 0===b?"none":b,_=t.gap,O=void 0===_?"none":_,w=t.rowGap,C=void 0===w?"none":w,$=t.columnGap,k=void 0===$?"none":$,S=t.reverse,E=void 0!==S&&S,j=t.vertical,A=void 0===j?"top":j,P=t.wrap,M=void 0!==P&&P,T=t.alignSelf,L=void 0===T?"none":T,D=void 0!==y?"orientation_".concat(y):"",I="justify_content_".concat("none"!==m?m:f),N="align_items_".concat("none"!==n?n:A),R=!0===h?"inline":"",F=void 0!==x?"spacing_".concat(x):"",B="none"!==O?"gap_".concat(O):"",z="none"!==C?"rowGap_".concat(C):"",W="none"!==k?"columnGap_".concat(k):"",H=!0===M?"wrap":"",U=!0===E?"reverse":"",Y="none"!==L?"align_self_".concat(L):"",G=Object(s.c)(d);return r.a.createElement("div",Object.assign({className:a()(Object(s.b)("pb_flex_kit",D,I,N,R,U,H,F,B,z,W,Y),Object(l.c)(t),o)},G),i)}},function(t,e,n){"use strict";n.d(e,"m",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"k",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"l",(function(){return c})),n.d(e,"e",(function(){return d})),n.d(e,"d",(function(){return u})),n.d(e,"o",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return f})),n.d(e,"n",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return v}));var i="top",r="bottom",o="right",a="left",s="auto",l=[i,r,o,a],c="start",d="end",u="clippingParents",h="viewport",p="popper",f="reference",g=l.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+d])}),[]),m=[].concat(l,[s]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+d])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},function(t,e,n){t.exports=n(219)()},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),c=n(124);e.a=function(t){t.variant&&Object(l.a)("Body",["status"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,d=t.color,u=void 0===d?"":d,h=t.data,p=void 0===h?{}:h,f=t.highlightedText,g=void 0===f?[]:f,m=t.highlighting,v=void 0!==m&&m,y=t.id,b=void 0===y?"":y,x=t.status,_=void 0===x?null:x,O=t.tag,w=void 0===O?"div":O,C=t.text,$=void 0===C?"":C,k=t.variant,S=void 0===k?null:k,E=Object(s.a)(n),j=Object(s.c)(p),A=a()(Object(s.b)("pb_body_kit",u,S,_),Object(l.c)(t),o),P="".concat(w);return r.a.createElement(P,Object.assign({},E,j,{className:A,id:b}),v&&r.a.createElement(c.a,{highlightedText:g,text:$},i),!v&&($||i))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)("Title",["variant"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,c=t.color,d=t.data,u=void 0===d?{}:d,h=t.id,p=t.size,f=void 0===p?3:p,g=t.bold,m=void 0===g||g,v=t.tag,y=void 0===v?"h3":v,b=t.text,x=t.variant,_=void 0===x?null:x,O=Object(s.a)(n),w=Object(s.c)(u),C=m?"":"thin",$=a()(Object(s.b)("pb_title_kit","size_".concat(f),_,c,C),Object(l.c)(t),o),k="".concat(y);return r.a.createElement(k,Object.assign({},O,w,{className:$,id:h}),b||i)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){var e=t.children,n=t.className,i=t.fixedSize,o=t.grow,c=t.overflow,d=void 0===c?null:c,u=t.shrink,h=t.flex,p=void 0===h?"none":h,f=t.order,g=void 0===f?"none":f,m=t.alignSelf,v=t.displayFlex,y=!0===o?"grow":"",b=!0===v?"display_flex_".concat(v):"",x="none"!==p?"flex_".concat(p):"",_=d?"overflow_".concat(d):"",O=!0===u?"shrink":"",w=m?"align_self_".concat(m):"",C=void 0!==i?{flexBasis:"".concat(i)}:null,$="none"!==g?"order_".concat(g):null;return r.a.createElement("div",{className:a()(Object(s.b)("pb_flex_item_kit",y,O,x,b),_,$,w,Object(l.c)(t),n),style:C},e)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5);e.a=function(t){t.variant&&Object(l.a)("Title",["variant"]);var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,c=t.color,d=t.data,u=void 0===d?{}:d,h=t.id,p=t.size,f=void 0===p?"md":p,g=t.tag,m=void 0===g?"div":g,v=t.text,y=t.variant,b=void 0===y?null:y,x=["h1","h2","h3","h4","h5","h6","p","span","div","caption"].includes(m)?m:"div",_=Object(s.a)(n),O=Object(s.c)(u),w=a()(Object(s.b)("pb_caption_kit",f,b,c),Object(l.c)(t),o);return r.a.createElement(x,Object.assign({},_,O,{className:w,id:h}),v||i)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(26),a=n(3),s=n.n(a),l=n(2),c=n(5);function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t){var e,n,i=t.aria,a=void 0===i?{}:i,u=t.background,h=void 0===u?"none":u,p=t.borderNone,f=void 0!==p&&p,g=t.borderRadius,m=void 0===g?"md":g,v=t.children,y=t.className,b=t.data,x=void 0===b?{}:b,_=t.highlight,O=void 0===_?{}:_,w=t.selected,C=void 0!==w&&w,$=t.tag,k=void 0===$?"div":$,S=t.padding,E=void 0===S?"md":S,j=1==f?"border_none":"",A=1==C?"selected":"deselected",P="none"==h?"":"background_".concat(h),M=Object(l.b)("pb_card_kit",A,j,"border_radius_".concat(m),P,(d(e={},"highlight_".concat(O.position),O.position),d(e,"highlight_".concat(O.color),O.color),e)),T=Object(l.a)(a),L=Object(l.c)(x),D=r.a.Children.toArray(v),I=D.filter((function(t){return"Header"!==Object(o.get)(t,"type.displayName")})),N=["div","section","footer","header","article","aside","main","nav"].includes(k)?k:"div";return r.a.createElement(N,Object.assign({},T,L,{className:s()(M,Object(c.c)(t,{padding:E}),y)}),(n="Header",D.filter((function(t){return Object(o.get)(t,"type.displayName")===n})).map((function(t,e){if(r.a.isValidElement(t))return r.a.cloneElement(t,{key:"".concat(n.toLowerCase(),"-").concat(e)})}))),I)};u.Header=function(t){var e=t.children,n=t.className,i=t.headerColor,o=void 0===i?"category_1":i,a=t.headerColorStriped,d=void 0!==a&&a,u=t.padding,h=void 0===u?"sm":u,p=Object(l.b)("pb_card_header_kit","".concat(o),d?"striped":""),f=Object(c.c)(t,{padding:h});return r.a.createElement("div",{className:s()(p,f,n)},e)},u.Body=function(t){var e=t.children,n=t.padding,i=void 0===n?"md":n,o=t.className,a=Object(l.b)("pb_card_body_kit"),d=Object(c.c)(t,{padding:i});return r.a.createElement("div",{className:s()(a,d,o)},e)},e.a=u},,function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return O}));var i=n(142);var r=n(0),o=n(114);n(375);function a(t,e,n){var i="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]):i+=n+" "})),i}var s=function(t,e,n){var i=t.key+"-"+e.name;if(!1===n&&void 0===t.registered[i]&&(t.registered[i]=e.styles),void 0===t.inserted[e.name]){var r=e;do{t.insert("."+i,r,t.sheet,!0);r=r.next}while(void 0!==r)}},l=n(83),c=Object.prototype.hasOwnProperty,d=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)():null),u=Object(r.createContext)({}),h=d.Provider,p=function(t){var e=function(e,n){return Object(r.createElement)(d.Consumer,null,(function(i){return t(e,i,n)}))};return Object(r.forwardRef)(e)},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(t,e){var n={};for(var i in e)c.call(e,i)&&(n[i]=e[i]);return n[f]=t,n},m=function(){return null},v=function(t,e,n,i){var o=null===n?e.css:e.css(n);"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var d=e[f],u=[o],h="";"string"==typeof e.className?h=a(t.registered,u,e.className):null!=e.className&&(h=e.className+" ");var p=Object(l.a)(u);s(t,p,"string"==typeof d);h+=t.key+"-"+p.name;var g={};for(var v in e)c.call(e,v)&&"css"!==v&&v!==f&&(g[v]=e[v]);g.ref=i,g.className=h;var y=Object(r.createElement)(d,g),b=Object(r.createElement)(m,null);return Object(r.createElement)(r.Fragment,null,b,y)},y=p((function(t,e,n){return"function"==typeof t.css?Object(r.createElement)(u.Consumer,null,(function(i){return v(e,t,i,n)})):v(e,t,null,n)}));var b=n(143),x=n(61),_=function(t,e){var n=arguments;if(null==e||!c.call(e,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=y,o[1]=g(t,e);for(var a=2;a<i;a++)o[a]=n[a];return r.createElement.apply(null,o)},O=(r.Component,function(){var t=x.a.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),w=function t(e){for(var n=e.length,i=0,r="";i<n;i++){var o=e[i];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=t(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r};function C(t,e,n){var i=[],r=a(t,i,n);return i.length<2?n:r+e(i)}var $=function(){return null},k=p((function(t,e){return Object(r.createElement)(u.Consumer,null,(function(n){var i=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Object(l.a)(n,e.registered);return s(e,r,!1),e.key+"-"+r.name},o={css:i,cx:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(e.registered,i,w(n))},theme:n},a=t.children(o);var c=Object(r.createElement)($,null);return Object(r.createElement)(r.Fragment,null,c,a)}))}))},function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n(39);function r(t){return t instanceof Object(i.a)(t).Element||t instanceof Element}function o(t){return t instanceof Object(i.a)(t).HTMLElement||t instanceof HTMLElement}function a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Object(i.a)(t).ShadowRoot||t instanceof ShadowRoot)}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),c=n(8),d=n(42);e.a=function(t){var e=t.active,n=void 0!==e&&e,i=t.aria,o=void 0===i?{}:i,u=t.children,h=t.className,p=t.data,f=void 0===p?{}:p,g=t.iconLeft,m=t.iconRight,v=t.id,y=t.imageUrl,b=t.link,x=t.onClick,_=void 0===x?function(){}:x,O=t.target,w=void 0===O?"_self":O,C=t.text,$=void 0===C?"":C,k=b?"a":"div",S=!0===n?"active":"",E=Object(s.a)(o),j=Object(s.c)(f),A=a()(Object(s.b)("pb_nav_list_kit_item",S),Object(l.c)(t),h);return r.a.createElement("li",Object.assign({},E,j,{className:A,id:v}),r.a.createElement(k,{className:"pb_nav_list_item_link",href:b,onClick:_,target:w},y&&r.a.createElement("div",{className:"pb_nav_list_item_icon_section",key:y},r.a.createElement(d.a,{className:"pb_nav_img_wrapper",url:y})),g&&r.a.createElement("div",{className:"pb_nav_list_item_icon_section",key:g},r.a.createElement(c.a,{className:"pb_nav_list_item_icon_left",fixedWidth:!0,icon:g})),r.a.createElement("span",{className:"pb_nav_list_item_text"},$||u),m&&r.a.createElement("div",{className:"pb_nav_list_item_icon_section",key:m},r.a.createElement(c.a,{className:"pb_nav_list_item_icon_right",fixedWidth:!0,icon:m}))))}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(3),a=n.n(o),s=n(2),l=n(5),c=n(8);e.a=function(t){var e=t.aria,n=void 0===e?{}:e,i=t.children,o=t.className,d=t.data,u=void 0===d?{}:d,h=t.disabled,p=t.icon,f=void 0===p?null:p,g=t.iconRight,m=void 0!==g&&g,v=t.id,y=t.loading,b=void 0!==y&&y,x=t.onClick,_=t.tabIndex,O=t.link,w=void 0===O?null:O,C=t.newWindow,$=void 0!==C&&C,k=t.target,S=void 0===k?"":k,E=t.text,j=t.htmlType,A=void 0===j?"button":j,P=t.value,M=t.form,T=void 0===M?null:M,L=Object(s.a)(n),D=Object(s.c)(u),I=a()(function(t){var e=t.disabled,n=void 0!==e&&e,i=t.fullWidth,r=void 0!==i&&i,o=t.loading,a=void 0!==o&&o,s=t.type,l=void 0===s?"inline":s,c=t.variant,d=void 0===c?"primary":c,u=t.size,h=void 0===u?null:u,p="pb_button_kit";return p+="".concat(null!==d?"_".concat(d):""),p+="".concat(null!==l?"_".concat(l):""),p+="".concat(r?"_block":""),p+=n?"_disabled":"_enabled",p+=a?"_loading":"",p+="".concat(null!==h?" size_".concat(h):"")}(t),Object(l.c)(t),o),N=r.a.createElement("div",{className:"loading-icon"},r.a.createElement(c.a,{fixedWidth:!0,icon:"spinner",pulse:!0})),R=r.a.createElement("span",{className:"pb_button_content"},f&&!m&&r.a.createElement("i",{className:"pb_icon_kit far fa-".concat(f," fa-fw button_with_icon")}),r.a.createElement("span",null,E||i),f&&m&&r.a.createElement("i",{className:"pb_icon_kit far fa-".concat(f," fa-fw button_with_icon_right")})),F=function(){return b?r.a.createElement(r.a.Fragment,null,N):R};return r.a.createElement(r.a.Fragment,null,w?r.a.createElement("a",Object.assign({},L,D,{className:I,href:w,id:v,rel:"child"!==S?"noreferrer":null,role:"link",tabIndex:_,target:S&&w?S:$?"_blank":null}),F()):r.a.createElement("button",Object.assign({},L,D,{className:I,disabled:h,form:T,id:v,onClick:x,role:"button",tabIndex:_,type:A,value:P}),F()))}},function(t,e,n){"use strict";var i;!function(r,o){t.exports?(o.default=o,t.exports=r.document?o(r):o):void 0===(i=function(){return o(r)}.call(e,n,e,t))||(t.exports=i)}("undefined"!=typeof window?window:this,(function(t){function e(t,e,n,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,n))}var n={};return e(n,"Core/Globals.js",[],(function(){var e,n=void 0!==t?t:"undefined"!=typeof window?window:{};return function(t){t.SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="9.3.3",t.win=n,t.doc=t.win.document,t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect,t.userAgent=t.win.navigator&&t.win.navigator.userAgent||"",t.isChrome=-1!==t.userAgent.indexOf("Chrome"),t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.hasBidiBug=t.isFirefox&&4>parseInt(t.userAgent.split("Firefox/")[1],10),t.hasTouch=!!t.win.TouchEvent,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,n),t.win.removeEventListener("testPassive",t.noop,n))}return e}(),t.charts=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0}(e||(e={})),e})),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function e(n,i,r,o){var a=i?"Highcharts error":"Highcharts warning";32===n&&(n=a+": Deprecated member");var s=l(n),c=s?a+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if(void 0!==o){var d="";s&&(c+="?"),g(o,(function(t,e){d+="\n - "+e+": "+t,s&&(c+=encodeURI(e)+"="+encodeURI(t))})),c+=d}v(t,"displayError",{chart:r,code:n,message:c,params:o},(function(){if(i)throw Error(c);x.console&&-1===e.messages.indexOf(c)&&console.warn(c)})),e.messages.push(c)}function n(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function r(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!(!t||"object"!=typeof t||e&&r(t))}function a(t){return o(t)&&"number"==typeof t.nodeType}function s(t){var e=t&&t.constructor;return!(!o(t,!0)||a(t)||!e||!e.name||"Object"===e.name)}function l(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function c(t){return null!=t}function d(t,e,n){var r;return i(e)?c(n)?t.setAttribute(e,n):t&&t.getAttribute&&((r=t.getAttribute(e))||"class"!==e||(r=t.getAttribute(e+"Name"))):g(e,(function(e,n){c(e)?t.setAttribute(n,e):t.removeAttribute(n)})),r}function u(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t}function h(){for(var t=arguments,e=t.length,n=0;n<e;n++){var i=t[n];if(null!=i)return i}}function p(e,n){t.isMS&&!t.svg&&n&&void 0!==n.opacity&&(n.filter="alpha(opacity="+100*n.opacity+")"),u(e.style,n)}function f(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function g(t,e,n){for(var i in t)Object.hasOwnProperty.call(t,i)&&e.call(n||t[i],t[i],i,t)}function m(e,n,i){function r(n,i){var r=e.removeEventListener||t.removeEventListenerPolyfill;r&&r.call(e,n,i,!1)}function o(t){var i;if(e.nodeName){if(n){var o={};o[n]=!0}else o=t;g(o,(function(e,n){if(t[n])for(i=t[n].length;i--;)r(n,t[n][i].fn)}))}}var a="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(a,"hcEvents")){var s=a.hcEvents;n?(a=s[n]||[],i?(s[n]=a.filter((function(t){return i!==t.fn})),r(n,i)):(o(s),s[n]=[])):(o(s),delete a.hcEvents)}}function v(e,n,i,r){if(i=i||{},b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var o=b.createEvent("Events");o.initEvent(n,!0,!0),i=u(o,i),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(n,i)}else if(e.hcEvents){i.target||u(i,{preventDefault:function(){i.defaultPrevented=!0},target:e,type:n}),o=[];for(var a=e,s=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[n]&&(o.length&&(s=!0),o.unshift.apply(o,a.hcEvents[n])),a=Object.getPrototypeOf(a);s&&o.sort((function(t,e){return t.order-e.order})),o.forEach((function(t){!1===t.fn.call(e,i)&&i.preventDefault()}))}r&&!i.defaultPrevented&&r.call(e,i)}var y=t.charts,b=t.doc,x=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var _=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var n,i=t.length;for(n=0;n<i;n++)if(e(t[n],n))return t[n]};g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(n,i){t[i]=function(t){var r;return e(32,!1,void 0,((r={})["Highcharts."+i]="use Array."+n,r)),Array.prototype[n].apply(t,[].slice.call(arguments,1))}}));var O,w=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(O?"":t)+e++}}();return x.jQuery&&(x.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[i(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):y[d(this[0],"data-highcharts-chart")]}),_={addEvent:function(e,n,i,r){void 0===r&&(r={});var o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={}),o=o.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var a=e.addEventListener||t.addEventListenerPolyfill;return a&&a.call(e,n,i,!!t.supportsPassiveEvents&&{passive:void 0===r.passive?-1!==n.indexOf("touch"):r.passive,capture:!1}),o[n]||(o[n]=[]),o[n].push({fn:i,order:"number"==typeof r.order?r.order:1/0}),o[n].sort((function(t,e){return t.order-e.order})),function(){m(e,n,i)}},arrayMax:function(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n},arrayMin:function(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n},attr:d,clamp:function(t,e,n){return t>e?t<n?t:n:e},cleanRecursively:function t(e,n){var i={};return g(e,(function(r,a){o(e[a],!0)&&!e.nodeType&&n[a]?(r=t(e[a],n[a]),Object.keys(r).length&&(i[a]=r)):(o(e[a])||e[a]!==n[a])&&(i[a]=e[a])})),i},clearTimeout:function(t){c(t)&&clearTimeout(t)},correctFloat:f,createElement:function(t,e,n,i,r){return t=b.createElement(t),e&&u(t,e),r&&p(t,{padding:"0",border:"none",margin:"0"}),n&&p(t,n),i&&i.appendChild(t),t},css:p,defined:c,destroyObjectProperties:function(t,e){g(t,(function(n,i){n&&n!==e&&n.destroy&&n.destroy(),delete t[i]}))},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var n=t.length;n--;)if(t[n]===e){t.splice(n,1);break}},error:e,extend:u,extendClass:function(t,e){var n=function(){};return u(n.prototype=new t,e),n},find:_,fireEvent:v,getMagnitude:function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},getNestedProperty:function(t,e){for(t=t.split(".");t.length&&c(e);){var n=t.shift();if(void 0===n||"__proto__"===n)return;if(!c(e=e[n])||"function"==typeof e||"number"==typeof e.nodeType||e===x)return}return e},getStyle:function i(r,o,a){var s=t.getStyle||i;if("width"===o)return o=Math.min(r.offsetWidth,r.scrollWidth),(a=r.getBoundingClientRect&&r.getBoundingClientRect().width)<o&&a>=o-1&&(o=Math.floor(a)),Math.max(0,o-(s(r,"padding-left",!0)||0)-(s(r,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(r.offsetHeight,r.scrollHeight)-(s(r,"padding-top",!0)||0)-(s(r,"padding-bottom",!0)||0));if(x.getComputedStyle||e(27,!0),r=x.getComputedStyle(r,void 0)){var l=r.getPropertyValue(o);h(a,"opacity"!==o)&&(l=n(l))}return l},inArray:function(t,n,i){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,i)},isArray:r,isClass:s,isDOMElement:a,isFunction:function(t){return"function"==typeof t},isNumber:l,isObject:o,isString:i,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,n={},i=function(t,e){return"object"!=typeof t&&(t={}),g(e,(function(n,r){"__proto__"!==r&&"constructor"!==r&&(!o(n,!0)||s(n)||a(n)?t[r]=e[r]:t[r]=i(t[r]||{},n))})),t};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;t<r;t++)n=i(n,e[t]);return n},normalizeTickInterval:function(t,e,n,i,r){var o=t,a=t/(n=h(n,1));for(e||(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===i&&(1===n?e=e.filter((function(t){return 0==t%1})):.1>=n&&(e=[1/n]))),i=0;i<e.length&&(o=e[i],!(r&&o*n>=t||!r&&a<=(e[i]+(e[i+1]||e[i]))/2));i++);return f(o*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(x.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(x.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:h,pInt:n,relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:m,splat:function(t){return r(t)?t:[t]},stableSort:function(t,e){var n,i,r=t.length;for(i=0;i<r;i++)t[i].safeI=i;for(t.sort((function(t,i){return 0===(n=e(t,i))?t.safeI-i.safeI:n})),i=0;i<r;i++)delete t[i].safeI},syncTimeout:function(t,e,n){return 0<e?setTimeout(t,e,n):(t.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:w,useSerialIds:function(t){return O=h(t,O)},wrap:function(t,e,n){var i=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,r=this;return r.proceed=function(){i.apply(r,arguments.length?arguments:e)},t.unshift(i),t=n.apply(this,t),r.proceed=null,t}}}})),e(n,"Core/Chart/ChartDefaults.js",[],(function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),e(n,"Core/Color/Color.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.isNumber,i=e.merge,r=e.pInt;return e=function(){function e(n){this.rgba=[NaN,NaN,NaN,NaN],this.input=n;var i=t.Color;return i&&i!==e?new i(n):this instanceof e?void this.init(n):new e(n)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var n;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map((function(t){return new e(t[1])}));else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var i=t.length,r=parseInt(t.substr(1),16);7===i?n=[(16711680&r)>>16,(65280&r)>>8,255&r,1]:4===i&&(n=[(3840&r)>>4|(3840&r)>>8,(240&r)>>4|240&r,(15&r)<<4|15&r,1])}if(!n)for(r=e.parsers.length;r--&&!n;){var o=e.parsers[r];(i=o.regex.exec(t))&&(n=o.parse(i))}}n&&(this.rgba=n)},e.prototype.get=function(t){var e=this.input,r=this.rgba;if("object"==typeof e&&void 0!==this.stops){var o=i(e);return o.stops=[].slice.call(o.stops),this.stops.forEach((function(e,n){o.stops[n]=[o.stops[n][0],e.get(t)]})),o}return r&&n(r[0])?"rgb"===t||!t&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===t?""+r[3]:"rgba("+r.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(n(t)&&0!==t)for(var i=0;3>i;i++)e[i]+=r(255*t),0>e[i]&&(e[i]=0),255<e[i]&&(e[i]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var i=this.rgba,r=t.rgba;return n(i[0])&&n(r[0])?((t=1!==r[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(r[0]+(i[0]-r[0])*(1-e))+","+Math.round(r[1]+(i[1]-r[1])*(1-e))+","+Math.round(r[2]+(i[2]-r[2])*(1-e))+(t?","+(r[3]+(i[3]-r[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[r(t[1]),r(t[2]),r(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[r(t[1]),r(t[2]),r(t[3]),1]}}],e.None=new e(""),e}()})),e(n,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}})),e(n,"Core/Time.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=t.win,i=e.defined,r=e.error,o=e.extend,a=e.isObject,s=e.merge,l=e.objectEach,c=e.pad,d=e.pick,u=e.splat,h=e.timeUnits,p=t.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var n=e.getTime(),i=n-this.getTimezoneOffset(e);return e.setTime(i),t=e["getUTC"+t](),e.setTime(n),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](n);var i=this.getTimezoneOffset(e);return i=e.getTime()-i,e.setTime(i),e["setUTC"+t](n),t=this.getTimezoneOffset(e),i=e.getTime()+t,e.setTime(i)}return this.useUTC||p&&"FullYear"===t?e["setUTC"+t](n):e["set"+t](n)},e.prototype.update=function(t){var e=d(t&&t.useUTC,!0);this.options=t=s(!0,this.options||{},t),this.Date=t.Date||n.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,n,i,r,o){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),s=this.getTimezoneOffset(a);a+=s;var l=this.getTimezoneOffset(a);s!==l?a+=l-s:s-36e5!==this.getTimezoneOffset(a-36e5)||f||(a-=36e5)}else a=new this.Date(t,e,d(n,1),d(i,0),d(r,0),d(o,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.getTimezoneOffset,o=e.moment||n.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(o)return function(t){return 6e4*-o.tz(t,e.timezone).utcOffset()};r(25)}return this.useUTC&&i?function(t){return 6e4*i(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,n,r){if(!i(n)||isNaN(n))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=d(e,"%Y-%m-%d %H:%M:%S");var a=this,s=new this.Date(n),u=this.get("Hours",s),h=this.get("Day",s),p=this.get("Date",s),f=this.get("Month",s),g=this.get("FullYear",s),m=t.defaultOptions.lang,v=m&&m.weekdays,y=m&&m.shortWeekdays;return s=o({a:y?y[h]:v[h].substr(0,3),A:v[h],d:c(p),e:c(p,2," "),w:h,b:m.shortMonths[f],B:m.months[f],m:c(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:c(u),k:u,I:c(u%12||12),l:u%12||12,M:c(this.get("Minutes",s)),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:c(s.getSeconds()),L:c(Math.floor(n%1e3),3)},t.dateFormats),l(s,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(a,n):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return a(t,!0)?t:{main:(t=u(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,n,r){var a,s=this,l=[],c={},u=new s.Date(e),p=t.unitRange,f=t.count||1;if(r=d(r,1),i(e)){if(s.set("Milliseconds",u,p>=h.second?0:f*Math.floor(s.get("Milliseconds",u)/f)),p>=h.second&&s.set("Seconds",u,p>=h.minute?0:f*Math.floor(s.get("Seconds",u)/f)),p>=h.minute&&s.set("Minutes",u,p>=h.hour?0:f*Math.floor(s.get("Minutes",u)/f)),p>=h.hour&&s.set("Hours",u,p>=h.day?0:f*Math.floor(s.get("Hours",u)/f)),p>=h.day&&s.set("Date",u,p>=h.month?1:Math.max(1,f*Math.floor(s.get("Date",u)/f))),p>=h.month){s.set("Month",u,p>=h.year?0:f*Math.floor(s.get("Month",u)/f));var g=s.get("FullYear",u)}p>=h.year&&s.set("FullYear",u,g-g%f),p===h.week&&(g=s.get("Day",u),s.set("Date",u,s.get("Date",u)-g+r+(g<r?-7:0))),g=s.get("FullYear",u),r=s.get("Month",u);var m=s.get("Date",u),v=s.get("Hours",u);for(e=u.getTime(),!s.variableTimezone&&s.useUTC||!i(n)||(a=n-e>4*h.month||s.getTimezoneOffset(e)!==s.getTimezoneOffset(n)),e=u.getTime(),u=1;e<n;)l.push(e),e=p===h.year?s.makeTime(g+u*f,0):p===h.month?s.makeTime(g,r+u*f):!a||p!==h.day&&p!==h.week?a&&p===h.hour&&1<f?s.makeTime(g,r,m,v+u*f):e+p*f:s.makeTime(g,r,m+u*f*(p===h.day?1:7)),u++;l.push(e),p<=h.hour&&1e4>l.length&&l.forEach((function(t){0==t%18e5&&"000000000"===s.dateFormat("%H%M%S%L",t)&&(c[t]="day")}))}return l.info=o(t,{higherRanks:c,totalRange:p*f}),l},e.prototype.getDateFormat=function(t,e,n,i){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(s in h){if(t===h.week&&+this.dateFormat("%w",e)===n&&"00:00:00.000"===r.substr(6)){var s="week";break}if(h[s]>t){s=a;break}if(o[s]&&r.substr(o[s])!=="01-01 00:00:00.000".substr(o[s]))break;"week"!==s&&(a=s)}if(s)var l=this.resolveDTLFormat(i[s]).main;return l},e}()})),e(n,"Core/DefaultOptions.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palettes.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){e=e.parse;var a=o.merge,s={colors:i.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:n.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};s.chart.styledMode=!1;var l=new r(a(s.global,s.time));return t={defaultOptions:s,defaultTime:l,getOptions:function(){return s},setOptions:function(t){return a(!0,s,t),(t.time||t.global)&&(n.time?n.time.update(a(s.global,s.time,t.global,t.time)):n.time=l),s}}})),e(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=t.parse,r=e.win,o=n.isNumber,a=n.objectEach;return function(){function t(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var n=this.now||0,i=[];if(1!==n&&e&&t)if(e.length===t.length&&1>n)for(var r=0;r<t.length;r++){for(var a=e[r],s=t[r],l=[],c=0;c<s.length;c++){var d=a[c],u=s[c];o(d)&&o(u)&&("A"!==s[0]||4!==c&&5!==c)?l[c]=d+n*(u-d):l[c]=u}i.push(l)}else i=t;else i=this.toD||[];this.elem.attr("d",i,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,n=this.now,i=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,i&&i.call(t,n,this)},t.prototype.run=function(e,n,i){var o=this,a=o.options,s=function(t){return!s.stopped&&o.step(t)},l=r.requestAnimationFrame||function(t){setTimeout(t,13)},c=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&l(c)};e!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=n,this.unit=i,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===t.timers.push(s)&&l(c)):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,n=this.options,i=this.elem,r=n.complete,o=n.duration,s=n.curAnim;if(i.attr&&!i.element)t=!1;else if(t||e>=o+this.startTime){this.now=this.end,this.pos=1,this.update();var l=s[this.prop]=!0;a(s,(function(t){!0!==t&&(l=!1)})),l&&r&&r.call(i),t=!1}else this.pos=n.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,n){function i(t,e){for(;t.length<h;){var n=t[0],i=e[h-t.length];i&&"M"===n[0]&&(t[0]="C"===i[0]?["C",n[1],n[2],n[1],n[2],n[1],n[2]]:["L",n[1],n[2]]),t.unshift(n),l&&(n=t.pop(),t.push(t[t.length-1],n))}}function r(t,e){for(;t.length<h;)if("C"===(e=t[Math.floor(t.length/c)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),l){var n=t[Math.floor(t.length/c)].slice();t.splice(t.length/2,0,e,n)}else t.push(e)}var a=t.startX,s=t.endX;n=n.slice();var l=t.isArea,c=l?2:1;if(!(e=e&&e.slice()))return[n,n];if(a&&s&&s.length){for(t=0;t<a.length;t++){if(a[t]===s[0]){var d=t;break}if(a[0]===s[s.length-a.length+t]){d=t;var u=!0;break}if(a[a.length-1]===s[s.length-a.length+t]){d=a.length-t;break}}void 0===d&&(e=[])}if(e.length&&o(d)){var h=n.length+d*c;u?(i(e,n),r(n,e)):(i(n,e),r(e,n))}return[e,n]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)},t.timers=[],t}()})),e(n,"Core/Animation/AnimationUtilities.js",[n["Core/Animation/Fx.js"],n["Core/Utilities.js"]],(function(t,e){function n(t){return l(t)?c({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function i(e,n){for(var i=t.timers.length;i--;)t.timers[i].elem!==e||n&&n!==t.timers[i].prop||(t.timers[i].stopped=!0)}var r=e.defined,o=e.getStyle,a=e.isArray,s=e.isNumber,l=e.isObject,c=e.merge,d=e.objectEach,u=e.pick;return{animate:function(e,n,r){var u,h,p,f="";if(!l(r)){var g=arguments;r={duration:g[2],easing:g[3],complete:g[4]}}s(r.duration)||(r.duration=400),r.easing="function"==typeof r.easing?r.easing:Math[r.easing]||Math.easeInOutSine,r.curAnim=c(n),d(n,(function(s,l){i(e,l),p=new t(e,r,l),h=void 0,"d"===l&&a(n.d)?(p.paths=p.initPath(e,e.pathArray,n.d),p.toD=n.d,u=0,h=1):e.attr?u=e.attr(l):(u=parseFloat(o(e,l))||0,"opacity"!==l&&(f="px")),h||(h=s),"string"==typeof h&&h.match("px")&&(h=h.replace(/px/g,"")),p.run(u,h,f)}))},animObject:n,getDeferredAnimation:function(t,e,i){var o=n(e),a=0,s=0;return(i?[i]:t.series).forEach((function(t){t=n(t.options.animation),a=e&&r(e.defer)?o.defer:Math.max(a,t.duration+t.defer),s=Math.min(o.duration,t.duration)})),t.renderer.forExport&&(a=0),{defer:Math.max(0,a-s),duration:Math.min(a,s)}},setAnimation:function(t,e){e.renderer.globalAnimation=u(t,e.options.chart.animation,!0)},stop:i}})),e(n,"Core/Renderer/HTML/AST.js",[n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e){var n=t.SVG_NS,i=e.attr,r=e.createElement,o=e.error,a=e.isFunction,s=e.isString,l=e.objectEach,c=e.splat,d=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),u=d?d.createHTML(""):"";try{var h=!!(new DOMParser).parseFromString(u,"text/html")}catch(t){h=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return l(t,(function(n,i){var r=!0;-1===e.allowedAttributes.indexOf(i)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(r=s(n)&&e.allowedReferences.some((function(t){return 0===n.indexOf(t)}))),r||(o("Highcharts warning: Invalid attribute '"+i+"' in config"),delete t[i])})),t},e.setElementHTML=function(t,n){t.innerHTML=e.emptyHTML,n&&new e(n).addToDOM(t)},e.prototype.addToDOM=function(r){return function r(a,s){var d;return c(a).forEach((function(a){var c=a.tagName,u=a.textContent?t.doc.createTextNode(a.textContent):void 0;if(c)if("#text"===c)var h=u;else if(-1!==e.allowedTags.indexOf(c)){c=t.doc.createElementNS("svg"===c?n:s.namespaceURI||n,c);var p=a.attributes||{};l(a,(function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"textContent"!==e&&(p[e]=t)})),i(c,e.filterUserAttributes(p)),u&&c.appendChild(u),r(a.children||[],c),h=c}else o("Highcharts warning: Invalid tagName "+c+" in config");h&&s.appendChild(h),d=h})),d}(this.nodes,r)},e.prototype.parseMarkup=function(t){var e=[];if(t=t.trim(),h)t=(new DOMParser).parseFromString(d?d.createHTML(t):t,"text/html");else{var n=r("div");n.innerHTML=t,t={body:n}}var i=function(t,e){var n=t.nodeName.toLowerCase(),r={tagName:n};if("#text"===n&&(r.textContent=t.textContent||""),n=t.attributes){var o={};[].forEach.call(n,(function(t){o[t.name]=t.value})),r.attributes=o}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,(function(t){i(t,a)})),a.length&&(r.children=a)}e.push(r)};return[].forEach.call(t.body.childNodes,(function(t){return i(t,e)})),e},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=u,e}()})),e(n,"Core/FormatUtilities.js",[n["Core/DefaultOptions.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e,n,r){t=+t||0,e=+e;var o=i.lang,c=(t.toString().split(".")[1]||"").split("e")[0].length,d=t.toString().split("e"),u=e;if(-1===e)e=Math.min(c,20);else if(a(e)){if(e&&d[1]&&0>d[1]){var h=e+ +d[1];0<=h?(d[0]=(+d[0]).toExponential(h).split("e")[0],e=h):(d[0]=d[0].split(".")[0]||0,t=20>e?(d[0]*Math.pow(10,d[1])).toFixed(e):0,d[1]=0)}}else e=2;h=(Math.abs(d[1]?d[0]:t)+Math.pow(10,-Math.max(e,c)-1)).toFixed(e);var p=3<(c=String(l(h))).length?c.length%3:0;return n=s(n,o.decimalPoint),r=s(r,o.thousandsSep),t=(0>t?"-":"")+(p?c.substr(0,p)+r:""),t=0>+d[1]&&!u?"0":t+c.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+r),e&&(t+=n+h.slice(-e)),d[1]&&0!=+t&&(t+="e"+d[1]),t}var i=t.defaultOptions,r=t.defaultTime,o=e.getNestedProperty,a=e.isNumber,s=e.pick,l=e.pInt;return{dateFormat:function(t,e,n){return r.dateFormat(t,e,n)},format:function(t,e,a){var s="{",l=!1,c=/f$/,d=/\.([0-9])/,u=i.lang,h=a&&a.time||r;a=a&&a.numberFormatter||n;for(var p=[];t;){var f=t.indexOf(s);if(-1===f)break;var g=t.slice(0,f);if(l){if(g=g.split(":"),s=o(g.shift()||"",e),g.length&&"number"==typeof s)if(g=g.join(":"),c.test(g)){var m=parseInt((g.match(d)||["","-1"])[1],10);null!==s&&(s=a(s,m,u.decimalPoint,-1<g.indexOf(",")?u.thousandsSep:""))}else s=h.dateFormat(g,s);p.push(s)}else p.push(g);t=t.slice(f+1),s=(l=!l)?"}":"{"}return p.push(t),p.join("")},numberFormat:n}})),e(n,"Core/Renderer/RendererUtilities.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.clamp,i=t.pick,r=t.stableSort;return function(t){t.distribute=function t(e,o,a){var s,l=e,c=l.reducedLen||o,d=function(t,e){return(e.rank||0)-(t.rank||0)},u=function(t,e){return t.target-e.target},h=!0,p=[],f=0;for(s=e.length;s--;)f+=e[s].size;if(f>c){for(r(e,d),f=s=0;f<=c;)f+=e[s].size,s++;p=e.splice(s-1,e.length)}for(r(e,u),e=e.map((function(t){return{size:t.size,targets:[t.target],align:i(t.align,.5)}}));h;){for(s=e.length;s--;)c=e[s],d=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=n(d-c.size*c.align,0,o-c.size);for(s=e.length,h=!1;s--;)0<s&&e[s-1].pos+e[s-1].size>e[s].pos&&(e[s-1].size+=e[s].size,e[s-1].targets=e[s-1].targets.concat(e[s].targets),e[s-1].align=.5,e[s-1].pos+e[s-1].size>o&&(e[s-1].pos=o-e[s-1].size),e.splice(s,1),h=!0)}return l.push.apply(l,p),s=0,e.some((function(e){var n=0;return(e.targets||[]).some((function(){return l[s].pos=e.pos+n,void 0!==a&&Math.abs(l[s].pos-l[s].target)>a?(l.slice(0,s+1).forEach((function(t){return delete t.pos})),l.reducedLen=(l.reducedLen||o)-.1*o,l.reducedLen>.1*o&&t(l,o,a),!0):(n+=l[s].size,s++,!1)}))})),r(l,u),l}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=t.animate,a=t.animObject,s=t.stop,l=i.deg2rad,c=i.doc,d=i.noop,u=i.svg,h=i.SVG_NS,p=i.win,f=r.addEvent,g=r.attr,m=r.createElement,v=r.css,y=r.defined,b=r.erase,x=r.extend,_=r.fireEvent,O=r.isArray,w=r.isFunction,C=r.isNumber,$=r.isString,k=r.merge,S=r.objectEach,E=r.pick,j=r.pInt,A=r.syncTimeout,P=r.uniqueKey;return(t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=h,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=E(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,n){n.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,n=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var i=this.zIndexSetter();return i||(t?t.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var n=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce((function(t,e){return-1===n.indexOf(e)&&t.push(e),t}),n?[n]:[]).join(" "))!==n&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,n){var i,r,o,a={},s=this.renderer,l=s.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!n||$(n))&&(this.alignTo=i=n||"renderer",b(l,this),l.push(this),n=void 0)):(t=this.alignOptions,e=this.alignByTranslate,i=this.alignTo),n=E(n,s[i],"scrollablePlotBox"===i?s.plotBox:void 0,s),i=t.align;var c=t.verticalAlign;return s=(n.x||0)+(t.x||0),l=(n.y||0)+(t.y||0),"right"===i?r=1:"center"===i&&(r=2),r&&(s+=(n.width-(t.width||0))/r),a[e?"translateX":"x"]=Math.round(s),"bottom"===c?o=1:"middle"===c&&(o=2),o&&(l+=(n.height-(t.height||0))/o),a[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,n){var i=this,r=a(E(e,this.renderer.globalAnimation,!0));return e=r.defer,E(c.hidden,c.msHidden,c.webkitHidden,!1)&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),A((function(){i.element&&o(i,t,r)}),e)):(this.attr(t,void 0,n),S(t,(function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var n=t.split(" ");if(t=n[n.length-1],(n=n[0])&&"none"!==n&&i.svg){this.fakeTS=!0,this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,n){return 2*Number(e)+n})),this.removeTextOutline();var r=c.createElementNS(h,"tspan");g(r,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":n,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),r.appendChild(e)}));var o=c.createElementNS(h,"tspan");o.textContent="​",["x","y"].forEach((function(t){var n=e.getAttribute(t);n&&o.setAttribute(t,n)})),r.appendChild(o),e.insertBefore(r,e.firstChild)}},t.prototype.attr=function(t,e,n,i){var r,o,a,l=this.element,c=this.symbolCustomAttribs,d=this;if("string"==typeof t&&void 0!==e){var u=t;(t={})[u]=e}return"string"==typeof t?d=(this[t+"Getter"]||this._defaultGetter).call(this,t,l):(S(t,(function(e,n){o=!1,i||s(this,n),this.symbolName&&-1!==c.indexOf(n)&&(r||(this.symbolAttr(t),r=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))}),this),this.afterSetters()),n&&n.call(this),d},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var n=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),y(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var r,o,a,s,l,c,d,u,h,p,f,g=this.renderer,m=[];_(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],l=g.gradients,c=t.stops,h=i.radialReference,O(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&h&&!y(a.gradientUnits)&&(s=a,a=k(a,g.getRadialAttr(h,s),{gradientUnits:"userSpaceOnUse"})),S(a,(function(t,e){"id"!==e&&m.push(e,t)})),S(c,(function(t){m.push(t)})),m=m.join(","),l[m])p=l[m].attr("id");else{a.id=p=P();var v=l[m]=g.createElement(o).attr(a).add(g.defs);v.radAttr=s,v.stops=[],c.forEach((function(t){0===t[1].indexOf("rgba")?(r=n.parse(t[1]),d=r.get("rgb"),u=r.get("a")):(d=t[1],u=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":d,"stop-opacity":u}).add(v),v.stops.push(t)}))}f="url("+g.url+"#"+p+")",i.setAttribute(e,f),i.gradient=m,t.toString=function(){return f}}}))},t.prototype.css=function(t){var e=this.styles,n={},i=this.element,r=["textOutline","textOverflow","width"],o="",a=!e;if(t&&t.color&&(t.fill=t.color),e&&S(t,(function(t,i){e&&e[i]!==t&&(n[i]=t,a=!0)})),a){if(e&&(t=x(e,n)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===i.nodeName.toLowerCase()&&t.width)var s=this.textWidth=j(t.width);if(this.styles=t,s&&!u&&this.renderer.forExport&&delete t.width,i.namespaceURI===this.SVG_NS){var l=function(t,e){return"-"+e.toLowerCase()};S(t,(function(t,e){-1===r.indexOf(e)&&(o+=e.replace(/([A-Z])/g,l)+":"+t+";")})),o&&g(i,"style",o)}else v(i,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var n=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=n.length;t--;)n[t]=""+j(n[t])*E(e,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},n=t.renderer,i=e.ownerSVGElement,r=n.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,s(t),t.clipPath&&i){var o=t.clipPath;[].forEach.call(i.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(o.element.id)&&t.removeAttribute("clip-path")})),t.clipPath=o.destroy()}if(t.stops){for(i=0;i<t.stops.length;i++)t.stops[i].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),n.styledMode||t.destroyShadows();r&&r.div&&0===r.div.childNodes.length;)e=r.parentGroup,t.safeRemoveChild(r.div),delete r.div,r=e;t.alignTo&&b(n.alignedObjects,t),S(t,(function(e,n){t[n]&&t[n].parentGroup===t&&t[n].destroy&&t[n].destroy(),delete t[n]}))},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},t.prototype.destroyTextPath=function(t,e){var n=t.getElementsByTagName("text")[0];if(n){if(n.removeAttribute("dx"),n.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&n.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)n.appendChild(t[0]);n.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())},t.prototype.dSetter=function(t,e,n){O(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((function(t,e,n){return e&&e.join?(n?t+" ":"")+e.join(" "):(e||"").toString()}),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(n.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:E(t,150),complete:function(){e.attr({y:-9999}).hide()}})},t.prototype.fillSetter=function(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.complexColor(t,e,n)},t.prototype.getBBox=function(e,n){var i=this.renderer,r=this.element,o=this.styles,a=this.textStr,s=i.cache,c=i.cacheKeys,d=r.namespaceURI===this.SVG_NS;n=E(n,this.rotation,0);var u,h=i.styledMode?r&&t.prototype.getStyle.call(r,"font-size"):o&&o.fontSize;if(y(a)){var p=a.toString();-1===p.indexOf("<")&&(p=p.replace(/[0-9]/g,"0")),p+=["",n,h,this.textWidth,o&&o.textOverflow,o&&o.fontWeight].join()}if(p&&!e&&(u=s[p]),!u){if(d||i.forExport){try{var f=this.fakeTS&&function(t){var e=r.querySelector(".highcharts-text-outline");e&&v(e,{display:t})};w(f)&&f("none"),u=r.getBBox?x({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight},w(f)&&f("")}catch(t){}(!u||0>u.width)&&(u={width:0,height:0})}else u=this.htmlGetBBox();if(i.isSVG&&(e=u.width,i=u.height,d&&(u.height=i={"11px,17":14,"13px,20":16}[(h||"")+","+Math.round(i)]||i),n&&(d=n*l,u.width=Math.abs(i*Math.sin(d))+Math.abs(e*Math.cos(d)),u.height=Math.abs(i*Math.cos(d))+Math.abs(e*Math.sin(d)))),p&&(""===a||0<u.height)){for(;250<c.length;)delete s[c.shift()];s[p]||c.push(p),s[p]=u}}return u},t.prototype.getStyle=function(t){return p.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?m(e):c.createElementNS(this.SVG_NS,e),this.renderer=t,_(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var n=this.onEvents;return n[t]&&n[t](),n[t]=f(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,n){this.opacity=t=Number(Number(t).toFixed(3)),n.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace($(t)?new RegExp("(^| )"+t+"( |$)"):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,n){var i=this.element,r=this.text?this.text.element:i,o={textAnchor:"text-anchor"},a=!1,s=this.textPathWrapper,l=!s;n=k(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},n);var c=e.filterUserAttributes(n.attributes);if(t&&n&&n.enabled){s&&null===s.element.parentNode?(l=!0,s=s.destroy()):s&&this.removeTextOutline.call(s.parentGroup),this.options&&this.options.padding&&(c.dx=-this.options.padding),s||(this.textPathWrapper=s=this.renderer.createElement("textPath"),a=!0);var u=s.element;if((n=t.element.getAttribute("id"))||t.element.setAttribute("id",n=P()),l)for(r.setAttribute("y",0),C(c.dx)&&r.setAttribute("x",-c.dx),t=[].slice.call(r.childNodes),l=0;l<t.length;l++){var h=t[l];h.nodeType!==p.Node.TEXT_NODE&&"tspan"!==h.nodeName||u.appendChild(h)}a&&s&&s.add({element:r}),u.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+n),y(c.dy)&&(u.parentNode.setAttribute("dy",c.dy),delete c.dy),y(c.dx)&&(u.parentNode.setAttribute("dx",c.dx),delete c.dx),S(c,(function(t,e){u.setAttribute(o[e]||e,t)})),i.removeAttribute("transform"),this.removeTextOutline.call(s),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=d}else s&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(i,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this},t.prototype.shadow=function(t,e,n){var i,r=[],o=this.element,a=this.oldShadowOptions,s={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},l=!1;if(!0===t?i=s:"object"==typeof t&&(i=x(s,t)),i&&(i&&a&&S(i,(function(t,e){t!==a[e]&&(l=!0)})),l&&this.destroyShadows(),this.oldShadowOptions=i),i){if(!this.shadows){var c=i.opacity/i.width,d=this.parentInverted?"translate("+i.offsetY+", "+i.offsetX+")":"translate("+i.offsetX+", "+i.offsetY+")";for(s=1;s<=i.width;s++){var u=o.cloneNode(!1),h=2*i.width+1-2*s;g(u,{stroke:t.color||"#000000","stroke-opacity":c*s,"stroke-width":h,transform:d,fill:"none"}),u.setAttribute("class",(u.getAttribute("class")||"")+" highcharts-shadow"),n&&(g(u,"height",Math.max(g(u,"height")-h,0)),u.cutHeight=h),e?e.element.appendChild(u):o.parentNode&&o.parentNode.insertBefore(u,o),r.push(u)}this.shadows=r}}else this.destroyShadows();return this},t.prototype.show=function(t){return this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,n,i){this[n]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===n&&0===e&&this.hasStroke?(i.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=j(t);else if(""!==t){var n=c.createElementNS(h,"rect");g(n,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(n),e=n.getBBox().width,n.parentNode.removeChild(n)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(n){e[n]=E(t[n],e[n])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,n=e.getElementsByTagName("title")[0]||c.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(n,e.firstChild):e.appendChild(n),n.textContent=String(E(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,n){var i=this.shadows;if(i)for(var r=i.length;r--;)n.call(i[r],"height"===t?Math.max(e-(i[r].cutHeight||0),0):"d"===t?this.d:e,t,i[r])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,n=this.inverted,i=this.rotation,r=this.matrix,o=this.element,a=this.translateX||0,s=this.translateY||0;n&&(a+=this.width,s+=this.height),a=["translate("+a+","+s+")"],y(r)&&a.push("matrix("+r.join(",")+")"),n?a.push("rotate(90) scale(-1,1)"):i&&a.push("rotate("+i+" "+E(this.rotationOriginX,o.getAttribute("x"),0)+" "+E(this.rotationOriginY,o.getAttribute("y")||0)+")"),(y(t)||y(e))&&a.push("scale("+E(t,1)+" "+E(e,1)+")"),a.length&&o.setAttribute("transform",a.join(" "))},t.prototype.visibilitySetter=function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var n=this.renderer,i=this.parentGroup,r=(i||n).element||n.box,o=this.element;n=r===n.box;var a,s=!1,l=this.added;if(y(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):y(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&i&&(i.handleZ=!0),a=(e=r.childNodes).length-1;0<=a&&!s;a--){l=(i=e[a]).getAttribute("data-z-index");var c=!y(l);i!==o&&(0>t&&c&&!n&&!a?(r.insertBefore(o,e[a]),s=!0):(j(l)<=t||c&&(!y(t)||0<=t))&&(r.insertBefore(o,e[a+1]||null),s=!0))}s||(r.insertBefore(o,e[n?3:0]||null),s=!0)}return s},t}()).prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],(function(t){var e;return function(e){var n;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=n),e.rendererTypes[t]||e.rendererTypes[n]},e.registerRendererType=function(i,r,o){e.rendererTypes[i]=r,n&&!o||(n=i,t.Renderer=r)}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=e.defined,r=e.extend,o=e.isNumber,a=e.merge,s=e.pick,l=e.removeEvent;return function(e){function c(t,n,i,r,o,a,s,l,d,u){var h,p=e.call(this)||this;return p.paddingLeftSetter=p.paddingSetter,p.paddingRightSetter=p.paddingSetter,p.init(t,"g"),p.textStr=n,p.x=i,p.y=r,p.anchorX=a,p.anchorY=s,p.baseline=d,p.className=u,p.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label"),u&&p.addClass("highcharts-"+u),p.text=t.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof o&&((h=/^url\((.*?)\)$/.test(o))||p.renderer.symbols[o])&&(p.symbolKey=o),p.bBox=c.emptyBBox,p.padding=3,p.baselineOffset=0,p.needsBox=t.styledMode||h,p.deferredAttr={},p.alignFactor=0,p}return n(c,e),c.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))},c.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},c.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},c.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},c.prototype.css=function(e){if(e){var n={};e=a(e),c.textProps.forEach((function(t){void 0!==e[t]&&(n[t]=e[t],delete e[t])})),this.text.css(n);var i="width"in n;"fontSize"in n||"fontWeight"in n?this.updateTextPadding():i&&this.updateBoxSize()}return t.prototype.css.call(this,e)},c.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},c.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},c.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=s(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},c.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},c.prototype.heightSetter=function(t){this.heightSetting=t},c.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:i(t)?t:"",x:this.x,y:this.y}),this.box&&i(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},c.prototype.paddingSetter=function(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},c.prototype.rSetter=function(t,e){this.boxAttr(e,t)},c.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},c.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},c.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},c.prototype["text-alignSetter"]=function(t){this.textAlign=t},c.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},c.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},n=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!i(this.text.textStr)?c.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,t=this.renderer.fontMetrics(t&&t.fontSize,this.text),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||t).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-t.h)/2),this.needsBox&&(this.box||((n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),n.add(this)),n=this.getCrispAdjust(),e.x=n,e.y=(this.baseline?-this.baselineOffset:0)+n,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(r(e,this.deferredAttr)),this.deferredAttr={})},c.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,n=s(this.paddingLeft,this.padding);i(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),n===t.x&&e===t.y||(t.attr("x",n),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=n,t.y=e},c.prototype.widthSetter=function(t){this.widthSetting=o(t)?t:void 0},c.prototype.getPaddedWidth=function(){var t=this.padding,e=s(this.paddingLeft,t);return t=s(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},c.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},c.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},c.emptyBBox={width:0,height:0,x:0,y:0},c.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),c}(t)})),e(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],(function(t){function e(t,e,n,i,o){var s=[];if(o){var l=o.start||0,c=a(o.r,n);n=a(o.r,i||n);var d=(o.end||0)-.001;i=o.innerR;var u=a(o.open,.001>Math.abs((o.end||0)-l-2*Math.PI)),h=Math.cos(l),p=Math.sin(l),f=Math.cos(d),g=Math.sin(d);l=a(o.longArc,.001>d-l-Math.PI?0:1),s.push(["M",t+c*h,e+n*p],["A",c,n,0,l,a(o.clockwise,1),t+c*f,e+n*g]),r(i)&&s.push(u?["M",t+i*f,e+i*g]:["L",t+i*f,e+i*g],["A",i,i,0,l,r(o.clockwise)?1-o.clockwise:0,t+i*h,e+i*p]),u||s.push(["Z"])}return s}function n(t,e,n,r,o){return o&&o.r?i(t,e,n,r,o):[["M",t,e],["L",t+n,e],["L",t+n,e+r],["L",t,e+r],["Z"]]}function i(t,e,n,i,r){return[["M",t+(r=r&&r.r||0),e],["L",t+n-r,e],["C",t+n,e,t+n,e,t+n,e+r],["L",t+n,e+i-r],["C",t+n,e+i,t+n,e+i,t+n-r,e+i],["L",t+r,e+i],["C",t,e+i,t,e+i,t,e+i-r],["L",t,e+r],["C",t,e,t,e,t+r,e]]}var r=t.defined,o=t.isNumber,a=t.pick;return{arc:e,callout:function(t,e,n,r,a){var s=Math.min(a&&a.r||0,n,r),l=s+6,c=a&&a.anchorX;a=a&&a.anchorY||0;var d=i(t,e,n,r,{r:s});return o(c)?(t+c>=n?a>e+l&&a<e+r-l?d.splice(3,1,["L",t+n,a-6],["L",t+n+6,a],["L",t+n,a+6],["L",t+n,e+r-s]):d.splice(3,1,["L",t+n,r/2],["L",c,a],["L",t+n,r/2],["L",t+n,e+r-s]):0>=t+c?a>e+l&&a<e+r-l?d.splice(7,1,["L",t,a+6],["L",t-6,a],["L",t,a-6],["L",t,e+s]):d.splice(7,1,["L",t,r/2],["L",c,a],["L",t,r/2],["L",t,e+s]):a&&a>r&&c>t+l&&c<t+n-l?d.splice(5,1,["L",c+6,e+r],["L",c,e+r+6],["L",c-6,e+r],["L",t+s,e+r]):a&&0>a&&c>t+l&&c<t+n-l&&d.splice(1,1,["L",c-6,e],["L",c,e-6],["L",c+6,e],["L",n-s,e]),d):d},circle:function(t,n,i,r){return e(t+i/2,n+r/2,i/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,n,i){return[["M",t+n/2,e],["L",t+n,e+i/2],["L",t+n/2,e+i],["L",t,e+i/2],["Z"]]},rect:n,roundedRect:i,square:n,triangle:function(t,e,n,i){return[["M",t+n/2,e],["L",t+n,e+i],["L",t,e+i],["Z"]]},"triangle-down":function(t,e,n,i){return[["M",t,e],["L",t+n,e],["L",t+n/2,e+i],["Z"]]}}})),e(n,"Core/Renderer/SVG/TextBuilder.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=e.doc,r=e.SVG_NS,o=e.win,a=n.attr,s=n.isString,l=n.objectEach,c=n.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,n=e.element,r=e.renderer,o=c(e.textStr,"").toString(),a=-1!==o.indexOf("<"),l=n.childNodes;r=this.width&&!e.added&&r.box;var d=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(d!==e.textCache){for(e.textCache=d,delete e.actualWidth,d=l.length;d--;)n.removeChild(l[d]);a||this.ellipsis||this.width||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))?""!==o&&(r&&r.appendChild(n),o=new t(o),this.modifyTree(o.nodes),o.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["&lt;","&gt;"])),r&&r.removeChild(n)):n.appendChild(i.createTextNode(this.unescapeEntities(o))),s(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,n=this.svgElement,s=a(n.element,"x");for(n.firstLineMetrics=void 0;(t=n.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)n.element.removeChild(t);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),(function(t,i){t.nextSibling&&t.previousSibling&&(0===i&&1===t.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(void 0,t.previousSibling)),a(t,{dy:e.getLineHeight(t.nextSibling),x:s}))}));var l=this.width||0;if(l){var c=function(t,o){var c=t.textContent||"",d=c.replace(/([^\^])-/g,"$1- ").split(" "),u=!e.noWrap&&(1<d.length||1<n.element.childNodes.length),h=e.getLineHeight(o),p=0,f=n.actualWidth;if(e.ellipsis)c&&e.truncate(t,c,void 0,0,Math.max(0,l-parseInt(e.fontSize||12,10)),(function(t,e){return t.substring(0,e)+"…"}));else if(u){for(c=[],u=[];o.firstChild&&o.firstChild!==t;)u.push(o.firstChild),o.removeChild(o.firstChild);for(;d.length;)d.length&&!e.noWrap&&0<p&&(c.push(t.textContent||""),t.textContent=d.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,d,0===p&&f||0,l,(function(t,e){return d.slice(0,e).join(" ").replace(/- /g,"-")})),f=n.actualWidth,p++;u.forEach((function(e){o.insertBefore(e,t)})),c.forEach((function(e){o.insertBefore(i.createTextNode(e),t),(e=i.createElementNS(r,"tspan")).textContent="​",a(e,{dy:h,x:s}),o.insertBefore(e,t)}))}},d=function(t){[].slice.call(t.childNodes).forEach((function(e){e.nodeType===o.Node.TEXT_NODE?c(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(n.actualWidth=0),d(e))}))};d(n.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===o.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,n=function(i,r){var o=i.attributes;o=void 0===o?{}:o;var a=i.children,l=i.tagName,c=e.renderer.styledMode;"b"===l||"strong"===l?c?o.class="highcharts-strong":o.style="font-weight:bold;"+(o.style||""):"i"!==l&&"em"!==l||(c?o.class="highcharts-emphasized":o.style="font-style:italic;"+(o.style||"")),s(o.style)&&(o.style=o.style.replace(/(;| |^)color([ :])/,"$1fill$2")),"br"===l?(o.class="highcharts-br",i.textContent="​",(r=t[r+1])&&r.textContent&&(r.textContent=r.textContent.replace(/^ +/gm,""))):"a"===l&&a&&a.some((function(t){return"#text"===t.tagName}))&&(i.children=[{children:a,tagName:"tspan"}]),"#text"!==l&&"a"!==l&&(i.tagName="tspan"),i.attributes=o,a&&a.filter((function(t){return"#text"!==t.tagName})).forEach(n)};t.forEach(n)},e.prototype.truncate=function(t,e,n,i,r,o){var a,s=this.svgElement,l=s.renderer,c=s.rotation,d=[],u=n?1:0,h=(e||n||"").length,p=h,f=function(r,a){a=a||r;var c=t.parentNode;if(c&&void 0===d[a])if(c.getSubStringLength)try{d[a]=i+c.getSubStringLength(0,n?a+1:a)}catch(t){}else l.getSpanWidth&&(t.textContent=o(e||n,r),d[a]=i+l.getSpanWidth(s,t));return d[a]};s.rotation=0;var g=f(t.textContent.length);if(i+g>r){for(;u<=h;)p=Math.ceil((u+h)/2),n&&(a=o(n,p)),g=f(p,a&&a.length-1),u===h?u=h+1:g>r?h=p-1:u=p;0===h?t.textContent="":e&&h===e.length-1||(t.textContent=a||o(e||n,p))}n&&n.splice(0,p),s.actualWidth=g,s.rotation=c},e.prototype.unescapeEntities=function(t,e){return l(this.renderer.escapes,(function(n,i){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),i))})),t},e}()})),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l){var c,d=n.charts,u=n.deg2rad,h=n.doc,p=n.isFirefox,f=n.isMS,g=n.isWebKit,m=n.noop,v=n.SVG_NS,y=n.symbolSizes,b=n.win,x=l.addEvent,_=l.attr,O=l.createElement,w=l.css,C=l.defined,$=l.destroyObjectProperties,k=l.extend,S=l.isArray,E=l.isNumber,j=l.isObject,A=l.isString,P=l.merge,M=l.pick,T=l.pInt,L=l.uniqueKey;return n=function(){function n(t,e,n,i,r,o,a){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,n,i,r,o,a)}return n.prototype.init=function(t,e,n,i,r,o,a){var s,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),c=l.element;a||l.css(this.getStyle(i)),t.appendChild(c),_(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&_(c,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=c,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(h.createTextNode("Created with Highcharts 9.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=r,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),p&&t.getBoundingClientRect&&((e=function(){w(t,{left:0,top:0}),s=t.getBoundingClientRect(),w(t,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=x(b,"resize",e))},n.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((p||g)&&h.getElementsByTagName("base").length){if(!C(c)){var e=L();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(h.body),w(e,{position:"fixed",top:0,left:0,zIndex:9e5});var n=h.elementFromPoint(6,6);c="hitme"===(n&&n.id),h.body.removeChild(e)}if(c)return b.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},n.prototype.getStyle=function(t){return this.style=k({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},n.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),$(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},n.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},n.prototype.buildText=function(t){new s(t).buildSVG()},n.prototype.getContrast=function(t){return(t=e.parse(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},n.prototype.button=function(e,n,i,r,o,a,s,l,c,d){var u=this.label(e,n,i,c,void 0,void 0,d,void 0,"button"),h=this.styledMode,p=0,g=o?P(o):{};if(e=g&&g.style||{},g=t.filterUserAttributes(g),u.attr(P({padding:8,r:2},g)),!h){var m=(g=P({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:e},g)).style;delete g.style;var v=(a=P(g,{fill:"#e6e6e6"},t.filterUserAttributes(a||{}))).style;delete a.style;var y=(s=P(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(s||{}))).style;delete s.style;var b=(l=P(g,{style:{color:"#cccccc"}},t.filterUserAttributes(l||{}))).style;delete l.style}return x(u.element,f?"mouseover":"mouseenter",(function(){3!==p&&u.setState(1)})),x(u.element,f?"mouseout":"mouseleave",(function(){3!==p&&u.setState(p)})),u.setState=function(t){1!==t&&(u.state=p=t),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),h||u.attr([g,a,s,l][t||0]).css([m,v,y,b][t||0])},h||u.attr(g).css(k({cursor:"default"},m)),u.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==p&&r.call(u,t)}))},n.prototype.crispLine=function(t,e,n){void 0===n&&(n="round");var i=t[0],r=t[1];return C(i[1])&&i[1]===r[1]&&(i[1]=r[1]=Math[n](i[1])-e%2/2),C(i[2])&&i[2]===r[2]&&(i[2]=r[2]=Math[n](i[2])+e%2/2),t},n.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return S(t)?e.d=t:j(t)&&k(e,t),this.createElement("path").attr(e)},n.prototype.circle=function(t,e,n){return t=j(t)?t:void 0===t?{}:{x:t,y:e,r:n},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},e.attr(t)},n.prototype.arc=function(t,e,n,i,r,o){return j(t)?(e=(i=t).y,n=i.r,t=i.x):i={innerR:i,start:r,end:o},(t=this.symbol("arc",t,e,n,n,i)).r=n,t},n.prototype.rect=function(t,e,n,i,r,o){r=j(t)?t.r:r;var a=this.createElement("rect");return t=j(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(i,0)},this.styledMode||(void 0!==o&&(t["stroke-width"]=o,t=a.crisp(t)),t.fill="none"),r&&(t.r=r),a.rSetter=function(t,e,n){a.r=t,_(n,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(t)},n.prototype.setSize=function(t,e,n){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:M(n,!0)?void 0:0}),this.alignElements()},n.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},n.prototype.image=function(t,e,n,i,r,o){var a={preserveAspectRatio:"none"},s=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};E(e)&&(a.x=e),E(n)&&(a.y=n),E(i)&&(a.width=i),E(r)&&(a.height=r);var l=this.createElement("image").attr(a);return e=function(e){s(l.element,t),o.call(l,e)},o?(s(l.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n=new b.Image,x(n,"load",e),n.src=t,n.complete&&e({})):s(l.element,t),l},n.prototype.symbol=function(t,e,n,i,r,o){var a,s=this,l=/^url\((.*?)\)$/,c=l.test(t),u=!c&&(this.symbols[t]?t:"circle"),p=u&&this.symbols[u];if(p){"number"==typeof e&&(a=p.call(this.symbols,Math.round(e||0),Math.round(n||0),i||0,r||0,o));var f=this.path(a);s.styledMode||f.attr("fill","none"),k(f,{symbolName:u||void 0,x:e,y:n,width:i,height:r}),o&&k(f,o)}else if(c){var g=t.match(l)[1],m=f=this.image(g);m.imgwidth=M(y[g]&&y[g].width,o&&o.width),m.imgheight=M(y[g]&&y[g].height,o&&o.height);var v=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach((function(t){m[t+"Setter"]=function(t,e){var n=this["img"+e];this[e]=t,C(n)&&(o&&"within"===o.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(t=((this[e]||0)-n)/2,this.attr("width"===e?{translateX:t}:{translateY:t})))}})),C(e)&&m.attr({x:e,y:n}),m.isImg=!0,C(m.imgwidth)&&C(m.imgheight)?v(m):(m.attr({width:0,height:0}),O("img",{onload:function(){var t=d[s.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),h.body.appendChild(this)),y[g]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&v(m),this.parentNode&&this.parentNode.removeChild(this),s.imgCount--,s.imgCount||!t||t.hasLoaded||t.onload()},src:g}),this.imgCount++)}return f},n.prototype.clipRect=function(t,e,n,i){var r=L()+"-",o=this.createElement("clipPath").attr({id:r}).add(this.defs);return(t=this.rect(t,e,n,i,0).add(o)).id=r,t.clipPath=o,t.count=0,t},n.prototype.text=function(t,e,n,i){var r={};return!i||!this.allowHTML&&this.forExport?(r.x=Math.round(e||0),n&&(r.y=Math.round(n)),C(t)&&(r.text=t),t=this.createElement("text").attr(r),(!i||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,n){for(var i,r=n.getElementsByTagName("tspan"),o=n.getAttribute(e),a=0;a<r.length;a++)(i=r[a]).getAttribute(e)===o&&i.setAttribute(e,t);n.setAttribute(e,t)}),t):this.html(t,e,n)},n.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!b.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&r.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?T(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},n.prototype.rotCorr=function(t,e,n){var i=t;return e&&n&&(i=Math.max(i*Math.cos(e*u),4)),{x:-t/3*Math.sin(e*u),y:i}},n.prototype.pathToSegments=function(t){for(var e=[],n=[],i={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r<t.length;r++)A(n[0])&&E(t[r])&&n.length===i[n[0].toUpperCase()]&&t.splice(r,0,n[0].replace("M","L").replace("m","l")),"string"==typeof t[r]&&(n.length&&e.push(n.slice(0)),n.length=0),n.push(t[r]);return e.push(n.slice(0)),e},n.prototype.label=function(t,e,n,i,r,a,s,l,c){return new o(this,t,e,n,i,r,a,s,l,c)},n.prototype.alignElements=function(){this.alignedObjects.forEach((function(t){return t.align()}))},n}(),k(n.prototype,{Element:r,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:a,draw:m}),i.registerRendererType("svg",n,!0),n})),e(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.isFirefox,o=t.isMS,a=t.isWebKit,s=t.win,l=n.css,c=n.defined,d=n.extend,u=n.pick,h=n.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var n=e.prototype,i=t.prototype;i.getSpanCorrection=n.getSpanCorrection,i.htmlCss=n.htmlCss,i.htmlGetBBox=n.htmlGetBBox,i.htmlUpdateTransform=n.htmlUpdateTransform,i.setSpanRotation=n.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,n){this.xCorr=-t*n,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,n=u(e&&t.width,void 0);if(e){delete t.width,this.textWidth=n;var i=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=d(this.styles,t),l(this.element,t),i&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,i=this.translateY||0,r=this.x||0,o=this.y||0,a=this.textAlign||"left",s={left:0,center:.5,right:1}[a],d=this.styles;if(d=d&&d.whiteSpace,l(e,{marginLeft:n,marginTop:i}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){l(t,{marginLeft:n+1,marginTop:i+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(n){t.invertChild(n,e)})),"SPAN"===e.tagName){var u=this.rotation,p=this.textWidth&&h(this.textWidth),f=[u,a,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,p!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else l(e,{width:"",whiteSpace:d||"nowrap"}),m=e.offsetWidth;(p>this.oldTextWidth||m>p)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(l(e,{width:m>p||u?p+"px":"auto",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=p,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,!c(u)||u===(this.oldRotation||0)&&a===this.oldAlign||this.setSpanRotation(u,s,g),this.getSpanCorrection(!c(u)&&this.textPxLength||e.offsetWidth,g,s,u,a)),l(e,{left:r+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=u,this.oldAlign=a}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,n){var i={},c=o&&!/Edge/.test(s.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":r?"MozTransform":s.opera?"-o-transform":void 0;c&&(i[c]=i.transform="rotate("+t+"deg)",i[c+(r?"Origin":"-origin")]=i.transformOrigin=100*e+"% "+n+"px",l(this.element,i))},e.composedClasses=[],e}(e)})),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=i.attr,a=i.createElement,s=i.extend,l=i.pick;return function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return r(i,n),i.compose=function(t){return-1===i.composedClasses.indexOf(t)&&(i.composedClasses.push(t),t.prototype.html=i.prototype.html),t},i.prototype.html=function(n,i,r){var c=this.createElement("span"),d=c.element,u=c.renderer,h=u.isSVG,p=function(t,n){["opacity","visibility"].forEach((function(i){t[i+"Setter"]=function(r,o,a){var s=t.div?t.div.style:n;e.prototype[i+"Setter"].call(this,r,o,a),s&&(s[o]=r)}})),t.addedSetters=!0};return c.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,l(e,"")),this.textStr=e,c.doTransform=!0)},h&&p(c,c.element.style),c.xSetter=c.ySetter=c.alignSetter=c.rotationSetter=function(t,e){"align"===e?c.alignValue=c.textAlign=t:c[e]=t,c.doTransform=!0},c.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},c.attr({text:n,x:Math.round(i),y:Math.round(r)}).css({position:"absolute"}),u.styledMode||c.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),d.style.whiteSpace="nowrap",c.css=c.htmlCss,h&&(c.add=function(t){var e=u.box.parentNode,n=[];if(this.parentGroup=t){var i=t.div;if(!i){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function r(e,n){t[n]=e,"translateX"===n?u.left=e+"px":u.top=e+"px",t.doTransform=!0}var l=o(t.element,"class"),d=t.styles||{},u=(i=t.div=t.div||a("div",l?{className:l}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:d.cursor,pointerEvents:d.pointerEvents,visibility:t.visibility},i||e)).style;s(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(i),on:function(){return n[0].div&&c.on.apply({element:n[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:r,translateYSetter:r}),t.addedSetters||p(t)}))}}else i=e;return i.appendChild(d),c.added=!0,c.alignOnAdd&&c.htmlUpdateTransform(),c}),c},i.composedClasses=[],i}(n)})),e(n,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(n,"Core/Foundation.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.isFunction,r=t.objectEach,o=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},r(e.events,(function(e,r){t.eventOptions[r]!==e&&(t.eventOptions[r]&&(o(t,r,t.eventOptions[r]),delete t.eventOptions[r]),i(e)&&(t.eventOptions[r]=e,n(t,r,e)))}))}}(e||(e={})),e})),e(n,"Core/Axis/Tick.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=e.deg2rad,r=n.clamp,o=n.correctFloat,a=n.defined,s=n.destroyObjectProperties,l=n.extend,c=n.fireEvent,d=n.isNumber,u=n.merge,h=n.objectEach,p=n.pick;return e=function(){function e(t,e,n,i,r){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,c(this,"init"),n||i||this.addLabel()}return e.prototype.addLabel=function(){var e=this,n=e.axis,i=n.options,r=n.chart,s=n.categories,u=n.logarithmic,h=n.names,f=e.pos,g=p(e.options&&e.options.labels,i.labels),m=n.tickPositions,v=f===m[0],y=f===m[m.length-1],b=(!g.step||1===g.step)&&1===n.tickInterval;m=m.info;var x,_=e.label;if(s=this.parameters.category||(s?p(s[f],h[f],f):f),u&&d(s)&&(s=o(u.lin2log(s))),n.dateTime)if(m)var O=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&m.higherRanks[f]||m.unitName]),w=O.main;else d(s)&&(w=n.dateTime.getXDateFormat(s,i.dateTimeLabelFormats||{}));e.isFirst=v,e.isLast=y;var C={axis:n,chart:r,dateTimeLabelFormat:w,isFirst:v,isLast:y,pos:f,tick:e,tickPositionInfo:m,value:s};c(this,"labelFormat",C);var $=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=n.defaultLabelFormatter.call(e),t.format(g.format,e,r)):n.defaultLabelFormatter.call(e,e)};i=$.call(C,C);var k=O&&O.list;e.shortenLabel=k?function(){for(x=0;x<k.length;x++)if(l(C,{dateTimeLabelFormat:k[x]}),_.attr({text:$.call(C,C)}),_.getBBox().width<n.getSlotWidth(e)-2*g.padding)return;_.attr({text:""})}:void 0,b&&n._addedPlotLB&&e.moveLabel(i,g),a(_)||e.movedLabel?_&&_.textStr!==i&&!b&&(!_.textWidth||g.style.width||_.styles.width||_.css({width:null}),_.attr({text:i}),_.textPxLength=_.getBBox().width):(e.label=_=e.createLabel({x:0,y:0},i,g),e.rotation=0)},e.prototype.createLabel=function(t,e,n){var i=this.axis,r=i.chart;return(t=a(e)&&n.enabled?r.renderer.text(e,t.x,t.y,n.useHTML).add(i.labelGroup):null)&&(r.styledMode||t.css(u(n.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){s(this,this.axis)},e.prototype.getPosition=function(t,e,n,i){var a=this.axis,s=a.chart,l=i&&s.oldChartHeight||s.chartHeight;return(t={x:t?o(a.translate(e+n,null,null,i)+a.transB):a.left+a.offset+(a.opposite?(i&&s.oldChartWidth||s.chartWidth)-a.right-a.left:0),y:t?l-a.bottom+a.offset-(a.opposite?a.height:0):o(l-a.translate(e+n,null,null,i)-a.transB)}).y=r(t.y,-1e5,1e5),c(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,n,r,o,s,l,d){var u=this.axis,h=u.transA,p=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,f=u.staggerLines,g=u.tickRotCorr||{x:0,y:0},m=r||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),v={},y=o.y;return a(y)||(y=0===u.side?n.rotation?-8:-n.getBBox().height:2===u.side?g.y+8:Math.cos(n.rotation*i)*(g.y-n.getBBox(!1,0).height/2)),t=t+o.x+m+g.x-(s&&r?s*h*(p?-1:1):0),e=e+y-(s&&!r?s*h*(p?1:-1):0),f&&(n=l/(d||1)%f,u.opposite&&(n=f-n-1),e+=u.labelOffset/f*n),v.x=t,v.y=Math.round(e),c(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:s,index:l}),v},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,n,i,r,o){return o.crispLine([["M",t,e],["L",t+(r?0:-n),e+(r?n:0)]],i)},e.prototype.handleOverflow=function(t){var e=this.axis,n=e.options.labels,r=t.x,o=e.chart.chartWidth,a=e.chart.spacing,s=p(e.labelLeft,Math.min(e.pos,a[3]));a=p(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-a[1]));var l,c=this.label,d=this.rotation,u={left:0,center:.5,right:1}[e.labelAlign||c.attr("align")],h=c.getBBox().width,f=e.getSlotWidth(this),g={},m=f,v=1;d||"justify"!==n.overflow?0>d&&r-u*h<s?l=Math.round(r/Math.cos(d*i)-s):0<d&&r+u*h>a&&(l=Math.round((o-r)/Math.cos(d*i))):(o=r+(1-u)*h,r-u*h<s?m=t.x+m*(1-u)-s:o>a&&(m=a-t.x+m*u,v=-1),(m=Math.min(f,m))<f&&"center"===e.labelAlign&&(t.x+=v*(f-m-u*(f-Math.min(h,m)))),(h>m||e.autoRotation&&(c.styles||{}).width)&&(l=m)),l&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(l)+"px",(n.style||{}).textOverflow||(g.textOverflow="ellipsis"),c.css(g)))},e.prototype.moveLabel=function(t,e){var n=this,i=n.label,r=n.axis,o=r.reversed,a=!1;if(i&&i.textStr===t?(n.movedLabel=i,a=!0,delete n.label):h(r.ticks,(function(e){a||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,a=!0,e.labelPos=n.movedLabel.xy,delete e.label)})),!a&&(n.labelPos||i)){var s=n.labelPos||i.xy;i=r.horiz?o?0:r.width+r.left:s.x,r=r.horiz?s.y:o?r.width+r.left:0,n.movedLabel=n.createLabel({x:i,y:r},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,n){var i=this.axis,r=i.horiz,o=this.pos,a=p(this.tickmarkOffset,i.tickmarkOffset);a=(o=this.getPosition(r,o,a,e)).x;var s=o.y;i=r&&a===i.pos+i.len||!r&&s===i.pos?-1:1,r=p(n,this.label&&this.label.newOpacity,1),n=p(n,1),this.isActive=!0,this.renderGridLine(e,n,i),this.renderMark(o,n,i),this.renderLabel(o,e,r,t),this.isNew=!1,c(this,"afterRender")},e.prototype.renderGridLine=function(t,e,n){var i=this.axis,r=i.options,o={},a=this.pos,s=this.type,l=p(this.tickmarkOffset,i.tickmarkOffset),c=i.chart.renderer,d=this.gridLine,u=r.gridLineWidth,h=r.gridLineColor,f=r.gridLineDashStyle;"minor"===this.type&&(u=r.minorGridLineWidth,h=r.minorGridLineColor,f=r.minorGridLineDashStyle),d||(i.chart.styledMode||(o.stroke=h,o["stroke-width"]=u||0,o.dashstyle=f),s||(o.zIndex=1),t&&(e=0),this.gridLine=d=c.path().attr(o).addClass("highcharts-"+(s?s+"-":"")+"grid-line").add(i.gridGroup)),d&&(n=i.getPlotLinePath({value:a+l,lineWidth:d.strokeWidth()*n,force:"pass",old:t}))&&d[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},e.prototype.renderMark=function(t,e,n){var i=this.axis,r=i.options,o=i.chart.renderer,a=this.type,s=i.tickSize(a?a+"Tick":"tick"),l=t.x;t=t.y;var c=p(r["minor"!==a?"tickWidth":"minorTickWidth"],!a&&i.isXAxis?1:0);r=r["minor"!==a?"tickColor":"minorTickColor"];var d=this.mark,u=!d;s&&(i.opposite&&(s[0]=-s[0]),d||(this.mark=d=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||d.attr({stroke:r,"stroke-width":c})),d[u?"attr":"animate"]({d:this.getMarkPath(l,t,s[0],d.strokeWidth()*n,i.horiz,o),opacity:e}))},e.prototype.renderLabel=function(t,e,n,i){var r=this.axis,o=r.horiz,a=r.options,s=this.label,l=a.labels,c=l.step;r=p(this.tickmarkOffset,r.tickmarkOffset);var u=t.x;t=t.y;var h=!0;s&&d(u)&&(s.xy=t=this.getLabelPosition(u,t,s,o,l,r,i,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?h=!1:!o||l.step||l.rotation||e||0===n||this.handleOverflow(t),c&&i%c&&(h=!1),h&&d(t.y)?(t.opacity=n,s[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(s.attr("y",-9999),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,n=e.reversed;if(t&&!this.isNew){var i=e.horiz?n?e.left:e.width+e.left:t.xy.x;n=e.horiz?t.xy.y:n?e.width+e.top:e.top,t.animate({x:i,y:n,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}()})),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s){var l=t.animObject,c=i.defaultOptions,d=r.registerEventOptions,u=o.deg2rad,h=s.arrayMax,p=s.arrayMin,f=s.clamp,g=s.correctFloat,m=s.defined,v=s.destroyObjectProperties,y=s.erase,b=s.error,x=s.extend,_=s.fireEvent,O=s.getMagnitude,w=s.isArray,C=s.isNumber,$=s.isString,k=s.merge,S=s.normalizeTickInterval,E=s.objectEach,j=s.pick,A=s.relativeLength,P=s.removeEvent,M=s.splat,T=s.syncTimeout;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var n=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?"xAxis":"yAxis"),_(this,"init",{userOptions:e}),this.opposite=j(e.opposite,this.opposite),this.side=j(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var i=this.options,r=i.labels,o=i.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=j(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===o||!0===i.categories,this.categories=i.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.min=this.max=null,e=j(i.crosshair,M(t.options.tooltip.crosshairs)[n?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=C(r.rotation)?r.rotation:void 0,d(this,i),_(this,"afterInit")},t.prototype.setOptions=function(t){this.options=k(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],k(c[this.coll],t)),_(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var n=C(this.value)?this.value:NaN,i=e.chart.time,r=this.dateTimeLabelFormat,o=c.lang,a=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var s=e.logarithmic?Math.abs(n):e.tickInterval,l=a&&a.length;if(e.categories)var d=""+this.value;else if(r)d=i.dateFormat(r,n);else if(l&&1e3<=s)for(;l--&&void 0===d;)s>=(e=Math.pow(o,l+1))&&0==10*n%e&&null!==a[l]&&0!==n&&(d=t(n/e,-1)+a[l]);return void 0===d&&(d=1e4<=Math.abs(n)?t(n,-1):t(n,-1,void 0,"")),d},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;_(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(i){if(i.visible||!n.options.chart.ignoreHiddenSeries){var r=i.options,o=r.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((r=i.xData).length){r=e.logarithmic?r.filter(e.validatePositiveValue):r;var a=(t=i.getXExtremes(r)).min,s=t.max;C(a)||a instanceof Date||(r=r.filter(C),a=(t=i.getXExtremes(r)).min,s=t.max),r.length&&(e.dataMin=Math.min(j(e.dataMin,a),a),e.dataMax=Math.max(j(e.dataMax,s),s))}}else i=i.applyExtremes(),C(i.dataMin)&&(a=i.dataMin,e.dataMin=Math.min(j(e.dataMin,a),a)),C(i.dataMax)&&(s=i.dataMax,e.dataMax=Math.max(j(e.dataMax,s),s)),m(o)&&(e.threshold=o),(!r.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),_(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,i,r,o){var a=this.linkedParent||this,s=i&&a.old?a.old.min:a.min,l=a.minPixelPadding;r=(a.isOrdinal||a.brokenAxis&&a.brokenAxis.hasBreaks||a.logarithmic&&r)&&a.lin2val;var c=1,d=0;return(i=i&&a.old?a.old.transA:a.transA)||(i=a.transA),n&&(c*=-1,d=a.len),a.reversed&&(d-=(c*=-1)*(a.sector||a.len)),e?(t=(t*c+d-l)/i+s,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),t=C(s)?c*(t-s)*i+d+c*l+(C(o)?i*o:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,n){return("pass"!==b&&t<e||t>n)&&(b?t=f(t,e,n):a=!0),t}var n,i,r,o,a,s=this,l=s.chart,c=s.left,d=s.top,u=t.old,h=t.value,p=t.lineWidth,g=u&&l.oldChartHeight||l.chartHeight,m=u&&l.oldChartWidth||l.chartWidth,v=s.transB,y=t.translatedValue,b=t.force;return t={value:h,lineWidth:p,old:u,force:b,acrossPanes:t.acrossPanes,translatedValue:y},_(this,"getPlotLinePath",t,(function(t){y=j(y,s.translate(h,null,null,u)),y=f(y,-1e5,1e5),n=r=Math.round(y+v),i=o=Math.round(g-y-v),C(y)?s.horiz?(i=d,o=g-s.bottom,n=r=e(n,c,c+s.width)):(n=c,r=m-s.right,i=o=e(i,d,d+s.height)):(a=!0,b=!1),t.path=a&&!b?null:l.renderer.crispLine([["M",n,i],["L",r,o]],p||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var i=g(Math.floor(e/t)*t);n=g(Math.ceil(n/t)*t);var r,o=[];if(g(i+t)===i&&(r=20),this.single)return[e];for(e=i;e<=n&&(o.push(e),(e=g(e+t,r))!==a);)var a=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?j(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,i=this.pointRangePadding||0,r=this.min-i,o=(i=this.max+i)-r,a=[];if(o&&o/n<this.len/3){var s=this.logarithmic;if(s)this.paddedTicks.forEach((function(t,e,i){e&&a.push.apply(a,s.getLogTickPositions(n,i[e-1],i[e],!0))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())a=a.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),r,i,t.startOfWeek));else for(t=r+(e[0]-r)%n;t<=i&&t!==a[0];t+=n)a.push(t)}return 0!==a.length&&this.trimTicks(a),a},t.prototype.adjustForMinRange=function(){var t,e,n,i,r=this.options,o=this.logarithmic,a=this.min,s=this.max,l=0;if(this.isXAxis&&void 0===this.minRange&&!o&&(m(r.min)||m(r.max)||m(r.floor)||m(r.ceiling)?this.minRange=null:(this.series.forEach((function(r){if(n=r.xData,i=r.xIncrement?1:n.length-1,1<n.length)for(t=i;0<t;t--)e=n[t]-n[t-1],(!l||e<l)&&(l=e)})),this.minRange=Math.min(5*l,this.dataMax-this.dataMin))),s-a<this.minRange){var c=this.dataMax-this.dataMin>=this.minRange,d=this.minRange,u=(d-s+a)/2;u=[a-u,j(r.min,a-u)],c&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),s=[(a=h(u))+d,j(r.max,a+d)],c&&(s[2]=o?o.log2lin(this.dataMax):this.dataMax),(s=p(s))-a<d&&(u[0]=s-d,u[1]=j(r.min,s-d),a=h(u))}this.min=a,this.max=s},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach((function(e){var n=e.closestPointRange,i=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&m(n)&&i&&(t=m(t)?Math.min(t,n):n)})),t},t.prototype.nameToX=function(t){var e=w(this.categories),n=e?this.categories:this.names,i=t.options.x;if(t.series.requireSorting=!1,m(i)||(i=this.options.uniqueNames?e?n.indexOf(t.name):j(n.keys[t.name],-1):t.series.autoIncrement()),-1===i){if(!e)var r=n.length}else r=i;return void 0!==r&&(this.names[r]=t.name,this.names.keys[t.name]=r),r},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(n,i){if(n&&n.options&&void 0!==n.name){var r=t.nameToX(n);void 0!==r&&r!==n.x&&(n.x=r,e.xData[i]=r)}}))})))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,n=t.linkedParent,i=!!t.categories,r=t.isXAxis,o=t.axisPointRange||0,a=0,s=0,l=t.transA;if(r||i||o){var c=t.getClosest();n?(a=n.minPointOffset,s=n.pointRangePadding):t.series.forEach((function(e){var n=i?1:r?j(e.options.pointRange,c,0):t.axisPointRange||0,l=e.options.pointPlacement;o=Math.max(o,n),t.single&&!i||(e=e.is("xrange")?!r:r,a=Math.max(a,e&&$(l)?0:n/2),s=Math.max(s,e&&"on"===l?0:n))})),n=t.ordinal&&t.ordinal.slope&&c?t.ordinal.slope/c:1,t.minPointOffset=a*=n,t.pointRangePadding=s*=n,t.pointRange=Math.min(o,t.single&&i?1:e),r&&(t.closestPointRange=c)}t.translationSlope=t.transA=l=t.staticScale||t.len/(e+s||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=l*a,_(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,n=this.logarithmic,i=this.options,r=this.isXAxis,o=this.isLinked,a=i.tickPixelInterval,s=this.categories,l=this.softThreshold,c=i.maxPadding,d=i.minPadding,u=C(i.tickInterval)&&0<=i.tickInterval?i.tickInterval:void 0,h=C(this.threshold)?this.threshold:null;this.dateTime||s||o||this.getTickAmount();var p=j(this.userMin,i.min),f=j(this.userMax,i.max);if(o){this.linkedParent=e[this.coll][i.linkedTo];var v=this.linkedParent.getExtremes();this.min=j(v.min,v.dataMin),this.max=j(v.max,v.dataMax),i.type!==this.linkedParent.options.type&&b(11,1,e)}else{if(l&&m(h))if(this.dataMin>=h)v=h,d=0;else if(this.dataMax<=h){var y=h;c=0}this.min=j(p,v,this.dataMin),this.max=j(f,y,this.dataMax)}if(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,j(this.dataMin,this.min))&&b(10,1,e),this.min=g(n.log2lin(this.min),16),this.max=g(n.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=p=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),_(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(s||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(p)&&d&&(this.min-=e*d),!m(f)&&c&&(this.max+=e*c)),C(this.userMin)||(C(i.softMin)&&i.softMin<this.min&&(this.min=p=i.softMin),C(i.floor)&&(this.min=Math.max(this.min,i.floor))),C(this.userMax)||(C(i.softMax)&&i.softMax>this.max&&(this.max=f=i.softMax),C(i.ceiling)&&(this.max=Math.min(this.max,i.ceiling))),l&&m(this.dataMin)&&(h=h||0,!m(p)&&this.min<h&&this.dataMin>=h?this.min=this.options.minRange?Math.min(h,this.max-this.minRange):h:!m(f)&&this.max>h&&this.dataMax<=h&&(this.max=this.options.minRange?Math.max(h,this.min+this.minRange):h)),C(this.min)&&C(this.max)&&!this.chart.polar&&this.min>this.max&&(m(this.options.min)?this.max=this.min:m(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:o&&this.linkedParent&&!u&&a===this.linkedParent.options.tickPixelInterval?u=this.linkedParent.tickInterval:j(u,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,s?1:(this.max-this.min)*a/Math.max(this.len,a)),r&&!t){var x=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(x)})),_(this,"postProcessData",{hasExtemesChanged:x})}this.setAxisTranslation(),_(this,"initialAxisTranslation"),this.pointRange&&!u&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=j(i.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!u&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||u||(this.tickInterval=S(this.tickInterval,void 0,O(this.tickInterval),j(i.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,n=this.getMinorTickInterval(),i=this.hasVerticalPanning(),r="colorAxis"===this.coll,o=(r||!i)&&t.startOnTick;i=(r||!i)&&t.endOnTick,r=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=n=e&&e.slice(),!n&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?n=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(n=[this.min,this.max],b(19,!1,this.chart)),n.length>this.len&&((n=[n[0],n.pop()])[0]===n[1]&&(n.length=1)),this.tickPositions=n,r&&(r=r.apply(this,[this.min,this.max])))&&(this.tickPositions=n=r),this.paddedTicks=n.slice(0),this.trimTicks(n,o,i),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||r||this.adjustTickAmount()),_(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var i=t[0],r=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(_(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==i)this.min=i;else for(;this.min-o>t[0];)t.shift();if(n)this.max=r;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&m(i)&&!this.options.tickPositions&&t.push((r+i)/2)}},t.prototype.alignToOthers=function(){var t,e={},n=this.options;return!1!==this.chart.options.chart.alignTicks&&n.alignTicks&&!1!==n.startOnTick&&!1!==n.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach((function(n){var i=n.options;i=[n.horiz?i.left:i.top,i.width,i.height,i.pane].join(),n.series.length&&(e[i]?t=!0:e[i]=1)})),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,n=t.tickAmount;!m(t.tickInterval)&&!n&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/e)+1),4>n&&(this.finalTickAmt=n,n=5),this.tickAmount=n},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,n=this.tickPositions,i=this.tickAmount,r=this.finalTickAmt,o=n&&n.length,a=j(this.threshold,this.softThreshold?0:null);if(this.hasData()&&C(this.min)&&C(this.max)){if(o<i){for(;n.length<i;)n.length%2||this.min===a?n.push(g(n[n.length-1]+e)):n.unshift(g(n[0]-e));this.transA*=(o-1)/(i-1),this.min=t.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=t.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else o>i&&(this.tickInterval*=2,this.setTickPositions());if(m(r)){for(e=t=n.length;e--;)(3===r&&1==e%2||2>=r&&0<e&&e<t-1)&&n.splice(e,1);this.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach((function(n){t=t||n.isDirtyData||n.isDirty,e=e||n.xAxis&&n.xAxis.isDirty||!1})),this.setAxisSize();var n=this.len!==(this.old&&this.old.len);n||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=n||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),_(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,n,i,r){var o=this,a=o.chart;n=j(n,!0),o.series.forEach((function(t){delete t.kdTree})),r=x(r,{min:t,max:e}),_(o,"setExtremes",r,(function(){o.userMin=t,o.userMax=e,o.eventArgs=r,n&&a.redraw(i)}))},t.prototype.zoom=function(t,e){var n=this,i=this.dataMin,r=this.dataMax,o=this.options,a=Math.min(i,j(o.min,i)),s=Math.max(r,j(o.max,r));return _(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,o=t.newMax;e===n.min&&o===n.max||(n.allowZoomOutside||(m(i)&&(e<a&&(e=a),e>s&&(e=s)),m(r)&&(o<a&&(o=a),o>s&&(o=s))),n.displayBtn=void 0!==e||void 0!==o,n.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],i=this.horiz,r=this.width=Math.round(A(j(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),o=this.height=Math.round(A(j(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),a=this.top=Math.round(A(j(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(A(j(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-r-e,this.len=Math.max(i?r:o,0),this.pos=i?e:a},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,n=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=n:1/0===t?t=e:n>t?t=n:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(j(t,0)-90*this.side+720)%360;return _(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,n=j(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),i=e["tick"===t?"tickLength":"minorTickLength"];if(n&&i){"inside"===e[t+"Position"]&&(i=-i);var r=[i,n]}return _(this,"afterTickSize",t={tickSize:r}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,n=this.options.labels,i=this.horiz,r=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/r),a=n.rotation,s=this.labelMetrics(),l=Math.max(this.max-this.min,0),c=function(t){var e=t/(o||1);return(e=1<e?Math.ceil(e):1)*r>l&&1/0!==t&&1/0!==o&&l&&(e=Math.ceil(l/r)),g(e*r)},d=r,h=Number.MAX_VALUE;if(i){if(!n.staggerLines&&!n.step)if(C(a))var p=[a];else o<n.autoRotationLimit&&(p=n.autoRotation);p&&p.forEach((function(n){if(n===a||n&&-90<=n&&90>=n){var i=(e=c(Math.abs(s.h/Math.sin(u*n))))+Math.abs(n/360);i<h&&(h=i,t=n,d=e)}}))}else n.step||(d=c(s.h));return this.autoRotation=p,this.labelRotation=j(t,C(a)?a:0),d},t.prototype.getSlotWidth=function(t){var e=this.chart,n=this.horiz,i=this.options.labels,r=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];if(t&&C(t.slotWidth))return t.slotWidth;if(n&&2>i.step)return i.rotation?0:(this.staggerLines||1)*this.len/r;if(!n){if(void 0!==(t=i.style.width))return parseInt(String(t),10);if(o)return o-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,i=this.ticks,r=this.options.labels,o=r.style,a=this.horiz,s=this.getSlotWidth(),l=Math.max(1,Math.round(s-2*r.padding)),c={},d=this.labelMetrics(),u=o.textOverflow,h=0;if($(r.rotation)||(c.rotation=r.rotation||0),n.forEach((function(t){(t=i[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>h&&(h=t.label.textPxLength)})),this.maxLabelLength=h,this.autoRotation)h>l&&h>d.h?c.rotation=this.labelRotation:this.labelRotation=0;else if(s){var p=l;if(!u){var f="clip";for(l=n.length;!a&&l--;){var g=n[l];(g=i[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>s&&g.css({width:s+"px"}),g.getBBox().height>this.len/n.length-(d.h-d.f)&&(g.specificTextOverflow="ellipsis"))}}}c.rotation&&(p=h>.5*t.chartHeight?.33*t.chartHeight:h,u||(f="ellipsis")),(this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation))&&(c.align=this.labelAlign),n.forEach((function(t){var e=(t=i[t])&&t.label,n=o.width,r={};e&&(e.attr(c),t.shortenLabel?t.shortenLabel():p&&!n&&"nowrap"!==o.whiteSpace&&(p<e.textPxLength||"SPAN"===e.element.tagName)?(r.width=p+"px",u||(r.textOverflow=e.specificTextOverflow||f),e.css(r)):e.styles&&e.styles.width&&!r.width&&!n&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=c.rotation)}),this),this.tickRotCorr=e.rotCorr(d.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&m(this.min)&&m(this.max)},t.prototype.addTitle=function(t){var e,n=this.chart.renderer,i=this.horiz,r=this.opposite,o=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(i?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[o.align]),this.axisTitle=n.text(o.text||"",0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(k(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||o.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new a(this,t)},t.prototype.getOffset=function(){var t=this,e=this,n=e.chart,i=e.horiz,r=e.options,o=e.side,a=e.ticks,s=e.tickPositions,l=e.coll,c=e.axisParent,d=n.renderer,u=n.inverted&&!e.isZAxis?[1,0,3,2][o]:o,h=e.hasData(),p=r.title,f=r.labels,g=n.axisOffset;n=n.clipOffset;var v,y=[-1,1,1,-1][o],b=r.className,x=0,O=0,w=0;if(e.showAxis=v=h||r.showEmpty,e.staggerLines=e.horiz&&f.staggerLines||void 0,!e.axisGroup){var C=function(e,n,i){return d.g(e).attr({zIndex:i}).addClass("highcharts-"+l.toLowerCase()+n+" "+(t.isRadial?"highcharts-radial-axis"+n+" ":"")+(b||"")).add(c)};e.gridGroup=C("grid","-grid",r.gridZIndex),e.axisGroup=C("axis","",r.zIndex),e.labelGroup=C("axis-labels","-labels",f.zIndex)}if(h||e.isLinked?(s.forEach((function(t){e.generateTick(t)})),e.renderUnsquish(),e.reserveSpaceDefault=0===o||2===o||{1:"left",3:"right"}[o]===e.labelAlign,j(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&s.forEach((function(t){w=Math.max(a[t].getLabelSize(),w)})),e.staggerLines&&(w*=e.staggerLines),e.labelOffset=w*(e.opposite?-1:1)):E(a,(function(t,e){t.destroy(),delete a[e]})),p&&p.text&&!1!==p.enabled&&(e.addTitle(v),v&&!1!==p.reserveSpace)){e.titleOffset=x=e.axisTitle.getBBox()[i?"height":"width"];var $=p.offset;O=m($)?0:j(p.margin,i?5:10)}e.renderLine(),e.offset=y*j(r.offset,g[o]?g[o]+(r.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},p=0===o?-e.labelMetrics().h:2===o?e.tickRotCorr.y:0,h=Math.abs(w)+O,w&&(h=h-p+y*(i?j(f.y,e.tickRotCorr.y+8*y):f.x)),e.axisTitleMargin=j($,h),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(a,s)),"colorAxis"!==l&&(i=this.tickSize("tick"),g[o]=Math.max(g[o],(e.axisTitleMargin||0)+x+y*e.offset,h,s&&s.length&&i?i[0]+y*e.offset:0),r=!e.axisLine||r.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),n[u]=Math.max(n[u],r)),_(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,n=this.opposite,i=this.offset,r=this.horiz,o=this.left+(n?this.width:0)+i;return i=e.chartHeight-this.bottom-(n?this.height:0)+i,n&&(t*=-1),e.renderer.crispLine([["M",r?this.left:o,r?i:this.top],["L",r?e.chartWidth-this.right:o,r?i:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,n=this.top,i=this.len,r=this.options.title,o=t?e:n,a=this.opposite,s=this.offset,l=r.x,c=r.y,d=this.axisTitle,u=this.chart.renderer.fontMetrics(r.style.fontSize,d);return d=Math.max(d.getBBox(null,0).height-u.h-1,0),i={low:o+(t?0:i),middle:o+i/2,high:o+(t?i:0)}[r.align],e=(t?n+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+[-d,d,u.f,-d][this.side],t={x:t?i+l:e+(a?this.width:0)+s+l,y:t?e+c-(a?this.height:0)+s:i+c},_(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var n=this.minorTicks;n[t]||(n[t]=new a(this,t,"minor")),e&&n[t].isNew&&n[t].render(null,!0),n[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,n){var i=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(i[t]||(i[t]=new a(this,t)),n&&i[t].isNew&&i[t].render(e,!0,-1),i[t].render(e))},t.prototype.render=function(){var t,e,n=this,i=n.chart,r=n.logarithmic,s=n.options,c=n.isLinked,d=n.tickPositions,u=n.axisTitle,h=n.ticks,p=n.minorTicks,f=n.alternateBands,g=s.stackLabels,m=s.alternateGridColor,v=n.tickmarkOffset,y=n.axisLine,b=n.showAxis,x=l(i.renderer.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[h,p,f].forEach((function(t){E(t,(function(t){t.isActive=!1}))})),n.hasData()||c){var O=n.chart.hasRendered&&n.old&&C(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t,O)})),d.length&&(d.forEach((function(t,e){n.renderTick(t,e,O)})),v&&(0===n.min||n.single)&&(h[-1]||(h[-1]=new a(n,-1,null,!0)),h[-1].render(-1))),m&&d.forEach((function(a,s){e=void 0!==d[s+1]?d[s+1]+v:n.max-v,0==s%2&&a<n.max&&e<=n.max+(i.polar?-v:v)&&(f[a]||(f[a]=new o.PlotLineOrBand(n)),t=a+v,f[a].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:m,className:"highcharts-alternate-grid"},f[a].render(),f[a].isActive=!0)})),n._addedPlotLB||(n._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach((function(t){n.addPlotBandOrLine(t)})))}[h,p,f].forEach((function(t){var e=[],n=x.duration;E(t,(function(t,n){t.isActive||(t.render(n,!1,0),t.isActive=!1,e.push(n))})),T((function(){for(var n=e.length;n--;)t[e[n]]&&!t[e[n]].isActive&&(t[e[n]].destroy(),delete t[e[n]])}),t!==f&&i.hasRendered&&n?n:0)})),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[b?"show":"hide"](b)),u&&b&&(s=n.getTitlePosition(),C(s.y)?(u[u.isNew?"attr":"animate"](s),u.isNew=!1):(u.attr("y",-9999),u.isNew=!0)),g&&g.enabled&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,_(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,n=e.plotLinesAndBands,i=this.eventOptions;if(_(this,"destroy",{keepEvents:t}),t||P(e),[e.ticks,e.minorTicks,e.alternateBands].forEach((function(t){v(t)})),n)for(t=n.length;t--;)n[t].destroy();for(var r in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){e[t]&&(e[t]=e[t].destroy())})),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[r]=e.plotLinesAndBandsGroups[r].destroy();E(e,(function(t,n){-1===e.getKeepProps().indexOf(n)&&delete e[n]})),this.eventOptions=i},t.prototype.drawCrosshair=function(t,e){var i,r=this.crosshair,o=j(r&&r.snap,!0),a=this.chart,s=this.cross;if(_(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),r&&!1!==(m(e)||!o)){if(o?m(e)&&(i=j("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):i=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),m(i)){var l={value:e&&(this.isXAxis?e.x:j(e.stackY,e.y)),translatedValue:i};a.polar&&x(l,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),l=this.getPlotLinePath(l)||null}if(!m(l))return void this.hideCrosshair();o=this.categories&&!this.isRadial,s||(this.cross=s=a.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(o?"category ":"thin ")+(r.className||"")).attr({zIndex:j(r.zIndex,2)}).add(),a.styledMode||(s.attr({stroke:r.color||(o?n.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":j(r.width,1)}).css({"pointer-events":"none"}),r.dashStyle&&s.attr({dashstyle:r.dashStyle}))),s.show().attr({d:l}),o&&!r.width&&s.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();_(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),_(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return C(t)&&0<t},t.prototype.update=function(t,e){var n=this.chart;t=k(this.userOptions,t),this.destroy(!0),this.init(n,t),n.isDirtyBox=!0,j(e,!0)&&n.redraw()},t.prototype.remove=function(t){for(var e=this.chart,n=this.coll,i=this.series,r=i.length;r--;)i[r]&&i[r].remove(!1);y(e.axes,this),y(e[n],this),e[n].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,j(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}()})),e(n,"Core/Axis/DateTimeAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.getMagnitude,r=t.normalizeTickInterval,o=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function a(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new l(this))}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,n(t,"init",a)),t};var l=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=n[n.length-1];var a,s=o[e[0]],l=e[1];for(a=0;a<n.length&&(e=n[a],s=o[e[0]],l=e[1],!(n[a+1]&&t<=(s*l[l.length-1]+o[n[a+1][0]])/2));a++);return s===o.year&&t<5*s&&(l=[1,2,5]),{unitRange:s,count:t=r(t/s,l,"year"===e[0]?Math.max(i(t/s),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var n=this.axis;return n.closestPointRange?n.chart.time.getDateFormat(n.closestPointRange,t,n.options.startOfWeek,e)||e.year:e.day},t}();t.Additions=l}(e||(e={})),e})),e(n,"Core/Axis/LogarithmicAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.addEvent,i=t.getMagnitude,r=t.normalizeTickInterval,o=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new l(this))}function a(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.keepProps.push("logarithmic"),n(t,"init",e),n(t,"afterInit",a)),t};var l=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,n,a){var s=this.axis,l=s.len,c=s.options,d=[];if(a||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),d=s.getLinearTickPositions(t,e,n);else if(.08<=t){var u,h=Math.floor(e),p=c=void 0;for(l=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];h<n+1&&!p;h++){var f=l.length;for(u=0;u<f&&!p;u++){var g=this.log2lin(this.lin2log(h)*l[u]);g>e&&(!a||c<=n)&&void 0!==c&&d.push(c),c>n&&(p=!0),c=g}}}else e=this.lin2log(e),n=this.lin2log(n),t=a?s.getMinorTickInterval():c.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,c.tickPixelInterval/(a?5:1)*(n-e)/((a?l/s.tickPositions.length:l)||1)),t=r(t,void 0,i(t)),d=s.getLinearTickPositions(t,e,n).map(this.log2lin),a||(this.minorAutoInterval=t/5);return a||(s.tickInterval=t),d},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=l}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.erase,i=t.extend,r=t.isNumber;return function(t){var e,o=[];t.compose=function(t,n){return e||(e=t),-1===o.indexOf(n)&&(o.push(n),i(n.prototype,a.prototype)),n};var a=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,n){void 0===n&&(n=this.options);var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),o=[],a=this.horiz;if(e=!r(this.min)||!r(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),n=1,t&&i){if(e){var s=t.toString()===i.toString();n=0}for(e=0;e<t.length;e+=2){var l=t[e],c=t[e+1],d=i[e],u=i[e+1];"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==d[0]&&"L"!==d[0]||"M"!==u[0]&&"L"!==u[0]||(a&&d[1]===l[1]?(d[1]+=n,u[1]+=n):a||d[2]!==l[2]||(d[2]+=n,u[2]+=n),o.push(["M",l[1],l[2]],["L",c[1],c[2]],["L",u[1],u[2]],["L",d[1],d[2]],["Z"])),o.isFlat=s}}return o},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,n){var i=this,r=this.userOptions,o=new e(this,t);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach((function(t){i.addPlotBandOrLine(t)}))),n){var a=r[n]||[];a.push(t),r[n]=a}this.plotLinesAndBands.push(o)}return o},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,i=this.options,r=this.userOptions;if(e){for(var o=e.length;o--;)e[o].id===t&&e[o].destroy();[i.plotLines||[],r.plotLines||[],i.plotBands||[],r.plotBands||[]].forEach((function(e){for(o=e.length;o--;)(e[o]||{}).id===t&&n(e,e[o])}))}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[n["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.arrayMax,i=e.arrayMin,r=e.defined,o=e.destroyObjectProperties,a=e.erase,s=e.fireEvent,l=e.merge,c=e.objectEach,d=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(n){return t.compose(e,n)},e.prototype.render=function(){s(this,"render");var t=this,e=t.axis,n=e.horiz,i=e.logarithmic,o=t.options,a=o.color,u=d(o.zIndex,0),h=o.events,p={},f=e.chart.renderer,g=o.label,m=t.label,v=o.to,y=o.from,b=o.value,x=t.svgElem,_=[],O=r(y)&&r(v);_=r(b);var w=!x,C={class:"highcharts-plot-"+(O?"band ":"line ")+(o.className||"")},$=O?"bands":"lines";if(i&&(y=i.log2lin(y),v=i.log2lin(v),b=i.log2lin(b)),e.chart.styledMode||(_?(C.stroke=a||"#999999",C["stroke-width"]=d(o.width,1),o.dashStyle&&(C.dashstyle=o.dashStyle)):O&&(C.fill=a||"#e6ebf5",o.borderWidth&&(C.stroke=o.borderColor,C["stroke-width"]=o.borderWidth))),p.zIndex=u,$+="-"+u,(i=e.plotLinesAndBandsGroups[$])||(e.plotLinesAndBandsGroups[$]=i=f.g("plot-"+$).attr(p).add()),w&&(t.svgElem=x=f.path().attr(C).add(i)),_)_=e.getPlotLinePath({value:b,lineWidth:x.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!O)return;_=e.getPlotBandPath(y,v,o)}return!t.eventsAdded&&h&&(c(h,(function(e,n){x.on(n,(function(e){h[n].apply(t,[e])}))})),t.eventsAdded=!0),(w||!x.d)&&_&&_.length?x.attr({d:_}):x&&(_?(x.show(!0),x.animate({d:_})):x.d&&(x.hide(),m&&(t.label=m=m.destroy()))),g&&(r(g.text)||r(g.formatter))&&_&&_.length&&0<e.width&&0<e.height&&!_.isFlat?(g=l({align:n&&O&&"center",x:n?!O&&4:10,verticalAlign:!n&&O&&"middle",y:n?O?16:10:O?6:-4,rotation:n&&!O&&90},g),this.renderLabel(g,_,O,u)):m&&m.hide(),t},e.prototype.renderLabel=function(t,e,r,o){var a=this.axis,s=a.chart.renderer,c=this.label;c||(this.label=c=s.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(r?"band":"line")+"-label "+(t.className||""),zIndex:o}).add(),a.chart.styledMode||c.css(l({textOverflow:"ellipsis"},t.style))),o=e.xBounds||[e[0][1],e[1][1],r?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],r?e[2][2]:e[0][2]],r=i(o),s=i(e),c.align(t,!1,{x:r,y:s,width:n(o)-r,height:n(e)-s}),c.alignValue&&"left"!==c.alignValue||c.css({width:(90===c.rotation?a.height-(c.alignAttr.y-a.top):a.width-(c.alignAttr.x-a.left))+"px"}),c.show(!0)},e.prototype.getLabelText=function(t){return r(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){a(this.axis.plotLinesAndBands,this),delete this.axis,o(this)},e}()})),e(n,"Core/Tooltip.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=t.format,a=e.doc,s=n.distribute,l=r.addEvent,c=r.clamp,d=r.css,u=r.defined,h=r.discardElement,p=r.extend,f=r.fireEvent,g=r.isArray,m=r.isNumber,v=r.isString,y=r.merge,b=r.pick,x=r.splat,_=r.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))},t.prototype.cleanSplit=function(t){this.chart.series.forEach((function(e){var n=e&&e.tt;n&&(!n.isActive||t?e.tt=n.destroy():n.isActive=!1)}))},t.prototype.defaultFormatter=function(t){var e=this.points||x(this),n=[t.tooltipFooterHeaderFormatter(e[0])];return(n=n.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),n},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),h(this.container)),r.clearTimeout(this.hideTimer),r.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var n,i,r=this.chart,o=r.pointer,a=r.inverted,s=r.plotTop,l=r.plotLeft,c=0,d=0;return t=x(t),this.followPointer&&e?(void 0===e.chartX&&(e=o.normalize(e)),o=[e.chartX-l,e.chartY-s]):t[0].tooltipPos?o=t[0].tooltipPos:(t.forEach((function(t){n=t.series.yAxis,i=t.series.xAxis,c+=t.plotX||0,d+=t.plotLow?(t.plotLow+(t.plotHigh||0))/2:t.plotY||0,i&&n&&(a?(c+=s+r.plotHeight-i.len-i.pos,d+=l+r.plotWidth-n.len-n.pos):(c+=i.pos-l,d+=n.pos-s))})),c/=t.length,d/=t.length,o=[a?r.plotWidth-d:c,a?r.plotHeight-c:d],this.shared&&1<t.length&&e&&(a?o[0]=e.chartX-l:o[1]=e.chartY-s)),o.map(Math.round)},t.prototype.getLabel=function(){var t,n=this,r=this.chart.styledMode,o=this.options,a=this.split&&this.allowShared,s="tooltip"+(u(o.className)?" "+o.className:""),c=o.style.pointerEvents||(!this.followPointer&&o.stickOnContact?"auto":"none"),h=function(){n.inContact=!0},p=function(t){var e=n.chart.hoverSeries;n.inContact=n.shouldStickOnContact()&&n.chart.pointer.inClass(t.relatedTarget,"highcharts-tooltip"),!n.inContact&&e&&e.onMouseOut&&e.onMouseOut()},f=this.chart.renderer;if(n.label){var g=!n.label.hasClass("highcharts-label");(a&&!g||!a&&g)&&n.destroy()}if(!this.label){if(this.outside){g=this.chart.options.chart.style;var m=i.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",d(t,{position:"absolute",top:"1px",pointerEvents:c,zIndex:Math.max(this.options.style.zIndex||0,(g&&g.zIndex||0)+3)}),l(t,"mouseenter",h),l(t,"mouseleave",p),e.doc.body.appendChild(t),this.renderer=f=new m(t,0,0,g,void 0,void 0,f.styledMode)}if(a?this.label=f.g(s):(this.label=f.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,s).attr({padding:o.padding,r:o.borderRadius}),r||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth}).css(o.style).css({pointerEvents:c}).shadow(o.shadow)),r&&o.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),n.outside&&!n.split){var v=this.label,y=v.xSetter,b=v.ySetter;v.xSetter=function(e){y.call(v,n.distance),t.style.left=e+"px"},v.ySetter=function(e){b.call(v,n.distance),t.style.top=e+"px"}}this.label.on("mouseenter",h).on("mouseleave",p).attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,n){var i,r=this.chart,o=this.distance,s={},l=r.inverted&&n.h||0,c=this.outside,d=c?a.documentElement.clientWidth-2*o:r.chartWidth,u=c?Math.max(a.body.scrollHeight,a.documentElement.scrollHeight,a.body.offsetHeight,a.documentElement.offsetHeight,a.documentElement.clientHeight):r.chartHeight,h=r.pointer.getChartPosition(),p=function(i){var a="x"===i;return[i,a?d:u,a?t:e].concat(c?[a?t*h.scaleX:e*h.scaleY,a?h.left-o+(n.plotX+r.plotLeft)*h.scaleX:h.top-o+(n.plotY+r.plotTop)*h.scaleY,0,a?d:u]:[a?t:e,a?n.plotX+r.plotLeft:n.plotY+r.plotTop,a?r.plotLeft:r.plotTop,a?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},f=p("y"),g=p("x");p=!!n.negative,!r.polar&&r.hoverSeries&&r.hoverSeries.yAxis&&r.hoverSeries.yAxis.reversed&&(p=!p);var m=!this.followPointer&&b(n.ttBelow,!r.inverted===p),v=function(t,e,n,i,r,a,d){var u=c?"y"===t?o*h.scaleY:o*h.scaleX:o,p=(n-i)/2,f=i<r-o,g=r+o+i<e,v=r-u-n+p;if(r=r+u-p,m&&g)s[t]=r;else if(!m&&f)s[t]=v;else if(f)s[t]=Math.min(d-i,0>v-l?v:v-l);else{if(!g)return!1;s[t]=Math.max(a,r+l+n>e?r:r+l)}},y=function(t,e,n,i,r){var a;return r<o||r>e-o?a=!1:s[t]=r<n/2?1:r>e-i/2?e-i-2:r-n/2,a},x=function(t){var e=f;f=g,g=e,i=t},_=function(){!1!==v.apply(0,f)?!1!==y.apply(0,g)||i||(x(!0),_()):i?s.x=s.y=0:(x(!0),_())};return(r.inverted||1<this.len)&&x(),_(),s},t.prototype.hide=function(t){var e=this;r.clearTimeout(this.hideTimer),t=b(t,this.options.hideDelay),this.isHidden||(this.hideTimer=_((function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0}),t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=b(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)},t.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)},t.prototype.move=function(t,e,n,i){var o=this,a=o.now,s=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(t-a.x)||1<Math.abs(e-a.y)),l=o.followPointer||1<o.len;p(a,{x:s?(2*a.x+t)/3:t,y:s?(a.y+e)/2:e,anchorX:l?void 0:s?(2*a.anchorX+n)/3:n,anchorY:l?void 0:s?(a.anchorY+i)/2:i}),o.getLabel().attr(a),o.drawTracker(),s&&(r.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){o&&o.move(t,e,n,i)}),32))},t.prototype.refresh=function(t,e){var n=this.chart,i=this.options,o=x(t),a=o[0],s=[],l=i.formatter||this.defaultFormatter,c=this.shared,d=n.styledMode,u={};if(i.enabled){r.clearTimeout(this.hideTimer),this.allowShared=!(!g(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var h=(t=this.getAnchor(t,e))[0],p=t[1];if(c&&this.allowShared?(n.pointer.applyInactiveState(o),o.forEach((function(t){t.setState("hover"),s.push(t.getLabelConfig())})),(u={x:a.category,y:a.y}).points=s):u=a.getLabelConfig(),this.len=s.length,l=l.call(u,this),c=a.series,this.distance=b(c.tooltipOptions.distance,16),!1===l)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(l,o);else{var m=h,v=p;if(e&&n.pointer.isDirectTouch&&(m=e.chartX-n.plotLeft,v=e.chartY-n.plotTop),!n.polar&&!1!==c.options.clip&&!o.some((function(t){return t.series.shouldShowTooltip(m,v)})))return void this.hide();e=this.getLabel(),i.style.width&&!d||e.css({width:this.chart.spacingBox.width+"px"}),e.attr({text:l&&l.join?l.join(""):l}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+b(a.colorIndex,c.colorIndex)),d||e.attr({stroke:i.borderColor||a.color||c.color||"#666666"}),this.updatePosition({plotX:h,plotY:p,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}f(this,"refresh")}},t.prototype.renderSplit=function(t,e){function n(t,e,n,r,o){return void 0===o&&(o=!0),n?(e=j?0:T,t=c(t-r/2,k.left,k.right-r-(i.outside?A:0))):(e-=P,t=c(t=o?t-r-w:t+w,o?t:k.left,k.right)),{x:t,y:e}}var i=this,r=i.chart,o=i.chart,l=o.chartWidth,d=o.chartHeight,u=o.plotHeight,h=o.plotLeft,f=o.plotTop,g=o.pointer,m=o.scrollablePixelsY;m=void 0===m?0:m;var y=o.scrollablePixelsX,x=o.scrollingContainer,_=(x=void 0===x?{scrollLeft:0,scrollTop:0}:x).scrollLeft;x=x.scrollTop;var O=o.styledMode,w=i.distance,C=i.options,$=i.options.positioner,k=i.outside&&"number"!=typeof y?a.documentElement.getBoundingClientRect():{left:_,right:_+l,top:x,bottom:x+d},S=i.getLabel(),E=this.renderer||r.renderer,j=!(!r.xAxis[0]||!r.xAxis[0].opposite),A=(r=g.getChartPosition()).left;r=r.top;var P=f+x,M=0,T=u-m;v(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce((function(t,r,o){if(!1!==r&&""!==r){var a=(o=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:u,series:{}}).isHeader,s=a?i:o.series;r=r.toString();var l=s.tt,d=o.isHeader,p=o.series,g="highcharts-color-"+b(o.colorIndex,p.colorIndex,"none");if(l||(l={padding:C.padding,r:C.borderRadius},O||(l.fill=C.backgroundColor,l["stroke-width"]=C.borderWidth),l=E.label("",0,0,C[d?"headerShape":"shape"],void 0,void 0,C.useHTML).addClass((d?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+g).attr(l).add(S)),l.isActive=!0,l.attr({text:r}),O||l.css(C.style).shadow(C.shadow).attr({stroke:C.borderColor||o.color||p.color||"#333333"}),r=(d=(s=s.tt=l).getBBox()).width+s.strokeWidth(),a&&(M=d.height,T+=M,j&&(P-=M)),p=void 0===(p=o.plotX)?0:p,g=void 0===(g=o.plotY)?0:g,l=o.series,o.isHeader){p=h+p;var m=f+u/2}else{var v=l.xAxis,y=l.yAxis;p=v.pos+c(p,-w,v.len+w),l.shouldShowTooltip(0,y.pos-f+g,{ignoreX:!0})&&(m=y.pos+g)}p=c(p,k.left-w,k.right+w),"number"==typeof m?(d=d.height+1,g=$?$.call(i,r,d,o):n(p,m,a,r),t.push({align:$?0:void 0,anchorX:p,anchorY:m,boxWidth:r,point:o,rank:b(g.rank,a?1:0),size:d,target:g.y,tt:s,x:g.x})):s.isActive=!1}return t}),[]),!$&&t.some((function(t){var e=(i.outside?A:0)+t.anchorX;return e<k.left&&e+t.boxWidth<k.right||e<A-k.left+t.boxWidth&&k.right-e>e}))&&(t=t.map((function(t){var e=n(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return p(t,{target:e.y,x:e.x})}))),i.cleanSplit(),s(t,T);var L=A,D=A;t.forEach((function(t){var e=t.x,n=t.boxWidth;(t=t.isHeader)||(i.outside&&A+e<L&&(L=A+e),!t&&i.outside&&L+n>D&&(D=A+e))})),t.forEach((function(t){var e=t.x,n=t.anchorX,r=t.pos,o=t.point.isHeader;if(r={visibility:void 0===r?"hidden":"inherit",x:e,y:r+P,anchorX:n,anchorY:t.anchorY},i.outside&&e<n){var a=A-L;0<a&&(o||(r.x=e+a,r.anchorX=n+a),o&&(r.x=(D-L)/2,r.anchorX=n+a))}t.tt.attr(r)})),t=i.container,m=i.renderer,i.outside&&t&&m&&(o=S.getBBox(),m.setSize(o.width+o.x,o.height+o.y,!1),t.style.left=L+"px",t.style.top=r+"px")},t.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,n=this.shared?t.hoverPoints:t.hoverPoint;if(e&&n){var i={x:0,y:0,width:0,height:0};n=this.getAnchor(n);var r=e.getBBox();n[0]+=t.plotLeft-e.translateX,n[1]+=t.plotTop-e.translateY,i.x=Math.min(0,n[0]),i.y=Math.min(0,n[1]),i.width=0>n[0]?Math.max(Math.abs(n[0]),r.width-n[0]):Math.max(Math.abs(n[0]),r.width),i.height=0>n[1]?Math.max(Math.abs(n[1]),r.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),r.height),this.tracker?this.tracker.attr(i):(this.tracker=e.renderer.rect(i).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var n=t.series,i=n.tooltipOptions,r=n.xAxis,a=r&&r.dateTime;r={isFooter:e,labelConfig:t};var s=i.xDateFormat,l=i[e?"footerFormat":"headerFormat"];return f(this,"headerFormatter",r,(function(e){a&&!s&&m(t.key)&&(s=a.getXDateFormat(t.key,i.dateTimeLabelFormats)),a&&s&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){l=l.replace("{point."+t+"}","{point."+t+":"+s+"}")})),n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=o(l,{point:t,series:n},this.chart)})),r.text},t.prototype.update=function(t){this.destroy(),y(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,y(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,n=this.options,i=e.pointer,r=this.getLabel();i=i.getChartPosition();var o=(n.positioner||this.getPosition).call(this,r.width,r.height,t),a=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(r.width+n,r.height+n,!1),1===i.scaleX&&1===i.scaleY||(d(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),a*=i.scaleX,t*=i.scaleY),a+=i.left-o.x,t+=i.top-o.y),this.move(Math.round(o.x),Math.round(o.y||0),a,t)},t}()})),e(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=e.animObject,a=n.defaultOptions,s=i.format,l=r.addEvent,c=r.defined,d=r.erase,u=r.extend,h=r.fireEvent,p=r.getNestedProperty,f=r.isArray,g=r.isFunction,m=r.isNumber,v=r.isObject,y=r.merge,b=r.objectEach,x=r.pick,_=r.syncTimeout,O=r.removeEvent,w=r.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},n=t.getGraphicalProps();n.singular.forEach((function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)})),n.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(u({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,n){var i=this.series,r=i.options.pointValKey||i.pointValKey;return t=e.prototype.optionsToObject.call(this,t),u(this,t),this.options=this.options?u(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,r&&(this.y=e.prototype.getNestedProperty.call(this,r)),this.formatPrefix=(this.isNull=x(this.isValid&&!this.isValid(),null===this.x||!m(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===n&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=void 0===n?i.autoIncrement():n:m(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(r in(e.graphic||e.dataLabel||e.dataLabels)&&(O(e),e.destroyElements()),e)e[r]=null}var e=this,n=e.series,i=n.chart;n=n.options.dataSorting;var r,a=i.hoverPoints,s=o(e.series.chart.renderer.globalAnimation);e.legendItem&&i.legend.destroyItem(e),a&&(e.setState(),d(a,e),a.length||(i.hoverPoints=null)),e===i.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),_(t,s.duration)):t(),i.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,n){var i=this,r=this.series.options;(r.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&i.importEvents(),"click"===t&&r.allowPointSelect&&(n=function(t){i.select&&i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),h(i,t,e,n)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,n=this,i=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&i.push("dataLabel","dataLabelUpper","connector"),e=i.length;e--;){var o=i[e];n[o]&&r.singular.push(o)}return["dataLabel","connector"].forEach((function(e){var i=e+"s";t[e]&&n[i]&&r.plural.push(i)})),r},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?p(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var n,i=0;for(n=e[i];this[t]>=n.value;)n=e[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=c(this.id)?this.id:w(),this.resolveColor(),t.chart.pointCount++,h(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var n=this.series,i=n.options.keys,r=i||n.pointArrayMap||["y"],o=r.length,a={},s=0,l=0;if(m(t)||null===t)a[r[0]]=t;else if(f(t))for(!i&&t.length>o&&("string"===(n=typeof t[0])?a.name=t[0]:"number"===n&&(a.x=t[0]),s++);l<o;)i&&void 0===t[s]||(0<r[l].indexOf(".")?e.prototype.setNestedProperty(a,t[s],r[l]):a[r[l]]=t[s]),s++,l++;else"object"==typeof t&&(a=t,t.dataLabels&&(n._hasPointLabels=!0),t.marker&&(n._hasPointMarkers=!0));return a},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,n=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var i=(n=t.options.colors||t.chart.options.colors)[t.colorCounter];n=n.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===n&&(t.colorCounter=0)}else e||(i=t.color),e=t.colorIndex;this.colorIndex=x(this.options.colorIndex,e),this.color=x(this.options.color,i)},e.prototype.setNestedProperty=function(t,e,n){return n.split(".").reduce((function(t,n,i,r){return t[n]=r.length-1===i?e:v(t[n],!0)?t[n]:{},t[n]}),t),t},e.prototype.tooltipFormatter=function(t){var e=this.series,n=e.tooltipOptions,i=x(n.valueDecimals,""),r=n.valuePrefix||"",o=n.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach((function(e){e="{point."+e,(r||o)&&(t=t.replace(RegExp(e+"}","g"),r+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+i+"f}")})),s(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,n,i){function r(){a.applyOptions(t);var i=l&&a.hasDummyGraphic;i=null===a.y?!i:i,l&&i&&(a.graphic=l.destroy(),delete a.hasDummyGraphic),v(t,!0)&&(l&&l.element&&t&&t.marker&&void 0!==t.marker.symbol&&(a.graphic=l.destroy()),t&&t.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),o=a.index,s.updateParallelArrays(a,o),d.data[o]=v(d.data[o],!0)||v(t,!0)?a.options:x(t,d.data[o]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(c.isDirtyBox=!0),"point"===d.legendType&&(c.isDirtyLegend=!0),e&&c.redraw(n)}var o,a=this,s=a.series,l=a.graphic,c=s.chart,d=s.options;e=x(e,!0),!1===i?r():a.firePointEvent("update",{options:t},r)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var n=this,i=n.series,r=i.chart;this.selectedStaging=t=x(t,!n.selected),n.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){n.selected=n.options.selected=t,i.options.data[i.data.indexOf(n)]=n.options,n.setState(t&&"select"),e||r.getSelectedPoints().forEach((function(t){var e=t.series;t.selected&&t!==n&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,n=e.pointer;t=t?n.normalize(t):n.getChartCoordinatesFromPoint(this,e.inverted),n.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=y(t.series.options.point,t.options).events;t.events=e,b(e,(function(e,n){g(e)&&l(t,n,e)})),this.hasImportedEvents=!0}},e.prototype.setState=function(e,n){var i,r=this.series,o=this.state,s=r.options.states[e||"normal"]||{},l=a.plotOptions[r.type].marker&&r.options.marker,c=l&&!1===l.enabled,d=l&&l.states&&l.states[e||"normal"]||{},p=!1===d.enabled,f=this.marker||{},g=r.chart,v=l&&r.markerAttribs,y=r.halo,b=r.stateMarkerGraphic;if(!((e=e||"")===this.state&&!n||this.selected&&"select"!==e||!1===s.enabled||e&&(p||c&&!1===d.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)){if(this.state=e,v&&(i=r.markerAttribs(this,e)),this.graphic&&!this.hasDummyGraphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){var _=r.pointAttribs(this,e),O=x(g.options.chart.animation,s.animation);r.options.inactiveOtherPoints&&m(_.opacity)&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:_.opacity},O)})),this.connector&&this.connector.animate({opacity:_.opacity},O)),this.graphic.animate(_,O)}i&&this.graphic.animate(i,x(g.options.chart.animation,d.animation,l.animation)),b&&b.hide()}else e&&d&&(o=f.symbol||r.symbol,b&&b.currentSymbol!==o&&(b=b.destroy()),i&&(b?b[n?"animate":"attr"]({x:i.x,y:i.y}):o&&(r.stateMarkerGraphic=b=g.renderer.symbol(o,i.x,i.y,i.width,i.height).add(r.markerGroup),b.currentSymbol=o)),!g.styledMode&&b&&"inactive"!==this.state&&b.attr(r.pointAttribs(this,e))),b&&(b[e&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));s=s.halo,i=(b=this.graphic||b)&&b.visibility||"inherit",s&&s.size&&b&&"hidden"!==i&&!this.isCluster?(y||(r.halo=y=g.renderer.path().add(b.parentGroup)),y.show()[n?"animate":"attr"]({d:this.haloPath(s.size)}),y.attr({class:"highcharts-halo highcharts-color-"+x(this.colorIndex,r.colorIndex)+(this.className?" "+this.className:""),visibility:i,zIndex:-1}),y.point=this,g.styledMode||y.attr(u({fill:this.color||r.color,"fill-opacity":s.opacity},t.filterUserAttributes(s.attributes||{})))):y&&y.point&&y.point.haloPath&&y.animate({d:y.point.haloPath(0)},null,y.hide),h(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)},e}()})),e(n,"Core/Pointer.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Tooltip.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=t.parse,o=e.charts,a=e.noop,s=i.addEvent,l=i.attr,c=i.css,d=i.defined,u=i.extend,h=i.find,p=i.fireEvent,f=i.isNumber,g=i.isObject,m=i.objectEach,v=i.offset,y=i.pick,b=i.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,n=[];(t||[]).forEach((function(t){e=t.series,n.push(e),e.linkedParent&&n.push(e.linkedParent),e.linkedSeries&&(n=n.concat(e.linkedSeries)),e.navigatorSeries&&n.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===n.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var n=this;this.eventsToUnbind.forEach((function(t){return t()})),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),m(n,(function(t,e){n[e]=void 0}))},t.prototype.drag=function(t){var e=this.chart,n=e.options.chart,i=this.zoomHor,o=this.zoomVert,a=e.plotLeft,s=e.plotTop,l=e.plotWidth,c=e.plotHeight,d=this.mouseDownX||0,u=this.mouseDownY||0,h=g(n.panning)?n.panning&&n.panning.enabled:n.panning,p=n.panKey&&t[n.panKey+"Key"],f=t.chartX,m=t.chartY,v=this.selectionMarker;if((!v||!v.touch)&&(f<a?f=a:f>a+l&&(f=a+l),m<s?m=s:m>s+c&&(m=s+c),this.hasDragged=Math.sqrt(Math.pow(d-f,2)+Math.pow(u-m,2)),10<this.hasDragged)){var y=e.isInsidePlot(d-a,u-s,{visiblePlotOnly:!0});!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!y||p||v||(this.selectionMarker=v=e.renderer.rect(a,s,i?1:l,o?1:c,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||v.attr({fill:n.selectionMarkerFill||r("#335cad").setOpacity(.25).get()})),v&&i&&(i=f-d,v.attr({width:Math.abs(i),x:(0<i?0:i)+d})),v&&o&&(i=m-u,v.attr({height:Math.abs(i),y:(0<i?0:i)+u})),y&&!v&&h&&e.pan(t,n.panning)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.drop=function(t){var e=this,n=this.chart,i=this.hasPinched;if(this.selectionMarker){var r=this.selectionMarker,o=r.attr?r.attr("x"):r.x,a=r.attr?r.attr("y"):r.y,s=r.attr?r.attr("width"):r.width,l=r.attr?r.attr("height"):r.height,h={originalEvent:t,xAxis:[],yAxis:[],x:o,y:a,width:s,height:l},g=!!n.mapView;(this.hasDragged||i)&&(n.axes.forEach((function(n){if(n.zoomEnabled&&d(n.min)&&(i||e[{xAxis:"zoomX",yAxis:"zoomY"}[n.coll]])&&f(o)&&f(a)){var r=n.horiz,c="touchend"===t.type?n.minPixelPadding:0,u=n.toValue((r?o:a)+c);r=n.toValue((r?o+s:a+l)-c),h[n.coll].push({axis:n,min:Math.min(u,r),max:Math.max(u,r)}),g=!0}})),g&&p(n,"selection",h,(function(t){n.zoom(u(t,i?{animation:!1}:null))}))),f(n.index)&&(this.selectionMarker=this.selectionMarker.destroy()),i&&this.scaleGroups()}n&&f(n.index)&&(c(n.container,{cursor:n._cursor}),n.cancelClick=10<this.hasDragged,n.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,n){var i,r=this.chart,o=r.hoverPoint;return r=r.tooltip,o&&r&&r.isStickyOnContact()?o:(t.forEach((function(t){var r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,r),(r=g(t,!0)&&t.series)&&!(r=!g(i,!0))){r=i.distX-t.distX;var o=i.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(i.series.group&&i.series.group.zIndex);r=0<(0!==r&&e?r:0!==o?o:0!==a?a:i.series.index>t.series.index?-1:1)}r&&(i=t)})),i)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,i=n.xAxis;n=n.yAxis;var r=t.shapeArgs;if(i&&n){var o=y(t.clientX,t.plotX),a=t.plotY||0;return t.isNode&&r&&f(r.x)&&f(r.y)&&(o=r.x,a=r.y),e?{chartX:n.len+n.pos-a,chartY:i.len+i.pos-o}:{chartX:o+i.pos,chartY:a+n.pos}}if(r&&r.x&&r.y)return{chartX:r.x,chartY:r.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=v(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var n=t.offsetWidth;return t=t.offsetHeight,2<n&&2<t&&(this.chartPosition.scaleX=e.width/n,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,n,i,r,o){var a=[];i=!(!i||!t);var s={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:r};p(this,"beforeGetHoverData",s);var l=e&&!e.stickyTracking?[e]:n.filter((function(t){return s.filter?s.filter(t):t.visible&&!(!r&&t.directTouch)&&y(t.options.enableMouseTracking,!0)&&t.stickyTracking})),c=i||!o?t:this.findNearestKDPoint(l,r,o);return e=c&&c.series,c&&(r&&!e.noSharedTooltip?(l=n.filter((function(t){return s.filter?s.filter(t):t.visible&&!(!r&&t.directTouch)&&y(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}))).forEach((function(t){var e=h(t.points,(function(t){return t.x===c.x&&!t.isNull}));g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))})):a.push(c)),p(this,"afterGetHoverData",s={hoverPoint:c}),{hoverPoint:s.hoverPoint,hoverSeries:e,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var n;t;){if(n=l(t,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},n&&(t.tooltip=new n(t,e.tooltip),this.followTouchMove=y(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var n=t.touches,i=n?n.length?n.item(0):y(n.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),n=i.pageX-e.left,i=i.pageY-e.top,n/=e.scaleX,i/=e.scaleY,u(t,{chartX:Math.round(n),chartY:Math.round(i)})},t.prototype.onContainerClick=function(t){var e=this.chart,n=e.hoverPoint;t=this.normalize(t);var i=e.plotLeft,r=e.plotTop;e.cancelClick||(n&&this.inClass(t.target,"highcharts-tracker")?(p(n.series,"click",u(t,{point:n})),e.hoverPoint&&n.firePointEvent("click",t)):(u(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-i,t.chartY-r,{visiblePlotOnly:!0})&&p(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var n=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||n)&&(this.zoomOption(t),n&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var n=o[y(t.hoverChartIndex,-1)],i=this.chart.tooltip;i&&i.shouldStickOnContact()&&this.inClass(e.relatedTarget,"highcharts-tooltip-container")||(e=this.normalize(e),n&&(e.relatedTarget||e.toElement)&&(n.pointer.reset(),n.pointer.chartPosition=void 0),i&&!i.isHidden&&this.reset())},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var n=o[y(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,n=this.chartPosition;t=this.normalize(t,n);var i=e.tooltip;!n||i&&i.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var n=o[y(t.hoverChartIndex,-1)];n&&n.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,n=e.chart,i=e.pinchDown,r=t.touches||[],o=r.length,s=e.lastValidTouch,l=e.hasZoom,c={},d=1===o&&(e.inClass(t.target,"highcharts-tracker")&&n.runTrackerClick||e.runChartClick),h={},f=e.selectionMarker;1<o?e.initiated=!0:1===o&&this.followTouchMove&&(e.initiated=!1),l&&e.initiated&&!d&&!1!==t.cancelable&&t.preventDefault(),[].map.call(r,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(r,(function(t,e){i[e]={chartX:t.chartX,chartY:t.chartY}})),s.x=[i[0].chartX,i[1]&&i[1].chartX],s.y=[i[0].chartY,i[1]&&i[1].chartY],n.axes.forEach((function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,r=t.toPixels(Math.min(y(t.options.min,t.dataMin),t.dataMin)),o=t.toPixels(Math.max(y(t.options.max,t.dataMax),t.dataMax)),a=Math.max(r,o);e.min=Math.min(t.pos,Math.min(r,o)-i),e.max=Math.max(t.pos+t.len,a+i)}})),e.res=!0):e.followTouchMove&&1===o?this.runPointActions(e.normalize(t)):i.length&&(p(n,"touchpan",{originalEvent:t},(function(){f||(e.selectionMarker=f=u({destroy:a,touch:!0},n.plotBox)),e.pinchTranslate(i,r,c,f,h,s),e.hasPinched=l,e.scaleGroups(c,h)})),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,n,i,r,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,n,i,r,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,n,i,r,o)},t.prototype.pinchTranslateDirection=function(t,e,n,i,r,o,a,s){var l=this.chart,c=t?"x":"y",d=t?"X":"Y",u="chart"+d,h=t?"width":"height",p=l["plot"+(t?"Left":"Top")],f=l.inverted,g=l.bounds[t?"h":"v"],m=1===e.length,v=e[0][u],y=!m&&e[1][u];e=function(){"number"==typeof w&&20<Math.abs(v-y)&&(_=s||Math.abs(O-w)/Math.abs(v-y)),x=(p-O)/_+v,b=l["plot"+(t?"Width":"Height")]/_};var b,x,_=s||1,O=n[0][u],w=!m&&n[1][u];if(e(),(n=x)<g.min){n=g.min;var C=!0}else n+b>g.max&&(n=g.max-b,C=!0);C?(O-=.8*(O-a[c][0]),"number"==typeof w&&(w-=.8*(w-a[c][1])),e()):a[c]=[O,w],f||(o[c]=x-p,o[h]=b),o=f?1/_:_,r[h]=b,r[c]=n,i[f?t?"scaleY":"scaleX":"scale"+d]=_,i["translate"+d]=o*p+(O-o*v)},t.prototype.reset=function(t,e){var n=this.chart,i=n.hoverSeries,r=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,s=a&&a.shared?o:r;t&&s&&b(s).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?a&&s&&b(s).length&&(a.refresh(s),a.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):r&&(r.setState(r.state,!0),n.axes.forEach((function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)})))):(r&&r.onMouseOut(),o&&o.forEach((function(t){t.setState()})),i&&i.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=n.hoverPoints=n.hoverPoint=null)},t.prototype.runPointActions=function(e,n){var i=this.chart,r=i.tooltip&&i.tooltip.options.enabled?i.tooltip:void 0,a=!!r&&r.shared,l=n||i.hoverPoint,c=l&&l.series||i.hoverSeries;l=(n=this.getHoverData(l,c,i.series,(!e||"touchmove"!==e.type)&&(!!n||c&&c.directTouch&&this.isDirectTouch),a,e)).hoverPoint,c=n.hoverSeries;var d=n.hoverPoints;if(n=c&&c.tooltipOptions.followPointer&&!c.tooltipOptions.split,a=a&&c&&!c.noSharedTooltip,l&&(l!==i.hoverPoint||r&&r.isHidden)){if((i.hoverPoints||[]).forEach((function(t){-1===d.indexOf(t)&&t.setState()})),i.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(d),(d||[]).forEach((function(t){t.setState("hover")})),i.hoverPoint&&i.hoverPoint.firePointEvent("mouseOut"),!l.series)return;i.hoverPoints=d,i.hoverPoint=l,l.firePointEvent("mouseOver"),r&&r.refresh(a?d:l,e)}else n&&r&&!r.isHidden&&(l=r.getAnchor([{}],e),i.isInsidePlot(l[0],l[1],{visiblePlotOnly:!0})&&r.updatePosition({plotX:l[0],plotY:l[1]}));this.unDocMouseMove||(this.unDocMouseMove=s(i.container.ownerDocument,"mousemove",(function(e){var n=o[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),i.axes.forEach((function(t){var n,r=y((t.crosshair||{}).snap,!0);r&&((n=i.hoverPoint)&&n.series[t.coll]===t||(n=h(d,(function(e){return e.series[t.coll]===t})))),n||!r?t.drawCrosshair(e,n):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var n=this.chart;n.series.forEach((function(i){var r=t||i.getPlotBox();i.group&&(i.xAxis&&i.xAxis.zoomEnabled||n.mapView)&&(i.group.attr(r),i.markerGroup&&(i.markerGroup.attr(r),i.markerGroup.clip(e?n.clipRect:null)),i.dataLabelsGroup&&i.dataLabelsGroup.attr(r))})),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var n=this,i=this.chart.container,r=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(s(i,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(s(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=s(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(s(o,"scroll",(function(){delete n.chartPosition}))),o=o.parentElement;e.hasTouch&&(this.eventsToUnbind.push(s(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(s(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=s(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var n=this.chart,i=e.charts[y(t.hoverChartIndex,-1)];i&&i!==n&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(t.hoverChartIndex=n.index)},t.prototype.touch=function(t,e){var n=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var i=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));y(i,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,n=e.options.chart;e=e.inverted;var i=n.zoomType||"";/touch/.test(t.type)&&(i=y(n.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=n=/y/.test(i),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}()})),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e,n){function i(){var t=[];return t.item=function(t){return this[t]},h(f,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function r(t,n,r,o){var s=a[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,o(t),s[n]({type:r,target:t.currentTarget,preventDefault:l,touches:i()}))}var o=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=t.charts,s=t.doc,l=t.noop,c=t.win,d=n.addEvent,u=n.css,h=n.objectEach,p=n.removeEvent,f={},g=!!c.PointerEvent;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.isRequired=function(){return!(t.hasTouch||!c.PointerEvent&&!c.MSPointerEvent)},n.prototype.batchMSEvents=function(t){t(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(s,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(p),e.prototype.destroy.call(this)},n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this.hasZoom&&u(t.container,{"-ms-touch-action":"none","touch-action":"none"})},n.prototype.onContainerPointerDown=function(t){r(t,"onContainerTouchStart","touchstart",(function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},n.prototype.onContainerPointerMove=function(t){r(t,"onContainerTouchMove","touchmove",(function(t){f[t.pointerId]={pageX:t.pageX,pageY:t.pageY},f[t.pointerId].target||(f[t.pointerId].target=t.currentTarget)}))},n.prototype.onDocumentPointerUp=function(t){r(t,"onDocumentTouchEnd","touchend",(function(t){delete f[t.pointerId]}))},n.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(d)},n}(e)})),e(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=t.animObject,s=t.setAnimation,l=e.format;t=n.isFirefox;var c=n.marginNames;n=n.win;var d=r.distribute,u=o.addEvent,h=o.createElement,p=o.css,f=o.defined,g=o.discardElement,m=o.find,v=o.fireEvent,y=o.isNumber,b=o.merge,x=o.pick,_=o.relativeLength,O=o.stableSort,w=o.syncTimeout;return r=o.wrap,o=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),u(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=u(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=b(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var n=this.chart;this.setOptions(b(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,x(e,!0)&&n.redraw(),v(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options,i=t.legendItem,r=t.legendLine,o=t.legendSymbol,a=this.itemHiddenStyle.color;n=e?n.itemStyle.color:a;var s=e&&t.color||a,l=t.options&&t.options.marker,c={fill:s};i&&i.css({fill:n,color:n}),r&&r.attr({stroke:s}),o&&(l&&o.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=a)),o.attr(c))}v(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,n=this.options,i=n.symbolPadding,r=!n.rtl,o=t._legendItemPos;n=o[0],o=o[1];var a=t.checkbox,s=t.legendGroup;s&&s.element&&(i={translateX:r?n:this.legendWidth-n-2*i-4,translateY:o},r=function(){v(e,"afterPositionItem",{item:t})},f(s.translateY)?s.animate(i,void 0,r):(s.attr(i),r())),a&&(a.x=n,a.y=o)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&g(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,n=this.titleHeight;if(t){var i=t.translateY;this.allItems.forEach((function(r){var o=r.checkbox;if(o){var a=i+n+o.y+(this.scrollOffset||0)+3;p(o,{left:t.translateX+r.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>i-6&&a<i+e-6?"":"none"})}}),this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,n=t.title,i=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),i=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},t.prototype.setText=function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?l(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,n=e.renderer,i=this.options,r=this.symbolWidth,o=i.symbolPadding||0,a=this.itemStyle,s=this.itemHiddenStyle,l="horizontal"===i.layout?x(i.itemDistance,20):0,c=!i.rtl,d=!t.series,u=!d&&t.series.drawLegendSymbol?t.series:t,h=u.options,p=this.createCheckboxForItem&&h&&h.showCheckbox,f=i.useHTML,g=t.options.className,m=t.legendItem;h=r+o+l+(p?20:0),m||(t.legendGroup=n.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(g?" "+g:"")+(d?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=m=n.text("",c?r+o:-o,this.baseline||0,f),e.styledMode||m.css(b(t.visible?a:s)),m.attr({align:c?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=n.fontMetrics(e.styledMode?12:a.fontSize,m),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,m.attr("y",this.baseline),this.symbolHeight=i.symbolHeight||this.fontMetrics.f,i.squareSymbol&&(this.symbolWidth=x(i.symbolWidth,Math.max(this.symbolHeight,16)),h=this.symbolWidth+o+l+(p?20:0),c&&m.attr("x",this.symbolWidth+o))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,m,f)),p&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&a.width||m.css({width:(i.itemWidth||this.widthOption||e.spacingBox.width)-h+"px"}),this.setText(t),e=m.getBBox(),n=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=i.itemWidth||t.legendItemWidth||e.width+h,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||(e.height>1.5*n?e.height:n))},t.prototype.layoutItem=function(t){var e=this.options,n=this.padding,i="horizontal"===e.layout,r=t.itemHeight,o=this.itemMarginBottom,a=this.itemMarginTop,s=i?x(e.itemDistance,20):0,l=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,i&&this.itemX-n+e>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],i?this.itemX+=e:(this.itemY+=a+r+o,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-n-(t.checkbox?0:s):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var n=e&&e.options;e&&x(n.showInLegend,!f(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),v(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var n=this.chart,i=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,a){o.test(r)&&!f(t[a])&&(n[c[a]]=Math.max(n[c[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*i[a%2?"x":"y"]+x(i.margin,12)+e[a]+(n.titleOffset[a]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],n="left"===this.options.align;this.allItems.forEach((function(i){var r,o=n;if(i.yAxis){i.xAxis.options.reversed&&(o=!o),i.points&&(r=m(o?i.points:i.points.slice(0).reverse(),(function(t){return y(t.plotY)}))),o=this.itemMarginTop+i.legendItem.getBBox().height+this.itemMarginBottom;var a=i.yAxis.top-t.plotTop;i.visible?(r=r?r.plotY:i.yAxis.height,r+=a-.3*o):r=a+i.yAxis.height,e.push({target:r,size:o,item:i})}}),this),d(e,t.plotHeight).forEach((function(e){e.item._legendItemPos&&(e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos)}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.options,i=this.padding,r=this.getAllItems(),o=this.group,a=this.box;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=_(n.width,t.spacingBox.width-i);var s=t.spacingBox.width-2*i-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,o||(this.group=o=e.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(o),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),O(r,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&r.reverse(),this.allItems=r,this.display=s=!!r.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),r=(this.widthOption||this.offsetWidth)+i;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=i,a||(this.box=a=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(o),a.isNew=!0),t.styledMode||a.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0<r&&0<l&&(a[a.isNew?"attr":"animate"](a.crisp.call({},{x:0,y:0,width:r,height:l},a.strokeWidth())),a.isNew=!1),a[s?"show":"hide"](),t.styledMode&&"none"===o.getStyle("display")&&(r=l=0),this.legendWidth=r,this.legendHeight=l,s&&this.align(),this.proximate||this.positionItems(),v(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,n=this.options,i=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?i+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(i-=e.titleOffset[2]),i!==t.y&&(t=b(t,{y:i})),this.group.align(b(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,n,i=this,r=this.chart,o=r.renderer,a=this.options,s=a.y,l="top"===a.verticalAlign,c=this.padding,d=a.maxHeight,u=a.navigation,h=x(u.animation,!0),p=u.arrowSize||12,f=this.pages,g=this.allItems,m=function(t){"number"==typeof t?b.attr({height:t}):b&&(i.clipRect=b.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=t?"rect("+c+"px,9999px,"+(c+t)+"px,0)":"auto")},v=function(t){return i[t]=o.circle(0,0,1.3*p).translate(p/2,p/2).add(y),r.styledMode||i[t].attr("fill","rgba(0,0,0,0.0001)"),i[t]};s=r.spacingBox.height+(l?-s:s)-c;var y=this.nav,b=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(s/=2),d&&(s=Math.min(s,d)),f.length=0,t&&0<s&&t>s&&!1!==u.enabled?(this.clipHeight=e=Math.max(s-20-this.titleHeight-c,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,g.forEach((function(t,i){var r=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),a=f.length;(!a||r-f[a-1]>e&&(n||r)!==f[a-1])&&(f.push(n||r),a++),t.pageIx=a-1,n&&(g[i-1].pageIx=a-1),i===g.length-1&&r+o-f[a-1]>e&&o<=e&&(f.push(r),t.pageIx=a),r!==n&&(n=r)})),b||(b=i.clipRect=o.clipRect(0,c,9999,0),i.contentGroup.clip(b)),m(e),y||(this.nav=y=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,p,p).add(y),v("upTracker").on("click",(function(){i.scroll(-1,h)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),r.styledMode||this.pager.css(u.style),this.pager.add(y),this.down=o.symbol("triangle-down",0,0,p,p).add(y),v("downTracker").on("click",(function(){i.scroll(1,h)}))),i.scroll(0),t=s):y&&(m(),this.nav=y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,i=this.chart,r=this.pages,o=r.length,l=this.clipHeight,c=this.options.navigation,d=this.pager,u=this.padding,h=this.currentPage+t;h>o&&(h=o),0<h&&(void 0!==e&&s(e,i),this.nav.attr({translateX:u,translateY:l+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),d.attr({text:h+"/"+o}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:h===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),i.styledMode||(this.up.attr({fill:1===h?c.inactiveColor:c.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===o?c.inactiveColor:c.activeColor}),this.downTracker.css({cursor:h===o?"default":"pointer"})),this.scrollOffset=-r[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),t=a(x(e,i.renderer.globalAnimation,!0)),w((function(){v(n,"afterScroll",{currentPage:h})}),t.duration))},t.prototype.setItemEvents=function(t,e,n){var r=this,o=r.chart.renderer.boxWrapper,a=t instanceof i,s="highcharts-legend-"+(a?"point":"series")+"-active",l=r.chart.styledMode,c=function(e){r.allItems.forEach((function(n){t!==n&&[n].concat(n.linkedSeries||[]).forEach((function(t){t.setState(e,!a)}))}))};(n?[e,t.legendSymbol]:[t.legendGroup]).forEach((function(n){n&&n.on("mouseover",(function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&o.addClass(s),l||e.css(r.options.itemHoverStyle)})).on("mouseout",(function(){r.chart.styledMode||e.css(b(t.visible?r.itemStyle:r.itemHiddenStyle)),c(""),o.removeClass(s),t.setState()})).on("click",(function(e){var n=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};o.removeClass(s),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,n):v(t,"legendItemClick",e,n)}))}))},t.prototype.createCheckboxForItem=function(t){t.checkbox=h("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),u(t.checkbox,"click",(function(e){v(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))},t}(),(/Trident\/7\.0/.test(n.navigator&&n.navigator.userAgent)||t)&&r(o.prototype,"positionItem",(function(t,e){var n=this,i=function(){e._legendItemPos&&t.call(n,e)};i(),n.bubbleLegend||setTimeout(i)})),o})),e(n,"Core/Series/SeriesRegistry.js",[n["Core/Globals.js"],n["Core/DefaultOptions.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r,o=e.defaultOptions,a=i.error,s=i.extendClass,l=i.merge;return function(e){function i(t,i){var r=o.plotOptions||{},a=i.defaultOptions;i.prototype.pointClass||(i.prototype.pointClass=n),i.prototype.type=t,a&&(r[t]=a),e.seriesTypes[t]=i}e.seriesTypes=t.seriesTypes,e.getSeries=function(t,n){void 0===n&&(n={});var i=t.options.chart;i=n.type||i.type||i.defaultSeriesType||"";var r=e.seriesTypes[i];return e||a(17,!0,t,{missingModuleFor:i}),"function"==typeof(i=new r).init&&i.init(t,n),i},e.registerSeriesType=i,e.seriesType=function(t,r,a,c,d){var u=o.plotOptions||{};return r=r||"",u[t]=l(u[r],a),i(t,s(e.seriesTypes[r]||function(){},c)),e.seriesTypes[t].prototype.type=t,d&&(e.seriesTypes[t].prototype.pointClass=s(n,d)),e.seriesTypes[t]}}(r||(r={})),r})),e(n,"Core/Chart/Chart.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/FormatUtilities.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/Legend.js"],n["Core/MSPointer.js"],n["Core/DefaultOptions.js"],n["Core/Pointer.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Time.js"],n["Core/Utilities.js"],n["Core/Renderer/HTML/AST.js"]],(function(t,e,n,i,r,o,a,s,l,c,d,u,h,p,f){var g=t.animate,m=t.animObject,v=t.setAnimation,y=n.numberFormat,b=i.registerEventOptions,x=r.charts,_=r.doc,O=r.marginNames,w=r.svg,C=r.win,$=s.defaultOptions,k=s.defaultTime,S=d.seriesTypes,E=p.addEvent,j=p.attr,A=p.cleanRecursively,P=p.createElement,M=p.css,T=p.defined,L=p.discardElement,D=p.erase,I=p.error,N=p.extend,R=p.find,F=p.fireEvent,B=p.getStyle,z=p.isArray,W=p.isNumber,H=p.isObject,U=p.isString,Y=p.merge,G=p.objectEach,V=p.pick,X=p.pInt,q=p.relativeLength,K=p.removeEvent,Z=p.splat,J=p.syncTimeout,Q=p.uniqueKey;return t=function(){function t(t,e,n){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,n)}return t.chart=function(e,n,i){return new t(e,n,i)},t.prototype.getArgs=function(t,e,n){U(t)||t.nodeName?(this.renderTo=t,this.init(e,n)):this.init(t,e)},t.prototype.init=function(t,e){var n=t.plotOptions||{};F(this,"init",{args:arguments},(function(){var i=Y($,t),o=i.chart;G(i.plotOptions,(function(t,e){H(t)&&(t.tooltip=n[e]&&Y(n[e].tooltip)||void 0)})),i.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new h(t.time):r.time,this.numberFormatter=o.numberFormatter||y,this.styledMode=o.styledMode,this.hasCartesianSeries=o.showAxes,this.index=x.length,x.push(this),r.chartCount++,b(this,o),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,F(this,"afterInit"),this.firstRender()}))},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var n=S[e];return n||I(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new n).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var n=e.length;t<n;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,n){void 0===n&&(n={});var i=this.inverted,r=this.plotBox,o=this.plotLeft,a=this.plotTop,s=this.scrollablePlotBox,l=0,c=0;n.visiblePlotOnly&&this.scrollingContainer&&(l=(c=this.scrollingContainer).scrollLeft,c=c.scrollTop);var d=n.series;if(r=n.visiblePlotOnly&&s||r,t={x:s=n.inverted?e:t,y:e=n.inverted?t:e,isInsidePlot:!0},!n.ignoreX){var u=d&&(i?d.yAxis:d.xAxis)||{pos:o,len:1/0};(s=n.paneCoordinates?u.pos+s:o+s)>=Math.max(l+o,u.pos)&&s<=Math.min(l+o+r.width,u.pos+u.len)||(t.isInsidePlot=!1)}return!n.ignoreY&&t.isInsidePlot&&(i=d&&(i?d.xAxis:d.yAxis)||{pos:a,len:1/0},(n=n.paneCoordinates?i.pos+e:a+e)>=Math.max(c+a,i.pos)&&n<=Math.min(c+a+r.height,i.pos+i.len)||(t.isInsidePlot=!1)),F(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){F(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,i=this.pointer,r=this.legend,o=this.userOptions.legend,a=this.renderer,s=a.isHidden(),l=[],c=this.isDirtyBox,d=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),v(!!this.hasRendered&&t,this),s&&this.temporaryDisplay(),this.layOutTitles(),t=n.length;t--;){var u=n[t];if(u.options.stacking||u.options.centerInCategory){var h=!0;if(u.isDirty){var p=!0;break}}}if(p)for(t=n.length;t--;)(u=n[t]).options.stacking&&(u.isDirty=!0);n.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),d=!0):o&&(o.labelFormatter||o.labelFormat)&&(d=!0)),t.isDirtyData&&F(t,"updatedData")})),d&&r&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),h&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(c=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,l.push((function(){F(t,"afterSetExtremes",N(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(c||h)&&t.redraw()})),c&&this.drawChartBox(),F(this,"predraw"),n.forEach((function(t){(c||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),i&&i.reset(!0),a.draw(),F(this,"redraw"),F(this,"render"),s&&this.temporaryDisplay(!0),l.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var n=this.series,i=R(this.axes,e)||R(this.series,e),r=0;!i&&r<n.length;r++)i=R(n[r].points||[],e);return i},t.prototype.getAxes=function(){var t=this,n=this.options,i=n.xAxis=Z(n.xAxis||{});n=n.yAxis=Z(n.yAxis||{}),F(this,"getAxes"),i.forEach((function(t,e){t.index=e,t.isX=!0})),n.forEach((function(t,e){t.index=e})),i.concat(n).forEach((function(n){new e(t,n)})),F(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce((function(t,e){return e.getPointsCollection().forEach((function(e){V(e.selectedStaging,e.selected)&&t.push(e)})),t}),[])},t.prototype.getSelectedSeries=function(){return this.series.filter((function(t){return t.selected}))},t.prototype.setTitle=function(t,e,n){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(n)},t.prototype.applyDescription=function(t,e){var n=this,i="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};i=this.options[t]=Y(!this.styledMode&&{style:i},this.options[t],e);var r=this[t];r&&e&&(this[t]=r=r.destroy()),i&&!r&&((r=this.renderer.text(i.text,0,0,i.useHTML).attr({align:i.align,class:"highcharts-"+t,zIndex:i.zIndex||4}).add()).update=function(e){n[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||r.css(i.style),this[t]=r)},t.prototype.layOutTitles=function(t){var e=[0,0,0],n=this.renderer,i=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var r,o=this[t],a=this.options[t],s=a.verticalAlign||"top";if(t="title"===t?"top"===s?-3:0:"top"===s?e[0]+2:0,o){this.styledMode||(r=a.style&&a.style.fontSize),r=n.fontMetrics(r,o).b,o.css({width:(a.width||i.width+(a.widthAdjust||0))+"px"});var l=Math.round(o.getBBox(a.useHTML).height);o.align(N({y:"bottom"===s?r:t+r,height:l},a),!1,"spacingBox"),a.floating||("top"===s?e[0]=Math.ceil(e[0]+l):"bottom"===s&&(e[2]=Math.ceil(e[2]+l)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,F(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&V(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var n=this.renderTo;T(e)||(this.containerWidth=B(n,"width")),T(t)||(this.containerHeight=B(n,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,q(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(M(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(_.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(_.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,_.body.appendChild(e)),("none"===B(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),M(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==_.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,n=e.chart,i=Q(),r=this.renderTo;r||(this.renderTo=r=n.renderTo),U(r)&&(this.renderTo=r=_.getElementById(r)),r||I(13,!0,this);var o=X(j(r,"data-highcharts-chart"));W(o)&&x[o]&&x[o].hasRendered&&x[o].destroy(),j(r,"data-highcharts-chart",this.index),r.innerHTML=f.emptyHTML,n.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize(),o=this.chartWidth;var a=this.chartHeight;if(M(r,{overflow:"hidden"}),this.styledMode||(t=N({position:"relative",overflow:"hidden",width:o+"px",height:a+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},n.style||{})),this.container=i=P("div",{id:i},t,r),this._cursor=i.style.cursor,this.renderer=new(n.renderer||!w?c.getRendererType(n.renderer):u)(i,o,a,void 0,n.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),v(void 0,this),this.setClassName(n.className),this.styledMode)for(var s in e.defs)this.renderer.definition(e.defs[s]);else this.renderer.setStyle(n.style);this.renderer.chartIndex=this.index,F(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,n=this.margin,i=this.titleOffset;this.resetMargins(),i[0]&&!T(n[0])&&(this.plotTop=Math.max(this.plotTop,i[0]+e[0])),i[2]&&!T(n[2])&&(this.marginBottom=Math.max(this.marginBottom,i[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,e),F(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],n=t.colorAxis,i=t.margin,r=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?r(t.axes):n&&n.length&&r(n),O.forEach((function(n,r){T(i[r])||(t[n]+=e[r])})),t.setChartSize()},t.prototype.reflow=function(t){var e=this,n=e.options.chart,i=e.renderTo,r=T(n.width)&&T(n.height),o=n.width||B(i,"width");n=n.height||B(i,"height"),i=t?t.target:C,delete e.pointer.chartPosition,r||e.isPrinting||!o||!n||i!==C&&i!==_||(o===e.containerWidth&&n===e.containerHeight||(p.clearTimeout(e.reflowTimeout),e.reflowTimeout=J((function(){e.container&&e.setSize(void 0,void 0,!1)}),t?100:0)),e.containerWidth=o,e.containerHeight=n)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=E(C,"resize",(function(t){e.options&&e.reflow(t)})),E(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,n){var i=this,r=i.renderer;i.isResizing+=1,v(n,i),n=r.globalAnimation,i.oldChartHeight=i.chartHeight,i.oldChartWidth=i.chartWidth,void 0!==t&&(i.options.chart.width=t),void 0!==e&&(i.options.chart.height=e),i.getChartSize(),i.styledMode||(n?g:M)(i.container,{width:i.chartWidth+"px",height:i.chartHeight+"px"},n),i.setChartSize(!0),r.setSize(i.chartWidth,i.chartHeight,n),i.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),i.isDirtyLegend=!0,i.isDirtyBox=!0,i.layOutTitles(),i.getMargins(),i.redraw(n),i.oldChartHeight=null,F(i,"resize"),J((function(){i&&F(i,"endResize",null,(function(){--i.isResizing}))}),m(n).duration)},t.prototype.setChartSize=function(t){var e,n,i,r,o=this.inverted,a=this.renderer,s=this.chartWidth,l=this.chartHeight,c=this.options.chart,d=this.spacing,u=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=i=Math.max(0,Math.round(s-e-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(l-n-this.marginBottom)),this.plotSizeX=o?r:i,this.plotSizeY=o?i:r,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=a.spacingBox={x:d[3],y:d[0],width:s-d[3]-d[1],height:l-d[0]-d[2]},this.plotBox=a.plotBox={x:e,y:n,width:i,height:r},o=2*Math.floor(this.plotBorderWidth/2),s=Math.ceil(Math.max(o,u[3])/2),l=Math.ceil(Math.max(o,u[0])/2),this.clipBox={x:s,y:l,width:Math.floor(this.plotSizeX-Math.max(o,u[1])/2-s),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(o,u[2])/2-l))},t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),a.alignElements()),F(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){F(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(n){var i=e[n],r=H(i)?i:[i,i,i,i];["Top","Right","Bottom","Left"].forEach((function(i,o){t[n][o]=V(e[n+i],r[o])}))})),O.forEach((function(e,n){t[e]=V(t.margin[n],t.spacing[n])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,n=this.renderer,i=this.chartWidth,r=this.chartHeight,o=this.styledMode,a=this.plotBGImage,s=e.backgroundColor,l=e.plotBackgroundColor,c=e.plotBackgroundImage,d=this.plotLeft,u=this.plotTop,h=this.plotWidth,p=this.plotHeight,f=this.plotBox,g=this.clipRect,m=this.clipBox,v=this.chartBackground,y=this.plotBackground,b=this.plotBorder,x="animate";if(v||(this.chartBackground=v=n.rect().addClass("highcharts-background").add(),x="attr"),o)var _=t=v.strokeWidth();else t=(_=e.borderWidth||0)+(e.shadow?8:0),s={fill:s||"none"},(_||v["stroke-width"])&&(s.stroke=e.borderColor,s["stroke-width"]=_),v.attr(s).shadow(e.shadow);v[x]({x:t/2,y:t/2,width:i-t-_%2,height:r-t-_%2,r:e.borderRadius}),x="animate",y||(x="attr",this.plotBackground=y=n.rect().addClass("highcharts-plot-background").add()),y[x](f),o||(y.attr({fill:l||"none"}).shadow(e.plotShadow),c&&(a?(c!==a.attr("href")&&a.attr("href",c),a.animate(f)):this.plotBGImage=n.image(c,d,u,h,p).add())),g?g.animate({width:m.width,height:m.height}):this.clipRect=n.clipRect(m),x="animate",b||(x="attr",this.plotBorder=b=n.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),o||b.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),b[x](b.crisp({x:d,y:u,width:h,height:p},-b.strokeWidth())),this.isDirtyBox=!1,F(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,n,i=this,r=i.options.chart,o=i.options.series;["inverted","angular","polar"].forEach((function(a){for(e=S[r.type||r.defaultSeriesType],n=r[a]||e&&e.prototype[a],t=o&&o.length;!n&&t--;)(e=S[o[t].type])&&e.prototype[a]&&(n=!0);i[a]=n}))},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var n=e.options.linkedTo;U(n)&&(n=":previous"===n?t.series[e.index-1]:t.get(n))&&n.linkedParent!==e&&(n.linkedSeries.push(e),e.linkedParent=n,n.enabledDataSorting&&e.setDataSortingOptions(),e.visible=V(e.options.visible,n.options.visible,e.visible))})),F(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach((function(t){t.translate(),t.render()}))},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(n){var i=N(e.style,n.style),r=X(i.left)+t.plotLeft,o=X(i.top)+t.plotTop+12;delete i.left,delete i.top,t.renderer.text(n.html,r,o).attr({zIndex:2}).css(i).add()}))},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,n=this.renderer,i=this.options,r=function(t){t.forEach((function(t){t.visible&&t.render()}))},a=0;this.setTitle(),this.legend=new o(this,i.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),i=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return a=21,!0}));var s=this.plotHeight=Math.max(this.plotHeight-a,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var l=1.1<i/this.plotWidth,c=1.05<s/this.plotHeight;(l||c)&&(t.forEach((function(t){(t.horiz&&l||!t.horiz&&c)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?r(t):e&&e.length&&r(e),this.seriesGroup||(this.seriesGroup=n.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,n=Y(!0,this.options.credits,t);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){n.href&&(C.location.href=n.href)})).attr({align:n.position.align,zIndex:8}),e.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,n=e.axes,i=e.series,o=e.container,a=o&&o.parentNode;for(F(e,"destroy"),e.renderer.forExport?D(x,e):x[e.index]=void 0,r.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),K(e),t=n.length;t--;)n[t]=n[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=i.length;t--;)i[t]=i[t].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var n=e[t];n&&n.destroy&&(e[t]=n.destroy())})),o&&(o.innerHTML=f.emptyHTML,K(o),a&&L(o)),G(e,(function(t,n){delete e[n]}))},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(z(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSeriesData(),F(t,"beforeRender"),l&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new l(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),F(this,"load"),F(this,"render"),T(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},t.prototype.addSeries=function(t,e,n){var i,r=this;return t&&(e=V(e,!0),F(r,"addSeries",{options:t},(function(){i=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),i.enabledDataSorting&&i.setData(t.data,!1),F(r,"afterAddSeries",{series:i}),e&&r.redraw(n)}))),i},t.prototype.addAxis=function(t,e,n,i){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:n,animation:i})},t.prototype.addColorAxis=function(t,e,n){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:n})},t.prototype.createAxis=function(t,n){return t=new e(this,Y(n.axis,{index:this[t].length,isX:"xAxis"===t})),V(n.redraw,!0)&&this.redraw(n.animation),t},t.prototype.showLoading=function(t){var e=this,n=e.options,i=n.loading,r=function(){o&&M(o,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},o=e.loadingDiv,a=e.loadingSpan;o||(e.loadingDiv=o=P("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),a||(e.loadingSpan=a=P("span",{className:"highcharts-loading-inner"},null,o),E(e,"redraw",r)),o.className="highcharts-loading",f.setElementHTML(a,V(t,n.lang.loading,"")),e.styledMode||(M(o,N(i.style,{zIndex:10})),M(a,i.labelStyle),e.loadingShown||(M(o,{opacity:0,display:""}),g(o,{opacity:i.style.opacity||.5},{duration:i.showDuration||0}))),e.loadingShown=!0,r()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){M(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,n,i){var r,o,a=this,s={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,c=[];F(a,"update",{options:t}),l||a.setResponsive(!1,!0),t=A(t,a.options),a.userOptions=Y(a.userOptions,t);var d=t.chart;if(d){if(Y(!0,a.options.chart,d),"className"in d&&a.setClassName(d.className),"reflow"in d&&a.setReflow(d.reflow),"inverted"in d||"polar"in d||"type"in d){a.propFromSeries();var u=!0}"alignTicks"in d&&(u=!0),"events"in d&&b(this,d),G(d,(function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(r=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(l?a.isDirtyBox=!0:o=!0)})),!a.styledMode&&d.style&&a.renderer.setStyle(a.options.chart.style||{})}!a.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===k&&(this.time=new h(t.time)),Y(!0,a.options.time,t.time)),G(t,(function(e,n){a[n]&&"function"==typeof a[n].update?a[n].update(e,!1):"function"==typeof a[s[n]]?a[s[n]](e):"colors"!==n&&-1===a.collectionsWithUpdate.indexOf(n)&&Y(!0,a.options[n],t[n]),"chart"!==n&&-1!==a.propsRequireUpdateSeries.indexOf(n)&&(r=!0)})),this.collectionsWithUpdate.forEach((function(e){if(t[e]){var i=[];a[e].forEach((function(t,e){t.options.isInternal||i.push(V(t.options.index,e))})),Z(t[e]).forEach((function(t,r){var o,s=T(t.id);s&&(o=a.get(t.id)),!o&&a[e]&&(o=a[e][i?i[r]:r])&&s&&T(o.options.id)&&(o=void 0),o&&o.coll===e&&(o.update(t,!1),n&&(o.touched=!0)),!o&&n&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)})),n&&a[e].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:c.push(t)}))}})),c.forEach((function(t){t.chart&&t.remove&&t.remove(!1)})),u&&a.axes.forEach((function(t){t.update({},!1)})),r&&a.getSeriesOrderByLinks().forEach((function(t){t.chart&&t.update({},!1)}),this),u=d&&d.width,d=d&&(U(d.height)?q(d.height,u||a.chartWidth):d.height),o||W(u)&&u!==a.chartWidth||W(d)&&d!==a.chartHeight?a.setSize(u,d,i):V(e,!0)&&a.redraw(i),F(a,"afterUpdate",{options:t,redraw:e,animation:i})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,n=$.lang,i=e.options.chart.resetZoomButton,r=i.theme,o=r.states,a="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"scrollablePlotBox";F(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(n.resetZoom,null,null,t,r,o&&o.hover).attr({align:i.position.align,title:n.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,a)})),F(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){F(this,"selection",{resetSelection:!0},this.zoom)},t.prototype.zoom=function(t){var e,n=this,i=n.pointer,r=n.inverted?i.mouseDownX:i.mouseDownY,o=!1;!t||t.resetSelection?(n.axes.forEach((function(t){e=t.zoom()})),i.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var a=t.axis,s=n.inverted?a.left:a.top,l=n.inverted?s+a.width:s+a.height,c=a.isXAxis,d=!1;(!c&&r>=s&&r<=l||c||!T(r))&&(d=!0),i[c?"zoomX":"zoomY"]&&d&&(e=a.zoom(t.min,t.max),a.displayBtn&&(o=!0))}));var a=n.resetZoomButton;o&&!a?n.showResetZoom():!o&&H(a)&&(n.resetZoomButton=a.destroy()),e&&n.redraw(V(n.options.chart.animation,t&&t.animation,100>n.pointCount))},t.prototype.pan=function(t,e){var n=this,i=n.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var r=n.options.chart,o=n.options.mapNavigation&&n.options.mapNavigation.enabled;r&&r.panning&&(r.panning=e);var a,s=e.type;F(this,"pan",{originalEvent:t},(function(){i&&i.forEach((function(t){t.setState()}));var e=n.xAxis;"xy"===s?e=e.concat(n.yAxis):"y"===s&&(e=n.yAxis);var r={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var i=e.horiz,l=t[i?"chartX":"chartY"],c=n[i=i?"mouseDownX":"mouseDownY"],d=e.minPointOffset||0,u=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,h=e.getExtremes(),p=e.toValue(c-l,!0)+d*u,f=e.toValue(c+e.len-l,!0)-(d*u||e.isXAxis&&e.pointRangePadding||0),g=f<p;u=e.hasVerticalPanning(),c=g?f:p,p=g?p:f;var m=e.panningState;!u||e.isXAxis||m&&!m.isDirty||e.series.forEach((function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),m||(m={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),W(e.dataMin)&&W(e.dataMax)&&(m.startMin=Math.min(V(t.options.threshold,1/0),e.dataMin,m.startMin),m.startMax=Math.max(V(t.options.threshold,-1/0),e.dataMax,m.startMax))})),u=Math.min(V(m&&m.startMin,h.dataMin),d?h.min:e.toValue(e.toPixels(h.min)-e.minPixelPadding)),f=Math.max(V(m&&m.startMax,h.dataMax),d?h.max:e.toValue(e.toPixels(h.max)+e.minPixelPadding)),e.panningState=m,e.isOrdinal||(0<(d=u-c)&&(p+=d,c=u),0<(d=p-f)&&(p=f,c-=d),e.series.length&&c!==h.min&&p!==h.max&&c>=u&&p<=f&&(e.setExtremes(c,p,!1,!1,{trigger:"pan"}),n.resetZoomButton||o||c===u||p===f||!s.match("y")||(n.showResetZoom(),e.displayBtn=!1),a=!0),r[i]=l)}})),G(r,(function(t,e){n[e]=t})),a&&n.redraw(!1),M(n.container,{cursor:"move"})}))},t}(),N(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.merge,i=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.options,r=t.symbolWidth,o=t.symbolHeight,a=o/2,s=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={},d=e.marker;this.chart.styledMode||(c={"stroke-width":e.lineWidth||0},e.dashStyle&&(c.dashstyle=e.dashStyle)),this.legendLine=s.path([["M",0,t],["L",r,t]]).addClass("highcharts-graph").attr(c).add(l),d&&!1!==d.enabled&&r&&(e=Math.min(i(d.radius,a),a),0===this.symbol.indexOf("url")&&(d=n(d,{width:o,height:o}),e=0),this.legendSymbol=r=s.symbol(this.symbol,r/2-e,t-e,2*e,2*e,d).addClass("highcharts-point").add(l),r.isMarker=!0)},t.drawRectangle=function(t,e){var n=t.symbolHeight,r=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(r?(t.symbolWidth-n)/2:0,t.baseline-n+1,r?n:t.symbolWidth,n,i(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}}(e||(e={})),e})),e(n,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l,c){var d=t.animObject,u=t.setAnimation,h=e.defaultOptions,p=n.registerEventOptions,f=i.hasTouch,g=i.svg,m=i.win,v=s.seriesTypes,y=c.addEvent,b=c.arrayMax,x=c.arrayMin,_=c.clamp,O=c.cleanRecursively,w=c.correctFloat,C=c.defined,$=c.erase,k=c.error,S=c.extend,E=c.find,j=c.fireEvent,A=c.getNestedProperty,P=c.isArray,M=c.isNumber,T=c.isString,L=c.merge,D=c.objectEach,I=c.pick,N=c.removeEvent,R=c.splat,F=c.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){j(this,"init",{options:e});var n=this,i=t.series;this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e),e=n.options,n.linkedSeries=[],n.bindAxes(),S(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),p(this,e);var r,o=e.events;(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.isCartesian&&(t.hasCartesianSeries=!0),i.length&&(r=i[i.length-1]),n._i=I(r&&r._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(i)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),j(this,"afterInit")},t.prototype.is=function(t){return v[t]&&this instanceof v[t]},t.prototype.insert=function(t){var e,n=this.options.index;if(M(n)){for(e=t.length;e--;)if(n>=I(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return I(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,n=e.options,i=e.chart;j(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(r){var o=0;i[r].forEach((function(i){t=i.options,(n[r]===o&&!t.isInternal||void 0!==n[r]&&n[r]===t.id||void 0===n[r]&&0===t.index)&&(e.insert(i.series),e[r]=i,i.isDirty=!0),t.isInternal||o++})),e[r]||e.optionalAxis===r||k(18,!0,i)}))})),j(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var n=t.series,i=arguments,r=M(e)?function(i){var r="y"===i&&n.toYData?n.toYData(t):t[i];n[i+"Data"][e]=r}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(i,2))};n.parallelArrays.forEach(r)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,n=this.options,i=n.pointIntervalUnit,r=n.relativeXValue,o=this.chart.time,a=this.xIncrement;return a=I(a,n.pointStart,0),this.pointInterval=e=I(this.pointInterval,n.pointInterval,1),r&&M(t)&&(e*=t),i&&(n=new o.Date(a),"day"===i?o.set("Date",n,o.get("Date",n)+e):"month"===i?o.set("Month",n,o.get("Month",n)+e):"year"===i&&o.set("FullYear",n,o.get("FullYear",n)+e),e=n.getTime()-a),r&&M(t)?a+e:(this.xIncrement=a+e,a)},t.prototype.setDataSortingOptions=function(){var t=this.options;S(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),C(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,n=e.options,i=n.plotOptions,r=e.userOptions||{};t=L(t),e=e.styledMode;var o={plotOptions:i,userOptions:t};j(this,"setOptions",o);var a=o.plotOptions[this.type],s=r.plotOptions||{};return this.userOptions=o.userOptions,r=L(a,i.series,r.plotOptions&&r.plotOptions[this.type],t),this.tooltipOptions=L(h.tooltip,h.plotOptions.series&&h.plotOptions.series.tooltip,h.plotOptions[this.type].tooltip,n.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,t.tooltip),this.stickyTracking=I(t.stickyTracking,s[this.type]&&s[this.type].stickyTracking,s.series&&s.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||r.stickyTracking),null===a.marker&&delete r.marker,this.zoneAxis=r.zoneAxis,i=this.zones=(r.zones||[]).slice(),!r.negativeColor&&!r.negativeFillColor||r.zones||(n={value:r[this.zoneAxis+"Threshold"]||r.threshold||0,className:"highcharts-negative"},e||(n.color=r.negativeColor,n.fillColor=r.negativeFillColor),i.push(n)),i.length&&C(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),j(this,"afterSetOptions",{options:r}),r},t.prototype.getName=function(){return I(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,n){var i=this.chart,r=this.userOptions,o=t+"Index",a=t+"Counter",s=n?n.length:I(i.options.chart[t+"Count"],i[t+"Count"]);if(!e){var l=I(r[o],r["_"+o]);C(l)||(i.series.length||(i[a]=0),r["_"+o]=l=i[a]%s,i[a]+=1),n&&(e=n[l])}void 0!==l&&(this[o]=l),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||h.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var n,i,r=t.id,a=t.x,s=this.points,l=this.options.dataSorting;if(r)(l=this.chart.get(r))instanceof o&&(n=l);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(n=function(e){return!e.touched&&e.index===t.index},l&&l.matchByName?n=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(n=function(e){return!e.touched&&e.options.x===t.x}),!(n=E(s,n))))return;if(n){var c=n&&n.index;void 0!==c&&(i=!0)}return void 0===c&&M(a)&&(c=this.xData.indexOf(a,e)),-1!==c&&void 0!==c&&this.cropped&&(c=c>=this.cropStart?c-this.cropStart:c),!i&&M(c)&&s[c]&&s[c].touched&&(c=void 0),c},t.prototype.updateData=function(t,e){var n,i,r,o=this.options,a=o.dataSorting,s=this.points,l=[],c=this.requireSorting,d=t.length===s.length,u=!0;if(this.xIncrement=null,t.forEach((function(t,e){var i=C(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},u=i.x;i.id||M(u)?(-1===(i=this.findPointIndex(i,r))||void 0===i?l.push(t):s[i]&&t!==o.data[i]?(s[i].update(t,!1,null,!1),s[i].touched=!0,c&&(r=i+1)):s[i]&&(s[i].touched=!0),(!d||e!==i||a&&a.enabled||this.hasDerivedData)&&(n=!0)):l.push(t)}),this),n)for(t=s.length;t--;)(i=s[t])&&!i.touched&&i.remove&&i.remove(!1,e);else!d||a&&a.enabled?u=!1:(t.forEach((function(t,e){t!==s[e].y&&s[e].update&&s[e].update(t,!1,null,!1)})),l.length=0);return s.forEach((function(t){t&&(t.touched=!1)})),!!u&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=b(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,n,i){var r=this,o=r.points,a=o&&o.length||0,s=r.options,l=r.chart,c=s.dataSorting,d=r.xAxis,u=s.turboThreshold,h=this.xData,p=this.yData,f=r.pointArrayMap;f=f&&f.length;var g,m=s.keys,v=0,y=1,b=null,x=(t=t||[]).length;if(e=I(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==i&&x&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(g=this.updateData(t,n)),!g){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),u&&x>u)if(b=r.getFirstValidPoint(t),M(b))for(n=0;n<x;n++)h[n]=this.autoIncrement(),p[n]=t[n];else if(P(b))if(f)if(b.length===f)for(n=0;n<x;n++)h[n]=this.autoIncrement(),p[n]=t[n];else for(n=0;n<x;n++)i=t[n],h[n]=i[0],p[n]=i.slice(1,f+1);else if(m&&(v=0<=(v=m.indexOf("x"))?v:0,y=0<=(y=m.indexOf("y"))?y:1),1===b.length&&(y=0),v===y)for(n=0;n<x;n++)h[n]=this.autoIncrement(),p[n]=t[n][y];else for(n=0;n<x;n++)i=t[n],h[n]=i[v],p[n]=i[y];else k(12,!1,l);else for(n=0;n<x;n++)void 0!==t[n]&&(i={series:r},r.pointClass.prototype.applyOptions.apply(i,[t[n]]),r.updateParallelArrays(i,n));for(p&&T(p[0])&&k(14,!0,l),r.data=[],r.options.data=r.userOptions.data=t,n=a;n--;)o[n]&&o[n].destroy&&o[n].destroy();d&&(d.minRange=d.userMinRange),r.isDirty=l.isDirtyBox=!0,r.isDirtyData=!!o,n=!1}"point"===s.legendType&&(this.processData(),this.generatePoints()),e&&l.redraw(n)},t.prototype.sortData=function(t){var e=this,n=e.options.dataSorting.sortKey||"y",i=function(t,e){return C(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach((function(n,r){t[r]=i(e,n),t[r].index=r}),this),t.concat().sort((function(t,e){return t=A(n,t),(e=A(n,e))<t?-1:e>t?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var n=e.options,r=n.data;n.dataSorting&&n.dataSorting.enabled||!r||(r.forEach((function(n,o){r[o]=i(e,n),t[o]&&(r[o].x=t[o].x,r[o].index=o)})),e.setData(r,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,n=this.options,i=n.cropThreshold,r=t||this.getExtremesFromAll||n.getExtremesFromAll,o=this.isCartesian;t=e&&e.val2lin,n=!(!e||!e.logarithmic);var a=0,s=this.xData,l=this.yData,c=this.requireSorting,d=!1,u=s.length;if(e){var h=(d=e.getExtremes()).min,p=d.max;d=e.categories&&!e.names.length}if(o&&this.sorted&&!r&&(!i||u>i||this.forceCrop))if(s[u-1]<h||s[0]>p)s=[],l=[];else if(this.yData&&(s[0]<h||s[u-1]>p)){var f=this.cropData(this.xData,this.yData,h,p);s=f.xData,l=f.yData,a=f.start,f=!0}for(i=s.length||1;--i;)if(0<(e=n?t(s[i])-t(s[i-1]):s[i]-s[i-1])&&(void 0===g||e<g))var g=e;else 0>e&&c&&!d&&(k(15,!1,this.chart),c=!1);return{xData:s,yData:l,cropped:f,cropStart:a,closestPointRange:g}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,j(this,"afterProcessData")},t.prototype.cropData=function(t,e,n,i,r){var o,a=t.length,s=0,l=a;for(r=I(r,this.cropShoulder),o=0;o<a;o++)if(t[o]>=n){s=Math.max(0,o-r);break}for(n=o;n<a;n++)if(t[n]>i){l=n+r;break}return{xData:t.slice(s,l),yData:e.slice(s,l),start:s,end:l}},t.prototype.generatePoints=function(){var t=this.options,e=t.data,n=this.processedXData,i=this.processedYData,r=this.pointClass,o=n.length,a=this.cropStart||0,s=this.hasGroupedData,l=t.keys,c=[];t=t.dataGrouping&&t.dataGrouping.groupAll?a:0;var d,u,h=this.data;if(!h&&!s){var p=[];p.length=e.length,h=this.data=p}for(l&&s&&(this.options.keys=!1),u=0;u<o;u++){if(p=a+u,s){var f=(new r).init(this,[n[u]].concat(R(i[u])));f.dataGroup=this.groupMap[t+u],f.dataGroup.options&&(f.options=f.dataGroup.options,S(f,f.dataGroup.options),delete f.dataLabels)}else(f=h[p])||void 0===e[p]||(h[p]=f=(new r).init(this,e[p],n[u]));f&&(f.index=s?t+u:p,c[u]=f)}if(this.options.keys=l,h&&(o!==(d=h.length)||s))for(u=0;u<d;u++)u!==a||s||(u+=o),h[u]&&(h[u].destroyElements(),h[u].plotX=void 0);this.data=h,this.points=c,j(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:x(t),max:b(t)}},t.prototype.getExtremes=function(t,e){var n=this.xAxis,i=this.yAxis,r=this.processedXData||this.xData,o=[],a=this.requireSorting?this.cropShoulder:0;i=!!i&&i.positiveValuesOnly;var s,l=0,c=0,d=0,u=(t=t||this.stackedYData||this.processedYData||[]).length;if(n){var h=n.getExtremes();l=h.min,c=h.max}for(s=0;s<u;s++){var p=r[s];h=t[s];var f=(M(h)||P(h))&&(h.length||0<h||!i);if(p=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(r[s+a]||p)>=l&&(r[s-a]||p)<=c,f&&p)if(f=h.length)for(;f--;)M(h[f])&&(o[d++]=h[f]);else o[d++]=h}return t={activeYData:o,dataMin:x(o),dataMax:b(o)},j(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,n=0,i=null;null===i&&n<e;)i=t[n],n++;return i},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n=this.options,i=n.stacking,r=this.xAxis,o=r.categories,a=this.enabledDataSorting,s=this.yAxis,l=this.points,c=l.length,d=this.pointPlacementToXValue(),u=!!d,h=n.threshold,p=n.startFromThreshold?h:0,f=this.zoneAxis||"y",g=Number.MAX_VALUE;for(t=0;t<c;t++){var m=l[t],v=m.x,y=void 0,b=void 0,x=m.y,O=m.low,$=i&&s.stacking&&s.stacking.stacks[(this.negStacks&&x<(p?0:h)?"-":"")+this.stackKey];if((s.positiveValuesOnly&&!s.validatePositiveValue(x)||r.positiveValuesOnly&&!r.validatePositiveValue(v))&&(m.isNull=!0),m.plotX=e=w(_(r.translate(v,0,0,0,1,d,"flags"===this.type),-1e5,1e5)),i&&this.visible&&$&&$[v]){var k=this.getStackIndicator(k,v,this.index);m.isNull||(b=(y=$[v]).points[k.key])}if(P(b)&&(O=b[0],x=b[1],O===p&&k.key===$[v].base&&(O=I(M(h)&&h,s.min)),s.positiveValuesOnly&&0>=O&&(O=null),m.total=m.stackTotal=y.total,m.percentage=y.total&&m.y/y.total*100,m.stackY=x,this.irregularWidths||y.setOffset(this.pointXOffset||0,this.barW||0)),m.yBottom=C(O)?_(s.translate(O,0,1,0,1),-1e5,1e5):null,this.dataModify&&(x=this.dataModify.modifyValue(x,t)),m.plotY=void 0,M(x)&&(void 0!==(y=s.translate(x,!1,!0,!1,!0))&&(m.plotY=_(y,-1e5,1e5))),m.isInside=this.isPointInside(m),m.clientX=u?w(r.translate(v,0,0,0,1,d)):e,m.negative=m[f]<(n[f+"Threshold"]||h||0),m.category=o&&void 0!==o[m.x]?o[m.x]:m.x,!m.isNull&&!1!==m.visible){void 0!==S&&(g=Math.min(g,Math.abs(e-S)));var S=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&a&&(m.isNew=!0)}this.closestPointRangePx=g,j(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,n){var i=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,{inverted:i.inverted}))&&(!1!==t.visible&&(n||!t.isNull))}))},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis,i=L(t.clipBox);return e&&e.len!==t.plotSizeX&&(i.width=e.len),n&&n.len!==t.plotSizeY&&(i.height=n.len),i},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,n=this.markerGroup,i=t.sharedClips;t=t.renderer;var r=this.getClipBox(),o=this.getSharedClipKey(),a=i[o];a?a.animate(r):i[o]=a=t.clipRect(r),e&&e.clip(!1===this.options.clip?void 0:a),n&&n.clip()},t.prototype.animate=function(t){var e=this.chart,n=this.group,i=this.markerGroup,r=e.inverted,o=d(this.options.animation),a=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(),s=e.sharedClips[a],l=e.sharedClips[a+"m"];if(t&&n)o=this.getClipBox(),s?s.attr("height",o.height):(o.width=0,r&&(o.x=e.plotHeight),s=e.renderer.clipRect(o),e.sharedClips[a]=s,l=e.renderer.clipRect({x:r?(e.plotSizeX||0)+99:-99,y:r?-e.plotLeft:-e.plotTop,width:99,height:r?e.chartWidth:e.chartHeight}),e.sharedClips[a+"m"]=l),n.clip(s),i&&i.clip(l);else if(s&&!s.hasClass("highcharts-animating")){e=this.getClipBox();var c=o.step;i&&i.element.childNodes.length&&(o.step=function(t,e){c&&c.apply(e,arguments),l&&l.element&&l.attr(e.prop,"width"===e.prop?t+99:t)}),s.addClass("highcharts-animating").animate(e,o)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),D(this.chart.sharedClips,(function(e,n,i){e&&!t.chart.container.querySelector('[clip-path="url(#'+e.id+')"]')&&(e.destroy(),delete i[n])})),this.finishedAnimating=!0,j(this,"afterAnimate")},t.prototype.drawPoints=function(){var t,e,n=this.points,i=this.chart,r=this.options.marker,o=this[this.specialGroup]||this.markerGroup,a=this.xAxis,s=I(r.enabled,!(a&&!a.isRadial)||null,this.closestPointRangePx>=r.enabledThreshold*r.radius);if(!1!==r.enabled||this._hasPointMarkers)for(t=0;t<n.length;t++){var l=n[t],c=(e=l.graphic)?"animate":"attr",d=l.marker||{},u=!!l.marker;if((s&&void 0===d.enabled||d.enabled)&&!l.isNull&&!1!==l.visible){var h=I(d.symbol,this.symbol,"rect"),p=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=a.reversed?-(p.width||0):a.width);var f=!1!==l.isInside;e?e[f?"show":"hide"](f).animate(p):f&&(0<(p.width||0)||l.hasImage)&&(l.graphic=e=i.renderer.symbol(h,p.x,p.y,p.width,p.height,u?d:r).add(o),this.enabledDataSorting&&i.hasRendered&&(e.attr({x:l.startXPos}),c="animate")),e&&"animate"===c&&e[f?"show":"hide"](f).animate(p),e&&!i.styledMode&&e[c](this.pointAttribs(l,l.selected&&"select")),e&&e.addClass(l.getClassName(),!0)}else e&&(l.graphic=e.destroy())}},t.prototype.markerAttribs=function(t,e){var n=this.options,i=n.marker,r=t.marker||{},o=r.symbol||i.symbol,a=I(r.radius,i.radius);return e&&(i=i.states[e],e=r.states&&r.states[e],a=I(e&&e.radius,i&&i.radius,a+(i&&i.radiusPlus||0))),t.hasImage=o&&0===o.indexOf("url"),t.hasImage&&(a=0),t={x:n.crisp?Math.floor(t.plotX-a):t.plotX-a,y:t.plotY-a},a&&(t.width=t.height=2*a),t},t.prototype.pointAttribs=function(t,e){var n=this.options.marker,i=t&&t.options,r=i&&i.marker||{},o=i&&i.color,a=t&&t.color,s=t&&t.zone&&t.zone.color,l=this.color;return t=I(r.lineWidth,n.lineWidth),i=1,l=o||s||a||l,o=r.fillColor||n.fillColor||l,a=r.lineColor||n.lineColor||l,e=e||"normal",n=n.states[e]||{},e=r.states&&r.states[e]||{},t=I(e.lineWidth,n.lineWidth,t+I(e.lineWidthPlus,n.lineWidthPlus,0)),o=e.fillColor||n.fillColor||o,{stroke:a=e.lineColor||n.lineColor||a,"stroke-width":t,fill:o,opacity:i=I(e.opacity,n.opacity,i)}},t.prototype.destroy=function(t){var e,n,i,r=this,o=r.chart,a=/AppleWebKit\/533/.test(m.navigator.userAgent),s=r.data||[];for(j(r,"destroy"),this.removeEvents(t),(r.axisTypes||[]).forEach((function(t){(i=r[t])&&i.series&&($(i.series,r),i.isDirty=i.forceRedraw=!0)})),r.legendItem&&r.chart.legend.destroyItem(r),e=s.length;e--;)(n=s[e])&&n.destroy&&n.destroy();r.clips&&r.clips.forEach((function(t){return t.destroy()})),c.clearTimeout(r.animationTimeout),D(r,(function(t,e){t instanceof l&&!t.survive&&t[a&&"group"===e?"hide":"destroy"]()})),o.hoverSeries===r&&(o.hoverSeries=void 0),$(o.series,r),o.orderSeries(),D(r,(function(e,n){t&&"hcEvents"===n||delete r[n]}))},t.prototype.applyZones=function(){var t,e,n,i,r,o,a,s,l=this,c=this.chart,d=c.renderer,u=this.zones,h=this.clips||[],p=this.graph,f=this.area,g=Math.max(c.chartWidth,c.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],v=c.inverted,y=!1;if(u.length&&(p||f)&&m&&void 0!==m.min){var b=m.reversed,x=m.horiz;p&&!this.showLine&&p.hide(),f&&f.hide();var O=m.getExtremes();u.forEach((function(u,w){t=b?x?c.plotWidth:0:x?0:m.toPixels(O.min)||0,t=_(I(e,t),0,g),e=_(Math.round(m.toPixels(I(u.value,O.max),!0)||0),0,g),y&&(t=e=m.toPixels(O.max)),i=Math.abs(t-e),r=Math.min(t,e),o=Math.max(t,e),m.isXAxis?(n={x:v?o:r,y:0,width:i,height:g},x||(n.x=c.plotHeight-n.x)):(n={x:0,y:v?o:r,width:g,height:i},x&&(n.y=c.plotWidth-n.y)),v&&d.isVML&&(n=m.isXAxis?{x:0,y:b?r:o,height:n.width,width:c.chartWidth}:{x:n.y-c.plotLeft-c.spacingBox.x,y:0,width:n.height,height:c.chartHeight}),h[w]?h[w].animate(n):h[w]=d.clipRect(n),a=l["zone-area-"+w],s=l["zone-graph-"+w],p&&s&&s.clip(h[w]),f&&a&&a.clip(h[w]),y=u.value>O.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=h}else l.visible&&(p&&p.show(!0),f&&f.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){n[e]&&(i.renderer.isVML&&n[e].attr({width:n.yAxis.len,height:n.xAxis.len}),n[e].width=n.yAxis.len,n[e].height=n.xAxis.len,n[e].invert(!n.isRadialSeries&&t))}))}var n=this,i=n.chart;n.xAxis&&(n.eventsToUnbind.push(y(i,"resize",e)),e(),n.invertGroups=e)},t.prototype.plotGroup=function(t,e,n,i,r){var o=this[t],a=!o;return n={visibility:n,zIndex:i||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),a&&(this[t]=o=this.chart.renderer.g().add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(C(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(n)[a?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||N(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,n=t.options,i=d(n.animation),r=t.visible?"inherit":"hidden",o=n.zIndex,a=t.hasRendered,s=e.seriesGroup,l=e.inverted;e=!t.finishedAnimating&&e.renderer.isSVG?i.duration:0,j(this,"render");var c=t.plotGroup("group","series",r,o,s);t.markerGroup=t.plotGroup("markerGroup","markers",r,o,s),!1!==n.clip&&t.setClip(),t.animate&&e&&t.animate(!0),c.inverted=!!I(t.invertible,t.isCartesian)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),t.animate&&e&&t.animate(),a||(e&&i.defer&&(e+=i.defer),t.animationTimeout=F((function(){t.afterAnimate()}),e||0)),t.isDirty=!1,t.hasRendered=!0,j(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,r=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:I(i&&i.left,t.plotLeft),translateY:I(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var n=this.xAxis,i=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:r?i.len-t.chartX+i.pos:t.chartY-i.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,n=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree,F((function(){e.kdTree=function t(n,i,r){var o=n&&n.length;if(o){var a=e.kdAxisArray[i%r];return n.sort((function(t,e){return t[a]-e[a]})),{point:n[o=Math.floor(o/2)],left:t(n.slice(0,o),i+1,r),right:t(n.slice(o+1),i+1,r)}}}(e.getValidPoints(null,!e.directTouch),n,n),e.buildingKdTree=!1}),e.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,n){var i=this,r=this.kdAxisArray[0],o=this.kdAxisArray[1],a=e?"distX":"dist";if(e=-1<i.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function t(e,n,s,l){var c=n.point,d=i.kdAxisArray[s%l],u=c,h=C(e[r])&&C(c[r])?Math.pow(e[r]-c[r],2):null,p=C(e[o])&&C(c[o])?Math.pow(e[o]-c[o],2):null;return p=(h||0)+(p||0),c.dist=C(p)?Math.sqrt(p):Number.MAX_VALUE,c.distX=C(h)?Math.sqrt(h):Number.MAX_VALUE,h=0>(d=e[d]-c[d])?"right":"left",n[p=0>d?"left":"right"]&&(u=(p=t(e,n[p],s+1,l))[a]<u[a]?p:c),n[h]&&Math.sqrt(d*d)<u[a]&&(u=(e=t(e,n[h],s+1,l))[a]<u[a]?e:u),u}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,n=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=n.reversed?-.5:.5),M(t)?t*(e||n.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,n=this.xAxis,i=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(i?i.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(n?n.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,n=e.trackByArea,i=[].concat(n?t.areaPath:t.graphPath),r=t.chart,o=r.pointer,a=r.renderer,s=r.options.tooltip.snap,l=t.tracker,c=function(e){r.hoverSeries!==t&&t.onMouseOver()},d="rgba(192,192,192,"+(g?1e-4:.002)+")";l?l.attr({d:i}):t.graph&&(t.tracker=a.path(i).attr({visibility:t.visible?"visible":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),r.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:d,fill:n?d:"none","stroke-width":t.graph.strokeWidth()+(n?0:2*s)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach((function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",c).on("mouseout",(function(t){o.onTrackerMouseOut(t)})),e.cursor&&!r.styledMode&&t.css({cursor:e.cursor}),f)&&t.on("touchstart",c)}))),j(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,n,i,r){var o=this.options,a=this.data,s=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var c,d=o.data,u=this.xData;e=I(e,!0);var h={series:this};this.pointClass.prototype.applyOptions.apply(h,[t]);var p=h.x,f=u.length;if(this.requireSorting&&p<u[f-1])for(c=!0;f&&u[f-1]>p;)f--;this.updateParallelArrays(h,"splice",f,0,0),this.updateParallelArrays(h,f),l&&h.name&&(l[p]=h.name),d.splice(f,0,t),c&&(this.data.splice(f,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),n&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(h,"shift"),d.shift())),!1!==r&&j(this,"addPoint",{point:h}),this.isDirtyData=this.isDirty=!0,e&&s.redraw(i)},t.prototype.removePoint=function(t,e,n){var i=this,r=i.data,o=r[t],a=i.points,s=i.chart,l=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),i.options.data.splice(t,1),i.updateParallelArrays(o||{series:i},"splice",t,1),o&&o.destroy(),i.isDirty=!0,i.isDirtyData=!0,e&&s.redraw()};u(n,s),e=I(e,!0),o?o.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,n,i){function r(){o.destroy(i),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),I(t,!0)&&a.redraw(e)}var o=this,a=o.chart;!1!==n?j(o,"remove",null,r):r()},t.prototype.update=function(t,e){t=O(t,this.userOptions),j(this,"update",{options:t});var n,i=this,r=i.chart,o=i.userOptions,a=i.initialType||i.type,s=r.options.plotOptions,l=v[a].prototype,c=i.finishedAnimating&&{animation:!1},d={},u=["eventOptions","navigatorSeries","baseSeries"],h=t.type||o.type||r.options.chart.type,p=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||i.hasOptionChanged("dataGrouping")||i.hasOptionChanged("pointStart")||i.hasOptionChanged("pointInterval")||i.hasOptionChanged("pointIntervalUnit")||i.hasOptionChanged("keys"));if(h=h||a,p&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),i.parallelArrays.forEach((function(t){u.push(t+"Data")})),t.data&&(t.dataSorting&&S(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=L(o,c,{index:void 0===o.index?i.index:o.index,pointStart:I(s&&s.series&&s.series.pointStart,o.pointStart,i.xData[0])},!p&&{data:i.options.data},t),p&&t.data&&(t.data=i.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach((function(t){u[t]=i[t],delete i[t]})),s=!1,v[h]){if(s=h!==i.type,i.remove(!1,!1,!1,!0),s)if(Object.setPrototypeOf)Object.setPrototypeOf(i,v[h].prototype);else{for(n in c=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents,l)i[n]=void 0;S(i,v[h].prototype),c?i.hcEvents=c:delete i.hcEvents}}else k(17,!0,r,{missingModuleFor:h});if(u.forEach((function(t){i[t]=u[t]})),i.init(r,t),p&&this.points){var f=i.options;!1===f.visible?(d.graphic=1,d.dataLabel=1):i._hasPointLabels||(t=f.marker,l=f.dataLabels,!t||!1!==t.enabled&&(o.marker&&o.marker.symbol)===t.symbol||(d.graphic=1),l&&!1===l.enabled&&(d.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(d).length&&t.destroyElements(d),!1===f.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}i.initialType=a,r.linkSeries(),s&&i.linkedSeries.length&&(i.isDirtyData=!0),j(this,"afterUpdate"),I(e,!0)&&r.redraw(!!p&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],n=this.chart.options.plotOptions,i=this.userOptions[t];return i?e!==i:e!==I(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&j(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,n=e.tooltip,i=e.hoverPoint;e.hoverSeries=null,i&&i.onMouseOut(),this&&t.events.mouseOut&&j(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var n=this,i=n.options,r=n.graph,o=i.inactiveOtherPoints,a=i.states,s=I(a[t||"normal"]&&a[t||"normal"].animation,n.chart.options.chart.animation),l=i.lineWidth,c=0,d=i.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach((function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))})),n.state=t,!n.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),d=I(a[t].opacity,d)),r&&!r.dashstyle)for(i={"stroke-width":l},r.animate(i,s);n["zone-graph-"+c];)n["zone-graph-"+c].animate(i,s),c+=1;o||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(t){t&&t.animate({opacity:d},s)}))}e&&o&&n.points&&n.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var n=this,i=n.chart,r=n.legendItem,o=i.options.chart.ignoreHiddenSeries,a=n.visible,s=(n.visible=t=n.options.visible=n.userOptions.visible=void 0===t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){n[t]&&n[t][s]()})),i.hoverSeries!==n&&(i.hoverPoint&&i.hoverPoint.series)!==n||n.onMouseOut(),r&&i.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&i.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),n.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(i.isDirtyBox=!0),j(n,s),!1!==e&&i.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),j(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,n){return void 0===n&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)},t.defaultOptions=a,t}(),S(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:r.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}),s.series=t,t})),e(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o){var a=t.stop,s=o.addEvent,l=o.createElement,c=o.merge,d=o.pick;s(n,"afterSetChartSize",(function(t){var n=this.options.chart.scrollablePlotArea,i=n&&n.minWidth;if(n=n&&n.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.width=this.plotWidth+=i,this.inverted?this.clipBox.height+=i:this.clipBox.width+=i;var r={1:{name:"right",value:i}}}}else n&&(this.scrollablePixelsY=i=Math.max(0,n-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,r={2:{name:"bottom",value:i}});r&&!t.skipAxes&&this.axes.forEach((function(t){r[t.side]?t.getPlotLinePath=function(){var n=r[t.side].name,i=this[n];this[n]=i-r[t.side].value;var o=e.prototype.getPlotLinePath.apply(this,arguments);return this[n]=i,o}:(t.setAxisSize(),t.setAxisTranslation())}))}})),s(n,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),n.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},e,this.scrollingParent),s(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,n=this.fixedRenderer,i=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&i.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),i.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},n.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,n=e.scrollablePlotArea,i=r.getRendererType();t?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new i(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(n.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterDrilldown",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),i=this.chartHeight+(this.scrollablePixelsY||0),a(this.container),this.container.style.width=e+"px",this.container.style.height=i+"px",this.renderer.boxWrapper.attr({width:e,height:i,viewBox:[0,0,e,i].join(" ")}),this.chartBackground.attr({width:e,height:i}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),i=this.axisOffset,t=this.plotTop-i[0]-1,n=this.plotLeft-i[3]-1,e=this.plotTop+this.plotHeight+i[2]+1,i=this.plotLeft+this.plotWidth+i[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),c=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",n,0],["L",n,this.plotTop-1],["L",i,this.plotTop-1],["L",i,0],["Z"],["M",n,c],["L",n,this.chartHeight],["L",i,this.chartHeight],["L",i,c],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},s(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),s(i,"show",(function(){this.chart.scrollableDirty=!0}))})),e(n,"Core/Axis/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.getDeferredAnimation,o=n.addEvent,a=n.destroyObjectProperties,s=n.fireEvent,l=n.isNumber,c=n.objectEach;return function(t){function e(){var t=this.stacking;if(t){var e=t.stacks;c(e,(function(t,n){a(t),e[n]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function n(){this.stacking||(this.stacking=new d(this))}var i=[];t.compose=function(t){return-1===i.indexOf(t)&&(i.push(t),o(t,"init",n),o(t,"destroy",e)),t};var d=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,n=e.series,i=e.options.reversedStacks,r=n.length;if(!e.isXAxis){for(this.usePercentage=!1,t=r;t--;){var o=n[i?t:r-t-1];o.setStackedPoints(),o.setGroupedPoints()}for(t=0;t<r;t++)n[t].modifyStacks();s(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;c(t,(function(t){c(t,(function(t){t.cumulative=t.total}))}))}},t.prototype.resetStacks=function(){var t=this,e=t.stacks;t.axis.isXAxis||c(e,(function(e){c(e,(function(n,i){l(n.touched)&&n.touched<t.stacksTouched?(n.destroy(),delete e[i]):(n.total=null,n.cumulative=null)}))}))},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,n=e.renderer,i=this.stacks;t=r(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var o=this.stackTotalGroup=this.stackTotalGroup||n.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();o.translate(e.plotLeft,e.plotTop),c(i,(function(t){c(t,(function(t){t.render(o)}))})),o.animate({opacity:1},t)},t}();t.Additions=d}(i||(i={})),i})),e(n,"Extensions/Stacking.js",[n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Axis/StackingAxis.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a){var s=n.format,l=a.correctFloat,c=a.defined,d=a.destroyObjectProperties,u=a.isArray,h=a.isNumber,p=a.objectEach,f=a.pick,g=function(){function t(t,e,n,i,r){var o=t.chart.inverted;this.axis=t,this.isNegative=n,this.options=e=e||{},this.x=i,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?n?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":n?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?n?"right":"left":"center")}return t.prototype.destroy=function(){d(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,n=this.options,i=n.format;i=i?s(i,this,e):n.formatter.call(this),this.label?this.label.attr({text:i,visibility:"hidden"}):(this.label=e.renderer.label(i,null,null,n.shape,null,null,n.useHTML,!1,"stack-labels"),i={r:n.borderRadius||0,text:i,rotation:n.rotation,padding:f(n.padding,5),visibility:"hidden"},e.styledMode||(i.fill=n.backgroundColor,i.stroke=n.borderColor,i["stroke-width"]=n.borderWidth,this.label.css(n.style)),this.label.attr(i),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,n,i,o){var a=this.axis,s=a.chart;i=a.translate(a.stacking.usePercentage?100:i||this.total,0,0,0,1),n=a.translate(n||0),n=c(i)&&Math.abs(i-n),t=f(o,s.xAxis[0].translate(this.x))+t,a=c(i)&&this.getStackBox(s,this,t,i,e,n,a),e=this.label,n=this.isNegative,t="justify"===f(this.options.overflow,"justify");var l=this.textAlign;e&&a&&(o=e.getBBox(),i=e.padding,l="left"===l?s.inverted?-i:i:"right"===l?o.width:s.inverted&&"center"===l?o.width/2:s.inverted?n?o.width+i:-i:o.width/2,n=s.inverted?o.height/2:n?-i:o.height,this.alignOptions.x=f(this.options.x,0),this.alignOptions.y=f(this.options.y,0),a.x-=l,a.y-=n,e.align(this.alignOptions,null,a),s.isInsidePlot(e.alignAttr.x+l-this.alignOptions.x,e.alignAttr.y+n-this.alignOptions.y)?e.show():(e.alignAttr.y=-9999,t=!1),t&&r.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,o,a),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),f(!t&&this.options.crop,!0)&&((s=h(e.x)&&h(e.y)&&s.isInsidePlot(e.x-i+e.width,e.y)&&s.isInsidePlot(e.x+i,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,n,i,r,o,a){var s=e.axis.reversed,l=t.inverted,c=a.height+a.pos-(l?t.plotLeft:t.plotTop);return e=e.isNegative&&!s||!e.isNegative&&s,{x:l?e?i-a.right:i-o+a.pos-t.plotLeft:n+t.xAxis[0].transB-t.plotLeft,y:l?a.height-n-r:e?c-i-o:c-i,width:l?o:r,height:l?r:o}},t}();return e.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)})),t.series.forEach((function(n){var i=n.xAxis&&n.xAxis.options||{};!n.options.stacking||!0!==n.visible&&!1!==t.options.chart.ignoreHiddenSeries||(n.stackKey=[n.type,f(n.options.stack,""),e?i.top:i.left,e?i.height:i.width].join())}))},o.compose(t),r.prototype.setGroupedPoints=function(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?r.prototype.setStackedPoints.call(this,"group"):t&&p(t.stacks,(function(e,n){"group"===n.slice(-5)&&(p(e,(function(t){return t.destroy()})),delete t.stacks[n])}))},r.prototype.setStackedPoints=function(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var n=this.processedXData,i=this.processedYData,r=[],o=i.length,a=this.options,s=a.threshold,d=f(a.startFromThreshold&&s,0);a=a.stack;var h,p,m="-"+(t=t?this.type+","+e:this.stackKey),v=this.negStacks,y=this.yAxis,b=y.stacking.stacks,x=y.stacking.oldStacks;for(y.stacking.stacksTouched+=1,p=0;p<o;p++){var _=n[p],O=i[p],w=this.getStackIndicator(w,_,this.index),C=w.key,$=(h=v&&O<(d?0:s))?m:t;b[$]||(b[$]={}),b[$][_]||(x[$]&&x[$][_]?(b[$][_]=x[$][_],b[$][_].total=null):b[$][_]=new g(y,y.options.stackLabels,h,_,a)),$=b[$][_],null!==O?($.points[C]=$.points[this.index]=[f($.cumulative,d)],c($.cumulative)||($.base=C),$.touched=y.stacking.stacksTouched,0<w.index&&!1===this.singleStacks&&($.points[C][0]=$.points[this.index+","+_+",0"][0])):$.points[C]=$.points[this.index]=null,"percent"===e?(h=h?t:m,v&&b[h]&&b[h][_]?(h=b[h][_],$.total=h.total=Math.max(h.total,$.total)+Math.abs(O)||0):$.total=l($.total+(Math.abs(O)||0))):"group"===e?(u(O)&&(O=O[0]),null!==O&&($.total=($.total||0)+1)):$.total=l($.total+(O||0)),$.cumulative="group"===e?($.total||1)-1:f($.cumulative,d)+(O||0),null!==O&&($.points[C].push($.cumulative),r[p]=$.cumulative,$.hasValidPoints=!0)}"percent"===e&&(y.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=r),y.stacking.oldStacks={}}},r.prototype.modifyStacks=function(){var t,e=this,n=e.stackKey,i=e.yAxis.stacking.stacks,r=e.processedXData,o=e.options.stacking;e[o+"Stacker"]&&[n,"-"+n].forEach((function(n){for(var a,s,l=r.length;l--;)a=r[l],t=e.getStackIndicator(t,a,e.index,n),(s=(a=i[n]&&i[n][a])&&a.points[t.key])&&e[o+"Stacker"](s,a,l)}))},r.prototype.percentStacker=function(t,e,n){e=e.total?100/e.total:0,t[0]=l(t[0]*e),t[1]=l(t[1]*e),this.stackedYData[n]=t[1]},r.prototype.getStackIndicator=function(t,e,n,i){return!c(t)||t.x!==e||i&&t.key!==i?t={x:e,index:0,key:i}:t.index++,t.key=[n,e,t.index].join(),t},i.StackItem=g,i.StackItem})),e(n,"Series/Line/LineSeries.js",[n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n.defined,o=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.prototype.drawGraph=function(){var t=this,e=this.options,n=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode,r=[["graph","highcharts-graph"]];i||r[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(r=t.getZonesGraphs(r)).forEach((function(r,o){var a=r[0],s=t[a],l=s?"animate":"attr";s?(s.endX=t.preventGraphAnimation?null:n.xMap,s.animate({d:n})):n.length&&(t[a]=s=t.chart.renderer.path(n).addClass(r[1]).attr({zIndex:1}).add(t.group)),s&&!i&&(a={stroke:r[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},r[3]?a.dashstyle=r[3]:"square"!==e.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),s[l](a).shadow(2>o&&e.shadow)),s&&(s.startX=n.xMap,s.isArea=n.isArea)}))},n.prototype.getGraphPath=function(t,e,n){var i,o=this,a=o.options,s=[],l=[],c=a.step,d=(t=t||o.points).reversed;return d&&t.reverse(),(c={right:1,center:2}[c]||c&&3)&&d&&(c=4-c),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!n))).forEach((function(d,u){var h=d.plotX,p=d.plotY,f=t[u-1];(d.leftCliff||f&&f.rightCliff)&&!n&&(i=!0),d.isNull&&!r(e)&&0<u?i=!a.connectNulls:d.isNull&&!e?i=!0:(0===u||i?u=[["M",d.plotX,d.plotY]]:o.getPointSpline?u=[o.getPointSpline(t,d,u)]:c?(u=1===c?[["L",f.plotX,p]]:2===c?[["L",(f.plotX+h)/2,f.plotY],["L",(f.plotX+h)/2,p]]:[["L",h,f.plotY]]).push(["L",h,p]):u=[["L",h,p]],l.push(d.x),c&&(l.push(d.x),2===c&&l.push(d.x)),s.push.apply(s,u),i=!1)})),s.xMap=l,o.graphPath=s},n.prototype.getZonesGraphs=function(t){return this.zones.forEach((function(e,n){n=["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||"")],this.chart.styledMode||n.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(n)}),this),t},n.defaultOptions=o(t.defaultOptions,{}),n}(t),e.registerSeriesType("line",n),n})),e(n,"Series/Area/AreaSeries.js",[n["Core/Color/Color.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=t.parse,a=n.seriesTypes.line;t=i.extend;var s=i.merge,l=i.objectEach,c=i.pick;return i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,n=this.areaPath,i=this.options,r=[["area","highcharts-area",this.color,i.fillColor]];this.zones.forEach((function(t,n){r.push(["zone-area-"+n,"highcharts-area highcharts-zone-area-"+n+" "+t.className,t.color||e.color,t.fillColor||i.fillColor])})),r.forEach((function(t){var r=t[0],a=e[r],s=a?"animate":"attr",l={};a?(a.endX=e.preventGraphAnimation?null:n.xMap,a.animate({d:n})):(l.zIndex=0,(a=e[r]=e.chart.renderer.path(n).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(l.fill=c(t[3],o(t[2]).setOpacity(c(i.fillOpacity,.75)).get())),a[s](l),a.startX=n.xMap,a.shiftUnit=i.step?2:1}))},e.prototype.getGraphPath=function(t){var e,n=a.prototype.getGraphPath,i=this.options,r=i.stacking,o=this.yAxis,s=[],l=[],d=this.index,u=o.stacking.stacks[this.stackKey],h=i.threshold,p=Math.round(o.getThreshold(i.threshold));i=c(i.connectNulls,"percent"===r);var f=function(e,n,i){var a=t[e];e=r&&u[a.x].points[d];var c=a[i+"Null"]||0;if(i=a[i+"Cliff"]||0,a=!0,i||c){var f=(c?e[0]:e[1])+i,g=e[0]+i;a=!!c}else!r&&t[n]&&t[n].isNull&&(f=g=h);void 0!==f&&(l.push({plotX:m,plotY:null===f?p:o.getThreshold(f),isNull:a,isCliff:!0}),s.push({plotX:m,plotY:null===g?p:o.getThreshold(g),doCurve:!1}))};for(t=t||this.points,r&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){r||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=c(t[e].rectPlotX,t[e].plotX),v=r?c(t[e].yBottom,p):p;g&&!i||(i||f(e,e-1,"left"),g&&!r&&i||(l.push(t[e]),s.push({x:e,plotX:m,plotY:v})),i||f(e,e+1,"right"))}return e=n.call(this,l,!0,!0),s.reversed=!0,(v=(g=n.call(this,s,!0,!0))[0])&&"M"===v[0]&&(g[0]=["L",v[1],v[2]]),(g=e.concat(g)).length&&g.push(["Z"]),n=n.call(this,l,!1,i),g.xMap=e.xMap,this.areaPath=g,n},e.prototype.getStackPoints=function(t){var e=this,n=[],i=[],r=this.xAxis,o=this.yAxis,a=o.stacking.stacks[this.stackKey],s={},d=o.series,u=d.length,h=o.options.reversedStacks?1:-1,p=d.indexOf(e);if(t=t||this.points,this.options.stacking){for(var f=0;f<t.length;f++)t[f].leftNull=t[f].rightNull=void 0,s[t[f].x]=t[f];l(a,(function(t,e){null!==t.total&&i.push(e)})),i.sort((function(t,e){return t-e}));var g=d.map((function(t){return t.visible}));i.forEach((function(t,l){var f,m,v=0;if(s[t]&&!s[t].isNull)n.push(s[t]),[-1,1].forEach((function(n){var r=1===n?"rightNull":"leftNull",o=0,c=a[i[l+n]];if(c)for(var v=p;0<=v&&v<u;){var y=d[v].index;(f=c.points[y])||(y===e.index?s[t][r]=!0:g[v]&&(m=a[t].points[y])&&(o-=m[1]-m[0])),v+=h}s[t][1===n?"rightCliff":"leftCliff"]=o}));else{for(var y=p;0<=y&&y<u;){if(f=a[t].points[d[y].index]){v=f[1];break}y+=h}v=c(v,0),v=o.translate(v,0,1,0,1),n.push({isNull:!0,plotX:r.translate(t,0,0,0,1),x:t,plotY:v,yBottom:v})}}))}return n},e.defaultOptions=s(a.defaultOptions,{threshold:0}),e}(a),t(i.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),n.registerSeriesType("area",i),i})),e(n,"Series/Spline/SplineSeries.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),i=t.seriesTypes.line,r=e.merge,o=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.getPointSpline=function(t,e,n){var i=e.plotX||0,r=e.plotY||0,a=t[n-1];if(n=t[n+1],a&&!a.isNull&&!1!==a.doCurve&&!e.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff){t=a.plotY||0;var s=n.plotX||0;n=n.plotY||0;var l=0,c=(1.5*i+(a.plotX||0))/2.5,d=(1.5*r+t)/2.5,u=(1.5*r+n)/2.5;(s=(1.5*i+s)/2.5)!==c&&(l=(u-d)*(s-i)/(s-c)+r-u),u+=l,(d+=l)>t&&d>r?u=2*r-(d=Math.max(t,r)):d<t&&d<r&&(u=2*r-(d=Math.min(t,r))),u>n&&u>r?d=2*r-(u=Math.max(n,r)):u<n&&u<r&&(d=2*r-(u=Math.min(n,r))),e.rightContX=s,e.rightContY=u}return e=["C",o(a.rightContX,a.plotX,0),o(a.rightContY,a.plotY,0),o(c,i,0),o(d,r,0),i,r],a.rightContX=a.rightContY=void 0,e},e.defaultOptions=r(i.defaultOptions),e}(i),t.registerSeriesType("spline",e),e})),e(n,"Series/AreaSpline/AreaSplineSeries.js",[n["Series/Area/AreaSeries.js"],n["Series/Spline/SplineSeries.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=t.prototype,s=r.extend,l=r.merge;return s((r=function(n){function i(){var t=null!==n&&n.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return o(i,n),i.defaultOptions=l(e.defaultOptions,t.defaultOptions),i}(e)).prototype,{getGraphPath:a.getGraphPath,getStackPoints:a.getStackPoints,drawGraph:a.drawGraph,drawLegendSymbol:n.drawRectangle}),i.registerSeriesType("areaspline",r),r})),e(n,"Series/Column/ColumnSeries.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a){var s=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=t.animObject,c=e.parse,d=n.hasTouch;t=n.noop;var u=a.clamp,h=a.css,p=a.defined,f=a.extend,g=a.fireEvent,m=a.isArray,v=a.isNumber,y=a.merge,b=a.pick,x=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return s(e,t),e.prototype.animate=function(t){var e=this,n=this.yAxis,i=e.options,r=this.chart.inverted,o={},a=r?"translateX":"translateY";if(t)o.scaleY=.001,t=u(n.toPixels(i.threshold),n.pos,n.pos+n.len),r?o.translateX=t-n.len:o.translateY=t,e.clipBox&&e.setClip(),e.group.attr(o);else{var s=Number(e.group.attr(a));e.group.animate({scaleY:1},f(l(e.options.animation),{step:function(t,i){e.group&&(o[a]=s+i.pos*(n.pos-s),e.group.attr(o))}}))}},e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments);var i=this;(e=i.chart).hasRendered&&e.series.forEach((function(t){t.type===i.type&&(t.isDirty=!0)}))},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,n=t.xAxis,i=t.yAxis,r=n.options.reversedStacks;r=n.reversed&&!r||!n.reversed&&r;var o,a={},s=0;!1===e.grouping?s=1:t.chart.series.forEach((function(e){var n=e.yAxis,r=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&i.len===n.len&&i.pos===n.pos){if(r.stacking&&"group"!==r.stacking){o=e.stackKey,void 0===a[o]&&(a[o]=s++);var l=a[o]}else!1!==r.grouping&&(l=s++);e.columnIndex=l}}));var l=Math.min(Math.abs(n.transA)*(n.ordinal&&n.ordinal.slope||e.pointRange||n.closestPointRange||n.tickInterval||1),n.len),c=l*e.groupPadding,d=(l-2*c)/(s||1);return e=Math.min(e.maxPointWidth||n.len,b(e.pointWidth,d*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(d-e)/2+(c+((t.columnIndex||0)+(r?1:0))*d-l/2)*(r?-1:1),paddedWidth:d,columnCount:s},t.columnMetrics},e.prototype.crispCol=function(t,e,n,i){var r=this.chart,o=this.borderWidth,a=-(o%2?.5:0);return o=o%2?.5:1,r.inverted&&r.renderer.isVML&&(o+=1),this.options.crisp&&(n=Math.round(t+n)+a,n-=t=Math.round(t)+a),i=Math.round(e+i)+o,a=.5>=Math.abs(e)&&.5<i,i-=e=Math.round(e)+o,a&&i&&(--e,i+=1),{x:t,y:e,width:n,height:i}},e.prototype.adjustForMissingColumns=function(t,e,n,i){var r=this,o=this.options.stacking;if(!n.isNull&&1<i.columnCount){var a=0,s=0;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(t){if("number"==typeof n.x&&(t=t[n.x.toString()])){var e=t.points[r.index],i=t.total;o?(e&&(a=s),t.hasValidPoints&&s++):m(e)&&(a=e[1],s=i||0)}})),t=(n.plotX||0)+((s-1)*i.paddedWidth+e)/2-e-a*i.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,n=t.options,i=t.dense=2>t.closestPointRange*t.xAxis.transA;i=t.borderWidth=b(n.borderWidth,i?0:1);var o=t.xAxis,a=t.yAxis,s=n.threshold,l=t.translatedThreshold=a.getThreshold(s),c=b(n.minPointLength,5),d=t.getColumnMetrics(),h=d.width,f=t.pointXOffset=d.offset,g=t.dataMin,m=t.dataMax,y=t.barW=Math.max(h,1+2*i);e.inverted&&(l-=.5),n.pointPadding&&(y=Math.ceil(y)),r.prototype.translate.apply(t),t.points.forEach((function(i){var r=b(i.yBottom,l),x=999+Math.abs(r),_=i.plotX||0;x=u(i.plotY,-x,a.len+x);var O=Math.min(x,r),w=Math.max(x,r)-O,C=h,$=_+f,k=y;c&&Math.abs(w)<c&&(w=c,_=!a.reversed&&!i.negative||a.reversed&&i.negative,v(s)&&v(m)&&i.y===s&&m<=s&&(a.min||0)<s&&(g!==m||(a.max||0)<=s)&&(_=!_),O=Math.abs(O-l)>c?r-c:l-(_?c:0)),p(i.options.pointWidth)&&(C=k=Math.ceil(i.options.pointWidth),$-=Math.round((C-h)/2)),n.centerInCategory&&($=t.adjustForMissingColumns($,C,i,d)),i.barX=$,i.pointWidth=C,i.tooltipPos=e.inverted?[u(a.len+a.pos-e.plotLeft-x,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),o.len+o.pos-e.plotTop-$-k/2,w]:[o.left-e.plotLeft+$+k/2,u(x+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),w],i.shapeType=t.pointClass.prototype.shapeType||"rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[$,l,k,0]:[$,O,k,w])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var n=this.options,i=this.pointAttrToOptions||{},r=i.stroke||"borderColor",o=i["stroke-width"]||"borderWidth",a=t&&t.color||this.color,s=t&&t[r]||n[r]||a;i=t&&t.options.dashStyle||n.dashStyle;var l=t&&t[o]||n[o]||this[o]||0,d=b(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var u=t.getZone();a=t.options.color||u&&(u.color||t.nonZonedColor)||this.color,u&&(s=u.borderColor||s,i=u.dashStyle||i,l=u.borderWidth||l)}return e&&t&&(e=(t=y(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&c(a).brighten(t.brightness).get()||a,s=t[r]||s,l=t[o]||l,i=t.dashStyle||i,d=b(t.opacity,d)),r={fill:a,stroke:s,"stroke-width":l,opacity:d},i&&(r.dashstyle=i),r},e.prototype.drawPoints=function(){var t,e=this,n=this.chart,i=e.options,r=n.renderer,o=i.animationLimit||250;e.points.forEach((function(a){var s=a.graphic,l=!!s,c=s&&n.pointCount<o?"animate":"attr";v(a.plotY)&&null!==a.y?(t=a.shapeArgs,s&&a.hasNewShapeType()&&(s=s.destroy()),e.enabledDataSorting&&(a.startXPos=e.xAxis.reversed?-(t&&t.width||0):e.xAxis.width),s||(a.graphic=s=r[a.shapeType](t).add(a.group||e.group))&&e.enabledDataSorting&&n.hasRendered&&n.pointCount<o&&(s.attr({x:a.startXPos}),l=!0,c="animate"),s&&l&&s[c](y(t)),i.borderRadius&&s[c]({r:i.borderRadius}),n.styledMode||s[c](e.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&i.shadow,null,i.stacking&&!i.borderRadius),s&&(s.addClass(a.getClassName(),!0),s.attr({visibility:a.visible?"inherit":"hidden"}))):s&&(a.graphic=s.destroy())}))},e.prototype.drawTracker=function(){var t,e=this,n=e.chart,i=n.pointer,r=function(t){var e=i.getPointFromEvent(t);void 0!==e&&(i.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach((function(e){t=m(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),e._hasTracking||(e.trackerGroups.forEach((function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",(function(t){i.onTrackerMouseOut(t)})),d&&e[t].on("touchstart",r),!n.styledMode&&e.options.cursor&&e[t].css(h).css({cursor:e.options.cursor}))})),e._hasTracking=!0),g(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),r.prototype.remove.apply(t,arguments)},e.defaultOptions=y(r.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),e}(r),f(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:i.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),o.registerSeriesType("column",a),a})),e(n,"Core/Series/DataLabel.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.getDeferredAnimation,o=e.format,a=n.defined,s=n.extend,l=n.fireEvent,c=n.isArray,d=n.merge,u=n.objectEach,h=n.pick,p=n.splat;return function(t){function e(t,e,n,i,r){var o=this,a=this.chart,l=this.isCartesian&&a.inverted,c=this.enabledDataSorting,d=h(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),u=h(t.plotY,-9999),p=e.getBBox(),f=n.rotation,g=n.align,m=a.isInsidePlot(d,Math.round(u),{inverted:l,paneCoordinates:!0,series:o}),v=function(n){c&&o.xAxis&&!y&&o.setDataLabelStartPos(t,e,r,m,n)},y="justify"===h(n.overflow,c?"none":"justify"),b=this.visible&&!1!==t.visible&&(t.series.forceDL||c&&!y||m||h(n.inside,!!this.options.stacking)&&i&&a.isInsidePlot(d,l?i.x+1:i.y+i.height-1,{inverted:l,paneCoordinates:!0,series:o}));if(b){var x=a.renderer.fontMetrics(a.styledMode?void 0:n.style.fontSize,e).b;i=s({x:l?this.yAxis.len-u:d,y:Math.round(l?this.xAxis.len-d:u),width:0,height:0},i),s(n,{width:p.width,height:p.height}),f?(y=!1,d=a.renderer.rotCorr(x,f),v(d={x:i.x+(n.x||0)+i.width/2+d.x,y:i.y+(n.y||0)+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height}),e[r?"attr":"animate"](d).attr({align:g}),v=180<(v=(f+720)%360)&&360>v,"left"===g?d.y-=v?p.height:0:"center"===g?(d.x-=p.width/2,d.y-=p.height/2):"right"===g&&(d.x-=p.width,d.y-=v?0:p.height),e.placed=!0,e.alignAttr=d):(v(i),e.align(n,void 0,i),d=e.alignAttr),y&&0<=i.height?this.justifyDataLabel(e,n,d,p,i,r):h(n.crop,!0)&&(b=a.isInsidePlot(d.x,d.y,{paneCoordinates:!0,series:o})&&a.isInsidePlot(d.x+p.width,d.y+p.height,{paneCoordinates:!0,series:o})),n.shape&&!f&&e[r?"attr":"animate"]({anchorX:l?a.plotWidth-t.plotY:t.plotX,anchorY:l?a.plotHeight-t.plotX:t.plotY})}r&&c&&(e.placed=!1),b||c&&!y||(e.hide(!0),e.placed=!1)}function n(){var t=this,e=t.chart,n=t.options,i=t.points,s=t.hasRendered||0,d=e.renderer,g=n.dataLabels,m=g.animation;if(m=g.defer?r(e,m,t):{defer:0,duration:0},g=f(f(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[t.type]&&e.options.plotOptions[t.type].dataLabels),g),l(this,"drawDataLabels"),c(g)||g.enabled||t._hasPointLabels){var v=t.plotGroup("dataLabelsGroup","data-labels",s?"inherit":"hidden",g.zIndex||6);v.attr({opacity:+s}),!s&&(s=t.dataLabelsGroup)&&(t.visible&&v.show(!0),s[n.animation?"animate":"attr"]({opacity:1},m)),i.forEach((function(i){p(f(g,i.dlOptions||i.options&&i.options.dataLabels)).forEach((function(r,s){var l=r.enabled&&(!i.isNull||i.dataLabelOnNull)&&function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t<n||">="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(i,r),c=i.connectors?i.connectors[s]:i.connector,p=i.dataLabels?i.dataLabels[s]:i.dataLabel,f=h(r.distance,i.labelDistance),g=!p;if(l){var m=i.getLabelConfig(),y=h(r[i.formatPrefix+"Format"],r.format);m=a(y)?o(y,m,e):(r[i.formatPrefix+"Formatter"]||r.formatter).call(m,r),y=r.style;var b=r.rotation;e.styledMode||(y.color=h(r.color,y.color,t.color,"#000000"),"contrast"===y.color?(i.contrastColor=d.getContrast(i.color||t.color),y.color=!a(f)&&r.inside||0>f||n.stacking?i.contrastColor:"#000000"):delete i.contrastColor,n.cursor&&(y.cursor=n.cursor));var x={r:r.borderRadius||0,rotation:b,padding:r.padding,zIndex:1};e.styledMode||(x.fill=r.backgroundColor,x.stroke=r.borderColor,x["stroke-width"]=r.borderWidth),u(x,(function(t,e){void 0===t&&delete x[e]}))}!p||l&&a(m)&&!!p.div==!!r.useHTML||(i.dataLabel=p=i.dataLabel&&i.dataLabel.destroy(),i.dataLabels&&(1===i.dataLabels.length?delete i.dataLabels:delete i.dataLabels[s]),s||delete i.dataLabel,c&&(i.connector=i.connector.destroy(),i.connectors&&(1===i.connectors.length?delete i.connectors:delete i.connectors[s]))),l&&a(m)&&(p?x.text=m:(i.dataLabels=i.dataLabels||[],p=i.dataLabels[s]=b?d.text(m,0,-9999,r.useHTML).addClass("highcharts-data-label"):d.label(m,0,-9999,r.shape,null,null,r.useHTML,null,"data-label"),s||(i.dataLabel=p),p.addClass(" highcharts-data-label-color-"+i.colorIndex+" "+(r.className||"")+(r.useHTML?" highcharts-tracker":""))),p.options=r,p.attr(x),e.styledMode||p.css(y).shadow(r.shadow),p.added||p.add(v),r.textPath&&!r.useHTML&&(p.setTextPath(i.getDataLabelPath&&i.getDataLabelPath(p)||i.graphic,r.textPath),i.dataLabelPath&&!r.textPath.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy())),t.alignDataLabel(i,p,r,null,g))}))}))}l(this,"afterDrawDataLabels")}function i(t,e,n,i,r,o){var a=this.chart,s=e.align,l=e.verticalAlign,c=t.box?0:t.padding||0,d=e.x;d=void 0===d?0:d;var u=e.y;u=void 0===u?0:u;var h=(n.x||0)+c;if(0>h){"right"===s&&0<=d?(e.align="left",e.inside=!0):d-=h;var p=!0}return(h=(n.x||0)+i.width-c)>a.plotWidth&&("left"===s&&0>=d?(e.align="right",e.inside=!0):d+=a.plotWidth-h,p=!0),0>(h=n.y+c)&&("bottom"===l&&0<=u?(e.verticalAlign="top",e.inside=!0):u-=h,p=!0),(h=(n.y||0)+i.height-c)>a.plotHeight&&("top"===l&&0>=u?(e.verticalAlign="bottom",e.inside=!0):u+=a.plotHeight-h,p=!0),p&&(e.x=d,e.y=u,t.placed=!o,t.align(e,void 0,r)),p}function f(t,e){var n,i=[];if(c(t)&&!c(e))i=t.map((function(t){return d(t,e)}));else if(c(e)&&!c(t))i=e.map((function(e){return d(t,e)}));else if(c(t)||c(e))for(n=Math.max(t.length,e.length);n--;)i[n]=d(t[n],e[n]);else i=d(t,e);return i}function g(t,e,n,i,r){var o=this.chart,a=o.inverted,s=this.xAxis,l=s.reversed,c=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=a?r.x:l?-c-t:s.width-c+t,e.startYPos=a?l?this.yAxis.height-c+t:-c-t:r.y,i?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var m=[];t.compose=function(t){if(-1===m.indexOf(t)){var r=t.prototype;m.push(t),r.alignDataLabel=e,r.drawDataLabels=n,r.justifyDataLabel=i,r.setDataLabelStartPos=g}}}(i||(i={})),i})),e(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=e.series,o=n.merge,a=n.pick;return function(e){function n(t,e,n,i,s){var l=this.chart.inverted,c=t.series,d=(c.xAxis?c.xAxis.len:this.chart.plotSizeX)||0;c=(c.yAxis?c.yAxis.len:this.chart.plotSizeY)||0;var u=t.dlBox||t.shapeArgs,h=a(t.below,t.plotY>a(this.translatedThreshold,c)),p=a(n.inside,!!this.options.stacking);u&&(0>(i=o(u)).y&&(i.height+=i.y,i.y=0),0<(u=i.y+i.height-c)&&u<i.height&&(i.height-=u),l&&(i={x:c-i.y-i.height,y:d-i.x-i.width,width:i.height,height:i.width}),p||(l?(i.x+=h?0:i.width,i.width=0):(i.y+=h?i.height:0,i.height=0))),n.align=a(n.align,!l||p?"center":h?"right":"left"),n.verticalAlign=a(n.verticalAlign,l||p?"middle":h?"top":"bottom"),r.prototype.alignDataLabel.call(this,t,e,n,i,s),n.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var i=[];e.compose=function(e){t.compose(r),-1===i.indexOf(e)&&(i.push(e),e.prototype.alignDataLabel=n)}}(i||(i={})),i})),e(n,"Series/Bar/BarSeries.js",[n["Series/Column/ColumnSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n.extend,o=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return i(n,e),n.defaultOptions=o(t.defaultOptions,{}),n}(t),r(n.prototype,{inverted:!0}),e.registerSeriesType("bar",n),n})),e(n,"Series/Scatter/ScatterSeries.js",[n["Series/Column/ColumnSeries.js"],n["Series/Line/LineSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i){var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=i.addEvent,a=i.extend,s=i.merge;return a((i=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return r(n,t),n.prototype.applyJitter=function(){var t=this,e=this.options.jitter,n=this.points.length;e&&this.points.forEach((function(i,r){["x","y"].forEach((function(o,a){var s="plot"+o.toUpperCase();if(e[o]&&!i.isNull){var l=t[o+"Axis"],c=e[o]*l.transA;if(l&&!l.isLog){var d=Math.max(0,i[s]-c);l=Math.min(l.len,i[s]+c),a=1e4*Math.sin(r+a*n),i[s]=d+(l-d)*(a-Math.floor(a)),"x"===o&&(i.clientX=i.plotX)}}}))}))},n.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},n.defaultOptions=s(e.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),n}(e)).prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(i,"afterTranslate",(function(){this.applyJitter()})),n.registerSeriesType("scatter",i),i})),e(n,"Series/CenteredUtilities.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],(function(t,e,n){var i,r=t.deg2rad,o=n.isNumber,a=n.pick,s=n.relativeLength;return function(t){t.getCenter=function(){var t=this.options,n=this.chart,i=2*(t.slicedOffset||0),r=n.plotWidth-2*i,o=n.plotHeight-2*i,l=t.center,c=Math.min(r,o),d=t.size,u=t.innerSize||0;for("string"==typeof d&&(d=parseFloat(d)),"string"==typeof u&&(u=parseFloat(u)),t=[a(l[0],"50%"),a(l[1],"50%"),a(d&&0>d?void 0:t.size,"100%"),a(u&&0>u?void 0:t.innerSize||0,"0%")],!n.angular||this instanceof e||(t[3]=0),l=0;4>l;++l)d=t[l],n=2>l||2===l&&/%$/.test(d),t[l]=s(d,[r,o,c,t[2]][l])+(n?i:0);return t[3]>t[2]&&(t[3]=t[2]),t},t.getStartAndEndRadians=function(t,e){return t=o(t)?t:0,e=o(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}(i||(i={})),i})),e(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=t.setAnimation,o=n.addEvent,a=n.defined;t=n.extend;var s=n.isNumber,l=n.pick,c=n.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return i(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=this.connectorShapes,i=e.connectorShape;return n[i]&&(i=n[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=l(this.name,"Slice");var n=function(t){e.slice("select"===t.type)};return o(this,"select",n),o(this,"unselect",n),this},e.prototype.isValid=function(){return s(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var n=this,i=this.series,r=i.chart,o=i.options.ignoreHiddenPoint;e=l(e,o),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,i.options.data[i.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){n[e]&&n[e][t?"show":"hide"](t)})),this.legendItem&&r.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),o&&(i.isDirty=!0),e&&r.redraw())},e.prototype.slice=function(t,e,n){var i=this.series;r(n,i.chart),l(e,!0),this.sliced=this.options.sliced=a(t)?t:!this.sliced,i.options.data[i.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,n){var i=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*i.x-e.x,2*i.y-e.y,i.x,i.y]:["L",i.x,i.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,n){e=e.touchingSliceAt;var i=this.series,r=i.center[0],o=i.chart.plotWidth,a=i.chart.plotLeft;i=t.alignment;var s=this.shapeArgs.r;return n=c(n.crookDistance,1),n=["L",o="left"===i?r+s+(o+a-r-s)*(1-n):a+(r-s)*n,t.y],r=!0,("left"===i?o>t.x||o<e.x:o<t.x||o>e.x)&&(r=!1),t=[["M",t.x,t.y]],r&&t.push(n),t.push(["L",e.x,e.y]),t}}}),e})),e(n,"Series/Pie/PieSeries.js",[n["Series/CenteredUtilities.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Series/Pie/PiePoint.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r,o,a,s,l){var c=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=t.getStartAndEndRadians;n=n.noop;var u=l.clamp,h=l.extend,p=l.fireEvent,f=l.merge,g=l.pick,m=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,n=e.points,i=e.startAngleRad;t||n.forEach((function(t){var n=t.graphic,r=t.shapeArgs;n&&r&&(n.attr({r:g(t.startR,e.center&&e.center[3]/2),start:i,end:i}),n.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var i=this.center[0],r=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(i,r,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:s.arc(i,r,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,n){var i=this.center,r=this.radii?this.radii[n.index]||0:i[2]/2;return t=Math.asin(u((t-i[1])/(r+n.labelDistance),-1,1)),i[0]+(e?-1:1)*Math.cos(t)*(r+n.labelDistance)+(0<n.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,n,i,r=this,o=r.chart,a=o.renderer,s=r.options.shadow;this.drawEmpty(),!s||r.shadowGroup||o.styledMode||(r.shadowGroup=a.g("shadow").attr({zIndex:-1}).add(r.group)),r.points.forEach((function(l){var c={};if(e=l.graphic,!l.isNull&&e){var d=void 0;i=l.shapeArgs,t=l.getTranslate(),o.styledMode||(d=l.shadowGroup,s&&!d&&(d=l.shadowGroup=a.g("shadow").add(r.shadowGroup)),d&&d.attr(t),n=r.pointAttribs(l,l.selected&&"select")),l.delayedRendering?(e.setRadialReference(r.center).attr(i).attr(t),o.styledMode||e.attr(n).attr({"stroke-linejoin":"round"}).shadow(s,d),l.delayedRendering=!1):(e.setRadialReference(r.center),o.styledMode||f(!0,c,n),f(!0,c,i,t),e.animate(c)),e.attr({visibility:l.visible?"inherit":"hidden"}),e.addClass(l.getClassName(),!0)}else e&&(l.graphic=e.destroy())}))},e.prototype.sortByAngle=function(t,e){t.sort((function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e}))},e.prototype.translate=function(t){this.generatePoints();var e=this.options,n=e.slicedOffset,i=n+(e.borderWidth||0),r=d(e.startAngle,e.endAngle),o=this.startAngleRad=r.start;r=(this.endAngleRad=r.end)-o;var a=this.points,s=e.dataLabels.distance;e=e.ignoreHiddenPoint;var l,c=a.length,u=0;for(t||(this.center=t=this.getCenter()),l=0;l<c;l++){var h=a[l],f=o+u*r;!h.isValid()||e&&!h.visible||(u+=h.percentage/100);var v=o+u*r,y={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*f)/1e3,end:Math.round(1e3*v)/1e3};h.shapeType="arc",h.shapeArgs=y,h.labelDistance=g(h.options.dataLabels&&h.options.dataLabels.distance,s),h.labelDistance=m(h.labelDistance,y.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,h.labelDistance),(v=(v+f)/2)>1.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI),h.slicedTranslation={translateX:Math.round(Math.cos(v)*n),translateY:Math.round(Math.sin(v)*n)},y=Math.cos(v)*t[2]/2;var b=Math.sin(v)*t[2]/2;h.tooltipPos=[t[0]+.7*y,t[1]+.7*b],h.half=v<-Math.PI/2||v>Math.PI/2?1:0,h.angle=v,f=Math.min(i,h.labelDistance/5),h.labelPosition={natural:{x:t[0]+y+Math.cos(v)*h.labelDistance,y:t[1]+b+Math.sin(v)*h.labelDistance},final:{},alignment:0>h.labelDistance?"center":h.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(v)*f,y:t[1]+b+Math.sin(v)*f},touchingSliceAt:{x:t[0]+y,y:t[1]+b}}}}p(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,n=e.length,i=this.options.ignoreHiddenPoint,r=0;for(t=0;t<n;t++){var o=e[t];!o.isValid()||i&&!o.visible||(r+=o.y)}for(this.total=r,t=0;t<n;t++)(o=e[t]).percentage=0<r&&(o.visible||!i)?o.y/r*100:0,o.total=r},e.defaultOptions=f(o.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),e}(o),h(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:i.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:n,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:r,requireSorting:!1,searchPoint:n,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l})),e(n,"Series/Pie/PieDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Globals.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,i,r){var o,a=e.noop,s=n.distribute,l=i.series,c=r.arrayMax,d=r.clamp,u=r.defined,h=r.merge,p=r.pick,f=r.relativeLength;return function(e){function n(){var t,e,n,i,r,o,a,d,f,g,m,v,y=this,b=y.data,x=y.chart,_=y.options.dataLabels||{},O=_.connectorPadding,w=x.plotWidth,C=x.plotHeight,$=x.plotLeft,k=Math.round(x.chartWidth/3),S=y.center,E=S[2]/2,j=S[1],A=[[],[]],P=[0,0,0,0],M=y.dataLabelPositioners;y.visible&&(_.enabled||y._hasPointLabels)&&(b.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),l.prototype.drawDataLabels.apply(y),b.forEach((function(t){t.dataLabel&&(t.visible?(A[t.half].push(t),t.dataLabel._pos=null,!u(_.style.width)&&!u(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>k&&(t.dataLabel.css({width:Math.round(.7*k)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),A.forEach((function(e,n){var l,c=e.length,h=[];if(c){if(y.sortByAngle(e,n-.5),0<y.maxLabelDistance){var b=Math.max(0,j-E-y.maxLabelDistance),k=Math.min(j+E+y.maxLabelDistance,x.plotHeight);e.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,j-E-t.labelDistance),t.bottom=Math.min(j+E+t.labelDistance,x.plotHeight),l=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+l/2,size:l,rank:t.y},h.push(t.distributeBox))})),s(h,b=k+l-b,b/5)}for(m=0;m<c;m++){if(t=e[m],o=t.labelPosition,i=t.dataLabel,g=!1===t.visible?"hidden":"inherit",f=b=o.natural.y,h&&u(t.distributeBox)&&(void 0===t.distributeBox.pos?g="hidden":(a=t.distributeBox.size,f=M.radialDistributionY(t))),delete t.positionIndex,_.justify)d=M.justify(t,E,S);else switch(_.alignTo){case"connectors":d=M.alignToConnectors(e,n,w,$);break;case"plotEdges":d=M.alignToPlotEdges(i,n,w,$);break;default:d=M.radialDistributionX(y,t,f,b)}i._attr={visibility:g,align:o.alignment},v=t.options.dataLabels||{},i._pos={x:d+p(v.x,_.x)+({left:O,right:-O}[o.alignment]||0),y:f+p(v.y,_.y)-10},o.final.x=d,o.final.y=f,p(_.crop,!0)&&(r=i.getBBox().width,b=null,d-r<O&&1===n?(b=Math.round(r-d+O),P[3]=Math.max(b,P[3])):d+r>w-O&&0===n&&(b=Math.round(d+r-w+O),P[1]=Math.max(b,P[1])),0>f-a/2?P[0]=Math.max(Math.round(a/2-f),P[0]):f+a/2>C&&(P[2]=Math.max(Math.round(f+a/2-C),P[2])),i.sideOverflow=b)}}})),0===c(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),this.points.forEach((function(t){var r;(v=h(_,t.options.dataLabels),e=p(v.connectorWidth,1))&&(n=t.connector,(i=t.dataLabel)&&i._pos&&t.visible&&0<t.labelDistance?(g=i._attr.visibility,(r=!n)&&(t.connector=n=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(y.dataLabelsGroup),x.styledMode||n.attr({"stroke-width":e,stroke:v.connectorColor||t.color||"#666666"})),n[r?"attr":"animate"]({d:t.getConnectorPath()}),n.attr("visibility",g)):n&&(t.connector=n.destroy()))})))}function i(){this.points.forEach((function(t){var e,n=t.dataLabel;n&&t.visible&&((e=n._pos)?(n.sideOverflow&&(n._attr.width=Math.max(n.getBBox().width-n.sideOverflow,0),n.css({width:n._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),n.shortened=!0),n.attr(n._attr),n[n.moved?"animate":"attr"](e),n.moved=!0):n&&n.attr({y:-9999})),delete t.distributeBox}),this)}function r(t){var e=this.center,n=this.options,i=n.center,r=n.minSize||80,o=null!==n.size;if(!o){if(null!==i[0])var a=Math.max(e[2]-Math.max(t[1],t[3]),r);else a=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2;null!==i[1]?a=d(a,r,e[2]-Math.max(t[0],t[2])):(a=d(a,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),a<e[2]?(e[2]=a,e[3]=Math.min(f(n.innerSize||0,a),a),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0}return o}var o=[],g={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,n,i){return t.getX(n<e.top+2||n>e.bottom-2?i:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,i){return t=t.getBBox().width,e?t+i:n-t-i},alignToConnectors:function(t,e,n,i){var r,o=0;return t.forEach((function(t){(r=t.dataLabel.getBBox().width)>o&&(o=r)})),e?o+i:n-o-i}};e.compose=function(e){t.compose(l),-1===o.indexOf(e)&&(o.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=a,e.drawDataLabels=n,e.placeDataLabels=i,e.verifyDataLabelOverflow=r)}}(o||(o={})),o})),e(n,"Extensions/OverlappingDataLabels.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e){var n=!1;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})})),r(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0}return n}var i=e.addEvent,r=e.fireEvent,o=e.isArray,a=e.isNumber,s=e.objectEach,l=e.pick;i(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&s(t.stacking.stacks,(function(t){s(t,(function(t){t.label&&"hidden"!==t.label.visibility&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(i){var r=i.options.dataLabels;i.visible&&(!1!==r.enabled||i._hasPointLabels)&&((r=function(i){return i.forEach((function(i){i.visible&&(o(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach((function(r){var o=r.options;r.labelrank=l(o.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),o.allowOverlap?(r.oldOpacity=r.opacity,r.newOpacity=1,n(r,t)):e.push(r)}))}))})(i.nodes||[]),r(i.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,i,o,s=this,l=t.length,c=s.renderer,d=!1,u=function(t){var e,n,i=t.box?0:t.padding||0,r=e=0;if(t&&(!t.alignAttr||t.placed)){var o=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},s=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=c.fontMetrics(null,t.element).h);var l=t.width-2*i;return(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?r=+n*l:a(t.x)&&Math.round(t.x)!==t.translateX&&(r=t.x-t.translateX),{x:o.x+(s.translateX||0)+i-(r||0),y:o.y+(s.translateY||0)+i-e,width:t.width-2*i,height:t.height-2*i}}};for(i=0;i<l;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=u(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),i=0;i<l;i++){var h=(u=t[i])&&u.absoluteBox;for(e=i+1;e<l;++e){var p=(o=t[e])&&o.absoluteBox;!h||!p||u===o||0===u.newOpacity||0===o.newOpacity||p.x>=h.x+h.width||p.x+p.width<=h.x||p.y>=h.y+h.height||p.y+p.height<=h.y||((u.labelrank<o.labelrank?u:o).newOpacity=0)}}t.forEach((function(t){n(t,s)&&(d=!0)})),d&&r(s,"afterHideAllOverlappingLabels")}})),e(n,"Core/Responsive.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.extend,i=t.find,r=t.isArray,o=t.isObject,a=t.merge,s=t.objectEach,l=t.pick,c=t.splat,d=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),n(t.prototype,u.prototype)),t};var u=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,n={};return function t(n,i,a,l){var d;s(n,(function(n,s){if(!l&&-1<e.collectionsWithUpdate.indexOf(s)&&i[s])for(n=c(n),a[s]=[],d=0;d<Math.max(n.length,i[s].length);d++)i[s][d]&&(void 0===n[d]?a[s][d]=i[s][d]:(a[s][d]={},t(n[d],i[s][d],a[s][d],l+1)));else o(n)?(a[s]=r(n)?[]:{},t(n,i[s]||{},a[s],l+1)):a[s]=void 0===i[s]?null:i[s]}))}(t,this.options,n,0),n},t.prototype.matchResponsiveRule=function(t,e){var n=t.condition;(n.callback||function(){return this.chartWidth<=l(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=l(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=l(n.minWidth,0)&&this.chartHeight>=l(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var n=this,r=this.options.responsive,o=this.currentResponsive,s=[];!e&&r&&r.rules&&r.rules.forEach((function(t){void 0===t._id&&(t._id=d()),n.matchResponsiveRule(t,s)}),this),(e=a.apply(void 0,s.map((function(t){return i((r||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions})))).isResponsiveOptions=!0,(s=s.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),s?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/DefaultOptions.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/FormatUtilities.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Renderer/HTML/HTMLRenderer.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/MSPointer.js"],n["Core/Legend/Legend.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnSeries.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieSeries.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],(function(t,e,n,i,r,o,a,s,l,c,d,u,h,p,f,g,m,v,y,b,x,_,O,w,C,$,k,S,E,j,A,P,M){return t.animate=r.animate,t.animObject=r.animObject,t.getDeferredAnimation=r.getDeferredAnimation,t.setAnimation=r.setAnimation,t.stop=r.stop,t.timers=i.timers,t.AST=o,t.Axis=h,t.Chart=O,t.chart=O.chart,t.Fx=i,t.Legend=_,t.PlotLineOrBand=g,t.Point=y,t.Pointer=x.isRequired()?x:b,t.Series=w,t.SVGElement=l,t.SVGRenderer=c,t.Tick=m,t.Time=M,t.Tooltip=v,t.Color=P,t.color=P.parse,u.compose(c),d.compose(l),t.defaultOptions=n.defaultOptions,t.getOptions=n.getOptions,t.time=n.defaultTime,t.setOptions=n.setOptions,t.dateFormat=a.dateFormat,t.format=a.format,t.numberFormat=a.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=s.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=C.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,k.compose($),j.compose(w),p.compose(h),f.compose(h),E.compose(S),g.compose(h),A.compose(O),t})),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]}))},function(t,e,n){(function(t,i){var r;
7
7
  /**
8
8
  * @license
9
9
  * Lodash <https://lodash.com/>