!function(t){t.color={},t.color.make=function(i,e,o,n){var r={};return r.r=i||0,r.g=e||0,r.b=o||0,r.a=null!=n?n:1,r.add=function(t,i){for(var e=0;e=1?"rgb("+[r.r,r.g,r.b].join(",")+")":"rgba("+[r.r,r.g,r.b,r.a].join(",")+")"},r.normalize=function(){function t(t,i,e){return ie?e:i}return r.r=t(0,parseInt(r.r),255),r.g=t(0,parseInt(r.g),255),r.b=t(0,parseInt(r.b),255),r.a=t(0,r.a,1),r},r.clone=function(){return t.color.make(r.r,r.b,r.g,r.a)},r.normalize()},t.color.extract=function(i,e){var o;do{if(""!=(o=i.css(e).toLowerCase())&&"transparent"!=o)break;i=i.parent()}while(!t.nodeName(i.get(0),"body"));return"rgba(0, 0, 0, 0)"==o&&(o="transparent"),t.color.parse(o)},t.color.parse=function(e){var o,n=t.color.make;if(o=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))return n(parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10));if(o=/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*\)/.exec(e))return n(parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10),parseFloat(o[4]));if(o=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))return n(2.55*parseFloat(o[1]),2.55*parseFloat(o[2]),2.55*parseFloat(o[3]));if(o=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(e))return n(2.55*parseFloat(o[1]),2.55*parseFloat(o[2]),2.55*parseFloat(o[3]),parseFloat(o[4]));if(o=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))return n(parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16));if(o=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))return n(parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16));if("string"==typeof e)var r=e.trim().toLowerCase();else r="";return"transparent"==r?n(255,255,255,0):n((o=i[r]||[0,0,0])[0],o[1],o[2])};var i={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(t){var i=Object.prototype.hasOwnProperty;function e(i,e){var o=e.children("."+i)[0];if(null==o&&((o=document.createElement("canvas")).className=i,t(o).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(e),!o.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");o=window.G_vmlCanvasManager.initElement(o)}this.element=o;var n=this.context=o.getContext("2d"),r=window.devicePixelRatio||1,a=n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1;this.pixelRatio=r/a,this.resize(e.width(),e.height()),this.textContainer=null,this.text={},this._textCache={}}function o(i,o,n,r){var a=[],l={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},s=null,c=null,f=null,h=null,u=null,d=[],p=[],m={left:0,right:0,top:0,bottom:0},x=0,g=0,b={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},v=this;function k(t,i){i=[v].concat(i);for(var e=0;eo&&(o=n))}e<=o&&(e=o+1);var r,s=[],c=l.colors,f=c.length,h=0;for(i=0;i=0?h<.5?-h-.2:0:-h),s[i]=r.scale("rgb",1+h);var u,m=0;for(i=0;it.datamax&&e!=x&&(t.datamax=e)}for(t.each(T(),function(t,i){i.datamin=p,i.datamax=m,i.used=!1}),i=0;i0&&null!=l[o-s]&&l[o-s]!=l[o]&&l[o-s+1]!=l[o+1]){for(n=0;nS&&(S=c)),f.y&&(cW&&(W=c)));if(r.bars.show){var z;switch(r.bars.align){case"left":z=0;break;case"right":z=-r.bars.barWidth;break;case"center":z=-r.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+r.bars.align)}r.bars.horizontal?(C+=z,W+=z+r.bars.barWidth):(M+=z,S+=z+r.bars.barWidth)}g(r.xaxis,M,S),g(r.yaxis,C,W)}t.each(T(),function(t,i){i.datamin==p&&(i.datamin=null),i.datamax==m&&(i.datamax=null)})}()}function w(t,i){var e=t[i+"axis"];return"object"==typeof e&&(e=e.n),"number"!=typeof e&&(e=1),e}function T(){return t.grep(d.concat(p),function(t){return t})}function M(t){var i,e,o={};for(i=0;i=0&&(e=0),null==i.max&&(o+=n*a)>0&&null!=t.datamax&&t.datamax<=0&&(o=0))}t.min=e,t.max=o}(i)}),n){var f=t.grep(o,function(t){return t.reserveSpace});for(t.each(f,function(t,i){!function(t){var i,e=t.options;i="number"==typeof e.ticks&&e.ticks>0?e.ticks:.3*Math.sqrt("x"==t.direction?s.width:s.height);var o=(t.max-t.min)/i,n=-Math.floor(Math.log(o)/Math.LN10),r=e.tickDecimals;null!=r&&n>r&&(n=r);var a,l=Math.pow(10,-n),c=o/l;c<1.5?a=1:c<3?(a=2,c>2.25&&(null==r||n+1<=r)&&(a=2.5,++n)):a=c<7.5?5:10;a*=l,null!=e.minTickSize&&a0&&(null==e.min&&(t.min=Math.min(t.min,h[0])),null==e.max&&h.length>1&&(t.max=Math.max(t.max,h[h.length-1]))),t.tickGenerator=function(t){var i,e,o=[];for(e=0;e1&&/\..*0$/.test((m[1]-m[0]).toFixed(u))||(t.tickDecimals=u)}}}}(i),function(t){var i,e,o=t.options.ticks,n=[];null==o||"number"==typeof o&&o>0?n=t.tickGenerator(t):o&&(n="function"==typeof o?o(t):o);for(t.ticks=[],i=0;i1&&(r=a[1])):e=+a,null==r&&(r=t.tickFormatter(e,t)),isNaN(e)||t.ticks.push({v:e,label:r})}}(i),function(t,i){t.options.autoscaleMargin&&i.length>0&&(null==t.options.min&&(t.min=Math.min(t.min,i[0].v)),null==t.options.max&&i.length>1&&(t.max=Math.max(t.max,i[i.length-1].v)))}(i,i.ticks),function(t){var i=t.options,e=t.ticks||[],o=i.labelWidth||0,n=i.labelHeight||0,r=o||"x"==t.direction?Math.floor(s.width/(e.length||1)):null;legacyStyles=t.direction+"Axis "+t.direction+t.n+"Axis",layer="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+legacyStyles,font=i.font||"flot-tick-label tickLabel";for(var a=0;a=0;--e)S(f[e]);!function(){var i,e=l.grid.minBorderMargin,o={x:0,y:0};if(null==e)for(e=0,i=0;ii.max||("x"==i.direction?(r="center",o=m.left+i.p2c(e.v),"bottom"==i.position?n=l.top+l.padding:(n=l.top+l.height-l.padding,a="bottom")):(a="middle",n=m.top+i.p2c(e.v),"left"==i.position?(o=l.left+l.width-l.padding,r="right"):o=l.left+l.padding),s.addText(f,o,n,e.label,h,null,null,r,a))}}),function(){if(i.find(".legend").remove(),!l.legend.show)return;for(var e,o,n=[],r=[],s=!1,c=l.legend.labelFormatter,f=0;f"),n.push(""),s=!0),n.push('
'+u.label+"")}s&&n.push("");if(0==n.length)return;var d=''+n.join("")+"
";if(null!=l.legend.container)t(l.legend.container).html(d);else{var p="",x=l.legend.position,g=l.legend.margin;null==g[0]&&(g=[g,g]),"n"==x.charAt(0)?p+="top:"+(g[1]+m.top)+"px;":"s"==x.charAt(0)&&(p+="bottom:"+(g[1]+m.bottom)+"px;"),"e"==x.charAt(1)?p+="right:"+(g[0]+m.right)+"px;":"w"==x.charAt(1)&&(p+="left:"+(g[0]+m.left)+"px;");var b=t('
'+d.replace('style="','style="position:absolute;'+p+";")+"
").appendTo(i);if(0!=l.legend.backgroundOpacity){var v=l.legend.backgroundColor;null==v&&((v=(v=l.grid.backgroundColor)&&"string"==typeof v?t.color.parse(v):t.color.extract(b,"background-color")).a=1,v=v.toString());var k=b.children();t('
').prependTo(b).css("opacity",l.legend.backgroundOpacity)}}}()}function z(){s.clear(),k(b.drawBackground,[h]);var t=l.grid;t.show&&t.backgroundColor&&(h.save(),h.translate(m.left,m.top),h.fillStyle=q(l.grid.backgroundColor,g,0,"rgba(255, 255, 255, 0)"),h.fillRect(0,0,x,g),h.restore()),t.show&&!t.aboveData&&A();for(var i=0;in){var s=o;o=n,n=s}return{from:o,to:n,axis:e}}function A(){var t,i,e,o;h.save(),h.translate(m.left,m.top);var n=l.grid.markings;if(n)for("function"==typeof n&&((i=v.getAxes()).xmin=i.xaxis.min,i.xmax=i.xaxis.max,i.ymin=i.yaxis.min,i.ymax=i.yaxis.max,n=n(i)),t=0;ta.axis.max||s.tos.axis.max||(a.from=Math.max(a.from,a.axis.min),a.to=Math.min(a.to,a.axis.max),s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),a.from==a.to&&s.from==s.to||(a.from=a.axis.p2c(a.from),a.to=a.axis.p2c(a.to),s.from=s.axis.p2c(s.from),s.to=s.axis.p2c(s.to),a.from==a.to||s.from==s.to?(h.beginPath(),h.strokeStyle=r.color||l.grid.markingsColor,h.lineWidth=r.lineWidth||l.grid.markingsLineWidth,h.moveTo(a.from,s.from),h.lineTo(a.to,s.to),h.stroke()):(h.fillStyle=r.color||l.grid.markingsColor,h.fillRect(a.from,s.to,a.to-a.from,s.from-s.to))))}i=T(),e=l.grid.borderWidth;for(var c=0;cb.max||"full"==y&&("object"==typeof e&&e[b.position]>0||e>0)&&(w==b.min||w==b.max)||("x"==b.direction?(f=b.p2c(w),p="full"==y?-g:y,"top"==b.position&&(p=-p)):(u=b.p2c(w),d="full"==y?-x:y,"left"==b.position&&(d=-d)),1==h.lineWidth&&("x"==b.direction?f=Math.floor(f)+.5:u=Math.floor(u)+.5),h.moveTo(f,u),h.lineTo(f+d,u+p))}h.stroke()}}e&&(o=l.grid.borderColor,"object"==typeof e||"object"==typeof o?("object"!=typeof e&&(e={top:e,right:e,bottom:e,left:e}),"object"!=typeof o&&(o={top:o,right:o,bottom:o,left:o}),e.top>0&&(h.strokeStyle=o.top,h.lineWidth=e.top,h.beginPath(),h.moveTo(0-e.left,0-e.top/2),h.lineTo(x,0-e.top/2),h.stroke()),e.right>0&&(h.strokeStyle=o.right,h.lineWidth=e.right,h.beginPath(),h.moveTo(x+e.right/2,0-e.top),h.lineTo(x+e.right/2,g),h.stroke()),e.bottom>0&&(h.strokeStyle=o.bottom,h.lineWidth=e.bottom,h.beginPath(),h.moveTo(x+e.right,g+e.bottom/2),h.lineTo(0,g+e.bottom/2),h.stroke()),e.left>0&&(h.strokeStyle=o.left,h.lineWidth=e.left,h.beginPath(),h.moveTo(0-e.left/2,g+e.bottom),h.lineTo(0-e.left/2,0),h.stroke())):(h.lineWidth=e,h.strokeStyle=l.grid.borderColor,h.strokeRect(-e/2,-e/2,x+e,g+e))),h.restore()}function P(t){t.lines.show&&function(t){function i(t,i,e,o,n){var r=t.points,a=t.pointsize,l=null,s=null;h.beginPath();for(var c=a;c=p&&u>n.max){if(p>n.max)continue;f=(n.max-u)/(p-u)*(d-f)+f,u=n.max}else if(p>=u&&p>n.max){if(u>n.max)continue;d=(n.max-u)/(p-u)*(d-f)+f,p=n.max}if(f<=d&&f=d&&f>o.max){if(d>o.max)continue;u=(o.max-f)/(d-f)*(p-u)+u,f=o.max}else if(d>=f&&d>o.max){if(f>o.max)continue;p=(o.max-f)/(d-f)*(p-u)+u,d=o.max}f==l&&u==s||h.moveTo(o.p2c(f)+i,n.p2c(u)+e),l=d,s=p,h.lineTo(o.p2c(d)+i,n.p2c(p)+e)}}h.stroke()}h.save(),h.translate(m.left,m.top),h.lineJoin="round";var e=t.lines.lineWidth,o=t.shadowSize;if(e>0&&o>0){h.lineWidth=o,h.strokeStyle="rgba(0,0,0,0.1)";var n=Math.PI/18;i(t.datapoints,Math.sin(n)*(e/2+o/2),Math.cos(n)*(e/2+o/2),t.xaxis,t.yaxis),h.lineWidth=o/2,i(t.datapoints,Math.sin(n)*(e/2+o/4),Math.cos(n)*(e/2+o/4),t.xaxis,t.yaxis)}h.lineWidth=e,h.strokeStyle=t.color;var r=N(t.lines,t.color,0,g);r&&(h.fillStyle=r,function(t,i,e){var o=t.points,n=t.pointsize,r=Math.min(Math.max(0,e.min),e.max),a=0,l=!1,s=1,c=0,f=0;for(;!(n>0&&a>o.length+n);){var u=o[(a+=n)-n],d=o[a-n+s],p=o[a],m=o[a+s];if(l){if(n>0&&null!=u&&null==p){f=a,n=-n,s=2;continue}if(n<0&&a==c+n){h.fill(),l=!1,s=1,a=c=f+(n=-n);continue}}if(null!=u&&null!=p){if(u<=p&&u=p&&u>i.max){if(p>i.max)continue;d=(i.max-u)/(p-u)*(m-d)+d,u=i.max}else if(p>=u&&p>i.max){if(u>i.max)continue;m=(i.max-u)/(p-u)*(m-d)+d,p=i.max}if(l||(h.beginPath(),h.moveTo(i.p2c(u),e.p2c(r)),l=!0),d>=e.max&&m>=e.max)h.lineTo(i.p2c(u),e.p2c(e.max)),h.lineTo(i.p2c(p),e.p2c(e.max));else if(d<=e.min&&m<=e.min)h.lineTo(i.p2c(u),e.p2c(e.min)),h.lineTo(i.p2c(p),e.p2c(e.min));else{var x=u,g=p;d<=m&&d=e.min?(u=(e.min-d)/(m-d)*(p-u)+u,d=e.min):m<=d&&m=e.min&&(p=(e.min-d)/(m-d)*(p-u)+u,m=e.min),d>=m&&d>e.max&&m<=e.max?(u=(e.max-d)/(m-d)*(p-u)+u,d=e.max):m>=d&&m>e.max&&d<=e.max&&(p=(e.max-d)/(m-d)*(p-u)+u,m=e.max),u!=x&&h.lineTo(i.p2c(x),e.p2c(d)),h.lineTo(i.p2c(u),e.p2c(d)),h.lineTo(i.p2c(p),e.p2c(m)),p!=g&&(h.lineTo(i.p2c(p),e.p2c(m)),h.lineTo(i.p2c(g),e.p2c(m)))}}}}(t.datapoints,t.xaxis,t.yaxis));e>0&&i(t.datapoints,0,0,t.xaxis,t.yaxis);h.restore()}(t),t.bars.show&&function(t){var i;switch(h.save(),h.translate(m.left,m.top),h.lineWidth=t.bars.lineWidth,h.strokeStyle=t.color,t.bars.align){case"left":i=0;break;case"right":i=-t.bars.barWidth;break;case"center":i=-t.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+t.bars.align)}var e=t.bars.fill?function(i,e){return N(t.bars,t.color,i,e)}:null;(function(i,e,o,n,r,a,l){for(var s=i.points,c=i.pointsize,f=0;fr.max||da.max||(h.beginPath(),u=r.p2c(u),d=a.p2c(d)+o,"circle"==l?h.arc(u,d,i,0,n?Math.PI:2*Math.PI,!1):l(h,u,d,i,n),h.closePath(),e&&(h.fillStyle=e,h.fill()),h.stroke())}}h.save(),h.translate(m.left,m.top);var e=t.points.lineWidth,o=t.shadowSize,n=t.points.radius,r=t.points.symbol;0==e&&(e=1e-4);if(e>0&&o>0){var a=o/2;h.lineWidth=a,h.strokeStyle="rgba(0,0,0,0.1)",i(t.datapoints,n,null,a+a/2,!0,t.xaxis,t.yaxis,r),h.strokeStyle="rgba(0,0,0,0.2)",i(t.datapoints,n,null,a/2,!0,t.xaxis,t.yaxis,r)}h.lineWidth=e,h.strokeStyle=t.color,i(t.datapoints,n,N(t.points,t.color),0,!1,t.xaxis,t.yaxis,r),h.restore()}(t)}function F(t,i,e,o,n,r,a,l,s,c,f,h){var u,d,p,m,x,g,b,v,k;f?(v=g=b=!0,x=!1,m=i+o,p=i+n,(d=t)<(u=e)&&(k=d,d=u,u=k,x=!0,g=!1)):(x=g=b=!0,v=!1,u=t+o,d=t+n,(m=i)<(p=e)&&(k=m,m=p,p=k,v=!0,b=!1)),dl.max||ms.max||(ul.max&&(d=l.max,g=!1),ps.max&&(m=s.max,b=!1),u=l.p2c(u),p=s.p2c(p),d=l.p2c(d),m=s.p2c(m),a&&(c.beginPath(),c.moveTo(u,p),c.lineTo(u,m),c.lineTo(d,m),c.lineTo(d,p),c.fillStyle=a(p,m),c.fill()),h>0&&(x||g||b||v)&&(c.beginPath(),c.moveTo(u,p+r),x?c.lineTo(u,m+r):c.moveTo(u,m+r),b?c.lineTo(d,m+r):c.moveTo(d,m+r),g?c.lineTo(d,p+r):c.moveTo(d,p+r),v?c.lineTo(u,p+r):c.moveTo(u,p+r),c.stroke()))}function N(i,e,o,n){var r=i.fill;if(!r)return null;if(i.fillColor)return q(i.fillColor,o,n,e);var a=t.color.parse(e);return a.a="number"==typeof r?r:.4,a.normalize(),a.toString()}v.setData=y,v.setupGrid=W,v.draw=z,v.getPlaceholder=function(){return i},v.getCanvas=function(){return s.element},v.getPlotOffset=function(){return m},v.width=function(){return x},v.height=function(){return g},v.offset=function(){var t=f.offset();return t.left+=m.left,t.top+=m.top,t},v.getData=function(){return a},v.getAxes=function(){var i={};return t.each(d.concat(p),function(t,e){e&&(i[e.direction+(1!=e.n?e.n:"")+"axis"]=e)}),i},v.getXAxes=function(){return d},v.getYAxes=function(){return p},v.c2p=M,v.p2c=function(t){var i,e,o,n={};for(i=0;i=0;--o)if(e(a[o])){var h=a[o],u=h.xaxis,d=h.yaxis,p=h.datapoints.points,m=u.c2p(t),x=d.c2p(i),g=s/u.scale,b=s/d.scale;if(r=h.datapoints.pointsize,u.options.inverseTransform&&(g=Number.MAX_VALUE),d.options.inverseTransform&&(b=Number.MAX_VALUE),h.lines.show||h.points.show)for(n=0;ng||v-m<-g||k-x>b||k-x<-b)){var y=Math.abs(u.p2c(v)-t),w=Math.abs(d.p2c(k)-i),T=y*y+w*w;T=Math.min(S,v)&&x>=k+M&&x<=k+C:m>=v+M&&m<=v+C&&x>=Math.min(S,k)&&x<=Math.max(S,k))&&(f=[o,n/r])}}}return f?(o=f[0],n=f[1],r=a[o].datapoints.pointsize,{datapoint:a[o].datapoints.points.slice(n*r,(n+1)*r),dataIndex:n,series:a[o],seriesIndex:o}):null}(r,s,o);if(h&&(h.pageX=parseInt(h.series.xaxis.p2c(h.datapoint[0])+n.left+m.left,10),h.pageY=parseInt(h.series.yaxis.p2c(h.datapoint[1])+n.top+m.top,10)),l.grid.autoHighlight){for(var u=0;ur.max||na.max)){var s=i.points.radius+i.points.lineWidth/2;u.lineWidth=s,u.strokeStyle=l;var c=1.5*s;o=r.p2c(o),n=a.p2c(n),u.beginPath(),"circle"==i.points.symbol?u.arc(o,n,c,0,2*Math.PI,!1):i.points.symbol(u,o,n,c,!1),u.closePath(),u.stroke()}}function Y(i,e){var o="string"==typeof i.highlightColor?i.highlightColor:t.color.parse(i.color).scale("a",.5).toString(),n=o,r="left"==i.bars.align?0:-i.bars.barWidth/2;u.lineWidth=i.bars.lineWidth,u.strokeStyle=o,F(e[0],e[1],e[2]||0,r,r+i.bars.barWidth,0,function(){return n},i.xaxis,i.yaxis,u,i.bars.horizontal,i.bars.lineWidth)}function q(i,e,o,n){if("string"==typeof i)return i;for(var r=h.createLinearGradient(0,o,0,e),a=0,l=i.colors.length;a").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),e=this.text[i]=t("
").addClass(i).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),e},e.prototype.getTextInfo=function(i,e,o,n,r){var a,l,s,c;if(e=""+e,a="object"==typeof o?o.style+" "+o.variant+" "+o.weight+" "+o.size+"px/"+o.lineHeight+"px "+o.family:o,null==(l=this._textCache[i])&&(l=this._textCache[i]={}),null==(s=l[a])&&(s=l[a]={}),null==(c=s[e])){var f=t("
").html(e).css({position:"absolute","max-width":r,top:-9999}).appendTo(this.getTextLayer(i));"object"==typeof o?f.css({font:a,color:o.color}):"string"==typeof o&&f.addClass(o),c=s[e]={width:f.outerWidth(!0),height:f.outerHeight(!0),element:f,positions:[]},f.detach()}return c},e.prototype.addText=function(t,i,e,o,n,r,a,l,s){var c=this.getTextInfo(t,o,n,r,a),f=c.positions;"center"==l?i-=c.width/2:"right"==l&&(i-=c.width),"middle"==s?e-=c.height/2:"bottom"==s&&(e-=c.height);for(var h,u=0;h=f[u];u++)if(h.x==i&&h.y==e)return void(h.active=!0);h={active:!0,rendered:!1,element:f.length?c.element.clone():c.element,x:i,y:e},f.push(h),h.element.css({top:Math.round(e),left:Math.round(i),"text-align":l})},e.prototype.removeText=function(t,e,o,n,r,a){if(null==n){var l=this._textCache[t];if(null!=l)for(var s in l)if(i.call(l,s)){var c=l[s];for(var f in c)if(i.call(c,f))for(var h=c[f].positions,u=0;d=h[u];u++)d.active=!1}}else{var d;for(h=this.getTextInfo(t,n,r,a).positions,u=0;d=h[u];u++)d.x==e&&d.y==o&&(d.active=!1)}},t.plot=function(i,e,n){return new o(t(i),e,n,t.plot.plugins)},t.plot.version="0.8.1",t.plot.plugins=[],t.fn.plot=function(i,e){return this.each(function(){t.plot(this,i,e)})}}(jQuery);