UNPKG

@mobiage/homescreen

Version:

cp-mbg-homescreen

1 lines 385 kB
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=13)}([function(t,e,n){n(9),t.exports=window.capivara},function(t,e){!function(e,n){"object"==typeof t&&t.exports?t.exports=e.document?n(e):n:e.Highcharts=n(e)}("undefined"!=typeof window?window:this,function(t){var e=function(){var e=void 0===t?window:t,n=e.document,i=e.navigator&&e.navigator.userAgent||"",r=n&&n.createElementNS&&!!n.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o=/(edge|msie|trident)/i.test(i)&&!e.opera,s=-1!==i.indexOf("Firefox"),a=-1!==i.indexOf("Chrome"),c=s&&4>parseInt(i.split("Firefox/")[1],10);return e.Highcharts?e.Highcharts.error(16,!0):{product:"Highcharts",version:"6.1.1",deg2rad:2*Math.PI/360,doc:n,hasBidiBug:c,hasTouch:n&&void 0!==n.documentElement.ontouchstart,isMS:o,isWebKit:-1!==i.indexOf("AppleWebKit"),isFirefox:s,isChrome:a,isSafari:!a&&-1!==i.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(i),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:r,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]}}();!function(t){t.timers=[];var e=t.charts,n=t.doc,i=t.win;t.error=function(e,n){if(e=t.isNumber(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,n)throw Error(e);i.console&&console.log(e)},t.Fx=function(t,e,n){this.options=e,this.elem=t,this.prop=n},t.Fx.prototype={dSetter:function(){var t,e=this.paths[0],n=this.paths[1],i=[],r=this.now,o=e.length;if(1===r)i=this.toD;else if(o===n.length&&1>r)for(;o--;)t=parseFloat(e[o]),i[o]=isNaN(t)?n[o]:r*parseFloat(n[o]-t)+t;else i=n;this.elem.attr("d",i,null,!0)},update:function(){var t=this.elem,e=this.prop,n=this.now,i=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,i&&i.call(t,n,this)},run:function(e,n,r){var o=this,s=o.options,a=function(t){return!a.stopped&&o.step(t)},c=i.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&&c(l)};e!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=n,this.unit=r,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&c(l)):(delete s.curAnim[this.prop],s.complete&&0===t.keys(s.curAnim).length&&s.complete.call(this.elem))},step:function(e){var n,i=+new Date,r=this.options,o=this.elem,s=r.complete,a=r.duration,c=r.curAnim;return o.attr&&!o.element?e=!1:e||i>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),n=c[this.prop]=!0,t.objectEach(c,function(t){!0!==t&&(n=!1)}),n&&s&&s.call(o),e=!1):(this.pos=r.easing((i-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},initPath:function(e,n,i){function r(t){var e,n;for(h=t.length;h--;)e="M"===t[h]||"L"===t[h],n=/[a-zA-Z]/.test(t[h+3]),e&&n&&t.splice(h+1,0,t[h+1],t[h+2],t[h+1],t[h+2])}function o(t,e){for(;t.length<c;){t[0]=e[c-t.length];var n=t.slice(0,f);[].splice.apply(t,[0,0].concat(n)),m&&(n=t.slice(t.length-f),[].splice.apply(t,[t.length,0].concat(n)),h--)}t[0]="M"}function s(t,e){for(var n=(c-t.length)/f;0<n&&n--;)(l=t.slice().splice(t.length/v-f,f*v))[0]=e[c-f-n*f],d&&(l[f-6]=l[f-2],l[f-5]=l[f-1]),[].splice.apply(t,[t.length/v,0].concat(l)),m&&n--}n=n||"";var a,c,l,h,u=e.startX,p=e.endX,d=-1<n.indexOf("C"),f=d?7:3;n=n.split(" "),i=i.slice();var g,m=e.isArea,v=m?2:1;if(d&&(r(n),r(i)),u&&p){for(h=0;h<u.length;h++){if(u[h]===p[0]){a=h;break}if(u[0]===p[p.length-u.length+h]){a=h,g=!0;break}}void 0===a&&(n=[])}return n.length&&t.isNumber(a)&&(c=i.length+a*v*f,g?(o(n,i),s(i,n)):(o(i,n),s(n,i))),[n,i]}},t.Fx.prototype.fillSetter=t.Fx.prototype.strokeSetter=function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)},t.merge=function(){var e,n,i=arguments,r={},o=function(e,n){return"object"!=typeof e&&(e={}),t.objectEach(n,function(i,r){!t.isObject(i,!0)||t.isClass(i)||t.isDOMElement(i)?e[r]=n[r]:e[r]=o(e[r]||{},i)}),e};for(!0===i[0]&&(r=i[1],i=Array.prototype.slice.call(i,2)),n=i.length,e=0;e<n;e++)r=o(r,i[e]);return r},t.pInt=function(t,e){return parseInt(t,e||10)},t.isString=function(t){return"string"==typeof t},t.isArray=function(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t},t.isObject=function(e,n){return!(!e||"object"!=typeof e||n&&t.isArray(e))},t.isDOMElement=function(e){return t.isObject(e)&&"number"==typeof e.nodeType},t.isClass=function(e){var n=e&&e.constructor;return!(!t.isObject(e,!0)||t.isDOMElement(e)||!n||!n.name||"Object"===n.name)},t.isNumber=function(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t},t.erase=function(t,e){for(var n=t.length;n--;)if(t[n]===e){t.splice(n,1);break}},t.defined=function(t){return void 0!==t&&null!==t},t.attr=function(e,n,i){var r;return t.isString(n)?t.defined(i)?e.setAttribute(n,i):e&&e.getAttribute&&((r=e.getAttribute(n))||"class"!==n||(r=e.getAttribute(n+"Name"))):t.defined(n)&&t.isObject(n)&&t.objectEach(n,function(t,n){e.setAttribute(n,t)}),r},t.splat=function(e){return t.isArray(e)?e:[e]},t.syncTimeout=function(t,e,n){if(e)return setTimeout(t,e,n);t.call(0,n)},t.clearTimeout=function(e){t.defined(e)&&clearTimeout(e)},t.extend=function(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t},t.pick=function(){var t,e,n=arguments,i=n.length;for(t=0;t<i;t++)if(void 0!==(e=n[t])&&null!==e)return e},t.css=function(e,n){t.isMS&&!t.svg&&n&&void 0!==n.opacity&&(n.filter="alpha(opacity="+100*n.opacity+")"),t.extend(e.style,n)},t.createElement=function(e,i,r,o,s){e=n.createElement(e);var a=t.css;return i&&t.extend(e,i),s&&a(e,{padding:0,border:"none",margin:0}),r&&a(e,r),o&&o.appendChild(e),e},t.extendClass=function(e,n){var i=function(){};return i.prototype=new e,t.extend(i.prototype,n),i},t.pad=function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||0)+t},t.relativeLength=function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},t.wrap=function(t,e,n){var i=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,r=this;return r.proceed=function(){i.apply(r,arguments.length?arguments:e)},t.unshift(i),t=n.apply(this,t),r.proceed=null,t}},t.formatSingle=function(e,n,i){var r=t.defaultOptions.lang;return/f$/.test(e)?(i=(i=e.match(/\.([0-9])/))?i[1]:-1,null!==n&&(n=t.numberFormat(n,i,r.decimalPoint,-1<e.indexOf(",")?r.thousandsSep:""))):n=(i||t.time).dateFormat(e,n),n},t.format=function(e,n,i){for(var r,o,s,a,c,l="{",h=!1,u=[];e&&-1!==(l=e.indexOf(l));){if(r=e.slice(0,l),h){for(a=(o=(r=r.split(":")).shift().split(".")).length,c=n,s=0;s<a;s++)c&&(c=c[o[s]]);r.length&&(c=t.formatSingle(r.join(":"),c,i)),u.push(c)}else u.push(r);e=e.slice(l+1),l=(h=!h)?"}":"{"}return u.push(e),u.join("")},t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},t.normalizeTickInterval=function(e,n,i,r,o){var s,a=e;for(s=e/(i=t.pick(i,1)),n||(n=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===i?n=t.grep(n,function(t){return 0==t%1}):.1>=i&&(n=[1/i]))),r=0;r<n.length&&(a=n[r],!(o&&a*i>=e||!o&&s<=(n[r]+(n[r+1]||n[r]))/2));r++);return t.correctFloat(a*i,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var n,i,r=t.length;for(i=0;i<r;i++)t[i].safeI=i;for(t.sort(function(t,i){return 0===(n=e(t,i))?t.safeI-i.safeI:n}),i=0;i<r;i++)delete t[i].safeI},t.arrayMin=function(t){for(var e=t.length,n=t[0];e--;)t[e]<n&&(n=t[e]);return n},t.arrayMax=function(t){for(var e=t.length,n=t[0];e--;)t[e]>n&&(n=t[e]);return n},t.destroyObjectProperties=function(e,n){t.objectEach(e,function(t,i){t&&t!==n&&t.destroy&&t.destroy(),delete e[i]})},t.discardElement=function(e){var n=t.garbageBin;n||(n=t.createElement("div")),e&&n.appendChild(e),n.innerHTML=""},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.setAnimation=function(e,n){n.renderer.globalAnimation=t.pick(e,n.options.chart.animation,!0)},t.animObject=function(e){return t.isObject(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(e,n,i,r){e=+e||0,n=+n;var o,s,a=t.defaultOptions.lang,c=(e.toString().split(".")[1]||"").split("e")[0].length,l=e.toString().split("e");return-1===n?n=Math.min(c,20):t.isNumber(n)?n&&l[1]&&0>l[1]&&(0<=(o=n+ +l[1])?(l[0]=(+l[0]).toExponential(o).split("e")[0],n=o):(l[0]=l[0].split(".")[0]||0,e=20>n?(l[0]*Math.pow(10,l[1])).toFixed(n):0,l[1]=0)):n=2,s=(Math.abs(l[1]?l[0]:e)+Math.pow(10,-Math.max(n,c)-1)).toFixed(n),o=3<(c=String(t.pInt(s))).length?c.length%3:0,i=t.pick(i,a.decimalPoint),r=t.pick(r,a.thousandsSep),e=(0>e?"-":"")+(o?c.substr(0,o)+r:""),e+=c.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+r),n&&(e+=i+s.slice(-n)),l[1]&&0!=+e&&(e+="e"+l[1]),e},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(e,n,r){return"width"===n?Math.max(0,Math.min(e.offsetWidth,e.scrollWidth)-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right")):"height"===n?Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom")):(i.getComputedStyle||t.error(27,!0),(e=i.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(n),t.pick(r,"opacity"!==n)&&(e=t.pInt(e))),e)},t.inArray=function(e,n,i){return(t.indexOfPolyfill||Array.prototype.indexOf).call(n,e,i)},t.grep=function(e,n){return(t.filterPolyfill||Array.prototype.filter).call(e,n)},t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var n,i=t.length;for(n=0;n<i;n++)if(e(t[n],n))return t[n]},t.some=function(e,n,i){return(t.somePolyfill||Array.prototype.some).call(e,n,i)},t.map=function(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n[i]=e.call(t[i],t[i],i,t);return n},t.keys=function(e){return(t.keysPolyfill||Object.keys).call(void 0,e)},t.reduce=function(e,n,i){return(t.reducePolyfill||Array.prototype.reduce).apply(e,2<arguments.length?[n,i]:[n])},t.offset=function(t){var e=n.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0}).top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},t.stop=function(e,n){for(var i=t.timers.length;i--;)t.timers[i].elem!==e||n&&n!==t.timers[i].prop||(t.timers[i].stopped=!0)},t.each=function(e,n,i){return(t.forEachPolyfill||Array.prototype.forEach).call(e,n,i)},t.objectEach=function(t,e,n){for(var i in t)t.hasOwnProperty(i)&&e.call(n||t[i],t[i],i,t)},t.addEvent=function(e,n,i,r){var o,s=e.addEventListener||t.addEventListenerPolyfill;return o="function"==typeof e&&e.prototype?e.prototype.protoEvents=e.prototype.protoEvents||{}:e.hcEvents=e.hcEvents||{},t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),s&&s.call(e,n,i,!1),o[n]||(o[n]=[]),o[n].push(i),r&&t.isNumber(r.order)&&(i.order=r.order,o[n].sort(function(t,e){return t.order-e.order})),function(){t.removeEvent(e,n,i)}},t.removeEvent=function(e,n,i){function r(n,i){var r=e.removeEventListener||t.removeEventListenerPolyfill;r&&r.call(e,n,i,!1)}function o(i){var o,s;e.nodeName&&(n?(o={})[n]=!0:o=i,t.objectEach(o,function(t,e){if(i[e])for(s=i[e].length;s--;)r(e,i[e][s])}))}var s,a;t.each(["protoEvents","hcEvents"],function(c){var l=e[c];l&&(n?(s=l[n]||[],i?(-1<(a=t.inArray(i,s))&&(s.splice(a,1),l[n]=s),r(n,i)):(o(l),l[n]=[])):(o(l),e[c]={}))})},t.fireEvent=function(e,i,r,o){var s,a,c,l,h;r=r||{},n.createEvent&&(e.dispatchEvent||e.fireEvent)?((s=n.createEvent("Events")).initEvent(i,!0,!0),t.extend(s,r),e.dispatchEvent?e.dispatchEvent(s):e.fireEvent(i,s)):t.each(["protoEvents","hcEvents"],function(n){if(e[n])for(a=e[n][i]||[],c=a.length,r.target||t.extend(r,{preventDefault:function(){r.defaultPrevented=!0},target:e,type:i}),l=0;l<c;l++)(h=a[l])&&!1===h.call(e,r)&&r.preventDefault()}),o&&!r.defaultPrevented&&o.call(e,r)},t.animate=function(e,n,i){var r,o,s,a,c="";t.isObject(i)||(i={duration:(a=arguments)[2],easing:a[3],complete:a[4]}),t.isNumber(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=t.merge(n),t.objectEach(n,function(a,l){t.stop(e,l),s=new t.Fx(e,i,l),o=null,"d"===l?(s.paths=s.initPath(e,e.d,n.d),s.toD=n.d,r=0,o=1):e.attr?r=e.attr(l):(r=parseFloat(t.getStyle(e,l))||0,"opacity"!==l&&(c="px")),o||(o=a),o&&o.match&&o.match("px")&&(o=o.replace(/px/g,"")),s.run(r,o,c)})},t.seriesType=function(e,n,i,r,o){var s=t.getOptions(),a=t.seriesTypes;return s.plotOptions[e]=t.merge(s.plotOptions[n],i),a[e]=t.extendClass(a[n]||function(){},r),a[e].prototype.type=e,o&&(a[e].prototype.pointClass=t.extendClass(t.Point,o)),a[e]},t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+t+"-"+e++}}(),i.jQuery&&(i.jQuery.fn.highcharts=function(){var n=[].slice.call(arguments);if(this[0])return n[0]?(new(t[t.isString(n[0])?n.shift():"Chart"])(this[0],n[0],n[1]),this):e[t.attr(this[0],"data-highcharts-chart")]})}(e),function(t){var e=t.each,n=t.isNumber,i=t.map,r=t.merge,o=t.pInt;t.Color=function(e){if(!(this instanceof t.Color))return new t.Color(e);this.init(e)},t.Color.prototype={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]}}],names:{none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000"},init:function(e){var n,r,o,s;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=i(e.stops,function(e){return new t.Color(e[1])});else if(e&&e.charAt&&"#"===e.charAt()&&(n=e.length,e=parseInt(e.substr(1),16),7===n?r=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===n&&(r=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!r)for(o=this.parsers.length;o--&&!r;)(n=(s=this.parsers[o]).regex.exec(e))&&(r=s.parse(n));this.rgba=r||[]},get:function(t){var i,o=this.input,s=this.rgba;return this.stops?((i=r(o)).stops=[].concat(i.stops),e(this.stops,function(e,n){i.stops[n]=[i.stops[n][0],e.get(t)]})):i=s&&n(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":o,i},brighten:function(t){var i,r=this.rgba;if(this.stops)e(this.stops,function(e){e.brighten(t)});else if(n(t)&&0!==t)for(i=0;3>i;i++)r[i]+=o(255*t),0>r[i]&&(r[i]=0),255<r[i]&&(r[i]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this},tweenTo:function(t,e){var n=this.rgba,i=t.rgba;return e=i.length&&n&&n.length?((t=1!==i[3]||1!==n[3])?"rgba(":"rgb(")+Math.round(i[0]+(n[0]-i[0])*(1-e))+","+Math.round(i[1]+(n[1]-i[1])*(1-e))+","+Math.round(i[2]+(n[2]-i[2])*(1-e))+(t?","+(i[3]+(n[3]-i[3])*(1-e)):"")+")":t.input||"none"}},t.color=function(e){return new t.Color(e)}}(e),function(t){var e,n,i=t.addEvent,r=t.animate,o=t.attr,s=t.charts,a=t.color,c=t.css,l=t.createElement,h=t.defined,u=t.deg2rad,p=t.destroyObjectProperties,d=t.doc,f=t.each,g=t.extend,m=t.erase,v=t.grep,y=t.hasTouch,b=t.inArray,x=t.isArray,A=t.isFirefox,w=t.isMS,C=t.isObject,T=t.isString,E=t.isWebKit,_=t.merge,S=t.noop,k=t.objectEach,M=t.pick,P=t.pInt,O=t.removeEvent,I=t.stop,L=t.svg,N=t.SVG_NS,R=t.symbolSizes,D=t.win;e=t.SVGElement=function(){return this},g(e.prototype,{opacity:1,SVG_NS:N,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),init:function(t,e){this.element="span"===e?l(e):d.createElementNS(this.SVG_NS,e),this.renderer=t},animate:function(e,n,i){return 0!==(n=t.animObject(M(n,this.renderer.globalAnimation,!0))).duration?(i&&(n.complete=i),r(this,e,n)):(this.attr(e,null,i),n.step&&n.step.call(this)),this},complexColor:function(e,n,i){var r,o,s,a,c,l,u,p,d,g,m,v,y=this.renderer,b=[];t.fireEvent(this.renderer,"complexColor",{args:arguments},function(){e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o&&(s=e[o],c=y.gradients,u=e.stops,g=i.radialReference,x(s)&&(e[o]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&g&&!h(s.gradientUnits)&&(a=s,s=_(s,y.getRadialAttr(g,a),{gradientUnits:"userSpaceOnUse"})),k(s,function(t,e){"id"!==e&&b.push(e,t)}),k(u,function(t){b.push(t)}),b=b.join(","),c[b]?m=c[b].attr("id"):(s.id=m=t.uniqueKey(),c[b]=l=y.createElement(o).attr(s).add(y.defs),l.radAttr=a,l.stops=[],f(u,function(e){0===e[1].indexOf("rgba")?(r=t.color(e[1]),p=r.get("rgb"),d=r.get("a")):(p=e[1],d=1),e=y.createElement("stop").attr({offset:e[0],"stop-color":p,"stop-opacity":d}).add(l),l.stops.push(e)})),v="url("+y.url+"#"+m+")",i.setAttribute(n,v),i.gradient=b,e.toString=function(){return v})})},applyTextOutline:function(e){var n,i,r,s,a,c=this.element;if(-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(c.style.fill))),e=e.split(" "),i=e[e.length-1],(r=e[0])&&"none"!==r&&t.svg){for(this.fakeTS=!0,e=[].slice.call(c.getElementsByTagName("tspan")),this.ySetter=this.xSetter,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,n){return 2*e+n}),a=e.length;a--;)"highcharts-text-outline"===(n=e[a]).getAttribute("class")&&m(e,c.removeChild(n));s=c.firstChild,f(e,function(t,e){0===e&&(t.setAttribute("x",c.getAttribute("x")),e=c.getAttribute("y"),t.setAttribute("y",e||0),null===e&&c.setAttribute("y",0)),t=t.cloneNode(1),o(t,{class:"highcharts-text-outline",fill:i,stroke:i,"stroke-width":r,"stroke-linejoin":"round"}),c.insertBefore(t,s)})}},attr:function(t,e,n,i){var r,o,s,a,c=this.element,l=this;return"string"==typeof t&&void 0!==e&&(r=t,(t={})[r]=e),"string"==typeof t?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,c):(k(t,function(e,n){s=!1,i||I(this,n),this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(n)&&(o||(this.symbolAttr(t),o=!0),s=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),s||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,c),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))},this),this.afterSetters()),n&&n.call(this),l},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(t,e,n){for(var i=this.shadows,r=i.length;r--;)n.call(i[r],"height"===t?Math.max(e-(i[r].cutHeight||0),0):"d"===t?this.d:e,t,i[r])},addClass:function(t,e){var n=this.attr("class")||"";return-1===n.indexOf(t)&&(e||(t=(n+(n?" ":"")+t).replace(" "," ")),this.attr("class",t)),this},hasClass:function(t){return-1!==b(t,(this.attr("class")||"").split(" "))},removeClass:function(t){return this.attr("class",(this.attr("class")||"").replace(t,""))},symbolAttr:function(t){var e=this;f("x y r start end width height innerR anchorX anchorY".split(" "),function(n){e[n]=M(t[n],e[n])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t,e){var n;return e=e||t.strokeWidth||0,n=Math.round(e)%2/2,t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),h(t.strokeWidth)&&(t.strokeWidth=e),t},css:function(t){var e,n,i=this.styles,r={},s=this.element,a="",l=!i,h=["textOutline","textOverflow","width"];return t&&t.color&&(t.fill=t.color),i&&k(t,function(t,e){t!==i[e]&&(r[e]=t,l=!0)}),l&&(i&&(t=g(i,r)),t&&(null===t.width||"auto"===t.width?delete this.textWidth:"text"===s.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=P(t.width))),this.styles=t,e&&!L&&this.renderer.forExport&&delete t.width,s.namespaceURI===this.SVG_NS?(n=function(t,e){return"-"+e.toLowerCase()},k(t,function(t,e){-1===b(e,h)&&(a+=e.replace(/([A-Z])/g,n)+":"+t+";")}),a&&o(s,"style",a)):c(s,t),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))),this},strokeWidth:function(){return this["stroke-width"]||0},on:function(t,e){var n=this,i=n.element;return y&&"click"===t?(i.ontouchstart=function(t){n.touchEventFired=Date.now(),t.preventDefault(),e.call(i,t)},i.onclick=function(t){(-1===D.navigator.userAgent.indexOf("Android")||1100<Date.now()-(n.touchEventFired||0))&&e.call(i,t)}):i["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,n=this.scaleX,i=this.scaleY,r=this.inverted,o=this.rotation,s=this.matrix,a=this.element;r&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],h(s)&&t.push("matrix("+s.join(",")+")"),r?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+M(this.rotationOriginX,a.getAttribute("x"),0)+" "+M(this.rotationOriginY,a.getAttribute("y")||0)+")"),(h(n)||h(i))&&t.push("scale("+M(n,1)+" "+M(i,1)+")"),t.length&&a.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,n){var i,r,o,s,a,c,l={};return o=(r=this.renderer).alignedObjects,t?(this.alignOptions=t,this.alignByTranslate=e,(!n||T(n))&&(this.alignTo=i=n||"renderer",m(o,this),o.push(this),n=null)):(t=this.alignOptions,e=this.alignByTranslate,i=this.alignTo),n=M(n,r[i],r),i=t.align,r=t.verticalAlign,o=(n.x||0)+(t.x||0),s=(n.y||0)+(t.y||0),"right"===i?a=1:"center"===i&&(a=2),a&&(o+=(n.width-(t.width||0))/a),l[e?"translateX":"x"]=Math.round(o),"bottom"===r?c=1:"middle"===r&&(c=2),c&&(s+=(n.height-(t.height||0))/c),l[e?"translateY":"y"]=Math.round(s),this[this.placed?"animate":"attr"](l),this.placed=!0,this.alignAttr=l,this},getBBox:function(t,e){var n,i,r,o,s,a=this.renderer,c=this.element,l=this.styles,p=this.textStr,d=a.cache,m=a.cacheKeys;if(i=(e=M(e,this.rotation))*u,r=l&&l.fontSize,h(p)&&(-1===(s=p.toString()).indexOf("<")&&(s=s.replace(/[0-9]/g,"0")),s+=["",e||0,r,this.textWidth,l&&l.textOverflow].join()),s&&!t&&(n=d[s]),!n){if(c.namespaceURI===this.SVG_NS||a.forExport){try{(o=this.fakeTS&&function(t){f(c.querySelectorAll(".highcharts-text-outline"),function(e){e.style.display=t})})&&o("none"),n=c.getBBox?g({},c.getBBox()):{width:c.offsetWidth,height:c.offsetHeight},o&&o("")}catch(t){}(!n||0>n.width)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(a.isSVG&&(t=n.width,a=n.height,l&&"11px"===l.fontSize&&17===Math.round(a)&&(n.height=a=14),e&&(n.width=Math.abs(a*Math.sin(i))+Math.abs(t*Math.cos(i)),n.height=Math.abs(a*Math.cos(i))+Math.abs(t*Math.sin(i)))),s&&0<n.height){for(;250<m.length;)delete d[m.shift()];d[s]||m.push(s),d[s]=n}}return n},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,n=this.renderer,i=this.element;return t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&n.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:n.box).appendChild(i),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t=this,e=t.element||{},n=t.renderer.isSVG&&"SPAN"===e.nodeName&&t.parentGroup,i=e.ownerSVGElement,r=t.clipPath;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,I(t),r&&i&&(f(i.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){var e=t.getAttribute("clip-path"),n=r.element.id;(-1<e.indexOf("(#"+n+")")||-1<e.indexOf('("#'+n+'")'))&&t.removeAttribute("clip-path")}),t.clipPath=r.destroy()),t.stops){for(i=0;i<t.stops.length;i++)t.stops[i]=t.stops[i].destroy();t.stops=null}for(t.safeRemoveChild(e),t.destroyShadows();n&&n.div&&0===n.div.childNodes.length;)e=n.parentGroup,t.safeRemoveChild(n.div),delete n.div,n=e;return t.alignTo&&m(t.renderer.alignedObjects,t),k(t,function(e,n){delete t[n]}),null},shadow:function(t,e,n){var i,r,s,a,c,l,h=[],u=this.element;if(t){if(!this.shadows){for(a=M(t.width,3),c=(t.opacity||.15)/a,l=this.parentInverted?"(-1,-1)":"("+M(t.offsetX,1)+", "+M(t.offsetY,1)+")",i=1;i<=a;i++)r=u.cloneNode(0),s=2*a+1-2*i,o(r,{isShadow:"true",stroke:t.color||"#000000","stroke-opacity":c*i,"stroke-width":s,transform:"translate"+l,fill:"none"}),n&&(o(r,"height",Math.max(o(r,"height")-s,0)),r.cutHeight=s),e?e.element.appendChild(r):u.parentNode&&u.parentNode.insertBefore(r,u),h.push(r);this.shadows=h}}else this.destroyShadows();return this},destroyShadows:function(){f(this.shadows||[],function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){return t=M(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,n){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(n.setAttribute(e,t),this[e]=t)},dashstyleSetter:function(t){var e,n=this["stroke-width"];if("inherit"===n&&(n=1),t=t&&t.toLowerCase()){for(e=(t=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(",")).length;e--;)t[e]=P(t[e])*n;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){this.alignValue=t,this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[t])},opacitySetter:function(t,e,n){this[e]=t,n.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=d.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(d.createTextNode(String(M(t),"").replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,n){"string"==typeof t?n.setAttribute(e,t):t&&this.complexColor(t,e,n)},visibilitySetter:function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var n,i,r,o,s=this.renderer,a=this.parentGroup,c=(a||s).element||s.box,l=this.element;if(s=c===s.box,n=this.added,h(t)?(l.setAttribute("data-z-index",t),t=+t,this[e]===t&&(n=!1)):h(this[e])&&l.removeAttribute("data-z-index"),this[e]=t,n){for((t=this.zIndex)&&a&&(a.handleZ=!0),o=(e=c.childNodes).length-1;0<=o&&!i;o--)n=(a=e[o]).getAttribute("data-z-index"),r=!h(n),a!==l&&(0>t&&r&&!s&&!o?(c.insertBefore(l,e[o]),i=!0):(P(n)<=t||r&&(!h(t)||0<=t))&&(c.insertBefore(l,e[o+1]||null),i=!0));i||(c.insertBefore(l,e[s?3:0]||null),i=!0)}return i},_defaultSetter:function(t,e,n){n.setAttribute(e,t)}}),e.prototype.yGetter=e.prototype.xGetter,e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.rotationSetter=e.prototype.verticalAlignSetter=e.prototype.rotationOriginXSetter=e.prototype.rotationOriginYSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=e.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter=function(t,n,i){this[n]=t,this.stroke&&this["stroke-width"]?(e.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===n&&0===t&&this.hasStroke&&(i.removeAttribute("stroke"),this.hasStroke=!1)},n=t.SVGRenderer=function(){this.init.apply(this,arguments)},g(n.prototype,{Element:e,SVG_NS:N,init:function(t,e,n,r,s,a){var l,h;l=(r=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(r))).element,t.appendChild(l),o(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&o(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=r,this.alignedObjects=[],this.url=(A||E)&&d.getElementsByTagName("base").length?D.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 6.1.1")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),A&&t.getBoundingClientRect&&((e=function(){c(t,{left:0,top:0}),h=t.getBoundingClientRect(),c(t,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})})(),this.unSubPixelFix=i(D,"resize",e))},getStyle:function(t){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},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},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:S,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},getSpanWidth:function(t){return t.getBBox(!0).width},applyEllipsis:function(t,e,n,i){var r,o,s=t.rotation,a=n,c=0,l=n.length,h=function(t){e.removeChild(e.firstChild),t&&e.appendChild(d.createTextNode(t))};if(t.rotation=0,o=(a=this.getSpanWidth(t,e))>i){for(;c<=l;)r=Math.ceil((c+l)/2),h(a=n.substring(0,r)+"…"),a=this.getSpanWidth(t,e),c===l?c=l+1:a>i?l=r-1:c=r;0===l&&h("")}return t.rotation=s,o},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(t){var e,n,i,r=t.element,s=this,a=s.forExport,l=M(t.textStr,"").toString(),h=-1!==l.indexOf("<"),u=r.childNodes,p=o(r,"x"),g=t.styles,m=t.textWidth,y=g&&g.lineHeight,x=g&&g.textOutline,A=g&&"ellipsis"===g.textOverflow,w=g&&"nowrap"===g.whiteSpace,C=g&&g.fontSize,T=u.length,E=(g=m&&!t.added&&this.box,function(t){var e;return e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:C||s.style.fontSize||12,y?P(y):s.fontMetrics(e,t.getAttribute("style")?t:r).h}),_=function(t,e){return k(s.escapes,function(n,i){e&&-1!==b(n,e)||(t=t.toString().replace(new RegExp(n,"g"),i))}),t},S=function(t,e){var n;if(n=t.indexOf("<"),-1!==(n=(t=t.substring(n,t.indexOf(">")-n)).indexOf(e+"="))&&(n=n+e.length+1,'"'===(e=t.charAt(n))||"'"===e))return(t=t.substring(n+1)).substring(0,t.indexOf(e))};if((n=[l,A,w,y,x,C,m].join())!==t.textCache){for(t.textCache=n;T--;)r.removeChild(u[T]);h||x||A||m||-1!==l.indexOf(" ")?(g&&g.appendChild(r),l=h?l.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[l],l=v(l,function(t){return""!==t}),f(l,function(n,l){var h,u=0;n=n.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||"),h=n.split("|||"),f(h,function(n){if(""!==n||1===h.length){var f,g,v={},y=d.createElementNS(s.SVG_NS,"tspan");if((f=S(n,"class"))&&o(y,"class",f),(f=S(n,"style"))&&(f=f.replace(/(;| |^)color([ :])/,"$1fill$2"),o(y,"style",f)),(g=S(n,"href"))&&!a&&(o(y,"onclick",'location.href="'+g+'"'),o(y,"class","highcharts-anchor"),c(y,{cursor:"pointer"}))," "!==(n=_(n.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(y.appendChild(d.createTextNode(n)),u?v.dx=0:l&&null!==p&&(v.x=p),o(y,v),r.appendChild(y),!u&&i&&(!L&&a&&c(y,{display:"block"}),o(y,"dy",E(y))),m){v=n.replace(/([^\^])-/g,"$1- ").split(" "),g=1<h.length||l||1<v.length&&!w;var b,x=[],C=E(y),T=t.rotation;for(A&&(e=s.applyEllipsis(t,y,n,m));!A&&g&&(v.length||x.length);)t.rotation=0,n=(b=s.getSpanWidth(t,y))>m,void 0===e&&(e=n),n&&1!==v.length?(y.removeChild(y.firstChild),x.unshift(v.pop())):(v=x,x=[],v.length&&!w&&(y=d.createElementNS(N,"tspan"),o(y,{dy:C,x:p}),f&&o(y,"style",f),r.appendChild(y)),b>m&&(m=b+1)),v.length&&y.appendChild(d.createTextNode(v.join(" ").replace(/- /g,"-")));t.rotation=T}u++}}}),i=i||r.childNodes.length}),A&&e&&t.attr("title",_(t.textStr,["&lt;","&gt;"])),g&&g.removeChild(r),x&&t.applyTextOutline&&t.applyTextOutline(x)):r.appendChild(d.createTextNode(_(l)))}},getContrast:function(t){return 510<(t=a(t).rgba)[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,n,r,o,s,a,c,l){var h,u,p,d,f=this.label(t,e,n,l,null,null,null,null,"button"),m=0;return f.attr(_({padding:8,r:2},o)),o=_({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},o),h=o.style,delete o.style,s=_(o,{fill:"#e6e6e6"},s),u=s.style,delete s.style,a=_(o,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a),p=a.style,delete a.style,c=_(o,{style:{color:"#cccccc"}},c),d=c.style,delete c.style,i(f.element,w?"mouseover":"mouseenter",function(){3!==m&&f.setState(1)}),i(f.element,w?"mouseout":"mouseleave",function(){3!==m&&f.setState(m)}),f.setState=function(t){1!==t&&(f.state=m=t),f.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),f.attr([o,s,a,c][t||0]).css([h,u,p,d][t||0])},f.attr(o).css(g({cursor:"default"},h)),f.on("click",function(t){3!==m&&r.call(f,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e={fill:"none"};return x(t)?e.d=t:C(t)&&g(e,t),this.createElement("path").attr(e)},circle:function(t,e,n){return t=C(t)?t:{x:t,y:e,r:n},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,n,i,r,o){return C(t)?(e=(i=t).y,n=i.r,t=i.x):i={innerR:i,start:r,end:o},(t=this.symbol("arc",t,e,n,n,i)).r=n,t},rect:function(t,e,n,i,r,s){r=C(t)?t.r:r;var a=this.createElement("rect");return t=C(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(i,0)},void 0!==s&&(t.strokeWidth=s,t=a.crisp(t)),t.fill="none",r&&(t.r=r),a.rSetter=function(t,e,n){o(n,{rx:t,ry:t})},a.attr(t)},setSize:function(t,e,n){var i=this.alignedObjects,r=i.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:M(n,!0)?void 0:0});r--;)i[r].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,n,r,o,s){var a,c={preserveAspectRatio:"none"},l=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},h=function(e){l(a.element,t),s.call(a,e)};return 1<arguments.length&&g(c,{x:e,y:n,width:r,height:o}),a=this.createElement("image").attr(c),s?(l(a.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),c=new D.Image,i(c,"load",h),c.src=t,c.complete&&h({})):l(a.element,t),a},symbol:function(t,e,n,i,r,o){var a,u,p,m=this,v=/^url\((.*?)\)$/,y=v.test(t),b=!y&&(this.symbols[t]?t:"circle"),x=b&&this.symbols[b],A=h(e)&&x&&x.call(this.symbols,Math.round(e),Math.round(n),i,r,o);return x?((a=this.path(A)).attr("fill","none"),g(a,{symbolName:b,x:e,y:n,width:i,height:r}),o&&g(a,o)):y&&(u=t.match(v)[1],(a=this.image(u)).imgwidth=M(R[u]&&R[u].width,o&&o.width),a.imgheight=M(R[u]&&R[u].height,o&&o.height),p=function(){a.attr({width:a.width,height:a.height})},f(["width","height"],function(t){a[t+"Setter"]=function(t,e){var n={},i=this["img"+e],r="width"===e?"translateX":"translateY";this[e]=t,h(i)&&(this.element&&this.element.setAttribute(e,i),this.alignByTranslate||(n[r]=((this[e]||0)-i)/2,this.attr(n)))}}),h(e)&&a.attr({x:e,y:n}),a.isImg=!0,h(a.imgwidth)&&h(a.imgheight)?p():(a.attr({width:0,height:0}),l("img",{onload:function(){var t=s[m.chartIndex];0===this.width&&(c(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this)),R[u]={width:this.width,height:this.height},a.imgwidth=this.width,a.imgheight=this.height,a.element&&p(),this.parentNode&&this.parentNode.removeChild(this),m.imgCount--,!m.imgCount&&t&&t.onload&&t.onload()},src:u}),this.imgCount++)),a},symbols:{circle:function(t,e,n,i){return this.arc(t+n/2,e+i/2,n/2,i/2,{start:0,end:2*Math.PI,open:!1})},square:function(t,e,n,i){return["M",t,e,"L",t+n,e,t+n,e+i,t,e+i,"Z"]},triangle:function(t,e,n,i){return["M",t+n/2,e,"L",t+n,e+i,t,e+i,"Z"]},"triangle-down":function(t,e,n,i){return["M",t,e,"L",t+n,e,t+n/2,e+i,"Z"]},diamond:function(t,e,n,i){return["M",t+n/2,e,"L",t+n,e+i/2,t+n/2,e+i,t,e+i/2,"Z"]},arc:function(t,e,n,i,r){var o=r.start,s=r.r||n,a=r.r||i||n,c=r.end-.001;n=r.innerR,i=M(r.open,.001>Math.abs(r.end-r.start-2*Math.PI));var l=Math.cos(o),u=Math.sin(o),p=Math.cos(c);return c=Math.sin(c),s=["M",t+s*l,e+a*u,"A",s,a,0,r=.001>r.end-o-Math.PI?0:1,1,t+s*p,e+a*c],h(n)&&s.push(i?"M":"L",t+n*p,e+n*c,"A",n,n,0,r,0,t+n*l,e+n*u),s.push(i?"":"Z"),s},callout:function(t,e,n,i,r){var o,s=Math.min(r&&r.r||0,n,i),a=s+6,c=r&&r.anchorX;return r=r&&r.anchorY,o=["M",t+s,e,"L",t+n-s,e,"C",t+n,e,t+n,e,t+n,e+s,"L",t+n,e+i-s,"C",t+n,e+i,t+n,e+i,t+n-s,e+i,"L",t+s,e+i,"C",t,e+i,t,e+i,t,e+i-s,"L",t,e+s,"C",t,e,t,e,t+s,e],c&&c>n?r>e+a&&r<e+i-a?o.splice(13,3,"L",t+n,r-6,t+n+6,r,t+n,r+6,t+n,e+i-s):o.splice(13,3,"L",t+n,i/2,c,r,t+n,i/2,t+n,e+i-s):c&&0>c?r>e+a&&r<e+i-a?o.splice(33,3,"L",t,r+6,t-6,r,t,r-6,t,e+s):o.splice(33,3,"L",t,i/2,c,r,t,i/2,t,e+s):r&&r>i&&c>t+a&&c<t+n-a?o.splice(23,3,"L",c+6,e+i,c,e+i+6,c-6,e+i,t+s,e+i):r&&0>r&&c>t+a&&c<t+n-a&&o.splice(3,3,"L",c-6,e,c,e-6,c+6,e,n-s,e),o}},clipRect:function(e,n,i,r){var o=t.uniqueKey(),s=this.createElement("clipPath").attr({id:o}).add(this.defs);return(e=this.rect(e,n,i,r,0).add(s)).id=o,e.clipPath=s,e.count=0,e},text:function(t,e,n,i){var r={};return!i||!this.allowHTML&&this.forExport?(r.x=Math.round(e||0),n&&(r.y=Math.round(n)),(t||0===t)&&(r.text=t),t=this.createElement("text").attr(r),i||(t.xSetter=function(t,e,n){var i,r,o=n.getElementsByTagName("tspan"),s=n.getAttribute(e);for(r=0;r<o.length;r++)(i=o[r]).getAttribute(e)===s&&i.setAttribute(e,t);n.setAttribute(e,t)}),t):this.html(t,e,n)},fontMetrics:function(t,e){return t=t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize,{h:e=24>(t=/px/.test(t)?P(t):/em/.test(t)?parseFloat(t)*(e?this.fontMetrics(null,e.parentNode).f:16):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,n){var i=t;return e&&n&&(i=Math.max(i*Math.cos(e*u),4)),{x:-t/3*Math.sin(e*u),y:i}},label:function(n,i,r,o,s,a,c,l,u){var p,d,m,v,y,b,x,A,w,C,T,E,S,k=this,M=k.g("button"!==u&&"label"),P=M.text=k.text("",0,0,c).attr({zIndex:1}),I=0,L=3,N=0,R={},D=/^url\((.*?)\)$/.test(o),B=D;u&&M.addClass("highcharts-"+u),B=D,C=function(){return(A||0)%2/2},T=function(){var t=P.element.style,e={};d=(void 0===m||void 0===v||x)&&h(P.textStr)&&P.getBBox(),M.width=(m||d.width||0)+2*L+N,M.height=(v||d.height||0)+2*L,w=L+k.fontMetrics(t&&t.fontSize,P).b,B&&(p||(M.box=p=k.symbols[o]||D?k.symbol(o):k.rect(),p.addClass(("button"===u?"":"highcharts-label-box")+(u?" highcharts-"+u+"-box":"")),p.add(M),t=C(),e.x=t,e.y=(l?-w:0)+t),e.width=Math.round(M.width),e.height=Math.round(M.height),p.attr(g(e,R)),R={})},E=function(){var t,e=N+L;t=l?0:w,h(m)&&d&&("center"===x||"right"===x)&&(e+={center:.5,right:1}[x]*(m-d.width)),e===P.x&&t===P.y||(P.attr("x",e),P.hasBoxWidthChanged&&(d=P.getBBox(!0),T()),void 0!==t&&P.attr("y",t)),P.x=e,P.y=t},S=function(t,e){p?p.attr(t,e):R[t]=e},M.onAdd=function(){P.add(M),M.attr({text:n||0===n?n:"",x:i,y:r}),p&&h(s)&&M.attr({anchorX:s,anchorY:a})},M.widthSetter=function(e){m=t.isNumber(e)?e:null},M.heightSetter=function(t){v=t},M["text-alignSetter"]=function(t){x=t},M.paddingSetter=function(t){h(t)&&t!==L&&(L=M.padding=t,E())},M.paddingLeftSetter=function(t){h(t)&&t!==N&&(N=t,E())},M.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==I&&(I=t,d&&M.attr({x:y}))},M.textSetter=function(t){void 0!==t&&P.textSetter(t),T(),E()},M["stroke-widthSetter"]=function(t,e){t&&(B=!0),A=this["stroke-width"]=t,S(e,t)},M.strokeSetter=M.fillSetter=M.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(B=!0),M[e]=t),S(e,t)},M.anchorXSetter=function(t,e){s=M.anchorX=t,S(e,Math.round(t)-C()-y)},M.anchorYSetter=function(t,e){a=M.anchorY=t,S(e,t-b)},M.xSetter=function(t){M.x=t,I&&(t-=I*((m||d.width)+2*L),M["forceAnimate:x"]=!0),y=Math.round(t),M.attr("translateX",y)},M.ySetter=function(t){b=M.y=Math.round(t),M.attr("translateY",b)};var j=M.css;return g(M,{css:function(t){if(t){var e={};t=_(t),f(M.textProps,function(n){void 0!==t[n]&&(e[n]=t[n],delete t[n])}),P.css(e),"width"in e&&T()}return j.call(M,t)},getBBox:function(){return{width:d.width+2*L,height:d.height+2*L,x:d.x-L,y:d.y-L}},shadow:function(t){return t&&(T(),p&&p.shadow(t)),M},destroy:function(){O(M.element,"mouseenter"),O(M.element,"mouseleave"),P&&(P=P.destroy()),p&&(p=p.destroy()),e.prototype.destroy.call(M),M=k=T=E=S=null}})}}),t.Renderer=n}(e),function(t){var e=t.attr,n=t.createElement,i=t.css,r=t.defined,o=t.each,s=t.extend,a=t.isFirefox,c=t.isMS,l=t.isWebKit,h=t.pick,u=t.pInt,p=t.SVGRenderer,d=t.win,f=t.wrap;s(t.SVGElement.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.htmlUpdateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=s(this.styles,t),i(this.element,t),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,s=this.translateY||0,a=this.x||0,c=this.y||0,l=this.textAlign||"left",h={left:0,center:.5,right:1}[l],p=(f=this.styles)&&f.whiteSpace;if(i(e,{marginLeft:n,marginTop:s}),this.shadows&&o(this.shadows,function(t){i(t,{marginLeft:n+1,marginTop:s+1})}),this.inverted&&o(e.childNodes,function(n){t.invertChild(n,e)}),"SPAN"===e.tagName){var d,f=this.rotation,g=this.textWidth&&u(this.textWidth),m=[f,l,e.innerHTML,this.textWidth,this.textAlign].join();(d=g!==this.oldTextWidth)&&!(d=g>this.oldTextWidth)&&((d=this.textPxLength)||(i(e,{width:"",whiteSpace:p||"nowrap"}),d=e.offsetWidth),d=d>g),d&&/[ \-]/.test(e.textContent||e.innerText)?(i(e,{width:g+"px",display:"block",whiteSpace:p||"normal"}),this.oldTextWidth=g,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,m!==this.cTT&&(p=t.fontMetrics(e.style.fontSize).b,r(f)&&f!==(this.oldRotation||0)&&this.setSpanRotation(f,h,p),this.getSpanCorrection(!r(f)&&this.textPxLength||e.offsetWidth,p,h,f,l)),i(e,{left:a+(this.xCorr||0)+"px",top:c+(this.yCorr||0)+"px"}),this.cTT=m,this.oldRotation=f}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,n){var r={},o=this.renderer.getTransformKey();r[o]=r.transform="rotate("+t+"deg)",r[o+(a?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",i(this.element,r)},getSpanCorrection:function(t,e,n){this.xCorr=-t*n,this.yCorr=-e}}),s(p.prototype,{getTransformKey:function(){return c&&!/Edge/.test(d.navigator.userAgent)?"-ms-transform":l?"-webkit-transform":a?"MozTransform":d.opera?"-o-transform":""},html:function(t,i,r){var a=this.createElement("span"),c=a.element,l=a.renderer,u=l.isSVG,p=function(t,e){o(["opacity","visibility"],function(n){f(t,n+"Setter",function(t,n,i,r){t.call(this,n,i,r),e[i]=n})}),t.addedSetters=!0};return a.textSetter=function(t){t!==c.innerHTML&&delete this.bBox,this.textStr=t,c.innerHTML=h(t,""),a.doTransform=!0},u&&p(a,a.element.style),a.xSetter=a.ySetter=a.alignSetter=a.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),a[e]=t,a.doTransform=!0},a.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},a.attr({text:t,x:Math.round(i),y:Math.round(r)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),c.style.whiteSpace="nowrap",a.css=a.htmlCss,u&&(a.add=function(t){var i,r=l.box.parentNode,h=[];if(this.parentGroup=t){if(!(i=t.div)){for(;t;)h.push(t),t=t.parentGroup;o(h.reverse(),function(t){function o(e,n){t[n]=e,"translateX"===n?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var c,l=e(t.element,"class");l&&(l={className:l}),i=t.div=t.div||n("div",l,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},i||r),c=i.style,s(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(i),on:function(){return h[0].div&&a.on.apply({element:h[0].div},arguments),t},translateXSetter:o,translateYSetter:o}),t.addedSetters||p(t,c)})}}else i=r;return i.appendChild(c),a.added=!0,a.alignOnAdd&&a.htmlUpdateTransform(),a}),a}})}(e),function(t){var e=t.defined,n=t.each,i=t.extend,r=t.merge,o=t.pick,s=t.timeUnits,a=t.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{},update:function(e){var n=o(e&&e.useUTC,!0),i=this;this.options=e=r(!0,this.options||{},e),this.Date=e.Date||a.Date,this.timezoneOffset=(this.useUTC=n)&&e.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(n&&!e.getTimezoneOffset&&!e.timezone))||this.timezoneOffset?(this.get=function(t,e){var n=e.getTime(),r=n-i.getTimezoneOffset(e);return e.setTime(r),t=e["getUTC"+t](),e.setTime(n),t},this.set=function(e,n,r){var o;-1!==t.inArray(e,["Milliseconds","Seconds","Minutes"])?n["set"+e](r):(o=i.getTimezoneOffset(n),o=n.getTime()-o,n.setTime(o),n["setUTC"+e](r),e=i.getTimezoneOffset(n),o=n.getTime()+e,n.setTime(o))}):n?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,n){return e["setUTC"+t](n)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,n){return e["set"+t](n)})},makeTime:function(e,n,i,r,s,a){var c,l,h;return this.useUTC?(c=this.Date.UTC.apply(0,arguments),c+=l=this.getTimezoneOffset(c),l!==(h=this.getTimezoneOffset(c))?c+=h-l:l-36e5!==this.getTimezoneOffset(c-36e5)||t.isSafari||(c-=36e5)):c=new this.Date(e,n,o(i,1),o(r,0),o(s,0),o(a,0)).getTime(),c},timezoneOffsetFunction:function(){var e=this,n=this.options,i=a.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(n.timezone){if(i)return function(t){return 6e4*-i.tz(t,n.timezone).utcOffset()};t.error(25)}return this.useUTC&&n.getTimezoneOffset?function(t){return 6e4*n.getTimezoneOffset(t)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(e,n,i){if(!t.defined(n)||isNaN(n))return t.defaultOptions.lang.invalidDate||"";e=t.pick(e,"%Y-%m-%d %H:%M:%S");var r=this,o=new this.Date(n),s=this.get("Hours",o),a=this.get("Day",o),c=this.get("Date",o),l=this.get("Month",o),h=this.get("FullYear",o),u=t.defaultOptions.lang,p=u.weekdays,d=u.shortWeekdays,f=t.pad;return o=t.extend({a:d?d[a]:p[a].substr(0,3),A:p[a],d:f(c),e:f(c,2," "),w:a,b:u.shortMonths[l],B:u.months[l],m:f(l+1),o:l+1,y:h.toString().substr(2,2),Y:h,H:f(s),k:s,I:f(s%12||12),l:s%12||12,M:f(r.get("Minutes",o)),p:12>s?"AM":"PM",P:12>s?"am":"pm",S:f(o.getSeconds()),L:f(Math.round(n%1e3),3)},t.dateFormats),t.objectEach(o,function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(r,n):t)}),i?e.substr(0,1).toUpperCase()+e.substr(1):e},getTimeTicks:function(t,r,a,c){var l,h,u=this,p=[],d={},f=new u.Date(r),g=t.unitRange,m=t.count||1;if(e(r)){u.set("Milliseconds",f,g>=s.second?0:m*Math.floor(u.get("Milliseconds",f)/m)),g>=s.second&&u.set("Seconds",f,g>=s.minute?0:m*Math.floor(u.get("Seconds",f)/m)),g>=s.minute&&u.set("Minutes",f,g>=s.hour?0:m*Math.floor(u.get("Minutes",f)/m)),g>=s.hour&&u.set("Hours",f,g>=s.day?0:m*Math.floor(u.get("Hours",f)/m)),g>=s.day&&u.set("Date",f,g>=s.month?1:m*Math.floor(u.get("Date",f)/m)),g>=s.month&&(u.set("Month",f,g>=s.year?0:m*Math.floor(u.get("Month",f)/m)),l=u.get("FullYear",f)),g>=s.year&&u.set("FullYear",f,l-l%m),g===s.week&&u.set("Date",f,u.get("Date",f)-u.get("Day",f)+o(c,1)),l=u.get("FullYear",f),c=u.get("Month",f);var v=u.get("Date",f),y=u.get("Hours",f);for(r=f.getTime(),u.variableTimezone&&(h=a-r>4*s.month||u.getTimezoneOffset(r)!==u.getTimezoneOffset(a)),f=f.getTime(),r=1;f<a;)p.push(f),f=g===s.year?u.makeTime(l+r*m,0):g===s.month?u.makeTime(l,c+r*m):!h||g!==s.day&&g!==s.week?h&&g===s.hour&&1<m?u.makeTime(l,c,v,y+r*m):f+g*m:u.makeTime(l,c,v+r*m*(g===s.day?1:7)),r++;p.push(f),g<=s.hour&&1e4>p.length&&n(p,function(t){0==t%18e5&&"000000000"===u.dateFormat("%H%M%S%L",t)&&(d[t]="day")})}return p.info=i(t,{higherRanks:d,totalRange:g*m}),p}}}(e),function(t){var e=t.color,n=t.merge;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January F