1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["public-containers-RatingCalculatorPage-RatingCalculatorPage"],{63957(t,e,i){"use strict";i.d(e,{Ay:()=>TimeSeriesChart});var n=i(39190),o=i(85906),r=i(271),s=i(31152),a=i.n(s),h=i(28425),l=i.n(h),c=i(2672),d=i.n(c),p=i(30326),u=i.n(p),f=i(57864),g=i(74954),m=i(14202);l()(a()),d()(a());let y=!1;function BaseChart(t){const e=(0,f.A)(),i=(0,g.tz)(),[s,h]=(0,o.useState)(!1),l=(0,o.useMemo)(()=>function(t,e){return{months:(0,n.A)(0,12).map(t=>e.format(new Date(2020,t,1),"LLLL")),shortMonths:(0,n.A)(0,12).map(t=>e.format(new Date(2020,t,1),"LLL")),weekdays:(0,n.A)(1,8).map(t=>e.format((0,r.qg)(String(t),"i",new Date),"EEEE")),shortWeekdays:(0,n.A)(1,8).map(t=>e.format((0,r.qg)(String(t),"i",new Date),"EEE")),loading:"Loadingâ¦"}}(0,e),[i,e]);return(0,o.useEffect)(()=>{y||(a().setOptions({time:{useUTC:!1},chart:{style:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif",fontSize:"1rem"},parallelAxes:{startOfWeek:1}},plotOptions:{series:{animation:!1}},lang:l}),y=!0),h(!0)},[l]),s?(0,m.jsx)(u(),{highcharts:a(),style:{width:t.width,height:t.height},options:{series:t.series,...t.options},immutable:!0}):null}const v={title:{text:void 0},chart:{type:"areaspline"},credits:{enabled:!1},xAxis:{type:"datetime"},yAxis:{allowDecimals:!1,title:{text:void 0},min:0},tooltip:{shared:!0}};function TimeSeriesChart(t){const{height:e,series:i,options:n,...o}=t,r={...v,...n};return i.length<2&&(r.legend={enabled:!1}),(0,m.jsx)(BaseChart,{...o,series:i,options:r,height:e||300})}},34153(t,e,i){"use strict";i.d(e,{A:()=>AsyncAutoComplete});var n=i(89215),o=i(49095),r=i(14202);function AsyncAutoComplete(t){return(0,r.jsx)(n.A,{...t,options:(0,o.A)(t.loadOptions)})}},89215(t,e,i){"use strict";i.d(e,{A:()=>AutoComplete});var n=i(85906),o=i(74954),r=i(78801),s=i.n(r),a=i(19363);const h={value:"XUNcQO",placeholder:"HxIQCw",input:"HDKTQH",multiSelect:"uAB6fy",multiSelectValue:"lhZ5F9",removeMultiItemButton:"V90Av4",menu:"UghL0u",tall:"KhS4wY",isOpen:"EBQngs",menuItem:"hN0zQd",highlighted:"Dyt19m",selected:"KcJKZP",faded:"feHfud",icon:"KIi9KG","icon--arrow":"gpx1QZ","icon--clear":"OgrUYF"};var l=i(31362),c=i(32475),d=i(62227),p=i(57259),u=i(41073),f=i(42673),g=i(14202);const m=s().bind(h);function y(t,e,i){return e?(0,g.jsx)(p.A,{size:"small",alignSelf:"center",textStyle:"primary",style:{margin:10}}):i?(0,g.jsx)(d.A,{name:"exclamation-circle",height:36,width:36,display:"block",textStyle:"danger",className:m("icon")}):t.disabled||!t.onClear||(0,l.A)(t.value)?(0,g.jsx)(d.A,{name:"chevron-right",height:36,width:36,cursor:t.disabled?"not-allowed":"pointer",display:"block",className:m("icon","icon--arrow"),"aria-hidden":!0}):(0,g.jsx)(d.A,{onClick:t.onClear,name:"clear-field",height:36,width:36,cursor:"pointer",display:"block",className:m("icon","icon--clear")})}function SmartSelectContent({isLoading:t,hasError:e,renderValue:i,resolveIsOptionSelected:o,optionRenderer:r,valueKey:s,labelKey:h,creatable:l,newOptionCreator:d,promptTextCreator:p,validationState:v,isAsync:x,multi:b,renderNoResults:w,enrichResults:k,combobox:S}){const M=(0,g.jsx)("input",{...S.getInputProps(),className:m("input")});return(0,g.jsx)(u.A,{isOpen:S.isOpen||!1,placement:["bottom-start","top-start"],offset:[0,2],minWidthEqualsToReference:!0,positionInvalidationKey:String(t)+S.inputValue,content:(i,n)=>{const{options:u}=S;let y;if(u.length>0)y=u.map((t,e)=>{if("divider"===t.type)return(0,g.jsx)(a.h,{children:(0,g.jsx)(c.A,{marginY:1})},e+"_divider");const i=o(t);return(0,g.jsx)(a.h,{...S.getItemProps({option:t,index:e,isSelected:i,className:m("menuItem",{highlighted:S.highlightedIndex===e,selected:i})}),testId:`smart_select_option_${e}`,children:r?r(t,{valueKey:s,labelKey:h,multi:b,isSelected:i}):t[h]},e)});else if(!l&&t)y=(0,g.jsx)(a.h,{className:m("menuItem",{faded:!0}),children:"Loadingâ¦"});else if(l&&!S.inputValue)y=(0,g.jsx)(a.h,{className:m("menuItem",{faded:!0}),children:"Type to create a new option"});else if(!l&&!S.inputValue||x&&!S.inputValue)y=(0,g.jsx)(a.h,{className:m("menuItem",{faded:!0}),children:"Type to search"});else if(!l){const t=m("menuItem");y="function"==typeof w?w({className:t,hasError:e}):e?(0,g.jsx)(a.h,{className:m(t,{faded:!0}),textStyle:"danger",children:"Failed to load options. Please, try again later."}):(0,g.jsx)(a.h,{className:m(t,{faded:!0}),children:"No results"})}return"function"==typeof k&&(y=k({combobox:S,isLoading:t,hasError:e,results:y,options:u,inputValue:S.inputValue,classNames:{item:m("menuItem"),faded:m("faded"),highlighted:m("highlighted"),selected:m("selected")}})),(0,g.jsxs)(a.h,{ref:i,...(0,f.A)(n,{...S.getMenuProps(),className:m("menu",{tall:window.innerHeight>1e3})}),children:[y,S.inputValue&&l&&(0,g.jsx)(a.h,{...S.getItemProps({option:d({inputValue:S.inputValue,valueKey:s,labelKey:h}),index:u.length,isSelected:!1,className:m("menuItem",{highlighted:S.highlightedIndex===u.length})}),children:p(S.inputValue)})]})},children:o=>(0,g.jsxs)(a.h,{ref:o,cursor:S.disabled?"not-allowed":void 0,display:"flex",padding:0,className:m("form-control",v&&`is-${v}`,{isOpen:S.isOpen,isDisabled:S.disabled}),...S.getComboboxProps(),children:[(0,g.jsx)(a.h,{display:"flex",flexGrow:1,position:"relative",children:b?(0,g.jsxs)(a.h,{alignItems:"center",display:"flex",flexWrap:"wrap",flexGrow:1,className:m("multiSelect"),children:[i(S.value,S.inputValue),M]}):(0,g.jsxs)(n.Fragment,{children:[i(S.value,S.inputValue),M]})}),(0,g.jsx)(a.h,{alignItems:"center",display:"flex",flexShrink:0,children:y(S,t,e)})]})})}var v=i(40120);
1function x(t){const[e,i]=(0,n.useState)(!1),[o,r]=(0,n.useState)(""),[s,a]=(0,n.useState)(-1),[h,l]=(0,n.useState)(null),c=(0,n.useRef)(null),d=(0,n.useRef)({});return(0,n.useEffect)(()=>{"keydown"===h&&d.current[s]?.node.scrollIntoView({block:"nearest"})},[s,h]),(0,n.useEffect)(()=>{if(e){for(const t in d.current)if(d.current[t].isSelected){d.current[t].node.scrollIntoView({block:"nearest"});break}}else c.current?.blur(),a(-1)},[e]),{options:t.options,isOpen:e,inputValue:o,value:t.value,disabled:t.disabled,highlightedIndex:s,onClear:t.onClear,onSelectOption:t.onSelectOption,onRemoveOption:t.onRemoveOption,getInputProps:()=>({...t.inputProps,type:"text",ref:(0,v.A)(c,t.inputProps?.ref),value:o,disabled:t.disabled,"aria-autocomplete":"list",autoComplete:t.inputProps?.autoComplete||"do-not-autofill","data-1p-ignore":!0,"data-bwignore":!0,"data-lpignore":!0,"data-form-type":"other",onChange:e=>{t.onInputValueChange(e.currentTarget.value),r(e.currentTarget.value),i(!0)},onFocus:e=>{(t.openMenuOnFocus||o)&&i(!0),""===e.currentTarget.value&&t.onInputValueChange(""),t.inputProps?.onFocus?.(e)},onBlur:e=>{i(!1),t.onInputValueChange(""),r(""),t.inputProps?.onBlur?.(e)},onKeyDown:e=>(l("keydown"),"Enter"===e.key?(e.preventDefault(),void(s in d.current&&d.current[s].handleSelect())):"Escape"!==e.key?"ArrowDown"===e.key?(e.preventDefault(),void a(e=>t.creatable&&e<t.options.length||e<t.options.length-1?e+1:e)):"ArrowUp"===e.key?(e.preventDefault(),void a(e=>-1===e?t.options.length-1:e>0?e-1:e)):void("Backspace"!==e.key||""===e.currentTarget.value&&t.onRemoveOption&&(Array.isArray(t.value)?t.value.length>0&&t.onRemoveOption(t.value[t.value.length-1]):t.value&&t.onRemoveOption(t.value))):void c.current?.blur())}),getItemProps:e=>{const n=()=>{e.onPress?e.onPress():(t.onSelectOption(e.option),t.onInputValueChange(""),r(""),t.closeOnSelectOption&&i(!1))};return{ref:t=>{t?d.current[e.index]={node:t,isSelected:e.isSelected,handleSelect:n}:delete d.current[e.index]},onMouseDown:t=>{l("mousedown"),t.preventDefault(),n()},onMouseEnter:()=>{l("mouseenter"),a(e.index)},onMouseLeave:()=>{l("mouseleave"),a(-1)},className:e.className}},getMenuProps:()=>({}),getComboboxProps:()=>({onClick:()=>{c.current?.focus()}})}}const b=s().bind(h);function Combobox(t){const e=x({options:t.options,value:t.selectedOption,onInputValueChange:t.onInputValueChange,onSelectOption:t.onSelectOption,onRemoveOption:t.onRemoveOption,disabled:t.disabled,creatable:t.creatable,closeOnSelectOption:t.closeOnSelectOption,onClear:t.onClear,inputProps:t.inputProps,openMenuOnFocus:t.openMenuOnFocus});return(0,g.jsx)(SmartSelectContent,{validationState:t.validationState,multi:t.multi,valueKey:t.valueKey,labelKey:t.labelKey,newOptionCreator:t.newOptionCreator,promptTextCreator:t.promptTextCreator,optionRenderer:t.optionRenderer,enrichResults:t.enrichResults,renderNoResults:t.renderNoResults,combobox:e,creatable:t.creatable,isAsync:t.isAsync,isLoading:t.isLoading,hasError:t.hasError,renderValue:(i,n)=>{const{valueKey:o,labelKey:r,multi:s,valueRenderer:h,placeholder:l}=t;return(0,g.jsx)(a.h,{className:b("value"),children:n?null:!i||!1!==t.searchable&&e.isOpen?(0,g.jsx)(a.h,{className:b("placeholder"),children:l||"Selectâ¦"}):h?h(i,{valueKey:o,labelKey:r,multi:s}):i[r]})},resolveIsOptionSelected:e=>!!t.selectedOption&&t.selectedOption[t.valueKey]===e[t.valueKey]})}const w=s().bind(h);function MultiCombobox(t){const e=x({options:t.options,value:t.selectedOptions,onInputValueChange:t.onInputValueChange,onSelectOption:t.onSelectOption,onRemoveOption:t.onRemoveOption,disabled:t.disabled,creatable:t.creatable,closeOnSelectOption:t.closeOnSelectOption,onClear:t.onClear,inputProps:t.inputProps,openMenuOnFocus:t.openMenuOnFocus});return(0,g.jsx)(SmartSelectContent,{validationState:t.validationState,multi:t.multi,valueKey:t.valueKey,labelKey:t.labelKey,creatable:t.creatable,isAsync:t.isAsync,isLoading:t.isLoading,hasError:t.hasError,newOptionCreator:t.newOptionCreator,promptTextCreator:t.promptTextCreator,optionRenderer:t.optionRenderer,enrichResults:t.enrichResults,renderNoResults:t.renderNoResults,combobox:e,renderValue:(i,n)=>{const{valueKey:o,labelKey:r,multi:s,valueRenderer:h,placeholder:l}=t;return Array.isArray(i)&&i.length>0?i.map(i=>(0,g.jsxs)(a.h,{className:w("multiSelectValue"),children:[h?h(i,{valueKey:o,labelKey:r,multi:s}):i[r],e.onRemoveOption&&(0,g.jsx)(a.h,{className:w("removeMultiItemButton"),"aria-hidden":!0,onClick:e.disabled?void 0:()=>e.onRemoveOption?.(i),children:"Ã"})]},i[t.valueKey])):n?null:(0,g.jsx)(a.h,{className:w("value"),children:(0,g.jsx)(a.h,{className:w("placeholder"),children:l||"Selectâ¦"})})},resolveIsOptionSelected:e=>!!t.selectedOptions&&t.selectedOptions.some(i=>i[t.valueKey]===e[t.valueKey])})}function k(t){return(0,g.jsx)(o.sA,{id:"smart_select.create_new_option",defaultMessage:'Create "{inputValue}"',values:{inputValue:t}})}function SmartSelect_SmartSelect(t){const{placeholder:e,multi:i,disabled:n,valueKey:o="value",labelKey:r="label",openMenuOnFocus:s=!0,promptTextCreator:a=k,options:h=[],onInputValueChange:l,newOptionCreator:c,validationState:d}=t,p={...t.inputProps,"data-loading":t.isLoading,readOnly:!1===t.searchable,disabled:t.disabled,autoFocus:t.autoF
1ocus,name:t.name,tabIndex:t.tabIndex,onFocus:t.onFocus,onBlur:t.onBlur};return t.multi?(0,g.jsx)(MultiCombobox,{placeholder:e,validationState:d,multi:i,selectedOptions:t.value,options:h,valueKey:o,labelKey:r,onClear:t.onClear,creatable:t.creatable,searchable:t.searchable,isAsync:t.isAsync,isLoading:t.isLoading,hasError:t.hasError,promptTextCreator:a,newOptionCreator:c,optionRenderer:t.optionRenderer,valueRenderer:t.valueRenderer,enrichResults:t.enrichResults,renderNoResults:t.renderNoResults,inputProps:p,closeOnSelectOption:!1,openMenuOnFocus:s,disabled:n,onSelectOption:e=>{if(Array.isArray(t.value)){t.value.some(t=>t[o]===e[o])?t.onChange(t.value.filter(t=>t[o]!==e[o])):t.onChange(t.value.concat(e))}else t.onChange([e])},onRemoveOption:e=>{Array.isArray(t.value)&&t.onChange(t.value.filter(t=>t[o]!==e[o]))},onInputValueChange:l}):(0,g.jsx)(Combobox,{placeholder:e,validationState:d,multi:i,selectedOption:t.value,options:h,valueKey:o,labelKey:r,onClear:t.onClear,creatable:t.creatable,searchable:t.searchable,isAsync:t.isAsync,isLoading:t.isLoading,hasError:t.hasError,promptTextCreator:a,newOptionCreator:c,optionRenderer:t.optionRenderer,valueRenderer:t.valueRenderer,enrichResults:t.enrichResults,renderNoResults:t.renderNoResults,inputProps:p,closeOnSelectOption:!0,openMenuOnFocus:s,disabled:n,onRemoveOption:e=>{t.value&&t.value[o]===e[o]&&t.onChange(void 0)},onSelectOption:e=>{if(t.multi)if(Array.isArray(t.value)){t.value.some(t=>t[o]===e[o])?t.onChange(t.value.filter(t=>t[o]!==e[o])):t.onChange(t.value.concat(e))}else t.onChange([e]);else t.onChange(e)},onInputValueChange:l})}var S=i(19738),M=i(63805),P=i(94058),O=i(35481),L=i.n(O),j={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};z.rankings=j;var R=function(t,e){return String(t.rankedValue).localeCompare(String(e.rankedValue))};function z(t,e,i){void 0===i&&(i={});var n=i,o=n.keys,r=n.threshold,s=void 0===r?j.MATCHES:r,a=n.baseSort,h=void 0===a?R:a,l=n.sorter,c=void 0===l?function(t){return t.sort(function(t,e){return function(t,e,i){var n=-1,o=1,r=t.rank,s=t.keyIndex,a=e.rank,h=e.keyIndex;return r===a?s===h?i(t,e):s<h?n:o:r>a?n:o}(t,e,h)})}:l,d=t.reduce(function(t,n,r){var a=function(t,e,i,n){if(!e){return{rankedValue:t,rank:W(t,i,n),keyIndex:-1,keyThreshold:n.threshold}}var o=function(t,e){for(var i=[],n=0,o=e.length;n<o;n++)for(var r=e[n],s=U(r),a=X(t,r),h=0,l=a.length;h<l;h++)i.push({itemValue:a[h],attributes:s});return i}(t,e);return o.reduce(function(t,e,o){var r=t.rank,s=t.rankedValue,a=t.keyIndex,h=t.keyThreshold,l=e.itemValue,c=e.attributes,d=W(l,i,n),p=s,u=c.minRanking,f=c.maxRanking,g=c.threshold;return d<u&&d>=j.MATCHES?d=u:d>f&&(d=f),d>r&&(r=d,a=o,h=g,p=l),{rankedValue:p,rank:r,keyIndex:a,keyThreshold:h}},{rankedValue:t,rank:j.NO_MATCH,keyIndex:-1,keyThreshold:n.threshold})}(n,o,e,i),h=a.rank,l=a.keyThreshold;h>=(void 0===l?s:l)&&t.push((0,P.A)({},a,{item:n,index:r}));return t},[]);return c(d).map(function(t){return t.item})}function W(t,e,i){return t=Y(t,i),(e=Y(e,i)).length>t.length?j.NO_MATCH:t===e?j.CASE_SENSITIVE_EQUAL:(t=t.toLowerCase())===(e=e.toLowerCase())?j.EQUAL:t.startsWith(e)?j.STARTS_WITH:t.includes(" "+e)?j.WORD_STARTS_WITH:t.includes(e)?j.CONTAINS:1===e.length?j.NO_MATCH:(n=t,o="",n.split(" ").forEach(function(t){t.split("-").forEach(function(t){o+=t.substr(0,1)})}),o).includes(e)?j.ACRONYM:function(t,e){var i=0,n=0;function o(t,e,n){for(var o=n,r=e.length;o<r;o++){if(e[o]===t)return i+=1,o+1}return-1}function r(t){var n=1/t,o=i/e.length;return j.MATCHES+o*n}var s=o(e[0],t,0);if(s<0)return j.NO_MATCH;n=s;for(var a=1,h=e.length;a<h;a++){if(!((n=o(e[a],t,n))>-1))return j.NO_MATCH}return r(n-s)}(t,e);var n,o}function Y(t,e){return t=""+t,e.keepDiacritics||(t=L()(t)),t}function X(t,e){var i;if("object"==typeof e&&(e=e.key),"function"==typeof e)i=e(t);else if(null==t)i=null;else if(Object.hasOwnProperty.call(t,e))i=t[e];else{if(e.includes("."))return function(t,e){for(var i=t.split("."),n=[e],o=0,r=i.length;o<r;o++){for(var s=i[o],a=[],h=0,l=n.length;h<l;h++){var c=n[h];if(null!=c)if(Object.hasOwnProperty.call(c,s)){var d=c[s];null!=d&&a.push(d)}else"*"===s&&(a=a.concat(c))}n=a}if(Array.isArray(n[0])){var p=[];return p.concat.apply(p,n)}return n}(e,t);i=null}return null==i?[]:Array.isArray(i)?i:[String(i)]}var _={maxRanking:1/0,minRanking:-1/0};function U(t){return"string"==typeof t?_:(0,P.A)({},_,t)}var V=i(28402),q=i(67572),Z=i(80668);function Q(t){return"string"==typeof t}function $(t){return!!Q(t)||!(!Array.isArray(t)||!Q(t[0]))}function tt(t){return Array.isArray(t)?t.length>0:null!=t&&""!==t}function et({inputValue:t,valueKey:e,labelKey:i}){const n={};return n[e]=t,n[i]=t,n}function AutoComplete(t){const{onChange:e,options:i,value:o,assignWholeObject:r,disableMatchSorter:s,newOptionCreator:a=et,matchFields:h,ignoreValues:l,autoload:c=!0,clearable:d=!0,valueKey:p="value",labelKey:u="label",...f}
1=t,[m,y]=(0,n.useState)(c?"":void 0),[v,x]=(0,n.useState)(c),b=function(t){const[e,i]=(0,n.useState)({options:[],selectedOption:void 0,isLoading:!1,error:void 0}),o=(0,n.useRef)(new S.Ay),r=(0,q.A)(),s=(0,n.useMemo)(()=>{const{value:i}=t;if(tt(i)&&$(i)){if(Q(i))return e.selectedOption?.[t.valueKey]===i;if(Array.isArray(e.selectedOption)&&e.selectedOption.length===i.length)return e.selectedOption.every(e=>i.includes(e[t.valueKey]))}return!1},[t.value,e.selectedOption]),a=(0,n.useMemo)(()=>{if(Array.isArray(t.options))return null;if(t.term)return(0,V.A)(t.term)?{type:"singleValue",value:t.term}:{type:"term",term:t.term};const{value:e}=t;return tt(e)&&$(e)?Q(e)?s?{type:"term",term:""}:{type:"singleValue",value:e}:s?{type:"term",term:""}:{type:"multiValue",values:e}:{type:"term",term:""}},[t.value,t.term,t.options,s]);(0,n.useEffect)(()=>{tt(t.value)||i(t=>({...t,selectedOption:void 0}))},[t.value]);const h=(0,n.useCallback)(e=>{if(t.creatable)return t.newOptionCreator({inputValue:e,valueKey:t.valueKey,labelKey:t.labelKey})},[t.creatable,t.newOptionCreator,t.valueKey,t.labelKey]),l=(0,n.useCallback)(t=>{r.current&&(t instanceof S.AL?i(t=>({...t,isLoading:!1})):i(e=>({...e,isLoading:!1,error:t})))},[i]),c=(0,n.useCallback)(async(e,n)=>{if("function"==typeof t.options){i(t=>({...t,isLoading:!0}));const o=await t.options(e,{cancelToken:n});return i(t=>({...t,isLoading:!1})),o.options}return t.options||[]},[t.options]);(0,n.useEffect)(()=>()=>{o.current.cancel()},[]),(0,n.useEffect)(()=>{const{options:e}=t;Array.isArray(e)&&i(t=>({...t,isLoading:!1,error:void 0,options:e}))},[t.options]),(0,M.A)(()=>{const e=new S.Ay;return o.current=e,async function(){if(a&&(t.isInputDirty||"term"!==a.type)){i(t=>({...t,isLoading:!0,error:void 0}));try{if(await(0,Z.A)(200,e),e.isCancelled)return;const t=await c(a,e);if(e.isCancelled)return;i(e=>({...e,isLoading:!1,options:t}))}catch(t){l(t)}}}(),()=>{e.cancel()}},[a,t.isInputDirty]),(0,n.useEffect)(()=>{if(!t.term&&tt(t.value)&&!s){const{value:n}=t;if(tt(n)&&$(n)){if(Q(n)){const o=e.options.find(e=>e[t.valueKey]===n);if(o)return void i(t=>({...t,selectedOption:o}))}const{options:o}=e;if(Q(n)){const e=o.find(e=>e[t.valueKey]===n)||h(n);i(t=>({...t,selectedOption:e}))}else{const e=[];n.forEach(i=>{const n=o.find(e=>e[t.valueKey]===i)||h(i);n&&e.push(n)}),i(t=>({...t,selectedOption:e}))}return}i(t=>({...t,selectedOption:n}))}},[t.value,e.options,s]);let d=e.options;Array.isArray(t.options)&&!t.disableMatchSorter&&t.term&&(d=z(e.options,t.term,{keys:t.matchFields}));const{ignoreValues:p}=t;return p&&(d=d.filter(e=>!p.includes(e[t.valueKey]))),{...e,options:d}}({valueKey:p,labelKey:u,creatable:t.creatable,newOptionCreator:a,value:o,isInputDirty:v,term:m,options:i,matchFields:h||[u],disableMatchSorter:s,ignoreValues:l}),w=(0,n.useCallback)(e=>{y(e),x(!0),t.onInputValueChange&&t.onInputValueChange(e)},[y,t.onInputValueChange]);return(0,g.jsx)(SmartSelect_SmartSelect,{...f,onClear:d?()=>{y(""),t.onChange(void 0)}:void 0,valueKey:p,labelKey:u,onInputValueChange:w,onChange:e=>{let i;e&&(i=t.multi?r?e:Array.isArray(e)?e.map(t=>t[p]):e:r?e:e[p]),t.onChange(i)},isLoading:b.isLoading,hasError:Boolean(b.error),options:b.options,value:b.selectedOption,isAsync:"function"==typeof i,newOptionCreator:a,onFocus:t=>{void 0===m&&(y(""),x(!0)),f.onFocus&&f.onFocus(t)}})}},49095(t,e,i){"use strict";i.d(e,{A:()=>h});var n=i(85906),o=i(19738),r=i(73442),s=i(86490),a=i(59091);function h(t,e={}){const i=(0,r.A)(),h=(0,s.A)(a.dl),l=(0,n.useRef)(null),c=(0,n.useCallback)((n,r)=>{l.current&&l.current.cancel();const s=r?.cancelToken||new o.Ay;return l.current=s,t(n,{client:i,memoizeFor:e.memoizeFor,catalogId:e.catalogId||h,cancelToken:s})},[i,e.catalogId,h]);return(0,n.useEffect)(()=>()=>{l.current&&l.current.cancel()},[]),c}},71123(t,e,i){"use strict";i.d(e,{A:()=>ButtonGroup});var n=i(79400),o=i.n(n),r=i(19363),s=i(14202);function ButtonGroup(t){const{pill:e,className:i,...n}=t;return(0,s.jsx)(r.h,{role:"group",display:"inline-flex",className:o()({"btn-group--pill":e},"btn-group",i),...n})}},57864(t,e,i){"use strict";i.d(e,{A:()=>l});var n=i(85906),o=i(89931),r=i(99802),s=i(12922);function a(t,e){return(0,s.a)(t,e?.in).getDay()}var h=i(8027);function l(){const{dateFnsLocaleData:t}=(0,n.useContext)(h.A);return(0,n.useMemo)(()=>({format:(e,i,n)=>(0,o.GP)(e,i,{...n,locale:t}),startOfWeek:(e,i)=>(0,r.k)(e,{...i,locale:t}),firstDayOfWeek:a((0,r.k)(new Date,{locale:t}))}),[t])}},28402(t,e,i){"use strict";i.d(e,{A:()=>
1o});const n=/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/i;function o(t){return 36===t?.length&&n.test(t)}},60862(t,e,i){"use strict";i.d(e,{A:()=>r});var n=i(3633),o=i(85906);function r(t,e=100){const[i,r]=(0,o.useState)(t),s=(0,o.useMemo)(()=>(0,n.A)(t=>{r(t)},e),[r]);return(0,o.useEffect)(()=>(s(t),()=>{s.cancel()}),[t]),[i,s]}},2484(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>xt});var n=i(41398),o=i(35447),r=i(14901),s=i(19107),a=i(25343),h=i(52477),l=i(50560),c=i(41125),d=i(99737),p=i(23481),u=i(71123),f=i(45919),g=i(19363),m=i(36171),y=i(85906),v=i(59955),x=i(55279),b=i(60862),w=i(61825),k=i(86490),S=i(74954),M=i(76015),P=i(55156),O=i(74026),L=i(49853),j=i(16940),R=i(5306),z=i(14202);function DeferredInput({value:t,onCommit:e,isCommittable:i,...n}){const[o,r]=(0,y.useState)(t),s=(0,y.useRef)(void 0),a=(0,y.useRef)(e);function h(e){e!==t&&i(e)&&a.current(e)}function l(){clearTimeout(s.current),i(o)?h(o):r(t)}return a.current=e,(0,y.useEffect)(()=>{r(t)},[t]),(0,y.useEffect)(()=>()=>clearTimeout(s.current),[]),(0,z.jsx)(R.A,{...n,value:o,onChange:t=>{const e=t.currentTarget.value;r(e),clearTimeout(s.current),s.current=setTimeout(()=>h(e),800)},onBlur:l,onKeyDown:t=>{"Enter"===t.key&&l()}})}var W=i(34153);function Y(t){return{value:t.id,label:t.brand?`${t.fullName} (${t.brand.name})`:t.fullName,listing:t}}function ListingPicker(t){(0,S.tz)();const e=(0,x.A)();return(0,z.jsx)(W.A,{name:"listingId",assignWholeObject:!0,placeholder:"Pick a listing or start typing its name",loadOptions:async(i,{client:n,cancelToken:o})=>{if("term"!==i.type)return{options:[]};return{options:(await n.get(e.generate("api.bmp.rating_calculator.listing.autocomplete",{q:i.term,brandId:t.brandId,actorContext:t.actorContext}),{cancelToken:o})).map(Y)}},value:t.value?Y(t.value):void 0,onChange:e=>t.onChange(e?.listing??null),inputProps:{id:"listingId"}})}var X=i(63957);const _=/^\d{4}-\d{2}-\d{2}$/;function U(t,e,i){return _.test(t)&&t>=e&&t<=i}function V(t){return null===t?1.1:Math.max(1.1,Math.min(5,Math.ceil(Number((10*t).toFixed(6)))/10))}function q(t,e){if(""===t)return!0;const i=Number(t);return Number.isFinite(i)&&i>=e&&i<=5}const Z=["1y","3y","all"];function Q(t){return String(t).padStart(2,"0")}function $(t){return`${t.getFullYear()}-${Q(t.getMonth()+1)}-${Q(t.getDate())}`}function tt(t){const[e,i,n]=t.split("-").map(Number);return new Date(e,i-1,n)}function et(t){return $(new Date(t.getFullYear()+1,t.getMonth(),t.getDate()))}function it(t){return Math.round(Number((10*t).toFixed(6)))/10}function nt(t){if(null===t)return"";const e=it(t+.2*(5-t)),i=it(t)+.1;return String(it(Math.min(5,Math.max(e,i,V(t)))))}function ot(t,e){if("all"===t)return;const i="1y"===t?1:3;return $(new Date(e.getFullYear()-i,e.getMonth(),e.getDate()))}function rt(t){return"string"==typeof t&&""!==t?t:void 0}function st(t){return Object.fromEntries(Object.entries({listingId:t.listingId,brandId:t.brandId,date:t.date,range:t.range,targetDate:t.targetDate,targetRating:t.targetRating}).filter(([,t])=>void 0!==t&&""!==t))}const at={decayOnly:{color:"#9e9e9e",symbol:"diamond"},businessAsUsual:{color:"#1f77b4",symbol:"square"},target:{color:"#d62728",symbol:"triangle"}};function ht(){const t=(0,S.tz)();return e=>t.formatMessage({id:"public.rating_calculator.scenario.name",defaultMessage:"{key, select,\n decayOnly {No new reviews}\n businessAsUsual {Business as usual}\n target {Reach target}\n other {}\n}"},{key:e})}const lt="#2ca02c",ct="0.875rem";function dt(t){return tt(t).getTime()}function pt(t){return t.filter(t=>null!==t.rating).map(t=>({x:dt(t.date),y:t.rating,numberOfReviews:t.numberOfReviews}))}function RatingChart(t){const e=(0,S.tz)(),i=ht(),n=[];t.history&&n.push({type:"line",name:"Rating",data:pt(t.history.points),color:"#222222",marker:{enabled:!1,symbol:"circle"}}),t.projection?.scenarios.forEach(t=>{0===t.totalNewReviews&&"decayOnly"!==t.key||n.push({type:"line",name:i(t.key),data:pt(t.points),color:at[t.key].color,dashStyle:"ShortDash",marker:{enabled:!1,symbol:at[t.key].symbol}})});const o=t.projection?[{value:dt(t.projection.today),color:"#cccccc",width:1,label:{text:"Today",style:{color:"#999999"}}}]:[],r=t.projection?.targetThreshold??null,s={chart:{type:"line"},xAxis:{type:"datetime",plotLines:o},yAxis:[{title:{text:void 0},allowDecimals:!0,min:void 0,max:5,plotLines:null!==r?[{value:r,color:lt,width:1,dashStyle:"Dot"}]:[],labels:{style:{fontSize:ct}}},{linkedTo:0,opposite:!0,title:{text:void 0},gridLineWidth:0,tickPositions:null!==r?[r]:[],labels:{formatter:()=>"Target",style:{color:lt,fontSize:ct}}}],legend:{enabled:!0},tooltip:{shared:!0,xDateFormat:"%e %b %Y",pointFormatter:function(){return e.formatMessage({id:"public.rating_calculator.chart.tooltip_point",defaultMessage:'<span style="color:{color}">â</span> {name}: <b>{rating}</b> ({numberOfReviews, plural, one {# review} other {# reviews}})<br/>'},{color:String(this.color),name:this.series.name,rating:e.formatNumber(this.y??0,{minimumFractionDigits:2,maximumFractionDigits:2}),numberOfReviews:this.options.numberOfReviews??0})}}};return(0,z.jsx)(X.Ay,{height:360,series:n,options:s})}var ut=i(66307);function ft(t,e){return null!==t&&null!==e&&Math.round(Number((100*t).toFixed(6)))===Math.round(Number((100*e).toFixed(6)))}var gt=i(57220),mt=i(62227);function RecentReviewsInfo({mix:t}){return t?(0,z.jsx)(gt.A,{content:(0,z.jsx)(S.sA,{id:"public.rating_calculator.recent_reviews.tooltip",defaultMessage:"{peri
1od, select,\n last_12_months {Reviews published in the last 12 months ({numberOfReviews, plural, one {# review} other {# reviews}}).}\n other {All your reviews ({numberOfReviews, plural, one {# review} other {# reviews}}), as there were too few in the last 12 months.}\n}",values:{period:t.period,numberOfReviews:t.numberOfReviews}}),innerProps:{lineHeight:"small"},children:(0,z.jsx)(mt.A,{name:"information-circle",width:16,height:16,marginLeft:1,verticalAlign:"text-bottom",cursor:"help",textStyle:"muted-secondary"})}):null}function Marker({symbol:t,color:e}){switch(t){case"diamond":return(0,z.jsx)("polygon",{points:"14,1 19,6 14,11 9,6",fill:e});case"square":return(0,z.jsx)("rect",{x:10,y:2,width:8,height:8,fill:e});case"triangle":return(0,z.jsx)("polygon",{points:"14,1 19,10 9,10",fill:e});default:return null}}function ScenarioIcon({scenarioKey:t}){const e=at[t];return(0,z.jsxs)("svg",{width:28,height:12,viewBox:"0 0 28 12","aria-hidden":"true",style:{flexShrink:0},children:[(0,z.jsx)("line",{x1:0,y1:6,x2:28,y2:6,stroke:e.color,strokeWidth:2,strokeDasharray:"6 3"}),(0,z.jsx)(Marker,{...e})]})}function Rating({value:t}){return null===t?(0,z.jsx)("span",{children:"â"}):(0,z.jsx)(S.Gr,{value:t,options:{minimumFractionDigits:2,maximumFractionDigits:2}})}function DisplayedRating({value:t}){return null===t?(0,z.jsx)("span",{children:"â"}):(0,z.jsx)(S.Gr,{value:t,options:{minimumFractionDigits:1,maximumFractionDigits:1}})}function MixName({mix:t,recentMix:e}){return(0,z.jsxs)(y.Fragment,{children:[(0,z.jsx)(S.sA,{id:"public.rating_calculator.mix.name",defaultMessage:"{mix, select, invited {your invited reviews} recent {recent reviews} other {only 5-star reviews}}",values:{mix:t}}),"recent"===t&&(0,z.jsx)(RecentReviewsInfo,{mix:e})]})}function SummaryCard(t){return(0,z.jsxs)(p.A,{children:[(0,z.jsx)(p.A.Header,{noBorder:!0,padding:3,paddingBottom:0,children:(0,z.jsxs)(c.A,{level:3,headingStyle:6,display:"flex",alignItems:"center",gap:2,children:[t.scenarioKey&&(0,z.jsx)(ScenarioIcon,{scenarioKey:t.scenarioKey}),t.heading]})}),(0,z.jsx)(p.A.Block,{padding:3,paddingTop:2,children:t.children})]})}function TargetOptionLine({option:t,recentMix:e}){const i=(0,z.jsx)(MixName,{mix:t.mix,recentMix:e});return null===t.requiredReviews?(n={mix:i},(0,z.jsxs)(z.Fragment,{children:["With ",n.mix,": unreachable"]})):(0,z.jsx)(S.sA,{id:"public.rating_calculator.target.option.reachable",defaultMessage:"With {mix}: {requiredReviews, plural, one {# review} other {# reviews}}",values:{mix:i,requiredReviews:t.requiredReviews}});var n}function TargetSummary({projection:t}){const e=tt(t.targetDate),i=t.scenarios.find(t=>"target"===t.key),n=(0,z.jsx)(DisplayedRating,{value:t.targetRating});let o;return o=i?0===i.requiredReviews?(0,z.jsx)(S.sA,{id:"public.rating_calculator.target.already_met",defaultMessage:"You'd be at or above {target} on {date, date, long} without new reviews.",values:{target:n,date:e}}):(0,z.jsx)(S.sA,{id:"public.rating_calculator.target.reachable",defaultMessage:"{mix, select,\n invited {About {requiredReviews, number} new reviews rated like your invited ones by {date, date, long} would bring your rating to {target}.}\n recent {About {requiredReviews, number} new reviews rated like your recent ones{recentReviewsInfo} by {date, date, long} would bring your rating to {target}.}\n other {About {requiredReviews, number} new 5-star reviews by {date, date, long} would bring your rating to {target}.}\n}",values:{mix:i.mix??"fiveStars",requiredReviews:i.requiredReviews,recentReviewsInfo:(0,z.jsx)(RecentReviewsInfo,{mix:t.mixes.recent}),target:n,date:e}}):(0,z.jsx)(S.sA,{id:"public.rating_calculator.target.unreachable",defaultMessage:"{target} can't be reached by {date, date, long}, even with only 5-star reviews.",values:{target:n,date:e}}),(0,z.jsxs)(y.Fragment,{children:[(0,z.jsx)(r.A,{children:o}),0!==i?.requiredReviews&&(0,z.jsx)(ut.A,{marginTop:2,textStyle:"muted",children:t.targetOptions.map(e=>(0,z.jsx)(ut.A.Item,{children:(0,z.jsx)(TargetOptionLine,{option:e,recentMix:t.mixes.recent})},e.mix))})]})}function ScenarioSummaries({projection:t}){const e=ht(),i=tt(t.targetDate),n=t.scenarios.find(t=>"decayOnly"===t.key),s=t.scenarios.find(t=>"businessAsUsual"===t.key);return(0,z.jsxs)(g.h,{display:"grid",gap:2,style:{gridTemplateColumns:"repeat(auto-fit, minmax(260px, 1fr))",height:"100%"},children:[(0,z.jsx)(SummaryCard,{heading:"Current rating",children:(0,z.jsxs)(r.A,{textStyle:"muted",children:[(0,z.jsx)(o.A,{textStyle:"body",children:(0,z.jsx)(Rating,{value:t.currentRating})}),null!==t.trendingToward&&(a={rating:(0,z.jsx)(Rating,{value:t.trendingToward}),recentReviewsInfo:(0,z.jsx)(RecentReviewsInfo,{mix:t.mixes.recent})},(0,z.jsxs)(z.Fragment,{children:[" trending toward ",a.rating,", the average of your recent reviews.",a.recentReviewsInfo]}))]})}),n&&(0,z.jsx)(SummaryCard,{heading:e("decayOnly"),scenarioKey:"decayOnly",children:(0,z.jsx)(r.A,{children:ft(n.ratingAtTargetDate,t.currentRating)?(0,z.jsx)(S.sA,{id:"public.rating_calculator.sce
1nario.decay_only.unchanged",defaultMessage:"Without new reviews, your rating wouldn't change: it would still be {rating} on {date, date, long}.",values:{rating:(0,z.jsx)(Rating,{value:n.ratingAtTargetDate}),date:i}}):(0,z.jsx)(S.sA,{id:"public.rating_calculator.scenario.decay_only",defaultMessage:"Without new reviews, your rating would be {rating} on {date, date, long} as existing reviews age.",values:{rating:(0,z.jsx)(Rating,{value:n.ratingAtTargetDate}),date:i}})})}),s&&(0,z.jsx)(SummaryCard,{heading:e("businessAsUsual"),scenarioKey:"businessAsUsual",children:(0,z.jsxs)(r.A,{children:[(0,z.jsx)(S.sA,{id:"public.rating_calculator.scenario.business_as_usual.pace",defaultMessage:"{pacePeriod, select,\n last_12_months {At your usual pace, based on the last 12 months, you'd get about {totalNewReviews, number} new reviews by {date, date, long}.}\n other {At your usual pace, based on all your reviews so far, you'd get about {totalNewReviews, number} new reviews by {date, date, long}.}\n}",values:{pacePeriod:t.pacePeriod??"all_time",totalNewReviews:s.totalNewReviews,date:i}})," ",ft(s.ratingAtTargetDate,t.currentRating)?(t=>(0,z.jsxs)(z.Fragment,{children:["Rated like your recent reviews",t.recentReviewsInfo,", they wouldn't change your rating: it would still be ",t.rating,"."]}))({recentReviewsInfo:(0,z.jsx)(RecentReviewsInfo,{mix:t.mixes.recent}),rating:(0,z.jsx)(Rating,{value:s.ratingAtTargetDate})}):(t=>(0,z.jsxs)(z.Fragment,{children:["Rated like your recent reviews",t.recentReviewsInfo,", they'd bring your rating to ",t.rating,"."]}))({recentReviewsInfo:(0,z.jsx)(RecentReviewsInfo,{mix:t.mixes.recent}),rating:(0,z.jsx)(Rating,{value:s.ratingAtTargetDate})})]})}),null!==t.targetRating&&(0,z.jsx)(SummaryCard,{heading:e("target"),scenarioKey:"target",children:(0,z.jsx)(TargetSummary,{projection:t})})]});var a}function yt(t){return t?t.roles.includes(j.Xh.STAFF)?{role:j.Xh.STAFF}:t.roles.includes(j.Xh.COMPANY_REPRESENTATIVE)?{role:j.Xh.COMPANY_REPRESENTATIVE}:null:null}const vt="1990-01-01";function GenericError(){return(0,z.jsx)(m.A,{alertStyle:"danger",marginY:2,children:"We couldn't calculate this. Please check the values and try again."})}function ProjectionControls({state:t,today:e,minTargetRating:i,isTargetRatingValid:n,onChange:o}){const r=$(new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)),s=$(new Date(e.getFullYear()+2,e.getMonth(),e.getDate()));return(0,z.jsxs)(g.h,{display:"flex",flexWrap:"wrap",gap:3,marginBottom:4,children:[(0,z.jsxs)(g.h,{children:[(0,z.jsx)(l.A,{htmlFor:"targetDate",marginBottom:2,children:"Project until"}),(0,z.jsx)(DeferredInput,{id:"targetDate",type:"date",min:r,max:s,value:t.targetDate,isCommittable:t=>U(t,r,s),onCommit:t=>o({targetDate:t})})]}),(0,z.jsxs)(g.h,{children:[(0,z.jsx)(l.A,{htmlFor:"targetRating",marginBottom:2,children:"Target rating"}),(0,z.jsx)(DeferredInput,{id:"targetRating",type:"number",min:i,max:5,step:.1,placeholder:String(i),value:t.targetRating,isCommittable:t=>q(t,i),onCommit:t=>o({targetRating:t}),className:n?void 0:"is-invalid",style:{width:120}})]})]})}const xt=(0,L.ji)([{key:"ratingCalculatorRedirectIfNotStaffOrCompanyRepresentative",promise:async({store:t,helpers:e,location:i})=>{const n=t.getState();if(!yt((0,M.eP)(n)?(0,M.wz)(n):null))throw new L.qI(e.urlGenerator.generate("www.public.login",{next:(0,O.Np)(i),unauthorized:1,roleIntention:j.Xh.COMPANY_REPRESENTATIVE}))}}])(function RatingCalculatorPage(){(0,S.tz)();const t=(0,P.zy)(),e=(0,P.Zp)(),i=(0,x.A)(),O=yt((0,k.A)(M.wz)),L=(0,y.useMemo)(()=>new Date,[]),j=function(t,e){return{listingId:rt(t.listingId),brandId:rt(t.brandId),date:rt(t.date),range:Z.includes(t.range)?t.range:"3y",targetDate:rt(t.targetDate)??et(e),targetRating:(i=t.targetRating,"string"==typeof i?i:"")};var i}(t.query,L),[R,W]=(0,y.useState)(null);function Y(i){e({...t,query:st({...j,...i})},{replace:!0})}const X=j.listingId,_=(t,e)=>X&&O?i.generate(t,{listingId:X,actorContext:O,...e}):null,Q=(0,w.A)(_("api.bmp.rating_calculator.listing.history",{from:ot(j.range,L)})),tt=(0,w.A)(_("api.bmp.rating_calculator.listing.at_date",{date:j.date})),it=Q.response?Q.response.points.at(-1)?.rating??null:void 0,at=V(it??null),ht=q(j.targetRating,at),[lt]=(0,b.A)(_("api.bmp.rating_calculator.listing.projection",{targetDate:j.targetDate,targetRating:void 0!==it&&ht&&j.targetRating||void 0}),400),ct=(0,w.A)(lt),dt=R?.id===X?R:Q.response?.listing??null,pt="Rating Calculator";return(0,z.jsxs)(n.A,{namespace:"rating_calculator",children:[(0,z.jsx)(v.A,{title:pt,meta:[{name:"robots",content:"noindex, nofollow"}]}),(0,z.jsxs)(d.A,{marginY:4,children:[(0,z.jsx)(c.A,{level:1,headingStyle:2,marginBottom:2,children:pt}),(0,z.jsx)(h.A,{lineHeight:"small",marginBottom:4,children:"Look up your rating on any past date, see how it changed over time and project where it's heading."}),(0,z.jsx)(p.A,{marginBottom:4,children:(0,z.jsxs)(p.A.Block,{children:[(0,z.jsx)(l.A,{htmlFor:"listingId",marginBottom:2,children:"Listing"}),O&&(0,z.jsx)(ListingPicker,{actorContext:O,brandId:j.brandId,value:dt,onChange:t=>{W(t),Y({listingId:t?.id,targetDate:et(L),targetRating:nt(t?.rating??null)})}})]})}),X&&(0,z.jsxs)(g.h,{display:"flex",flexDirection:"column",gap:4,children:[(0,z.jsx)(p.A,{children:(0,z.jsxs)(p.A.Block,{children:[(0,z.jsx)(c.A,{level:2,headingStyle:3,marginBottom:3,children:"Rating on a date"}),(0,z.jsxs)(g.h,{alignItems:"end",display:"flex",flexWrap:"wrap",gap:3,children:[(0,z.jsxs)(g.h,{children:[(0,z.jsx)(l.A,{htmlFor:"ratingDate",marginBottom:2,children:"Date"}),(0,z.jsx)(DeferredInput,{id:"ratingDate",type:"date",min:vt,max:$(L),value:j.date??$(L),isCommittable:t=>U(t,vt,$(L)),onCommit:t=>Y({date:t===$(L)?void 0:t})})]}),(0,z.jsxs)(g.h,{marginBottom:1,children:[tt.response&&(0,z.jsx)(r.A,{fontSize:"large",children:null===tt.response.rating?(0,z.jsx)(S.sA,{id:"public.rating_calculator.at_date.no_reviews",defaultMessage:"No reviews yet on {date, date, long}",values:{date:new Date(`${tt.response.date}T00:00:00`)}}):(0,z.jsx)(S.sA,{id:"public.rating_calculator.at_date.result",defaultMessage:"{rating} from {numberOfReviews, plural, one {# review} other {# reviews}} on {date, date, long}",values:{rating:(0,z.jsx)("strong",{children:(0,z.jsx)(S.Gr,{value:tt.response.rating,options:{minimumFractionDigits:2,maximumFractionDigits:2}}
1)}),numberOfReviews:tt.response.numberOfReviews,date:new Date(`${tt.response.date}T00:00:00`)}})}),tt.error&&(0,z.jsx)(GenericError,{})]}),tt.isLoading&&(0,z.jsx)(s.A,{size:"small"})]})]})}),(0,z.jsxs)(g.h,{display:"flex",flexDirection:{xs:"column",lg:"row"},gap:2,children:[(0,z.jsxs)(p.A,{flexBasis:{xs:"auto",lg:50},style:{minWidth:0},children:[(0,z.jsx)(p.A.Header,{noBorder:!0,paddingBottom:0,paddingTop:2,children:(0,z.jsx)(c.A,{level:2,headingStyle:3,marginY:1,children:"Rating over time and projections"})}),(0,z.jsxs)(p.A.Block,{children:[(0,z.jsx)(ProjectionControls,{state:j,today:L,minTargetRating:at,isTargetRatingValid:ht,onChange:Y}),(Q.isLoading||ct.isLoading)&&!Q.response&&(0,z.jsx)(s.A,{}),(Q.response||ct.response)&&(0,z.jsx)(RatingChart,{history:Q.response,projection:ct.response}),(0,z.jsxs)(g.h,{alignItems:"center",display:"flex",flexWrap:"wrap",gap:2,justifyContent:"end",marginTop:2,children:[(0,z.jsx)(o.A,{textStyle:"muted",id:"historyRangeLabel",children:"Show history"}),(0,z.jsx)(u.A,{"aria-labelledby":"historyRangeLabel",children:Z.map(t=>(0,z.jsx)(f.A,{onClick:()=>Y({range:t}),buttonSize:"small",buttonStyle:"light",isActive:j.range===t,nowrap:!0,children:(0,z.jsx)(S.sA,{id:"public.rating_calculator.chart.range",defaultMessage:"{range, select, 1y {Past year} 3y {Past 3 years} other {All time}}",values:{range:t}})},t))})]}),(Q.error||ct.error)&&(0,z.jsx)(GenericError,{})]})]}),ct.response&&(0,z.jsx)(g.h,{flexBasis:{xs:"auto",lg:50},style:{minWidth:0},children:(0,z.jsx)(ScenarioSummaries,{projection:ct.response})})]}),(0,z.jsx)(m.A,{alertStyle:"warning",children:"Projections are estimates to help you plan, not guarantees. Reviews arrive gradually, may include negative ones and go through moderation."}),(0,z.jsx)(m.A,{alertStyle:"info",children:"Past ratings are recalculated from the reviews that are published today using the current rating formula. They don't reflect reviews that have since been removed or changes to how ratings were calculated at the time."}),(0,z.jsx)(a.A.Static,{to:i.generate("www.bm.root"),alignSelf:"center",textStyle:"link",textDecorationHover:"underline",tracking:{id:"bmp_invitation_campaigns_cta"},children:"Collect more reviews with invitation campaigns and integrations in your Brand Management dashboard"})]})]})]})})},30326(t,e,i){var n;"undefined"!=typeof self&&self,t.exports=(n=i(85906),function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,i){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},n.apply(this,arguments)}function o(t){return h(t)||a(t)||s(t)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if(t){if("string"==typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}function a(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function h(t){if(Array.isArray(t))return l(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
1Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"HighchartsReact",function(){return f});var d=i(1),p=i.n(d),u="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,f=Object(d.memo)(Object(d.forwardRef)(function(t,e){var i=Object(d.useRef)(),r=Object(d.useRef)(),s=Object(d.useRef)(t.constructorType),a=Object(d.useRef)(t.highcharts);return u(function(){function e(){var e=t.highcharts||"object"===("undefined"==typeof window?"undefined":c(window))&&window.Highcharts,n=t.constructorType||"chart";e?e[n]?t.options?r.current=e[n](i.current,t.options,t.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(r.current){if(!1!==t.allowChartUpdate)if(t.constructorType!==s.current||t.highcharts!==a.current)s.current=t.constructorType,a.current=t.highcharts,e();else if(!t.immutable&&r.current){var n;(n=r.current).update.apply(n,[t.options].concat(o(t.updateArgs||[!0,!0])))}else e()}else e()},[t.options,t.allowChartUpdate,t.updateArgs,t.containerProps,t.highcharts,t.constructorType]),u(function(){return function(){r.current&&(r.current.destroy(),r.current=null)}},[]),Object(d.useImperativeHandle)(e,function(){return{get chart(){return r.current},container:i}},[]),p.a.createElement("div",n({},t.containerProps,{ref:i}))}));e.default=f},function(t,e){t.exports=n}]))},31152(t,e,i){var n,o,r;o="undefined"!=typeof window?window:this,r=function(t){function K(e,i,n,o){e.hasOwnProperty(i)||(e[i]=o.apply(null,n),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}var e={};return K(e,"Core/Globals.js",[],function(){var e;return function(e){e.SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="10.1.0",e.win=void 0!==t?t:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,i),e.win.removeEventListener("testPassive",e.noop,i))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e}),K(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(t){function e(i,n,r,s){var a=n?"Highcharts error":"Highcharts warning";32===i&&(i=a+": Deprecated member");var h=o(i),l=h?a+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(void 0!==s){var c="";h&&(l+="?"),p(s,function(t,e){c+="\n - "+e+": "+t,h&&(l+=encodeURI(e)+"="+encodeURI(t))}),l+=c}f(t,"displayError",{chart:r,code:i,message:l,params:s},function(){if(n)throw Error(l);y.console&&-1===e.messages.indexOf(l)&&console.warn(l)}),e.messages.push(l)}function H(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function E(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function I(t,e){return!(!t||"object"!=typeof t||e&&E(t))}function A(t){return I(t)&&"number"==typeof t.nodeType}function n(t){var e=t&&t.constructor;return!(!I(t,!0)||A(t)||!e||!e.name||"Object"===e.name)}function o(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function r(t){return null!=t}function s(t,e,n){var o,s=i(e)&&!r(n),a=function(e,i){r(e)?t.setAttribute(i,e):s?(o=t.getAttribute(i))||"class"!==i||(o=t.getAttribute(i+"Name")):t.removeAttribute(i)};return i(e)?a(n,e):p(e,a),o}function a(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function h(){for(var t=arguments,e=t.length,i=0;i<e;i++){var n=t[i];if(null!=n)return n}}function l(e,i){t.isMS&&!t.svg&&i&&r(i.opacity)&&(i.filter="alpha(opacity="+100*i.opacity+")"),a(e.style,i)}function c(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function d(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}
1function p(t,e,i){for(var n in t)Object.hasOwnProperty.call(t,n)&&e.call(i||t[n],t[n],n,t)}function u(e,i,n){function o(i,n){var o=e.removeEventListener||t.removeEventListenerPolyfill;o&&o.call(e,i,n,!1)}function r(t){var n;if(e.nodeName){if(i){var r={};r[i]=!0}else r=t;p(r,function(e,i){if(t[i])for(n=t[i].length;n--;)o(i,t[i][n].fn)})}}var s="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(s,"hcEvents")){var a=s.hcEvents;i?(s=a[i]||[],n?(a[i]=s.filter(function(t){return n!==t.fn}),o(i,n)):(r(a),a[i]=[])):(r(a),delete s.hcEvents)}}function f(e,i,n,o){if(n=n||{},m.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var r=m.createEvent("Events");r.initEvent(i,!0,!0),n=a(r,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(i,n)}else if(e.hcEvents){n.target||a(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:i}),r=[];for(var s=e,h=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[i]&&(r.length&&(h=!0),r.unshift.apply(r,s.hcEvents[i])),s=Object.getPrototypeOf(s);h&&r.sort(function(t,e){return t.order-e.order}),r.forEach(function(t){!1===t.fn.call(e,n)&&n.preventDefault()})}o&&!n.defaultPrevented&&o.call(e,n)}var g=t.charts,m=t.doc,y=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var v=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,n=t.length;for(i=0;i<n;i++)if(e(t[i],i))return t[i]};p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,n){t[n]=function(t){var o;return e(32,!1,void 0,((o={})["Highcharts."+n]="use Array."+i,o)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}});var x,b=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(x?"":t)+e++}}();return y.jQuery&&(y.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):g[s(this[0],"data-highcharts-chart")]}),v={addEvent:function(e,i,n,o){void 0===o&&(o={});var r="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={}),r=r.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var s=e.addEventListener||t.addEventListenerPolyfill;return s&&s.call(e,i,n,!!t.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==i.indexOf("touch"):o.passive,capture:!1}),r[i]||(r[i]=[]),r[i].push({fn:n,order:"number"==typeof o.order?o.order:1/0}),r[i].sort(function(t,e){return t.order-e.order}),function(){u(e,i,n)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:s,clamp:function(t,e,i){return t>e?t<i?t:i:e},cleanRecursively:function B(t,e){var i={};return p(t,function(n,o){I(t[o],!0)&&!t.nodeType&&e[o]?(n=B(t[o],e[o]),Object.keys(n).length&&(i[o]=n)):(I(t[o])||t[o]!==e[o]||o in t&&!(o in e))&&(i[o]=t[o])}),i},clearTimeout:function(t){r(t)&&clearTimeout(t)},correctFloat:d,createElement:function(t,e,i,n,o){return t=m.createElement(t),e&&a(t,e),o&&l(t,{padding:"0",border:"none",margin:"0"}),i&&l(t,i),n&&n.appendChild(t),t},css:l,defined:r,destroyObjectProperties:function(t,e){p(t,function(i,n){i&&i!==e&&i.destroy&&i.destroy(),delete t[n]})},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:e,extend:a,extendClass:function(t,e){var i=function(){};return a(i.prototype=new t,e),i},find:v,fireEvent:f,getMagnitude:c,getNestedProperty:function(t,e){for(t=t.split(".");t.length&&r(e);){var i=t.shift();if(void 0===i||"__proto__"===i)return;if(!r(e=e[i])||"function"==typeof e||"number"==typeof e.nodeType||e===y)return}return e},getStyle:function F(i,n,o){var r=t.getStyle||F;if("width"===n)return n=Math.min(i.offsetWidth,i.scrollWidth),(o=i.getBoundingClientRect&&i.getBoundingClientRect().width)<n&&o>=n-1&&(n=Math.floor(o)),Math.max(0,n-(r(i,"padding-left",!0)||0)-(r(i,"padding-right",!0)||0));if("height"===n)return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(r(i,"padding-top",!0)||0)-(r(i,"padding-bottom",!0)||0));if(y.getComputedStyle||e(27,!0),i=y.getComputedStyle(i,void 0)){var s=i.getPropertyValue(n);h(o,"opacity"!==n)&&(s=H(s))}return s},inArray:function(t,i,n){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,n)},isArray:E,isClass:n,isDOMElement:A,isFunction:function(t){return"function"==typeof t},isNumber:o,isObject:I,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,i={},o=function(t,e){return"object"!=typeof t&&(t={}),p(e,function(i,r){"__proto__"!==r&&"constructor"!==r&&(!I(i,!0)||n(i)||A(i)?t[r]=e[r]:t[r]=o(t[r]||{},i))}),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;t<r;t++)i=o(i,e[t]);return i}
1,normalizeTickInterval:function(t,e,i,n,o){var r=t,s=t/(i=h(i,c(t)));for(e||(e=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===i?e=e.filter(function(t){return 0==t%1}):.1>=i&&(e=[1/i]))),n=0;n<e.length&&(r=e[n],!(o&&r*i>=t||!o&&s<=(e[n]+(e[n+1]||e[n]))/2));n++);return d(r*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:p,offset:function(t){var e=m.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(y.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(y.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:h,pInt:H,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:u,splat:function(t){return E(t)?t:[t]},stableSort:function(t,e){var i,n,o=t.length;for(n=0;n<o;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(i=e(t,n))?t.safeI-n.safeI:i}),n=0;n<o;n++)delete t[n].safeI},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:b,useSerialIds:function(t){return x=h(t,x)},wrap:function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,o=this;return o.proceed=function(){n.apply(o,arguments.length?arguments:e)},t.unshift(n),t=i.apply(this,t),o.proceed=null,t}}},v}),K(e,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,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"}}),K(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i=e.isNumber,n=e.merge,o=e.pInt;return e=function(){function e(i){this.rgba=[NaN,NaN,NaN,NaN],this.input=i;var n=t.Color;return n&&n!==e?new n(i):this instanceof e?void this.init(i):new e(i)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var i;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 n=t.length,o=parseInt(t.substr(1),16);7===n?i=[(16711680&o)>>16,(65280&o)>>8,255&o,1]:4===n&&(i=[(3840&o)>>4|(3840&o)>>8,(240&o)>>4|240&o,(15&o)<<4|15&o,1])}if(!i)for(o=e.parsers.length;o--&&!i;){var r=e.parsers[o];(n=r.regex.exec(t))&&(i=r.parse(n))}}i&&(this.rgba=i)},e.prototype.get=function(t){var e=this.input,o=this.rgba;if("object"==typeof e&&void 0!==this.stops){var r=n(e);return r.stops=[].slice.call(r.stops),this.stops.forEach(function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]}),r}return o&&i(o[0])?"rgb"===t||!t&&1===o[3]?"rgb("+o[0]+","+o[1]+","+o[2]+")":"a"===t?""+o[3]:"rgba("+o.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(var n=0;3>n;n++)e[n]+=o(255*t),0>e[n]&&(e[n]=0),255<e[n]&&(e[n]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var n=this.rgba,o=t.rgba;return i(n[0])&&i(o[0])?((t=1!==o[3]||1!==n[3])?"rgba(":"rgb(")+Math.round(o[0]+(n[0]-o[0])*(1-e))+","+Math.round(o[1]+(n[1]-o[1])*(1-e))+","+Math.round(o[2]+(n[2]-o[2])*(1-e))+(t?","+(o[3]+(n[3]-o[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[o(t[1]),o(t[2]),o(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[o(t[1]),o(t[2]),o(t[3]),1]}}],e.None=new e(""),e}(),e}),K(e,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),K(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i=t.win,n=e.defined,o=e.error,r=e.extend,s=e.isObject,a=e.merge,h=e.objectEach,l=e.pad,c=e.pick,d=e.splat,p=e.timeUnits,u=t.isSafari&&i.Intl&&i.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&i.Intl&&!i.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=i.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),n=i-this.getTimezoneOffset(e);return e.setTime(n),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()}
1,e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](i);var n=this.getTimezoneOffset(e);return n=e.getTime()-n,e.setTime(n),e["setUTC"+t](i),t=this.getTimezoneOffset(e),n=e.getTime()+t,e.setTime(n)}return this.useUTC||u&&"FullYear"===t?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=c(t&&t.useUTC,!0);this.options=t=a(!0,this.options||{},t),this.Date=t.Date||i.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,i,n,o,r){if(this.useUTC){var s=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(s);s+=a;var h=this.getTimezoneOffset(s);a!==h?s+=h-a:a-36e5!==this.getTimezoneOffset(s-36e5)||f||(s-=36e5)}else s=new this.Date(t,e,c(i,1),c(n,0),c(o,0),c(r,0)).getTime();return s},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,n=e.getTimezoneOffset,r=e.moment||i.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(r)return function(t){return 6e4*-r.tz(t,e.timezone).utcOffset()};o(25)}return this.useUTC&&n?function(t){return 6e4*n(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,i,o){if(!n(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var s=this,a=new this.Date(i),d=this.get("Hours",a),p=this.get("Day",a),u=this.get("Date",a),f=this.get("Month",a),g=this.get("FullYear",a),m=t.defaultOptions.lang,y=m&&m.weekdays,v=m&&m.shortWeekdays;return a=r({a:v?v[p]:y[p].substr(0,3),A:y[p],d:l(u),e:l(u,2," "),w:p,b:m.shortMonths[f],B:m.months[f],m:l(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:l(d),k:d,I:l(d%12||12),l:d%12||12,M:l(this.get("Minutes",a)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(i%1e3),3)},t.dateFormats),h(a,function(t,n){for(;-1!==e.indexOf("%"+n);)e=e.replace("%"+n,"function"==typeof t?t.call(s,i):t)}),o?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return s(t,!0)?t:{main:(t=d(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,i,o){var s,a=this,h=[],l={},d=new a.Date(e),u=t.unitRange,f=t.count||1;if(o=c(o,1),n(e)){if(a.set("Milliseconds",d,u>=p.second?0:f*Math.floor(a.get("Milliseconds",d)/f)),u>=p.second&&a.set("Seconds",d,u>=p.minute?0:f*Math.floor(a.get("Seconds",d)/f)),u>=p.minute&&a.set("Minutes",d,u>=p.hour?0:f*Math.floor(a.get("Minutes",d)/f)),u>=p.hour&&a.set("Hours",d,u>=p.day?0:f*Math.floor(a.get("Hours",d)/f)),u>=p.day&&a.set("Date",d,u>=p.month?1:Math.max(1,f*Math.floor(a.get("Date",d)/f))),u>=p.month){a.set("Month",d,u>=p.year?0:f*Math.floor(a.get("Month",d)/f));var g=a.get("FullYear",d)}u>=p.year&&a.set("FullYear",d,g-g%f),u===p.week&&(g=a.get("Day",d),a.set("Date",d,a.get("Date",d)-g+o+(g<o?-7:0))),g=a.get("FullYear",d),o=a.get("Month",d);var m=a.get("Date",d),y=a.get("Hours",d);for(e=d.getTime(),!a.variableTimezone&&a.useUTC||!n(i)||(s=i-e>4*p.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=d.getTime(),d=1;e<i;)h.push(e),e=u===p.year?a.makeTime(g+d*f,0):u===p.month?a.makeTime(g,o+d*f):!s||u!==p.day&&u!==p.week?s&&u===p.hour&&1<f?a.makeTime(g,o,m,y+d*f):e+u*f:a.makeTime(g,o,m+d*f*(u===p.day?1:7)),d++;h.push(e),u<=p.hour&&1e4>h.length&&h.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")})}return h.info=r(t,{higherRanks:l,totalRange:u*f}),h},e.prototype.getDateFormat=function(t,e,i,n){var o=this.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},s="millisecond";for(a in p){if(t===p.week&&+this.dateFormat("%w",e)===i&&"00:00:00.000"===o.substr(6)){var a="week";break}if(p[a]>t){a=s;break}if(r[a]&&o.substr(r[a])!=="01-01 00:00:00.000".substr(r[a]))break;"week"!==a&&(s=a)}if(a)var h=this.resolveDTLFormat(n[a]).main;return h},e}(),e}),K(e,"Core/DefaultOptions.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(t,e,
1i,n,o,r){e=e.parse;var s=r.merge,a={colors:n.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:i.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:i.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"}};a.chart.styledMode=!1;var h=new o(s(a.global,a.time));return t={defaultOptions:a,defaultTime:h,getOptions:function(){return a},setOptions:function(t){return s(!0,a,t),(t.time||t.global)&&(i.time?i.time.update(s(a.global,a.time,t.global,t.time)):i.time=h),a}}}),K(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){var n=t.parse,o=e.win,r=i.isNumber,s=i.objectEach;return function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=this.now||0,n=[];if(1!==i&&e&&t)if(e.length===t.length&&1>i)for(var o=0;o<t.length;o++){for(var s=e[o],a=t[o],h=[],l=0;l<a.length;l++){var c=s[l],d=a[l];r(c)&&r(d)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=c+i*(d-c):h[l]=d}n.push(h)}else n=t;else n=this.toD||[];this.elem.attr("d",n,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)},t.prototype.run=function(e,i,n){var r=this,s=r.options,a=function(t){return!a.stopped&&r.step(t)},h=o.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&h(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=n,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&h(l)):(delete s.curAnim[this.prop],s.complete&&0===Object.keys(s.
1curAnim).length&&s.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,i=this.options,n=this.elem,o=i.complete,r=i.duration,a=i.curAnim;if(n.attr&&!n.element)t=!1;else if(t||e>=r+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;s(a,function(t){!0!==t&&(h=!1)}),h&&o&&o.call(n),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,i){function n(t,e){for(;t.length<p;){var i=t[0],n=e[p-t.length];n&&"M"===i[0]&&(t[0]="C"===n[0]?["C",i[1],i[2],i[1],i[2],i[1],i[2]]:["L",i[1],i[2]]),t.unshift(i),h&&(i=t.pop(),t.push(t[t.length-1],i))}}function o(t,e){for(;t.length<p;)if("C"===(e=t[Math.floor(t.length/l)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),h){var i=t[Math.floor(t.length/l)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}var s=t.startX,a=t.endX;i=i.slice();var h=t.isArea,l=h?2:1;if(!(e=e&&e.slice()))return[i,i];if(s&&a&&a.length){for(t=0;t<s.length;t++){if(s[t]===a[0]){var c=t;break}if(s[0]===a[a.length-s.length+t]){c=t;var d=!0;break}if(s[s.length-1]===a[a.length-s.length+t]){c=s.length-t;break}}void 0===c&&(e=[])}if(e.length&&r(c)){var p=i.length+c*l;d?(n(e,i),o(i,e)):(n(i,e),o(e,i))}return[e,i]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)},t.timers=[],t}()}),K(e,"Core/Animation/AnimationUtilities.js",[e["Core/Animation/Fx.js"],e["Core/Utilities.js"]],function(t,e){function C(t){return s(t)?a({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function H(e,i){for(var n=t.timers.length;n--;)t.timers[n].elem!==e||i&&i!==t.timers[n].prop||(t.timers[n].stopped=!0)}var i=e.defined,n=e.getStyle,o=e.isArray,r=e.isNumber,s=e.isObject,a=e.merge,h=e.objectEach,l=e.pick;return{animate:function(e,i,l){var c,d,p,u="";if(!s(l)){var f=arguments;l={duration:f[2],easing:f[3],complete:f[4]}}r(l.duration)||(l.duration=400),l.easing="function"==typeof l.easing?l.easing:Math[l.easing]||Math.easeInOutSine,l.curAnim=a(i),h(i,function(r,s){H(e,s),p=new t(e,l,s),d=void 0,"d"===s&&o(i.d)?(p.paths=p.initPath(e,e.pathArray,i.d),p.toD=i.d,c=0,d=1):e.attr?c=e.attr(s):(c=parseFloat(n(e,s))||0,"opacity"!==s&&(u="px")),d||(d=r),"string"==typeof d&&d.match("px")&&(d=d.replace(/px/g,"")),p.run(c,d,u)})},animObject:C,getDeferredAnimation:function(t,e,n){var o=C(e),r=0,s=0;return(n?[n]:t.series).forEach(function(t){t=C(t.options.animation),r=e&&i(e.defer)?o.defer:Math.max(r,t.duration+t.defer),s=Math.min(o.duration,t.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-s),duration:Math.min(r,s)}},setAnimation:function(t,e){e.renderer.globalAnimation=l(t,e.options.chart.animation,!0)},stop:H}}),K(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i=t.SVG_NS,n=e.attr,o=e.createElement,r=e.css,s=e.error,a=e.isFunction,h=e.isString,l=e.objectEach,c=e.splat,d=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),p=d?d.createHTML(""):"";try{var u=!!(new DOMParser).parseFromString(p,"text/html")}catch(t){u=!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(i,n){var o=!0;-1===e.allowedAttributes.indexOf(n)&&(o=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(o=h(i)&&e.allowedReferences.some(function(t){return 0===i.indexOf(t)})),o||(s(33,!1,void 0,{"Invalid attribute in config":""+n}),delete t[n])}),t},e.parseStyle=function(t){return t.split(";").reduce(function(t,e){e=e.split(":").map(function(t){return t.trim()});var i=e.shift();return i&&e.length&&(t[i.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=e.join(":")),t},{})},e.setElementHTML=function(t,i){t.innerHTML=e.emptyHTML,i&&new e(i).addToDOM(t)},e.prototype.addToDOM=function(o){return function o(a,h){var d;return c(a).forEach(function(a){var c=a.tagName,p=a.textContent?t.doc.createTextNode(a.textContent):void 0,u=e.bypassHTMLFiltering;if(c)if("#text"===c)var f=p;
1else if(-1!==e.allowedTags.indexOf(c)||u){c=t.doc.createElementNS("svg"===c?i:h.namespaceURI||i,c);var g=a.attributes||{};l(a,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(g[e]=t)}),n(c,u?g:e.filterUserAttributes(g)),a.style&&r(c,a.style),p&&c.appendChild(p),o(a.children||[],c),f=c}else s(33,!1,void 0,{"Invalid tagName in config":c});f&&h.appendChild(f),d=f}),d}(this.nodes,o)},e.prototype.parseMarkup=function(t){var i=[];if(t=t.trim().replace(/ style="/g,' data-style="'),u)t=(new DOMParser).parseFromString(d?d.createHTML(t):t,"text/html");else{var n=o("div");n.innerHTML=t,t={body:n}}var r=function(t,i){var n=t.nodeName.toLowerCase(),o={tagName:n};if("#text"===n&&(o.textContent=t.textContent||""),n=t.attributes){var s={};[].forEach.call(n,function(t){"data-style"===t.name?o.style=e.parseStyle(t.value):s[t.name]=t.value}),o.attributes=s}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,function(t){r(t,a)}),a.length&&(o.children=a)}i.push(o)};return[].forEach.call(t.body.childNodes,function(t){return r(t,i)}),i},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=p,e.bypass
1HTMLFiltering=!1,e}(),a}),K(e,"Core/FormatUtilities.js",[e["Core/DefaultOptions.js"],e["Core/Utilities.js"]],function(t,e){function C(t,e,n,o){t=+t||0,e=+e;var h=i.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,c=t.toString().split("e"),d=e;if(-1===e)e=Math.min(l,20);else if(r(e)){if(e&&c[1]&&0>c[1]){var p=e+ +c[1];0<=p?(c[0]=(+c[0]).toExponential(p).split("e")[0],e=p):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;p=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var u=3<(l=String(a(p))).length?l.length%3:0;return n=s(n,h.decimalPoint),o=s(o,h.thousandsSep),t=(0>t?"-":"")+(u?l.substr(0,u)+o:""),t=0>+c[1]&&!d?"0":t+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+o),e&&(t+=n+p.slice(-e)),c[1]&&0!==+t&&(t+="e"+c[1]),t}var i=t.defaultOptions,n=t.defaultTime,o=e.getNestedProperty,r=e.isNumber,s=e.pick,a=e.pInt;return{dateFormat:function(t,e,i){return n.dateFormat(t,e,i)},format:function(t,e,r){var s="{",a=!1,h=/f$/,l=/\.([0-9])/,c=i.lang,d=r&&r.time||n;r=r&&r.numberFormatter||C;for(var p=[];t;){var u=t.indexOf(s);if(-1===u)break;var f=t.slice(0,u);if(a){if(f=f.split(":"),s=o(f.shift()||"",e),f.length&&"number"==typeof s)if(f=f.join(":"),h.test(f)){var g=parseInt((f.match(l)||["","-1"])[1],10);null!==s&&(s=r(s,g,c.decimalPoint,-1<f.indexOf(",")?c.thousandsSep:""))}else s=d.dateFormat(f,s);p.push(s)}else p.push(f);t=t.slice(u+1),s=(a=!a)?"}":"{"}return p.push(t),p.join("")},numberFormat:C}}),K(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],function(t){var e,i=t.clamp,n=t.pick,o=t.stableSort;return function(t){t.distribute=function C(t,e,r){var s,a=t,h=a.reducedLen||e,l=function(t,e){return(e.rank||0)-(t.rank||0)},c=function(t,e){return t.target-e.target},d=!0,p=[],u=0;for(s=t.length;s--;)u+=t[s].size;if(u>h){for(o(t,l),u=s=0;u<=h;)u+=t[s].size,s++;p=t.splice(s-1,t.length)}for(o(t,c),t=t.map(function(t){return{size:t.size,targets:[t.target],align:n(t.align,.5)}});d;){for(s=t.length;s--;)h=t[s],l=(Math.min.apply(0,h.targets)+Math.max.apply(0,h.targets))/2,h.pos=i(l-h.size*h.align,0,e-h.size);for(s=t.length,d=!1;s--;)0<s&&t[s-1].pos+t[s-1].size>t[s].pos&&(t[s-1].size+=t[s].size,t[s-1].targets=t[s-1].targets.concat(t[s].targets),t[s-1].align=.5,t[s-1].pos+t[s-1].size>e&&(t[s-1].pos=e-t[s-1].size),t.splice(s,1),d=!0)}return a.push.apply(a,p),s=0,t.some(function(t){var i=0;return(t.targets||[]).some(function(){return a[s].pos=t.pos+i,void 0!==r&&Math.abs(a[s].pos-a[s].target)>r?(a.slice(0,s+1).forEach(function(t){return delete t.pos}),a.reducedLen=(a.reducedLen||e)-.1*e,a.reducedLen>.1*e&&C(a,e,r),!0):(i+=a[s].size,s++,!1)})}
1),o(a,c),a}}(e||(e={})),e}),K(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i,n,o){var r=t.animate,s=t.animObject,a=t.stop,h=n.deg2rad,l=n.doc,c=n.noop,d=n.svg,p=n.SVG_NS,u=n.win,f=o.addEvent,g=o.attr,m=o.createElement,y=o.css,v=o.defined,x=o.erase,b=o.extend,w=o.fireEvent,k=o.isArray,S=o.isFunction,M=o.isNumber,P=o.isString,O=o.merge,L=o.objectEach,j=o.pick,R=o.pInt,z=o.syncTimeout,W=o.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=p,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=j(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,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,i=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 n=this.zIndexSetter();return n||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "),t!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i){var n,o,r,s={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||P(i))&&(this.alignTo=n=i||"renderer",x(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=j(i,a[n],"scrollablePlotBox"===n?a.plotBox:void 0,a),n=t.align;var l=t.verticalAlign;return a=(i.x||0)+(t.x||0),h=(i.y||0)+(t.y||0),"right"===n?o=1:"center"===n&&(o=2),o&&(a+=(i.width-(t.width||0))/o),s[e?"translateX":"x"]=Math.round(a),"bottom"===l?r=1:"middle"===l&&(r=2),r&&(h+=(i.height-(t.height||0))/r),s[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](s),this.placed=!0,this.alignAttr=s,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,i){var n=this,o=s(j(e,this.renderer.globalAnimation,!0));return e=o.defer,j(l.hidden,l.msHidden,l.webkitHidden,!1)&&(o.duration=0),0!==o.duration?(i&&(o.complete=i),z(function(){n.element&&r(n,t,o)},e)):(this.attr(t,void 0,i||o.complete),L(t,function(t,e){o.step&&o.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 i=t.split(" ");if(t=i[i.length-1],(i=i[0])&&"none"!==i&&n.svg){this.fakeTS=!0,this.ySetter=this.xSetter,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var o=l.createElementNS(p,"tspan");g(o,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":i,"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)}),o.appendChild(e)});var r=l.createElementNS(p,"tspan");r.textContent="â",["x","y"].forEach(function(t){var i=e.getAttribute(t);i&&r.setAttribute(t,i)}),o.appendChild(r),e.insertBefore(o,e.firstChild)}},t.prototype.attr=function(t,e,i,n){var o,r,s,h=this.element,l=this.symbolCustomAttribs,c=this;if("string"==typeof t&&void 0!==e){var d=t;(t={})[d]=e}return"string"==typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,h):(L(t,function(e,i){r=!1,n||a(this,i),this.symbolName&&-1!==l.indexOf(i)&&(o||(this.symbolAttr(t),o=!0),r=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),r||((s=this[i+"Setter"]||this._defaultSetter).call(this,e,i,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,s))},this),this.afterSetters()),i&&i.call(this),c},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 i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),v(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,n){var o,r,s,a,h,l,c,d,p,u,f,g=this.renderer,m=[];w(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(s=t[r],h=g.gradients,l=t.stops,p=n.radialReference,k(s)&&(t[r]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&p&&!v(s.gradientUnits)&&(a=s,s=O(s,g.getRadialAttr(p,a),{gradientUnits:"userSpaceOnUse"})),L(s,function(t,e){"id"!==e&&m.push(e,t)}),L(l,function(t){m.push(t)}),m=m.join(","),h[m])u=h[m].attr("id");else{s.id=u=W();var y=h[m]=g.createElement(r).attr(s).add(g.defs);y.radAttr=a,y.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(o=i.parse(t[1]),c=o.get("rgb"),d=o.get("a")):(c=t[1],d=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(y),y.stops.push(t)})}f="url("+g.url+"#"+u+")",n.setAttribute(e,f),n.gradient=m,t.toString=function(){return f}}})},t.prototype.css=function(t){var e=this.styles,i={},n=this.element,o=!e;if(t.color&&(t.fill=t.color),e&&L(t,function(t,n){e&&e[n]!==t&&(i[n]=t,o=!0)}),o){if(e&&(t=b(e,i)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===n.nodeName.toLowerCase()&&t.width)var r=this.textWidth=R(t.width);this.styles=t,r&&!d&&this.renderer.forExport&&delete t.width;var s=O(t);n.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(t){return s&&delete s[t]}),y(n,s),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),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 i=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=i.length;t--;)i[t]=""+R(i[t])*j(e,NaN);t=i.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},i=t.renderer,n=e.ownerSVGElement,o=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,a(t),t.clipPath&&n){var r=t.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(r.element.i
1d)&&t.removeAttribute("clip-path")}),t.clipPath=r.destroy()}if(t.stops){for(n=0;n<t.stops.length;n++)t.stops[n].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();o&&o.div&&0===o.div.childNodes.length;)e=o.parentGroup,t.safeRemoveChild(o.div),delete o.div,o=e;t.alignTo&&x(i.alignedObjects,t),L(t,function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]})},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},t.prototype.destroyTextPath=function(t,e){var i=t.getElementsByTagName("text")[0];if(i){if(i.removeAttribute("dx"),i.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&i.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)i.appendChild(t[0]);i.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,i){k(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return e&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0}
1,{duration:j(t,150),complete:function(){e.attr({y:-9999}).hide()}})},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.getBBox=function(e,i){var n=this.alignValue,o=this.element,r=this.renderer,s=this.styles,a=this.textStr,l=r.cache,c=r.cacheKeys,d=o.namespaceURI===this.SVG_NS;i=j(i,this.rotation,0);var p,u=r.styledMode?o&&t.prototype.getStyle.call(o,"font-size"):s&&s.fontSize;if(v(a)){var f=a.toString();-1===f.indexOf("<")&&(f=f.replace(/[0-9]/g,"0")),f+=["",i,u,this.textWidth,n,s&&s.textOverflow,s&&s.fontWeight].join()}if(f&&!e&&(p=l[f]),!p){if(d||r.forExport){try{var g=this.fakeTS&&function(t){var e=o.querySelector(".highcharts-text-outline");e&&y(e,{display:t})};S(g)&&g("none"),p=o.getBBox?b({},o.getBBox()):{width:o.offsetWidth,height:o.offsetHeight},S(g)&&g("")}catch(t){}(!p||0>p.width)&&(p={x:0,y:0,width:0,height:0})}else p=this.htmlGetBBox();if(r.isSVG&&(r=p.width,e=p.height,d&&(p.height=e={"11px,17":14,"13px,20":16}[(u||"")+","+Math.round(e)]||e),i)){d=Number(o.getAttribute("y")||0)-p.y,n={right:1,center:.5}[n||0]||0,s=i*h,u=(i-90)*h;var m=r*Math.cos(s);i=r*Math.sin(s),g=Math.cos(u),s=Math.sin(u),m=(g=(u=(r=p.x+n*(r-m)+d*g)+m)-e*g)-m,i=(e=(n=(d=p.y+d-n*i+d*s)+i)-e*s)-i,p.x=Math.min(r,u,g,m),p.y=Math.min(d,n,e,i),p.width=Math.max(r,u,g,m)-p.x,p.height=Math.max(d,n,e,i)-p.y}if(f&&(""===a||0<p.height)){for(;250<c.length;)delete l[c.shift()];l[f]||c.push(f),l[f]=p}}return p},t.prototype.getStyle=function(t){return u.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},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):l.createElementNS(this.SVG_NS,e),this.renderer=t,w(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=f(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,i){this.opacity=t=Number(Number(t).toFixed(3)),i.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(P(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,i){var n=this.element,o=this.text?this.text.element:n,r={textAnchor:"text-anchor"},s=!1,a=this.textPathWrapper,h=!a;i=O(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i);var l=e.filterUserAttributes(i.attributes);if(t&&i&&i.enabled){a&&null===a.element.parentNode?(h=!0,a=a.destroy()):a&&this.removeTextOutline.call(a.parentGroup),this.options&&this.options.padding&&(l.dx=-this.options.padding),a||(this.textPathWrapper=a=this.renderer.createElement("textPath"),s=!0);var d=a.element;if((i=t.element.getAttribute("id"))||t.element.setAttribute("id",i=W()),h)for(o.setAttribute("y",0),M(l.dx)&&o.setAttribute("x",-l.dx),t=[].slice.call(o.childNodes),h=0;h<t.length;h++){var p=t[h];p.nodeType!==u.Node.TEXT_NODE&&"tspan"!==p.nodeName||d.appendChild(p)}s&&a&&a.add({element:o}),d.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+i),v(l.dy)&&(d.parentNode.setAttribute("dy",l.dy),delete l.dy),v(l.dx)&&(d.parentNode.setAttribute("dx",l.dx),delete l.dx),L(l,function(t,e){d.setAttribute(r[e]||e,t)}),n.removeAttribute("transform"),this.removeTextOutline.call(a),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=c}else a&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(n,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this}
1,t.prototype.shadow=function(t,e,i){var n,o=[],r=this.element,s=this.oldShadowOptions,a={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},h=!1;if(!0===t?n=a:"object"==typeof t&&(n=b(a,t)),n&&(n&&s&&L(n,function(t,e){t!==s[e]&&(h=!0)}),h&&this.destroyShadows(),this.oldShadowOptions=n),n){if(!this.shadows){var l=n.opacity/n.width,c=this.parentInverted?"translate("+n.offsetY+", "+n.offsetX+")":"translate("+n.offsetX+", "+n.offsetY+")";for(a=1;a<=n.width;a++){var d=r.cloneNode(!1),p=2*n.width+1-2*a;g(d,{stroke:t.color||"#000000","stroke-opacity":l*a,"stroke-width":p,transform:c,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),i&&(g(d,"height",Math.max(g(d,"height")-p,0)),d.cutHeight=p),e?e.element.appendChild(d):r.parentNode&&r.parentNode.insertBefore(d,r),o.push(d)}this.shadows=o}}else this.destroyShadows();return this},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,i,n){this[i]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===e&&this.hasStroke?(n.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(n.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=R(t);else if(""!==t){var i=l.createElementNS(p,"rect");g(i,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(i){e[i]=j(t[i],e[i])}),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,i=e.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(j(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/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,i){var n=this.shadows;if(n)for(var o=n.length;o--;)i.call(n[o],"height"===t?Math.max(e-(n[o].cutHeight||0),0):"d"===t?this.d:e,t,n[o])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,i=this.inverted,n=this.rotation,o=this.matrix,r=this.element,s=this.translateX||0,a=this.translateY||0;i&&(s+=this.width,a+=this.height),s=["translate("+s+","+a+")"],v(o)&&s.push("matrix("+o.join(",")+")"),i?s.push("rotate(90) scale(-1,1)"):n&&s.push("rotate("+n+" "+j(this.rotationOriginX,r.getAttribute("x"),0)+" "+j(this.rotationOriginY,r.getAttribute("y")||0)+")"),(v(t)||v(e))&&s.push("scale("+j(t,1)+" "+j(e,1)+")"),s.length&&r.setAttribute("transform",s.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.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 i=this.renderer,n=this.parentGroup,o=(n||i).element||i.box,r=this.element;i=o===i.box;var s,a=!1,h=this.added;if(v(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):v(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&n&&(n.handleZ=!0),s=(e=o.childNodes).length-1;0<=s&&!a;s--){h=(n=e[s]).getAttribute("data-z-index");var l=!v(h);n!==r&&(0>t&&l&&!i&&!s?(o.insertBefore(r,e[s]),a=!0):(R(h)<=t||l&&(!v(t)||0<=t))&&(o.insertBefore(r,e[s+1]||null),a=!0))}a||(o.insertBefore(r,e[i?3:0]||null),a=!0)}return a},t}(),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}),K(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(t){var e;return function(e){var i;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=i),e.rendererTypes[t]||e.rendererTypes[i]},e.registerRendererType=function(n,o,r){e.rendererTypes[n]=o,i&&!r||(i=n,t.Renderer=o)}}(e||(e={})),e}),K(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}
1(),n=e.defined,o=e.extend,r=e.isNumber,s=e.merge,a=e.pick,h=e.removeEvent;return function(e){function l(t,i,n,o,r,s,a,h,c,d){var p,u=e.call(this)||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.init(t,"g"),u.textStr=i,u.x=n,u.y=o,u.anchorX=s,u.anchorY=a,u.baseline=c,u.className=d,u.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&u.addClass("highcharts-"+d),u.text=t.text(void 0,0,0,h).attr({zIndex:1}),"string"==typeof r&&((p=/^url\((.*?)\)$/.test(r))||u.renderer.symbols[r])&&(u.symbolKey=r),u.bBox=l.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=t.styledMode||p,u.deferredAttr={},u.alignFactor=0,u}return i(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var i={};e=s(e),l.textProps.forEach(function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])}),this.text.css(i);var n="width"in i;"fontSize"in i||"fontWeight"in i?this.updateTextPadding():n&&this.updateBoxSize()}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){h(this.element,"mouseenter"),h(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=a(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},l.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},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:n(t)?t:"",x:this.x,y:this.y}),this.box&&n(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t,e){r(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},i=this.padding,s=this.bBox=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!n(this.text.textStr)?l.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||s.height||0)+2*i,t=this.renderer.fontMetrics(t&&t.fontSize,this.text),this.baselineOffset=i+Math.min((this.text.firstLineMetrics||t).b,s.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-t.h)/2),this.needsBox&&(this.box||((i=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":"")),i.add(this)),i=this.getCrispAdjust(),e.x=i,e.y=(this.baseline?-this.baselineOffset:0)+i,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(o(e,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,i=a(this.paddingLeft,this.padding);n(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),i===t.x&&e===t.y||
1(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e},l.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},l.prototype.getPaddedWidth=function(){var t=this.padding,e=a(this.paddingLeft,t);return t=a(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},l.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)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)}),K(e,"Core/Renderer/SVG/Symbols.js",[e["Core/Utilities.js"]],function(t){function e(t,e,n,r,s){var a=[];if(s){var h=s.start||0,l=o(s.r,n);n=o(s.r,r||n);var c=(s.end||0)-.001;r=s.innerR;var d=o(s.open,.001>Math.abs((s.end||0)-h-2*Math.PI)),p=Math.cos(h),u=Math.sin(h),f=Math.cos(c),g=Math.sin(c);h=o(s.longArc,.001>c-h-Math.PI?0:1),a.push(["M",t+l*p,e+n*u],["A",l,n,0,h,o(s.clockwise,1),t+l*f,e+n*g]),i(r)&&a.push(d?["M",t+r*f,e+r*g]:["L",t+r*f,e+r*g],["A",r,r,0,h,i(s.clockwise)?1-s.clockwise:0,t+r*p,e+r*u]),d||a.push(["Z"])}return a}function B(t,e,i,n,o){return o&&o.r?H(t,e,i,n,o):[["M",t,e],["L",t+i,e],["L",t+i,e+n],["L",t,e+n],["Z"]]}function H(t,e,i,n,o){return[["M",t+(o=o&&o.r||0),e],["L",t+i-o,e],["C",t+i,e,t+i,e,t+i,e+o],["L",t+i,e+n-o],["C",t+i,e+n,t+i,e+n,t+i-o,e+n],["L",t+o,e+n],["C",t,e+n,t,e+n,t,e+n-o],["L",t,e+o],["C",t,e,t,e,t+o,e]]}var i=t.defined,n=t.isNumber,o=t.pick;return{arc:e,callout:function(t,e,i,o,r){var s=Math.min(r&&r.r||0,i,o),a=s+6,h=r&&r.anchorX;r=r&&r.anchorY||0;var l=H(t,e,i,o,{r:s});return n(h)?(t+h>=i?r>e+a&&r<e+o-a?l.splice(3,1,["L",t+i,r-6],["L",t+i+6,r],["L",t+i,r+6],["L",t+i,e+o-s]):l.splice(3,1,["L",t+i,o/2],["L",h,r],["L",t+i,o/2],["L",t+i,e+o-s]):0>=t+h?r>e+a&&r<e+o-a?l.splice(7,1,["L",t,r+6],["L",t-6,r],["L",t,r-6],["L",t,e+s]):l.splice(7,1,["L",t,o/2],["L",h,r],["L",t,o/2],["L",t,e+s]):r&&r>o&&h>t+a&&h<t+i-a?l.splice(5,1,["L",h+6,e+o],["L",h,e+o+6],["L",h-6,e+o],["L",t+s,e+o]):r&&0>r&&h>t+a&&h<t+i-a&&l.splice(1,1,["L",h-6,e],["L",h,e-6],["L",h+6,e],["L",i-s,e]),l):l},circle:function(t,i,n,o){return e(t+n/2,i+o/2,n/2,o/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,n){return[["M",t+i/2,e],["L",t+i,e+n/2],["L",t+i/2,e+n],["L",t,e+n/2],["Z"]]},rect:B,roundedRect:H,square:B,triangle:function(t,e,i,n){return[["M",t+i/2,e],["L",t+i,e+n],["L",t,e+n],["Z"]]},"triangle-down":function(t,e,i,n){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+n],["Z"]]}}}),K(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){var n=e.doc,o=e.SVG_NS,r=e.win,s=i.attr,a=i.extend,h=i.isString,l=i.objectEach,c=i.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,i=e.element,o=e.renderer,r=c(e.textStr,"").toString(),s=-1!==r.indexOf("<"),a=i.childNodes;o=this.width&&!e.added&&o.box;var l=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(l!==e.textCache){for(e.textCache=l,delete e.actualWidth,l=a.length;l--;)i.removeChild(a[l]);s||this.ellipsis||this.width||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))?""!==r&&(o&&o.appendChild(i),r=new t(r),this.modifyTree(r.nodes),r.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("â¦")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),o&&o.removeChild(i)):i.appendChild(n.createTextNode(this.unescapeEntities(r))),h(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,a=s(i.element,"x");for(i.firstLineMetrics=void 0;(t=i.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)i.element.removeChild(t);[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),function(t,n){t.nextSibling&&t.previousSibling&&(0===n&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(void 0,t.previousSibling)),s(t,{dy:e.getLineHeight(t.nextSibling),x:a}))});var h=this.width||0;if(h){var l=function(t,r){var l=t.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!e.noWrap&&(1<c.length||1<i.element.childNodes.length),p=e.getLineHeight(r),u=0,f=i.actualWidth;if(e.ellipsis)l&&e.truncate(t,l,void 0,0,Math.max(0,h-parseInt(e.fontSize||12,10)),function(t,e){return t.substring(0,e)+"â¦"});else if(d){for(l=[],d=[];
1r.firstChild&&r.firstChild!==t;)d.push(r.firstChild),r.removeChild(r.firstChild);for(;c.length;)c.length&&!e.noWrap&&0<u&&(l.push(t.textContent||""),t.textContent=c.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,c,0===u&&f||0,h,function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")}),f=i.actualWidth,u++;d.forEach(function(e){r.insertBefore(e,t)}),l.forEach(function(e){r.insertBefore(n.createTextNode(e),t),(e=n.createElementNS(o,"tspan")).textContent="â",s(e,{dy:p,x:a}),r.insertBefore(e,t)})}},c=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===r.Node.TEXT_NODE?l(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),c(e))})};c(i.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===r.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,i=function(n,o){var r=n.attributes;r=void 0===r?{}:r;var s=n.children,h=n.style;h=void 0===h?{}:h;var l=n.tagName,c=e.renderer.styledMode;"b"===l||"strong"===l?c?r.class="highcharts-strong":h.fontWeight="bold":"i"!==l&&"em"!==l||(c?r.class="highcharts-emphasized":h.fontStyle="italic"),h&&h.color&&(h.fill=h.color),"br"===l?(r.class="highcharts-br",n.textContent="â",(o=t[o+1])&&o.textContent&&(o.textContent=o.textContent.replace(/^ +/gm,""))):"a"===l&&s&&s.some(function(t){return"#text"===t.tagName})&&(n.children=[{children:s,tagName:"tspan"}]),"#text"!==l&&"a"!==l&&(n.tagName="tspan"),a(n,{attributes:r,style:h}),s&&s.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i)},e.prototype.truncate=function(t,e,i,n,o,r){var s,a=this.svgElement,h=a.renderer,l=a.rotation,c=[],d=i?1:0,p=(e||i||"").length,u=p,D=function(o,s){s=s||o;var l=t.parentNode;if(l&&void 0===c[s])if(l.getSubStringLength)try{c[s]=n+l.getSubStringLength(0,i?s+1:s)}catch(t){}else h.getSpanWidth&&(t.textContent=r(e||i,o),c[s]=n+h.getSpanWidth(a,t));return c[s]};a.rotation=0;var f=D(t.textContent.length);if(n+f>o){for(;d<=p;)u=Math.ceil((d+p)/2),i&&(s=r(i,u)),f=D(u,s&&s.length-1),d===p?d=p+1:f>o?p=u-1:d=u;0===p?t.textContent="":e&&p===e.length-1||(t.textContent=s||r(e||i,u))}i&&i.splice(0,u),a.actualWidth=f,a.rotation=l},e.prototype.unescapeEntities=function(t,e){return l(this.renderer.escapes,function(i,n){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),n))}),t},e}()}),K(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s,a,h){var l,c=i.charts,d=i.deg2rad,p=i.doc,u=i.isFirefox,f=i.isMS,g=i.isWebKit,m=i.noop,y=i.SVG_NS,v=i.symbolSizes,x=i.win,b=h.addEvent,w=h.attr,k=h.createElement,S=h.css,M=h.defined,P=h.destroyObjectProperties,O=h.extend,L=h.isArray,j=h.isNumber,R=h.isObject,z=h.isString,W=h.merge,Y=h.pick,X=h.pInt,_=h.uniqueKey;return i=function(){function J(t,e,i,n,o,r,s){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,i,n,o,r,s)}return J.prototype.init=function(t,e,i,n,o,r,s){var a,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=h.element;s||h.css(this.getStyle(n)),t.appendChild(l),w(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&w(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 10.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),u&&t.getBoundingClientRect&&((e=function(){S(t,{left:0,top:0}),a=t.getBoundingClientRect(),S(t,{left:Math.ceil(a.left)-a.left+"px",to
1p:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(x,"resize",e))},J.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},J.prototype.getReferenceURL=function(){if((u||g)&&p.getElementsByTagName("base").length){if(!M(l)){var e=_();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(p.body),S(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=p.elementFromPoint(6,6);l="hitme"===(i&&i.id),p.body.removeChild(e)}if(l)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},J.prototype.getStyle=function(t){return this.style=O({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},J.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},J.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},J.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),P(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},J.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},J.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]}},J.prototype.buildText=function(t){new a(t).buildSVG()},J.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"},J.prototype.button=function(e,i,n,o,r,s,a,h,l,c){var d=this.label(e,i,n,l,void 0,void 0,c,void 0,"button"),p=this.styledMode;e=r&&r.states||{},r&&delete r.states;var u=0,g=r?W(r):{},m=W({color:"#333333",cursor:"pointer",fontWeight:"normal"},g.style);if(delete g.style,g=t.filterUserAttributes(g),d.attr(W({padding:8,r:2},g)),!p){g=W({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},g);var y=(s=W(g,{fill:"#e6e6e6"},t.filterUserAttributes(s||e.hover||{}))).style;delete s.style;var v=(a=W(g,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var x=(h=W(g,{style:{color:"#cccccc"}},t.filterUserAttributes(h||e.disabled||{}))).style;delete h.style}return b(d.element,f?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),b(d.element,f?"mouseout":"mouseleave",function(){3!==u&&d.setState(u)}),d.setState=function(t){1!==t&&(d.state=u=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),p||(d.attr([g,s,a,h][t||0]),R(t=[m,y,v,x][t||0])&&d.css(t))},p||d.attr(g).css(O({cursor:"default"},m)),d.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&o.call(d,t)})},J.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var n=t[0],o=t[1];return M(n[1])&&n[1]===o[1]&&(n[1]=o[1]=Math[i](n[1])-e%2/2),M(n[2])&&n[2]===o[2]&&(n[2]=o[2]=Math[i](n[2])+e%2/2),t},J.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return L(t)?e.d=t:R(t)&&O(e,t),this.createElement("path").attr(e)},J.prototype.circle=function(t,e,i){return t=R(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},J.prototype.arc=function(t,e,i,n,o,r){return R(t)?(e=(n=t).y,i=n.r,t=n.x):n={innerR:n,start:o,end:r},(t=this.symbol("arc",t,e,i,i,n)).r=i,t},J.prototype.rect=function(t,e,i,n,o,r){o=R(t)?t.r:o;var s=this.createElement("rect");return t=R(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(n,0)},this.styledMode||(void 0!==r&&(t["stroke-width"]=r,t=s.crisp(t)),t.fill="none"),o&&(t.r=o),s.rSetter=function(t,e,i){s.r=t,w(i,{rx:t,ry:t})},s.rGetter=function(){return s.r||0},s.attr(t)},J.prototype.setSize=function(t,e,i){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:Y(i,!0)?void 0:0}),this.alignElements()},J.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}
1,J.prototype.image=function(t,e,i,n,o,r){var s={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};j(e)&&(s.x=e),j(i)&&(s.y=i),j(n)&&(s.width=n),j(o)&&(s.height=o);var h=this.createElement("image").attr(s);return e=function(e){a(h.element,t),r.call(h,e)},r?(a(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i=new x.Image,b(i,"load",e),i.src=t,i.complete&&e({})):a(h.element,t),h},J.prototype.symbol=function(t,e,i,n,o,r){var s,a=this,h=/^url\((.*?)\)$/,l=h.test(t),d=!l&&(this.symbols[t]?t:"circle"),u=d&&this.symbols[d];if(u){"number"==typeof e&&(s=u.call(this.symbols,Math.round(e||0),Math.round(i||0),n||0,o||0,r));var f=this.path(s);a.styledMode||f.attr("fill","none"),O(f,{symbolName:d||void 0,x:e,y:i,width:n,height:o}),r&&O(f,r)}else if(l){var g=t.match(h)[1],m=f=this.image(g);m.imgwidth=Y(v[g]&&v[g].width,r&&r.width),m.imgheight=Y(v[g]&&v[g].height,r&&r.height);var y=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach(function(t){m[t+"Setter"]=function(t,e){var i=this["img"+e];this[e]=t,M(i)&&(r&&"within"===r.backgroundSize&&this.width&&this.height&&(i=Math.round(i*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,i),this.alignByTranslate||(t=((this[e]||0)-i)/2,this.attr("width"===e?{translateX:t}:{translateY:t})))}}),M(e)&&m.attr({x:e,y:i}),m.isImg=!0,M(m.imgwidth)&&M(m.imgheight)?y(m):(m.attr({width:0,height:0}),k("img",{onload:function(){var t=c[a.chartIndex];0===this.width&&(S(this,{position:"absolute",top:"-999em"}),p.body.appendChild(this)),v[g]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&y(m),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:g}),this.imgCount++)}return f},J.prototype.clipRect=function(t,e,i,n){var o=_()+"-",r=this.createElement("clipPath").attr({id:o}).add(this.defs);return(t=this.rect(t,e,i,n,0).add(r)).id=o,t.clipPath=r,t.count=0,t},J.prototype.text=function(t,e,i,n){var o={};return!n||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),M(t)&&(o.text=t),t=this.createElement("text").attr(o),(!n||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,i){for(var n,o=i.getElementsByTagName("tspan"),r=i.getAttribute(e),s=0;s<o.length;s++)(n=o[s]).getAttribute(e)===r&&n.setAttribute(e,t);i.setAttribute(e,t)}),t):this.html(t,e,i)},J.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!x.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&o.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?X(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},J.prototype.rotCorr=function(t,e,i){var n=t;return e&&i&&(n=Math.max(n*Math.cos(e*d),4)),{x:-t/3*Math.sin(e*d),y:n}},J.prototype.pathToSegments=function(t){for(var e=[],i=[],n={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},o=0;o<t.length;o++)z(i[0])&&j(t[o])&&i.length===n[i[0].toUpperCase()]&&t.splice(o,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[o]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[o]);return e.push(i.slice(0)),e},J.prototype.label=function(t,e,i,n,o,s,a,h,l){return new r(this,t,e,i,n,o,s,a,h,l)},J.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},J}(),O(i.prototype,{Element:o,SVG_NS:y,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:s,draw:m}),n.registerRendererType("svg",i,!0),i}),K(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=t.isFirefox,r=t.isMS,s=t.isWebKit,a=t.win,h=i.css,l=i.defined,c=i.extend,d=i.pick,p=i.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}
1return n(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var i=e.prototype,n=t.prototype;n.getSpanCorrection=i.getSpanCorrection,n.htmlCss=i.htmlCss,n.htmlGetBBox=i.htmlGetBBox,n.htmlUpdateTransform=i.htmlUpdateTransform,n.setSpanRotation=i.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=d(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var n=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),h(this.element,t),n&&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,i=this.translateX||0,n=this.translateY||0,o=this.x||0,r=this.y||0,s=this.textAlign||"left",a={left:0,center:.5,right:1}[s],c=this.styles;if(c=c&&c.whiteSpace,h(e,{marginLeft:i,marginTop:n}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){h(t,{marginLeft:i+1,marginTop:n+1})}),this.inverted&&[].forEach.call(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var d=this.rotation,u=this.textWidth&&p(this.textWidth),f=[d,s,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,u!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else h(e,{width:"",whiteSpace:c||"nowrap"}),m=e.offsetWidth;(u>this.oldTextWidth||m>u)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(h(e,{width:m>u||d?u+"px":"auto",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=u,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,!l(d)||d===(this.oldRotation||0)&&s===this.oldAlign||this.setSpanRotation(d,a,g),this.getSpanCorrection(!l(d)&&this.textPxLength||e.offsetWidth,g,a,d,s)),h(e,{left:o+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=d,this.oldAlign=s}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,i){var n={},l=r&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":s?"-webkit-transform":o?"MozTransform":a.opera?"-o-transform":void 0;l&&(n[l]=n.transform="rotate("+t+"deg)",n[l+(o?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",h(this.element,n))},e.composedClasses=[],e}(e)}),K(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(t,e,i,n){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=n.attr,s=n.createElement,a=n.extend,h=n.pick;return function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return o(n,i),n.compose=function(t){return-1===n.composedClasses.indexOf(t)&&(n.composedClasses.push(t),t.prototype.html=n.prototype.html),t},n.prototype.html=function(i,n,o){var l=this.createElement("span"),c=l.element,d=l.renderer,p=d.isSVG,u=function(t,i){["opacity","visibility"].forEach(function(n){t[n+"Setter"]=function(o,r,s){var a=t.div?t.div.style:i;e.prototype[n+"Setter"].call(this,o,r,s),a&&(a[r]=o)}}),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,h(e,"")),this.textStr=e,l.doTransform=!0)},p&&u(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:i,x:Math.round(n),y:Math.round(o)}).css({position:"absolute"}),d.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",l.css=l.htmlCss,p&&(l.add=function(t){var e=d.box.parentNode,i=[];if(this.parentGroup=t){var n=t.div;if(!n){for(;t;)i.push(t),t=t.parentGroup;
1i.reverse().forEach(function(t){function o(e,i){t[i]=e,"translateX"===i?d.left=e+"px":d.top=e+"px",t.doTransform=!0}var h=r(t.element,"class"),c=t.styles||{},d=(n=t.div=t.div||s("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},n||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(n),on:function(){return i[0].div&&l.on.apply({element:i[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:o,translateYSetter:o}),t.addedSetters||u(t)})}}else n=e;return n.appendChild(c),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},n.composedClasses=[],n}(i)}),K(e,"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}),K(e,"Core/Foundation.js",[e["Core/Utilities.js"]],function(t){var e,i=t.addEvent,n=t.isFunction,o=t.objectEach,r=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},o(e.events,function(e,o){t.eventOptions[o]!==e&&(t.eventOptions[o]&&(r(t,o,t.eventOptions[o]),delete t.eventOptions[o]),n(e)&&(t.eventOptions[o]=e,i(t,o,e)))})}}(e||(e={})),e}),K(e,"Core/Axis/Tick.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e,i){var n=e.deg2rad,o=i.clamp,r=i.correctFloat,s=i.defined,a=i.destroyObjectProperties,h=i.extend,l=i.fireEvent,c=i.isNumber,d=i.merge,p=i.objectEach,u=i.pick;return e=function(){function e(t,e,i,n,o){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),i||n||this.addLabel()}return e.prototype.addLabel=function(){var e=this,i=e.axis,n=i.options,o=i.chart,a=i.categories,d=i.logarithmic,p=i.names,f=e.pos,g=u(e.options&&e.options.labels,n.labels),m=i.tickPositions,y=f===m[0],v=f===m[m.length-1],x=(!g.step||1===g.step)&&1===i.tickInterval;m=m.info;var b,w=e.label;if(a=this.parameters.category||(a?u(a[f],p[f],f):f),d&&c(a)&&(a=r(d.lin2log(a))),i.dateTime)if(m)var k=o.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&m.higherRanks[f]||m.unitName]),S=k.main;else c(a)&&(S=i.dateTime.getXDateFormat(a,n.dateTimeLabelFormats||{}));e.isFirst=y,e.isLast=v;var M={axis:i,chart:o,dateTimeLabelFormat:S,isFirst:y,isLast:v,pos:f,tick:e,tickPositionInfo:m,value:a};l(this,"labelFormat",M);
1var C=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=i.defaultLabelFormatter.call(e),t.format(g.format,e,o)):i.defaultLabelFormatter.call(e,e)};n=C.call(M,M);var P=k&&k.list;e.shortenLabel=P?function(){for(b=0;b<P.length;b++)if(h(M,{dateTimeLabelFormat:P[b]}),w.attr({text:C.call(M,M)}),w.getBBox().width<i.getSlotWidth(e)-2*g.padding)return;w.attr({text:""})}:void 0,x&&i._addedPlotLB&&e.moveLabel(n,g),s(w)||e.movedLabel?w&&w.textStr!==n&&!x&&(!w.textWidth||g.style.width||w.styles.width||w.css({width:null}),w.attr({text:n}),w.textPxLength=w.getBBox().width):(e.label=w=e.createLabel({x:0,y:0},n,g),e.rotation=0)},e.prototype.createLabel=function(t,e,i){var n=this.axis,o=n.chart;return(t=s(e)&&i.enabled?o.renderer.text(e,t.x,t.y,i.useHTML).add(n.labelGroup):null)&&(o.styledMode||t.css(d(i.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,i,n){var s=this.axis,a=s.chart,h=n&&a.oldChartHeight||a.chartHeight;return(t={x:t?r(s.translate(e+i,null,null,n)+s.transB):s.left+s.offset+(s.opposite?(n&&a.oldChartWidth||a.chartWidth)-s.right-s.left:0),y:t?h-s.bottom+s.offset-(s.opposite?s.height:0):r(h-s.translate(e+i,null,null,n)-s.transB)}).y=o(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,i,o,r,a,h,c){var d=this.axis,p=d.transA,u=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,f=d.staggerLines,g=d.tickRotCorr||{x:0,y:0},m=o||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),y={},v=r.y;return s(v)||(v=0===d.side?i.rotation?-8:-i.getBBox().height:2===d.side?g.y+8:Math.cos(i.rotation*n)*(g.y-i.getBBox(!1,0).height/2)),t=t+r.x+m+g.x-(a&&o?a*p*(u?-1:1):0),e=e+v-(a&&!o?a*p*(u?1:-1):0),f&&(i=h/(c||1)%f,d.opposite&&(i=f-i-1),e+=d.labelOffset/f*i),y.x=t,y.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:a,index:h}),y},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,i,n,o,r){return r.crispLine([["M",t,e],["L",t+(o?0:-i),e+(o?i:0)]],n)},e.prototype.handleOverflow=function(t){var e=this.axis,i=e.options.labels,o=t.x,r=e.chart.chartWidth,s=e.chart.spacing,a=u(e.labelLeft,Math.min(e.pos,s[3]));s=u(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,r-s[1]));var h,l=this.label,c=this.rotation,d={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],p=l.getBBox().width,f=e.getSlotWidth(this),g={},m=f,y=1;c||"justify"!==i.overflow?0>c&&o-d*p<a?h=Math.round(o/Math.cos(c*n)-a):0<c&&o+d*p>s&&(h=Math.round((r-o)/Math.cos(c*n))):(r=o+(1-d)*p,o-d*p<a?m=t.x+m*(1-d)-a:r>s&&(m=s-t.x+m*d,y=-1),(m=Math.min(f,m))<f&&"center"===e.labelAlign&&(t.x+=y*(f-m-d*(f-Math.min(p,m)))),(p>m||e.autoRotation&&(l.styles||{}).width)&&(h=m)),h&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(h)+"px",(i.style||{}).textOverflow||(g.textOverflow="ellipsis"),l.css(g)))},e.prototype.moveLabel=function(t,e){var i=this,n=i.label,o=i.axis,r=o.reversed,s=!1;if(n&&n.textStr===t?(i.movedLabel=n,s=!0,delete i.label):p(o.ticks,function(e){s||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,s=!0,e.labelPos=i.movedLabel.xy,delete e.label)}),!s&&(i.labelPos||n)){var a=i.labelPos||n.xy;n=o.horiz?r?0:o.width+o.left:a.x,o=o.horiz?a.y:r?o.width+o.left:0,i.movedLabel=i.createLabel({x:n,y:o},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,i){var n=this.axis,o=n.horiz,r=this.pos,s=u(this.tickmarkOffset,n.tickmarkOffset);s=(r=this.getPosition(o,r,s,e)).x;var a=r.y;n=o&&s===n.pos+n.len||!o&&a===n.pos?-1:1,o=u(i,this.label&&this.label.newOpacity,1),i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,n),this.renderMark(r,i,n),this.renderLabel(r,e,o,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,i){var n=this.axis,o=n.options,r={},s=this.pos,a=this.type,h=u(this.tickmarkOffset,n.tickmarkOffset),l=n.chart.renderer,c=this.gridLine,d=o.gridLineWidth,p=o.gridLineColor,f=o.gridLineDashStyle;"minor"===this.type&&(d=o.minorGridLineWidth,p=o.minorGridLineColor,f=o.minorGridLineDashStyle),c||(n.chart.styledMode||(r.stroke=p,r["stroke-width"]=d||0,r.dashstyle=f),a||(r.zIndex=1),t&&(e=0),this.gridLine=c=l.path().attr(r).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(n.gridGroup)),c&&(i=n.getPlotLinePath({value:s+h,lineWidth:c.strokeWidth()*i,force:"pass",old:t}))&&c[t||this.isNew?"attr":"animate"]({d:i,opacity:e})}
1,e.prototype.renderMark=function(t,e,i){var n=this.axis,o=n.options,r=n.chart.renderer,s=this.type,a=n.tickSize(s?s+"Tick":"tick"),h=t.x;t=t.y;var l=u(o["minor"!==s?"tickWidth":"minorTickWidth"],!s&&n.isXAxis?1:0);o=o["minor"!==s?"tickColor":"minorTickColor"];var c=this.mark,d=!c;a&&(n.opposite&&(a[0]=-a[0]),c||(this.mark=c=r.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||c.attr({stroke:o,"stroke-width":l})),c[d?"attr":"animate"]({d:this.getMarkPath(h,t,a[0],c.strokeWidth()*i,n.horiz,r),opacity:e}))},e.prototype.renderLabel=function(t,e,i,n){var o=this.axis,r=o.horiz,s=o.options,a=this.label,h=s.labels,l=h.step;o=u(this.tickmarkOffset,o.tickmarkOffset);var d=t.x;t=t.y;var p=!0;a&&c(d)&&(a.xy=t=this.getLabelPosition(d,t,a,r,h,o,n,l),this.isFirst&&!this.isLast&&!s.showFirstLabel||this.isLast&&!this.isFirst&&!s.showLastLabel?p=!1:!r||h.step||h.rotation||e||0===i||this.handleOverflow(t),l&&n%l&&(p=!1),p&&c(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var n=e.horiz?i?e.left:e.width+e.left:t.xy.x;i=e.horiz?t.xy.y:i?e.width+e.top:e.top,t.animate({x:n,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e}),K(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/DefaultOptions.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s,a){var h=t.animObject,l=n.defaultOptions,c=o.registerEventOptions,d=r.deg2rad,p=a.arrayMax,u=a.arrayMin,f=a.clamp,g=a.correctFloat,m=a.defined,y=a.destroyObjectProperties,v=a.erase,x=a.error,b=a.extend,w=a.fireEvent,k=a.isArray,S=a.isNumber,M=a.isString,P=a.merge,O=a.normalizeTickInterval,L=a.objectEach,j=a.pick,R=a.relativeLength,z=a.removeEvent,W=a.splat,Y=a.syncTimeout,C=function(t,e){return O(e,void 0,void 0,j(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)};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.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!i:i,this.isXAxis=i,this.coll=this.coll||(i?"xAxis":"yAxis"),w(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 n=this.options,o=n.labels,r=n.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=j(n.reversed,this.reversed),this.visible=n.visible,this.zoomEnabled=n.zoomEnabled,this.hasNames="category"===r||!0===n.categories,this.categories=n.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(n.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=n.minRange||n.maxZoom,this.range=n.range,this.offset=n.offset||0,this.min=this.max=null,e=j(n.crosshair,W(t.options.tooltip.crosshairs)[i?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(i?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&&i&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=S(o.rotation)?o.rotation:void 0,c(this,n),w(this,"afterInit")},t.prototype.setOptions=function(t){this.options=P(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],P(l[this.coll],t)),w(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var i=S(this.value)?this.value:NaN,n=e.chart.time,o=this.dateTimeLabelFormat,r=l.lang,s=r.numericSymbol
1s;r=r.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(i):e.tickInterval,h=s&&s.length;if(e.categories)var c=""+this.value;else if(o)c=n.dateFormat(o,i);else if(h&&1e3<=a)for(;h--&&void 0===c;)a>=(e=Math.pow(r,h+1))&&0==10*i%e&&null!==s[h]&&0!==i&&(c=t(i/e,-1)+s[h]);return void 0===c&&(c=1e4<=Math.abs(i)?t(i,-1):t(i,-1,void 0,"")),c},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;w(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(n){if(n.visible||!i.options.chart.ignoreHiddenSeries){var o=n.options,r=o.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((o=n.xData).length){o=e.logarithmic?o.filter(e.validatePositiveValue):o;var s=(t=n.getXExtremes(o)).min,a=t.max;S(s)||s instanceof Date||(o=o.filter(S),s=(t=n.getXExtremes(o)).min,a=t.max),o.length&&(e.dataMin=Math.min(j(e.dataMin,s),s),e.dataMax=Math.max(j(e.dataMax,a),a))}}else n=n.applyExtremes(),S(n.dataMin)&&(s=n.dataMin,e.dataMin=Math.min(j(e.dataMin,s),s)),S(n.dataMax)&&(a=n.dataMax,e.dataMax=Math.max(j(e.dataMax,a),a)),m(r)&&(e.threshold=r),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),w(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,n,o,r){var s=this.linkedParent||this,a=n&&s.old?s.old.min:s.min,h=s.minPixelPadding;o=(s.isOrdinal||s.brokenAxis&&s.brokenAxis.hasBreaks||s.logarithmic&&o)&&s.lin2val;var l=1,c=0;return(n=n&&s.old?s.old.transA:s.transA)||(n=s.transA),i&&(l*=-1,c=s.len),s.reversed&&(c-=(l*=-1)*(s.sector||s.len)),e?(r=(t*l+c-h)/n+a,o&&(r=s.lin2val(r))):(o&&(t=s.val2lin(t)),t=l*(t-a)*n,r=S(a)?(s.isRadial?t:g(t))+c+l*h+(S(r)?n*r:0):void 0),r},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,i){return("pass"!==x&&t<e||t>i)&&(x?t=f(t,e,i):s=!0),t}var i,n,o,r,s,a=this,h=a.chart,l=a.left,c=a.top,d=t.old,p=t.value,u=t.lineWidth,g=d&&h.oldChartHeight||h.chartHeight,m=d&&h.oldChartWidth||h.chartWidth,y=a.transB,v=t.translatedValue,x=t.force;return t={value:p,lineWidth:u,old:d,force:x,acrossPanes:t.acrossPanes,translatedValue:v},w(this,"getPlotLinePath",t,function(t){v=j(v,a.translate(p,null,null,d)),v=f(v,-1e5,1e5),i=o=Math.round(v+y),n=r=Math.round(g-v-y),S(v)?a.horiz?(n=c,r=g-a.bottom,i=o=e(i,l,l+a.width)):(i=l,o=m-a.right,n=r=e(n,c,c+a.height)):(s=!0,x=!1),t.path=s&&!x?null:h.renderer.crispLine([["M",i,n],["L",o,r]],u||1)}),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var n=g(Math.floor(e/t)*t);i=g(Math.ceil(i/t)*t);var o,r=[];if(g(n+t)===n&&(o=20),this.single)return[e];for(e=n;e<=i&&(r.push(e),(e=g(e+t,o))!==s);)var s=e;return r},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,i=this.minorTickInterval,n=this.pointRangePadding||0,o=this.min-n,r=(n=this.max+n)-o,s=[];if(r&&r/i<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach(function(t,e,n){e&&s.push.apply(s,a.getLogTickPositions(i,n[e-1],n[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())s=s.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),o,n,t.startOfWeek));else for(t=o+(e[0]-o)%i;t<=n&&t!==s[0];t+=i)s.push(t)}return 0!==s.length&&this.trimTicks(s),s},t.prototype.adjustForMinRange=function(){var t,e,i,n,o=this.options,r=this.logarithmic,s=this.min,a=this.max,h=0;if(this.isXAxis&&void 0===this.minRange&&!r&&(m(o.min)||m(o.max)||m(o.floor)||m(o.ceiling)?this.minRange=null:(this.series.forEach(function(o){if(i=o.xData,n=o.xIncrement?1:i.length-1,1<i.length)for(t=n;0<t;t--)e=i[t]-i[t-1],(!h||e<h)&&(h=e)}),this.minRange=Math.min(5*h,this.dataMax-this.dataMin))),a-s<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,c=this.minRange,d=(c-a+s)/2;d=[s-d,j(o.min,s-d)],l&&(d[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(s=p(d))+c,j(o.max,s+c)],l&&(a[2]=r?r.log2lin(this.dataMax):this.dataMax),(a=u(a))-s<c&&(d[0]=a-c,d[1]=j(o.min,a-c),s=p(d))}this.min=s,this.max=a},t.prototype.getClosest=function(){var t;
1return this.categories?t=1:this.series.forEach(function(e){var i=e.closestPointRange,n=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&m(i)&&n&&(t=m(t)?Math.min(t,i):i)}),t},t.prototype.nameToX=function(t){var e=k(this.options.categories),i=e?this.categories:this.names,n=t.options.x;if(t.series.requireSorting=!1,m(n)||(n=this.options.uniqueNames&&i?e?i.indexOf(t.name):j(i.keys[t.name],-1):t.series.autoIncrement()),-1===n){if(!e&&i)var o=i.length}else o=n;return void 0!==o&&(this.names[o]=t.name,this.names.keys[t.name]=o),o},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(i,n){if(i&&i.options&&void 0!==i.name){var o=t.nameToX(i);void 0!==o&&o!==i.x&&(i.x=o,e.xData[n]=o)}})}))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,i=t.linkedParent,n=!!t.categories,o=t.isXAxis,r=t.axisPointRange||0,s=0,a=0,h=t.transA;if(o||n||r){var l=t.getClosest();i?(s=i.minPointOffset,a=i.pointRangePadding):t.series.forEach(function(e){var i=n?1:o?j(e.options.pointRange,l,0):t.axisPointRange||0,h=e.options.pointPlacement;r=Math.max(r,i),t.single&&!n||(e=e.is("xrange")?!o:o,s=Math.max(s,e&&M(h)?0:i/2),a=Math.max(a,e&&"on"===h?0:i))}),i=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=s*=i,t.pointRangePadding=a*=i,t.pointRange=Math.min(r,t.single&&n?1:e),o&&(t.closestPointRange=l)}t.translationSlope=t.transA=h=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=h*s,w(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,i=this.logarithmic,n=this.options,o=this.isXAxis,r=this.isLinked,s=n.tickPixelInterval,a=this.categories,h=this.softThreshold,l=n.maxPadding,c=n.minPadding,d=S(n.tickInterval)&&0<=n.tickInterval?n.tickInterval:void 0,p=S(this.threshold)?this.threshold:null;this.dateTime||a||r||this.getTickAmount();var u=j(this.userMin,n.min),f=j(this.userMax,n.max);if(r){this.linkedParent=e[this.coll][n.linkedTo];var y=this.linkedParent.getExtremes();this.min=j(y.min,y.dataMin),this.max=j(y.max,y.dataMax),n.type!==this.linkedParent.options.type&&x(11,1,e)}else{if(h&&m(p))if(this.dataMin>=p)y=p,c=0;else if(this.dataMax<=p){var v=p;l=0}this.min=j(u,y,this.dataMin),this.max=j(f,v,this.dataMax)}if(i&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,j(this.dataMin,this.min))&&x(10,1,e),this.min=g(i.log2lin(this.min),16),this.max=g(i.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=u=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),w(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||r)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(u)&&c&&(this.min-=e*c),!m(f)&&l&&(this.max+=e*l)),S(this.userMin)||(S(n.softMin)&&n.softMin<this.min&&(this.min=u=n.softMin),S(n.floor)&&(this.min=Math.max(this.min,n.floor))),S(this.userMax)||(S(n.softMax)&&n.softMax>this.max&&(this.max=f=n.softMax),S(n.ceiling)&&(this.max=Math.min(this.max,n.ceiling))),h&&m(this.dataMin)&&(p=p||0,!m(u)&&this.min<p&&this.dataMin>=p?this.min=this.options.minRange?Math.min(p,this.max-this.minRange):p:!m(f)&&this.max>p&&this.dataMax<=p&&(this.max=this.options.minRange?Math.max(p,this.min+this.minRange):p)),S(this.min)&&S(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:r&&this.linkedParent&&!d&&s===this.linkedParent.options.tickPixelInterval?d=this.linkedParent.tickInterval:j(d,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*s/Math.max(this.len,s)),o&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);
1this.series.forEach(function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)}),w(this,"postProcessData",{hasExtemesChanged:b})}this.setAxisTranslation(),w(this,"initialAxisTranslation"),this.pointRange&&!d&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=j(n.minTickInterval,this.dateTime&&!this.series.some(function(t){return t.noSharedTooltip})?this.closestPointRange:0),!d&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||d||(this.tickInterval=C(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),n=this.hasVerticalPanning(),o="colorAxis"===this.coll,r=(o||!n)&&t.startOnTick;if(n=(o||!n)&&t.endOnTick,o=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)i=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)i=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var s=t=this.tickInterval;s<=2*t&&(i=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&i.length>this.tickAmount);)this.tickInterval=C(this,s*=1.1);else i=[this.min,this.max],x(19,!1,this.chart);i.length>this.len&&(i=[i[0],i.pop()])[0]===i[1]&&(i.length=1),this.tickPositions=i,o&&(o=o.apply(this,[this.min,this.max]))&&(this.tickPositions=i=o)}this.paddedTicks=i.slice(0),this.trimTicks(i,r,n),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),e||o||this.adjustTickAmount()),w(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var n=t[0],o=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(w(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-r>t[0];)t.shift();if(i)this.max=o;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&m(n)&&!this.options.tickPositions&&t.push((o+n)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=[this],n=e.options,o="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,r=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&n.alignTicks||o)&&!1!==n.startOnTick&&!1!==n.endOnTick&&!e.logarithmic){var s=function(t){var e=t.options;return[t.horiz?e.left:e.top,e.width,e.height,e.pane].join()},a=s(this);this.chart[this.coll].forEach(function(n){var o=n.series;o.length&&o.some(function(t){return t.visible})&&n!==e&&s(n)===a&&(t=!0,i.push(n))})}if(t&&o){i.forEach(function(t){t=t.getThresholdAlignment(e),S(t)&&r.push(t)});var h=1<r.length?r.reduce(function(t,e){return t+e},0)/r.length:void 0;i.forEach(function(t){t.thresholdAlignment=h})}return t},t.prototype.getThresholdAlignment=function(t){if((!S(this.dataMin)||this!==t&&this.series.some(function(t){return t.isDirty||t.isDirtyData}))&&this.getSeriesExtremes(),S(this.threshold))return t=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(t=1-t),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;!m(t.tickInterval)&&!i&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),4>i&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,i=t.max,n=t.min,o=t.options,r=t.tickPositions,s=t.tickAmount,a=t.thresholdAlignment,h=r&&r.length,l=j(t.threshold,t.softThreshold?0:null),c=t.tickInterval;if(S(a)){var d=.5>a?Math.ceil(a*(s-1)):Math.floor(a*(s-1));o.reversed&&(d=s-1-d)}if(t.hasData()&&S(n)&&S(i)){if(a=function(){t.transA*=(h-1)/(s-1),t.min=o.startOnTick?r[0]:Math.min(n,r[0]),t.max=o.endOnTick?r[r.length-1]:Math.max(i,r[r.length-1])},S(d)&&S(t.threshold)){for(;r[d]!==l||r.length!==s||r[0]>n||r[r.length-1]<i;){for(r.length=0,r.push(t.threshold);r.length<s;)void 0===r[d]||r[d]>t.threshold?r.unshift(g(r[0]-c)):r.push(g(r[r.length-1]+c));if(c>8*t.tickInterval)break;c*=2}a()}else if(h<s){for(;r.length<s;)r.length%2||n===l?r.push(g(r[r.length-1]+c)):r.unshift(g(r[0]-c));a()}if(m(e)){for(c=l=r.length;c--;)(3===e&&1==c%2||2>=e&&0<c&&c<l-1)&&r.splice(c,1);t.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;
1this.series.forEach(function(i){t=t||i.isDirtyData||i.isDirty,e=e||i.xAxis&&i.xAxis.isDirty||!1}),this.setAxisSize();var i=this.len!==(this.old&&this.old.len);i||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=i||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),w(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,n,o){var r=this,s=r.chart;i=j(i,!0),r.series.forEach(function(t){delete t.kdTree}),o=b(o,{min:t,max:e}),w(r,"setExtremes",o,function(){r.userMin=t,r.userMax=e,r.eventArgs=o,i&&s.redraw(n)})},t.prototype.zoom=function(t,e){var i=this,n=this.dataMin,o=this.dataMax,r=this.options,s=Math.min(n,j(r.min,n)),a=Math.max(o,j(r.max,o));return w(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,r=t.newMax;e===i.min&&r===i.max||(i.allowZoomOutside||(m(n)&&(e<s&&(e=s),e>a&&(e=a)),m(o)&&(r<s&&(r=s),r>a&&(r=a))),i.displayBtn=void 0!==e||void 0!==r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],n=this.horiz,o=this.width=Math.round(R(j(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(R(j(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),s=this.top=Math.round(R(j(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(R(j(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-s,this.right=t.chartWidth-o-e,this.len=Math.max(n?o:r,0),this.pos=n?e:s},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,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i: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 w(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,i=j(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),n=e["tick"===t?"tickLength":"minorTickLength"];if(i&&n){"inside"===e[t+"Position"]&&(n=-n);var o=[n,i]}return w(this,"afterTickSize",t={tickSize:o}),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,i=this.options.labels,n=this.horiz,o=this.tickInterval,r=this.len/(((this.categories?1:0)+this.max-this.min)/o),s=i.rotation,a=this.labelMetrics(),h=Math.max(this.max-this.min,0),l=function(t){var e=t/(r||1);return(e=1<e?Math.ceil(e):1)*o>h&&1/0!==t&&1/0!==r&&h&&(e=Math.ceil(h/o)),g(e*o)},c=o,p=Number.MAX_VALUE;if(n){if(!i.staggerLines&&!i.step)if(S(s))var u=[s];else r<i.autoRotationLimit&&(u=i.autoRotation);u&&u.forEach(function(i){if(i===s||i&&-90<=i&&90>=i){var n=(e=l(Math.abs(a.h/Math.sin(d*i))))+Math.abs(i/360);n<p&&(p=n,t=i,c=e)}})}else i.step||(c=l(a.h));return this.autoRotation=u,this.labelRotation=j(t,S(s)?s:0),c},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,n=this.options.labels,o=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=e.margin[3];if(t&&S(t.slotWidth))return t.slotWidth;if(i&&2>n.step)return n.rotation?0:(this.staggerLines||1)*this.len/o;if(!i){if(void 0!==(t=n.style.width))return parseInt(String(t),10);if(r)return r-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,n=this.ticks,o=this.options.labels,r=o.style,s=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*o.padding)),l={},c=this.labelMetrics(),d=r.textOverflow,p=0;
1if(M(o.rotation)||(l.rotation=o.rotation||0),i.forEach(function(t){(t=n[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>p&&(p=t.label.textPxLength)}),this.maxLabelLength=p,this.autoRotation)p>h&&p>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=h;if(!d){var f="clip";for(h=i.length;!s&&h--;){var g=i[h];(g=n[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}l.rotation&&(u=p>.5*t.chartHeight?.33*t.chartHeight:p,d||(f="ellipsis")),(this.labelAlign=o.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach(function(t){var e=(t=n[t])&&t.label,i=r.width,o={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u<e.textPxLength||"SPAN"===e.element.tagName)?(o.width=u+"px",d||(o.textOverflow=e.specificTextOverflow||f),e.css(o)):e.styles&&e.styles.width&&!o.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)},this),this.tickRotCorr=e.rotCorr(c.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,i=this.chart.renderer,n=this.horiz,o=this.opposite,r=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(n?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(P(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||r.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 s(this,t)},t.prototype.getOffset=function(){var t=this,e=this,i=e.chart,n=e.horiz,o=e.options,r=e.side,s=e.ticks,a=e.tickPositions,h=e.coll,l=e.axisParent,c=i.renderer,d=i.inverted&&!e.isZAxis?[1,0,3,2][r]:r,p=e.hasData(),u=o.title,f=o.labels,g=i.axisOffset;i=i.clipOffset;var y,v=[-1,1,1,-1][r],x=o.className,b=0,k=0,S=0;if(e.showAxis=y=p||o.showEmpty,e.staggerLines=e.horiz&&f.staggerLines||void 0,!e.axisGroup){var N=function(e,i,n){return c.g(e).attr({zIndex:n}).addClass("highcharts-"+h.toLowerCase()+i+" "+(t.isRadial?"highcharts-radial-axis"+i+" ":"")+(x||"")).add(l)};e.gridGroup=N("grid","-grid",o.gridZIndex),e.axisGroup=N("axis","",o.zIndex),e.labelGroup=N("axis-labels","-labels",f.zIndex)}if(p||e.isLinked?(a.forEach(function(t){e.generateTick(t)}),e.renderUnsquish(),e.reserveSpaceDefault=0===r||2===r||{1:"left",3:"right"}[r]===e.labelAlign,j(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach(function(t){S=Math.max(s[t].getLabelSize(),S)}),e.staggerLines&&(S*=e.staggerLines),e.labelOffset=S*(e.opposite?-1:1)):L(s,function(t,e){t.destroy(),delete s[e]}),u&&u.text&&!1!==u.enabled&&(e.addTitle(y),y&&!1!==u.reserveSpace)){e.titleOffset=b=e.axisTitle.getBBox()[n?"height":"width"];var M=u.offset;k=m(M)?0:j(u.margin,n?5:10)}e.renderLine(),e.offset=v*j(o.offset,g[r]?g[r]+(o.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},u=0===r?-e.labelMetrics().h:2===r?e.tickRotCorr.y:0,p=Math.abs(S)+k,S&&(p=p-u+v*(n?j(f.y,e.tickRotCorr.y+8*v):f.x)),e.axisTitleMargin=j(M,p),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(s,a)),"colorAxis"!==h&&(n=this.tickSize("tick"),g[r]=Math.max(g[r],(e.axisTitleMargin||0)+b+v*e.offset,p,a&&a.length&&n?n[0]+v*e.offset:0),o=!e.axisLine||o.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[d]=Math.max(i[d],o)),w(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,n=this.offset,o=this.horiz,r=this.left+(i?this.width:0)+n;return n=e.chartHeight-this.bottom-(i?this.height:0)+n,i&&(t*=-1),e.renderer.crispLine([["M",o?this.left:r,o?
1n:this.top],["L",o?e.chartWidth-this.right:r,o?n: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,i=this.top,n=this.len,o=this.options.title,r=t?e:i,s=this.opposite,a=this.offset,h=o.x,l=o.y,c=this.axisTitle,d=this.chart.renderer.fontMetrics(o.style.fontSize,c);return c=c?Math.max(c.getBBox(!1,0).height-d.h-1,0):0,n={low:r+(t?0:n),middle:r+n/2,high:r+(t?n:0)}[o.align],e=(t?i+this.height:e)+(t?1:-1)*(s?-1:1)*(this.axisTitleMargin||0)+[-c,c,d.f,-c][this.side],t={x:t?n+h:e+(s?this.width:0)+a+h,y:t?e+l-(s?this.height:0)+a:n+l},w(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new s(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,i){var n=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(n[t]||(n[t]=new s(this,t)),i&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},t.prototype.render=function(){var t,e,i=this,n=i.chart,o=i.logarithmic,a=i.options,l=i.isLinked,c=i.tickPositions,d=i.axisTitle,p=i.ticks,u=i.minorTicks,f=i.alternateBands,g=a.stackLabels,m=a.alternateGridColor,y=i.tickmarkOffset,v=i.axisLine,x=i.showAxis,b=h(n.renderer.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[p,u,f].forEach(function(t){L(t,function(t){t.isActive=!1})}),i.hasData()||l){var k=i.chart.hasRendered&&i.old&&S(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,k)}),c.length&&(c.forEach(function(t,e){i.renderTick(t,e,k)}),y&&(0===i.min||i.single)&&(p[-1]||(p[-1]=new s(i,-1,null,!0)),p[-1].render(-1))),m&&c.forEach(function(s,a){e=void 0!==c[a+1]?c[a+1]+y:i.max-y,0==a%2&&s<i.max&&e<=i.max+(n.polar?-y:y)&&(f[s]||(f[s]=new r.PlotLineOrBand(i)),t=s+y,f[s].options={from:o?o.lin2log(t):t,to:o?o.lin2log(e):e,color:m,className:"highcharts-alternate-grid"},f[s].render(),f[s].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[p,u,f].forEach(function(t){var e=[],i=b.duration;L(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),Y(function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==f&&n.hasRendered&&i?i:0)}),v&&(v[v.isPlaced?"animate":"attr"]({d:this.getLinePath(v.strokeWidth())}),v.isPlaced=!0,v[x?"show":"hide"](x)),d&&x&&(a=i.getTitlePosition(),d[d.isNew?"attr":"animate"](a),d.isNew=!1),g&&g.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,w(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,i=e.plotLinesAndBands,n=this.eventOptions;if(w(this,"destroy",{keepEvents:t}),t||z(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){y(t)}),i)for(t=i.length;t--;)i[t].destroy();for(var o in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[o]=e.plotLinesAndBandsGroups[o].destroy();L(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=n},t.prototype.drawCrosshair=function(t,e){var n,o=this.crosshair,r=j(o&&o.snap,!0),s=this.chart,a=this.cross;if(w(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),o&&!1!==(m(e)||!r)){if(r?m(e)&&(n=j("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),m(n)){var h={value:e&&(this.isXAxis?e.x:j(e.stackY,e.y)),translatedValue:n};s.polar&&b(h,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),h=this.getPlotLinePath(h)||null}if(!m(h))return void this.hideCrosshair();r=this.categories&&!this.isRadial,a||(this.cross=a=s.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(o.className||"")).attr({zIndex:j(o.zIndex,2)}).add(),s.styledMode||(a.attr({stroke:o.color||(r?i.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":j(o.width,1)}).css({"pointer-events":"none"}),o.dashStyle&&a.attr({dashstyle:o.dashStyle}))),a.show().attr({d:h}),r&&!o.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();w(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),w(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 S(t)&&0<t},t.prototype.update=function(t,e){var i=this.chart;t=P(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,j(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,n=this.series,o=n.length;o--;)n[o]&&n[o].remove(!1);
1v(e.axes,this),v(e[i],this),e[i].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}(),t}),K(e,"Core/Axis/DateTimeAxis.js",[e["Core/Utilities.js"]],function(t){var e,i=t.addEvent,n=t.getMagnitude,o=t.normalizeTickInterval,r=t.timeUnits;return function(t){function A(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function e(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new a(this))}var s=[];t.compose=function(t){return-1===s.indexOf(t)&&(s.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=A,i(t,"init",e)),t};var a=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i=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=i[i.length-1];var s,a=r[e[0]],h=e[1];for(s=0;s<i.length&&(e=i[s],a=r[e[0]],h=e[1],!(i[s+1]&&t<=(a*h[h.length-1]+r[i[s+1][0]])/2));s++);return a===r.year&&t<5*a&&(h=[1,2,5]),{unitRange:a,count:t=o(t/a,h,"year"===e[0]?Math.max(n(t/a),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var i=this.axis;return i.closestPointRange?i.chart.time.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||e.year:e.day},t}();t.Additions=a}(e||(e={})),e}),K(e,"Core/Axis/LogarithmicAxis.js",[e["Core/Utilities.js"]],function(t){var e,i=t.addEvent,n=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 s(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 r=[];t.compose=function(t){return-1===r.indexOf(t)&&(r.push(t),t.keepProps.push("logarithmic"),i(t,"init",e),i(t,"afterInit",A)),t};var s=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,r){var s=this.axis,a=s.len,h=s.options,l=[];if(r||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),l=s.getLinearTickPositions(t,e,i);else if(.08<=t){var c,d=Math.floor(e),p=h=void 0;for(a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];d<i+1&&!p;d++){var u=a.length;for(c=0;c<u&&!p;c++){var f=this.log2lin(this.lin2log(d)*a[c]);f>e&&(!r||h<=i)&&void 0!==h&&l.push(h),h>i&&(p=!0),h=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=r?s.getMinorTickInterval():h.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,h.tickPixelInterval/(r?5:1)*(i-e)/((r?a/s.tickPositions.length:a)||1)),t=n(t),l=s.getLinearTickPositions(t,e,i).map(this.log2lin),r||(this.minorAutoInterval=t/5);return r||(s.tickInterval=t),l},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=s}(e||(e={})),e}),K(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Utilities.js"]],function(t){var e,i=t.erase,n=t.extend,o=t.isNumber;return function(t){var e,r=[];t.compose=function(t,i){return e||(e=t),-1===r.indexOf(i)&&(r.push(i),n(i.prototype,s.prototype)),i};var s=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,i){void 0===i&&(i=this.options);var n=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),r=[],s=this.horiz;if(e=!o(this.min)||!o(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),i=1,t&&n){if(e){var a=t.toString()===n.toString();i=0}for(e=0;e<t.length;e+=2){var h=t[e],l=t[e+1],c=n[e],d=n[e+1];"M"!==h[0]&&"L"!==h[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||"M"!==d[0]&&"L"!==d[0]||(s&&c[1]===h[1]?(c[1]+=i,d[1]+=i):s||c[2]!==h[2]||(c[2]+=i,d[2]+=i),r.push(["M",h[1],h[2]],["L",l[1],l[2]],["L",d[1],d[2]],["L",c[1],c[2]],["Z"])),r.isFlat=a}}return r},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,i){var n=this,o=this.userOptions,r=new e(this,t);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(o.plotLines||[]).concat(o.plotBands||[]).forEac
1h(function(t){n.addPlotBandOrLine(t)})),i){var s=o[i]||[];s.push(t),o[i]=s}this.plotLinesAndBands.push(r)}return r},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,n=this.options,o=this.userOptions;if(e){for(var r=e.length;r--;)e[r].id===t&&e[r].destroy();[n.plotLines||[],o.plotLines||[],n.plotBands||[],o.plotBands||[]].forEach(function(e){for(r=e.length;r--;)(e[r]||{}).id===t&&i(e,e[r])})}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e}),K(e,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[e["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],e["Core/Utilities.js"]],function(t,e){var i=e.arrayMax,n=e.arrayMin,o=e.defined,r=e.destroyObjectProperties,s=e.erase,a=e.fireEvent,h=e.merge,l=e.objectEach,c=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(i){return t.compose(e,i)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,i=e.horiz,n=e.logarithmic,r=t.options,s=r.color,d=c(r.zIndex,0),p=r.events,u={},f=e.chart.renderer,g=r.label,m=t.label,y=r.to,v=r.from,x=r.value,b=t.svgElem,w=[],k=o(v)&&o(y);w=o(x);var S=!b,M={class:"highcharts-plot-"+(k?"band ":"line ")+(r.className||"")},P=k?"bands":"lines";if(n&&(v=n.log2lin(v),y=n.log2lin(y),x=n.log2lin(x)),e.chart.styledMode||(w?(M.stroke=s||"#999999",M["stroke-width"]=c(r.width,1),r.dashStyle&&(M.dashstyle=r.dashStyle)):k&&(M.fill=s||"#e6ebf5",r.borderWidth&&(M.stroke=r.borderColor,M["stroke-width"]=r.borderWidth))),u.zIndex=d,P+="-"+d,(n=e.plotLinesAndBandsGroups[P])||(e.plotLinesAndBandsGroups[P]=n=f.g("plot-"+P).attr(u).add()),S&&(t.svgElem=b=f.path().attr(M).add(n)),w)w=e.getPlotLinePath({value:x,lineWidth:b.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!k)return;w=e.getPlotBandPath(v,y,r)}return!t.eventsAdded&&p&&(l(p,function(e,i){b.on(i,function(e){p[i].apply(t,[e])})}),t.eventsAdded=!0),(S||!b.d)&&w&&w.length?b.attr({d:w}):b&&(w?(b.show(),b.animate({d:w})):b.d&&(b.hide(),m&&(t.label=m=m.destroy()))),g&&(o(g.text)||o(g.formatter))&&w&&w.length&&0<e.width&&0<e.height&&!w.isFlat?(g=h({align:i&&k&&"center",x:i?!k&&4:10,verticalAlign:!i&&k&&"middle",y:i?k?16:10:k?6:-4,rotation:i&&!k&&90},g),this.renderLabel(g,w,k,d)):m&&m.hide(),t},e.prototype.renderLabel=function(t,e,o,r){var s=this.axis,a=s.chart.renderer,l=this.label;l||(this.label=l=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(o?"band":"line")+"-label "+(t.className||""),zIndex:r}).add(),s.chart.styledMode||l.css(h({textOverflow:"ellipsis"},t.style))),r=e.xBounds||[e[0][1],e[1][1],o?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],o?e[2][2]:e[0][2]],o=n(r),a=n(e),l.align(t,!1,{x:o,y:a,width:i(r)-o,height:i(e)-a}),l.alignValue&&"left"!==l.alignValue||l.css({width:(90===l.rotation?s.height-(l.alignAttr.y-s.top):s.width-(l.alignAttr.x-s.left))+"px"}),l.show(!0)},e.prototype.getLabelText=function(t){return o(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){s(this.axis.plotLinesAndBands,this),delete this.axis,r(this)},e}()}),K(e,"Core/Tooltip.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,n,o){var r=t.format,s=e.doc,a=i.distribute,h=o.addEvent,l=o.clamp,c=o.css,d=o.defined,p=o.discardElement,u=o.extend,f=o.fireEvent,g=o.isArray,m=o.isNumber,y=o.isString,v=o.merge,x=o.pick,b=o.splat,w=o.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"]||"")})}
1,t.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e=this.points||b(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},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(),p(this.container)),o.clearTimeout(this.hideTimer),o.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var i,n,o=this.chart,r=o.pointer,s=o.inverted,a=o.plotTop,h=o.plotLeft,l=0,c=0;return t=b(t),this.followPointer&&e?(void 0===e.chartX&&(e=r.normalize(e)),r=[e.chartX-h,e.chartY-a]):t[0].tooltipPos?r=t[0].tooltipPos:(t.forEach(function(t){i=t.series.yAxis,n=t.series.xAxis,l+=t.plotX||0,c+=t.plotLow?(t.plotLow+(t.plotHigh||0))/2:t.plotY||0,n&&i&&(s?(l+=a+o.plotHeight-n.len-n.pos,c+=h+o.plotWidth-i.len-i.pos):(l+=n.pos-h,c+=i.pos-a))}),l/=t.length,c/=t.length,r=[s?o.plotWidth-c:l,s?o.plotHeight-l:c],this.shared&&1<t.length&&e&&(s?r[0]=e.chartX-h:r[1]=e.chartY-a)),r.map(Math.round)},t.prototype.getLabel=function(){var t,i=this,o=this.chart.styledMode,r=this.options,s=this.split&&this.allowShared,a="tooltip"+(d(r.className)?" "+r.className:""),l=r.style.pointerEvents||(!this.followPointer&&r.stickOnContact?"auto":"none"),p=function(){i.inContact=!0},u=function(t){var e=i.chart.hoverSeries;i.inContact=i.shouldStickOnContact()&&i.chart.pointer.inClass(t.relatedTarget,"highcharts-tooltip"),!i.inContact&&e&&e.onMouseOut&&e.onMouseOut()},f=this.chart.renderer;if(i.label){var g=!i.label.hasClass("highcharts-label");(s&&!g||!s&&g)&&i.destroy()}if(!this.label){if(this.outside){g=this.chart.options.chart.style;var m=n.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",c(t,{position:"absolute",top:"1px",pointerEvents:l,zIndex:Math.max(this.options.style.zIndex||0,(g&&g.zIndex||0)+3)}),h(t,"mouseenter",p),h(t,"mouseleave",u),e.doc.body.appendChild(t),this.renderer=f=new m(t,0,0,g,void 0,void 0,f.styledMode)}if(s?this.label=f.g(a):(this.label=f.label("",0,0,r.shape,void 0,void 0,r.useHTML,void 0,a).attr({padding:r.padding,r:r.borderRadius}),o||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth}).css(r.style).css({pointerEvents:l}).shadow(r.shadow)),o&&r.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),i.outside&&!i.split){var y=this.label,v=y.xSetter,x=y.ySetter;y.xSetter=function(e){v.call(y,i.distance),t.style.left=e+"px"},y.ySetter=function(e){x.call(y,i.distance),t.style.top=e+"px"}}this.label.on("mouseenter",p).on("mouseleave",u).attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,i){var n,o=this.chart,r=this.distance,a={},h=o.inverted&&i.h||0,l=this.outside,c=l?s.documentElement.clientWidth-2*r:o.chartWidth,d=l?Math.max(s.body.scrollHeight,s.documentElement.scrollHeight,s.body.offsetHeight,s.documentElement.offsetHeight,s.documentElement.clientHeight):o.chartHeight,p=o.pointer.getChartPosition(),u=function(n){var s="x"===n;return[n,s?c:d,s?t:e].concat(l?[s?t*p.scaleX:e*p.scaleY,s?p.left-r+(i.plotX+o.plotLeft)*p.scaleX:p.top-r+(i.plotY+o.plotTop)*p.scaleY,0,s?c:d]:[s?t:e,s?i.plotX+o.plotLeft:i.plotY+o.plotTop,s?o.plotLeft:o.plotTop,s?o.plotLeft+o.plotWidth:o.plotTop+o.plotHeight])},f=u("y"),g=u("x");u=!!i.negative,!o.polar&&o.hoverSeries&&o.hoverSeries.yAxis&&o.hoverSeries.yAxis.reversed&&(u=!u);var m=!this.followPointer&&x(i.ttBelow,!o.inverted===u),y=function(t,e,i,n,o,s,c){var d=l?"y"===t?r*p.scaleY:r*p.scaleX:r,u=(i-n)/2,f=n<o-r,g=o+r+n<e,y=o-d-i+u;if(o=o+d-u,m&&g)a[t]=o;else if(!m&&f)a[t]=y;else if(f)a[t]=Math.min(c-n,0>y-h?y:y-h);else{if(!g)return!1;a[t]=Math.max(s,o+h+i>e?o:o+h)}},F=function(t,e,i,n,o){var s;return o<r||o>e-r?s=!1:a[t]=o<i/2?1:o>e-n/2?e-n-2:o-i/2,s},G=function(t){var e=f;f=g,g=e,n=t},T=function(){!1!==y.apply(0,f)?!1!==F.apply(0,g)||n||(G(!0),T()):n?a.x=a.y=0:(G(!0),T())};return(o.inverted||1<this.len)&&G(),T(),a},t.prototype.hide=function(t){var e=this;o.clearTimeout(this.hideTimer),t=x(t,this.options.hideDelay),this.isHidden||(this.hideTimer=w(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=x(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)}
1,t.prototype.move=function(t,e,i,n){var r=this,s=r.now,a=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(t-s.x)||1<Math.abs(e-s.y)),h=r.followPointer||1<r.len;u(s,{x:a?(2*s.x+t)/3:t,y:a?(s.y+e)/2:e,anchorX:h?void 0:a?(2*s.anchorX+i)/3:i,anchorY:h?void 0:a?(s.anchorY+n)/2:n}),r.getLabel().attr(s),r.drawTracker(),a&&(o.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){r&&r.move(t,e,i,n)},32))},t.prototype.refresh=function(t,e){var i=this.chart,n=this.options,r=b(t),s=r[0],a=[],h=n.formatter||this.defaultFormatter,l=this.shared,c=i.styledMode,d={};if(n.enabled&&s.series){o.clearTimeout(this.hideTimer),this.allowShared=!(!g(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&s.series.tooltipOptions.followPointer;var p=(t=this.getAnchor(t,e))[0],u=t[1];if(l&&this.allowShared?(i.pointer.applyInactiveState(r),r.forEach(function(t){t.setState("hover"),a.push(t.getLabelConfig())}),(d={x:s.category,y:s.y}).points=a):d=s.getLabelConfig(),this.len=a.length,h=h.call(d,this),l=s.series,this.distance=x(l.tooltipOptions.distance,16),!1===h)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(h,r);else{var m=p,y=u;if(e&&i.pointer.isDirectTouch&&(m=e.chartX-i.plotLeft,y=e.chartY-i.plotTop),!i.polar&&!1!==l.options.clip&&!r.some(function(t){return t.series.shouldShowTooltip(m,y)}))return void this.hide();e=this.getLabel(),n.style.width&&!c||e.css({width:this.chart.spacingBox.width+"px"}),e.attr({text:h&&h.join?h.join(""):h}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+x(s.colorIndex,l.colorIndex)),c||e.attr({stroke:n.borderColor||s.color||l.color||"#666666"}),this.updatePosition({plotX:p,plotY:u,negative:s.negative,ttBelow:s.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 i(t,e,i,o,r){return void 0===r&&(r=!0),i?(e=R?0:X,t=l(t-o/2,O.left,O.right-o-(n.outside?z:0))):(e-=W,t=l(t=r?t-o-S:t+S,r?t:O.left,O.right)),{x:t,y:e}}var n=this,o=n.chart,r=n.chart,h=r.chartWidth,c=r.chartHeight,d=r.plotHeight,p=r.plotLeft,f=r.plotTop,g=r.pointer,m=r.scrollablePixelsY;m=void 0===m?0:m;var v=r.scrollablePixelsX,b=r.scrollingContainer,w=(b=void 0===b?{scrollLeft:0,scrollTop:0}:b).scrollLeft;b=b.scrollTop;var k=r.styledMode,S=n.distance,M=n.options,P=n.options.positioner,O=n.outside&&"number"!=typeof v?s.documentElement.getBoundingClientRect():{left:w,right:w+h,top:b,bottom:b+c},L=n.getLabel(),j=this.renderer||o.renderer,R=!(!o.xAxis[0]||!o.xAxis[0].opposite),z=(o=g.getChartPosition()).left;o=o.top;var W=f+b,Y=0,X=d-m;y(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce(function(t,o,r){if(!1!==o&&""!==o){var s=(r=e[r-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}}).isHeader,a=s?n:r.series;o=o.toString();var h=a.tt,c=r.isHeader,u=r.series,g="highcharts-color-"+x(r.colorIndex,u.colorIndex,"none");if(h||(h={padding:M.padding,r:M.borderRadius},k||(h.fill=M.backgroundColor,h["stroke-width"]=M.borderWidth),h=j.label("",0,0,M[c?"headerShape":"shape"],void 0,void 0,M.useHTML).addClass((c?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+g).attr(h).add(L)),h.isActive=!0,h.attr({text:o}),k||h.css(M.style).shadow(M.shadow).attr({stroke:M.borderColor||r.color||u.color||"#333333"}),o=(c=(a=a.tt=h).getBBox()).width+a.strokeWidth(),s&&(Y=c.height,X+=Y,R&&(W-=Y)),u=void 0===(u=r.plotX)?0:u,g=void 0===(g=r.plotY)?0:g,h=r.series,r.isHeader){u=p+u;var m=f+d/2}else{var y=h.xAxis,v=h.yAxis;u=y.pos+l(u,-S,y.len+S),h.shouldShowTooltip(0,v.pos-f+g,{ignoreX:!0})&&(m=v.pos+g)}u=l(u,O.left-S,O.right+S),"number"==typeof m?(c=c.height+1,g=P?P.call(n,o,c,r):i(u,m,s,o),t.push({align:P?0:void 0,anchorX:u,anchorY:m,boxWidth:o,point:r,rank:x(g.rank,s?1:0),size:c,target:g.y,tt:a,x:g.x})):a.isActive=!1}return t},[]),!P&&t.some(function(t){var e=(n.outside?z:0)+t.anchorX;return e<O.left&&e+t.boxWidth<O.right||e<z-O.left+t.boxWidth&&O.right-e>e})&&(t=t.map(function(t){var e=i(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return u(t,{target:e.y,x:e.x})})),n.cleanSplit(),a(t,X);var _=z,U=z;t.forEach(function(t){var e=t.x,i=t.boxWidth;(t=t.isHeader)||(n.outside&&z+e<_&&(_=z+e),!t&&n.outside&&_+i>U&&(U=z+e))}),t.forEach(function(t){var e=t.x,i=t.anchorX,o=t.pos,r=t.point.isHeader;if(o={visibility:void 0===o?"hidden":"inherit",x:e,y:o+W,anchorX:i,anchorY:t.anchorY},n.outside&&e<i){var s=z-_;0<s&&(r||(o.x=e+s,o.anchorX=i+s),r&&(o.x=(U-_)/2,o.anchorX=i+s))}t.tt.attr(o)}),t=n.container,m=n.renderer,n.outside&&t&&m&&(r=L.getBBox(),m.setSize(r.width+r.x,r.height+r.y,!1),t.style.left=_+"px",t.style.top=o+"px")},t.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(e&&i){var n={x:0,y:0,width:0,height:0};i=this.getAnchor(i);var o=e.getBBox();i[0]+=t.plotLeft-e.translateX,i[1]+=t.plotTop-e.translateY,n.x=Math.min(0,i[0]),n.y=Math.min(0,i[1]),n.width=0>i[0]?Math.max(Math.abs(i[0]),o.width-i[0]):Math.max(Math.abs(i[0]),o.width),n.height=0>i[1]?Math.max(Math.abs(i[1]),o.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),o.height),this.tracker?this.tracker.attr(n):(this.tracker=e.renderer.rect(n).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 i=t.series,n=i.tooltipOptions,o=i.xAxis,s=o&&o.dateTime;o={isFooter:e,labelConfig:t};var a=n.xDateFormat,h=n[e?"footerFormat":"headerFormat"];return f(this,"headerFormatter",o,function(e){s&&!a&&m(t.key)&&(a=s.getXDateFormat(t.key,n.dateTimeLabelFormats)),s&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEac
1h(function(t){h=h.replace("{point."+t+"}","{point."+t+":"+a+"}")}),i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=r(h,{point:t,series:i},this.chart)}),o.text},t.prototype.update=function(t){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,v(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,i=this.options,n=e.pointer,o=this.getLabel();n=n.getChartPosition();var r=(i.positioner||this.getPosition).call(this,o.width,o.height,t),s=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(i=i.borderWidth+2*this.distance,this.renderer.setSize(o.width+i,o.height+i,!1),1===n.scaleX&&1===n.scaleY||(c(this.container,{transform:"scale("+n.scaleX+", "+n.scaleY+")"}),s*=n.scaleX,t*=n.scaleY),s+=n.left-r.x,t+=n.top-r.y),this.move(Math.round(r.x),Math.round(r.y||0),s,t)},t}(),t}),K(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/DefaultOptions.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,n,o){var r=e.animObject,s=i.defaultOptions,a=n.format,h=o.addEvent,l=o.defined,c=o.erase,d=o.extend,p=o.fireEvent,u=o.getNestedProperty,f=o.isArray,g=o.isFunction,m=o.isNumber,y=o.isObject,v=o.merge,x=o.objectEach,b=o.pick,w=o.syncTimeout,k=o.removeEvent,S=o.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},i=t.getGraphicalProps();i.singular.forEach(function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)}),i.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(d({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})},e.prototype.applyOptions=function(t,i){var n=this.series,o=n.options.pointValKey||n.pointValKey;return t=e.prototype.optionsToObject.call(this,t),d(this,t),this.options=this.options?d(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,o&&(this.y=e.prototype.getNestedProperty.call(this,o)),this.formatPrefix=(this.isNull=b(this.isValid&&!this.isValid(),null===this.x||!m(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===i&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n?this.x=void 0===i?n.autoIncrement():i:m(t.x)&&n.options.relativeXValue&&(this.x=n.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(o in(e.graphic||e.dataLabel||e.dataLabels)&&(k(e),e.destroyElements()),e)e[o]=null}var e=this,i=e.series,n=i.chart;i=i.options.dataSorting;var o,s=n.hoverPoints,a=r(e.series.chart.renderer.globalAnimation);e.legendItem&&n.legend.destroyItem(e),s&&(e.setState(),c(s,e),s.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),w(t,a.duration)):t(),n.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,i){var n=this,o=this.series.options;(o.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&n.importEvents(),"click"===t&&o.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),p(n,t,e,i)},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,i=this,n=[],o={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}
1).graphic&&n.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&n.push("dataLabel","dataLabelUpper","connector"),e=n.length;e--;){var r=n[e];i[r]&&o.singular.push(r)}return["dataLabel","connector"].forEach(function(e){var n=e+"s";t[e]&&i[n]&&o.plural.push(n)}),o},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.")?u(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,n=0;for(i=e[n];this[t]>=i.value;)i=e[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=l(this.id)?this.id:S(),this.resolveColor(),t.chart.pointCount++,p(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var i=this.series,n=i.options.keys,o=n||i.pointArrayMap||["y"],r=o.length,s={},a=0,h=0;if(m(t)||null===t)s[o[0]]=t;else if(f(t))for(!n&&t.length>r&&("string"==(i=typeof t[0])?s.name=t[0]:"number"===i&&(s.x=t[0]),a++);h<r;)n&&void 0===t[a]||(0<o[h].indexOf(".")?e.prototype.setNestedProperty(s,t[a],o[h]):s[o[h]]=t[a]),a++,h++;else"object"==typeof t&&(s=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return s},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var n=(i=t.options.colors||t.chart.options.colors)[t.colorCounter];i=i.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else e||(n=t.color),e=t.colorIndex;this.colorIndex=b(this.options.colorIndex,e),this.color=b(this.options.color,n)},e.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,n,o){return t[i]=o.length-1===n?e:y(t[i],!0)?t[i]:{},t[i]},t),t},e.prototype.tooltipFormatter=function(t){var e=this.series,i=e.tooltipOptions,n=b(i.valueDecimals,""),o=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEac
1h(function(e){e="{point."+e,(o||r)&&(t=t.replace(RegExp(e+"}","g"),o+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+n+"f}")}),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,i,n){function o(){s.applyOptions(t);var n=h&&s.hasDummyGraphic;n=null===s.y?!n:n,h&&n&&(s.graphic=h.destroy(),delete s.hasDummyGraphic),y(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(s.graphic=h.destroy()),t&&t.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),r=s.index,a.updateParallelArrays(s,r),c.data[r]=y(c.data[r],!0)||y(t,!0)?s.options:b(t,c.data[r]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}var r,s=this,a=s.series,h=s.graphic,l=a.chart,c=a.options;e=b(e,!0),!1===n?o():s.firePointEvent("update",{options:t},o)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var i=this,n=i.series,o=n.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[n.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||o.getSelectedPoints().forEac
1h(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(o.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.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=v(t.series.options.point,t.options).events;t.events=e,x(e,function(e,i){g(e)&&h(t,i,e)}),this.hasImportedEvents=!0}},e.prototype.setState=function(e,i){var n,o=this.series,r=this.state,a=o.options.states[e||"normal"]||{},h=s.plotOptions[o.type].marker&&o.options.marker,l=h&&!1===h.enabled,c=h&&h.states&&h.states[e||"normal"]||{},u=!1===c.enabled,f=this.marker||{},g=o.chart,y=h&&o.markerAttribs,v=o.halo,x=o.stateMarkerGraphic;if(!((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===a.enabled||e&&(u||l&&!1===c.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)){if(this.state=e,y&&(n=o.markerAttribs(this,e)),this.graphic&&!this.hasDummyGraphic){if(r&&this.graphic.removeClass("highcharts-point-"+r),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){var w=o.pointAttribs(this,e),k=b(g.options.chart.animation,a.animation);o.options.inactiveOtherPoints&&m(w.opacity)&&((this.dataLabels||[]).forEach(function(t){t&&t.animate({opacity:w.opacity},k)}),this.connector&&this.connector.animate({opacity:w.opacity},k)),this.graphic.animate(w,k)}n&&this.graphic.animate(n,b(g.options.chart.animation,c.animation,h.animation)),x&&x.hide()}else e&&c&&(r=f.symbol||o.symbol,x&&x.currentSymbol!==r&&(x=x.destroy()),n&&(x?x[i?"animate":"attr"]({x:n.x,y:n.y}):r&&(o.stateMarkerGraphic=x=g.renderer.symbol(r,n.x,n.y,n.width,n.height).add(o.markerGroup),x.currentSymbol=r)),!g.styledMode&&x&&"inactive"!==this.state&&x.attr(o.pointAttribs(this,e))),x&&(x[e&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));a=a.halo,n=(x=this.graphic||x)&&x.visibility||"inherit",a&&a.size&&x&&"hidden"!==n&&!this.isCluster?(v||(o.halo=v=g.renderer.path().add(x.parentGroup)),v.show()[i?"animate":"attr"]({d:this.haloPath(a.size)}),v.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,o.colorIndex)+(this.className?" "+this.className:""),visibility:n,zIndex:-1}),v.point=this,g.styledMode||v.attr(d({fill:this.color||o.color,"fill-opacity":a.opacity},t.filterUserAttributes(a.attributes||{})))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),p(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}),K(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(t,e,i,n){var o=t.parse,r=e.charts,s=e.noop,a=n.addEvent,h=n.attr,l=n.css,c=n.defined,d=n.extend,p=n.find,u=n.fireEvent,f=n.isNumber,g=n.isObject,m=n.objectEach,y=n.offset,v=n.pick,x=n.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,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var i=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(i.tooltipTimeout),m(i,function(t,e){i[e]=void 0})},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,n=this.zoomHor,r=this.zoomVert,s=e.plotLeft,a=e.plotTop,h=e.plotWidth,l=e.plotHeight,c=this.mouseDownX||0,d=this.mouseDownY||0,p=g(i.panning)?i.panning&&i.panning.enabled:i.panning,u=i.panKey&&t[i.panKey+"Key"],f=t.chartX,m=t.chartY,y=this.selectionMarker;if((!y||!y.touch)&&(f<s?f=s:f>s+h&&(f=s+h),m<a?m=a:m>a+l&&(m=a+l),this.hasDragged=Math.sqrt(Math.pow(c-f,2)+Math.pow(d-m,2)),10<this.hasDragged)){var v=e.isInsidePlot(c-s,d-a,{visiblePlotOnly:!0});
1!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!v||u||y||(this.selectionMarker=y=e.renderer.rect(s,a,n?1:h,r?1:l,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||y.attr({fill:i.selectionMarkerFill||o("#335cad").setOpacity(.25).get()})),y&&n&&(n=f-c,y.attr({width:Math.abs(n),x:(0<n?0:n)+c})),y&&r&&(n=m-d,y.attr({height:Math.abs(n),y:(0<n?0:n)+d})),v&&!y&&p&&e.pan(t,i.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,i=this.chart,n=this.hasPinched;if(this.selectionMarker){var o=this.selectionMarker,r=o.attr?o.attr("x"):o.x,s=o.attr?o.attr("y"):o.y,a=o.attr?o.attr("width"):o.width,h=o.attr?o.attr("height"):o.height,p={originalEvent:t,xAxis:[],yAxis:[],x:r,y:s,width:a,height:h},g=!!i.mapView;(this.hasDragged||n)&&(i.axes.forEach(function(i){if(i.zoomEnabled&&c(i.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])&&f(r)&&f(s)){var o=i.horiz,l="touchend"===t.type?i.minPixelPadding:0,d=i.toValue((o?r:s)+l);o=i.toValue((o?r+a:s+h)-l),p[i.coll].push({axis:i,min:Math.min(d,o),max:Math.max(d,o)}),g=!0}}),g&&u(i,"selection",p,function(t){i.zoom(d(t,n?{animation:!1}:null))})),f(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),n&&this.scaleGroups()}i&&f(i.index)&&(l(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,i){var n,o=this.chart,r=o.hoverPoint;return o=o.tooltip,r&&o&&o.isStickyOnContact()?r:(t.forEach(function(t){var o=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,o),(o=g(t,!0)&&t.series)&&!(o=!g(n,!0))){o=n.distX-t.distX;var r=n.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(n.series.group&&n.series.group.zIndex);o=0<(0!==o&&e?o:0!==r?r:0!==s?s:n.series.index>t.series.index?-1:1)}o&&(n=t)}),n)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,n=i.xAxis;i=i.yAxis;var o=t.shapeArgs;if(n&&i){var r=v(t.clientX,t.plotX),s=t.plotY||0;return t.isNode&&o&&f(o.x)&&f(o.y)&&(r=o.x,s=o.y),e?{chartX:i.len+i.pos-s,chartY:n.len+n.pos-r}:{chartX:r+n.pos,chartY:s+i.pos}}if(o&&o.x&&o.y)return{chartX:o.x,chartY:o.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=y(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetWidth;return t=t.offsetHeight,2<i&&2<t&&(this.chartPosition.scaleX=e.width/i,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},t.prototype.getHoverData=function(t,e,i,n,o,r){var s=[];n=!(!n||!t);var a={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};u(this,"beforeGetHoverData",a);var h=e&&!e.stickyTracking?[e]:i.filter(function(t){return a.filter?a.filter(t):t.visible&&!(!o&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&t.stickyTracking}),l=n||!r?t:this.findNearestKDPoint(h,o,r);return e=l&&l.series,l&&(o&&!e.noSharedTooltip?(h=i.filter(function(t){return a.filter?a.filter(t):t.visible&&!(!o&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})).forEach(function(t){var e=p(t.points,function(t){return t.x===l.x&&!t.isNull});g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),s.push(e))}):s.push(l)),u(this,"afterGetHoverData",a={hoverPoint:l}),{hoverPoint:a.hoverPoint,hoverSeries:e,hoverPoints:s}},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 i;t;){if(i=h(t,"class")){if(-1!==i.indexOf(e))return!0;
1if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentElement}},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={},i&&(t.tooltip=new i(t,e.tooltip),this.followTouchMove=v(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,n=i?i.length?i.item(0):v(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=n.pageX-e.left,n=n.pageY-e.top,i/=e.scaleX,n/=e.scaleY,d(t,{chartX:Math.round(i),chartY:Math.round(n)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var n=e.plotLeft,o=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(u(i.series,"click",d(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(d(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-o,{visiblePlotOnly:!0})&&u(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=!(1&~(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=r[v(t.hoverChartIndex,-1)],n=this.chart.tooltip;n&&n.shouldStickOnContact()&&this.inClass(e.relatedTarget,"highcharts-tooltip-container")||(e=this.normalize(e),i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),n&&!n.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 i=r[v(t.hoverChartIndex,-1)];i&&i.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,i=this.chartPosition;t=this.normalize(t,i);var n=e.tooltip;!i||n&&n.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 i=r[v(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,i=e.chart,n=e.pinchDown,o=t.touches||[],r=o.length,a=e.lastValidTouch,h=e.hasZoom,l={},c=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),p={},f=e.selectionMarker;1<r?e.initiated=!0:1===r&&this.followTouchMove&&(e.initiated=!1),h&&e.initiated&&!c&&!1!==t.cancelable&&t.preventDefault(),[].map.call(o,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(o,function(t,e){n[e]={chartX:t.chartX,chartY:t.chartY}}),a.x=[n[0].chartX,n[1]&&n[1].chartX],a.y=[n[0].chartY,n[1]&&n[1].chartY],i.axes.forEach(function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],n=t.minPixelPadding,o=t.toPixels(Math.min(v(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(v(t.options.max,t.dataMax),t.dataMax)),s=Math.max(o,r);e.min=Math.min(t.pos,Math.min(o,r)-n),e.max=Math.max(t.pos+t.len,s+n)}}),e.res=!0):e.followTouchMove&&1===r?this.runPointActions(e.normalize(t)):n.length&&(u(i,"touchpan",{originalEvent:t},function(){f||(e.selectionMarker=f=d({destroy:s,touch:!0},i.plotBox)),e.pinchTranslate(n,o,l,f,p,a),e.hasPinched=h,e.scaleGroups(l,p)}),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,i,n,o,r){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,n,o,r),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,n,o,r)}
1,t.prototype.pinchTranslateDirection=function(t,e,i,n,o,r,s,a){var h=this.chart,l=t?"x":"y",c=t?"X":"Y",d="chart"+c,p=t?"width":"height",u=h["plot"+(t?"Left":"Top")],f=h.inverted,g=h.bounds[t?"h":"v"],m=1===e.length,y=e[0][d],v=!m&&e[1][d];e=function(){"number"==typeof S&&20<Math.abs(y-v)&&(w=a||Math.abs(k-S)/Math.abs(y-v)),b=(u-k)/w+y,x=h["plot"+(t?"Width":"Height")]/w};var x,b,w=a||1,k=i[0][d],S=!m&&i[1][d];if(e(),(i=b)<g.min){i=g.min;var M=!0}else i+x>g.max&&(i=g.max-x,M=!0);M?(k-=.8*(k-s[l][0]),"number"==typeof S&&(S-=.8*(S-s[l][1])),e()):s[l]=[k,S],f||(r[l]=b-u,r[p]=x),r=f?1/w:w,o[p]=x,o[l]=i,n[f?t?"scaleY":"scaleX":"scale"+c]=w,n["translate"+c]=r*u+(k-r*y)},t.prototype.reset=function(t,e){var i=this.chart,n=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,s=i.tooltip,a=s&&s.shared?r:o;t&&a&&x(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&x(a).length&&(s.refresh(a),s.shared&&r?r.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))}):o&&(o.setState(o.state,!0),i.axes.forEach(function(t){t.crosshair&&o.series[t.coll]===t&&t.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&r.forEach(function(t){t.setState()}),n&&n.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(e,i){var n=this.chart,o=n.tooltip&&n.tooltip.options.enabled?n.tooltip:void 0,s=!!o&&o.shared,h=i||n.hoverPoint,l=h&&h.series||n.hoverSeries;i=this.getHoverData(h,l,n.series,(!e||"touchmove"!==e.type)&&(!!i||l&&l.directTouch&&this.isDirectTouch),s,e),h=i.hoverPoint,l=i.hoverSeries;var c=i.hoverPoints;i=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split;var d=s&&l&&!l.noSharedTooltip;if(h&&(h!==n.hoverPoint||o&&o.isHidden)){if((n.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),n.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!h.series)return;n.hoverPoints=c,n.hoverPoint=h,h.firePointEvent("mouseOver",void 0,function(){o&&h&&o.refresh(d?c:h,e)})}else i&&o&&!o.isHidden&&(s=o.getAnchor([{}],e),n.isInsidePlot(s[0],s[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:s[0],plotY:s[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(n.container.ownerDocument,"mousemove",function(e){var i=r[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),n.axes.forEach(function(t){var i,o=v((t.crosshair||{}).snap,!0);o&&((i=n.hoverPoint)&&i.series[t.coll]===t||(i=p(c,function(e){return e.series&&e.series[t.coll]===t}))),i||!o?t.drawCrosshair(e,i):t.hideCrosshair()})},t.prototype.scaleGroups=function(t,e){var i=this.chart;i.series.forEach(function(n){var o=t||n.getPlotBox();n.group&&(n.xAxis&&n.xAxis.zoomEnabled||i.mapView)&&(n.group.attr(o),n.markerGroup&&(n.markerGroup.attr(o),n.markerGroup.clip(e?i.clipRect:null)),n.dataLabelsGroup&&n.dataLabelsGroup.attr(o))}),i.clipRect.attr(e||i.clipBox)},t.prototype.setDOMEvents=function(){var i=this,n=this.chart.container,o=n.ownerDocument;n.onmousedown=this.onContainerMouseDown.bind(this),n.onmousemove=this.onContainerMouseMove.bind(this),n.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(n,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(n,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(o,"mouseup",this.onDocumentMouseUp.bind(this)));for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(a(r,"scroll",function(){delete i.chartPosition})),r=r.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(n,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(n,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var i=this.chart,n=e.charts[v(t.hoverChartIndex,-1)];n&&n!==i&&n.pointer.onContainerMouseLeave({relatedTarget:i.container}),n&&n.mouseIsDown||(t.hoverChartIndex=i.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop,{visiblePlotOnly:!0})&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var n=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));v(n,!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,i=e.options.chart;e=e.inverted;var n=i.zoomType||"";/touch/.test(t.type)&&(n=v(i.pinchType,n)),this.zoomX=t=/x/.test(n),this.zoomY=i=/y/.test(n),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},t}(),t}),K(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],function(t,e,
1i){function C(){var t=[];return t.item=function(t){return this[t]},d(u,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}function n(t,i,n,o){var s=r[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,o(t),s[i]({type:n,target:t.currentTarget,preventDefault:a,touches:C()}))}var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=t.charts,s=t.doc,a=t.noop,h=t.win,l=i.addEvent,c=i.css,d=i.objectEach,p=i.removeEvent,u={},f=!!h.PointerEvent;return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return o(i,e),i.isRequired=function(){return!(t.hasTouch||!h.PointerEvent&&!h.MSPointerEvent)},i.prototype.batchMSEvents=function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(s,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},i.prototype.destroy=function(){this.batchMSEvents(p),e.prototype.destroy.call(this)},i.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this.hasZoom&&c(t.container,{"-ms-touch-action":"none","touch-action":"none"})},i.prototype.onContainerPointerDown=function(t){n(t,"onContainerTouchStart","touchstart",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},i.prototype.onContainerPointerMove=function(t){n(t,"onContainerTouchMove","touchmove",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY},u[t.pointerId].target||(u[t.pointerId].target=t.currentTarget)})},i.prototype.onDocumentPointerUp=function(t){n(t,"onDocumentTouchEnd","touchend",function(t){delete u[t.pointerId]})},i.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(l)},i}(e)}),K(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r){var s=t.animObject,a=t.setAnimation,h=e.format;t=i.isFirefox;var l=i.marginNames;i=i.win;var c=o.distribute,d=r.addEvent,p=r.createElement,u=r.css,f=r.defined,g=r.discardElement,m=r.find,y=r.fireEvent,v=r.isNumber,x=r.merge,b=r.pick,w=r.relativeLength,k=r.stableSort,S=r.syncTimeout;return o=r.wrap,r=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=void 0,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(),d(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=d(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=x(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(x(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,b(e,!0)&&i.redraw(),y(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,n=t.legendItem,o=t.legendLine,r=t.legendSymbol,s=this.itemHiddenStyle.color;i=e?i.itemStyle.color:s;var a=e&&t.color||s,h=t.options&&t.options.marker,l={fill:a};n&&n.css({fill:i,color:i}),o&&o.attr({stroke:a}),r&&(h&&r.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=s)),r.attr(l))}y(this,"afterColorizeItem",{item:t,visible:e})}
1,t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=this.options,n=i.symbolPadding,o=!i.rtl,r=t._legendItemPos;i=r[0],r=r[1];var s=t.checkbox,a=t.legendGroup;a&&a.element&&(n={translateX:o?i:this.legendWidth-i-2*n-4,translateY:r},o=function(){y(e,"afterPositionItem",{item:t})},f(a.translateY)?a.animate(n,void 0,o):(a.attr(n),o())),s&&(s.x=i,s.y=r)},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,i=this.titleHeight;if(t){var n=t.translateY;this.allItems.forEach(function(o){var r=o.checkbox;if(r){var s=n+i+r.y+(this.scrollOffset||0)+3;u(r,{left:t.translateX+o.checkboxOffset+r.x-20+"px",top:s+"px",display:this.proximate||s>n-6&&s<n+e-6?"":"none"})}},this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,i=t.title,n=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},t.prototype.setText=function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?h(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,i=e.renderer,n=this.options,o=this.symbolWidth,r=n.symbolPadding||0,s=this.itemStyle,a=this.itemHiddenStyle,h="horizontal"===n.layout?b(n.itemDistance,20):0,l=!n.rtl,c=!t.series,d=!c&&t.series.drawLegendSymbol?t.series:t,p=d.options,u=this.createCheckboxForItem&&p&&p.showCheckbox,f=n.useHTML,g=t.options.className,m=t.legendItem;p=o+r+h+(u?20:0),m||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+d.type+"-series highcharts-color-"+t.colorIndex+(g?" "+g:"")+(c?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=m=i.text("",l?o+r:-r,this.baseline||0,f),e.styledMode||m.css(x(t.visible?s:a)),m.attr({align:l?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:s.fontSize,m),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,m.attr("y",this.baseline),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,n.squareSymbol&&(this.symbolWidth=b(n.symbolWidth,Math.max(this.symbolHeight,16)),p=this.symbolWidth+r+h+(u?20:0),l&&m.attr("x",this.symbolWidth+r))),d.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,m,f)),u&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&s.width||m.css({width:(n.itemWidth||this.widthOption||e.spacingBox.width)-p+"px"}),this.setText(t),e=m.getBBox(),i=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=n.itemWidth||t.legendItemWidth||e.width+p,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||(e.height>1.5*i?e.height:i))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,n="horizontal"===e.layout,o=t.itemHeight,r=this.itemMarginBottom,s=this.itemMarginTop,a=n?b(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,n&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=s+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=e:(this.itemY+=s+o+r,this.lastLineHeight=o
1),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var i=e&&e.options;e&&b(i.showInLegend,!f(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),y(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 i=this.chart,n=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(r,s){r.test(o)&&!f(t[s])&&(i[l[s]]=Math.max(i[l[s]],i.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*n[s%2?"x":"y"]+b(n.margin,12)+e[s]+(i.titleOffset[s]||0)))})},t.prototype.proximatePositions=function(){var t=this.chart,e=[],i="left"===this.options.align;this.allItems.forEach(function(n){var o,r=i;if(n.yAxis){n.xAxis.options.reversed&&(r=!r),n.points&&(o=m(r?n.points:n.points.slice(0).reverse(),function(t){return v(t.plotY)})),r=this.itemMarginTop+n.legendItem.getBBox().height+this.itemMarginBottom;var s=n.yAxis.top-t.plotTop;n.visible?(o=o?o.plotY:n.yAxis.height,o+=s-.3*r):o=s+n.yAxis.height,e.push({target:o,size:r,item:n})}},this),c(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,i=this.options,n=this.padding,o=this.getAllItems(),r=this.group,s=this.box;this.itemX=n,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=w(i.width,t.spacingBox.width-n);var a=t.spacingBox.width-2*n-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,r||(this.group=r=e.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(r),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),k(o,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),i.reversed&&o.reverse(),this.allItems=o,this.display=a=!!o.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,o.forEach(this.renderItem,this),o.forEach(this.layoutItem,this),o=(this.widthOption||this.offsetWidth)+n;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=n,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),t.styledMode||s.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<o&&0<h&&s[s.placed?"animate":"attr"](s.crisp.call({},{x:0,y:0,width:o,height:h},s.strokeWidth())),s[a?"show":"hide"](),t.styledMode&&"none"===r.getStyle("display")&&(o=h=0),this.legendWidth=o,this.legendHeight=h,a&&this.align(),this.proximate||this.positionItems(),y(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,n=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?n+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(n-=e.titleOffset[2]),n!==t.y&&(t=x(t,{y:n})),e.hasRendered||(this.group.placed=!1),this.group.align(x(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,n=this,o=this.chart,r=o.renderer,s=this.options,a=s.y,h="top"===s.verticalAlign,l=this.padding,c=s.maxHeight,d=s.navigation,p=b(d.animation,!0),u=d.arrowSize||12,f=this.pages,g=this.allItems,m=function(t){"number"==typeof t?x.attr({height:t}):x&&(n.clipRect=x.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=t?"rect("+l+"px,9999px,"+(l+t)+"px,0)":"auto")},y=function(t){return n[t]=r.circle(0,0,1.3*u).translate(u/2,u/2).add(v),o.styledMode||n[t].attr("fill","rgba(0,0,0,0.0001)"),n[t]};a=o.spacingBox.height+(h?-a:a)-l;var v=this.nav,x=this.clipRect;return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(a/=2),c&&(a=Math.min(a,c
1)),f.length=0,t&&0<a&&t>a&&!1!==d.enabled?(this.clipHeight=e=Math.max(a-20-this.titleHeight-l,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,g.forEach(function(t,n){var o=t._legendItemPos[1],r=Math.round(t.legendItem.getBBox().height),s=f.length;(!s||o-f[s-1]>e&&(i||o)!==f[s-1])&&(f.push(i||o),s++),t.pageIx=s-1,i&&(g[n-1].pageIx=s-1),n===g.length-1&&o+r-f[s-1]>e&&r<=e&&(f.push(o),t.pageIx=s),o!==i&&(i=o)}),x||(x=n.clipRect=r.clipRect(0,l,9999,0),n.contentGroup.clip(x)),m(e),v||(this.nav=v=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,u,u).add(v),y("upTracker").on("click",function(){n.scroll(-1,p)}),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation"),!o.styledMode&&d.style&&this.pager.css(d.style),this.pager.add(v),this.down=r.symbol("triangle-down",0,0,u,u).add(v),y("downTracker").on("click",function(){n.scroll(1,p)})),n.scroll(0),t=a):v&&(m(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,n=this.chart,o=this.pages,r=o.length,h=this.clipHeight,l=this.options.navigation,c=this.pager,d=this.padding,p=this.currentPage+t;p>r&&(p=r),0<p&&(void 0!==e&&a(e,n),this.nav.attr({translateX:d,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),c.attr({text:p+"/"+r}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:p===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:1===p?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===p?"default":"pointer"}),this.down.attr({fill:p===r?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:p===r?"default":"pointer"})),this.scrollOffset=-o[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),t=s(b(e,n.renderer.globalAnimation,!0)),S(function(){y(i,"afterScroll",{currentPage:p})},t.duration))},t.prototype.setItemEvents=function(t,e,i){var o=this,r=o.chart.renderer.boxWrapper,s=t instanceof n,a="highcharts-legend-"+(s?"point":"series")+"-active",h=o.chart.styledMode,l=function(e){o.allItems.forEach(function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach(function(t){t.setState(e,!s)})})};(i?[e,t.legendSymbol]:[t.legendGroup]).forEach(function(i){i&&i.on("mouseover",function(){t.visible&&l("inactive"),t.setState("hover"),t.visible&&r.addClass(a),h||e.css(o.options.itemHoverStyle)}).on("mouseout",function(){o.chart.styledMode||e.css(x(t.visible?o.itemStyle:o.itemHiddenStyle)),l(""),r.removeClass(a),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),l(t.visible?"inactive":"")};r.removeClass(a),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):y(t,"legendItemClick",e,i)})})},t.prototype.createCheckboxForItem=function(t){t.checkbox=p("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),d(t.checkbox,"click",function(e){y(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})},t}(),(/Trident\/7\.0/.test(i.navigator&&i.navigator.userAgent)||t)&&o(r.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),i.bubbleLegend||setTimeout(n)}),r}),K(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/DefaultOptions.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(t,e,i,n){var o,r=e.defaultOptions,s=n.error,a=n.extendClass,h=n.merge;return function(e){function n(t,n){var o=r.plotOptions||{},s=n.defaultOptions;n.prototype.pointClass||(n.prototype.pointClass=i),n.prototype.type=t,s&&(o[t]=s),e.seriesTypes[t]=n}e.seriesTypes=t.seriesTypes,e.getSeries=function(t,i){void 0===i&&(i={});var n=t.options.chart;n=i.type||n.type||n.defaultSeriesType||"";var o=e.seriesTypes[n];return e||s(17,!0,t,{missingModuleFor:n}),"function"==typeof(n=new o).init&&n.init(t,i),n},e.registerSeriesType=n,e.seriesType=function(t,o,s,l,c){var d=r.plotOptions||{};return o=o||"",d[t]=h(d[o],s),n(t,a(e.seriesTypes[o]||function(){},l)),e.seriesTypes[t].prototype.type=t,c&&(e.seriesTypes[t].prototype.pointClass=a(i,c)),e.seriesTypes[t]}}(o||(o={})),o}
1),K(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/FormatUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/Legend.js"],e["Core/MSPointer.js"],e["Core/DefaultOptions.js"],e["Core/Pointer.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"]],function(t,e,i,n,o,r,s,a,h,l,c,d,p,u,f){var g=t.animate,m=t.animObject,y=t.setAnimation,v=i.numberFormat,x=n.registerEventOptions,b=o.charts,w=o.doc,k=o.marginNames,S=o.svg,M=o.win,P=a.defaultOptions,O=a.defaultTime,L=c.seriesTypes,j=u.addEvent,R=u.attr,z=u.cleanRecursively,W=u.createElement,Y=u.css,X=u.defined,_=u.discardElement,U=u.erase,V=u.error,q=u.extend,Z=u.find,Q=u.fireEvent,$=u.getStyle,tt=u.isArray,et=u.isNumber,it=u.isObject,nt=u.isString,ot=u.merge,rt=u.objectEach,st=u.pick,at=u.pInt,ht=u.relativeLength,lt=u.removeEvent,ct=u.splat,dt=u.syncTimeout,pt=u.uniqueKey;return t=function(){function t(t,e,i){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,i)}return t.chart=function(e,i,n){return new t(e,i,n)},t.prototype.getArgs=function(t,e,i){nt(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},t.prototype.init=function(t,e){var i=t.plotOptions||{};Q(this,"init",{args:arguments},function(){var n=ot(P,t),r=n.chart;rt(n.plotOptions,function(t,e){it(t)&&(t.tooltip=i[e]&&ot(i[e].tooltip)||void 0)}),n.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=n,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new p(t.time):o.time,this.numberFormatter=r.numberFormatter||v,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=b.length,b.push(this),o.chartCount++,x(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,Q(this,"afterInit"),this.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var i=L[e];return i||V(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new i).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 i=e.length;t<i;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var n=this.inverted,o=this.plotBox,r=this.plotLeft,s=this.plotTop,a=this.scrollablePlotBox,h=0,l=0;i.visiblePlotOnly&&this.scrollingContainer&&(h=(l=this.scrollingContainer).scrollLeft,l=l.scrollTop);var c=i.series;if(o=i.visiblePlotOnly&&a||o,t={x:a=i.inverted?e:t,y:e=i.inverted?t:e,isInsidePlot:!0},!i.ignoreX){var d=c&&(n?c.yAxis:c.xAxis)||{pos:r,len:1/0};(a=i.paneCoordinates?d.pos+a:r+a)>=Math.max(h+r,d.pos)&&a<=Math.min(h+r+o.width,d.pos+d.len)||(t.isInsidePlot=!1)}return!i.ignoreY&&t.isInsidePlot&&(n=c&&(n?c.xAxis:c.yAxis)||{pos:s,len:1/0},(i=i.paneCoordinates?n.pos+e:s+e)>=Math.max(l+s,n.pos)&&i<=Math.min(l+s+o.height,n.pos+n.len)||(t.isInsidePlot=!1)),Q(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){Q(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,n=this.pointer,o=this.legend,r=this.userOptions.legend,s=this.renderer,a=s.isHidden(),h=[],l=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var d=i[t];if(d.options.stacking||d.options.centerInCategory){var p=!0;if(d.isDirty){var u=!0;break}}}if(u)for(t=i.length;t--;)(d=i[t]).options.stacking&&(d.isDirty=!0);
1i.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),c=!0):r&&(r.labelFormatter||r.labelFormat)&&(c=!0)),t.isDirtyData&&Q(t,"updatedData")}),c&&o&&o.options.enabled&&(o.render(),this.isDirtyLegend=!1),p&&this.getStacks(),e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),e.forEach(function(t){t.isDirty&&(l=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,h.push(function(){Q(t,"afterSetExtremes",q(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(l||p)&&t.redraw()}),l&&this.drawChartBox(),Q(this,"predraw"),i.forEach(function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),n&&n.reset(!0),s.draw(),Q(this,"redraw"),Q(this,"render"),a&&this.temporaryDisplay(!0),h.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 i=this.series,n=Z(this.axes,e)||Z(this.series,e),o=0;!n&&o<i.length;o++)n=Z(i[o].points||[],e);return n},t.prototype.getAxes=function(){var t=this,i=this.options,n=i.xAxis=ct(i.xAxis||{});i=i.yAxis=ct(i.yAxis||{}),Q(this,"getAxes"),n.forEach(function(t,e){t.index=e,t.isX=!0}),i.forEach(function(t,e){t.index=e}),n.concat(i).forEach(function(i){new e(t,i)}),Q(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){st(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,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i=this,n="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};n=this.options[t]=ot(!this.styledMode&&{style:n},this.options[t],e);var o=this[t];o&&e&&(this[t]=o=o.destroy()),n&&!o&&((o=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+t,zIndex:n.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||o.css(n.style),this[t]=o)},t.prototype.layOutTitles=function(t){var e=[0,0,0],i=this.renderer,n=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var o,r=this[t],s=this.options[t],a=s.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,r){this.styledMode||(o=s.style&&s.style.fontSize),o=i.fontMetrics(o,r).b,r.css({width:(s.width||n.width+(s.widthAdjust||0))+"px"});var h=Math.round(r.getBBox(s.useHTML).height);r.align(q({y:"bottom"===a?o:t+o,height:h},s),!1,"spacingBox"),s.floating||("top"===a?e[0]=Math.ceil(e[0]+h):"bottom"===a&&(e[2]=Math.ceil(e[2]+h)))}},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 o=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,Q(this,"afterLayOutTitles"),!this.isDirtyBox&&o&&(this.isDirtyBox=this.isDirtyLegend=o,this.hasRendered&&st(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var i=this.renderTo;X(e)||(this.containerWidth=$(i,"width")),X(t)||(this.containerHeight=$(i,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,ht(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&&(Y(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(w.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(w.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,w.body.appendChild(e)),("none"===$(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),Y(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==w.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,i=e.chart,n=pt(),o=this.renderTo;o||(this.renderTo=o=i.renderTo),nt(o)&&(this.renderTo=o=w.getElementById(o)),o||V(13,!0,this);var r=at(R(o,"data-highcharts-chart"));et(r)&&b[r]&&b[r].hasRendered&&b[r].destroy(),R(o,"data-highcharts-chart",this.index),o.innerHTML=f.emptyHTML,i.skipClone||o.offsetWidth||this.temporaryDisplay(),this.getChartSize(),r=this.chartWidth;
1var s=this.chartHeight;if(Y(o,{overflow:"hidden"}),this.styledMode||(t=q({position:"relative",overflow:"hidden",width:r+"px",height:s+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},i.style||{})),this.container=n=W("div",{id:n},t,o),this._cursor=n.style.cursor,this.renderer=new(i.renderer||!S?l.getRendererType(i.renderer):d)(n,r,s,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),y(void 0,this),this.setClassName(i.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,Q(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n[0]&&!X(i[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+e[0])),n[2]&&!X(i[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),Q(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,n=t.margin,o=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?o(t.axes):i&&i.length&&o(i),k.forEach(function(i,o){X(n[o])||(t[i]+=e[o])}),t.setChartSize()},t.prototype.reflow=function(t){var e=this,i=e.options.chart,n=e.renderTo,o=X(i.width)&&X(i.height),r=i.width||$(n,"width");i=i.height||$(n,"height"),n=t?t.target:M,delete e.pointer.chartPosition,o||e.isPrinting||!r||!i||n!==M&&n!==w||(r===e.containerWidth&&i===e.containerHeight||(u.clearTimeout(e.reflowTimeout),e.reflowTimeout=dt(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=r,e.containerHeight=i)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=j(M,"resize",function(t){e.options&&e.reflow(t)}),j(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,i){var n=this,o=n.renderer;n.isResizing+=1,y(i,n),i=o.globalAnimation,n.oldChartHeight=n.chartHeight,n.oldChartWidth=n.chartWidth,void 0!==t&&(n.options.chart.width=t),void 0!==e&&(n.options.chart.height=e),n.getChartSize(),n.styledMode||(i?g:Y)(n.container,{width:n.chartWidth+"px",height:n.chartHeight+"px"},i),n.setChartSize(!0),o.setSize(n.chartWidth,n.chartHeight,i),n.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),n.isDirtyLegend=!0,n.isDirtyBox=!0,n.layOutTitles(),n.getMargins(),n.redraw(i),n.oldChartHeight=null,Q(n,"resize"),dt(function(){n&&Q(n,"endResize",null,function(){--n.isResizing})},m(i).duration)},t.prototype.setChartSize=function(t){var e,i,n,o,r=this.inverted,s=this.renderer,a=this.chartWidth,h=this.chartHeight,l=this.options.chart,c=this.spacing,d=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=o=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=r?o:n,this.plotSizeY=r?n:o,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=s.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:h-c[0]-c[2]},this.plotBox=s.plotBox={x:e,y:i,width:n,height:o},r=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(Math.max(r,d[3])/2),h=Math.ceil(Math.max(r,d[0])/2),this.clipBox={x:a,y:h,width:Math.floor(this.plotSizeX-Math.max(r,d[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(r,d[2])/2-h))},t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),s.alignElements()),Q(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){Q(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(i){var n=e[i],o=it(n)?n:[n,n,n,n];["Top","Right","Bottom","Left"].forEach(function(n,r){t[i][r]=st(e[i+n],o[r])})}),k.forEach(function(e,i){t[e]=st(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,i=this.renderer,n=this.chartWidth,o=this.chartHe
1ight,r=this.styledMode,s=this.plotBGImage,a=e.backgroundColor,h=e.plotBackgroundColor,l=e.plotBackgroundImage,c=this.plotLeft,d=this.plotTop,p=this.plotWidth,u=this.plotHeight,f=this.plotBox,g=this.clipRect,m=this.clipBox,y=this.chartBackground,v=this.plotBackground,x=this.plotBorder,b="animate";if(y||(this.chartBackground=y=i.rect().addClass("highcharts-background").add(),b="attr"),r)var w=t=y.strokeWidth();else t=(w=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(w||y["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=w),y.attr(a).shadow(e.shadow);y[b]({x:t/2,y:t/2,width:n-t-w%2,height:o-t-w%2,r:e.borderRadius}),b="animate",v||(b="attr",this.plotBackground=v=i.rect().addClass("highcharts-plot-background").add()),v[b](f),r||(v.attr({fill:h||"none"}).shadow(e.plotShadow),l&&(s?(l!==s.attr("href")&&s.attr("href",l),s.animate(f)):this.plotBGImage=i.image(l,c,d,p,u).add())),g?g.animate({width:m.width,height:m.height}):this.clipRect=i.clipRect(m),b="animate",x||(b="attr",this.plotBorder=x=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),r||x.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),x[b](x.crisp({x:c,y:d,width:p,height:u},-x.strokeWidth())),this.isDirtyBox=!1,Q(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,n=this,o=n.options.chart,r=n.options.series;["inverted","angular","polar"].forEach(function(s){for(e=L[o.type||o.defaultSeriesType],i=o[s]||e&&e.prototype[s],t=r&&r.length;!i&&t--;)(e=L[r[t].type])&&e.prototype[s]&&(i=!0);n[s]=i})},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var i=e.options.linkedTo;nt(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=st(e.options.visible,i.options.visible,e.visible))}),Q(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(i){var n=q(e.style,i.style),o=at(n.left)+t.plotLeft,r=at(n.top)+t.plotTop+12;delete n.left,delete n.top,t.renderer.text(i.html,o,r).attr({zIndex:2}).css(n).add()})},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,i=this.renderer,n=this.options,o=function(t){t.forEach(function(t){t.visible&&t.render()})},s=0;this.setTitle(),this.legend=new r(this,n.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),n=this.plotWidth,t.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return s=21,!0});var a=this.plotHeight=Math.max(this.plotHeight-s,0);t.forEach(function(t){t.setScale()}),this.getAxisMargins();var h=1.1<n/this.plotWidth,l=1.05<a/this.plotHeight;(h||l)&&(t.forEach(function(t){(t.horiz&&h||!t.horiz&&l)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?o(t):e&&e.length&&o(e),this.seriesGroup||(this.seriesGroup=i.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,i=ot(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(M.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,i=e.axes,n=e.series,r=e.container,s=r&&r.parentNode;for(Q(e,"destroy"),e.renderer.forExport?U(b,e):b[e.index]=void 0,o.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),lt(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=n.length;t--;)n[t]=n[t].destroy();
1"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),r&&(r.innerHTML=f.emptyHTML,lt(r),s&&_(r)),rt(e,function(t,i){delete e[i]})},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(tt(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),Q(t,"beforeRender"),h&&(s.isRequired()?t.pointer=new s(t,e):t.pointer=new h(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),Q(this,"load"),Q(this,"render"),X(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this;setTimeout(function(){var e=t&&t.options;!e||t.accessibility||e.accessibility&&!1===e.accessibility.enabled||V('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,t)},100)},t.prototype.addSeries=function(t,e,i){var n,o=this;return t&&(e=st(e,!0),Q(o,"addSeries",{options:t},function(){n=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),n.enabledDataSorting&&n.setData(t.data,!1),Q(o,"afterAddSeries",{series:n}),e&&o.redraw(i)})),n},t.prototype.addAxis=function(t,e,i,n){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:n})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,i){return t=new e(this,ot(i.axis,{index:this[t].length,isX:"xAxis"===t})),st(i.redraw,!0)&&this.redraw(i.animation),t},t.prototype.showLoading=function(t){var e=this,i=e.options,n=i.loading,o=function(){r&&Y(r,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},r=e.loadingDiv,s=e.loadingSpan;r||(e.loadingDiv=r=W("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),s||(e.loadingSpan=s=W("span",{className:"highcharts-loading-inner"},null,r),j(e,"redraw",o)),r.className="highcharts-loading",f.setElementHTML(s,st(t,i.lang.loading,"")),e.styledMode||(Y(r,q(n.style,{zIndex:10})),Y(s,n.labelStyle),e.loadingShown||(Y(r,{opacity:0,display:""}),g(r,{opacity:n.style.opacity||.5},{duration:n.showDuration||0}))),e.loadingShown=!0,o()},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(){Y(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,n){var o,r,s=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,l=[];Q(s,"update",{options:t}),h||s.setResponsive(!1,!0),t=z(t,s.options),s.userOptions=ot(s.userOptions,t);var c=t.chart;if(c){if(ot(!0,s.options.chart,c),"className"in c&&s.setClassName(c.className),"reflow"in c&&s.setReflow(c.reflow),"inverted"in c||"polar"in c||"type"in c){s.propFromSeries();var d=!0}"alignTicks"in c&&(d=!0),"events"in c&&x(this,c),rt(c,function(t,e){-1!==s.propsRequireUpdateSeries.indexOf("chart."+e)&&(o=!0),-1!==s.propsRequireDirtyBox.indexOf(e)&&(s.isDirtyBox=!0),-1!==s.propsRequireReflow.indexOf(e)&&(h?s.isDirtyBox=!0:r=!0)}),!s.styledMode&&c.style&&s.renderer.setStyle(s.options.chart.style||{})}!s.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===O&&(this.time=new p(t.time)),ot(!0,s.options.time,t.time)),rt(t,function(e,i){s[i]&&"function"==typeof s[i].update?s[i].update(e,!1):"function"==typeof s[a[i]]?s[a[i]](e):"colors"!==i&&-1===s.collectionsWithUpdate.indexOf(i)&&ot(!0,s.options[i],t[i]),"chart"!==i&&-1!==s.propsRequireUpdateSeries.indexOf(i)&&(o=!0)}),this.collectionsWithUpdate.forEach(function(e){if(t[e]){var n=[];s[e].forEach(function(t,e){t.options.isInternal||n.push(st(t.options.index,e))}
1),ct(t[e]).forEach(function(t,o){var r,a=X(t.id);a&&(r=s.get(t.id)),!r&&s[e]&&(r=s[e][n?n[o]:o])&&a&&X(r.options.id)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&s.collectionsWithInit[e]&&(s.collectionsWithInit[e][0].apply(s,[t].concat(s.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&s[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)})}}),l.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),d&&s.axes.forEach(function(t){t.update({},!1)}),o&&s.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),d=c&&c.width,c=c&&(nt(c.height)?ht(c.height,d||s.chartWidth):c.height),r||et(d)&&d!==s.chartWidth||et(c)&&c!==s.chartHeight?s.setSize(d,c,n):st(e,!0)&&s.redraw(n),Q(s,"afterUpdate",{options:t,redraw:e,animation:n})},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,i=P.lang,n=e.options.chart.resetZoomButton,o=n.theme,r="chart"===n.relativeTo||"spacingBox"===n.relativeTo?null:"scrollablePlotBox";Q(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,o).attr({align:n.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,r)}),Q(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){Q(this,"selection",{resetSelection:!0}
1,this.zoom)},t.prototype.zoom=function(t){var e,i=this,n=i.pointer,o=i.inverted?n.mouseDownX:n.mouseDownY,r=!1;!t||t.resetSelection?(i.axes.forEach(function(t){e=t.zoom()}),n.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var s=t.axis,a=i.inverted?s.left:s.top,h=i.inverted?a+s.width:a+s.height,l=s.isXAxis,c=!1;(!l&&o>=a&&o<=h||l||!X(o))&&(c=!0),n[l?"zoomX":"zoomY"]&&c&&(e=s.zoom(t.min,t.max),s.displayBtn&&(r=!0))});var s=i.resetZoomButton;r&&!s?i.showResetZoom():!r&&it(s)&&(i.resetZoomButton=s.destroy()),e&&i.redraw(st(i.options.chart.animation,t&&t.animation,100>i.pointCount))},t.prototype.pan=function(t,e){var i=this,n=i.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var o=i.options.chart,r=i.options.mapNavigation&&i.options.mapNavigation.enabled;o&&o.panning&&(o.panning=e);var s,a=e.type;Q(this,"pan",{originalEvent:t},function(){n&&n.forEach(function(t){t.setState()});var e=i.xAxis;"xy"===a?e=e.concat(i.yAxis):"y"===a&&(e=i.yAxis);var o={};e.forEach(function(e){if(e.options.panningEnabled&&!e.options.isInternal){var n=e.horiz,h=t[n?"chartX":"chartY"],l=i[n=n?"mouseDownX":"mouseDownY"],c=e.minPointOffset||0,d=e.reversed&&!i.inverted||!e.reversed&&i.inverted?-1:1,p=e.getExtremes(),u=e.toValue(l-h,!0)+c*d,f=e.toValue(l+e.len-h,!0)-(c*d||e.isXAxis&&e.pointRangePadding||0),g=f<u;d=e.hasVerticalPanning(),l=g?f:u,u=g?u:f;var m=e.panningState;!d||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}),et(e.dataMin)&&et(e.dataMax)&&(m.startMin=Math.min(st(t.options.threshold,1/0),e.dataMin,m.startMin),m.startMax=Math.max(st(t.options.threshold,-1/0),e.dataMax,m.startMax))}),d=Math.min(st(m&&m.startMin,p.dataMin),c?p.min:e.toValue(e.toPixels(p.min)-e.minPixelPadding)),f=Math.max(st(m&&m.startMax,p.dataMax),c?p.max:e.toValue(e.toPixels(p.max)+e.minPixelPadding)),e.panningState=m,e.isOrdinal||(0<(c=d-l)&&(u+=c,l=d),0<(c=u-f)&&(u=f,l-=c),e.series.length&&l!==p.min&&u!==p.max&&l>=d&&u<=f&&(e.setExtremes(l,u,!1,!1,{trigger:"pan"}),i.resetZoomButton||r||l===d||u===f||!a.match("y")||(i.showResetZoom(),e.displayBtn=!1),s=!0),o[n]=h)}}),rt(o,function(t,e){i[e]=t}),s&&i.redraw(!1),Y(i.container,{cursor:"move"})})},t}(),q(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 plotBackgroun
1dColor 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}),K(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],function(t){var e,i=t.merge,n=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.options,o=t.symbolWidth,r=t.symbolHeight,s=r/2,a=this.chart.renderer,h=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var l={},c=e.marker;this.chart.styledMode||(l={"stroke-width":e.lineWidth||0},e.dashStyle&&(l.dashstyle=e.dashStyle)),this.legendLine=a.path([["M",0,t],["L",o,t]]).addClass("highcharts-graph").attr(l).add(h),c&&!1!==c.enabled&&o&&(e=Math.min(n(c.radius,s),s),0===this.symbol.indexOf("url")&&(c=i(c,{width:r,height:r}),e=0),this.legendSymbol=o=a.symbol(this.symbol,o/2-e,t-e,2*e,2*e,c).addClass("highcharts-point").add(h),o.isMarker=!0)},t.drawRectangle=function(t,e){var i=t.symbolHeight,o=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(o?(t.symbolWidth-i)/2:0,t.baseline-i+1,o?i:t.symbolWidth,i,n(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}}(e||(e={})),e}),K(e,"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"}}),K(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/DefaultOptions.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s,a,h,l){var c=t.animObject,d=t.setAnimation,p=e.defaultOptions,u=i.registerEventOptions,f=n.hasTouch,g=n.svg,m=n.win,y=a.seriesTypes,v=l.addEvent,x=l.arrayMax,b=l.arrayMin,w=l.clamp,k=l.cleanRecursively,S=l.correctFloat,M=l.defined,P=l.erase,O=l.error,L=l.extend,j=l.find,R=l.fireEvent,z=l.getNestedProperty,W=l.isArray,Y=l.isNumber,X=l.isString,_=l.merge,U=l.objectEach,V=l.pick,q=l.removeEvent,Z=l.splat,Q=l.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){R(this,"init",{options:e});var i=this,n=t.series;this.eventsToUnbind=[],i.chart=t,i.options=i.setOptions(e),e=i.options,i.linkedSeries=[],i.bindAxes(),L(i,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),u(this,e);var o,r=e.events;(r&&r.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),i.getColor(),i.getSymbol(),i.parallelArrays.forEach(function(t){i[t+"Data"]||(i[t+"Data"]=[])}),i.isCartesian&&(t.hasCartesianSeries=!0),n.length&&(o=n[n.length-1]),i._i=V(o&&o._i,-1)+1,i.opacity=i.options.opacity,t.orderSeries(this.insert(n)),e.dataSorting&&e.dataSorting.enabled?i.setDataSortingOptions():i.points||i.data||i.setData(e.data,!1),R(this,"afterInit")},t.prototype.is=function(t){return y[t]&&this instanceof y[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(Y(i)){for(e=t.length;e--;)if(i>=V(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 V(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,n=e.chart;
1R(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(o){var r=0;n[o].forEach(function(n){t=n.options,(i[o]===r&&!t.isInternal||void 0!==i[o]&&i[o]===t.id||void 0===i[o]&&0===t.index)&&(e.insert(n.series),e[o]=n,n.isDirty=!0),t.isInternal||r++}),e[o]||e.optionalAxis===o||O(18,!0,n)})}),R(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,n=arguments,o=Y(e)?function(n){var o="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=o}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};i.parallelArrays.forEach(o)},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,i=this.options,n=i.pointIntervalUnit,o=i.relativeXValue,r=this.chart.time,s=this.xIncrement;return s=V(s,i.pointStart,0),this.pointInterval=e=V(this.pointInterval,i.pointInterval,1),o&&Y(t)&&(e*=t),n&&(i=new r.Date(s),"day"===n?r.set("Date",i,r.get("Date",i)+e):"month"===n?r.set("Month",i,r.get("Month",i)+e):"year"===n&&r.set("FullYear",i,r.get("FullYear",i)+e),e=i.getTime()-s),o&&Y(t)?s+e:(this.xIncrement=s+e,s)},t.prototype.setDataSortingOptions=function(){var t=this.options;L(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),M(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,i=e.options,n=i.plotOptions,o=e.userOptions||{};t=_(t),e=e.styledMode;var r={plotOptions:n,userOptions:t};R(this,"setOptions",r);var s=r.plotOptions[this.type],a=o.plotOptions||{};return this.userOptions=r.userOptions,o=_(s,n.series,o.plotOptions&&o.plotOptions[this.type],t),this.tooltipOptions=_(p.tooltip,p.plotOptions.series&&p.plotOptions.series.tooltip,p.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=V(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||o.stickyTracking),null===s.marker&&delete o.marker,this.zoneAxis=o.zoneAxis,n=this.zones=(o.zones||[]).slice(),!o.negativeColor&&!o.negativeFillColor||o.zones||(i={value:o[this.zoneAxis+"Threshold"]||o.threshold||0,className:"highcharts-negative"},e||(i.color=o.negativeColor,i.fillColor=o.negativeFillColor),n.push(i)),n.length&&M(n[n.length-1].value)&&n.push(e?{}:{color:this.color,fillColor:this.fillColor}),R(this,"afterSetOptions",{options:o}),o},t.prototype.getName=function(){return V(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,i){var n=this.chart,o=this.userOptions,r=t+"Index",s=t+"Counter",a=i?i.length:V(n.options.chart[t+"Count"],n[t+"Count"]);if(!e){var h=V(o[r],o["_"+r]);M(h)||(n.series.length||(n[s]=0),o["_"+r]=h=n[s]%a,n[s]+=1),i&&(e=i[h])}void 0!==h&&(this[r]=h),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||p.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 i,n,o=t.id,s=t.x,a=this.points,h=this.options.dataSorting;if(o)(h=this.chart.get(o))instanceof r&&(i=h);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(i=function(e){return!e.touched&&e.index===t.index},h&&h.matchByName?i=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(i=function(e){return!e.touched&&e.options.x===t.x}),!(i=j(a,i))))return;if(i){var l=i&&i.index;void 0!==l&&(n=!0)}return void 0===l&&Y(s)&&(l=this.xData.indexOf(s,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!n&&Y(l)&&a[l]&&a[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var i,n,o,r=this.options,s=r.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach(function(t,e){var n=M(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=n.x;n.id||Y(d)?(-1===(n=this.findPointIndex(n,o))||void 0===n?h.push(t):a[n]&&t!==r.data[n]?(a[n].update(t,!1,null,!1),a[n].touched=!0,l&&(o=n+1)):a[n]&&(a[n].touched=!0),(!c||e!==n||s&&s.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)},this),i)for(t=a.length;t--;)(n=a[t])&&!n.touched&&n.remove&&n.remove(!1,e);else!c||s&&s.enabled?d=!1:(t.forEach(function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)}),h.length=0);return a.forEach(function(t){t&&(t.touched=!1)}
1),!!d&&(h.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,n){var o=this,r=o.points,s=r&&r.length||0,a=o.options,h=o.chart,l=a.dataSorting,c=o.xAxis,d=a.turboThreshold,p=this.xData,u=this.yData,f=o.pointArrayMap;f=f&&f.length;var g,m=a.keys,y=0,v=1,x=null;if(!h.options.chart.allowMutatingData){a.data&&delete o.options.data,o.userOptions.data&&delete o.userOptions.data;var b=_(!0,t)}if(b=(t=b||t||[]).length,e=V(e,!0),l&&l.enabled&&(t=this.sortData(t)),h.options.chart.allowMutatingData&&!1!==n&&b&&s&&!o.cropped&&!o.hasGroupedData&&o.visible&&!o.isSeriesBoosting&&(g=this.updateData(t,i)),!g){if(o.xIncrement=null,o.colorCounter=0,this.parallelArrays.forEach(function(t){o[t+"Data"].length=0}),d&&b>d)if(x=o.getFirstValidPoint(t),Y(x))for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i];else if(W(x))if(f)if(x.length===f)for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i];else for(i=0;i<b;i++)n=t[i],p[i]=n[0],u[i]=n.slice(1,f+1);else if(m&&(y=0<=(y=m.indexOf("x"))?y:0,v=0<=(v=m.indexOf("y"))?v:1),1===x.length&&(v=0),y===v)for(i=0;i<b;i++)p[i]=this.autoIncrement(),u[i]=t[i][v];else for(i=0;i<b;i++)n=t[i],p[i]=n[y],u[i]=n[v];else O(12,!1,h);else for(i=0;i<b;i++)void 0!==t[i]&&(n={series:o},o.pointClass.prototype.applyOptions.apply(n,[t[i]]),o.updateParallelArrays(n,i));for(u&&X(u[0])&&O(14,!0,h),o.data=[],o.options.data=o.userOptions.data=t,i=s;i--;)r[i]&&r[i].destroy&&r[i].destroy();c&&(c.minRange=c.userMinRange),o.isDirty=h.isDirtyBox=!0,o.isDirtyData=!!r,i=!1}"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&h.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",n=function(t,e){return M(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,o){t[o]=n(e,i),t[o].index=o},this),t.concat().sort(function(t,e){return t=z(i,t),(e=z(i,e))<t?-1:e>t?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i=e.options,o=i.data;i.dataSorting&&i.dataSorting.enabled||!o||(o.forEach(function(i,r){o[r]=n(e,i),t[r]&&(o[r].x=t[r].x,o[r].index=r)}),e.setData(o,!1))}),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,i=this.options,n=i.cropThreshold,o=t||this.getExtremesFromAll||i.getExtremesFromAll,r=this.isCartesian;t=e&&e.val2lin,i=!(!e||!e.logarithmic);var s=0,a=this.xData,h=this.yData,l=this.requireSorting,c=!1,d=a.length;if(e){var p=(c=e.getExtremes()).min,u=c.max;c=!(!e.categories||e.names.length)}if(r&&this.sorted&&!o&&(!n||d>n||this.forceCrop))if(a[d-1]<p||a[0]>u)a=[],h=[];else if(this.yData&&(a[0]<p||a[d-1]>u)){var f=this.cropData(this.xData,this.yData,p,u);a=f.xData,h=f.yData,s=f.start,f=!0}for(n=a.length||1;--n;)if(0<(e=i?t(a[n])-t(a[n-1]):a[n]-a[n-1])&&(void 0===g||e<g))var g=e;else 0>e&&l&&!c&&(O(15,!1,this.chart),l=!1);return{xData:a,yData:h,cropped:f,cropStart:s,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,R(this,"afterProcessData")},t.prototype.cropData=function(t,e,i,n,o){var r,s=t.length,a=0,h=s;for(o=V(o,this.cropShoulder),r=0;r<s;r++)if(t[r]>=i){a=Math.max(0,r-o);break}for(i=r;i<s;i++)if(t[i]>n){h=i+o;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,i=this.processedXData,n=this.processedYData,o=this.pointClass,r=i.length,s=this.cropStart||0,a=this.hasGroupedData,h=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?s:0;var c,d,p=this.data;if(!p&&!a){var u=[];u.length=e.length,p=this.data=u}for(h&&a&&(this.options.keys=!1),d=0;d<r;d++){if(u=s+d,a){var f=(new o).init(this,[i[d]].concat(Z(n[d])));f.dataGroup=this.groupMap[t+d],f.dataGroup.options&&(f.options=f.dataGroup.options,L(f,f.dataGroup.options),delete f.dataLabels)}else(f=p[u])||void 0===e[u]||(p[u]=f=(new o).init(this,e[u],i[d]));f&&(f.index=a?t+d:u,l[d]=f)}if(this.options.keys=h,p&&(r!==(c=p.length)||a))for(d=0;d<c;d++)d!==s||a||(d+=r),p[d]&&(p[d].destroyElements(),p[d].plotX=void 0);this.data=p,this.points=l,R(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:b(t),max:x(t)}},t.prototype.getExtremes=function(t,e){var i=this.xAxis,n=this.yAxis,o=this.processedXData||this.xData,r=[],s=this.requireSorting?this.cropShoulder:0;
1n=!!n&&n.positiveValuesOnly;var a,h=0,l=0,c=0,d=(t=t||this.stackedYData||this.processedYData||[]).length;if(i){var p=i.getExtremes();h=p.min,l=p.max}for(a=0;a<d;a++){var u=o[a];p=t[a];var f=(Y(p)||W(p))&&(p.length||0<p||!n);if(u=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!i||(o[a+s]||u)>=h&&(o[a-s]||u)<=l,f&&u)if(f=p.length)for(;f--;)Y(p[f])&&(r[c++]=p[f]);else r[c++]=p}return t={activeYData:r,dataMin:b(r),dataMax:x(r)},R(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,i=0,n=null;null===n&&i<e;)n=t[i],i++;return n},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,n=i.stacking,o=this.xAxis,r=o.categories,s=this.enabledDataSorting,a=this.yAxis,h=this.points,l=h.length,c=this.pointPlacementToXValue(),d=!!c,p=i.threshold,u=i.startFromThreshold?p:0,f=this.zoneAxis||"y",g=Number.MAX_VALUE;for(t=0;t<l;t++){var m=h[t],y=m.x,v=void 0,x=void 0,b=m.y,k=m.low,P=n&&a.stacking&&a.stacking.stacks[(this.negStacks&&b<(u?0:p)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(b)||o.positiveValuesOnly&&!o.validatePositiveValue(y))&&(m.isNull=!0),m.plotX=e=S(w(o.translate(y,0,0,0,1,c,"flags"===this.type),-1e5,1e5)),n&&this.visible&&P&&P[y]){var O=this.getStackIndicator(O,y,this.index);m.isNull||(x=(v=P[y]).points[O.key])}if(W(x)&&(k=x[0],b=x[1],k===u&&O.key===P[y].base&&(k=V(Y(p)&&p,a.min)),a.positiveValuesOnly&&0>=k&&(k=null),m.total=m.stackTotal=v.total,m.percentage=v.total&&m.y/v.total*100,m.stackY=b,this.irregularWidths||v.setOffset(this.pointXOffset||0,this.barW||0)),m.yBottom=M(k)?w(a.translate(k,0,1,0,1),-1e5,1e5):null,this.dataModify&&(b=this.dataModify.modifyValue(b,t)),m.plotY=void 0,Y(b)&&void 0!==(v=a.translate(b,!1,!0,!1,!0))&&(m.plotY=w(v,-1e5,1e5)),m.isInside=this.isPointInside(m),m.clientX=d?S(o.translate(y,0,0,0,1,c)):e,m.negative=m[f]<(i[f+"Threshold"]||p||0),m.category=V(r&&r[m.x],m.x),!m.isNull&&!1!==m.visible){void 0!==L&&(g=Math.min(g,Math.abs(e-L)));var L=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&s&&(m.isNew=!0)}this.closestPointRangePx=g,R(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var n=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,{inverted:n.inverted}))&&!1!==t.visible&&(i||!t.isNull)})},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis,n=_(t.clipBox);return e&&e.len!==t.plotSizeX&&(n.width=e.len),i&&i.len!==t.plotSizeY&&(n.height=i.len),n},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,i=this.markerGroup,n=t.sharedClips;t=t.renderer;var o=this.getClipBox(),r=this.getSharedClipKey(),s=n[r];s?s.animate(o):n[r]=s=t.clipRect(o),e&&e.clip(!1===this.options.clip?void 0:s),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,n=this.markerGroup,o=e.inverted,r=c(this.options.animation),s=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(),a=e.sharedCl
1ips[s],h=e.sharedClips[s+"m"];if(t&&i)r=this.getClipBox(),a?a.attr("height",r.height):(r.width=0,o&&(r.x=e.plotHeight),a=e.renderer.clipRect(r),e.sharedClips[s]=a,h=e.renderer.clipRect({x:o?(e.plotSizeX||0)+99:-99,y:o?-e.plotLeft:-e.plotTop,width:99,height:o?e.chartWidth:e.chartHeight}),e.sharedClips[s+"m"]=h),i.clip(a),n&&n.clip(h);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var l=r.step;n&&n.element.childNodes.length&&(r.step=function(t,e){l&&l.apply(e,arguments),h&&h.element&&h.attr(e.prop,"width"===e.prop?t+99:t)}),a.addClass("highcharts-animating").animate(e,r)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),U(this.chart.sharedClips,function(e,i,n){e&&!t.chart.container.querySelector('[clip-path="url(#'+e.id+')"]')&&(e.destroy(),delete n[i])}),this.finishedAnimating=!0,R(this,"afterAnimate")},t.prototype.drawPoints=function(){var t,e,i=this.points,n=this.chart,o=this.options.marker,r=this[this.specialGroup]||this.markerGroup,s=this.xAxis,a=V(o.enabled,!(s&&!s.isRadial)||null,this.closestPointRangePx>=o.enabledThreshold*o.radius);if(!1!==o.enabled||this._hasPointMarkers)for(t=0;t<i.length;t++){var h=i[t],l=(e=h.graphic)?"animate":"attr",c=h.marker||{},d=!!h.marker;if((a&&void 0===c.enabled||c.enabled)&&!h.isNull&&!1!==h.visible){var p=V(c.symbol,this.symbol,"rect"),u=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&(h.startXPos=s.reversed?-(u.width||0):s.width);var f=!1!==h.isInside;e?e[f?"show":"hide"](f).animate(u):f&&(0<(u.width||0)||h.hasImage)&&(h.graphic=e=n.renderer.symbol(p,u.x,u.y,u.width,u.height,d?c:o).add(r),this.enabledDataSorting&&n.hasRendered&&(e.attr({x:h.startXPos}),l="animate")),e&&"animate"===l&&e[f?"show":"hide"](f).animate(u),e&&!n.styledMode&&e[l](this.pointAttribs(h,h.selected&&"select")),e&&e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())}},t.prototype.markerAttribs=function(t,e){var i=this.options,n=i.marker,o=t.marker||{},r=o.symbol||n.symbol,s=V(o.radius,n&&n.radius);return e&&(n=n.states[e],e=o.states&&o.states[e],s=V(e&&e.radius,n&&n.radius,s&&s+(n&&n.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(s=0),t=Y(s)?{x:i.crisp?Math.floor(t.plotX-s):t.plotX-s,y:t.plotY-s}:{},s&&(t.width=t.height=2*s),t},t.prototype.pointAttribs=function(t,e){var i=this.options.marker,n=t&&t.options,o=n&&n.marker||{},r=n&&n.color,s=t&&t.color,a=t&&t.zone&&t.zone.color,h=this.color;return t=V(o.lineWidth,i.lineWidth),n=1,h=r||a||s||h,r=o.fillColor||i.fillColor||h,s=o.lineColor||i.lineColor||h,e=e||"normal",i=i.states[e]||{},e=o.states&&o.states[e]||{},t=V(e.lineWidth,i.lineWidth,t+V(e.lineWidthPlus,i.lineWidthPlus,0)),r=e.fillColor||i.fillColor||r,{stroke:s=e.lineColor||i.lineColor||s,"stroke-width":t,fill:r,opacity:n=V(e.opacity,i.opacity,n)}},t.prototype.destroy=function(t){var e,i,n,o=this,r=o.chart,s=/AppleWebKit\/533/.test(m.navigator.userAgent),a=o.data||[];for(R(o,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(o.axisTypes||[]).forEach(function(t){(n=o[t])&&n.series&&(P(n.series,o),n.isDirty=n.forceRedraw=!0)}),o.legendItem&&o.chart.legend.destroyItem(o),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();o.clips&&o.clips.forEach(function(t){return t.destroy()}),l.clearTimeout(o.animationTimeout),U(o,function(t,e){t instanceof h&&!t.survive&&t[s&&"group"===e?"hide":"destroy"]()}),r.hoverSeries===o&&(r.hoverSeries=void 0),P(r.series,o),r.orderSeries(),U(o,function(e,i){t&&"hcEvents"===i||delete o[i]})},t.prototype.applyZones=function(){var t,e,i,n,o,r,s,a,h=this,l=this.chart,c=l.renderer,d=this.zones,p=this.clips||[],u=this.graph,f=this.area,g=Math.max(l.chartWidth,l.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],y=l.inverted,v=!1;if(d.length&&(u||f)&&m&&void 0!==m.min){var x=m.reversed,b=m.horiz;u&&!this.showLine&&u.hide(),f&&f.hide();var k=m.getExtremes();d.forEach(function(d,S){t=x?b?l.plotWidth:0:b?0:m.toPixels(k.min)||0,t=w(V(e,t),0,g),e=w(Math.round(m.toPixels(V(d.value,k.max),!0)||0),0,g),v&&(t=e=m.toPixels(k.max)),n=Math.abs(t-e),o=Math.min(t,e),r=Math.max(t,e),m.isXAxis?(i={x:y?r:o,y:0,width:n,height:g},b||(i.x=l.plotHeight-i.x)):(i={x:0,y:y?r:o,width:g,height:n},b&&(i.y=l.plotWidth-i.y)),y&&c.isVML&&(i=m.isXAxis?{x:0,y:x?o:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}
1),p[S]?p[S].animate(i):p[S]=c.clipRect(i),s=h["zone-area-"+S],a=h["zone-graph-"+S],u&&a&&a.clip(p[S]),f&&s&&s.clip(p[S]),v=d.value>k.max,h.resetZones&&0===e&&(e=void 0)}),this.clips=p}else h.visible&&(u&&u.show(),f&&f.show())},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach(function(e){i[e]&&(n.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))})}var i=this,n=i.chart;i.xAxis&&(i.eventsToUnbind.push(v(n,"resize",e)),e(),i.invertGroups=e)},t.prototype.plotGroup=function(t,e,i,n,o){var r=this[t],s=!r;return i={visibility:i,zIndex:n||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),s&&(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(M(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[s?"attr":"animate"](this.getPlotBox()),r},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||q(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,i=t.options,n=c(i.animation),o=t.visible?"inherit":"hidden",r=i.zIndex,s=t.hasRendered,a=e.seriesGroup,h=e.inverted;e=!t.finishedAnimating&&e.renderer.isSVG?n.duration:0,R(this,"render");var l=t.plotGroup("group","series",o,r,a);t.markerGroup=t.plotGroup("markerGroup","markers",o,r,a),!1!==i.clip&&t.setClip(),t.animate&&e&&t.animate(!0),l.inverted=!!V(t.invertible,t.isCartesian)&&h,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(h),t.animate&&e&&t.animate(),s||(e&&n.defer&&(e+=n.defer),t.animationTimeout=Q(function(){t.afterAnimate()},e||0)),t.isDirty=!1,t.hasRendered=!0,R(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,o=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:V(n&&n.left,t.plotLeft),translateY:V(o&&o.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,n=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,n,o){var r=t&&t.length;if(r){var s=i.kdAxisArray[n%o];return t.sort(function(t,e){return t[s]-e[s]}),{point:t[r=Math.floor(r/2)],left:e(t.slice(0,r),n+1,o),right:e(t.slice(r+1),n+1,o)}}}this.buildingKdTree=!0;var i=this,n=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,Q(function(){i.kdTree=e(i.getValidPoints(null,!i.directTouch),n,n),i.buildingKdTree=!1},i.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,i){var n=this,o=this.kdAxisArray[0],r=this.kdAxisArray[1],s=e?"distX":"dist";if(e=-1<n.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,h){var l=i.point,c=n.kdAxisArray[a%h],d=l,p=M(e[o])&&M(l[o])?Math.pow(e[o]-l[o],2):null,u=M(e[r])&&M(l[r])?Math.pow(e[r]-l[r],2):null;return u=(p||0)+(u||0),l.dist=M(u)?Math.sqrt(u):Number.MAX_VALUE,l.distX=M(p)?Math.sqrt(p):Number.MAX_VALUE,p=0>(c=e[c]-l[c])?"right":"left",i[u=0>c?"left":"right"]&&(d=(u=t(e,i[u],a+1,h))[s]<d[s]?u:l),i[p]&&Math.sqrt(c*c)<d[s]&&(d=(e=t(e,i[p],a+1,h))[s]<d[s]?e:d),d}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,i=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=i.reversed?-.5:.5),Y(t)?t*(e||i.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,n=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(n?n.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,i=e.trackByArea,n=[].concat(i?t.areaPath:t.graphPath),o=t.chart,r=o.pointer,s=o.renderer,a=o.options.tooltip.snap,h=t.tracker,l=function(e){o.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(g?1e-4:.002)+")";h?h.attr({d:n}):t.graph&&(t.tracker=s.path(n).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),o.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}
1),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){r.onTrackerMouseOut(t)}),e.cursor&&!o.styledMode&&t.css({cursor:e.cursor}),f)&&t.on("touchstart",l)})),R(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,n,o){var r=this.options,s=this.data,a=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l,c=r.data,d=this.xData;e=V(e,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[t]);var u=p.x,f=d.length;if(this.requireSorting&&u<d[f-1])for(l=!0;f&&d[f-1]>u;)f--;this.updateParallelArrays(p,"splice",f,0,0),this.updateParallelArrays(p,f),h&&p.name&&(h[u]=p.name),c.splice(f,0,t),(l||this.processedData)&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),this.updateParallelArrays(p,"shift"),c.shift())),!1!==o&&R(this,"addPoint",{point:p}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(n)},t.prototype.removePoint=function(t,e,i){var n=this,o=n.data,r=o[t],s=n.points,a=n.chart,h=function(){s&&s.length===o.length&&s.splice(t,1),o.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(r||{series:n},"splice",t,1),r&&r.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};d(i,a),e=V(e,!0),r?r.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,n){function o(){r.destroy(n),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),V(t,!0)&&s.redraw(e)}var r=this,s=r.chart;!1!==i?R(r,"remove",null,o):o()},t.prototype.update=function(t,e){t=k(t,this.userOptions),R(this,"update",{options:t});var i,n=this,o=n.chart,r=n.userOptions,s=n.initialType||n.type,a=o.options.plotOptions,h=y[s].prototype,l=n.finishedAnimating&&{animation:!1},c={},d=["eventOptions","navigatorSeries","baseSeries"],p=t.type||r.type||o.options.chart.type,u=!(this.hasDerivedData||p&&p!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||n.hasOptionChanged("dataGrouping")||n.hasOptionChanged("pointStart")||n.hasOptionChanged("pointInterval")||n.hasOptionChanged("pointIntervalUnit")||n.hasOptionChanged("keys"));if(p=p||s,u&&(d.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&d.push("area","graph"),n.parallelArrays.forEach(function(t){d.push(t+"Data")}),t.data&&(t.dataSorting&&L(n.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=_(r,l,{index:void 0===r.index?n.index:r.index,pointStart:V(a&&a.series&&a.series.pointStart,r.pointStart,n.xData[0])},!u&&{data:n.options.data},t),u&&t.data&&(t.data=n.options.data),(d=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(d)).forEach(function(t){d[t]=n[t],delete n[t]}),a=!1,y[p]){if(a=p!==n.type,n.remove(!1,!1,!1,!0),a)if(Object.setPrototypeOf)Object.setPrototypeOf(n,y[p].prototype);else{for(i in l=Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents,h)n[i]=void 0;L(n,y[p].prototype),l?n.hcEvents=l:delete n.hcEvents}}else O(17,!0,o,{missingModuleFor:p});if(d.forEach(function(t){n[t]=d[t]}),n.init(o,t),u&&this.points){var f=n.options;!1===f.visible?(c.graphic=1,c.dataLabel=1):n._hasPointLabels||(t=f.marker,h=f.dataLabels,!t||!1!==t.enabled&&(r.marker&&r.marker.symbol)===t.symbol||(c.graphic=1),h&&!1===h.enabled&&(c.dataLabel=1)),this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(c).length&&t.destroyElements(c),!1===f.showInLegend&&t.legendItem&&o.legend.destroyItem(t))},this)}n.initialType=s,o.linkSeries(),a&&n.linkedSeries.length&&(n.isDirtyData=!0),R(this,"afterUpdate"),V(e,!0)&&o.redraw(!!u&&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],i=this.chart.options.plotOptions,n=this.userOptions[t];return n?e!==n:e!==V(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.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&&R(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&R(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEac
1h(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i=this,n=i.options,o=i.graph,r=n.inactiveOtherPoints,s=n.states,a=V(s[t||"normal"]&&s[t||"normal"].animation,i.chart.options.chart.animation),h=n.lineWidth,l=0,c=n.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(s[t]&&!1===s[t].enabled)return;if(t&&(h=s[t].lineWidth||h+(s[t].lineWidthPlus||0),c=V(s[t].opacity,c)),o&&!o.dashstyle)for(n={"stroke-width":h},o.animate(n,a);i["zone-graph-"+l];)i["zone-graph-"+l].animate(n,a),l+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:c},a)})}e&&r&&i.points&&i.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 i=this,n=i.chart,o=i.legendItem,r=n.options.chart.ignoreHiddenSeries,s=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!s:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){i[t]&&i[t][a]()}),n.hoverSeries!==i&&(n.hoverPoint&&n.hoverPoint.series)!==i||i.onMouseOut(),o&&n.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),r&&(n.isDirtyBox=!0),R(i,a),!1!==e&&n.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),R(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.defaultOptions=s,t}(),L(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:o.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0}),a.series=t,t}),K(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r){var s=t.stop,a=r.addEvent,h=r.createElement,l=r.merge,c=r.pick;a(i,"afterSetChartSize",function(t){var i=this.options.chart.scrollablePlotArea,n=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(n){if(this.scrollablePixelsX=n=Math.max(0,n-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.width=this.plotWidth+=n,this.inverted?this.clipBox.height+=n:this.clipBox.width+=n;var o={1:{name:"right",value:n}}}}else i&&(this.scrollablePixelsY=n=Math.max(0,i-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),this.plotBox.height=this.plotHeight+=n,this.inverted?this.clipBox.width+=n:this.clipBox.height+=n,o={2:{name:"bottom",value:n}});o&&!t.skipAxes&&this.axes.forEach(function(t){o[t.side]?t.getPlotLinePath=function(){var i=o[t.side].name,n=this[i];this[i]=n-o[t.side].value;var r=e.prototype.getPlotLinePath.apply(this,arguments);return this[i]=n,r}:(t.setAxisSize(),t.setAxisTranslation())})}}),a(i,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),i.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=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=h("div",{className:"highcharts-scrolling"},e,this.scrollingParent),a(this.scrollingContainer,"scroll",function(){t.pointer&&delete t.pointer.chartPosition}),this.innerContainer=h("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},i.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,n=".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&&n.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),n.forEac
1h(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},i.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,i=e.scrollablePlotArea,n=o.getRendererType();t?(this.fixedDiv=h("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 n(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(i.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterApplyDrilldown",this.moveFixedElements),a(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),n=this.chartHeight+(this.scrollablePixelsY||0),s(this.container),this.container.style.width=e+"px",this.container.style.height=n+"px",this.renderer.boxWrapper.attr({width:e,height:n,viewBox:[0,0,e,n].join(" ")}),this.chartBackground.attr({width:e,height:n}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY)),n=this.axisOffset,t=this.plotTop-n[0]-1,i=this.plotLeft-n[3]-1,e=this.plotTop+this.plotHeight+n[2]+1,n=this.plotLeft+this.plotWidth+n[1]+1;var r=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=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",r,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",r,e],["Z"]]:this.scrollablePixelsY?[["M",i,0],["L",i,this.plotTop-1],["L",n,this.plotTop-1],["L",n,0],["Z"],["M",i,l],["L",i,this.chartHeight],["L",n,this.chartHeight],["L",n,l],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",function(){this.chart.scrollableDirty=!0}),a(n,"show",function(){this.chart.scrollableDirty=!0})}),K(e,"Core/Axis/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(t,e,i){var n,o=t.getDeferredAnimation,r=i.addEvent,s=i.destroyObjectProperties,a=i.fireEvent,h=i.isNumber,l=i.objectEach;return function(t){function e(){var t=this.stacking;if(t){var e=t.stacks;l(e,function(t,i){s(t),e[i]=null}),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function i(){this.stacking||(this.stacking=new c(this))}var n=[];t.compose=function(t){return-1===n.indexOf(t)&&(n.push(t),r(t,"init",i),r(t,"destroy",e)),t};var c=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,i=e.series,n=e.options.reversedStacks,o=i.length;if(!e.isXAxis){for(this.usePercentage=!1,t=o;t--;){var r=i[n?t:o-t-1];r.setStackedPoints(),r.setGroupedPoints()}for(t=0;t<o;t++)i[t].modifyStacks();a(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;l(t,function(t){l(t,function(t){t.cumulative=t.total})})}},t.prototype.resetStacks=function(){var t=this,e=t.stacks;t.axis.isXAxis||l(e,function(e){l(e,function(i,n){h(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[n]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,i=e.renderer,n=this.stacks;t=o(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var r=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}
1).add();r.translate(e.plotLeft,e.plotTop),l(n,function(t){l(t,function(t){t.render(r)})}),r.animate({opacity:1},t)},t}();t.Additions=c}(n||(n={})),n}),K(e,"Extensions/Stacking.js",[e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Axis/StackingAxis.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s){var a=i.format,h=s.correctFloat,l=s.defined,c=s.destroyObjectProperties,d=s.isArray,p=s.isNumber,u=s.objectEach,f=s.pick,g=function(){function t(t,e,i,n,o){var r=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=n,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(r?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?i?"right":"left":"center")}return t.prototype.destroy=function(){c(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,n=i.format;n=n?a(n,this,e):i.formatter.call(this),this.label?this.label.attr({text:n,visibility:"hidden"}):(this.label=e.renderer.label(n,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),n={r:i.borderRadius||0,text:n,rotation:i.rotation,padding:f(i.padding,5),visibility:"hidden"},e.styledMode||(n.fill=i.backgroundColor,n.stroke=i.borderColor,n["stroke-width"]=i.borderWidth,this.label.css(i.style)),this.label.attr(n),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,i,n,r){var s=this.axis,a=s.chart;n=s.translate(s.stacking.usePercentage?100:n||this.total,0,0,0,1),i=s.translate(i||0),i=l(n)&&Math.abs(n-i),t=f(r,a.xAxis[0].translate(this.x))+t,s=l(n)&&this.getStackBox(a,this,t,n,e,i,s),e=this.label,i=this.isNegative,t="justify"===f(this.options.overflow,"justify");var h=this.textAlign;e&&s&&(r=e.getBBox(),n=e.padding,h="left"===h?a.inverted?-n:n:"right"===h?r.width:a.inverted&&"center"===h?r.width/2:a.inverted?i?r.width+n:-n:r.width/2,i=a.inverted?r.height/2:i?-n:r.height,this.alignOptions.x=f(this.options.x,0),this.alignOptions.y=f(this.options.y,0),s.x-=h,s.y-=i,e.align(this.alignOptions,null,s),a.isInsidePlot(e.alignAttr.x+h-this.alignOptions.x,e.alignAttr.y+i-this.alignOptions.y)?e.show():(e.hide(),t=!1),t&&o.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,r,s),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),f(!t&&this.options.crop,!0)&&((a=p(e.x)&&p(e.y)&&a.isInsidePlot(e.x-n+e.width,e.y)&&a.isInsidePlot(e.x+n,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,i,n,o,r,s){var a=e.axis.reversed,h=t.inverted,l=s.height+s.pos-(h?t.plotLeft:t.plotTop);return e=e.isNegative&&!a||!e.isNegative&&a,{x:h?e?n-s.right:n-r+s.pos-t.plotLeft:i+t.xAxis[0].transB-t.plotLeft,y:h?s.height-i-o:e?l-n-r:l-n,width:h?r:o,height:h?o:r}},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(i){var n=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,f(i.options.stack,""),e?n.top:n.left,e?n.height:n.width].join())})},r.compose(t),o.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?o.prototype.setStackedPoints.call(this,"group"):t&&u(t.stacks,function(e,i){"group"===i.slice(-5)&&(u(e,function(t){return t.destroy()}),delete t.stacks[i])})},o.prototype.setStackedPoints=function(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var i=this.processedXData,n=this.processedYData,o=[],r=n.length,s=this.options,a=s.threshold,c=f(s.startFromThreshold&&a,0);s=s.stack;var p,u,m="-"+(t=t?this.type+","+e:this.stackKey),y=this.negStacks,v=this.yAxis,x=v.stacking.stacks,b=v.stacking.oldStacks;for(v.stacking.stacksTouched+=1,u=0;u<r;u++){var w=i[u],k=n[u],S=this.getStackIndicator(S,w,this.index),M=S.key,P=(p=y&&k<(c?0:a))?m:t;x[P]||(x[P]={}),x[P][w]||(b[P]&&b[P][w]?(x[P][w]=b[P][w],x[P][w].total=null):x[P][w]=new g(v,v.options.stackLabels,p,w,s)),P=x[P][w],null!==k?(P.points[M]=P.points[this.index]=[f(P.cumulative,c)],l(P.cumulative)||(P.base=M),P.touched=v.stacking.stacksTouched,0<S.index&&!1===this.singleStacks&&(P.points[M][0]=P.points[this.index+","+w+",0"][0])):P.points[M]=P.points[this.index]=null,"percent"===e?(p=p?t:m,y&&x[p]&&x[p][w]?(p=x[p][w],P.total=p.total=Math.max(p.total,P.total)+Math.abs(k)||0):P.total=h(P.total+(Math.abs(k)||0))):"group"===e?(d(k)&&(k=k[0]),null!==k&&(P.total=(P.total||0)+1)):P.total=h(P.total+(k||0)),P.cumulative="group"===e?(P.total||1)-1:f(P.cumulative,c)+(k||0),null!==k&&(P.points[M].push(P.cumulative),o[u]=P.cumulative,P.hasValidPoints=!0)}"percent"===e&&(v.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=o),v.stacking.oldStacks={}}},o.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,n=e.yAxis.stacking.stacks,o=e.processedXData,r=e.options.stacking;
1e[r+"Stacker"]&&[i,"-"+i].forEach(function(i){for(var s,a,h=o.length;h--;)s=o[h],t=e.getStackIndicator(t,s,e.index,i),(a=(s=n[i]&&n[i][s])&&s.points[t.key])&&e[r+"Stacker"](a,s,h)})},o.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=h(t[0]*e),t[1]=h(t[1]*e),this.stackedYData[i]=t[1]},o.prototype.getStackIndicator=function(t,e,i,n){return!l(t)||t.x!==e||n&&t.stackKey!==n?t={x:e,index:0,key:n,stackKey:n}:t.index++,t.key=[i,e,t.index].join(),t},n.StackItem=g,n.StackItem}),K(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=i.defined,r=i.merge;return i=function(e){function A(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(A,e),A.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode,o=[["graph","highcharts-graph"]];n||o[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(o=t.getZonesGraphs(o)).forEach(function(o,r){var s=o[0],a=t[s],h=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(t[s]=a=t.chart.renderer.path(i).addClass(o[1]).attr({zIndex:1}).add(t.group)),a&&!n&&(s={stroke:o[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},o[3]?s.dashstyle=o[3]:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[h](s).shadow(2>r&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)})},A.prototype.getGraphPath=function(t,e,i){var n,r=this,s=r.options,a=[],h=[],l=s.step,c=(t=t||r.points).reversed;return c&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,!(s.connectNulls&&!e&&!i))).forEach(function(c,d){var p=c.plotX,u=c.plotY,f=t[d-1];(c.leftCliff||f&&f.rightCliff)&&!i&&(n=!0),c.isNull&&!o(e)&&0<d?n=!s.connectNulls:c.isNull&&!e?n=!0:(0===d||n?d=[["M",c.plotX,c.plotY]]:r.getPointSpline?d=[r.getPointSpline(t,c,d)]:l?(d=1===l?[["L",f.plotX,u]]:2===l?[["L",(f.plotX+p)/2,f.plotY],["L",(f.plotX+p)/2,u]]:[["L",p,f.plotY]]).push(["L",p,u]):d=[["L",p,u]],h.push(c.x),l&&(h.push(c.x),2===l&&h.push(c.x)),a.push.apply(a,d),n=!1)}),a.xMap=h,r.graphPath=a},A.prototype.getZonesGraphs=function(t){return this.zones.forEach(function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)},this),t},A.defaultOptions=r(t.defaultOptions,{}),A}(t),e.registerSeriesType("line",i),i}),K(e,"Series/Area/AreaSeries.js",[e["Core/Color/Color.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,n){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=t.parse,s=i.seriesTypes.line;t=n.extend;var a=n.merge,h=n.objectEach,l=n.pick;return n=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 o(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,i=this.areaPath,n=this.options,o=[["area","highcharts-area",this.color,n.fillColor]];this.zones.forEach(function(t,i){o.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+t.className,t.color||e.color,t.fillColor||n.fillColor])}),o.forEach(function(t){var o=t[0],s=e[o],a=s?"animate":"attr",h={};s?(s.endX=e.preventGraphAnimation?null:i.xMap,s.animate({d:i})):(h.zIndex=0,(s=e[o]=e.chart.renderer.path(i).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(h.fill=l(t[3],r(t[2]).setOpacity(l(n.fillOpacity,.75)).get())),s[a](h),s.startX=i.xMap,s.shiftUnit=n.step?2:1})},e.prototype.getGraphPath=function(t){var e,i=s.prototype.getGraphPath,n=this.options,o=n.stacking,r=this.yAxis,a=[],h=[],c=this.index,d=r.stacking.stacks[this.stackKey],p=n.threshold,u=Math.round(r.getThreshold(n.threshold));n=l(n.connectNulls,"percent"===o);var f=function(e,i,n){var s=t[e];e=o&&d[s.x].points[c];var l=s[n+"Null"]||0;if(n=s[n+"Cliff"]||0,s=!0,n||l){var f=(l?e[0]:e[1])+n,g=e[0]+n;s=!!l}else!o&&t[i]&&t[i].isNull&&(f=g=p);void 0!==f&&(h.push({plotX:m,plotY:null===f?u:r.getThreshold(f),isNull:s,isCliff:!0}),a.push({plotX:m,plotY:null===g?u:r.getThreshold(g),doCurve:!1}))};for(t=t||this.points,o&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){o||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var g=t[e].isNull,m=l(t[e].rectPlotX,t[e].plotX),y=o?l(t[e].yBottom,u):u;g&&!n||(n||f(e,e-1,"left"),g&&!o&&n||(h.push(t[e]),a.push({x:e,plotX:m,plotY:y})),n||f(e,e+1,"right"))}return e=i.call(this,h,!0,!0),a.reversed=!0,(y=(g=i.call(this,a,!0,
1!0))[0])&&"M"===y[0]&&(g[0]=["L",y[1],y[2]]),(g=e.concat(g)).length&&g.push(["Z"]),i=i.call(this,h,!1,n),g.xMap=e.xMap,this.areaPath=g,i},e.prototype.getStackPoints=function(t){var e=this,i=[],n=[],o=this.xAxis,r=this.yAxis,s=r.stacking.stacks[this.stackKey],a={},c=r.series,d=c.length,p=r.options.reversedStacks?1:-1,u=c.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,a[t[f].x]=t[f];h(s,function(t,e){null!==t.total&&n.push(e)}),n.sort(function(t,e){return t-e});var g=c.map(function(t){return t.visible});n.forEach(function(t,h){var f,m,y=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){var o=1===i?"rightNull":"leftNull",r=0,l=s[n[h+i]];if(l)for(var y=u;0<=y&&y<d;){var v=c[y].index;(f=l.points[v])||(v===e.index?a[t][o]=!0:g[y]&&(m=s[t].points[v])&&(r-=m[1]-m[0])),y+=p}a[t][1===i?"rightCliff":"leftCliff"]=r});else{for(var v=u;0<=v&&v<d;){if(f=s[t].points[c[v].index]){y=f[1];break}v+=p}y=l(y,0),y=r.translate(y,0,1,0,1),i.push({isNull:!0,plotX:o.translate(t,0,0,0,1),x:t,plotY:y,yBottom:y})}})}return i},e.defaultOptions=a(s.defaultOptions,{threshold:0}),e}(s),t(n.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("area",n),n}),K(e,"Series/Spline/SplineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),n=t.seriesTypes.line,o=e.merge,r=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 i(e,t),e.prototype.getPointSpline=function(t,e,i){var n=e.plotX||0,o=e.plotY||0,s=t[i-1];if(i=t[i+1],s&&!s.isNull&&!1!==s.doCurve&&!e.isCliff&&i&&!i.isNull&&!1!==i.doCurve&&!e.isCliff){t=s.plotY||0;var a=i.plotX||0;i=i.plotY||0;var h=0,l=(1.5*n+(s.plotX||0))/2.5,c=(1.5*o+t)/2.5,d=(1.5*o+i)/2.5;(a=(1.5*n+a)/2.5)!==l&&(h=(d-c)*(a-n)/(a-l)+o-d),d+=h,(c+=h)>t&&c>o?d=2*o-(c=Math.max(t,o)):c<t&&c<o&&(d=2*o-(c=Math.min(t,o))),d>i&&d>o?c=2*o-(d=Math.max(i,o)):d<i&&d<o&&(c=2*o-(d=Math.min(i,o))),e.rightContX=a,e.rightContY=d}return e=["C",r(s.rightContX,s.plotX,0),r(s.rightContY,s.plotY,0),r(l,n,0),r(c,o,0),n,o],s.rightContX=s.rightContY=void 0,e},e.defaultOptions=o(n.defaultOptions),e}(n),t.registerSeriesType("spline",e),e}),K(e,"Series/AreaSpline/AreaSplineSeries.js",[e["Series/Area/AreaSeries.js"],e["Series/Spline/SplineSeries.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,n,o){var r=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=t.prototype,a=o.extend,h=o.merge;return o=function(i){function n(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return r(n,i),n.defaultOptions=h(e.defaultOptions,t.defaultOptions),n}(e),a(o.prototype,{getGraphPath:s.getGraphPath,getStackPoints:s.getStackPoints,drawGraph:s.drawGraph,drawLegendSymbol:i.drawRectangle}),n.registerSeriesType("areaspline",o),o}),K(e,"Series/Column/ColumnSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s){var a=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),h=t.animObject,l=e.parse,c=i.hasTouch;t=i.noop;var d=s.clamp,p=s.css,u=s.defined,f=s.extend,g=s.fireEvent,m=s.isArray,y=s.isNumber,v=s.merge,x=s.pick,b=s.objectEach;return s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;
1return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return a(e,t),e.prototype.animate=function(t){var e=this,i=this.yAxis,n=e.options,o=this.chart.inverted,r={},s=o?"translateX":"translateY";if(t)r.scaleY=.001,t=d(i.toPixels(n.threshold),i.pos,i.pos+i.len),o?r.translateX=t-i.len:r.translateY=t,e.clipBox&&e.setClip(),e.group.attr(r);else{var a=Number(e.group.attr(s));e.group.animate({scaleY:1},f(h(e.options.animation),{step:function(t,n){e.group&&(r[s]=a+n.pos*(i.pos-a),e.group.attr(r))}}))}},e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var n=this;(e=n.chart).hasRendered&&e.series.forEach(function(t){t.type===n.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,i=t.xAxis,n=t.yAxis,o=i.options.reversedStacks;o=i.reversed&&!o||!i.reversed&&o;var r,s={},a=0;!1===e.grouping?a=1:t.chart.series.forEach(function(e){var i=e.yAxis,o=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&n.len===i.len&&n.pos===i.pos){if(o.stacking&&"group"!==o.stacking){r=e.stackKey,void 0===s[r]&&(s[r]=a++);var h=s[r]}else!1!==o.grouping&&(h=a++);e.columnIndex=h}});var h=Math.min(Math.abs(i.transA)*(i.ordinal&&i.ordinal.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),l=h*e.groupPadding,c=(h-2*l)/(a||1);return e=Math.min(e.maxPointWidth||i.len,x(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(l+((t.columnIndex||0)+(o?1:0))*c-h/2)*(o?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,i,n){var o=this.chart,r=this.borderWidth,s=-(r%2?.5:0);return r=r%2?.5:1,o.inverted&&o.renderer.isVML&&(r+=1),this.options.crisp&&(i=Math.round(t+i)+s,i-=t=Math.round(t)+s),n=Math.round(e+n)+r,s=.5>=Math.abs(e)&&.5<n,n-=e=Math.round(e)+r,s&&n&&(--e,n+=1),{x:t,y:e,width:i,height:n}},e.prototype.adjustForMissingColumns=function(t,e,i,n){var o=this,r=this.options.stacking;if(!i.isNull&&1<n.columnCount){var s=this.yAxis.options.reversedStacks,a=0,h=s?0:-n.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){if("number"==typeof i.x&&(t=t[i.x.toString()])){var e=t.points[o.index],n=t.total;r?(e&&(a=h),t.hasValidPoints&&(s?h++:h--)):m(e)&&(a=e[1],h=n||0)}}),t=(i.plotX||0)+((h-1)*n.paddedWidth+e)/2-e-a*n.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,i=t.options,n=t.dense=2>t.closestPointRange*t.xAxis.transA;n=t.borderWidth=x(i.borderWidth,n?0:1);var r=t.xAxis,s=t.yAxis,a=i.threshold,h=t.translatedThreshold=s.getThreshold(a),l=x(i.minPointLength,5),c=t.getColumnMetrics(),p=c.width,f=t.pointXOffset=c.offset,g=t.dataMin,m=t.dataMax,v=t.barW=Math.max(p,1+2*n);e.inverted&&(h-=.5),i.pointPadding&&(v=Math.ceil(v)),o.prototype.translate.apply(t),t.points.forEach(function(n){var o=x(n.yBottom,h),b=999+Math.abs(o),w=n.plotX||0;b=d(n.plotY,-b,s.len+b);var k=Math.min(b,o),S=Math.max(b,o)-k,M=p,P=w+f,O=v;l&&Math.abs(S)<l&&(S=l,w=!s.reversed&&!n.negative||s.reversed&&n.negative,y(a)&&y(m)&&n.y===a&&m<=a&&(s.min||0)<a&&(g!==m||(s.max||0)<=a)&&(w=!w),k=Math.abs(k-h)>l?o-l:h-(w?l:0)),u(n.options.pointWidth)&&(M=O=Math.ceil(n.options.pointWidth),P-=Math.round((M-p)/2)),i.centerInCategory&&(P=t.adjustForMissingColumns(P,M,n,c)),n.barX=P,n.pointWidth=M,n.tooltipPos=e.inverted?[d(s.len+s.pos-e.plotLeft-b,s.pos-e.plotLeft,s.len+s.pos-e.plotLeft),r.len+r.pos-e.plotTop-P-O/2,S]:[r.left-e.plotLeft+P+O/2,d(b+s.pos-e.plotTop,s.pos-e.plotTop,s.len+s.pos-e.plotTop),S],n.shapeType=t.pointClass.prototype.shapeType||"rect",n.shapeArgs=t.crispCol.apply(t,n.isNull?[P,h,O,0]:[P,k,O,S])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i=this.options,n=this.pointAttrToOptions||{},o=n.stroke||"borderColor",r=n["stroke-width"]||"borderWidth",s=t&&t.color||this.color,a=t&&t[o]||i[o]||s;n=t&&t.options.dashStyle||i.dashStyle;var h=t&&t[r]||i[r]||this[r]||0,c=x(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var d=t.getZone();s=t.options.color||d&&(d.color||t.nonZonedColor)||this.color,d&&(a=d.borderColor||a,n=d.dashStyle||n,h=d.borderWidth||h)}return e&&t&&(e=(t=v(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,s=t.color||void 0!==e&&l(s).brighten(t.brightness).get()||s,a=t[o]||a,h=t[r]||h,n=t.dashStyle||n,c=x(t.opacity,c)),o={fill:s,stroke:a,"stroke-width":h,opacity:c},n&&(o.dashstyle=n),o},e.prototype.drawPoints=function(){var t,e=this,i=this.chart,n=e.options,o=i.renderer,r=n.animationLimit||250;
1e.points.forEach(function(s){var a=s.graphic,h=!!a,l=a&&i.pointCount<r?"animate":"attr";y(s.plotY)&&null!==s.y?(t=s.shapeArgs,a&&s.hasNewShapeType()&&(a=a.destroy()),e.enabledDataSorting&&(s.startXPos=e.xAxis.reversed?-(t&&t.width||0):e.xAxis.width),a||(s.graphic=a=o[s.shapeType](t).add(s.group||e.group))&&e.enabledDataSorting&&i.hasRendered&&i.pointCount<r&&(a.attr({x:s.startXPos}),h=!0,l="animate"),a&&h&&a[l](v(t)),n.borderRadius&&a[l]({r:n.borderRadius}),i.styledMode||a[l](e.pointAttribs(s,s.selected&&"select")).shadow(!1!==s.allowShadow&&n.shadow,null,n.stacking&&!n.borderRadius),a&&(a.addClass(s.getClassName(),!0),a.attr({visibility:s.visible?"inherit":"hidden"}))):a&&(s.graphic=a.destroy())})},e.prototype.drawTracker=function(){var t,e=this,i=e.chart,n=i.pointer,o=function(t){var e=n.getPointFromEvent(t);void 0!==e&&(n.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",o).on("mouseout",function(t){n.onTrackerMouseOut(t)}),c&&e[t].on("touchstart",o),!i.styledMode&&e.options.cursor&&e[t].css(p).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)}),o.prototype.remove.apply(t,arguments)},e.defaultOptions=v(o.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}(o),f(s.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:n.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("column",s),s}),K(e,"Core/Series/DataLabel.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(t,e,i){var n,o=t.getDeferredAnimation,r=e.format,s=i.defined,a=i.extend,h=i.fireEvent,l=i.isArray,c=i.merge,d=i.objectEach,p=i.pick,u=i.splat;return function(t){function e(t,e,i,n,o){var r=this,h=this.chart,l=this.isCartesian&&h.inverted,c=this.enabledDataSorting,d=p(t.dlBox&&t.dlBox.centerX,t.plotX),u=t.plotY,f=i.rotation,g=i.align,m=s(d)&&s(u)&&h.isInsidePlot(d,Math.round(u),{inverted:l,paneCoordinates:!0,series:r}),y=function(i){c&&r.xAxis&&!v&&r.setDataLabelStartPos(t,e,o,m,i)},v="justify"===p(i.overflow,c?"none":"justify"),x=this.visible&&!1!==t.visible&&(t.series.forceDL||c&&!v||m||p(i.inside,!!this.options.stacking)&&n&&h.isInsidePlot(d,l?n.x+1:n.y+n.height-1,{inverted:l,paneCoordinates:!0,series:r}));if(x&&s(d)&&s(u)){f&&e.attr({align:g}),g=e.getBBox(!0);var b=[0,0],w=h.renderer.fontMetrics(h.styledMode?void 0:i.style.fontSize,e).b;n=a({x:l?this.yAxis.len-u:d,y:Math.round(l?this.xAxis.len-d:u),width:0,height:0},n),a(i,{width:g.width,height:g.height}),f?(v=!1,b=h.renderer.rotCorr(w,f),d={x:n.x+(i.x||0)+n.width/2+b.x,y:n.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height},b=[g.x-Number(e.attr("x")),g.y-Number(e.attr("y"))],y(d),e[o?"attr":"animate"](d)):(y(n),e.align(i,void 0,n),d=e.alignAttr),v&&0<=n.height?this.justifyDataLabel(e,i,d,g,n,o):p(i.crop,!0)&&(n=d.x,y=d.y,n+=b[0],y+=b[1],x=h.isInsidePlot(n,y,{paneCoordinates:!0,series:r})&&h.isInsidePlot(n+g.width,y+g.height,{paneCoordinates:!0,series:r})),i.shape&&!f&&e[o?"attr":"animate"]({anchorX:l?h.plotWidth-t.plotY:t.plotX,anchorY:l?h.plotHeight-t.plotX:t.plotY})}o&&c&&(e.placed=!1),x||c&&!v?e.show():(e.hide(),e.placed=!1)}function i(){var t=this,e=t.chart,i=t.options,n=t.points,a=t.hasRendered||0,c=e.renderer,g=i.dataLabels,m=g.animation;if(m=g.defer?o(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),h(this,"drawDataLabels"),l(g)||g.enabled||t._hasPointLabels){var y=t.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",g.zIndex||6);y.attr({opacity:+a}),!a&&(a=t.dataLabelsGroup)&&(t.visible&&y.show(),a[i.animation?"animate":"attr"]({opacity:1}
1,m)),n.forEach(function(n){u(f(g,n.dlOptions||n.options&&n.options.dataLabels)).forEach(function(o,a){var h=o.enabled&&(!n.isNull||n.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(n,o),l=n.connectors?n.connectors[a]:n.connector,u=n.dataLabels?n.dataLabels[a]:n.dataLabel,f=!u,g=p(o.distance,n.labelDistance);if(h){var m=n.getLabelConfig(),v=p(o[n.formatPrefix+"Format"],o.format);m=s(v)?r(v,m,e):(o[n.formatPrefix+"Formatter"]||o.formatter).call(m,o),v=o.style;var x=o.rotation;e.styledMode||(v.color=p(o.color,v.color,t.color,"#000000"),"contrast"===v.color?(n.contrastColor=c.getContrast(n.color||t.color),v.color=!s(g)&&o.inside||0>g||i.stacking?n.contrastColor:"#000000"):delete n.contrastColor,i.cursor&&(v.cursor=i.cursor));var b={r:o.borderRadius||0,rotation:x,padding:o.padding,zIndex:1};e.styledMode||(b.fill=o.backgroundColor,b.stroke=o.borderColor,b["stroke-width"]=o.borderWidth),d(b,function(t,e){void 0===t&&delete b[e]})}!u||h&&s(m)&&!!u.div==!!o.useHTML&&(u.rotation&&o.rotation||u.rotation===o.rotation)||(f=!0,n.dataLabel=u=n.dataLabel&&n.dataLabel.destroy(),n.dataLabels&&(1===n.dataLabels.length?delete n.dataLabels:delete n.dataLabels[a]),a||delete n.dataLabel,l&&(n.connector=n.connector.destroy(),n.connectors&&(1===n.connectors.length?delete n.connectors:delete n.connectors[a]))),h&&s(m)?(u?b.text=m:(n.dataLabels=n.dataLabels||[],u=n.dataLabels[a]=x?c.text(m,0,0,o.useHTML).addClass("highcharts-data-label"):c.label(m,0,0,o.shape,null,null,o.useHTML,null,"data-label"),a||(n.dataLabel=u),u.addClass(" highcharts-data-label-color-"+n.colorIndex+" "+(o.className||"")+(o.useHTML?" highcharts-tracker":""))),u.options=o,u.attr(b),e.styledMode||u.css(v).shadow(o.shadow),u.added||u.add(y),o.textPath&&!o.useHTML&&(u.setTextPath(n.getDataLabelPath&&n.getDataLabelPath(u)||n.graphic,o.textPath),n.dataLabelPath&&!o.textPath.enabled&&(n.dataLabelPath=n.dataLabelPath.destroy())),t.alignDataLabel(n,u,o,null,f)):u&&u.hide()})})}h(this,"afterDrawDataLabels")}function n(t,e,i,n,o,r){var s=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var d=e.y;d=void 0===d?0:d;var p=(i.x||0)+l;if(0>p){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=p;var u=!0}return(p=(i.x||0)+n.width-l)>s.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=s.plotWidth-p,u=!0),0>(p=i.y+l)&&("bottom"===h&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=p,u=!0),(p=(i.y||0)+n.height-l)>s.plotHeight&&("top"===h&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=s.plotHeight-p,u=!0),u&&(e.x=c,e.y=d,t.placed=!r,t.align(e,void 0,o)),u}function f(t,e){var i,n=[];if(l(t)&&!l(e))n=t.map(function(t){return c(t,e)});else if(l(e)&&!l(t))n=e.map(function(e){return c(t,e)});else if(l(t)||l(e))for(i=Math.max(t.length,e.length);i--;)n[i]=c(t[i],e[i]);else n=c(t,e);return n}function g(t,e,i,n,o){var r=this.chart,s=r.inverted,a=this.xAxis,h=a.reversed,l=s?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=s?o.x:h?-l-t:a.width-l+t,e.startYPos=s?h?this.yAxis.height-l+t:-l-t:o.y,n?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0}
1,void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var m=[];t.compose=function(t){if(-1===m.indexOf(t)){var o=t.prototype;m.push(t),o.alignDataLabel=e,o.drawDataLabels=i,o.justifyDataLabel=n,o.setDataLabelStartPos=g}}}(n||(n={})),n}),K(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){var n,o=e.series,r=i.merge,s=i.pick;return function(e){function i(t,e,i,n,a){var h=this.chart.inverted,l=t.series,c=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var d=t.dlBox||t.shapeArgs,p=s(t.below,t.plotY>s(this.translatedThreshold,l)),u=s(i.inside,!!this.options.stacking);d&&(0>(n=r(d)).y&&(n.height+=n.y,n.y=0),0<(d=n.y+n.height-l)&&d<n.height&&(n.height-=d),h&&(n={x:l-n.y-n.height,y:c-n.x-n.width,width:n.height,height:n.width}),u||(h?(n.x+=p?0:n.width,n.width=0):(n.y+=p?n.height:0,n.height=0))),i.align=s(i.align,!h||u?"center":p?"right":"left"),i.verticalAlign=s(i.verticalAlign,h||u?"middle":p?"top":"bottom"),o.prototype.alignDataLabel.call(this,t,e,i,n,a),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var n=[];e.compose=function(e){t.compose(o),-1===n.indexOf(e)&&(n.push(e),e.prototype.alignDataLabel=i)}}(n||(n={})),n}),K(e,"Series/Bar/BarSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=i.extend,r=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(i,e),i.defaultOptions=r(t.defaultOptions,{}),i}(t),o(i.prototype,{inverted:!0}),e.registerSeriesType("bar",i),i}),K(e,"Series/Scatter/ScatterSeries.js",[e["Series/Column/ColumnSeries.js"],e["Series/Line/LineSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,n){var o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=n.addEvent,s=n.extend,a=n.merge;return n=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return o(i,t),i.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(n,o){["x","y"].forEach(function(r,s){var a="plot"+r.toUpperCase();if(e[r]&&!n.isNull){var h=t[r+"Axis"],l=e[r]*h.transA;if(h&&!h.isLog){var c=Math.max(0,n[a]-l);h=Math.min(h.len,n[a]+l),s=1e4*Math.sin(o+s*i),n[a]=c+(h-c)*(s-Math.floor(s)),"x"===r&&(n.clientX=n.plotX)}}})})},i.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},i.defaultOptions=a(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/>"}}),i}(e),s(n.prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),r(n,"afterTranslate",function(){this.applyJitter()}),i.registerSeriesType("scatter",n),n}),K(e,"Series/CenteredUtilities.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(t,e,i){var n,o=t.deg2rad,r=i.isNumber,s=i.pick,a=i.relativeLength;return function(t){t.getCenter=function(){var t=this.options,i=this.chart,n=2*(t.slicedOffset||0),o=i.plotWidth-2*n,h=i.plotHeight-2*n,l=t.center,c=Math.min(o,h),d=t.thickness,p=t.size,u=t.innerSize||0;for("string"==typeof p&&(p=parseFloat(p)),"string"==typeof u&&(u=parseFloat(u)),t=[s(l[0],"50%"),s(l[1],"50%"),s(p&&0>p?void 0:t.size,"100%"),s(u&&0>u?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),l=0;4>l;++l)p=t[l],i=2>l||2===l&&/%$/.test(p),t[l]=a(p,[o,h,c,t[2]][l])+(i?n:0);return t[3]>t[2]&&(t[3]=t[2]),r(d)&&2*d<t[2]&&0<d&&(t[3]=t[2]-2*d),t},t.getStartAndEndRadians=function(t,e){return t=r(t)?t:0,e=r(e)&&e>t&&360>e-t?e:t+360,{start:o*(t+-90),end:o*(e+-90)}}}(n||(n={})),n}
1),K(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=t.setAnimation,r=i.addEvent,s=i.defined;t=i.extend;var a=i.isNumber,h=i.pick,l=i.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 n(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=this.connectorShapes,n=e.connectorShape;return i[n]&&(n=i[n]),n.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=h(this.name,"Slice");var i=function(t){e.slice("select"===t.type)};return r(this,"select",i),r(this,"unselect",i),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var i=this,n=this.series,o=n.chart,r=n.options.ignoreHiddenPoint;e=h(e,r),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,n.options.data[n.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](t)}),this.legendItem&&o.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),r&&(n.isDirty=!0),e&&o.redraw())},e.prototype.slice=function(t,e,i){var n=this.series;o(i,n.chart),h(e,!0),this.sliced=this.options.sliced=s(t)?t:!this.sliced,n.options.data[n.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,i){var n=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*n.x-e.x,2*n.y-e.y,n.x,n.y]:["L",n.x,n.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,i){e=e.touchingSliceAt;var n=this.series,o=n.center[0],r=n.chart.plotWidth,s=n.chart.plotLeft;n=t.alignment;var a=this.shapeArgs.r;return i=l(i.crookDistance,1),i=["L",r="left"===n?o+a+(r+s-o-a)*(1-i):s+(o-a)*i,t.y],o=!0,("left"===n?r>t.x||r<e.x:r<t.x||r>e.x)&&(o=!1),t=[["M",t.x,t.y]],o&&t.push(i),t.push(["L",e.x,e.y]),t}}}),e}),K(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Series/Pie/PiePoint.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],function(t,e,i,n,o,r,s,a,h){var l=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),c=t.getStartAndEndRadians;i=i.noop;var d=h.clamp,p=h.extend,u=h.fireEvent,f=h.merge,g=h.pick,m=h.relativeLength;return h=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 l(e,t),e.prototype.animate=function(t){var e=this,i=e.points,n=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,o=t.shapeArgs;i&&o&&(i.attr({r:g(t.startR,e.center&&e.center[3]/2),start:n,end:n}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var n=this.center[0],o=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(n,o,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.arc(n,o,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;
1this.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,i){var n=this.center,o=this.radii?this.radii[i.index]||0:n[2]/2;return t=Math.asin(d((t-n[1])/(o+i.labelDistance),-1,1)),n[0]+(e?-1:1)*Math.cos(t)*(o+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,i,n,o=this,r=o.chart,s=r.renderer,a=o.options.shadow;this.drawEmpty(),!a||o.shadowGroup||r.styledMode||(o.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(o.group)),o.points.forEach(function(h){var l={};if(e=h.graphic,!h.isNull&&e){var c=void 0;n=h.shapeArgs,t=h.getTranslate(),r.styledMode||(c=h.shadowGroup,a&&!c&&(c=h.shadowGroup=s.g("shadow").add(o.shadowGroup)),c&&c.attr(t),i=o.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(e.setRadialReference(o.center).attr(n).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(o.center),r.styledMode||f(!0,l,i),f(!0,l,n,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},e.prototype.translate=function(t){this.generatePoints();var e=this.options,i=e.slicedOffset,n=i+(e.borderWidth||0),o=c(e.startAngle,e.endAngle),r=this.startAngleRad=o.start;o=(this.endAngleRad=o.end)-r;var s=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var h,l=s.length,d=0;for(t||(this.center=t=this.getCenter()),h=0;h<l;h++){var p=s[h],f=r+d*o;!p.isValid()||e&&!p.visible||(d+=p.percentage/100);var y=r+d*o,v={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*f)/1e3,end:Math.round(1e3*y)/1e3};p.shapeType="arc",p.shapeArgs=v,p.labelDistance=g(p.options.dataLabels&&p.options.dataLabels.distance,a),p.labelDistance=m(p.labelDistance,v.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,p.labelDistance),(y=(y+f)/2)>1.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI),p.slicedTranslation={translateX:Math.round(Math.cos(y)*i),translateY:Math.round(Math.sin(y)*i)},v=Math.cos(y)*t[2]/2;var x=Math.sin(y)*t[2]/2;p.tooltipPos=[t[0]+.7*v,t[1]+.7*x],p.half=y<-Math.PI/2||y>Math.PI/2?1:0,p.angle=y,f=Math.min(n,p.labelDistance/5),p.labelPosition={natural:{x:t[0]+v+Math.cos(y)*p.labelDistance,y:t[1]+x+Math.sin(y)*p.labelDistance},final:{},alignment:0>p.labelDistance?"center":p.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(y)*f,y:t[1]+x+Math.sin(y)*f},touchingSliceAt:{x:t[0]+v,y:t[1]+x}}}}u(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,i=e.length,n=this.options.ignoreHiddenPoint,o=0;for(t=0;t<i;t++){var r=e[t];!r.isValid()||n&&!r.visible||(o+=r.y)}for(this.total=o,t=0;t<i;t++)(r=e[t]).percentage=0<o&&(r.visible||!n)?r.y/o*100:0,r.total=o},e.defaultOptions=f(r.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}(r),p(h.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:n.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:i,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:o,requireSorting:!1,searchPoint:i,trackerGroups:["group","dataLabelsGroup"]}),s.registerSeriesType("pie",h),h}),K(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,
1i,n,o){var r,s=e.noop,a=i.distribute,h=n.series,l=o.arrayMax,c=o.clamp,d=o.defined,p=o.merge,u=o.pick,f=o.relativeLength;return function(e){function i(){var t,e,i,n,o,r,s,c,f,g,m,y,v=this,x=v.data,b=v.chart,w=v.options.dataLabels||{},k=w.connectorPadding,S=b.plotWidth,M=b.plotHeight,P=b.plotLeft,O=Math.round(b.chartWidth/3),L=v.center,j=L[2]/2,R=L[1],z=[[],[]],W=[0,0,0,0],Y=v.dataLabelPositioners;v.visible&&(w.enabled||v._hasPointLabels)&&(x.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),h.prototype.drawDataLabels.apply(v),x.forEach(function(t){t.dataLabel&&(t.visible?(z[t.half].push(t),t.dataLabel._pos=null,!d(w.style.width)&&!d(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>O&&(t.dataLabel.css({width:Math.round(.7*O)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),z.forEach(function(e,i){var h,l=e.length,p=[];if(l){if(v.sortByAngle(e,i-.5),0<v.maxLabelDistance){var x=Math.max(0,R-j-v.maxLabelDistance),O=Math.min(R+j+v.maxLabelDistance,b.plotHeight);e.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,R-j-t.labelDistance),t.bottom=Math.min(R+j+t.labelDistance,b.plotHeight),h=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+h/2,size:h,rank:t.y},p.push(t.distributeBox))}),a(p,x=O+h-x,x/5)}for(m=0;m<l;m++){if(t=e[m],r=t.labelPosition,n=t.dataLabel,g=!1===t.visible?"hidden":"inherit",f=x=r.natural.y,p&&d(t.distributeBox)&&(void 0===t.distributeBox.pos?g="hidden":(s=t.distributeBox.size,f=Y.radialDistributionY(t))),delete t.positionIndex,w.justify)c=Y.justify(t,j,L);else switch(w.alignTo){case"connectors":c=Y.alignToConnectors(e,i,S,P);break;case"plotEdges":c=Y.alignToPlotEdges(n,i,S,P);break;default:c=Y.radialDistributionX(v,t,f,x)}n._attr={visibility:g,align:r.alignment},y=t.options.dataLabels||{},n._pos={x:c+u(y.x,w.x)+({left:k,right:-k}[r.alignment]||0),y:f+u(y.y,w.y)-10},r.final.x=c,r.final.y=f,u(w.crop,!0)&&(o=n.getBBox().width,x=null,c-o<k&&1===i?(x=Math.round(o-c+k),W[3]=Math.max(x,W[3])):c+o>S-k&&0===i&&(x=Math.round(c+o-S+k),W[1]=Math.max(x,W[1])),0>f-s/2?W[0]=Math.max(Math.round(s/2-f),W[0]):f+s/2>M&&(W[2]=Math.max(Math.round(f+s/2-M),W[2])),n.sideOverflow=x)}}}),0===l(W)||this.verifyDataLabelOverflow(W))&&(this.placeDataLabels(),this.points.forEach(function(t){var o;y=p(w,t.options.dataLabels),(e=u(y.connectorWidth,1))&&(i=t.connector,(n=t.dataLabel)&&n._pos&&t.visible&&0<t.labelDistance?(g=n._attr.visibility,(o=!i)&&(t.connector=i=b.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(v.dataLabelsGroup),b.styledMode||i.attr({"stroke-width":e,stroke:y.connectorColor||t.color||"#666666"})),i[o?"attr":"animate"]({d:t.getConnectorPath()}),i.attr("visibility",g)):i&&(t.connector=i.destroy()))}))}function n(){this.points.forEach(function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox},this)}function o(t){var e=this.center,i=this.options,n=i.center,o=i.minSize||80,r=null!==i.size;if(!r){if(null!==n[0])var s=Math.max(e[2]-Math.max(t[1],t[3]),o);else s=Math.max(e[2]-t[1]-t[3],o),e[0]+=(t[3]-t[1])/2;null!==n[1]?s=c(s,o,e[2]-Math.max(t[0],t[2])):(s=c(s,o,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(i.thickness?Math.max(0,s-2*i.thickness):Math.max(0,f(i.innerSize||0,s)),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}var r=[],g={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,n){return t.getX(i<e.top+2||i>e.bottom-2?n:i,e.half,e)}
1,justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,n){return t=t.getBBox().width,e?t+n:i-t-n},alignToConnectors:function(t,e,i,n){var o,r=0;return t.forEach(function(t){(o=t.dataLabel.getBBox().width)>r&&(r=o)}),e?r+n:i-r-n}};e.compose=function(e){t.compose(h),-1===r.indexOf(e)&&(r.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=s,e.drawDataLabels=i,e.placeDataLabels=n,e.verifyDataLabelOverflow=o)}}(r||(r={})),r}),K(e,"Extensions/OverlappingDataLabels.js",[e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(t,e){function C(t,e){var i=!1;if(t){var o=t.newOpacity;t.oldOpacity!==o&&(t.alignAttr&&t.placed?(t[o?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,function(){e.styledMode||t.css({pointerEvents:o?"auto":"none"})}),n(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0}return i}var i=e.addEvent,n=e.fireEvent,o=e.isArray,r=e.isNumber,s=e.objectEach,a=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&&e.push(t.label)})})}),(this.series||[]).forEach(function(i){var n=i.options.dataLabels;i.visible&&(!1!==n.enabled||i._hasPointLabels)&&(n=function(i){return i.forEach(function(i){i.visible&&(o(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[]).forEach(function(n){var o=n.options;n.labelrank=a(o.labelrank,i.labelrank,i.shapeArgs&&i.shapeArgs.height),o.allowOverlap?(n.oldOpacity=n.opacity,n.newOpacity=1,C(n,t)):e.push(n)})})},n(i.nodes||[]),n(i.points))}),this.hideOverlappingLabels(e)}),t.prototype.hideOverlappingLabels=function(t){var e,i,o,s=this,a=t.length,h=s.renderer,l=!1,c=function(t){var e,i,n=t.box?0:t.padding||0,o=e=0;if(t&&(!t.alignAttr||t.placed)){var s=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=h.fontMetrics(null,t.element).h);var l=t.width-2*n;return(i={left:"0",center:"0.5",right:"1"}[t.alignValue])?o=+i*l:r(t.x)&&Math.round(t.x)!==t.translateX&&(o=t.x-t.translateX),{x:s.x+(a.translateX||0)+n-(o||0),y:s.y+(a.translateY||0)+n-e,width:t.width-2*n,height:t.height-2*n}}};for(i=0;i<a;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=c(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),i=0;i<a;i++){var d=(c=t[i])&&c.absoluteBox;for(e=i+1;e<a;++e){var p=(o=t[e])&&o.absoluteBox;!d||!p||c===o||0===c.newOpacity||0===o.newOpacity||"hidden"===c.visibility||"hidden"===o.visibility||p.x>=d.x+d.width||p.x+p.width<=d.x||p.y>=d.y+d.height||p.y+p.height<=d.y||((c.labelrank<o.labelrank?c:o).newOpacity=0)}}t.forEach(function(t){C(t,s)&&(l=!0)}),l&&n(s,"afterHideAllOverlappingLabels")}}),K(e,"Core/Responsive.js",[e["Core/Utilities.js"]],function(t){var e,i=t.extend,n=t.find,o=t.isArray,r=t.isObject,s=t.merge,a=t.objectEach,h=t.pick,l=t.splat,c=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),i(t.prototype,d.prototype)),t};var d=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,n,s,h){var c;a(i,function(i,a){if(!h&&-1<e.collectionsWithUpdate.indexOf(a)&&n[a])for(i=l(i),s[a]=[],c=0;c<Math.max(i.length,n[a].length);c++)n[a][c]&&(void 0===i[c]?s[a][c]=n[a][c]:(s[a][c]={},t(i[c],n[a][c],s[a][c],h+1)));else r(i)?(s[a]=o(i)?[]:{},t(i,n[a]||{},s[a],h+1)):s[a]=void 0===n[a]?null:n[a]})}(t,this.options,i,0),i},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=h(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=h(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=h(i.minWidth,0)&&this.chartHeight>=h(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var i=this,o=this.options.responsive,r=this.currentResponsive,a=[];
1!e&&o&&o.rules&&o.rules.forEach(function(t){void 0===t._id&&(t._id=c()),i.matchResponsiveRule(t,a)},this),e=s.apply(void 0,a.map(function(t){return n((o||{}).rules||[],function(e){return e._id===t})}).map(function(t){return t&&t.chartOptions})),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(r&&r.ruleIds)&&(r&&this.update(r.undoOptions,t,!0),a?((r=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:r},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e}),K(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/DefaultOptions.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/FormatUtilities.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Renderer/HTML/HTMLRenderer.js"],e["Core/Axis/Axis.js"],e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/MSPointer.js"],e["Core/Legend/Legend.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnSeries.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieSeries.js"],e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],function(t,e,i,n,o,r,s,a,h,l,c,d,p,u,f,g,m,y,v,x,b,w,k,S,M,P,O,L,j,R,z,W,Y){return t.animate=o.animate,t.animObject=o.animObject,t.getDeferredAnimation=o.getDeferredAnimation,t.setAnimation=o.setAnimation,t.stop=o.stop,t.timers=n.timers,t.AST=r,t.Axis=p,t.Chart=k,t.chart=k.chart,t.Fx=n,t.Legend=w,t.PlotLineOrBand=g,t.Point=v,t.Pointer=b.isRequired()?b:x,t.Series=S,t.SVGElement=h,t.SVGRenderer=l,t.Tick=m,t.Time=Y,t.Tooltip=y,t.Color=W,t.color=W.parse,d.compose(l),c.compose(h),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=s.dateFormat,t.format=s.format,t.numberFormat=s.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=a.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=M.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,O.compose(P),R.compose(S),u.compose(p),f.compose(p),j.compose(L),g.compose(p),z.compose(k),t}),e["masters/highcharts.src.js"]._modules=e,e["masters/highcharts.src.js"]},t.exports?(r.default=r,t.exports=o.document?r(o):r):void 0===(n=function(){return r(o)}.call(e,i,e,t))||(t.exports=n)},28425(t,e,i){var n,o,r;r=function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Extensions/Annotations/Mixins/EventEmitterMixin.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(t,e){var i=e.addEvent,n=e.fireEvent,o=e.objectEach,r=e.pick,s=e.removeEvent;return{addEvents:function(){var e=this,r=function(n){i(n,t.isTouchDevice?"touchstart":"mousedown",function(t){e.onMouseDown(t)},{passive:!1})};
1if(r(this.graphic.element),(e.labels||[]).forEach(function(t){t.options.useHTML&&t.graphic.text&&r(t.graphic.text.element)}),o(e.options.events,function(t,n){var o=function(i){"click"===n&&e.cancelClick||t.call(e,e.chart.pointer.normalize(i),e.target)};-1===(e.nonDOMEvents||[]).indexOf(n)?e.graphic.on(n,o):i(e,n,o,{passive:!1})}),e.options.draggable&&(i(e,"drag",e.onDrag),!e.graphic.renderer.styledMode)){var s={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[e.options.draggable]};e.graphic.css(s),(e.labels||[]).forEach(function(t){t.options.useHTML&&t.graphic.text&&t.graphic.text.css(s)})}e.isUpdating||n(e,"add")},removeDocEvents:function(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())},onMouseDown:function(e){var o=this,s=o.chart.pointer;if(e.preventDefault&&e.preventDefault(),2!==e.button){var a=(e=s.normalize(e)).chartX,h=e.chartY;o.cancelClick=!1,o.chart.hasDraggedAnnotation=!0,o.removeDrag=i(t.doc,t.isTouchDevice?"touchmove":"mousemove",function(t){o.hasDragged=!0,(t=s.normalize(t)).prevChartX=a,t.prevChartY=h,n(o,"drag",t),a=t.chartX,h=t.chartY},t.isTouchDevice?{passive:!1}:void 0),o.removeMouseUp=i(t.doc,t.isTouchDevice?"touchend":"mouseup",function(t){var e=r(o.target&&o.target.annotation,o.target);e&&(e.cancelClick=o.hasDragged),o.cancelClick=o.hasDragged,o.hasDragged=!1,o.chart.hasDraggedAnnotation=!1,n(r(e,o),"afterUpdate"),o.onMouseUp(t)},t.isTouchDevice?{passive:!1}:void 0)}},onMouseUp:function(t){var e=this.chart;t=this.target||this;var i=e.options.annotations;e=e.annotations.indexOf(t),this.removeDocEvents(),i[e]=t.options},onDrag:function(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){var e=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(e.y=0),"y"===this.options.draggable&&(e.x=0),this.points.length?this.translate(e.x,e.y):(this.shapes.forEach(function(t){t.translate(e.x,e.y)}),this.labels.forEach(function(t){t.translate(e.x,e.y)})),this.redraw(!1)}},mouseMoveToRadians:function(t,e,i){var n=t.prevChartY-i,o=t.prevChartX-e;return i=t.chartY-i,t=t.chartX-e,this.chart.inverted&&(e=o,o=n,n=e,e=t,t=i,i=e),Math.atan2(i,t)-Math.atan2(n,o)},mouseMoveToTranslation:function(t){var e=t.chartX-t.prevChartX;if(t=t.chartY-t.prevChartY,this.chart.inverted){var i=t;t=e,e=i}return{x:e,y:t}},mouseMoveToScale:function(t,e,i){return e=(t.chartX-e||1)/(t.prevChartX-e||1),t=(t.chartY-i||1)/(t.prevChartY-i||1),this.chart.inverted&&(i=t,t=e,e=i),{x:e,y:t}},destroy:function(){this.removeDocEvents(),s(this),this.hcEvents=null}}}),e(t,"Extensions/Annotations/ControlPoint.js",[t["Core/Utilities.js"],t["Extensions/Annotations/Mixins/EventEmitterMixin.js"]],function(t,e){var i=t.merge,n=t.pick;return function(){function t(t,i,o,r){this.addEvents=e.addEvents,this.graphic=void 0,this.mouseMoveToRadians=e.mouseMoveToRadians,this.mouseMoveToScale=e.mouseMoveToScale,this.mouseMoveToTranslation=e.mouseMoveToTranslation,this.onDrag=e.onDrag,this.onMouseDown=e.onMouseDown,this.onMouseUp=e.onMouseUp,this.removeDocEvents=e.removeDocEvents,this.nonDOMEvents=["drag"],this.chart=t,this.target=i,this.options=o,this.index=n(o.index,r)}return t.prototype.setVisibility=function(t){this.graphic[t?"show":"hide"](),this.options.visible=t},t.prototype.render=function(){var t=this.chart,e=this.options;this.graphic=t.renderer.symbol(e.symbol,0,0,e.width,e.height).add(t.controlPointsGroup).css(e.style),this.setVisibility(e.visible),this.addEvents()},t.prototype.redraw=function(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target))},t.prototype.destroy=function(){e.destroy.call(this),this.graphic&&(this.graphic=this.graphic.destroy()),this.options=this.target=this.chart=null},t.prototype.update=function(t){var e=this.chart,n=this.target,o=this.index;t=i(!0,this.options,t),this.destroy(),this.constructor(e,n,t,o),this.render(e.controlPointsGroup),this.redraw()},t}()}),e(t,"Extensions/Annotations/MockPoint.js",[t["Core/Series/Series.js"],t["Core/Utilities.js"],t["Core/Axis/Axis.js"]],function(t,e,
1i){var n=e.defined,o=e.fireEvent;return function(){function e(e,i,n){this.y=this.x=this.ttBelow=this.plotY=this.plotX=this.negative=this.isInside=void 0,this.mock=!0,this.series={visible:!0,chart:e,getPlotBox:t.prototype.getPlotBox},this.target=i||null,this.options=n,this.applyOptions(this.getOptions())}return e.fromPoint=function(t){return new e(t.series.chart,null,{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis})},e.pointToPixels=function(t,e){var i=t.series,n=i.chart,o=t.plotX,r=t.plotY;return n.inverted&&(t.mock?(o=t.plotY,r=t.plotX):(o=n.plotWidth-t.plotY,r=n.plotHeight-t.plotX)),i&&!e&&(o+=(t=i.getPlotBox()).translateX,r+=t.translateY),{x:o,y:r}},e.pointToOptions=function(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}},e.prototype.hasDynamicOptions=function(){return"function"==typeof this.options},e.prototype.getOptions=function(){return this.hasDynamicOptions()?this.options(this.target):this.options},e.prototype.applyOptions=function(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()},e.prototype.setAxis=function(t,e){t=t[e+="Axis"];var o=this.series.chart;this.series[e]=t instanceof i?t:n(t)?o[e][t]||o.get(t):null},e.prototype.toAnchor=function(){var t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t},e.prototype.getLabelConfig=function(){return{x:this.x,y:this.y,point:this}},e.prototype.isInsidePlot=function(){var t=this.plotX,e=this.plotY,i=this.series.xAxis,r=this.series.yAxis,s={x:t,y:e,isInsidePlot:!0};return i&&(s.isInsidePlot=n(t)&&0<=t&&t<=i.len),r&&(s.isInsidePlot=s.isInsidePlot&&n(e)&&0<=e&&e<=r.len),o(this.series.chart,"afterIsInsidePlot",s),s.isInsidePlot},e.prototype.refresh=function(){var t=this.series,e=t.xAxis;t=t.yAxis;var i=this.getOptions();e?(this.x=i.x,this.plotX=e.toPixels(i.x,!0)):(this.x=void 0,this.plotX=i.x),t?(this.y=i.y,this.plotY=t.toPixels(i.y,!0)):(this.y=null,this.plotY=i.y),this.isInside=this.isInsidePlot()},e.prototype.translate=function(t,e,i,n){this.hasDynamicOptions()||(this.plotX+=i,this.plotY+=n,this.refreshOptions())},e.prototype.scale=function(t,e,i,n){if(!this.hasDynamicOptions()){var o=this.plotY*n;this.plotX=(1-i)*t+this.plotX*i,this.plotY=(1-n)*e+o,this.refreshOptions()}},e.prototype.rotate=function(t,e,i){if(!this.hasDynamicOptions()){var n=Math.cos(i);i=Math.sin(i);var o=this.plotX,r=this.plotY;o-=t,r-=e,this.plotX=o*n-r*i+t,this.plotY=o*i+r*n+e,this.refreshOptions()}},e.prototype.refreshOptions=function(){var t=this.series,e=t.xAxis;t=t.yAxis,this.x=this.options.x=e?this.options.x=e.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=t?t.toValue(this.plotY,!0):this.plotY},e}()}),e(t,"Extensions/Annotations/Mixins/ControllableMixin.js",[t["Extensions/Annotations/ControlPoint.js"],t["Extensions/Annotations/MockPoint.js"],t["Core/Tooltip.js"],t["Core/Utilities.js"]],function(t,e,i,n){var o=n.isObject,r=n.isString,s=n.merge,a=n.splat;return{init:function(t,e,i){this.annotation=t,this.chart=t.chart,this.options=e,this.points=[],this.controlPoints=[],this.index=i,this.linkPoints(),this.addControlPoints()},attr:function(){this.graphic.attr.apply(this.graphic,arguments)},getPointsOptions:function(){var t=this.options;return t.points||t.point&&a(t.point)},attrsFromOptions:function(t){var e,i=this.constructor.attrsMap,n={},o=this.chart.styledMode;for(e in t){var r=i[e];!r||o&&-1!==["fill","stroke","stroke-width"].indexOf(r)||(n[r]=t[e])}return n},anchor:function(t){var e=t.series.getPlotBox(),n=t.series.chart,o=t.mock?t.toAnchor():i.prototype.getAnchor.call({chart:t.series.chart},t);return{relativePosition:o={x:o[0]+(this.options.x||0),y:o[1]+(this.options.y||0),height:o[2]||0,width:o[3]||0},absolutePosition:s(o,{x:o.x+(t.mock?e.translateX:n.plotLeft),y:o.y+(t.mock?e.translateY:n.plotTop)})}},point:function(t,i){return t&&t.series?t:(i&&null!==i.series||(o(t)?i=new e(this.chart,this,t):r(t)?i=this.chart.get(t)||null:"function"==typeof t&&(i=(i=t.call(i,this)).series?i:new e(this.chart,this,t))),i)},linkPoints:function(){var t,e=this.getPointsOptions(),i=this.points,n=e&&e.length||0;for(t=0;t<n;t++){var o=this.point(e[t],i[t]);if(!o)return void(i.length=0);o.mock&&o.refresh(),i[t]=o}return i},addControlPoints:function(){var e=this.options.controlPoints;
1(e||[]).forEach(function(i,n){(i=s(this.options.controlPointOptions,i)).index||(i.index=n),e[n]=i,this.controlPoints.push(new t(this.chart,this,i))},this)},shouldBeDrawn:function(){return!!this.points.length},render:function(t){this.controlPoints.forEach(function(t){t.render()})},redraw:function(t){this.controlPoints.forEach(function(e){e.redraw(t)})},transform:function(t,e,i,n,o){if(this.chart.inverted){var r=e;e=i,i=r}this.points.forEach(function(r,s){this.transformPoint(t,e,i,n,o,s)},this)},transformPoint:function(t,i,n,o,r,s){var a=this.points[s];a.mock||(a=this.points[s]=e.fromPoint(a)),a[t](i,n,o,r)},translate:function(t,e){this.transform("translate",null,null,t,e)},translatePoint:function(t,e,i){this.transformPoint("translate",null,null,t,e,i)},translateShape:function(t,e,i){var n=this.annotation.chart,o=this.annotation.userOptions,r=n.annotations.indexOf(this.annotation);n=n.options.annotations[r],this.translatePoint(t,e,0),i&&this.translatePoint(t,e,1),n[this.collection][this.index].point=this.options.point,o[this.collection][this.index].point=this.options.point},rotate:function(t,e,i){this.transform("rotate",t,e,i)},scale:function(t,e,i,n){this.transform("scale",t,e,i,n)},setControlPointsVisibility:function(t){this.controlPoints.forEach(function(e){e.setVisibility(t)})},destroy:function(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.controlPoints.forEach(function(t){t.destroy()}),this.options=this.controlPoints=this.points=this.chart=null,this.annotation&&(this.annotation=null)},update:function(t){var e=this.annotation;t=s(!0,this.options,t);var i=this.graphic.parentGroup;this.destroy(),this.constructor(e,t,this.index),this.render(i),this.redraw()}}}),e(t,"Extensions/Annotations/Mixins/MarkerMixin.js",[t["Core/Chart/Chart.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(t,e,i){function n(t){return function(e){this.attr(t,"url(#"+e+")")}}var o=i.addEvent,r=i.defined,s=i.merge,a=i.uniqueKey,h={arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}};return e.prototype.addMarker=function(t,e){var i={attributes:{id:t}},n={stroke:e.color||"none",fill:e.color||"rgba(0, 0, 0, 0.75)"};return i.children=e.children&&e.children.map(function(t){return s(n,t)}),e=s(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},e,i),(e=this.definition(e)).id=t,e},e={markerEndSetter:n("marker-end"),markerStartSetter:n("marker-start"),setItemMarkers:function(t){var e=t.options,i=t.chart,n=i.options.defs,o=e.fill,h=r(o)&&"none"!==o?o:e.stroke;["markerStart","markerEnd"].forEach(function(o){var r,l=e[o];if(l){for(r in n){var c=n[r];if((l===(c.attributes&&c.attributes.id)||l===c.id)&&"marker"===c.tagName){var d=c;break}}d&&(l=t[o]=i.renderer.addMarker((e.id||a())+"-"+l,s(d,{color:h})),t.attr(o,l.getAttribute("id")))}})}},o(t,"afterGetContainer",function(){this.options.defs=s(h,this.options.defs||{})}),e}),e(t,"Extensions/Annotations/Controllables/ControllablePath.js",[t["Extensions/Annotations/Mixins/ControllableMixin.js"],t["Core/Globals.js"],t["Extensions/Annotations/Mixins/MarkerMixin.js"],t["Core/Utilities.js"]],function(t,e,i,n){var o=n.extend,r="rgba(192,192,192,"+(e.svg?1e-4:.002)+")";return function(){function e(e,n,o){this.addControlPoints=t.addControlPoints,this.anchor=t.anchor,this.attr=t.attr,this.attrsFromOptions=t.attrsFromOptions,this.destroy=t.destroy,this.getPointsOptions=t.getPointsOptions,this.init=t.init,this.linkPoints=t.linkPoints,this.point=t.point,this.rotate=t.rotate,this.scale=t.scale,this.setControlPointsVisibility=t.setControlPointsVisibility,this.setMarkers=i.setItemMarkers,this.transform=t.transform,this.transformPoint=t.transformPoint,this.translate=t.translate,this.translatePoint=t.translatePoint,this.translateShape=t.translateShape,this.update=t.update,this.type="path",this.init(e,n,o),this.collection="shapes"}return e.prototype.toD=function(){var t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;var e=(t=this.points).length,i=e,n=t[0],o=i&&this.anchor(n).absolutePosition,r=0,s=[];if(o)for(s.push(["M",o.x,o.y]);++r<e&&i;)i=(n=t[r]).command||"L",o=this.anchor(n).absolutePosition,"M"===i||"L"===i?s.push([i,o.x,o.y]):"Z"===i&&s.push([i]),i=n.series.visible;return i?this.chart.renderer.crispLine(s,this.graphic.strokeWidth()):null},e.prototype.shouldBeDrawn=function(){return t.shouldBeDrawn.call(this)||!!this.options.d},e.prototype.render=function(e){var n=this.options,s=this.attrsFromOptions(n);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(s).add(e),n.className&&this.graphic.addClass(n.className),this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(e),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:r,fill:r,"stroke-width":this.graphic.strokeWidth()+2*n.snap}),t.render.call(this),o(this.graphic,{markerStartSetter:i.markerStartSetter,markerEndSetter:i.markerEndSetter}),this.setMarkers(this)},e.prototype.redraw=function(e){var i=this.toD(),n=e?"animate":"attr";i?(this.graphic[n]({d:i}),this.tracker[n]({d:i})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!i,t.redraw.call(this,e)},e.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"},e}()}),e(t,"Extensions/Annotations/Controllables/ControllableRect.js",[t["Extensions/Annotations/Mixins/ControllableMixin.js"],t["Extensions/Annotations/Controllables/ControllablePath.js"],t["Core/Utilities.js"]],function(t,e,
1i){var n=i.merge;return function(){function i(e,i,n){this.addControlPoints=t.addControlPoints,this.anchor=t.anchor,this.attr=t.attr,this.attrsFromOptions=t.attrsFromOptions,this.destroy=t.destroy,this.getPointsOptions=t.getPointsOptions,this.init=t.init,this.linkPoints=t.linkPoints,this.point=t.point,this.rotate=t.rotate,this.scale=t.scale,this.setControlPointsVisibility=t.setControlPointsVisibility,this.shouldBeDrawn=t.shouldBeDrawn,this.transform=t.transform,this.transformPoint=t.transformPoint,this.translatePoint=t.translatePoint,this.translateShape=t.translateShape,this.update=t.update,this.type="rect",this.translate=t.translateShape,this.init(e,i,n),this.collection="shapes"}return i.prototype.render=function(e){var i=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(i).add(e),t.render.call(this)},i.prototype.redraw=function(e){var i=this.anchor(this.points[0]).absolutePosition;i?this.graphic[e?"animate":"attr"]({x:i.x,y:i.y,width:this.options.width,height:this.options.height}):this.attr({x:0,y:-9e9}),this.graphic.placed=!!i,t.redraw.call(this,e)},i.attrsMap=n(e.attrsMap,{width:"width",height:"height"}),i}()}),e(t,"Extensions/Annotations/Controllables/ControllableCircle.js",[t["Extensions/Annotations/Mixins/ControllableMixin.js"],t["Extensions/Annotations/Controllables/ControllablePath.js"],t["Core/Utilities.js"]],function(t,e,i){var n=i.merge;return function(){function i(e,i,n){this.addControlPoints=t.addControlPoints,this.anchor=t.anchor,this.attr=t.attr,this.attrsFromOptions=t.attrsFromOptions,this.destroy=t.destroy,this.getPointsOptions=t.getPointsOptions,this.init=t.init,this.linkPoints=t.linkPoints,this.point=t.point,this.rotate=t.rotate,this.scale=t.scale,this.setControlPointsVisibility=t.setControlPointsVisibility,this.shouldBeDrawn=t.shouldBeDrawn,this.transform=t.transform,this.transformPoint=t.transformPoint,this.translatePoint=t.translatePoint,this.translateShape=t.translateShape,this.update=t.update,this.type="circle",this.translate=t.translateShape,this.init(e,i,n),this.collection="shapes"}return i.prototype.render=function(e){var i=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(i).add(e),t.render.call(this)},i.prototype.redraw=function(e){var i=this.anchor(this.points[0]).absolutePosition;i?this.graphic[e?"animate":"attr"]({x:i.x,y:i.y,r:this.options.r}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!i,t.redraw.call(this,e)},i.prototype.setRadius=function(t){this.options.r=t},i.attrsMap=n(e.attrsMap,{r:"r"}),i}()}),e(t,"Extensions/Annotations/Controllables/ControllableEllipse.js",[t["Extensions/Annotations/Mixins/ControllableMixin.js"],t["Extensions/Annotations/Controllables/ControllablePath.js"],t["Core/Utilities.js"]],function(t,e,i){var n=i.merge,o=i.defined;return function(){function i(e,i,n){this.addControlPoints=t.addControlPoints,this.anchor=t.anchor,this.attr=t.attr,this.attrsFromOptions=t.attrsFromOptions,this.destroy=t.destroy,this.getPointsOptions=t.getPointsOptions,this.linkPoints=t.linkPoints,this.point=t.point,this.scale=t.scale,this.setControlPointsVisibility=t.setControlPointsVisibility,this.shouldBeDrawn=t.shouldBeDrawn,this.transform=t.transform,this.translatePoint=t.translatePoint,this.transformPoint=t.transformPoint,this.type="ellipse",this.init(e,i,n),this.collection="shapes"}return i.prototype.init=function(e,i,n){o(i.yAxis)&&i.points.forEach(function(t){t.yAxis=i.yAxis}),o(i.xAxis)&&i.points.forEach(function(t){t.xAxis=i.xAxis}),t.init.call(this,e,i,n)},i.prototype.render=function(e){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(e),t.render.call(this)},i.prototype.translate=function(e,i){t.translateShape.call(this,e,i,!0)},i.prototype.getDistanceFromLine=function(t,e,i,n){return Math.abs((e.y-t.y)*i-(e.x-t.x)*n+e.x*t.y-e.y*t.x)/Math.sqrt((e.y-t.y)*(e.y-t.y)+(e.x-t.x)*(e.x-t.x))},i.prototype.getAttrs=function(t,e){var i=t.x,n=t.y,o=e.x,r=e.y;e=(i+o)/2,t=(n+r)/2;var s=Math.sqrt((i-o)*(i-o)/4+(n-r)*(n-r)/4);return n=180*Math.atan((r-n)/(o-i))/Math.PI,e<i&&(n+=180),{cx:e,cy:t,rx:s,ry:i=this.getRY(),angle:n}},i.prototype.getRY=function(){var t=this.getYAxis();return o(t)?Math.abs(t.toPixels(this.options.ry)-t.toPixels(0)):this.options.ry},i.prototype.getYAxis=function(){return this.chart.yAxis[this.options.yAxis]},i.prototype.getAbsolutePosition=function(t){return this.anchor(t).absolutePosition},i.prototype.redraw=function(e){var i=this.getAbsolutePosition(this.points[0]),n=this.getAbsolutePosition(this.points[1]);
1n=this.getAttrs(i,n),i?this.graphic[e?"animate":"attr"]({cx:n.cx,cy:n.cy,rx:n.rx,ry:n.ry,rotation:n.angle,rotationOriginX:n.cx,rotationOriginY:n.cy}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!i,t.redraw.call(this,e)},i.prototype.setYRadius=function(t){this.options.ry=t,this.annotation.userOptions.shapes[0].ry=t,this.annotation.options.shapes[0].ry=t},i.attrsMap=n(e.attrsMap,{ry:"ry"}),i}()}),e(t,"Extensions/Annotations/Controllables/ControllableLabel.js",[t["Extensions/Annotations/Mixins/ControllableMixin.js"],t["Core/FormatUtilities.js"],t["Extensions/Annotations/MockPoint.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Tooltip.js"],t["Core/Utilities.js"]],function(t,e,i,n,o,r){var s=e.format;e=n.prototype.symbols;var a=r.extend,h=r.isNumber,l=r.pick;return r=function(){function e(e,i,n){this.addControlPoints=t.addControlPoints,this.attr=t.attr,this.attrsFromOptions=t.attrsFromOptions,this.destroy=t.destroy,this.getPointsOptions=t.getPointsOptions,this.init=t.init,this.linkPoints=t.linkPoints,this.point=t.point,this.rotate=t.rotate,this.scale=t.scale,this.setControlPointsVisibility=t.setControlPointsVisibility,this.shouldBeDrawn=t.shouldBeDrawn,this.transform=t.transform,this.transformPoint=t.transformPoint,this.translateShape=t.translateShape,this.update=t.update,this.init(e,i,n),this.collection="labels"}return e.alignedPosition=function(t,e){var i,n,o=t.align,r=t.verticalAlign,s=(e.x||0)+(t.x||0),a=(e.y||0)+(t.y||0);return"right"===o?i=1:"center"===o&&(i=2),i&&(s+=(e.width-(t.width||0))/i),"bottom"===r?n=1:"middle"===r&&(n=2),n&&(a+=(e.height-(t.height||0))/n),{x:Math.round(s),y:Math.round(a)}},e.justifiedOptions=function(t,e,i,n){var o=i.align,r=i.verticalAlign,s=e.box?0:e.padding||0,a=e.getBBox();e={align:o,verticalAlign:r,x:i.x,y:i.y,width:e.width,height:e.height},i=(n.x||0)-t.plotLeft,n=(n.y||0)-t.plotTop;var h=i+s;return 0>h&&("right"===o?e.align="left":e.x=(e.x||0)-h),(h=i+a.width-s)>t.plotWidth&&("left"===o?e.align="right":e.x=(e.x||0)+t.plotWidth-h),0>(h=n+s)&&("bottom"===r?e.verticalAlign="top":e.y=(e.y||0)-h),(h=n+a.height-s)>t.plotHeight&&("top"===r?e.verticalAlign="bottom":e.y=(e.y||0)+t.plotHeight-h),e},e.prototype.translatePoint=function(e,i){t.translatePoint.call(this,e,i,0)},e.prototype.translate=function(t,e){var i=this.annotation.chart,n=this.annotation.userOptions,o=i.annotations.indexOf(this.annotation);o=i.options.annotations[o],i.inverted&&(i=t,t=e,e=i),this.options.x+=t,this.options.y+=e,o[this.collection][this.index].x=this.options.x,o[this.collection][this.index].y=this.options.y,n[this.collection][this.index].x=this.options.x,n[this.collection][this.index].y=this.options.y},e.prototype.render=function(i){var n=this.options,o=this.attrsFromOptions(n),r=n.style;this.graphic=this.annotation.chart.renderer.label("",0,-9999,n.shape,null,null,n.useHTML,null,"annotation-label").attr(o).add(i),this.annotation.chart.styledMode||("contrast"===r.color&&(r.color=this.annotation.chart.renderer.getContrast(-1<e.shapesWithoutBackground.indexOf(n.shape)?"#FFFFFF":n.backgroundColor)),this.graphic.css(n.style).shadow(n.shadow)),n.className&&this.graphic.addClass(n.className),this.graphic.labelrank=n.labelrank,t.render.call(this)},e.prototype.redraw=function(e){var i=this.options,n=this.text||i.format||i.text,o=this.graphic,r=this.points[0];o.attr({text:n?s(n,r.getLabelConfig(),this.annotation.chart):i.formatter.call(r,this)}),i=this.anchor(r),(n=this.position(i))?(o.alignAttr=n,n.anchorX=i.absolutePosition.x,n.anchorY=i.absolutePosition.y,o[e?"animate":"attr"](n)):o.attr({x:0,y:-9999}),o.placed=!!n,t.redraw.call(this,e)},e.prototype.anchor=function(e){var i=t.anchor.apply(this,arguments),n=this.options.x||0,o=this.options.y||0;return i.absolutePosition.x-=n,i.absolutePosition.y-=o,i.relativePosition.x-=n,i.relativePosition.y-=o,i},e.prototype.position=function(t){var n=this.graphic,r=this.annotation.chart,s=this.points[0],h=this.options,c=t.absolutePosition,d=t.relativePosition,p=s.series.visible&&i.prototype.isInsidePlot.call(s);t=void 0===(t=n.width)?0:t;var u=n.height;if(u=void 0===u?0:u,p){if(h.distance)var f=o.prototype.getPosition.call({chart:r,distance:l(h.distance,16)},t,u,{plotX:d.x,plotY:d.y,negative:s.negative,ttBelow:s.ttBelow,h:d.height||d.width});else h.positioner?f=h.positioner.call(this):(s={x:c.x,y:c.y,width:0,height:0},f=e.alignedPosition(a(h,{width:t,height:u}),s),"justify"===this.options.overflow&&(f=e.alignedPosition(e.justifiedOptions(r,n,h,f),s)));h.crop&&(n=f.x-r.plotLeft,h=f.y-r.plotTop,p=r.isInsidePlot(n,h)&&r.isInsidePlot(n+t,h+u))}return p?f:null},e.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"}
1,e.shapesWithoutBackground=["connector"],e}(),e.connector=function(t,e,i,n,o){var r=o&&o.anchorX;o=o&&o.anchorY;var s=i/2;if(h(r)&&h(o)){var a=[["M",r,o]],l=e-o;0>l&&(l=-n-l),l<i&&(s=r<t+i/2?l:i-l),o>e+n?a.push(["L",t+s,e+n]):o<e?a.push(["L",t+s,e]):r<t?a.push(["L",t,e+n/2]):r>t+i&&a.push(["L",t+i,e+n/2])}return a||[]},r}),e(t,"Extensions/Annotations/Controllables/ControllableImage.js",[t["Extensions/Annotations/Controllables/ControllableLabel.js"],t["Extensions/Annotations/Mixins/ControllableMixin.js"]],function(t,e){return function(){function i(t,i,n){this.addControlPoints=e.addControlPoints,this.anchor=e.anchor,this.attr=e.attr,this.attrsFromOptions=e.attrsFromOptions,this.destroy=e.destroy,this.getPointsOptions=e.getPointsOptions,this.init=e.init,this.linkPoints=e.linkPoints,this.point=e.point,this.rotate=e.rotate,this.scale=e.scale,this.setControlPointsVisibility=e.setControlPointsVisibility,this.shouldBeDrawn=e.shouldBeDrawn,this.transform=e.transform,this.transformPoint=e.transformPoint,this.translatePoint=e.translatePoint,this.translateShape=e.translateShape,this.update=e.update,this.type="image",this.translate=e.translateShape,this.init(t,i,n),this.collection="shapes"}return i.prototype.render=function(t){var i=this.attrsFromOptions(this.options),n=this.options;this.graphic=this.annotation.chart.renderer.image(n.src,0,-9e9,n.width,n.height).attr(i).add(t),this.graphic.width=n.width,this.graphic.height=n.height,e.render.call(this)},i.prototype.redraw=function(i){var n=this.anchor(this.points[0]);(n=t.prototype.position.call(this,n))?this.graphic[i?"animate":"attr"]({x:n.x,y:n.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!n,e.redraw.call(this,i)},i.attrsMap={width:"width",height:"height",zIndex:"zIndex"},i}()}),e(t,"Extensions/Annotations/Annotations.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Chart/Chart.js"],t["Extensions/Annotations/Mixins/ControllableMixin.js"],t["Extensions/Annotations/Controllables/ControllableRect.js"],t["Extensions/Annotations/Controllables/ControllableCircle.js"],t["Extensions/Annotations/Controllables/ControllableEllipse.js"],t["Extensions/Annotations/Controllables/ControllablePath.js"],t["Extensions/Annotations/Controllables/ControllableImage.js"],t["Extensions/Annotations/Controllables/ControllableLabel.js"],t["Extensions/Annotations/ControlPoint.js"],t["Extensions/Annotations/Mixins/EventEmitterMixin.js"],t["Core/Globals.js"],t["Extensions/Annotations/MockPoint.js"],t["Core/Pointer.js"],t["Core/Utilities.js"]],function(t,e,i,n,o,r,s,a,h,l,c,d,p,u,f){var g=t.getDeferredAnimation;t=e.prototype;var m=f.addEvent,y=f.defined,v=f.destroyObjectProperties,x=f.erase,b=f.extend,w=f.find,k=f.fireEvent,S=f.merge,M=f.pick,P=f.splat;f=f.wrap;var O=function(){function t(t,e){this.annotation=void 0,this.coll="annotations",this.shapesGroup=this.labelsGroup=this.labelCollector=this.group=this.graphic=this.animationConfig=this.collection=void 0,this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.labels=[],this.shapes=[],this.options=S(this.defaultOptions,e),this.userOptions=e,e=this.getLabelsAndShapesOptions(this.options,e),this.options.labels=e.labels,this.options.shapes=e.shapes,this.init(t,this.options)}return t.prototype.init=function(){var t=this.chart,e=this.options.animation;this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=g(t,e)},t.prototype.getLabelsAndShapesOptions=function(t,e){var i={};return["labels","shapes"].forEach(function(n){t[n]&&(i[n]=e[n]?P(e[n]).map(function(e,i){return S(t[n][i],e)}):t[n])}),i},t.prototype.addShapes=function(){(this.options.shapes||[]).forEach(function(t,e){t=this.initShape(t,e),S(!0,this.options.shapes[e],t.options)},this)},t.prototype.addLabels=function(){(this.options.labels||[]).forEach(function(t,e){t=this.initLabel(t,e),S(!0,this.options.labels[e],t.options)},this)},t.prototype.addClipPaths=function(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))},t.prototype.setClipAxes=function(){var t=this.chart.xAxis,e=this.chart.yAxis,i=(this.options.labels||[]).concat(this.options.shapes||[]).reduce(function(i,n){return n=n&&(n.point||n.points&&n.points[0]),[t[n&&n.xAxis]||i[0],e[n&&n.yAxis]||i[1]]},[]);this.clipXAxis=i[0],this.clipYAxis=i[1]},t.prototype.getClipBox=function(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}},t.prototype.setLabelCollector=function(){var t=this;t.labelCollector=function(){return t.labels.reduce(function(t,e){return e.options.allowOverlap||t.pu
1sh(e.graphic),t},[])},t.chart.labelCollectors.push(t.labelCollector)},t.prototype.setOptions=function(t){this.options=S(this.defaultOptions,t)},t.prototype.redraw=function(t){this.linkPoints(),this.graphic||this.render(),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t),i.redraw.call(this,t)},t.prototype.redrawItems=function(t,e){for(var i=t.length;i--;)this.redrawItem(t[i],e)},t.prototype.renderItems=function(t){for(var e=t.length;e--;)this.renderItem(t[e])},t.prototype.render=function(){var t=this.chart.renderer;this.graphic=t.g("annotation").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add(),this.shapesGroup=t.g("annotation-shapes").add(this.graphic),this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip),this.labelsGroup=t.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic),this.addClipPaths(),this.clipRect&&this.graphic.clip(this.clipRect),this.renderItems(this.shapes),this.renderItems(this.labels),this.addEvents(),i.render.call(this)},t.prototype.setVisibility=function(t){var e=this.options,i=this.chart.navigationBindings;t=M(t,!e.visible),this.graphic.attr("visibility",t?"inherit":"hidden"),t||(this.setControlPointsVisibility(!1),i.activeAnnotation===this&&i.popup&&"annotation-toolbar"===i.popup.formType&&k(i,"closePopup")),e.visible=t},t.prototype.setControlPointsVisibility=function(t){var e=function(e){e.setControlPointsVisibility(t)};i.setControlPointsVisibility.call(this,t),this.shapes.forEach(e),this.labels.forEach(e)},t.prototype.destroy=function(){var t=this.chart,e=function(t){t.destroy()};this.labels.forEach(e),this.shapes.forEach(e),this.clipYAxis=this.clipXAxis=null,x(t.labelCollectors,this.labelCollector),c.destroy.call(this),i.destroy.call(this),v(this,t)},t.prototype.remove=function(){return this.chart.removeAnnotation(this)},t.prototype.update=function(t,e){var i=this.chart,n=this.getLabelsAndShapesOptions(this.userOptions,t),o=i.annotations.indexOf(this);(t=S(!0,this.userOptions,t)).labels=n.labels,t.shapes=n.shapes,this.destroy(),this.constructor(i,t),i.options.annotations[o]=t,this.isUpdating=!0,M(e,!0)&&i.redraw(),k(this,"afterUpdate"),this.isUpdating=!1},t.prototype.initShape=function(e,i){return e=S(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},e),(i=new t.shapesMap[e.type](this,e,i)).itemType="shape",this.shapes.push(i),i},t.prototype.initLabel=function(t,e){return t=S(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),(e=new h(this,t,e)).itemType="label",this.labels.push(e),e},t.prototype.redrawItem=function(t,e){t.linkPoints(),t.shouldBeDrawn()?(t.graphic||this.renderItem(t),t.redraw(M(e,!0)&&t.graphic.placed),t.points.length&&this.adjustVisibility(t)):this.destroyItem(t)},t.prototype.adjustVisibility=function(t){var e=!1,i=t.graphic;t.points.forEach(function(t){!1!==t.series.visible&&!1!==t.visible&&(e=!0)}),e?"hidden"===i.visibility&&i.show():i.hide()},t.prototype.destroyItem=function(t){x(this[t.itemType+"s"],t),t.destroy()},t.prototype.renderItem=function(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)},t.ControlPoint=l,t.MockPoint=p,t.shapesMap={rect:n,circle:o,ellipse:r,path:s,image:a},t.types={},t}();return S(!0,O.prototype,i,c,S(O.prototype,{nonDOMEvents:["add","afterUpdate","drag","remove"],defaultOptions:{visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"#000000",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return y(this.y)?this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"11px",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{symbol:"circle",width:10,height:10,style:{cursor:"pointer",fill:"#ffffff",stroke:"#000000","stroke-width":2},visible:!1,events:{}},events:{},zIndex:6}}
1)),d.extendAnnotation=function(t,e,i,n){e=e||O,b(t.prototype,S(e.prototype,i)),t.prototype.defaultOptions=S(t.prototype.defaultOptions,n||{})},b(t,{initAnnotation:function(t){return t=new(O.types[t.type]||O)(this,t),this.annotations.push(t),t},addAnnotation:function(t,e){return t=this.initAnnotation(t),this.options.annotations.push(t.options),M(e,!0)&&(t.redraw(),t.graphic.attr({opacity:1})),t},removeAnnotation:function(t){var e=this.annotations,i="annotations"===t.coll?t:w(e,function(e){return e.options.id===t});i&&(k(i,"remove"),x(this.options.annotations,i.options),x(e,i),i.destroy())},drawAnnotations:function(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(function(t){t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}}),t.collectionsWithUpdate.push("annotations"),t.collectionsWithInit.annotations=[t.addAnnotation],m(e,"afterInit",function(){this.annotations=[],this.options.annotations||(this.options.annotations=[])}),t.callbacks.push(function(t){t.plotBoxClip=this.renderer.clipRect(this.plotBox),t.controlPointsGroup=t.renderer.g("control-points").attr({zIndex:99}).clip(t.plotBoxClip).add(),t.options.annotations.forEach(function(e,i){if(!t.annotations.some(function(t){return t.options===e})){var n=t.initAnnotation(e);t.options.annotations[i]=n.options}}),t.drawAnnotations(),m(t,"redraw",t.drawAnnotations),m(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),m(t,"exportData",function(e){var i=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,n=!e.dataRows[1].xValues,o=t.options.lang&&t.options.lang.exportData&&t.options.lang.exportData.annotationHeader,r=function(t){if(i){var e=i(t);if(!1!==e)return e}return e=o+" "+t,n?{columnTitle:e,topLevelColumnTitle:e}:e},s=e.dataRows[0].length,a=t.options.exporting&&t.options.exporting.csv&&t.options.exporting.csv.annotations&&t.options.exporting.csv.annotations.itemDelimiter,h=t.options.exporting&&t.options.exporting.csv&&t.options.exporting.csv.annotations&&t.options.exporting.csv.annotations.join;t.annotations.forEach(function(t){t.options.labelOptions.includeInDataExport&&t.labels.forEach(function(t){if(t.options.text){var i=t.options.text;t.points.forEach(function(t){var n=t.x,o=t.series.xAxis?t.series.xAxis.options.index:-1,r=!1;if(-1===o){t=e.dataRows[0].length;for(var l=Array(t),c=0;c<t;++c)l[c]="";l.push(i),l.xValues=[],l.xValues[o]=n,e.dataRows.push(l),r=!0}if(r||e.dataRows.forEach(function(t){!r&&t.xValues&&void 0!==o&&n===t.xValues[o]&&(h&&t.length>s?t[t.length-1]+=a+i:t.push(i),r=!0)}),!r){for(t=e.dataRows[0].length,l=Array(t),c=0;c<t;++c)l[c]="";l[0]=n,l.push(i),l.xValues=[],void 0!==o&&(l.xValues[o]=n),e.dataRows.push(l)}})}})});var l=0;e.dataRows.forEach(function(t){l=Math.max(l,t.length)});for(var c=l-e.dataRows[0].length,d=0;d<c;d++){var p=r(d+1);n?(e.dataRows[0].push(p.topLevelColumnTitle),e.dataRows[1].push(p.columnTitle)):e.dataRows[0].push(p)}})}),f(u.prototype,"onContainerMouseDown",function(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}),d.Annotation=O,O}),e(t,"Core/Chart/ChartNavigationComposition.js",[],function(){var t;return function(t){t.compose=function(t){return t.navigation||(t.navigation=new e(t)),t};var e=function(){function t(t){this.updates=[],this.chart=t}return t.prototype.addUpdate=function(t){this.chart.navigation.updates.push(t)},t.prototype.update=function(t,e){var i=this;this.updates.forEach(function(n){n.call(i.chart,t,e)})},t}();t.Additions=e}(t||(t={})),t}),e(t,"Extensions/Annotations/NavigationBindings.js",[t["Extensions/Annotations/Annotations.js"],t["Core/Chart/Chart.js"],t["Core/Chart/ChartNavigationComposition.js"],t["Core/FormatUtilities.js"],t["Core/Globals.js"],t["Core/DefaultOptions.js"],t["Core/Utilities.js"]],function(t,e,i,n,o,r,s){function a(t){var e=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;m(!0,t.prototype.defaultOptions.events,{click:function(t){var i=this,n=i.chart.navigationBindings,o=n.activeAnnotation;e&&e.call(i,t),o!==i?(n.deselectAnnotation(),n.activeAnnotation=i,i.setControlPointsVisibility(!0),d(n,"showPopup",{annotation:i,formType:"annotation-toolbar",options:n.annotationToFields(i),onSubmit:function(t){var e={};"remove"===t.actionType?(n.activeAnnotation=!1,n.chart.removeAnnotation(i)):(n.fieldsToOptions(t.fields,e),n.deselectAnnotation(),t=e.typeOptions,"measure"===i.options.type&&(t.crosshairY.enabled=0!==t.crosshairY.strokeWidth,t.crosshairX.enabled=0!==t.crosshairX.strokeWidth),i.update(e))}})):d(n,"closePopup"),t.activeAnnotation=!0}})}var h=n.format;n=r.setOptions;var l=s.addEvent,c=s.attr,d=s.fireEvent,p=s.isArray,u=s.isFunction,f=s.isNumber,g=s.isObject,m=s.merge,y=s.objectEach,v=s.pick,x=o.doc,b=o.win,w=function(){function t(t,e){this.selectedButton=this.boundClassNames=void 0,this.chart=t,this.options=e,this.eventsToUnbind=[],this.container=x.getElementsByClassName(this.options.bindingsClassName||"")}return t.prototype.initEvents=function(){var t=this,e=t.chart,i=t.container,n=t.options;t.boundClassNames={},y(n.bindings||{},function(e){t.boundClassNames[e.className]=e}),[].forEach.call(i,function(e){t.eventsToUnbind.push(l(e,"click",function(i){var n=t.getButtonEvents(e,i);n&&-1===n.button.className.indexOf("highcharts-disabled-btn")&&t.bindingsButtonClick(n.button,n.events,i)}))}),y(n.events||{},function(e,i){u(e)&&t.eventsToUnbind.push(l(t,i,e,{passive:!1}))}),t.eventsToUnbind.push(l(e.container,"click",function(i){!e.cancelClick&&e.isInsidePlot(i.chartX-e.plotLeft,i.chartY-e.plotTop,{visiblePlotOnly:!0})&&t.bindingsChartClick(this,i)})),t.eventsToUnbind.push(l(e.container,o.isTouchDevice?"touchmove":"mousemove",function(e){t.bindingsContainerMouseMove(this,e)},o.isTouchDevice?{passive:!1}:void 0))},t.prototype.initUpdate=function(){var t=this;i.compose(this.chart).navigation.addUpdate(function(e){t.update(e)})}
1,t.prototype.bindingsButtonClick=function(t,e,i){var n=this.chart,o=n.renderer.boxWrapper,r=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(r=!1),d(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&n.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),r?(this.selectedButton=e,this.selectedButtonElement=t,d(this,"selectButton",{button:t}),e.init&&e.init.call(this,t,i),(e.start||e.steps)&&n.renderer.boxWrapper.addClass("highcharts-draw-mode")):(n.stockTools&&n.stockTools.toggleButtonAciveClass(t),o.removeClass("highcharts-draw-mode"),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null)},t.prototype.bindingsChartClick=function(t,e){t=this.chart;var i=this.activeAnnotation,n=this.selectedButton;t=t.renderer.boxWrapper,i&&(i.cancelClick||e.activeAnnotation||!e.target.parentNode||function(t,e){var i=b.Element.prototype,n=i.matches||i.msMatchesSelector||i.webkitMatchesSelector,o=null;if(i.closest)o=i.closest.call(t,e);else do{if(n.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return o}(e.target,".highcharts-popup")?i.cancelClick&&setTimeout(function(){i.cancelClick=!1},0):d(this,"closePopup")),n&&n.start&&(this.nextEvent?(this.nextEvent(e,this.currentUserDetails),this.steps&&(this.stepIndex++,n.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=n.steps[this.stepIndex]:(d(this,"deselectButton",{button:this.selectedButtonElement}),t.removeClass("highcharts-draw-mode"),n.end&&n.end.call(this,e,this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null))):(this.currentUserDetails=n.start.call(this,e))&&n.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=n.steps[this.stepIndex]):(d(this,"deselectButton",{button:this.selectedButtonElement}),t.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,n.end&&n.end.call(this,e,this.currentUserDetails)))},t.prototype.bindingsContainerMouseMove=function(t,e){this.mouseMoveEvent&&this.mouseMoveEvent(e,this.currentUserDetails)},t.prototype.fieldsToOptions=function(t,e){return y(t,function(t,i){var n=parseFloat(t),o=i.split("."),r=e,s=o.length-1;!f(n)||t.match(/px/g)||i.match(/format/g)||(t=n),""!==t&&"undefined"!==t&&o.forEach(function(e,i){var n=v(o[i+1],"");s===i?r[e]=t:(r[e]||(r[e]=n.match(/\d/g)?[]:{}),r=r[e])})}),e},t.prototype.deselectAnnotation=function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)},t.prototype.annotationToFields=function(e){function i(t,n,o,a){if(o&&t&&-1===l.indexOf(n)&&(0<=(o.indexOf&&o.indexOf(n))||o[n]||!0===o))if(p(t))a[n]=[],t.forEach(function(t,e){g(t)?(a[n][e]={},y(t,function(t,o){i(t,o,r[n],a[n][e])})):i(t,0,r[n],a[n])});else if(g(t)){var c={};p(a)?(a.push(c),c[n]={},c=c[n]):a[n]=c,y(t,function(t,e){i(t,e,0===n?o:r[n],c)})}else"format"===n?a[n]=[h(t,e.labels[0].points[0]).toString(),"text"]:p(a)?a.push([t,s(t)]):a[n]=[t,s(t)]}var n=e.options,o=t.annotationsEditable,r=o.nestedOptions,s=this.utils.getFieldType,a=v(n.type,n.shapes&&n.shapes[0]&&n.shapes[0].type,n.labels&&n.labels[0]&&n.labels[0].itemType,"label"),l=t.annotationsNonEditable[n.langKey]||[],c={langKey:n.langKey,type:a};return y(n,function(t,e){"typeOptions"===e?(c[e]={},y(n[e],function(t,n){i(t,n,r,c[e])})):i(t,e,o[a],c)}),c},t.prototype.getClickedClassNames=function(t,e){var i,n=e.target;for(e=[];n&&((i=c(n,"class"))&&(e=e.concat(i.split(" ").map(function(t){return[t,n]}))),(n=n.parentNode)!==t););return e},t.prototype.getButtonEvents=function(t,e){var i,n=this;return this.getClickedClassNames(t,e).forEach(function(t){n.boundClassNames[t[0]]&&!i&&(i={events:n.boundClassNames[t[0]],button:t[1]})}),i},t.prototype.update=function(t){this.options=m(!0,this.options,t),this.removeEvents(),this.initEvents()},t.prototype.removeEvents=function(){this.eventsToUnbind.forEach(function(t){t()})},t.prototype.destroy=function(){this.removeEvents()},t.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackgroun
1d:["fill","strokeWidth","stroke"],outerBackground:["fill","strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],crookedLine:[],basicAnnotation:["shapes","labelOptions"]},t.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]},t}();return w.prototype.utils={getFieldType:function(t){return{string:"text",number:"number",boolean:"checkbox"}[typeof t]},updateRectSize:function(t,e){var i=e.chart,n=e.options.typeOptions,o=f(n.xAxis)&&i.xAxis[n.xAxis],r=f(n.yAxis)&&i.yAxis[n.yAxis];o&&r&&(o=o.toValue(t[o.horiz?"chartX":"chartY"]),t=r.toValue(t[r.horiz?"chartX":"chartY"]),r=o-n.point.x,n=n.point.y-t,e.update({typeOptions:{background:{width:i.inverted?n:r,height:i.inverted?r:n}}}))},getAssignedAxis:function(t){return t.filter(function(t){var e=t.axis.getExtremes(),i=e.min;e=e.max;var n=v(t.axis.minPointOffset,0);return f(i)&&f(e)&&t.value>=i-n&&t.value<=e+n&&!t.axis.options.isInternal})[0]}},e.prototype.initNavigationBindings=function(){var t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new w(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())},l(e,"load",function(){this.initNavigationBindings()}),l(e,"destroy",function(){this.navigationBindings&&this.navigationBindings.destroy()}),l(w,"deselectButton",function(){this.selectedButtonElement=null}),l(t,"remove",function(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}),o.Annotation&&(a(t),y(t.types,function(t){a(t)})),n({lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Backgroun
1d colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(t){var e=this.chart.pointer.getCoordinates(t);t=this.utils.getAssignedAxis(e.xAxis),e=this.utils.getAssignedAxis(e.yAxis);var i=this.chart.options.navigation;if(t&&e)return this.chart.addAnnotation(m({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:t.value,y:e.value,xAxis:t.axis.options.index,yAxis:e.axis.options.index},r:5}]},i.annotationsOptions,i.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,e){var i=e.options.shapes[0].point;if(f(i.xAxis)&&f(i.yAxis)){var n=this.chart.inverted,o=this.chart.xAxis[i.xAxis].toPixels(i.x);i=this.chart.yAxis[i.yAxis].toPixels(i.y),n=Math.max(Math.sqrt(Math.pow(n?i-t.chartX:o-t.chartX,2)+Math.pow(n?o-t.chartY:i-t.chartY,2)),5)}e.update({shapes:[{r:n}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(t){var e=this.chart.pointer.getCoordinates(t);t=this.utils.getAssignedAxis(e.xAxis),e=this.utils.getAssignedAxis(e.yAxis);var i=this.chart.options.navigation;if(t&&e)return this.chart.addAnnotation(m({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:t.axis.options.index,yAxis:e.axis.options.index,points:[{x:t.value,y:e.value},{x:t.value,y:e.value}],ry:1}]},i.annotationsOptions,i.bindings.ellipseAnnotation.annotationOptions))},steps:[function(t,e){var i=(e=e.shapes[0]).getAbsolutePosition(e.points[1]);e.translatePoint(t.chartX-i.x,t.chartY-i.y,1),e.redraw(!1)},function(t,e){var i=(e=e.shapes[0]).getAbsolutePosition(e.points[0]),n=e.getAbsolutePosition(e.points[1]);t=e.getDistanceFromLine(i,n,t.chartX,t.chartY),i=e.getYAxis(),t=Math.abs(i.toValue(0)-i.toValue(t)),e.setYRadius(t),e.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(t){t=this.chart.pointer.getCoordinates(t);var e=this.utils.getAssignedAxis(t.xAxis),i=this.utils.getAssignedAxis(t.yAxis);if(e&&i){t=e.value;var n=i.value;e=e.axis.options.index,i=i.axis.options.index;var o=this.chart.options.navigation;return this.chart.addAnnotation(m({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:e,yAxis:i,x:t,y:n},{xAxis:e,yAxis:i,x:t,y:n},{xAxis:e,yAxis:i,x:t,y:n},{xAxis:e,yAxis:i,x:t,y:n},{command:"Z"}]}]},o.annotationsOptions,o.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(t,e){var i=e.options.shapes[0].points,n=this.chart.pointer.getCoordinates(t);t=this.utils.getAssignedAxis(n.xAxis),n=this.utils.getAssignedAxis(n.yAxis),t&&n&&(t=t.value,n=n.value,i[1].x=t,i[2].x=t,i[2].y=n,i[3].y=n,e.update({shapes:[{points:i}]}))}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){var e=this.chart.pointer.getCoordinates(t);t=this.utils.getAssignedAxis(e.xAxis),e=this.utils.getAssignedAxis(e.yAxis);var i=this.chart.options.navigation;if(t&&e)return this.chart.addAnnotation(m({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}"},labels:[{point:{xAxis:t.axis.options.index,yAxis:e.axis.options.index,x:t.value,y:e.value},overflow:"none",crop:!0}]},i.annotationsOptions,i.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}}),l(e,"render",function(){var t=this,e=t.navigationBindings;if(t&&e){var i=!1;t.series.forEach(function(t){!t.options.isInternal&&t.visible&&(i=!0)}),y(e.boundClassNames,function(e,n){if(t.navigationBindings&&t.navigationBindings.container&&t.navigationBindings.container[0]&&(n=t.navigationBindings.container[0].querySelectorAll("."+n)))for(var o=0;o<n.length;o++){var r=n[o],s=r.className;"normal"===e.noDataState||i?-1!==s.indexOf("highcharts-disabled-btn")&&r.classList.remove("highcharts-disabled-btn"):-1===s.indexOf("highcharts-disabled-btn")&&(r.className+=" highcharts-disabled-btn")}})}}),l(w,"closePopup",function(){this.deselectAnnotation()}),w}),e(t,"Extensions/Annotations/Popup.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Extensions/Annotations/NavigationBindings.js"],t["Core/DefaultOptions.js"],t["Core/Pointer.js"],t["Core/Utilities.js"]],function(t,e,
1i,n,o,r){var s=e.doc,a=e.isFirefox,h=n.getOptions,l=r.addEvent,c=r.createElement,d=r.defined,p=r.fireEvent,u=r.isArray,f=r.isObject,g=r.objectEach,m=r.pick,y=r.stableSort;n=r.wrap;var v,x=/\d/g;!function(t){t[t["params.algorithm"]=0]="params.algorithm",t[t["params.average"]=1]="params.average"}(v||(v={}));var b={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};return n(o.prototype,"onContainerMouseDown",function(t,e){this.inClass(e.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}),e.Popup=function(t,e,i){this.init(t,e,i)},e.Popup.prototype={init:function(t,i,n){this.chart=n,this.container=c("div",{className:"highcharts-popup highcharts-no-tooltip"},void 0,t),l(this.container,"mousedown",function(){var t=n&&n.navigationBindings&&n.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;var i=l(e.doc,"click",function(){setTimeout(function(){t.cancelClick=!1},0),i()})}}),this.lang=this.getLangpack(),this.iconsURL=i,this.addCloseBtn()},addCloseBtn:function(){var t=this,e=this.iconsURL,i=c("div",{className:"highcharts-popup-close"},void 0,this.container);i.style["background-image"]="url("+(e.match(/png|svg|jpeg|jpg|gif/gi)?e:e+"close.svg")+")",["click","touchstart"].forEach(function(e){l(i,e,function(){t.chart?p(t.chart.navigationBindings,"closePopup"):t.closePopup()})})},addColsContainer:function(t){var e=c("div",{className:"highcharts-popup-lhs-col"},void 0,t);return t=c("div",{className:"highcharts-popup-rhs-col"},void 0,t),c("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,t),{lhsCol:e,rhsCol:t}},addInput:function(t,e,i,n){var o=t.split(".");o=o[o.length-1];var r=this.lang;return(e="highcharts-"+e+"-"+m(n.htmlFor,o)).match(x)||c("label",{htmlFor:e,className:n.labelClassName},void 0,i).appendChild(s.createTextNode(r[o]||o)),(i=c("input",{name:e,value:n.value,type:n.type,className:"highcharts-popup-field"},void 0,i)).setAttribute("highcharts-data-name",t),i},addButton:function(t,e,i,n,o){var r=this,a=this.closePopup,h=this.getFields,d=c("button",void 0,void 0,t);return d.appendChild(s.createTextNode(e)),o&&["click","touchstart"].forEach(function(t){l(d,t,function(){return a.call(r),o(h(n,i))})}),d},getFields:function(t,e){var i=Array.prototype.slice.call(t.querySelectorAll("input")),n=Array.prototype.slice.call(t.querySelectorAll("select")),o=t.querySelectorAll("#highcharts-select-series > option:checked")[0];t=t.querySelectorAll("#highcharts-select-volume > option:checked")[0];var r={actionType:e,linkedTo:o&&o.getAttribute("value")||"",fields:{}};return i.forEach(function(t){var e=t.getAttribute("highcharts-data-name");t.getAttribute("highcharts-data-series-id")?r.seriesId=t.value:e?r.fields[e]=t.value:r.type=t.value}
1),n.forEach(function(t){var e=t.id;"highcharts-select-series"!==e&&"highcharts-select-volume"!==e&&(e=e.split("highcharts-select-")[1],r.fields[e]=t.value)}),t&&(r.fields["params.volumeSeriesID"]=t.getAttribute("value")||""),r},showPopup:function(){var e=this.container,i=e.querySelectorAll(".highcharts-popup-close")[0];this.formType=void 0,e.innerHTML=t.emptyHTML,0<=e.className.indexOf("highcharts-annotation-toolbar")&&(e.classList.remove("highcharts-annotation-toolbar"),e.removeAttribute("style")),e.appendChild(i),e.style.display="block",e.style.height=""},closePopup:function(){m(this.popup&&this.popup.container,this.container).style.display="none"},showForm:function(t,e,i,n){e&&(this.popup=e.navigationBindings.popup,this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,e,i,n),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,e,i,n),"annotation-edit"===t&&this.annotations.addForm.call(this,e,i,n),"flag"===t&&this.annotations.addForm.call(this,e,i,n,!0),this.formType=t,this.container.style.height=this.container.offsetHeight+"px")},getLangpack:function(){return h().lang.navigation.popup},annotations:{addToolbar:function(t,e,i){var n=this,o=this.lang,r=this.popup.container,a=this.showForm;-1===r.className.indexOf("highcharts-annotation-toolbar")&&(r.className+=" highcharts-annotation-toolbar"),t&&(r.style.top=t.plotTop+10+"px"),c("span",void 0,void 0,r).appendChild(s.createTextNode(m(o[e.langKey]||e.langKey,e.shapes&&e.shapes[0].type)));var h=this.addButton(r,o.removeButton||"remove","remove",r,i);h.className+=" highcharts-annotation-remove-button",h.style["background-image"]="url("+this.iconsURL+"destroy.svg)",(h=this.addButton(r,o.editButton||"edit","edit",r,function(){a.call(n,"annotation-edit",t,e,i)})).className+=" highcharts-annotation-edit-button",h.style["background-image"]="url("+this.iconsURL+"edit.svg)"},addForm:function(t,e,i,n){var o=this.popup.container,r=this.lang;if(t){var a=c("h2",{className:"highcharts-popup-main-title"},void 0,o);a.appendChild(s.createTextNode(r[e.langKey]||e.langKey||"")),a=c("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,o);var h=c("div",{className:"highcharts-popup-bottom-row"},void 0,o);this.annotations.addFormFields.call(this,a,t,"",e,[],!0),this.addButton(h,n?r.addButton||"add":r.saveButton||"save",n?"add":"save",o,i)}},addFormFields:function(t,e,i,n,o,r){var h,l,d=this,p=this.annotations.addFormFields,m=this.addInput,v=this.lang;e&&(g(n,function(n,r){h=""!==i?i+"."+r:r,f(n)&&(!u(n)||u(n)&&f(n[0])?((l=v[r]||r).match(x)||o.push([!0,l,t]),p.call(d,t,e,h,n,o,!1)):o.push([d,h,"annotation",t,n]))}),r&&(y(o,function(t){return t[1].match(/format/g)?-1:1}),a&&o.reverse(),o.forEach(function(t){!0===t[0]?c("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(s.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},m.apply(t[0],t.splice(1)))})))}},indicators:{addForm:function(t,e,i){var n=this.indicators,o=this.lang;if(t){this.tabs.init.call(this,t),e=this.popup.container.querySelectorAll(".highcharts-tab-item-content"),this.addColsContainer(e[0]),n.addSearchBox.call(this,t,e[0]),n.addIndicatorList.call(this,t,e[0],"add");var r=e[0].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(r,o.addButton||"add","add",r,i),this.addColsContainer(e[1]),n.addIndicatorList.call(this,t,e[1],"edit"),r=e[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(r,o.saveButton||"save","edit",r,i),this.addButton(r,o.removeButton||"remove","remove",r,i)}},filterSeries:function(t,e){var i,n=this.indicators,o=this.chart&&this.chart.options.lang,r=o&&o.navigation&&o.navigation.popup&&o.navigation.popup.indicatorAliases,s=[];return g(t,function(t,o){var a=t.options;if(t.params||a&&a.params)if(o=(a=n.getNameType(t,o)).indicatorFullName,a=a.indicatorType,e){var h=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");h=new RegExp(h,"i");var l=r&&r[a]&&r[a].join(" ")||"";(o.match(h)||l.match(h))&&(i={indicatorFullName:o,indicatorType:a,series:t},s.push(i))}else i={indicatorFullName:o,indicatorType:a,series:t},s.push(i)}),s},filterSeriesArray:function(t){var e,i=[];return t.forEach(function(t){t.is("sma")&&(e={indicatorFullName:t.name,indicatorType:t.type,series:t},i.push(e))}),i},addIndicatorList:function(e,i,n,o){var r=this,a=r.indicators,h=r.lang,d=i.querySelectorAll(".highcharts-popup-lhs-col")[0];i=i.querySelectorAll(".highcharts-popup-rhs-col")[0];var p="edit"===n,f=this.indicators.addFormFields;if(n=p?e.series:e.options.plotOptions||{},e||!n){var g,m=[];p||u(n)?u(n)&&(m=a.filterSeriesArray.call(this,n)):m=a.filterSeries.call(this,n,o),y(m,function(t,e){return(t=t.indicatorFullName.toLowerCase())<(e=e.indicatorFullName.toLowerCase())?-1:t>e?1:0}),d.children[1]&&d.children[1].remove();var v=c("ul",{className:"highcharts-indicator-list"},void 0,d),x=i.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];m.forEach(function(t){var i=t.indicatorFullName,n=t.indicatorType,o=t.series;(g=c("li",{className:"highcharts-indicator-list"},void 0,v)).appendChild(s.createTextNode(i)),["click","touchstart"].forEach(function(t){l(g,t,function(){var t=x.parentNode.children[1];f.call(r,e,o,n,x),t&&(t.style.display="block"),p&&o.options&&c("input",{type:"hidden",name:"highcharts-id-"+n,value:o.options.id},void 0,x).setAttribute("highcharts-data-series-id",o.options.id)})})}),0<v.childNodes.length?v.childNodes[0].click():p||(t.setElementHTML(x.parentNode.children[0],h.noFilterMatch||""),x.parentNode.children[1].style.display="none")}},addSearchBox:function(t,e){var i=this,n=e.querySelectorAll(".highcharts-popup-lhs-col")[0];e=this.lang.clearFilter,n=c("div",{className:"highcharts-input-wrapper"},void 0,n);var o=function(e){i.indicators.addIndicatorList.call(i,t,i.container,"add",e)},r=this.addInput("searchIndicators","input",n,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),s=c("a",{textContent:e},void 0,n);r.classList.add("highcharts-input-search-indicators"),s.classList.add("clear-filter-button"),l(r,"input",function(t){o(this.value),s.style.display=this.value.length?"inline-block":"none"}),["click","touchstart"].forEach(function(t){l(s,t,function(){r.value="",o(""),s.style.display="none"})})}
1,addSelection:function(t,e,i){var n=e.split(".");n=n[n.length-1],t="highcharts-"+e+"-type-"+t;var o=this.lang;return c("label",{htmlFor:t},null,i).appendChild(s.createTextNode(o[n]||e)),(i=c("select",{name:t,className:"highcharts-popup-field",id:"highcharts-select-"+e},null,i)).setAttribute("id","highcharts-select-"+e),i},addSelectionOptions:function(t,e,i,n,o,r,a){"series"===e||"volume"===e?t.series.forEach(function(t){var n=t.options,o=n.name||n.params?t.name:n.id||"";"highcharts-navigator-series"!==n.id&&n.id!==(a&&a.options&&a.options.id)&&(d(r)||"volume"!==e||"column"!==t.type||(r=n.id),c("option",{value:n.id},void 0,i).appendChild(s.createTextNode(o)))}):n&&o&&b[o+"-"+n].forEach(function(t){c("option",{value:t},void 0,i).appendChild(s.createTextNode(t))}),d(r)&&(i.value=r)},getNameType:function(t,i){var n=t.options,o=e.seriesTypes;return o=o[i]&&o[i].prototype.nameBase||i.toUpperCase(),n&&n.type&&(i=t.options.type,o=t.name),{indicatorFullName:o,indicatorType:i}},listAllSeries:function(t,e,i,n,o,r){var s=this.indicators;i&&(t=s.addSelection.call(this,t,e,n),s.addSelectionOptions.call(this,i,e,t,void 0,void 0,void 0,o),d(r)&&(t.value=r))},addFormFields:function(e,i,n,o){var r=i.params||i.options.params,a=this.indicators.getNameType;o.innerHTML=t.emptyHTML,c("h3",{className:"highcharts-indicator-title"},void 0,o).appendChild(s.createTextNode(a(i,n).indicatorFullName)),c("input",{type:"hidden",name:"highcharts-type-"+n,value:n},void 0,o),this.indicators.listAllSeries.call(this,n,"series",e,o,i,i.linkedParent&&i.linkedParent.options.id),r.volumeSeriesID&&this.indicators.listAllSeries.call(this,n,"volume",e,o,i,i.linkedParent&&r.volumeSeriesID),this.indicators.addParamInputs.call(this,e,"params",r,n,o)},addParamInputs:function(t,e,i,n,o){var r,s=this,a=s.indicators,h=this.indicators.addParamInputs,l=this.addInput;t&&g(i,function(i,c){if(r=e+"."+c,d(i)&&r)if(f(i)&&(l.call(s,r,n,o,{}),h.call(s,t,r,i,n,o)),r in v){var p=a.addSelection.call(s,n,r,o);a.addSelectionOptions.call(s,t,e,p,n,c,i)}else"params.volumeSeriesID"===r||u(i)||l.call(s,r,n,o,{value:i,type:"text"})})},getAmount:function(){var t=0;return this.series.forEach(function(e){var i=e.options;(e.params||i&&i.params)&&t++}),t}},tabs:{init:function(t){var e=this.tabs,i=this.indicators.getAmount.call(t);t&&(t=e.addMenuItem.call(this,"add"),e.addMenuItem.call(this,"edit",i),e.addContentItem.call(this,"add"),e.addContentItem.call(this,"edit"),e.switchTabs.call(this,i),e.selectTab.call(this,t,0))},addMenuItem:function(t,e){var i=this.popup.container,n="highcharts-tab-item",o=this.lang;return 0===e&&(n+=" highcharts-tab-disabled"),(e=c("span",{className:n},void 0,i)).appendChild(s.createTextNode(o[t+"Button"]||t)),e.setAttribute("highcharts-data-tab-type",t),e},addContentItem:function(){return c("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,this.popup.container)},switchTabs:function(t){var e=this;this.popup.container.querySelectorAll(".highcharts-tab-item").forEach(function(i,n){"edit"===i.getAttribute("highcharts-data-tab-type")&&0===t||["click","touchstart"].forEach(function(t){l(i,t,function(){e.tabs.deselectAll.call(e),e.tabs.selectTab.call(e,this,n)})})})},selectTab:function(t,e){var i=this.popup.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",i[e].className+=" highcharts-tab-item-show"},deselectAll:function(){var t,e=this.popup.container,i=e.querySelectorAll(".highcharts-tab-item");for(e=e.querySelectorAll(".highcharts-tab-item-content"),t=0;t<i.length;t++)i[t].classList.remove("highcharts-tab-item-active"),e[t].classList.remove("highcharts-tab-item-show")}}},l(i,"showPopup",function(t){this.popup||(this.popup=new e.Popup(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/10.1.0/gfx/stock-icons/",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}),l(i,"closePopup",function(){this.popup&&this.popup.closePopup()}),e.Popup}),e(t,"masters/modules/annotations.src.js",[],function(){})},t.exports?(r.default=r,t.exports=r):(n=[i(31152)],void 0===(o=function(t){return r(t),r.Highcharts=t,r}.apply(e,n))||(t.exports=o))},2672(t,e,i){var n,o,r;r=function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsM
1oduleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Extensions/NoDataToDisplay.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Chart/Chart.js"],t["Core/DefaultOptions.js"],t["Core/Utilities.js"]],function(t,e,i,n){var o=i.getOptions;i=n.addEvent;var r=n.extend;n=e.prototype,o=o(),r(o.lang,{noData:"No data to display"}),o.noData={attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"12px",color:"#666666"}},n.showNoData=function(e){var i=this.options;e=e||i&&i.lang.noData||"",i=i&&(i.noData||{}),this.renderer&&(this.noDataLabel||(this.noDataLabel=this.renderer.label(e,0,0,void 0,void 0,void 0,i.useHTML,void 0,"no-data").add()),this.styledMode||this.noDataLabel.attr(t.filterUserAttributes(i.attr||{})).css(i.style||{}),this.noDataLabel.align(r(this.noDataLabel.getBBox(),i.position||{}),!1,"plotBox"))},n.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())},n.hasData=function(){for(var t=this.series||[],e=t.length;e--;)if(t[e].hasData()&&!t[e].options.isInternal)return!0;return this.loadingShown},i(e,"render",function(){this.hasData()?this.hideNoData():this.showNoData()})}),e(t,"masters/modules/no-data-to-display.src.js",[],function(){})},t.exports?(r.default=r,t.exports=r):(n=[i(31152)],void 0===(o=function(t){return r(t),r.Highcharts=t,r}.apply(e,n))||(t.exports=o))},35481(t){var e={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Ã:"AE",Ầ:"A",Ằ:"A",È:"A",Ã:"C",á¸:"C",Ã:"E",Ã:"E",Ã:"E",Ã:"E",Ế:"E",á¸:"E",á»:"E",á¸:"E",á¸:"E",È:"E",Ã:"I",Ã:"I",Ã:"I",Ã:"I",Ḯ:"I",È:"I",Ã:"D",Ã:"N",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",á»:"O",á¹:"O",á¹:"O",È:"O",Ã:"U",Ã:"U",Ã:"U",Ã:"U",Ã:"Y",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",È:"a",ç:"c",á¸:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",á¸:"e",á»:"e",á¸:"e",á¸:"e",È:"e",ì:"i",Ã:"i",î:"i",ï:"i",ḯ:"i",È:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",á»:"o",á¹:"o",á¹:"o",È:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ä:"A",Ä:"a",Ä:"A",Ä:"a",Ä:"A",Ä
:"a",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"C",Ä:"c",Ä:"C",Ä:"c",CÌ:"C",cÌ:"c",Ä:"D",Ä:"d",Ä:"D",Ä:"d",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"E",Ä:"e",Ä:"G",Ç´:"G",Ä:"g",ǵ:"g",Ä:"G",Ä:"g",Ä :"G",Ä¡:"g",Ä¢:"G",Ä£:"g",Ĥ:"H",Ä¥:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",Ä©:"i",Ī:"I",Ä«:"i",Ĭ:"I",Ä:"i",Ä®:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",Ḱ:"K",ḱ:"k",KÌ:"K",kÌ:"k",Ĺ:"L",ĺ:"l",Ä»:"L",ļ:"l",Ľ:"L",ľ:"l",Ä¿:"L",Å:"l",Å:"l",Å:"l",Ḿ:"M",ḿ:"m",MÌ:"M",mÌ:"m",Å:"N",Å:"n",Å
:"N",Å:"n",Å:"N",Å:"n",Å:"n",NÌ:"N",nÌ:"n",Å:"O",Å:"o",Å:"O",Å:"o",Å:"O",Å:"o",Å:"OE",Å:"oe",PÌ:"P",pÌ:"p",Å:"R",Å:"r",Å:"R",Å:"r",Å:"R",Å:"r",RÌ:"R",rÌ:"r",È:"R",È:"r",Å:"S",Å:"s",Å:"S",Å:"s",Å:"S",È:"S",È:"s",Å:"s",Å :"S",Å¡:"s",Å¢:"T",Å£:"t",È:"t",È:"T",Ť:"T",Å¥:"t",Ŧ:"T",ŧ:"t",TÌ:"T",tÌ:"t",Ũ:"U",Å©:"u",Ū:"U",Å«:"u",Ŭ:"U",Å:"u",Å®:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",È:"U",È:"u",VÌ:"V",vÌ:"v",Å´:"W",ŵ:"w",áº:"W",áº:"w",XÌ:"X",xÌ:"x",Ŷ:"Y",Å·:"y",Ÿ:"Y",YÌ:"Y",yÌ:"y",Ź:"Z",ź:"z",Å»:"Z",ż:"z",Ž:"Z",ž:"z",Å¿:"s",Æ:"f",Æ :"O",Æ¡:"o",Ư:"U",ư:"u",Ç:"A",Ç:"a",Ç:"I",Ç:"i",Ç:"O",Ç:"o",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ç:"U",Ç:"u",Ứ:"U",ứ:"u",Ṹ:"U",á¹¹:"u",Ǻ:"A",Ç»:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",Ç¿:"o",Ã:"TH",þ:"th",á¹:"P",á¹:"p",Ṥ:"S",á¹¥:"s",XÌ:"X",xÌ:"x",Ð:"Ð",Ñ:"г",Ð:"Ð",Ñ:"к",AÌ:"A",aÌ:"a",EÌ:"E",eÌ:"e",IÌ:"I",iÌ:"i",Ǹ:"N",ǹ:"n",á»:"O",á»:"o",á¹:"O",á¹:"o",Ừ:"U",ừ:"u",áº:"W",áº:"w",Ỳ:"Y",ỳ:"y",È:"A",È:"a",È:"E",È
:"e",È:"I",È:"i",È:"O",È:"o",È:"R",È:"r",È:"U",È:"u",BÌ:"B",bÌ:"b",ÄÌ£:"C",ÄÌ£:"c",ÃÌ:"E",êÌ:"e",FÌ:"F",fÌ:"f",Ǧ:"G",ǧ:"g",È:"H",È:"h",JÌ:"J",ǰ:"j",Ǩ:"K",Ç©:"k",MÌ:"M",mÌ:"m",PÌ:"P",pÌ:"p",QÌ:"Q",qÌ:"q",ÅÌ©:"R",ÅÌ©:"r",Ṧ:"S",á¹§:"s",VÌ:"V",vÌ:"v",WÌ:"W",wÌ:"w",XÌ:"X",xÌ:"x",YÌ:"Y",yÌ:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",á¸:"D",á¸:"d",Ȩ:"E",È©:"e",ÆÌ§:"E",Ȩ́:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",ÆÌ§:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},i=Object.keys(e).join("|"),n=new RegExp(i,"g"),o=new RegExp(i,""),r=function(t){return t.replace(n,function(t){return e[t]})};t.exports=r,t.exports.has=function(t){return!!t.match(o)},t.exports.remove=r},2519(t,e,i){"use strict";i.d(e,{q:()=>o});let n={};function o(){return n}},34193(t,e,i){"use strict";const n=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},o=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},r={p:o,P:(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],r=i[1],s=i[2];if(!s)return n(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"})}return a.replace("{{date}}",n(r,e)).replace("{{time}}",o(s,e))}};i.d(e,["m",0,r])},41625(t,e,i){"use strict";i.d(e,{G:()=>o});var n=i(12922);function o(t){const e=(0,n.a)(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}},18418(t,e,i){"use strict";i.d(e,{x:()=>o});var n=i(72122);function o(t,...e){const i=n.w.bind(null,t||e.find(t=>"object"==typeof t));return e.map(i)}},67680(t,e,i){"use strict";i.d(e,{Ss:()=>h,ef:()=>s,xM:()=>a});const n=/^D+$/,o=/^Y+$/,r=["D","DD","YY","YYYY"];function s(t){return n.test(t)}function a(t){return o.test(t)}
vendor: 4,382 bytes, line 1
1function h(t,e,i){const n=function(t,e,i){const n="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,i);if(console.warn(n),r.includes(t))throw new RangeError(n)}},14762(t,e,i){"use strict";i.d(e,{m:()=>a});var n=i(41625),o=i(18418),r=i(55306),s=i(77114);function a(t,e,i){const[a,h]=(0,o.x)(i?.in,t,e),l=(0,s.o)(a),c=(0,s.o)(h),d=+l-(0,n.G)(l),p=+c-(0,n.G)(c);return Math.round((d-p)/r.w4)}},89931(t,e,i){"use strict";i.d(e,{GP:()=>X,Yq:()=>X});var n=i(96535),o=i(2519),r=i(14762),s=i(12922);function a(t,e){const i=(0,s.a)(t,e?.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}function h(t,e){const i=(0,s.a)(t,e?.in);return(0,r.m)(i,a(i))+1}var l=i(86097),c=i(89139),d=i(70609),p=i(22822);function u(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const f={y(t,e){const i=t.getFullYear(),n=i>0?i:1-i;return u("yy"===e?n%100:n,e.length)},M(t,e){const i=t.getMonth();return"M"===e?String(i+1):u(i+1,2)},d:(t,e)=>u(t.getDate(),e.length),a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];default:return"am"===i?"a.m.":"p.m."}},h:(t,e)=>u(t.getHours()%12||12,e.length),H:(t,e)=>u(t.getHours(),e.length),m:(t,e)=>u(t.getMinutes(),e.length),s:(t,e)=>u(t.getSeconds(),e.length),S(t,e){const i=e.length,n=t.getMilliseconds();return u(Math.trunc(n*Math.pow(10,i-3)),e.length)}},g="midnight",m="noon",y="morning",v="afternoon",x="evening",b="night",w={G:function(t,e,i){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});default:return i.era(n,{width:"wide"})}},y:function(t,e,i){if("yo"===e){const e=t.getFullYear(),n=e>0?e:1-e;return i.ordinalNumber(n,{unit:"year"})}return f.y(t,e)},Y:function(t,e,i,n){const o=(0,p.h)(t,n),r=o>0?o:1-o;if("YY"===e){return u(r%100,2)}return"Yo"===e?i.ordinalNumber(r,{unit:"year"}):u(r,e.length)},R:function(t,e){return u((0,c.p)(t),e.length)},u:function(t,e){return u(t.getFullYear(),e.length)},Q:function(t,e,i){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return u(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,i){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return u(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,i){const n=t.getMonth();switch(e){case"M":case"MM":return f.M(t,e);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,i){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return u(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,i,n){const o=(0,d.N)(t,n);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):u(o,e.length)},I:function(t,e,i){const n=(0,l.s)(t);return"Io"===e?i.ordinalNumber(n,{unit:"week"}):u(n,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getDate(),{unit:"date"}):f.d(t,e)},D:function(t,e,i){const n=h(t);return"Do"===e?i.ordinalNumber(n,{unit:"dayOfYear"}):u(n,e.length)},E:function(t,e,i){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}}
vendor: 4,831 bytes, line 1
1,e:function(t,e,i,n){const o=t.getDay(),r=(o-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return u(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,n){const o=t.getDay(),r=(o-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return u(r,e.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){const n=t.getDay(),o=0===n?7:n;switch(e){case"i":return String(o);case"ii":return u(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,i){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,i){const n=t.getHours();let o;switch(o=12===n?m:0===n?g:n/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,i){const n=t.getHours();let o;switch(o=n>=17?x:n>=12?v:n>=4?y:b,e){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),i.ordinalNumber(e,{unit:"hour"})}return f.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getHours(),{unit:"hour"}):f.H(t,e)},K:function(t,e,i){const n=t.getHours()%12;return"Ko"===e?i.ordinalNumber(n,{unit:"hour"}):u(n,e.length)},k:function(t,e,i){let n=t.getHours();return 0===n&&(n=24),"ko"===e?i.ordinalNumber(n,{unit:"hour"}):u(n,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):f.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getSeconds(),{unit:"second"}):f.s(t,e)},S:function(t,e){return f.S(t,e)},X:function(t,e,i){const n=t.getTimezoneOffset();if(0===n)return"Z";switch(e){case"X":return S(n);case"XXXX":case"XX":return M(n);default:return M(n,":")}},x:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"x":return S(n);case"xxxx":case"xx":return M(n);default:return M(n,":")}},O:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+k(n,":");default:return"GMT"+M(n,":")}},z:function(t,e,i){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+k(n,":");default:return"GMT"+M(n,":")}},t:function(t,e,i){return u(Math.trunc(+t/1e3),e.length)},T:function(t,e,i){return u(+t,e.length)}};function k(t,e=""){const i=t>0?"-":"+",n=Math.abs(t),o=Math.trunc(n/60),r=n%60;return 0===r?i+String(o):i+String(o)+e+u(r,2)}function S(t,e){if(t%60==0){return(t>0?"-":"+")+u(Math.abs(t)/60,2)}return M(t,e)}function M(t,e=""){const i=t>0?"-":"+",n=Math.abs(t);return i+u(Math.trunc(n/60),2)+e+u(n%60,2)}var P=i(34193),O=i(67680),L=i(35239);const j=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z=/^'([^]*?)'?$/,W=/''/g,Y=/[a-zA-Z]/;function X(t,e,i){const r=(0,o.q)(),a=i?.locale??r.locale??n.c,h=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=(0,s.a)(t,i?.in);if(!(0,L.f)(c))throw new RangeError("Invalid time value");let d=e.match(R).map(t=>{const e=t[0];if("p"===e||"P"===e){return(0,P.m[e])(t,a.formatLong)}return t}).join("").match(j).map(t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:_(t)};if(w[e])return{isToken:!0,value:t};
1if(e.match(Y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});a.localize.preprocessor&&(d=a.localize.preprocessor(c,d));const p={firstWeekContainsDate:h,weekStartsOn:l,locale:a};return d.map(n=>{if(!n.isToken)return n.value;const o=n.value;(!i?.useAdditionalWeekYearTokens&&(0,O.xM)(o)||!i?.useAdditionalDayOfYearTokens&&(0,O.ef)(o))&&(0,O.Ss)(o,e,String(t));return(0,w[o[0]])(c,o,a.localize,p)}).join("")}function _(t){const e=t.match(z);return e?e[1].replace(W,"'"):t}},86097(t,e,i){"use strict";i.d(e,{s:()=>l});var n=i(55306),o=i(71121),r=i(72122),s=i(89139);function a(t,e){const i=(0,s.p)(t,e),n=(0,r.w)(e?.in||t,0);return n.setFullYear(i,0,4),n.setHours(0,0,0,0),(0,o.b)(n)}var h=i(12922);function l(t,e){const i=(0,h.a)(t,e?.in),r=+(0,o.b)(i)-+a(i);return Math.round(r/n.my)+1}},89139(t,e,i){"use strict";i.d(e,{p:()=>s});var n=i(72122),o=i(71121),r=i(12922);function s(t,e){const i=(0,r.a)(t,e?.in),s=i.getFullYear(),a=(0,n.w)(i,0);a.setFullYear(s+1,0,4),a.setHours(0,0,0,0);const h=(0,o.b)(a),l=(0,n.w)(i,0);l.setFullYear(s,0,4),l.setHours(0,0,0,0);const c=(0,o.b)(l);return i.getTime()>=h.getTime()?s+1:i.getTime()>=c.getTime()?s:s-1}},70609(t,e,i){"use strict";i.d(e,{N:()=>c});var n=i(55306),o=i(99802),r=i(2519),s=i(72122),a=i(22822);function h(t,e){const i=(0,r.q)(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,h=(0,a.h)(t,e),l=(0,s.w)(e?.in||t,0);l.setFullYear(h,0,n),l.setHours(0,0,0,0);return(0,o.k)(l,e)}var l=i(12922);function c(t,e){const i=(0,l.a)(t,e?.in),r=+(0,o.k)(i,e)-+h(i,e);return Math.round(r/n.my)+1}},22822(t,e,i){"use strict";i.d(e,{h:()=>a});var n=i(2519),o=i(72122),r=i(99802),s=i(12922);function a(t,e){const i=(0,s.a)(t,e?.in),a=i.getFullYear(),h=(0,n.q)(),l=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??h.firstWeekContainsDate??h.locale?.options?.firstWeekContainsDate??1,c=(0,o.w)(e?.in||t,0);c.setFullYear(a+1,0,l),c.setHours(0,0,0,0);const d=(0,r.k)(c,e),p=(0,o.w)(e?.in||t,0);p.setFullYear(a,0,l),p.setHours(0,0,0,0);const u=(0,r.k)(p,e);return+i>=+d?a+1:+i>=+u?a:a-1}},35239(t,e,i){"use strict";function n(t){return t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)}i.d(e,{f:()=>r});var o=i(12922);function r(t){return!(!n(t)&&"number"!=typeof t||isNaN(+(0,o.a)(t)))}},96535(t,e,i){"use strict";i.d(e,{c:()=>c});const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const r={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function a(t){return(e,i)=>{let n;if("formatting"===(i?.context?String(i.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,o=i?.width?String(i.width):e;n=t.formattingValues[o]||t.formattingValues[e]}else{const e=t.defaultWidth,o=i?.width?String(i.width):t.defaultWidth;n=t.values[o]||t.values[e]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function h(t){return(e,i={})=>{const n=i.width,o=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],r=e.match(o);if(!r)return null;const s=r[0],a=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(a)?function(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i;return}(a,t=>t.test(s)):function(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i;return}(a,t=>t.test(s));let l;l=t.valueCallback?t.valueCallback(h):h,l=i.valueCallback?i.valueCallback(l):l;return{value:l,rest:e.slice(s.length)}}}var l;const c={code:"en-US",formatDistance:(t,e,i)=>{let o;const r=n[t];
vendor: 4,226 bytes, line 1
1return o="string"==typeof r?r:1===e?r.one:r.other.replace("{{count}}",e.toString()),i?.addSuffix?i.comparison&&i.comparison>0?"in "+o:o+" ago":o},formatLong:r,formatRelative:(t,e,i,n)=>s[t],localize:{ordinalNumber:(t,e)=>{const i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:a({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:a({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:a({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:a({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:a({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(l={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const i=t.match(l.matchPattern);if(!i)return null;const n=i[0],o=t.match(l.parsePattern);if(!o)return null;let r=l.valueCallback?l.valueCallback(o[0]):o[0];return r=e.valueCallback?e.valueCallback(r):r,{value:r,rest:t.slice(n.length)}}),era:h({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:h({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:h({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:h({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}}
vendor: 13,871 bytes, line 1
1,271(t,e,i){"use strict";i.d(e,{qg:()=>Ot});var n=i(96535),o=i(34193),r=i(67680),s=i(72122),a=i(2519);function h(){return Object.assign({},(0,a.q)())}var l=i(12922);function c(t,e){const i=function(t){return"function"==typeof t&&t.prototype?.constructor===t}(e)?new e(0):(0,s.w)(e,0);return i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),i.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),i}class d{subPriority=0;validate(t,e){return!0}}class p extends d{constructor(t,e,i,n,o){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=n,o&&(this.subPriority=o)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}}class u extends d{priority=10;subPriority=-1;constructor(t,e){super(),this.context=t||(t=>(0,s.w)(e,t))}set(t,e){return e.timestampIsSet?t:(0,s.w)(t,c(t,this.context))}}class f{run(t,e,i,n){const o=this.parse(t,e,i,n);return o?{setter:new p(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,e,i){return!0}}var g=i(55306);const m=/^(1[0-2]|0?\d)/,y=/^(3[0-1]|[0-2]?\d)/,v=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,x=/^(5[0-3]|[0-4]?\d)/,b=/^(2[0-3]|[0-1]?\d)/,w=/^(2[0-4]|[0-1]?\d)/,k=/^(1[0-1]|0?\d)/,S=/^(1[0-2]|0?\d)/,M=/^[0-5]?\d/,P=/^[0-5]?\d/,O=/^\d/,L=/^\d{1,2}/,j=/^\d{1,3}/,R=/^\d{1,4}/,z=/^-?\d+/,W=/^-?\d/,Y=/^-?\d{1,2}/,X=/^-?\d{1,3}/,_=/^-?\d{1,4}/,U=/^([+-])(\d{2})(\d{2})?|Z/,V=/^([+-])(\d{2})(\d{2})|Z/,q=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Z=/^([+-])(\d{2}):(\d{2})|Z/,Q=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function $(t,e){return t?{value:e(t.value),rest:t.rest}:t}function tt(t,e){const i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function et(t,e){const i=e.match(t);if(!i)return null;if("Z"===i[0])return{value:0,rest:e.slice(1)};const n="+"===i[1]?1:-1,o=i[2]?parseInt(i[2],10):0,r=i[3]?parseInt(i[3],10):0,s=i[5]?parseInt(i[5],10):0;return{value:n*(o*g.s0+6e4*r+1e3*s),rest:e.slice(i[0].length)}}function it(t){return tt(z,t)}function nt(t,e){switch(t){case 1:return tt(O,e);case 2:return tt(L,e);case 3:return tt(j,e);case 4:return tt(R,e);default:return tt(new RegExp("^\\d{1,"+t+"}"),e)}}function ot(t,e){switch(t){case 1:return tt(W,e);case 2:return tt(Y,e);case 3:return tt(X,e);case 4:return tt(_,e);default:return tt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function rt(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function st(t,e){const i=e>0,n=i?e:1-e;let o;if(n<=50)o=t||100;else{const e=n+50;o=t+100*Math.trunc(e/100)-(t>=e%100?100:0)}return i?o:1-o}function at(t){return t%400==0||t%4==0&&t%100!=0}var ht=i(22822),lt=i(99802);var ct=i(71121);var dt=i(70609);function pt(t,e,i){const n=(0,l.a)(t,i?.in),o=(0,dt.N)(n,i)-e;return n.setDate(n.getDate()-7*o),(0,l.a)(n,i?.in)}var ut=i(86097);function ft(t,e,i){const n=(0,l.a)(t,i?.in),o=(0,ut.s)(n,i)-e;return n.setDate(n.getDate()-7*o),n}const gt=[31,28,31,30,31,30,31,31,30,31,30,31],mt=[31,29,31,30,31,30,31,31,30,31,30,31];var yt=i(66335);function vt(t,e,i){const n=(0,a.q)(),o=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,l.a)(t,i?.in),s=r.getDay(),h=7-o,c=e<0||e>6?e-(s+h)%7:((e%7+7)%7+h)%7-(s+h)%7;return(0,yt.f)(r,c,i)}function xt(t,e){const i=(0,l.a)(t,e?.in).getDay();return 0===i?7:i}function bt(t,e,i){const n=(0,l.a)(t,i?.in),o=e-xt(n,i);return(0,yt.f)(n,o,i)}var wt=i(41625);const Ct={G:new class extends f{priority=140;parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends f{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,i){const n=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return $(nt(4,t),n);case"yo":return $(i.ordinalNumber(t,{unit:"year"}),n);default:return $(nt(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){const n=t.getFullYear();if(i.isTwoDigitYear){const e=st(i.year,n);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const o="era"in e&&1!==e.era?1-i.year:i.year;return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}},Y:new class extends f{priority=130;parse(t,e,i){const n=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return $(nt(4,t),n);case"Yo":return $(i.ordinalNumber(t,{unit:"year"}),n);default:return $(nt(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,n){const o=(0,ht.h)(t,n);if(i.isTwoDigitYear){const e=st(i.year,o);return t.setFullYear(e,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,lt.k)(t,n)}const r="era"in e&&1!==e.era?1-i.year:i.year;return t.setFullYear(r,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),(0,lt.k)(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends f{priority=130;parse(t,e){return ot("R"===e?4:e.length,t)}set(t,e,i){const n=(0,s.w)(t,0);return n.setFullYear(i,0,4),n.setHours(0,0,0,0),(0,ct.b)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends f{priority=130;parse(t,e){return ot("u"===e?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends f{priority=120;parse(t,e,i){switch(e){case"Q":case"QQ":return nt(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth(3*(i-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends f{priority=120;parse(t,e,i){switch(e){case"q":case"qq":return nt(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth(3*(i-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends f{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,i){const n=t=>t-1;switch(e){case"M":return $(tt(m,t),n);case"MM":return $(nt(2,t),n);case"Mo":return $(i.ordinalNumber(t,{unit:"month"}),n);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}},L:new class extends f{priority=110;parse(t,e,i){const n=t=>t-1;switch(e){case"L":return $(tt(m,t),n);case"LL":return $(nt(2,t),n);case"Lo":return $(i.ordinalNumber(t,{unit:"month"}),n);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends f{priority=100;parse(t,e,i){switch(e){case"w":return tt(x,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return nt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,n){return(0,lt.k)(pt(t,i,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends f{priority=100;parse(t,e,i){switch(e){case"I":return tt(x,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return nt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return(0,ct.b)(ft(t,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends f{priority=90;subPriority=1;parse(t,e,i){switch(e){case"d":return tt(y,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return nt(e.length,t)}}validate(t,e){const i=at(t.getFullYear()),n=t.getMonth();return i?e>=1&&e<=mt[n]:e>=1&&e<=gt[n]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends f{priority=90;subpriority=1;parse(t,e,i){switch(e){case"D":case"DD":return tt(v,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return nt(e.length,t)}}validate(t,e){return at(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends f{priority=90;parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return(t=vt(t,i,n)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends f{priority=90;parse(t,e,i,n){const o=t=>{const e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return $(nt(e.length,t),o);case"eo":return $(i.ordinalNumber(t,{unit:"day"}),o);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return(t=vt(t,i,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends f{priority=90;parse(t,e,i,n){const o=t=>{const e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return $(nt(e.length,t),o);case"co":return $(i.ordinalNumber(t,{unit:"day"}),o);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,n){return(t=vt(t,i,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends f{priority=90;parse(t,e,i){const n=t=>0===t?7:t;switch(e){case"i":case"ii":return nt(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return $(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return $(i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return $(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);default:return $(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return(t=bt(t,i)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends f{priority=80;parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(rt(i),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends f{priority=80;
1parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(rt(i),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends f{priority=80;parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(rt(i),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends f{priority=70;parse(t,e,i){switch(e){case"h":return tt(S,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){const n=t.getHours()>=12;return n&&i<12?t.setHours(i+12,0,0,0):n||12!==i?t.setHours(i,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends f{priority=70;parse(t,e,i){switch(e){case"H":return tt(b,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends f{priority=70;parse(t,e,i){switch(e){case"K":return tt(k,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends f{priority=70;parse(t,e,i){switch(e){case"k":return tt(w,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return nt(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){const n=i<=24?i%24:i;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends f{priority=60;parse(t,e,i){switch(e){case"m":return tt(M,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return nt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}incompatibleTokens=["t","T"]},s:new class extends f{priority=50;parse(t,e,i){switch(e){case"s":return tt(P,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return nt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}incompatibleTokens=["t","T"]},S:new class extends f{priority=30;parse(t,e){return $(nt(e.length,t),t=>Math.trunc(t*Math.pow(10,3-e.length)))}set(t,e,i){return t.setMilliseconds(i),t}incompatibleTokens=["t","T"]},X:new class extends f{priority=10;parse(t,e){switch(e){case"X":return et(U,t);case"XX":return et(V,t);case"XXXX":return et(q,t);case"XXXXX":return et(Q,t);default:return et(Z,t)}}set(t,e,i){return e.timestampIsSet?t:(0,s.w)(t,t.getTime()-(0,wt.G)(t)-i)}incompatibleTokens=["t","T","x"]},x:new class extends f{priority=10;parse(t,e){switch(e){case"x":return et(U,t);case"xx":return et(V,t);case"xxxx":return et(q,t);case"xxxxx":return et(Q,t);default:return et(Z,t)}}set(t,e,i){return e.timestampIsSet?t:(0,s.w)(t,t.getTime()-(0,wt.G)(t)-i)}incompatibleTokens=["t","T","X"]},t:new class extends f{priority=40;parse(t){return it(t)}set(t,e,i){return[(0,s.w)(t,1e3*i),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends f{priority=20;parse(t){return it(t)}set(t,e,i){return[(0,s.w)(t,i),{timestampIsSet:!0}]}incompatibleTokens="*"}},kt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,At=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,St=/^'([^]*?)'?$/,Mt=/''/g,Tt=/\S/,Pt=/[a-zA-Z]/;function Ot(t,e,i,a){const c=()=>(0,s.w)(a?.in||i,NaN),d=h(),p=a?.locale??d.locale??n.c,f=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,g=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0;if(!e)return t?c():(0,l.a)(i,a?.in);const m={firstWeekContainsDate:f,weekStartsOn:g,locale:p},y=[new u(a?.in,i)],v=e.match(At).map(t=>{const e=t[0];if(e in o.m){return(0,o.m[e])(t,p.formatLong)}return t}).join("").match(kt),x=[];for(let i of v){!a?.useAdditionalWeekYearTokens&&(0,r.xM)(i)&&(0,r.Ss)(i,e,t),!a?.useAdditionalDayOfYearTokens&&(0,r.ef)(i)&&(0,r.Ss)(i,e,t);const n=i[0],o=Ct[n];if(o){const{incompatibleTokens:e}=o;if(Array.isArray(e)){const t=x.find(t=>e.includes(t.token)||t.token===n);
1if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${i}\` at the same time`)}else if("*"===o.incompatibleTokens&&x.length>0)throw new RangeError(`The format string mustn't contain \`${i}\` and any other token at the same time`);x.push({token:n,fullToken:i});const r=o.run(t,i,p.match,m);if(!r)return c();y.push(r.setter),t=r.rest}else{if(n.match(Pt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===i?i="'":"'"===n&&(i=Et(i)),0!==t.indexOf(i))return c();t=t.slice(i.length)}}if(t.length>0&&Tt.test(t))return c();const b=y.map(t=>t.priority).sort((t,e)=>e-t).filter((t,e,i)=>i.indexOf(t)===e).map(t=>y.filter(e=>e.priority===t).sort((t,e)=>e.subPriority-t.subPriority)).map(t=>t[0]);let w=(0,l.a)(i,a?.in);if(isNaN(+w))return c();const k={};for(const t of b){if(!t.validate(w,m))return c();const e=t.set(w,k,m);Array.isArray(e)?(w=e[0],Object.assign(k,e[1])):w=e}return w}function Et(t){return t.match(St)[1].replace(Mt,"'")}},77114(t,e,i){"use strict";i.d(e,{o:()=>o});var n=i(12922);function o(t,e){const i=(0,n.a)(t,e?.in);return i.setHours(0,0,0,0),i}},71121(t,e,i){"use strict";i.d(e,{b:()=>o});var n=i(99802);function o(t,e){return(0,n.k)(t,{...e,weekStartsOn:1})}},99802(t,e,i){"use strict";i.d(e,{k:()=>r});var n=i(2519),o=i(12922);function r(t,e){const i=(0,n.q)(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,s=(0,o.a)(t,e?.in),a=s.getDay(),h=(a<r?7:0)+a-r;return s.setDate(s.getDate()-h),s.setHours(0,0,0,0),s}}}]); 2//# sourceMappingURL=public-containers-RatingCalculatorPage-RatingCalculatorPage_208a649d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.