text: ﻿var HighchartsAdapter=function(){function d(j){function h(l,m,n){l.removeEventListener(m,n,!1)}function k(l,m,n){n=l.HCProxiedMethods[n.toString()];l.detachEvent("on"+m,n)}function i(l,m){var n=l.HCEvents,p,o,r,q;if(l.removeEventListener){p=h}else{if(l.attachEvent){p=k}else{return}}m?(o={},o[m]=!0):o=n;for(q in o){if(n[q]){for(r=n[q].length;r--;){p(l,q,n[q][r])}}}}j.HCExtended||Highcharts.extend(j,{HCExtended:!0,HCEvents:{},bind:function(m,l){var o=this,n=this.HCEvents,p;if(o.addEventListener){o.addEventListener(m,l,!1)}else{if(o.attachEvent){p=function(q){l.call(o,q)};if(!o.HCProxiedMethods){o.HCProxiedMethods={}}o.HCProxiedMethods[l.toString()]=p;o.attachEvent("on"+m,p)}}n[m]===g&&(n[m]=[]);n[m].push(l)},unbind:function(l,n){var m,o;l?(m=this.HCEvents[l]||[],n?(o=HighchartsAdapter.inArray(n,m),o>-1&&(m.splice(o,1),this.HCEvents[l]=m),this.removeEventListener?h(this,l,n):this.attachEvent&&k(this,l,n)):(i(this,l),this.HCEvents[l]=[])):(i(this),this.HCEvents={})},trigger:function(m,l){var o=this.HCEvents[m]||[],n=o.length,p,r,q;r=function(){l.defaultPrevented=!0};for(p=0;p<n;p++){q=o[p];if(l.stopped){break}l.preventDefault=r;l.target=this;l.type=m;q.call(this,l)===!1&&l.preventDefault()}}});return j}var g,a=document,e=[],b=[],f,c;Math.easeInOutSine=function(j,h,k,i){return -k/2*(Math.cos(Math.PI*j/i)-1)+h};return{init:function(h){if(!a.defaultView){this._getStyle=function(i,k){var j;return i.style[k]?i.style[k]:(k==="opacity"&&(k="filter"),j=i.currentStyle[k.replace(/\-(\w)/g,function(l,m){return m.toUpperCase()})],k==="filter"&&(j=j.replace(/alpha\(opacity=([0-9]+)\)/,function(m,l){return l/100})),j===""?1:j)},this.adapterRun=function(i,k){var j={width:"clientWidth",height:"clientHeight"}[k];if(j){return i.style.zoom=1,i[j]-2*parseInt(HighchartsAdapter._getStyle(i,"padding"),10)}}}if(!Array.prototype.forEach){this.each=function(i,l){for(var j=0,k=i.length;j<k;j++){if(l.call(i[j],i[j],j,i)===!1){return j}}}}if(!Array.prototype.indexOf){this.inArray=function(i,l){var j,k=0;if(l){for(j=l.length;k<j;k++){if(l[k]===i){return k}}}return -1}}if(!Array.prototype.filter){this.grep=function(i,l){for(var j=[],k=0,m=i.length;k<m;k++){l(i[k],k)&&j.push(i[k])}return j}}c=function(i,k,j){this.options=k;this.elem=i;this.prop=j};c.prototype={update:function(){var i;i=this.paths;var k=this.elem,j=k.element;i&&j?k.attr("d",h.step(i[0],i[1],this.now,this.toD)):k.attr?j&&k.attr(this.prop,this.now):(i={},i[k]=this.now+this.unit,Highcharts.css(k,i));this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(i,k,j){var l=this,n=function(o){return l.step(o)},m;this.startTime=+new Date;this.start=i;this.end=k;this.unit=j;this.now=this.start;this.pos=this.state=0;n.elem=this.elem;n()&&b.push(n)===1&&(f=setInterval(function(){for(m=0;m<b.length;m++){b[m]()||b.splice(m--,1)}b.length||clearInterval(f)},13))},step:function(i){var k=+new Date,j;j=this.options;var l;if(this.elem.stopAnimation){j=!1}else{if(i||k>=j.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();i=this.options.curAnim[this.prop]=!0;for(l in j.curAnim){j.curAnim[l]!==!0&&(i=!1)}i&&j.complete&&j.complete.call(this.elem);j=!1}else{l=k-this.startTime,this.state=l/j.duration,this.pos=j.easing(l,0,1,j.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),j=!0}}return j}};this.animate=function(j,l,k){var m,p="",n,q,o;j.stopAnimation=!1;if(typeof k!=="object"||k===null){m=arguments,k={duration:m[2],easing:m[3],complete:m[4]}}if(typeof k.duration!=="number"){k.duration=400}k.easing=Math[k.easing]||Math.easeInOutSine;k.curAnim=Highcharts.extend({},l);for(o in l){q=new c(j,k,o),n=null,o==="d"?(q.paths=h.init(j,j.d,l.d),q.toD=l.d,m=0,n=1):j.attr?m=j.attr(o):(m=parseFloat(HighchartsAdapter._getStyle(j,o))||0,o!=="opacity"&&(p="px")),n||(n=parseFloat(l[o])),q.custom(m,n,p)}}},_getStyle:function(i,h){return window.getComputedStyle(i).getPropertyValue(h)},getScript:function(j,h){var k=a.getElementsByTagName("head")[0],i=a.createElement("script");i.type="text/javascript";i.src=j;i.onload=h;k.appendChild(i)},inArray:function(i,h){return h.indexOf?h.indexOf(i):e.indexOf.call(h,i)},adapterRun:function(i,h){return parseInt(HighchartsAdapter._getStyle(i,h),10)},grep:function(i,h){return e.filter.call(i,h)},map:function(j,h){for(var k=[],i=0,l=j.length;i<l;i++){k[i]=h.call(j[i],j[i],i,j)}return k},offset:function(i){for(var h=0,j=0;i;){h+=i.offsetLeft,j+=i.offsetTop,i=i.offsetParent}return{left:h,top:j}},addEvent:function(i,h,j){d(i).bind(h,j)},removeEvent:function(i,h,j){d(i).unbind(h,j)},fireEvent:function(j,h,k,i){var l;a.createEvent&&(j.dispatchEvent||j.fireEvent)?(l=a.createEvent("Events"),l.initEvent(h,!0,!0),l.target=j,Highcharts.extend(l,k),j.dispatchEvent?j.dispatchEvent(l):j.fireEvent(h,l)):j.HCExtended===!0&&(k=k||{},j.trigger(h,k));k&&k.defaultPrevented&&(i=null);i&&i(k)},washMouseEvent:function(h){return h},stop:function(h){h.stopAnimation=!0},each:function(i,h){return Array.prototype.forEach.call(i,h)}}}();