KUJUNTI.ID MINISH3LL
Path : /var/www/html/jewelry-pos/public/admin-asset/js/statistics/flot/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/jewelry-pos/public/admin-asset/js/statistics/flot/flot.bundle.js


!function(r){r.color={},r.color.make=function(e,t,i,o){var n={};return n.r=e||0,n.g=t||0,n.b=i||0,n.a=null!=o?o:1,n.add=function(e,t){for(var i=0;i<e.length;++i)n[e.charAt(i)]+=t;return n.normalize()},n.scale=function(e,t){for(var i=0;i<e.length;++i)n[e.charAt(i)]*=t;return n.normalize()},n.toString=function(){return 1<=n.a?"rgb("+[n.r,n.g,n.b].join(",")+")":"rgba("+[n.r,n.g,n.b,n.a].join(",")+")"},n.normalize=function(){function e(e,t,i){return t<e?e:i<t?i:t}return n.r=e(0,parseInt(n.r),255),n.g=e(0,parseInt(n.g),255),n.b=e(0,parseInt(n.b),255),n.a=e(0,n.a,1),n},n.clone=function(){return r.color.make(n.r,n.b,n.g,n.a)},n.normalize()},r.color.extract=function(e,t){var i;do{if(""!=(i=e.css(t).toLowerCase())&&"transparent"!=i)break;e=e.parent()}while(e.length&&!r.nodeName(e.get(0),"body"));return"rgba(0, 0, 0, 0)"==i&&(i="transparent"),r.color.parse(i)},r.color.parse=function(e){var t,i=r.color.make;if(t=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))return i(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10));if(t=/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 i(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4]));if(t=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))return i(2.55*parseFloat(t[1]),2.55*parseFloat(t[2]),2.55*parseFloat(t[3]));if(t=/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 i(2.55*parseFloat(t[1]),2.55*parseFloat(t[2]),2.55*parseFloat(t[3]),parseFloat(t[4]));if(t=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))return i(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16));if(t=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))return i(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16));var o=r.trim(e).toLowerCase();return"transparent"==o?i(255,255,255,0):i((t=n[o]||[0,0,0])[0],t[1],t[2])};var n={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(G){var d=Object.prototype.hasOwnProperty;function _(e,t){var i=t.children("."+e)[0];if(null==i&&((i=document.createElement("canvas")).className=e,G(i).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(t),!i.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.");i=window.G_vmlCanvasManager.initElement(i)}this.element=i;var o=this.context=i.getContext("2d"),n=window.devicePixelRatio||1,r=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1;this.pixelRatio=n/r,this.resize(t.width(),t.height()),this.textContainer=null,this.text={},this._textCache={}}function o(m,e,t,o){var z=[],S={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:{}},d=null,i=null,u=null,k=null,c=null,f=[],g=[],w={left:0,right:0,top:0,bottom:0},M=0,T=0,C={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},P=this;function O(e,t){t=[P].concat(t);for(var i=0;i<e.length;++i)e[i].apply(this,t)}function n(e){z=function(e){for(var t=[],i=0;i<e.length;++i){var o=G.extend(!0,{},S.series);null!=e[i].data?(o.data=e[i].data,delete e[i].data,G.extend(!0,o,e[i]),e[i].data=o.data):o.data=e[i],t.push(o)}return t}(e),function(){var e,t=z.length,i=-1;for(e=0;e<z.length;++e){var o=z[e].color;null!=o&&(t--,"number"==typeof o&&i<o&&(i=o))}t<=i&&(t=i+1);var n,r=[],a=S.colors,s=a.length,l=0;for(e=0;e<t;e++)n=G.color.parse(a[e%s]||"#666"),e%s==0&&e&&(l=0<=l?l<.5?-l-.2:0:-l),r[e]=n.scale("rgb",1+l);var c,u=0;for(e=0;e<z.length;++e){if(null==(c=z[e]).color?(c.color=r[u].toString(),++u):"number"==typeof c.color&&(c.color=r[c.color].toString()),null==c.lines.show){var p,h=!0;for(p in c)if(c[p]&&c[p].show){h=!1;break}h&&(c.lines.show=!0)}null==c.lines.zero&&(c.lines.zero=!!c.lines.fill),c.xaxis=v(f,x(c,"x")),c.yaxis=v(g,x(c,"y"))}}(),function(){var e,t,i,o,n,r,a,s,l,c,u,p,h,d=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,g=Number.MAX_VALUE;function m(e,t,i){t<e.datamin&&t!=-g&&(e.datamin=t),i>e.datamax&&i!=g&&(e.datamax=i)}for(G.each(A(),function(e,t){t.datamin=d,t.datamax=f,t.used=!1}),e=0;e<z.length;++e)(n=z[e]).datapoints={points:[]},O(C.processRawData,[n,n.data,n.datapoints]);for(e=0;e<z.length;++e){var x;if(n=z[e],u=n.data,(p=n.datapoints.format)||((p=[]).push({x:!0,number:!0,required:!0}),p.push({y:!0,number:!0,required:!0}),(n.bars.show||n.lines.show&&n.lines.fill)&&(x=!!(n.bars.show&&n.bars.zero||n.lines.show&&n.lines.zero),p.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:x}),n.bars.horizontal&&(delete p[p.length-1].y,p[p.length-1].x=!0)),n.datapoints.format=p),null==n.datapoints.pointsize){n.datapoints.pointsize=p.length,a=n.datapoints.pointsize,r=n.datapoints.points;var v=n.lines.show&&n.lines.steps;for(n.xaxis.used=n.yaxis.used=!0,t=i=0;t<u.length;++t,i+=a){var b=null==(c=u[t]);if(!b)for(o=0;o<a;++o)s=c[o],(l=p[o])&&(l.number&&null!=s&&(s=+s,isNaN(s)?s=null:s==1/0?s=g:s==-1/0&&(s=-g)),null==s&&(l.required&&(b=!0),null!=l.defaultValue&&(s=l.defaultValue))),r[i+o]=s;if(b)for(o=0;o<a;++o)null!=(s=r[i+o])&&!1!==(l=p[o]).autoscale&&(l.x&&m(n.xaxis,s,s),l.y&&m(n.yaxis,s,s)),r[i+o]=null;else if(v&&0<i&&null!=r[i-a]&&r[i-a]!=r[i]&&r[i-a+1]!=r[i+1]){for(o=0;o<a;++o)r[i+a+o]=r[i+o];r[i+1]=r[i-a+1],i+=a}}}}for(e=0;e<z.length;++e)n=z[e],O(C.processDatapoints,[n,n.datapoints]);for(e=0;e<z.length;++e){n=z[e],r=n.datapoints.points,a=n.datapoints.pointsize,p=n.datapoints.format;var y=d,k=d,w=f,M=f;for(t=0;t<r.length;t+=a)if(null!=r[t])for(o=0;o<a;++o)s=r[t+o],(l=p[o])&&!1!==l.autoscale&&s!=g&&s!=-g&&(l.x&&(s<y&&(y=s),w<s&&(w=s)),l.y&&(s<k&&(k=s),M<s&&(M=s)));if(n.bars.show){switch(n.bars.align){case"left":h=0;break;case"right":h=-n.bars.barWidth;break;default:h=-n.bars.barWidth/2}n.bars.horizontal?(k+=h,M+=h+n.bars.barWidth):(y+=h,w+=h+n.bars.barWidth)}m(n.xaxis,y,w),m(n.yaxis,k,M)}G.each(A(),function(e,t){t.datamin==d&&(t.datamin=null),t.datamax==f&&(t.datamax=null)})}()}function x(e,t){var i=e[t+"axis"];return"object"==typeof i&&(i=i.n),"number"!=typeof i&&(i=1),i}function A(){return G.grep(f.concat(g),function(e){return e})}function p(e){for(var t,i={},o=0;o<f.length;++o)(t=f[o])&&t.used&&(i["x"+t.n]=t.c2p(e.left));for(o=0;o<g.length;++o)(t=g[o])&&t.used&&(i["y"+t.n]=t.c2p(e.top));return void 0!==i.x1&&(i.x=i.x1),void 0!==i.y1&&(i.y=i.y1),i}function v(e,t){return e[t-1]||(e[t-1]={n:t,direction:e==f?"x":"y",options:G.extend(!0,{},e==f?S.xaxis:S.yaxis)}),e[t-1]}function r(){W&&clearTimeout(W),u.unbind("mousemove",q),u.unbind("mouseleave",R),u.unbind("click",N),O(C.shutdown,[u])}function a(i){var e=i.labelWidth,t=i.labelHeight,o=i.options.position,n="x"===i.direction,r=i.options.tickLength,a=S.grid.axisMargin,s=S.grid.labelMargin,l=!0,c=!0,u=!0,p=!1;G.each(n?f:g,function(e,t){t&&(t.show||t.reserveSpace)&&(t===i?p=!0:t.options.position===o&&(p?c=!1:l=!1),p||(u=!1))}),c&&(a=0),null==r&&(r=u?"full":5),isNaN(+r)||(s+=+r),n?(t+=s,"bottom"==o?(w.bottom+=t+a,i.box={top:d.height-w.bottom,height:t}):(i.box={top:w.top+a,height:t},w.top+=t+a)):(e+=s,"left"==o?(i.box={left:w.left+a,width:e},w.left+=e+a):(w.right+=e+a,i.box={left:d.width-w.right,width:e})),i.position=o,i.tickLength=r,i.box.padding=s,i.innermost=l}function s(){var e,t=A(),i=S.grid.show;for(var o in w){var n=S.grid.margin||0;w[o]="number"==typeof n?n:n[o]||0}for(var o in O(C.processOffset,[w]),w)"object"==typeof S.grid.borderWidth?w[o]+=i?S.grid.borderWidth[o]:0:w[o]+=i?S.grid.borderWidth:0;if(G.each(t,function(e,t){var i=t.options;t.show=null==i.show?t.used:i.show,t.reserveSpace=null==i.reserveSpace?t.show:i.reserveSpace,function(e){var t=e.options,i=+(null!=t.min?t.min:e.datamin),o=+(null!=t.max?t.max:e.datamax),n=o-i;{var r,a;0==n?(r=0==o?1:.01,null==t.min&&(i-=r),null!=t.max&&null==t.min||(o+=r)):null!=(a=t.autoscaleMargin)&&(null==t.min&&(i-=n*a)<0&&null!=e.datamin&&0<=e.datamin&&(i=0),null==t.max&&0<(o+=n*a)&&null!=e.datamax&&e.datamax<=0&&(o=0))}e.min=i,e.max=o}(t)}),i){var r=G.grep(t,function(e){return e.show||e.reserveSpace});for(G.each(r,function(e,t){var i,o;!function(e){var t,i=e.options;t="number"==typeof i.ticks&&0<i.ticks?i.ticks:.3*Math.sqrt("x"==e.direction?d.width:d.height);var o=(e.max-e.min)/t,n=-Math.floor(Math.log(o)/Math.LN10),r=i.tickDecimals;null!=r&&r<n&&(n=r);var a,s=Math.pow(10,-n),l=o/s;l<1.5?a=1:l<3?(a=2,2.25<l&&(null==r||n+1<=r)&&(a=2.5,++n)):a=l<7.5?5:10;a*=s,null!=i.minTickSize&&a<i.minTickSize&&(a=i.minTickSize);if(e.delta=o,e.tickDecimals=Math.max(0,null!=r?r:n),e.tickSize=i.tickSize||a,"time"==i.mode&&!e.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");e.tickGenerator||(e.tickGenerator=function(e){for(var t,i,o,n=[],r=(i=e.min,(o=e.tickSize)*Math.floor(i/o)),a=0,s=Number.NaN;t=s,s=r+a*e.tickSize,n.push(s),++a,s<e.max&&s!=t;);return n},e.tickFormatter=function(e,t){var i=t.tickDecimals?Math.pow(10,t.tickDecimals):1,o=""+Math.round(e*i)/i;if(null!=t.tickDecimals){var n=o.indexOf("."),r=-1==n?0:o.length-n-1;if(r<t.tickDecimals)return(r?o:o+".")+(""+i).substr(1,t.tickDecimals-r)}return o});G.isFunction(i.tickFormatter)&&(e.tickFormatter=function(e,t){return""+i.tickFormatter(e,t)});{var c,u,p,h;null==i.alignTicksWithAxis||(c=("x"==e.direction?f:g)[i.alignTicksWithAxis-1])&&c.used&&c!=e&&(0<(u=e.tickGenerator(e)).length&&(null==i.min&&(e.min=Math.min(e.min,u[0])),null==i.max&&1<u.length&&(e.max=Math.max(e.max,u[u.length-1]))),e.tickGenerator=function(e){for(var t,i=[],o=0;o<c.ticks.length;++o)t=(c.ticks[o].v-c.min)/(c.max-c.min),t=e.min+t*(e.max-e.min),i.push(t);return i},e.mode||null!=i.tickDecimals||(p=Math.max(0,1-Math.floor(Math.log(e.delta)/Math.LN10)),1<(h=e.tickGenerator(e)).length&&/\..*0$/.test((h[1]-h[0]).toFixed(p))||(e.tickDecimals=p)))}}(t),function(e){var t,i,o=e.options.ticks,n=[];null==o||"number"==typeof o&&0<o?n=e.tickGenerator(e):o&&(n=G.isFunction(o)?o(e):o);for(e.ticks=[],t=0;t<n.length;++t){var r=null,a=n[t];"object"==typeof a?(i=+a[0],1<a.length&&(r=a[1])):i=+a,null==r&&(r=e.tickFormatter(i,e)),isNaN(i)||e.ticks.push({v:i,label:r})}}(t),o=(i=t).ticks,i.options.autoscaleMargin&&0<o.length&&(null==i.options.min&&(i.min=Math.min(i.min,o[0].v)),null==i.options.max&&1<o.length&&(i.max=Math.max(i.max,o[o.length-1].v))),function(e){for(var t=e.options,i=e.ticks||[],o=t.labelWidth||0,n=t.labelHeight||0,r=o||("x"==e.direction?Math.floor(d.width/(i.length||1)):null),a=e.direction+"Axis "+e.direction+e.n+"Axis",s="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+a,l=t.font||"flot-tick-label tickLabel",c=0;c<i.length;++c){var u,p=i[c];p.label&&(u=d.getTextInfo(s,p.label,l,null,r),o=Math.max(o,u.width),n=Math.max(n,u.height))}e.labelWidth=t.labelWidth||o,e.labelHeight=t.labelHeight||n}(t)}),e=r.length-1;0<=e;--e)a(r[e]);!function(){var e,t=S.grid.minBorderMargin;if(null==t)for(e=t=0;e<z.length;++e)t=Math.max(t,2*(z[e].points.radius+z[e].points.lineWidth/2));var i={left:t,right:t,top:t,bottom:t};G.each(A(),function(e,t){t.reserveSpace&&t.ticks&&t.ticks.length&&("x"===t.direction?(i.left=Math.max(i.left,t.labelWidth/2),i.right=Math.max(i.right,t.labelWidth/2)):(i.bottom=Math.max(i.bottom,t.labelHeight/2),i.top=Math.max(i.top,t.labelHeight/2)))}),w.left=Math.ceil(Math.max(i.left,w.left)),w.right=Math.ceil(Math.max(i.right,w.right)),w.top=Math.ceil(Math.max(i.top,w.top)),w.bottom=Math.ceil(Math.max(i.bottom,w.bottom))}(),G.each(r,function(e,t){var i;"x"==(i=t).direction?(i.box.left=w.left-i.labelWidth/2,i.box.width=d.width-w.left-w.right+i.labelWidth):(i.box.top=w.top-i.labelHeight/2,i.box.height=d.height-w.bottom-w.top+i.labelHeight)})}M=d.width-w.left-w.right,T=d.height-w.bottom-w.top,G.each(t,function(e,t){function i(e){return e}var o,n,r,a,s;r=(o=t).options.transform||i,a=o.options.inverseTransform,s="x"==o.direction?(n=o.scale=M/Math.abs(r(o.max)-r(o.min)),Math.min(r(o.max),r(o.min))):(n=-(n=o.scale=T/Math.abs(r(o.max)-r(o.min))),Math.max(r(o.max),r(o.min))),o.p2c=r==i?function(e){return(e-s)*n}:function(e){return(r(e)-s)*n},o.c2p=a?function(e){return a(s+e/n)}:function(e){return s+e/n}}),i&&G.each(A(),function(e,t){var i,o,n,r,a,s=t.box,l=t.direction+"Axis "+t.direction+t.n+"Axis",c="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+l,u=t.options.font||"flot-tick-label tickLabel";if(d.removeText(c),t.show&&0!=t.ticks.length)for(var p=0;p<t.ticks.length;++p)!(i=t.ticks[p]).label||i.v<t.min||i.v>t.max||("x"==t.direction?(r="center",o=w.left+t.p2c(i.v),"bottom"==t.position?n=s.top+s.padding:(n=s.top+s.height-s.padding,a="bottom")):(a="middle",n=w.top+t.p2c(i.v),"left"==t.position?(o=s.left+s.width-s.padding,r="right"):o=s.left+s.padding),d.addText(c,o,n,i.label,u,null,null,r,a))}),function(){null!=S.legend.container?G(S.legend.container).html(""):m.find(".legend").remove();if(!S.legend.show)return;for(var e,t,i=[],o=[],n=!1,r=S.legend.labelFormatter,a=0;a<z.length;++a)(e=z[a]).label&&(t=r?r(e.label,e):e.label)&&o.push({label:t,color:e.color});{var s;S.legend.sorted&&(G.isFunction(S.legend.sorted)?o.sort(S.legend.sorted):"reverse"==S.legend.sorted?o.reverse():(s="descending"!=S.legend.sorted,o.sort(function(e,t){return e.label==t.label?0:e.label<t.label!=s?1:-1})))}for(a=0;a<o.length;++a){var l=o[a];a%S.legend.noColumns==0&&(n&&i.push("</tr>"),i.push("<tr>"),n=!0),i.push('<td class="legendColorBox"><div style="border:1px solid '+S.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+l.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+l.label+"</td>")}n&&i.push("</tr>");if(0==i.length)return;var c='<table style="font-size:smaller;color:'+S.grid.color+'">'+i.join("")+"</table>";{var u,p,h,d,f,g;null!=S.legend.container?G(S.legend.container).html(c):(u="",p=S.legend.position,null==(h=S.legend.margin)[0]&&(h=[h,h]),"n"==p.charAt(0)?u+="top:"+(h[1]+w.top)+"px;":"s"==p.charAt(0)&&(u+="bottom:"+(h[1]+w.bottom)+"px;"),"e"==p.charAt(1)?u+="right:"+(h[0]+w.right)+"px;":"w"==p.charAt(1)&&(u+="left:"+(h[0]+w.left)+"px;"),d=G('<div class="legend">'+c.replace('style="','style="position:absolute;'+u+";")+"</div>").appendTo(m),0!=S.legend.backgroundOpacity&&(null==(f=S.legend.backgroundColor)&&((f=(f=S.grid.backgroundColor)&&"string"==typeof f?G.color.parse(f):G.color.extract(d,"background-color")).a=1,f=f.toString()),g=d.children(),G('<div style="position:absolute;width:'+g.width()+"px;height:"+g.height()+"px;"+u+"background-color:"+f+';"> </div>').prependTo(d).css("opacity",S.legend.backgroundOpacity)))}}()}function l(){d.clear(),O(C.drawBackground,[k]);var e=S.grid;e.show&&e.backgroundColor&&(k.save(),k.translate(w.left,w.top),k.fillStyle=$(S.grid.backgroundColor,T,0,"rgba(255, 255, 255, 0)"),k.fillRect(0,0,M,T),k.restore()),e.show&&!e.aboveData&&h();for(var t=0;t<z.length;++t)O(C.drawSeries,[k,z[t]]),b(z[t]);O(C.draw,[k]),e.show&&e.aboveData&&h(),d.render(),j()}function I(e,t){for(var i,o,n,r,a,s=A(),l=0;l<s.length;++l)if((i=s[l]).direction==t&&(e[o=t+i.n+"axis"]||1!=i.n||(o=t+"axis"),e[o])){r=e[o].from,a=e[o].to;break}return e[o]||(i="x"==t?f[0]:g[0],r=e[t+"1"],a=e[t+"2"]),null!=r&&null!=a&&a<r&&(n=r,r=a,a=n),{from:r,to:a,axis:i}}function h(){var e,t,i,o;k.save(),k.translate(w.left,w.top);var n=S.grid.markings;if(n)for(G.isFunction(n)&&((t=P.getAxes()).xmin=t.xaxis.min,t.xmax=t.xaxis.max,t.ymin=t.yaxis.min,t.ymax=t.yaxis.max,n=n(t)),e=0;e<n.length;++e){var r,a,s,l,c=n[e],u=I(c,"x"),p=I(c,"y");null==u.from&&(u.from=u.axis.min),null==u.to&&(u.to=u.axis.max),null==p.from&&(p.from=p.axis.min),null==p.to&&(p.to=p.axis.max),u.to<u.axis.min||u.from>u.axis.max||p.to<p.axis.min||p.from>p.axis.max||(u.from=Math.max(u.from,u.axis.min),u.to=Math.min(u.to,u.axis.max),p.from=Math.max(p.from,p.axis.min),p.to=Math.min(p.to,p.axis.max),r=u.from===u.to,a=p.from===p.to,r&&a||(u.from=Math.floor(u.axis.p2c(u.from)),u.to=Math.floor(u.axis.p2c(u.to)),p.from=Math.floor(p.axis.p2c(p.from)),p.to=Math.floor(p.axis.p2c(p.to)),r||a?(l=(s=c.lineWidth||S.grid.markingsLineWidth)%2?.5:0,k.beginPath(),k.strokeStyle=c.color||S.grid.markingsColor,k.lineWidth=s,r?(k.moveTo(u.to+l,p.from),k.lineTo(u.to+l,p.to)):(k.moveTo(u.from,p.to+l),k.lineTo(u.to,p.to+l)),k.stroke()):(k.fillStyle=c.color||S.grid.markingsColor,k.fillRect(u.from,p.to,u.to-u.from,p.from-p.to))))}t=A(),i=S.grid.borderWidth;for(var h=0;h<t.length;++h){var d,f,g,m=t[h],x=m.box,v=m.tickLength;if(m.show&&0!=m.ticks.length){for(k.lineWidth=1,"x"==m.direction?(d=0,f="full"==v?"top"==m.position?0:T:x.top-w.top+("top"==m.position?x.height:0)):(f=0,d="full"==v?"left"==m.position?0:M:x.left-w.left+("left"==m.position?x.width:0)),m.innermost||(k.strokeStyle=m.options.color,k.beginPath(),y=g=0,"x"==m.direction?y=M+1:g=T+1,1==k.lineWidth&&("x"==m.direction?f=Math.floor(f)+.5:d=Math.floor(d)+.5),k.moveTo(d,f),k.lineTo(d+y,f+g),k.stroke()),k.strokeStyle=m.options.tickColor,k.beginPath(),e=0;e<m.ticks.length;++e){var b=m.ticks[e].v,y=g=0;isNaN(b)||b<m.min||b>m.max||"full"==v&&("object"==typeof i&&0<i[m.position]||0<i)&&(b==m.min||b==m.max)||("x"==m.direction?(d=m.p2c(b),g="full"==v?-T:v,"top"==m.position&&(g=-g)):(f=m.p2c(b),y="full"==v?-M:v,"left"==m.position&&(y=-y)),1==k.lineWidth&&("x"==m.direction?d=Math.floor(d)+.5:f=Math.floor(f)+.5),k.moveTo(d,f),k.lineTo(d+y,f+g))}k.stroke()}}i&&(o=S.grid.borderColor,"object"==typeof i||"object"==typeof o?("object"!=typeof i&&(i={top:i,right:i,bottom:i,left:i}),"object"!=typeof o&&(o={top:o,right:o,bottom:o,left:o}),0<i.top&&(k.strokeStyle=o.top,k.lineWidth=i.top,k.beginPath(),k.moveTo(0-i.left,0-i.top/2),k.lineTo(M,0-i.top/2),k.stroke()),0<i.right&&(k.strokeStyle=o.right,k.lineWidth=i.right,k.beginPath(),k.moveTo(M+i.right/2,0-i.top),k.lineTo(M+i.right/2,T),k.stroke()),0<i.bottom&&(k.strokeStyle=o.bottom,k.lineWidth=i.bottom,k.beginPath(),k.moveTo(M+i.right,T+i.bottom/2),k.lineTo(0,T+i.bottom/2),k.stroke()),0<i.left&&(k.strokeStyle=o.left,k.lineWidth=i.left,k.beginPath(),k.moveTo(0-i.left/2,T+i.bottom),k.lineTo(0-i.left/2,0),k.stroke())):(k.lineWidth=i,k.strokeStyle=S.grid.borderColor,k.strokeRect(-i/2,-i/2,M+i,T+i))),k.restore()}function b(e){e.lines.show&&function(e){function t(e,t,i,o,n){var r=e.points,a=e.pointsize,s=null,l=null;k.beginPath();for(var c=a;c<r.length;c+=a){var u=r[c-a],p=r[c-a+1],h=r[c],d=r[c+1];if(null!=u&&null!=h){if(p<=d&&p<n.min){if(d<n.min)continue;u=(n.min-p)/(d-p)*(h-u)+u,p=n.min}else if(d<=p&&d<n.min){if(p<n.min)continue;h=(n.min-p)/(d-p)*(h-u)+u,d=n.min}if(d<=p&&p>n.max){if(d>n.max)continue;u=(n.max-p)/(d-p)*(h-u)+u,p=n.max}else if(p<=d&&d>n.max){if(p>n.max)continue;h=(n.max-p)/(d-p)*(h-u)+u,d=n.max}if(u<=h&&u<o.min){if(h<o.min)continue;p=(o.min-u)/(h-u)*(d-p)+p,u=o.min}else if(h<=u&&h<o.min){if(u<o.min)continue;d=(o.min-u)/(h-u)*(d-p)+p,h=o.min}if(h<=u&&u>o.max){if(h>o.max)continue;p=(o.max-u)/(h-u)*(d-p)+p,u=o.max}else if(u<=h&&h>o.max){if(u>o.max)continue;d=(o.max-u)/(h-u)*(d-p)+p,h=o.max}u==s&&p==l||k.moveTo(o.p2c(u)+t,n.p2c(p)+i),s=h,l=d,k.lineTo(o.p2c(h)+t,n.p2c(d)+i)}}k.stroke()}k.save(),k.translate(w.left,w.top),k.lineJoin="round";var i=e.lines.lineWidth,o=e.shadowSize;{var n;0<i&&0<o&&(k.lineWidth=o,k.strokeStyle="rgba(0,0,0,0.1)",n=Math.PI/18,t(e.datapoints,Math.sin(n)*(i/2+o/2),Math.cos(n)*(i/2+o/2),e.xaxis,e.yaxis),k.lineWidth=o/2,t(e.datapoints,Math.sin(n)*(i/2+o/4),Math.cos(n)*(i/2+o/4),e.xaxis,e.yaxis))}k.lineWidth=i,k.strokeStyle=e.color;var r=F(e.lines,e.color,0,T);r&&(k.fillStyle=r,function(e,t,i){for(var o=e.points,n=e.pointsize,r=Math.min(Math.max(0,i.min),i.max),a=0,s=!1,l=1,c=0,u=0;!(0<n&&a>o.length+n);){var p,h,d=o[(a+=n)-n],f=o[a-n+l],g=o[a],m=o[a+l];if(s){if(0<n&&null!=d&&null==g){u=a,n=-n,l=2;continue}if(n<0&&a==c+n){k.fill(),s=!1,l=1,a=c=u+(n=-n);continue}}if(null!=d&&null!=g){if(d<=g&&d<t.min){if(g<t.min)continue;f=(t.min-d)/(g-d)*(m-f)+f,d=t.min}else if(g<=d&&g<t.min){if(d<t.min)continue;m=(t.min-d)/(g-d)*(m-f)+f,g=t.min}if(g<=d&&d>t.max){if(g>t.max)continue;f=(t.max-d)/(g-d)*(m-f)+f,d=t.max}else if(d<=g&&g>t.max){if(d>t.max)continue;m=(t.max-d)/(g-d)*(m-f)+f,g=t.max}s||(k.beginPath(),k.moveTo(t.p2c(d),i.p2c(r)),s=!0),f>=i.max&&m>=i.max?(k.lineTo(t.p2c(d),i.p2c(i.max)),k.lineTo(t.p2c(g),i.p2c(i.max))):f<=i.min&&m<=i.min?(k.lineTo(t.p2c(d),i.p2c(i.min)),k.lineTo(t.p2c(g),i.p2c(i.min))):(p=d,h=g,f<=m&&f<i.min&&m>=i.min?(d=(i.min-f)/(m-f)*(g-d)+d,f=i.min):m<=f&&m<i.min&&f>=i.min&&(g=(i.min-f)/(m-f)*(g-d)+d,m=i.min),m<=f&&f>i.max&&m<=i.max?(d=(i.max-f)/(m-f)*(g-d)+d,f=i.max):f<=m&&m>i.max&&f<=i.max&&(g=(i.max-f)/(m-f)*(g-d)+d,m=i.max),d!=p&&k.lineTo(t.p2c(p),i.p2c(f)),k.lineTo(t.p2c(d),i.p2c(f)),k.lineTo(t.p2c(g),i.p2c(m)),g!=h&&(k.lineTo(t.p2c(g),i.p2c(m)),k.lineTo(t.p2c(h),i.p2c(m))))}}}(e.datapoints,e.xaxis,e.yaxis));0<i&&t(e.datapoints,0,0,e.xaxis,e.yaxis);k.restore()}(e),e.bars.show&&function(c){var e;switch(k.save(),k.translate(w.left,w.top),k.lineWidth=c.bars.lineWidth,k.strokeStyle=c.color,c.bars.align){case"left":e=0;break;case"right":e=-c.bars.barWidth;break;default:e=-c.bars.barWidth/2}var t=c.bars.fill?function(e,t){return F(c.bars,c.color,e,t)}:null;(function(e,t,i,o,n,r){for(var a=e.points,s=e.pointsize,l=0;l<a.length;l+=s)null!=a[l]&&y(a[l],a[l+1],a[l+2],t,i,o,n,r,k,c.bars.horizontal,c.bars.lineWidth)})(c.datapoints,e,e+c.bars.barWidth,t,c.xaxis,c.yaxis),k.restore()}(e),e.points.show&&function(e){function t(e,t,i,o,n,r,a,s){for(var l=e.points,c=e.pointsize,u=0;u<l.length;u+=c){var p=l[u],h=l[u+1];null==p||p<r.min||p>r.max||h<a.min||h>a.max||(k.beginPath(),p=r.p2c(p),h=a.p2c(h)+o,"circle"==s?k.arc(p,h,t,0,n?Math.PI:2*Math.PI,!1):s(k,p,h,t,n),k.closePath(),i&&(k.fillStyle=i,k.fill()),k.stroke())}}k.save(),k.translate(w.left,w.top);var i=e.points.lineWidth,o=e.shadowSize,n=e.points.radius,r=e.points.symbol;0==i&&(i=1e-4);{var a;0<i&&0<o&&(a=o/2,k.lineWidth=a,k.strokeStyle="rgba(0,0,0,0.1)",t(e.datapoints,n,null,a+a/2,!0,e.xaxis,e.yaxis,r),k.strokeStyle="rgba(0,0,0,0.2)",t(e.datapoints,n,null,a/2,!0,e.xaxis,e.yaxis,r))}k.lineWidth=i,k.strokeStyle=e.color,t(e.datapoints,n,F(e.points,e.color),0,!1,e.xaxis,e.yaxis,r),k.restore()}(e)}function y(e,t,i,o,n,r,a,s,l,c,u){var p,h,d,f,g,m,x,v,b;c?(v=m=x=!0,g=!1,f=t+o,d=t+n,(h=e)<(p=i)&&(b=h,h=p,p=b,m=!(g=!0))):(g=m=x=!0,v=!1,p=e+o,h=e+n,(f=t)<(d=i)&&(b=f,f=d,d=b,x=!(v=!0))),h<a.min||p>a.max||f<s.min||d>s.max||(p<a.min&&(p=a.min,g=!1),h>a.max&&(h=a.max,m=!1),d<s.min&&(d=s.min,v=!1),f>s.max&&(f=s.max,x=!1),p=a.p2c(p),d=s.p2c(d),h=a.p2c(h),f=s.p2c(f),r&&(l.fillStyle=r(d,f),l.fillRect(p,f,h-p,d-f)),0<u&&(g||m||x||v)&&(l.beginPath(),l.moveTo(p,d),g?l.lineTo(p,f):l.moveTo(p,f),x?l.lineTo(h,f):l.moveTo(h,f),m?l.lineTo(h,d):l.moveTo(h,d),v?l.lineTo(p,d):l.moveTo(p,d),l.stroke()))}function F(e,t,i,o){var n=e.fill;if(!n)return null;if(e.fillColor)return $(e.fillColor,i,o,t);var r=G.color.parse(t);return r.a="number"==typeof n?n:.4,r.normalize(),r.toString()}P.setData=n,P.setupGrid=s,P.draw=l,P.getPlaceholder=function(){return m},P.getCanvas=function(){return d.element},P.getPlotOffset=function(){return w},P.width=function(){return M},P.height=function(){return T},P.offset=function(){var e=u.offset();return e.left+=w.left,e.top+=w.top,e},P.getData=function(){return z},P.getAxes=function(){var i={};return G.each(f.concat(g),function(e,t){t&&(i[t.direction+(1!=t.n?t.n:"")+"axis"]=t)}),i},P.getXAxes=function(){return f},P.getYAxes=function(){return g},P.c2p=p,P.p2c=function(e){var t,i,o,n={};for(t=0;t<f.length;++t)if((i=f[t])&&i.used&&(o="x"+i.n,null==e[o]&&1==i.n&&(o="x"),null!=e[o])){n.left=i.p2c(e[o]);break}for(t=0;t<g.length;++t)if((i=g[t])&&i.used&&(o="y"+i.n,null==e[o]&&1==i.n&&(o="y"),null!=e[o])){n.top=i.p2c(e[o]);break}return n},P.getOptions=function(){return S},P.highlight=H,P.unhighlight=E,P.triggerRedrawOverlay=j,P.pointOffset=function(e){return{left:parseInt(f[x(e,"x")-1].p2c(+e.x)+w.left,10),top:parseInt(g[x(e,"y")-1].p2c(+e.y)+w.top,10)}},P.shutdown=r,P.destroy=function(){r(),m.removeData("plot").empty(),z=[],f=[],g=[],D=[],P=C=c=k=u=i=d=S=null},P.resize=function(){var e=m.width(),t=m.height();d.resize(e,t),i.resize(e,t)},P.hooks=C,function(){for(var e={Canvas:_},t=0;t<o.length;++t){var i=o[t];i.init(P,e),i.options&&G.extend(!0,S,i.options)}}(),function(e){G.extend(!0,S,e),e&&e.colors&&(S.colors=e.colors);null==S.xaxis.color&&(S.xaxis.color=G.color.parse(S.grid.color).scale("a",.22).toString());null==S.yaxis.color&&(S.yaxis.color=G.color.parse(S.grid.color).scale("a",.22).toString());null==S.xaxis.tickColor&&(S.xaxis.tickColor=S.grid.tickColor||S.xaxis.color);null==S.yaxis.tickColor&&(S.yaxis.tickColor=S.grid.tickColor||S.yaxis.color);null==S.grid.borderColor&&(S.grid.borderColor=S.grid.color);null==S.grid.tickColor&&(S.grid.tickColor=G.color.parse(S.grid.color).scale("a",.22).toString());var t,i,o,n=m.css("font-size"),r=n?+n.replace("px",""):13,a={style:m.css("font-style"),size:Math.round(.8*r),variant:m.css("font-variant"),weight:m.css("font-weight"),family:m.css("font-family")};for(o=S.xaxes.length||1,t=0;t<o;++t)(i=S.xaxes[t])&&!i.tickColor&&(i.tickColor=i.color),i=G.extend(!0,{},S.xaxis,i),(S.xaxes[t]=i).font&&(i.font=G.extend({},a,i.font),i.font.color||(i.font.color=i.color),i.font.lineHeight||(i.font.lineHeight=Math.round(1.15*i.font.size)));for(o=S.yaxes.length||1,t=0;t<o;++t)(i=S.yaxes[t])&&!i.tickColor&&(i.tickColor=i.color),i=G.extend(!0,{},S.yaxis,i),(S.yaxes[t]=i).font&&(i.font=G.extend({},a,i.font),i.font.color||(i.font.color=i.color),i.font.lineHeight||(i.font.lineHeight=Math.round(1.15*i.font.size)));S.xaxis.noTicks&&null==S.xaxis.ticks&&(S.xaxis.ticks=S.xaxis.noTicks);S.yaxis.noTicks&&null==S.yaxis.ticks&&(S.yaxis.ticks=S.yaxis.noTicks);S.x2axis&&(S.xaxes[1]=G.extend(!0,{},S.xaxis,S.x2axis),S.xaxes[1].position="top",null==S.x2axis.min&&(S.xaxes[1].min=null),null==S.x2axis.max&&(S.xaxes[1].max=null));S.y2axis&&(S.yaxes[1]=G.extend(!0,{},S.yaxis,S.y2axis),S.yaxes[1].position="right",null==S.y2axis.min&&(S.yaxes[1].min=null),null==S.y2axis.max&&(S.yaxes[1].max=null));S.grid.coloredAreas&&(S.grid.markings=S.grid.coloredAreas);S.grid.coloredAreasColor&&(S.grid.markingsColor=S.grid.coloredAreasColor);S.lines&&G.extend(!0,S.series.lines,S.lines);S.points&&G.extend(!0,S.series.points,S.points);S.bars&&G.extend(!0,S.series.bars,S.bars);null!=S.shadowSize&&(S.series.shadowSize=S.shadowSize);null!=S.highlightColor&&(S.series.highlightColor=S.highlightColor);for(t=0;t<S.xaxes.length;++t)v(f,t+1).options=S.xaxes[t];for(t=0;t<S.yaxes.length;++t)v(g,t+1).options=S.yaxes[t];for(var s in C)S.hooks[s]&&S.hooks[s].length&&(C[s]=C[s].concat(S.hooks[s]));O(C.processOptions,[S])}(t),function(){m.css("padding",0).children().filter(function(){return!G(this).hasClass("flot-overlay")&&!G(this).hasClass("flot-base")}).remove(),"static"==m.css("position")&&m.css("position","relative");d=new _("flot-base",m),i=new _("flot-overlay",m),k=d.context,c=i.context,u=G(i.element).unbind();var e=m.data("plot");e&&(e.shutdown(),i.clear());m.data("plot",P)}(),n(e),s(),l(),function(){S.grid.hoverable&&(u.mousemove(q),u.bind("mouseleave",R));S.grid.clickable&&u.click(N);O(C.bindEvents,[u])}();var D=[],W=null;function q(e){S.grid.hoverable&&L("plothover",e,function(e){return 0!=e.hoverable})}function R(e){S.grid.hoverable&&L("plothover",e,function(e){return!1})}function N(e){L("plotclick",e,function(e){return 0!=e.clickable})}function L(e,t,i){var o=u.offset(),n=t.pageX-o.left-w.left,r=t.pageY-o.top-w.top,a=p({left:n,top:r});a.pageX=t.pageX,a.pageY=t.pageY;var s=function(e,t,i){for(var o,n=S.grid.mouseActiveRadius,r=n*n+1,a=null,s=z.length-1;0<=s;--s)if(i(z[s])){var l,c,u=z[s],p=u.xaxis,h=u.yaxis,d=u.datapoints.points,f=p.c2p(e),g=h.c2p(t),m=n/p.scale,x=n/h.scale,v=u.datapoints.pointsize;if(p.options.inverseTransform&&(m=Number.MAX_VALUE),h.options.inverseTransform&&(x=Number.MAX_VALUE),u.lines.show||u.points.show)for(o=0;o<d.length;o+=v){var b,y,k,w=d[o],M=d[o+1];null!=w&&(m<w-f||w-f<-m||x<M-g||M-g<-x||(k=(b=Math.abs(p.p2c(w)-e))*b+(y=Math.abs(h.p2c(M)-t))*y)<r&&(r=k,a=[s,o/v]))}if(u.bars.show&&!a){switch(u.bars.align){case"left":l=0;break;case"right":l=-u.bars.barWidth;break;default:l=-u.bars.barWidth/2}for(c=l+u.bars.barWidth,o=0;o<d.length;o+=v){var w=d[o],M=d[o+1],T=d[o+2];null!=w&&(z[s].bars.horizontal?f<=Math.max(T,w)&&f>=Math.min(T,w)&&M+l<=g&&g<=M+c:w+l<=f&&f<=w+c&&g>=Math.min(T,M)&&g<=Math.max(T,M))&&(a=[s,o/v])}}}return a?(s=a[0],o=a[1],v=z[s].datapoints.pointsize,{datapoint:z[s].datapoints.points.slice(o*v,(o+1)*v),dataIndex:o,series:z[s],seriesIndex:s}):null}(n,r,i);if(s&&(s.pageX=parseInt(s.series.xaxis.p2c(s.datapoint[0])+o.left+w.left,10),s.pageY=parseInt(s.series.yaxis.p2c(s.datapoint[1])+o.top+w.top,10)),S.grid.autoHighlight){for(var l=0;l<D.length;++l){var c=D[l];c.auto!=e||s&&c.series==s.series&&c.point[0]==s.datapoint[0]&&c.point[1]==s.datapoint[1]||E(c.series,c.point)}s&&H(s.series,s.datapoint,e)}m.trigger(e,[a,s])}function j(){var e=S.interaction.redrawOverlayInterval;-1!=e?W=W||setTimeout(Y,e):Y()}function Y(){var e,t;for(W=null,c.save(),i.clear(),c.translate(w.left,w.top),e=0;e<D.length;++e)((t=D[e]).series.bars.show?B:Q)(t.series,t.point);c.restore(),O(C.drawOverlay,[c])}function H(e,t,i){var o;"number"==typeof e&&(e=z[e]),"number"==typeof t&&(o=e.datapoints.pointsize,t=e.datapoints.points.slice(o*t,o*(t+1)));var n=X(e,t);-1==n?(D.push({series:e,point:t,auto:i}),j()):i||(D[n].auto=!1)}function E(e,t){if(null==e&&null==t)return D=[],void j();var i;"number"==typeof e&&(e=z[e]),"number"==typeof t&&(i=e.datapoints.pointsize,t=e.datapoints.points.slice(i*t,i*(t+1)));var o=X(e,t);-1!=o&&(D.splice(o,1),j())}function X(e,t){for(var i=0;i<D.length;++i){var o=D[i];if(o.series==e&&o.point[0]==t[0]&&o.point[1]==t[1])return i}return-1}function Q(e,t){var i,o,n=t[0],r=t[1],a=e.xaxis,s=e.yaxis,l="string"==typeof e.highlightColor?e.highlightColor:G.color.parse(e.color).scale("a",.5).toString();n<a.min||n>a.max||r<s.min||r>s.max||(i=e.points.radius+e.points.lineWidth/2,c.lineWidth=i,c.strokeStyle=l,o=1.5*i,n=a.p2c(n),r=s.p2c(r),c.beginPath(),"circle"==e.points.symbol?c.arc(n,r,o,0,2*Math.PI,!1):e.points.symbol(c,n,r,o,!1),c.closePath(),c.stroke())}function B(e,t){var i,o="string"==typeof e.highlightColor?e.highlightColor:G.color.parse(e.color).scale("a",.5).toString(),n=o;switch(e.bars.align){case"left":i=0;break;case"right":i=-e.bars.barWidth;break;default:i=-e.bars.barWidth/2}c.lineWidth=e.bars.lineWidth,c.strokeStyle=o,y(t[0],t[1],t[2]||0,i,i+e.bars.barWidth,function(){return n},e.xaxis,e.yaxis,c,e.bars.horizontal,e.bars.lineWidth)}function $(e,t,i,o){if("string"==typeof e)return e;for(var n=k.createLinearGradient(0,i,0,t),r=0,a=e.colors.length;r<a;++r){var s,l=e.colors[r];"string"!=typeof l&&(s=G.color.parse(o),null!=l.brightness&&(s=s.scale("rgb",l.brightness)),null!=l.opacity&&(s.a*=l.opacity),l=s.toString()),n.addColorStop(r/(a-1),l)}return n}}G.fn.detach||(G.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),_.prototype.resize=function(e,t){if(e<=0||t<=0)throw new Error("Invalid dimensions for plot, width = "+e+", height = "+t);var i=this.element,o=this.context,n=this.pixelRatio;this.width!=e&&(i.width=e*n,i.style.width=e+"px",this.width=e),this.height!=t&&(i.height=t*n,i.style.height=t+"px",this.height=t),o.restore(),o.save(),o.scale(n,n)},_.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},_.prototype.render=function(){var e=this._textCache;for(var t in e)if(d.call(e,t)){var i=this.getTextLayer(t),o=e[t];for(var n in i.hide(),o)if(d.call(o,n)){var r=o[n];for(var a in r)if(d.call(r,a)){for(var s,l=r[a].positions,c=0;s=l[c];c++)s.active?s.rendered||(i.append(s.element),s.rendered=!0):(l.splice(c--,1),s.rendered&&s.element.detach());0==l.length&&delete r[a]}}i.show()}},_.prototype.getTextLayer=function(e){var t=this.text[e];return null==t&&(null==this.textContainer&&(this.textContainer=G("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),t=this.text[e]=G("<div></div>").addClass(e).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),t},_.prototype.getTextInfo=function(e,t,i,o,n){var r,a,s,l,c;return t=""+t,r="object"==typeof i?i.style+" "+i.variant+" "+i.weight+" "+i.size+"px/"+i.lineHeight+"px "+i.family:i,null==(a=this._textCache[e])&&(a=this._textCache[e]={}),null==(s=a[r])&&(s=a[r]={}),null==(l=s[t])&&(c=G("<div></div>").html(t).css({position:"absolute","max-width":n,top:-9999}).appendTo(this.getTextLayer(e)),"object"==typeof i?c.css({font:r,color:i.color}):"string"==typeof i&&c.addClass(i),l=s[t]={width:c.outerWidth(!0),height:c.outerHeight(!0),element:c,positions:[]},c.detach()),l},_.prototype.addText=function(e,t,i,o,n,r,a,s,l){var c=this.getTextInfo(e,o,n,r,a),u=c.positions;"center"==s?t-=c.width/2:"right"==s&&(t-=c.width),"middle"==l?i-=c.height/2:"bottom"==l&&(i-=c.height);for(var p,h=0;p=u[h];h++)if(p.x==t&&p.y==i)return void(p.active=!0);p={active:!0,rendered:!1,element:u.length?c.element.clone():c.element,x:t,y:i},u.push(p),p.element.css({top:Math.round(i),left:Math.round(t),"text-align":s})},_.prototype.removeText=function(e,t,i,o,n,r){if(null==o){var a=this._textCache[e];if(null!=a)for(var s in a)if(d.call(a,s)){var l=a[s];for(var c in l)if(d.call(l,c))for(var u=l[c].positions,p=0;h=u[p];p++)h.active=!1}}else for(var h,u=this.getTextInfo(e,o,n,r).positions,p=0;h=u[p];p++)h.x==t&&h.y==i&&(h.active=!1)},G.plot=function(e,t,i){return new o(G(e),t,i,G.plot.plugins)},G.plot.version="0.8.3",G.plot.plugins=[],G.fn.plot=function(e,t){return this.each(function(){G.plot(this,e,t)})}}(jQuery),function(r){r.color={},r.color.make=function(e,t,i,o){var n={};return n.r=e||0,n.g=t||0,n.b=i||0,n.a=null!=o?o:1,n.add=function(e,t){for(var i=0;i<e.length;++i)n[e.charAt(i)]+=t;return n.normalize()},n.scale=function(e,t){for(var i=0;i<e.length;++i)n[e.charAt(i)]*=t;return n.normalize()},n.toString=function(){return 1<=n.a?"rgb("+[n.r,n.g,n.b].join(",")+")":"rgba("+[n.r,n.g,n.b,n.a].join(",")+")"},n.normalize=function(){function e(e,t,i){return t<e?e:i<t?i:t}return n.r=e(0,parseInt(n.r),255),n.g=e(0,parseInt(n.g),255),n.b=e(0,parseInt(n.b),255),n.a=e(0,n.a,1),n},n.clone=function(){return r.color.make(n.r,n.b,n.g,n.a)},n.normalize()},r.color.extract=function(e,t){var i;do{if(""!=(i=e.css(t).toLowerCase())&&"transparent"!=i)break;e=e.parent()}while(e.length&&!r.nodeName(e.get(0),"body"));return"rgba(0, 0, 0, 0)"==i&&(i="transparent"),r.color.parse(i)},r.color.parse=function(e){var t,i=r.color.make;if(t=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))return i(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10));if(t=/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 i(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4]));if(t=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))return i(2.55*parseFloat(t[1]),2.55*parseFloat(t[2]),2.55*parseFloat(t[3]));if(t=/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 i(2.55*parseFloat(t[1]),2.55*parseFloat(t[2]),2.55*parseFloat(t[3]),parseFloat(t[4]));if(t=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))return i(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16));if(t=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))return i(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16));var o=r.trim(e).toLowerCase();return"transparent"==o?i(255,255,255,0):i((t=n[o]||[0,0,0])[0],t[1],t[2])};var n={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(m){var x,v,b,y=Object.prototype.hasOwnProperty;m.plot.plugins.push({init:function(g,e){var t=e.Canvas;null==x&&(v=t.prototype.getTextInfo,b=t.prototype.addText,x=t.prototype.render),t.prototype.render=function(){if(!g.getOptions().canvas)return x.call(this);var e=this.context,t=this._textCache;for(var i in e.save(),e.textBaseline="middle",t)if(y.call(t,i)){var o=t[i];for(var n in o)if(y.call(o,n)){var r=o[n],a=!0;for(var s in r)if(y.call(r,s)){var l=r[s],c=l.positions,u=l.lines;a&&(e.fillStyle=l.font.color,e.font=l.font.definition,a=!1);for(var p,h=0;p=c[h];h++)if(p.active)for(var d,f=0;d=p.lines[f];f++)e.fillText(u[f].text,d[0],d[1]);else c.splice(h--,1);0==c.length&&delete r[s]}}}e.restore()},t.prototype.getTextInfo=function(e,t,i,o,n){if(!g.getOptions().canvas)return v.call(this,e,t,i,o,n);var r,a,s,l;if(t=""+t,r="object"==typeof i?i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family:i,null==(a=this._textCache[e])&&(a=this._textCache[e]={}),null==(s=a[r])&&(s=a[r]={}),null==(l=s[t])){var c,u=this.context;"object"!=typeof i&&((i={lineHeight:(c=m("<div>&nbsp;</div>").css("position","absolute").addClass("string"==typeof i?i:null).appendTo(this.getTextLayer(e))).height(),style:c.css("font-style"),variant:c.css("font-variant"),weight:c.css("font-weight"),family:c.css("font-family"),color:c.css("color")}).size=c.css("line-height",1).height(),c.remove()),r=i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family,l=s[t]={width:0,height:0,positions:[],lines:[],font:{definition:r,color:i.color}},u.save(),u.font=r;for(var p=(t+"").replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n"),h=0;h<p.length;++h){var d=p[h],f=u.measureText(d);l.width=Math.max(f.width,l.width),l.height+=i.lineHeight,l.lines.push({text:d,width:f.width,height:i.lineHeight})}u.restore()}return l},t.prototype.addText=function(e,t,i,o,n,r,a,s,l){if(!g.getOptions().canvas)return b.call(this,e,t,i,o,n,r,a,s,l);var c=this.getTextInfo(e,o,n,r,a),u=c.positions,p=c.lines;i+=c.height/p.length/2,i="middle"==l?Math.round(i-c.height/2):"bottom"==l?Math.round(i-c.height):Math.round(i),window.opera&&window.opera.version().split(".")[0]<12&&(i-=2);for(var h,d=0;h=u[d];d++)if(h.x==t&&h.y==i)return void(h.active=!0);h={active:!0,lines:[],x:t,y:i},u.push(h);for(var f,d=0;f=p[d];d++)"center"==s?h.lines.push([Math.round(t-f.width/2),i]):"right"==s?h.lines.push([Math.round(t-f.width),i]):h.lines.push([Math.round(t),i]),i+=f.height}},options:{canvas:!0},name:"canvas",version:"1.0"})}(jQuery),function(s){function t(e,t,i,o){var n="categories"==t.xaxis.options.mode,r="categories"==t.yaxis.options.mode;if(n||r){var a,s,l=o.format;l||(a=t,(l=[]).push({x:!0,number:!0,required:!0}),l.push({y:!0,number:!0,required:!0}),(a.bars.show||a.lines.show&&a.lines.fill)&&(s=!!(a.bars.show&&a.bars.zero||a.lines.show&&a.lines.zero),l.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:s}),a.bars.horizontal&&(delete l[l.length-1].y,l[l.length-1].x=!0)),o.format=l);for(var c=0;c<l.length;++c)l[c].x&&n&&(l[c].number=!1),l[c].y&&r&&(l[c].number=!1)}}function l(e){var t=[];for(var i in e.categories){var o=e.categories[i];o>=e.min&&o<=e.max&&t.push([o,i])}return t.sort(function(e,t){return e[0]-t[0]}),t}function o(e,t,i){if("categories"==e[t].options.mode){if(!e[t].categories){var o={},n=e[t].options.categories||{};if(s.isArray(n))for(var r=0;r<n.length;++r)o[n[r]]=r;else for(var a in n)o[a]=n[a];e[t].categories=o}e[t].options.ticks||(e[t].options.ticks=l),function(e,t,i){for(var o=e.points,n=e.pointsize,r=e.format,a=t.charAt(0),s=function(e){var t=-1;for(var i in e)e[i]>t&&(t=e[i]);return t+1}(i),l=0;l<o.length;l+=n)if(null!=o[l])for(var c=0;c<n;++c){var u=o[l+c];null!=u&&r[c][a]&&(u in i||(i[u]=s,++s),o[l+c]=i[u])}}(i,t,e[t].categories)}}function i(e,t,i){o(t,"xaxis",i),o(t,"yaxis",i)}s.plot.plugins.push({init:function(e){e.hooks.processRawData.push(t),e.hooks.processDatapoints.push(i)},options:{xaxis:{categories:null},yaxis:{categories:null}},name:"categories",version:"1.0"})}(jQuery),jQuery.plot.plugins.push({init:function(i){var s={x:-1,y:-1,locked:!1};function o(e){s.locked||-1!=s.x&&(s.x=-1,i.triggerRedrawOverlay())}function n(e){var t;s.locked||(i.getSelection&&i.getSelection()?s.x=-1:(t=i.offset(),s.x=Math.max(0,Math.min(e.pageX-t.left,i.width())),s.y=Math.max(0,Math.min(e.pageY-t.top,i.height())),i.triggerRedrawOverlay()))}i.setCrosshair=function(e){var t;e?(t=i.p2c(e),s.x=Math.max(0,Math.min(t.left,i.width())),s.y=Math.max(0,Math.min(t.top,i.height()))):s.x=-1,i.triggerRedrawOverlay()},i.clearCrosshair=i.setCrosshair,i.lockCrosshair=function(e){e&&i.setCrosshair(e),s.locked=!0},i.unlockCrosshair=function(){s.locked=!1},i.hooks.bindEvents.push(function(e,t){e.getOptions().crosshair.mode&&(t.mouseout(o),t.mousemove(n))}),i.hooks.drawOverlay.push(function(e,t){var i,o,n,r,a=e.getOptions().crosshair;a.mode&&(i=e.getPlotOffset(),t.save(),t.translate(i.left,i.top),-1!=s.x&&(o=e.getOptions().crosshair.lineWidth%2?.5:0,t.strokeStyle=a.color,t.lineWidth=a.lineWidth,t.lineJoin="round",t.beginPath(),-1!=a.mode.indexOf("x")&&(n=Math.floor(s.x)+o,t.moveTo(n,0),t.lineTo(n,e.height())),-1!=a.mode.indexOf("y")&&(r=Math.floor(s.y)+o,t.moveTo(0,r),t.lineTo(e.width(),r)),t.stroke()),t.restore())}),i.hooks.shutdown.push(function(e,t){t.unbind("mouseout",o),t.unbind("mousemove",n)})},options:{crosshair:{mode:null,color:"rgba(170, 0, 0, 0.80)",lineWidth:1}},name:"crosshair",version:"1.0"}),function(p){function t(e,t,i,o){var n,r;t.points.errorbars&&(n=[{x:!0,number:!0,required:!0},{y:!0,number:!0,required:!0}],"x"!=(r=t.points.errorbars)&&"xy"!=r||(t.points.xerr.asymmetric&&n.push({x:!0,number:!0,required:!0}),n.push({x:!0,number:!0,required:!0})),"y"!=r&&"xy"!=r||(t.points.yerr.asymmetric&&n.push({y:!0,number:!0,required:!0}),n.push({y:!0,number:!0,required:!0})),o.format=n)}function M(e,t){var i=e.datapoints.points,o=null,n=null,r=null,a=null,s=e.points.xerr,l=e.points.yerr,c=e.points.errorbars;"x"==c||"xy"==c?s.asymmetric?(o=i[t+2],n=i[t+3],"xy"==c&&(l.asymmetric?(r=i[t+4],a=i[t+5]):r=i[t+4])):(o=i[t+2],"xy"==c&&(l.asymmetric?(r=i[t+3],a=i[t+4]):r=i[t+3])):"y"==c&&(l.asymmetric?(r=i[t+2],a=i[t+3]):r=i[t+2]),null==n&&(n=o),null==a&&(a=r);var u=[o,n,r,a];return s.show||(u[0]=null,u[1]=null),l.show||(u[2]=null,u[3]=null),u}function T(e,t,i,o,n,r,a,s,l,c,u){o+=c,n+=c,r+=c,"x"==t.err?(i+l<n?h(e,[[n,o],[Math.max(i+l,u[0]),o]]):a=!1,r<i-l?h(e,[[Math.min(i-l,u[1]),o],[r,o]]):s=!1):(n<o-l?h(e,[[i,n],[i,Math.min(o-l,u[0])]]):a=!1,o+l<r?h(e,[[i,Math.max(o+l,u[1])],[i,r]]):s=!1),l=null!=t.radius?t.radius:l,a&&("-"==t.upperCap?"x"==t.err?h(e,[[n,o-l],[n,o+l]]):h(e,[[i-l,n],[i+l,n]]):p.isFunction(t.upperCap)&&("x"==t.err?t.upperCap(e,n,o,l):t.upperCap(e,i,n,l))),s&&("-"==t.lowerCap?"x"==t.err?h(e,[[r,o-l],[r,o+l]]):h(e,[[i-l,r],[i+l,r]]):p.isFunction(t.lowerCap)&&("x"==t.err?t.lowerCap(e,r,o,l):t.lowerCap(e,i,r,l)))}function h(e,t){e.beginPath(),e.moveTo(t[0][0],t[0][1]);for(var i=1;i<t.length;i++)e.lineTo(t[i][0],t[i][1]);e.stroke()}function i(e,i){var t=e.getPlotOffset();i.save(),i.translate(t.left,t.top),p.each(e.getData(),function(e,t){t.points.errorbars&&(t.points.xerr.show||t.points.yerr.show)&&function(e,t){var i=t.datapoints.points,o=t.datapoints.pointsize,n=[t.xaxis,t.yaxis],r=t.points.radius,a=[t.points.xerr,t.points.yerr],s=!1;n[0].p2c(n[0].max)<n[0].p2c(n[0].min)&&(s=!0,x=a[0].lowerCap,a[0].lowerCap=a[0].upperCap,a[0].upperCap=x);var l=!1;n[1].p2c(n[1].min)<n[1].p2c(n[1].max)&&(l=!0,x=a[1].lowerCap,a[1].lowerCap=a[1].upperCap,a[1].upperCap=x);for(var c=0;c<t.datapoints.points.length;c+=o)for(var u=M(t,c),p=0;p<a.length;p++){var h=[n[p].min,n[p].max];if(u[p*a.length]){var d=i[c],f=i[c+1],g=[d,f][p]+u[p*a.length+1],m=[d,f][p]-u[p*a.length];if("x"==a[p].err&&(f>n[1].max||f<n[1].min||g<n[0].min||m>n[0].max))continue;if("y"==a[p].err&&(d>n[0].max||d<n[0].min||g<n[1].min||m>n[1].max))continue;var x,v=!0,b=!0;g>h[1]&&(v=!1,g=h[1]),m<h[0]&&(b=!1,m=h[0]),("x"==a[p].err&&s||"y"==a[p].err&&l)&&(x=m,m=g,g=x,x=b,b=v,v=x,x=h[0],h[0]=h[1],h[1]=x),d=n[0].p2c(d),f=n[1].p2c(f),g=n[p].p2c(g),m=n[p].p2c(m),h[0]=n[p].p2c(h[0]),h[1]=n[p].p2c(h[1]);var y,k=a[p].lineWidth?a[p].lineWidth:t.points.lineWidth,w=null!=t.points.shadowSize?t.points.shadowSize:t.shadowSize;0<k&&0<w&&(y=w/2,e.lineWidth=y,e.strokeStyle="rgba(0,0,0,0.1)",T(e,a[p],d,f,g,m,v,b,r,y+y/2,h),e.strokeStyle="rgba(0,0,0,0.2)",T(e,a[p],d,f,g,m,v,b,r,y/2,h)),e.strokeStyle=a[p].color?a[p].color:t.color,e.lineWidth=k,T(e,a[p],d,f,g,m,v,b,r,0,h)}}}(i,t)}),i.restore()}p.plot.plugins.push({init:function(e){e.hooks.processRawData.push(t),e.hooks.draw.push(i)},options:{series:{points:{errorbars:null,xerr:{err:"x",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null},yerr:{err:"y",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null}}}},name:"errorbars",version:"1.0"})}(jQuery),jQuery.plot.plugins.push({init:function(e){e.hooks.processDatapoints.push(function(e,t,i){if(null!=t.fillBetween){var o=function(e,t){for(var i=0;i<t.length;++i)if(t[i].id===e.fillBetween)return t[i];return"number"!=typeof e.fillBetween||e.fillBetween<0||e.fillBetween>=t.length?null:t[e.fillBetween]}(t,e.getData());if(o){for(var n,r,a,s,l,c,u,p,h=i.pointsize,d=i.points,f=o.datapoints.pointsize,g=o.datapoints.points,m=[],x=t.lines.show,v=2<h&&i.format[2].y,b=x&&t.lines.steps,y=!0,k=0,w=0;!(k>=d.length);){if(u=m.length,null==d[k]){for(p=0;p<h;++p)m.push(d[k+p]);k+=h}else if(w>=g.length){if(!x)for(p=0;p<h;++p)m.push(d[k+p]);k+=h}else if(null==g[w]){for(p=0;p<h;++p)m.push(null);y=!0,w+=f}else{if(n=d[k],r=d[k+1],s=g[w],l=g[w+1],c=0,n===s){for(p=0;p<h;++p)m.push(d[k+p]);c=l,k+=h,w+=f}else if(s<n){if(x&&0<k&&null!=d[k-h]){for(a=r+(d[k-h+1]-r)*(s-n)/(d[k-h]-n),m.push(s),m.push(a),p=2;p<h;++p)m.push(d[k+p]);c=l}w+=f}else{if(y&&x){k+=h;continue}for(p=0;p<h;++p)m.push(d[k+p]);x&&0<w&&null!=g[w-f]&&(c=l+(g[w-f+1]-l)*(n-s)/(g[w-f]-s)),k+=h}y=!1,u!==m.length&&v&&(m[u+2]=c)}if(b&&u!==m.length&&0<u&&null!==m[u]&&m[u]!==m[u-h]&&m[u+1]!==m[u-h+1]){for(p=0;p<h;++p)m[u+h+p]=m[u+p];m[u+1]=m[u-h+1]}}i.points=m}}})},options:{series:{fillBetween:null}},name:"fillbetween",version:"1.0"}),function(a){function t(e,t,i){var o=e.getPlotOffset();if(i.images&&i.images.show)for(var n=i.datapoints.points,r=i.datapoints.pointsize,a=0;a<n.length;a+=r){var s,l,c,u,p,h=n[a],d=n[a+1],f=n[a+2],g=n[a+3],m=n[a+4],x=i.xaxis,v=i.yaxis;!h||h.width<=0||h.height<=0||(g<d&&(s=g,g=d,d=s),m<f&&(s=m,m=f,f=s),"center"==i.images.anchor&&(d-=s=.5*(g-d)/(h.width-1),g+=s,f-=s=.5*(m-f)/(h.height-1),m+=s),d==g||f==m||d>=x.max||g<=x.min||f>=v.max||m<=v.min||(c=l=0,u=h.width,p=h.height,d<x.min&&(l+=(u-l)*(x.min-d)/(g-d),d=x.min),g>x.max&&(u+=(u-l)*(x.max-g)/(g-d),g=x.max),f<v.min&&(p+=(c-p)*(v.min-f)/(m-f),f=v.min),m>v.max&&(c+=(c-p)*(v.max-m)/(m-f),m=v.max),d=x.p2c(d),g=x.p2c(g),f=v.p2c(f),g<d&&(s=g,g=d,d=s),(m=v.p2c(m))<f&&(s=m,m=f,f=s),s=t.globalAlpha,t.globalAlpha*=i.images.alpha,t.drawImage(h,l,c,u-l,p-c,d+o.left,f+o.top,g-d,m-f),t.globalAlpha=s))}}function i(e,t,i,o){t.images.show&&(o.format=[{required:!0},{x:!0,number:!0,required:!0},{y:!0,number:!0,required:!0},{x:!0,number:!0,required:!0},{y:!0,number:!0,required:!0}])}a.plot.image={},a.plot.image.loadDataImages=function(e,t,i){var o=[],n=[],r=t.series.images.show;a.each(e,function(e,t){(r||t.images.show)&&(t.data&&(t=t.data),a.each(t,function(e,t){"string"==typeof t[0]&&(o.push(t[0]),n.push(t))}))}),a.plot.image.load(o,function(o){a.each(n,function(e,t){var i=t[0];o[i]&&(t[0]=o[i])}),i()})},a.plot.image.load=function(e,o){var n=e.length,r={};0==n&&o({}),a.each(e,function(e,t){function i(){--n,r[t]=this,0==n&&o(r)}a("<img />").load(i).error(i).attr("src",t)})},a.plot.plugins.push({init:function(e){e.hooks.processRawData.push(i),e.hooks.drawSeries.push(t)},options:{series:{images:{show:!1,alpha:1,anchor:"corner"}}},name:"image",version:"1.1"})}(jQuery),function(n){function r(e){var t,i=this,o=e.data||{};if(o.elem)i=e.dragTarget=o.elem,e.dragProxy=p.proxy||i,e.cursorOffsetX=o.pageX-o.left,e.cursorOffsetY=o.pageY-o.top,e.offsetX=e.pageX-e.cursorOffsetX,e.offsetY=e.pageY-e.cursorOffsetY;else if(p.dragging||0<o.which&&e.which!=o.which||n(e.target).is(o.not))return;switch(e.type){case"mousedown":return n.extend(o,n(i).offset(),{elem:i,target:e.target,pageX:e.pageX,pageY:e.pageY}),c.add(document,"mousemove mouseup",r,o),l(i,!1),p.dragging=null,!1;case!p.dragging&&"mousemove":if(s(e.pageX-o.pageX)+s(e.pageY-o.pageY)<o.distance)break;e.target=o.target,!1!==(t=a(e,"dragstart",i))&&(p.dragging=i,p.proxy=e.dragProxy=n(t||i)[0]);case"mousemove":if(p.dragging){if(t=a(e,"drag",i),u.drop&&(u.drop.allowed=!1!==t,u.drop.handler(e)),!1!==t)break;e.type="mouseup"}case"mouseup":c.remove(document,"mousemove mouseup",r),p.dragging&&(u.drop&&u.drop.handler(e),a(e,"dragend",i)),l(i,!0),p.dragging=p.proxy=o.elem=!1}return!0}function a(e,t,i){e.type=t;var o=n.event.dispatch.call(i,e);return!1!==o&&(o||e.result)}function s(e){return Math.pow(e,2)}function t(){return!1===p.dragging}function l(e,t){e&&(e.unselectable=t?"off":"on",e.onselectstart=function(){return t},e.style&&(e.style.MozUserSelect=t?"":"none"))}n.fn.drag=function(e,t,i){return t&&this.bind("dragstart",e),i&&this.bind("dragend",i),e?this.bind("drag",t||e):this.trigger("drag")};var c=n.event,u=c.special,p=u.drag={not:":input",distance:0,which:1,dragging:!1,setup:function(e){(e=n.extend({distance:p.distance,which:p.which,not:p.not},e||{})).distance=s(e.distance),c.add(this,"mousedown",r,e),this.attachEvent&&this.attachEvent("ondragstart",t)},teardown:function(){c.remove(this,"mousedown",r),this===p.dragging&&(p.dragging=p.proxy=!1),l(this,!0),this.detachEvent&&this.detachEvent("ondragstart",t)}};u.dragstart=u.dragend={setup:function(){},teardown:function(){}}}(jQuery),function(a){function t(e){var t=e||window.event,i=[].slice.call(arguments,1),o=0,n=0,r=0;return(e=a.event.fix(t)).type="mousewheel",t.wheelDelta&&(o=t.wheelDelta/120),t.detail&&(o=-t.detail/3),r=o,void 0!==t.axis&&t.axis===t.HORIZONTAL_AXIS&&(r=0,n=-1*o),void 0!==t.wheelDeltaY&&(r=t.wheelDeltaY/120),void 0!==t.wheelDeltaX&&(n=-1*t.wheelDeltaX/120),i.unshift(e,o,n,r),(a.event.dispatch||a.event.handle).apply(this,i)}var i=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var e=i.length;e;)a.event.fixHooks[i[--e]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],t,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery),function(h){h.plot.plugins.push({init:function(a){function o(e,t){var i=a.offset();i.left=e.pageX-i.left,i.top=e.pageY-i.top,t?a.zoomOut({center:i}):a.zoom({center:i})}function n(e,t){return e.preventDefault(),o(e,t<0),!1}var i="default",r=0,s=0,l=null;function c(e){if(1!=e.which)return!1;var t=a.getPlaceholder().css("cursor");t&&(i=t),a.getPlaceholder().css("cursor",a.getOptions().pan.cursor),r=e.pageX,s=e.pageY}function u(e){var t=a.getOptions().pan.frameRate;!l&&t&&(l=setTimeout(function(){a.pan({left:r-e.pageX,top:s-e.pageY}),r=e.pageX,s=e.pageY,l=null},1/t*1e3))}function p(e){l&&(clearTimeout(l),l=null),a.getPlaceholder().css("cursor",i),a.pan({left:r-e.pageX,top:s-e.pageY})}a.zoomOut=function(e){(e=e||{}).amount||(e.amount=a.getOptions().zoom.amount),e.amount=1/e.amount,a.zoom(e)},a.zoom=function(e){var t=(e=e||{}).center,c=e.amount||a.getOptions().zoom.amount,i=a.width(),o=a.height(),n=(t=t||{left:i/2,top:o/2}).left/i,r=t.top/o,u={x:{min:t.left-n*i/c,max:t.left+(1-n)*i/c},y:{min:t.top-r*o/c,max:t.top+(1-r)*o/c}};h.each(a.getAxes(),function(e,t){var i,o,n=t.options,r=u[t.direction].min,a=u[t.direction].max,s=n.zoomRange,l=n.panRange;!1!==s&&(r=t.c2p(r),(a=t.c2p(a))<r&&(i=r,r=a,a=i),l&&(null!=l[0]&&r<l[0]&&(r=l[0]),null!=l[1]&&a>l[1]&&(a=l[1])),o=a-r,s&&(null!=s[0]&&o<s[0]&&1<c||null!=s[1]&&o>s[1]&&c<1)||(n.min=r,n.max=a))}),a.setupGrid(),a.draw(),e.preventEvent||a.getPlaceholder().trigger("plotzoom",[a,e])},a.pan=function(e){var s={x:+e.left,y:+e.top};isNaN(s.x)&&(s.x=0),isNaN(s.y)&&(s.y=0),h.each(a.getAxes(),function(e,t){var i=t.options,o=s[t.direction],n=t.c2p(t.p2c(t.min)+o),r=t.c2p(t.p2c(t.max)+o),a=i.panRange;!1!==a&&(a&&(null!=a[0]&&a[0]>n&&(n+=o=a[0]-n,r+=o),null!=a[1]&&a[1]<r&&(n+=o=a[1]-r,r+=o)),i.min=n,i.max=r)}),a.setupGrid(),a.draw(),e.preventEvent||a.getPlaceholder().trigger("plotpan",[a,e])},a.hooks.bindEvents.push(function(e,t){var i=e.getOptions();i.zoom.interactive&&(t[i.zoom.trigger](o),t.mousewheel(n)),i.pan.interactive&&(t.bind("dragstart",{distance:10},c),t.bind("drag",u),t.bind("dragend",p))}),a.hooks.shutdown.push(function(e,t){t.unbind(e.getOptions().zoom.trigger,o),t.unbind("mousewheel",n),t.unbind("dragstart",c),t.unbind("drag",u),t.unbind("dragend",p),l&&clearTimeout(l)})},options:{xaxis:{zoomRange:null,panRange:null},zoom:{interactive:!1,trigger:"dblclick",amount:1.5},pan:{interactive:!1,cursor:"move",frameRate:20}},name:"navigate",version:"1.3"})}(jQuery),function(w){var e={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(e,t){return"<div style='font-size:x-small;text-align:center;padding:2px;color:"+t.color+";'>"+e+"<br/>"+Math.round(t.percent)+"%</div>"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};w.plot.plugins.push({init:function(u){var r=null,v=null,b=null,p=null,y=null,k=null,l=!1,h=null,d=[];function c(e){var t;0<b.series.pie.innerRadius&&(e.save(),t=1<b.series.pie.innerRadius?b.series.pie.innerRadius:p*b.series.pie.innerRadius,e.globalCompositeOperation="destination-out",e.beginPath(),e.fillStyle=b.series.pie.stroke.color,e.arc(0,0,t,0,2*Math.PI,!1),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.strokeStyle=b.series.pie.stroke.color,e.arc(0,0,t,0,2*Math.PI,!1),e.stroke(),e.closePath(),e.restore())}function f(e,t){for(var i=!1,o=-1,n=e.length,r=n-1;++o<n;r=o)(e[o][1]<=t[1]&&t[1]<e[r][1]||e[r][1]<=t[1]&&t[1]<e[o][1])&&t[0]<(e[r][0]-e[o][0])*(t[1]-e[o][1])/(e[r][1]-e[o][1])+e[o][0]&&(i=!i);return i}function o(e){t("plothover",e)}function n(e){t("plotclick",e)}function t(e,t){var i,o,n,r=u.offset(),a=function(e,t){for(var i,o,n=u.getData(),r=u.getOptions(),a=1<r.series.pie.radius?r.series.pie.radius:p*r.series.pie.radius,s=0;s<n.length;++s){var l=n[s];if(l.pie.show){if(h.save(),h.beginPath(),h.moveTo(0,0),h.arc(0,0,a,l.startAngle,l.startAngle+l.angle/2,!1),h.arc(0,0,a,l.startAngle+l.angle/2,l.startAngle+l.angle,!1),h.closePath(),i=e-y,o=t-k,h.isPointInPath){if(h.isPointInPath(e-y,t-k))return h.restore(),{datapoint:[l.percent,l.data],dataIndex:0,series:l,seriesIndex:s}}else if(f([[0,0],[a*Math.cos(l.startAngle),a*Math.sin(l.startAngle)],[a*Math.cos(l.startAngle+l.angle/4),a*Math.sin(l.startAngle+l.angle/4)],[a*Math.cos(l.startAngle+l.angle/2),a*Math.sin(l.startAngle+l.angle/2)],[a*Math.cos(l.startAngle+l.angle/1.5),a*Math.sin(l.startAngle+l.angle/1.5)],[a*Math.cos(l.startAngle+l.angle),a*Math.sin(l.startAngle+l.angle)]],[i,o]))return h.restore(),{datapoint:[l.percent,l.data],dataIndex:0,series:l,seriesIndex:s};h.restore()}}return null}(parseInt(t.pageX-r.left),parseInt(t.pageY-r.top));if(b.grid.autoHighlight)for(var s=0;s<d.length;++s){var l=d[s];l.auto!=e||a&&l.series==a.series||g(l.series)}a&&(i=a.series,o=e,-1==(n=m(i))?(d.push({series:i,auto:o}),u.triggerRedrawOverlay()):o||(d[n].auto=!1));var c={pageX:t.pageX,pageY:t.pageY};v.trigger(e,[c,a])}function g(e){null==e&&(d=[],u.triggerRedrawOverlay());var t=m(e);-1!=t&&(d.splice(t,1),u.triggerRedrawOverlay())}function m(e){for(var t=0;t<d.length;++t){if(d[t].series==e)return t}return-1}u.hooks.processOptions.push(function(e,t){t.series.pie.show&&(t.grid.show=!1,"auto"==t.series.pie.label.show&&(t.legend.show?t.series.pie.label.show=!1:t.series.pie.label.show=!0),"auto"==t.series.pie.radius&&(t.series.pie.label.show?t.series.pie.radius=.75:t.series.pie.radius=1),1<t.series.pie.tilt?t.series.pie.tilt=1:t.series.pie.tilt<0&&(t.series.pie.tilt=0))}),u.hooks.bindEvents.push(function(e,t){var i=e.getOptions();i.series.pie.show&&(i.grid.hoverable&&t.unbind("mousemove").mousemove(o),i.grid.clickable&&t.unbind("click").click(n))}),u.hooks.processDatapoints.push(function(e,t,i,o){var n;e.getOptions().series.pie.show&&(n=e,l||(l=!0,r=n.getCanvas(),v=w(r).parent(),b=n.getOptions(),n.setData(function(e){for(var t=0,i=0,o=0,n=b.series.pie.combine.color,r=[],a=0;a<e.length;++a){var s=e[a].data;w.isArray(s)&&1==s.length&&(s=s[0]),w.isArray(s)?!isNaN(parseFloat(s[1]))&&isFinite(s[1])?s[1]=+s[1]:s[1]=0:s=!isNaN(parseFloat(s))&&isFinite(s)?[1,+s]:[1,0],e[a].data=[s]}for(a=0;a<e.length;++a)t+=e[a].data[0][1];for(a=0;a<e.length;++a){(s=e[a].data[0][1])/t<=b.series.pie.combine.threshold&&(i+=s,o++,n=n||e[a].color)}for(a=0;a<e.length;++a){s=e[a].data[0][1];(o<2||s/t>b.series.pie.combine.threshold)&&r.push(w.extend(e[a],{data:[[1,s]],color:e[a].color,label:e[a].label,angle:s*Math.PI*2/t,percent:s/(t/100)}))}1<o&&r.push({data:[[1,i]],color:n,label:b.series.pie.combine.label,angle:i*Math.PI*2/t,percent:i/(t/100)});return r}(n.getData()))))}),u.hooks.drawOverlay.push(function(e,t){e.getOptions().series.pie.show&&function(e,t){var i=e.getOptions(),o=1<i.series.pie.radius?i.series.pie.radius:p*i.series.pie.radius;t.save(),t.translate(y,k),t.scale(1,i.series.pie.tilt);for(var n=0;n<d.length;++n)r(d[n].series);function r(e){e.angle<=0||isNaN(e.angle)||(t.fillStyle="rgba(255, 255, 255, "+i.series.pie.highlight.opacity+")",t.beginPath(),1e-9<Math.abs(e.angle-2*Math.PI)&&t.moveTo(0,0),t.arc(0,0,o,e.startAngle,e.startAngle+e.angle/2,!1),t.arc(0,0,o,e.startAngle+e.angle/2,e.startAngle+e.angle,!1),t.closePath(),t.fill())}c(t),t.restore()}(e,t)}),u.hooks.draw.push(function(e,t){e.getOptions().series.pie.show&&function(e,t){if(!v)return;var m=e.getPlaceholder().width(),x=e.getPlaceholder().height(),i=v.children().filter(".legend").children().width()||0;h=t,l=!1,p=Math.min(m,x/b.series.pie.tilt)/2,k=x/2+b.series.pie.offset.top,y=m/2,"auto"==b.series.pie.offset.left?(b.legend.position.match("w")?y+=i/2:y-=i/2,y<p?y=p:m-p<y&&(y=m-p)):y+=b.series.pie.offset.left;var a=e.getData(),o=0;for(;0<o&&(p*=.95),o+=1,n(),b.series.pie.tilt<=.8&&r(),!s()&&o<10;);10<=o&&(n(),v.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>"));e.setSeries&&e.insertLegend&&(e.setSeries(a),e.insertLegend());function n(){h.clearRect(0,0,m,x),v.children().filter(".pieLabel, .pieLabelBackground").remove()}function r(){var e=b.series.pie.shadow.left,t=b.series.pie.shadow.top,i=b.series.pie.shadow.alpha,o=1<b.series.pie.radius?b.series.pie.radius:p*b.series.pie.radius;if(!(m/2-e<=o||o*b.series.pie.tilt>=x/2-t||o<=10)){h.save(),h.translate(e,t),h.globalAlpha=i,h.fillStyle="#000",h.translate(y,k),h.scale(1,b.series.pie.tilt);for(var n=1;n<=10;n++)h.beginPath(),h.arc(0,0,o,0,2*Math.PI,!1),h.fill(),o-=n;h.restore()}}function s(){var o=Math.PI*b.series.pie.startAngle,n=1<b.series.pie.radius?b.series.pie.radius:p*b.series.pie.radius;h.save(),h.translate(y,k),h.scale(1,b.series.pie.tilt),h.save();for(var r=o,e=0;e<a.length;++e)a[e].startAngle=r,t(a[e].angle,a[e].color,!0);if(h.restore(),0<b.series.pie.stroke.width){h.save(),h.lineWidth=b.series.pie.stroke.width,r=o;for(e=0;e<a.length;++e)t(a[e].angle,b.series.pie.stroke.color,!1);h.restore()}return c(h),h.restore(),!b.series.pie.label.show||function(){for(var e=o,g=1<b.series.pie.label.radius?b.series.pie.label.radius:p*b.series.pie.label.radius,t=0;t<a.length;++t){if(a[t].percent>=100*b.series.pie.label.threshold&&!i(a[t],e,t))return!1;e+=a[t].angle}return!0;function i(e,t,i){if(0==e.data[0][1])return 1;var o=b.legend.labelFormatter,n=b.series.pie.label.formatter,r=o?o(e.label,e):e.label;n&&(r=n(r,e));var a=(t+e.angle+t)/2,s=y+Math.round(Math.cos(a)*g),l=k+Math.round(Math.sin(a)*g)*b.series.pie.tilt,c="<span class='pieLabel' id='pieLabel"+i+"' style='position:absolute;top:"+l+"px;left:"+s+"px;'>"+r+"</span>";v.append(c);var u,p,h=v.children("#pieLabel"+i),d=l-h.height()/2,f=s-h.width()/2;return h.css("top",d),h.css("left",f),!(0<0-d||0<0-f||x-(d+h.height())<0||m-(f+h.width())<0)&&(0!=b.series.pie.label.background.opacity&&(null==(u=b.series.pie.label.background.color)&&(u=e.color),p="top:"+d+"px;left:"+f+"px;",w("<div class='pieLabelBackground' style='position:absolute;width:"+h.width()+"px;height:"+h.height()+"px;"+p+"background-color:"+u+";'></div>").css("opacity",b.series.pie.label.background.opacity).insertBefore(h)),1)}}();function t(e,t,i){e<=0||isNaN(e)||(i?h.fillStyle=t:(h.strokeStyle=t,h.lineJoin="round"),h.beginPath(),1e-9<Math.abs(e-2*Math.PI)&&h.moveTo(0,0),h.arc(0,0,n,r,r+e/2,!1),h.arc(0,0,n,r+e/2,r+e,!1),h.closePath(),r+=e,i?h.fill():h.stroke())}}}(e,t)})},options:e,name:"pie",version:"1.1"})}(jQuery),function(a,s,l){var c,u=[],p=a.resize=a.extend(a.resize,{}),h=!1,i="setTimeout",d="resize",f=d+"-special-event",g="pendingDelay",o="activeDelay",n="throttleWindow";function m(e){!0===h&&(h=e||1);for(var t=u.length-1;0<=t;t--){var i,o,n,r=a(u[t]);r[0]==s||r.is(":visible")?(i=r.width(),o=r.height(),!(n=r.data(f))||i===n.w&&o===n.h||(r.trigger(d,[n.w=i,n.h=o]),h=e||!0)):((n=r.data(f)).w=0,n.h=0)}null!==c&&(h&&(null==e||e-h<1e3)?c=s.requestAnimationFrame(m):(c=setTimeout(m,p[g]),h=!1))}p[g]=200,p[o]=20,p[n]=!0,a.event.special[d]={setup:function(){if(!p[n]&&this[i])return!1;var e=a(this);u.push(this),e.data(f,{w:e.width(),h:e.height()}),1===u.length&&(c=l,m())},teardown:function(){if(!p[n]&&this[i])return!1;for(var e=a(this),t=u.length-1;0<=t;t--)if(u[t]==this){u.splice(t,1);break}e.removeData(f),u.length||((h?cancelAnimationFrame:clearTimeout)(c),c=null)},add:function(e){if(!p[n]&&this[i])return!1;var r;function t(e,t,i){var o=a(this),n=o.data(f)||{};n.w=t!==l?t:o.width(),n.h=i!==l?i:o.height(),r.apply(this,arguments)}if(a.isFunction(e))return r=e,t;r=e.handler,e.handler=t}},s.requestAnimationFrame||(s.requestAnimationFrame=s.webkitRequestAnimationFrame||s.mozRequestAnimationFrame||s.oRequestAnimationFrame||s.msRequestAnimationFrame||function(e,t){return s.setTimeout(function(){e((new Date).getTime())},p[o])}),s.cancelAnimationFrame||(s.cancelAnimationFrame=s.webkitCancelRequestAnimationFrame||s.mozCancelRequestAnimationFrame||s.oCancelRequestAnimationFrame||s.msCancelRequestAnimationFrame||clearTimeout)}(jQuery,this),jQuery.plot.plugins.push({init:function(t){function i(){var e=t.getPlaceholder();0!=e.width()&&0!=e.height()&&(t.resize(),t.setupGrid(),t.draw())}t.hooks.bindEvents.push(function(e,t){e.getPlaceholder().resize(i)}),t.hooks.shutdown.push(function(e,t){e.getPlaceholder().unbind("resize",i)})},options:{},name:"resize",version:"1.0"}),function(g){g.plot.plugins.push({init:function(c){var u={first:{x:-1,y:-1},second:{x:-1,y:-1},show:!1,active:!1},t={},i=null;function o(e){u.active&&(p(e),c.getPlaceholder().trigger("plotselecting",[r()]))}function n(e){1==e.which&&(document.body.focus(),void 0!==document.onselectstart&&null==t.onselectstart&&(t.onselectstart=document.onselectstart,document.onselectstart=function(){return!1}),void 0!==document.ondrag&&null==t.ondrag&&(t.ondrag=document.ondrag,document.ondrag=function(){return!1}),l(u.first,e),u.active=!0,i=function(e){!function(e){i=null,void 0!==document.onselectstart&&(document.onselectstart=t.onselectstart);void 0!==document.ondrag&&(document.ondrag=t.ondrag);u.active=!1,p(e),f()?a():(c.getPlaceholder().trigger("plotunselected",[]),c.getPlaceholder().trigger("plotselecting",[null]))}(e)},g(document).one("mouseup",i))}function r(){if(!f())return null;if(!u.show)return null;var n={},r=u.first,a=u.second;return g.each(c.getAxes(),function(e,t){var i,o;t.used&&(i=t.c2p(r[t.direction]),o=t.c2p(a[t.direction]),n[e]={from:Math.min(i,o),to:Math.max(i,o)})}),n}function a(){var e=r();c.getPlaceholder().trigger("plotselected",[e]),e.xaxis&&e.yaxis&&c.getPlaceholder().trigger("selected",[{x1:e.xaxis.from,y1:e.yaxis.from,x2:e.xaxis.to,y2:e.yaxis.to}])}function s(e,t,i){return t<e?e:i<t?i:t}function l(e,t){var i=c.getOptions(),o=c.getPlaceholder().offset(),n=c.getPlotOffset();e.x=s(0,t.pageX-o.left-n.left,c.width()),e.y=s(0,t.pageY-o.top-n.top,c.height()),"y"==i.selection.mode&&(e.x=e==u.first?0:c.width()),"x"==i.selection.mode&&(e.y=e==u.first?0:c.height())}function p(e){null!=e.pageX&&(l(u.second,e),f()?(u.show=!0,c.triggerRedrawOverlay()):h(!0))}function h(e){u.show&&(u.show=!1,c.triggerRedrawOverlay(),e||c.getPlaceholder().trigger("plotunselected",[]))}function d(e,t){var i,o,n,r,a,s=c.getAxes();for(var l in s)if((i=s[l]).direction==t&&(e[o=t+i.n+"axis"]||1!=i.n||(o=t+"axis"),e[o])){r=e[o].from,a=e[o].to;break}return e[o]||(i="x"==t?c.getXAxes()[0]:c.getYAxes()[0],r=e[t+"1"],a=e[t+"2"]),null!=r&&null!=a&&a<r&&(n=r,r=a,a=n),{from:r,to:a,axis:i}}function f(){var e=c.getOptions().selection.minSize;return Math.abs(u.second.x-u.first.x)>=e&&Math.abs(u.second.y-u.first.y)>=e}c.clearSelection=h,c.setSelection=function(e,t){var i,o=c.getOptions();"y"==o.selection.mode?(u.first.x=0,u.second.x=c.width()):(i=d(e,"x"),u.first.x=i.axis.p2c(i.from),u.second.x=i.axis.p2c(i.to)),"x"==o.selection.mode?(u.first.y=0,u.second.y=c.height()):(i=d(e,"y"),u.first.y=i.axis.p2c(i.from),u.second.y=i.axis.p2c(i.to)),u.show=!0,c.triggerRedrawOverlay(),!t&&f()&&a()},c.getSelection=r,c.hooks.bindEvents.push(function(e,t){null!=e.getOptions().selection.mode&&(t.mousemove(o),t.mousedown(n))}),c.hooks.drawOverlay.push(function(e,t){var i,o,n,r,a,s,l;u.show&&f()&&(i=e.getPlotOffset(),o=e.getOptions(),t.save(),t.translate(i.left,i.top),n=g.color.parse(o.selection.color),t.strokeStyle=n.scale("a",.8).toString(),t.lineWidth=1,t.lineJoin=o.selection.shape,t.fillStyle=n.scale("a",.4).toString(),r=Math.min(u.first.x,u.second.x)+.5,a=Math.min(u.first.y,u.second.y)+.5,s=Math.abs(u.second.x-u.first.x)-1,l=Math.abs(u.second.y-u.first.y)-1,t.fillRect(r,a,s,l),t.strokeRect(r,a,s,l),t.restore())}),c.hooks.shutdown.push(function(e,t){t.unbind("mousemove",o),t.unbind("mousedown",n),i&&g(document).unbind("mouseup",i)})},options:{selection:{mode:null,color:"#e8cfac",shape:"round",minSize:5}},name:"selection",version:"1.1"})}(jQuery),jQuery.plot.plugins.push({init:function(e){e.hooks.processDatapoints.push(function(e,t,i){if(null!=t.stack&&!1!==t.stack){var o=function(e,t){for(var i=null,o=0;o<t.length&&e!=t[o];++o)t[o].stack==e.stack&&(i=t[o]);return i}(t,e.getData());if(o){for(var n,r,a,s,l,c,u,p,h=i.pointsize,d=i.points,f=o.datapoints.pointsize,g=o.datapoints.points,m=[],x=t.lines.show,v=t.bars.horizontal,b=2<h&&(v?i.format[2].x:i.format[2].y),y=x&&t.lines.steps,k=!0,w=v?1:0,M=v?0:1,T=0,z=0;!(T>=d.length);){if(u=m.length,null==d[T]){for(p=0;p<h;++p)m.push(d[T+p]);T+=h}else if(z>=g.length){if(!x)for(p=0;p<h;++p)m.push(d[T+p]);T+=h}else if(null==g[z]){for(p=0;p<h;++p)m.push(null);k=!0,z+=f}else{if(n=d[T+w],r=d[T+M],s=g[z+w],l=g[z+M],c=0,n==s){for(p=0;p<h;++p)m.push(d[T+p]);m[u+M]+=l,c=l,T+=h,z+=f}else if(s<n){if(x&&0<T&&null!=d[T-h]){for(a=r+(d[T-h+M]-r)*(s-n)/(d[T-h+w]-n),m.push(s),m.push(a+l),p=2;p<h;++p)m.push(d[T+p]);c=l}z+=f}else{if(k&&x){T+=h;continue}for(p=0;p<h;++p)m.push(d[T+p]);x&&0<z&&null!=g[z-f]&&(c=l+(g[z-f+M]-l)*(n-s)/(g[z-f+w]-s)),m[u+M]+=c,T+=h}k=!1,u!=m.length&&b&&(m[u+2]+=c)}if(y&&u!=m.length&&0<u&&null!=m[u]&&m[u]!=m[u-h]&&m[u+1]!=m[u-h+1]){for(p=0;p<h;++p)m[u+h+p]=m[u+p];m[u+1]=m[u-h+1]}}i.points=m}}})},options:{series:{stack:null}},name:"stack",version:"1.2"}),function(d){"use strict";function f(e,t,i,o,n,r,a){var s=Math.pow,l=Math.sqrt,c=l(s(i-e,2)+s(o-t,2)),u=a*c/(c+l(s(n-i,2)+s(r-o,2))),p=a-u;return[i+u*(e-n),o+u*(t-r),i-p*(e-n),o-p*(t-r)]}var g=[];function m(e,t,i,o){(void 0===t||"bezier"!==t&&"quadratic"!==t)&&(t="quadratic"),t+="CurveTo",0==g.length?g.push([i[0],i[1],o.concat(i.slice(2)),t]):"quadraticCurveTo"==t&&2==i.length?(o=o.slice(0,2).concat(i),g.push([i[0],i[1],o,t])):g.push([i[2],i[3],o.concat(i.slice(2)),t])}function t(e,t,i){if(!0===i.splines.show){var o,n,r,a=[],s=i.splines.tension||.5,l=i.datapoints.points,c=i.datapoints.pointsize,u=e.getPlotOffset(),p=l.length,h=[];if(g=[],p/c<4)d.extend(i.lines,i.splines);else{for(o=0;o<p;o+=c)n=l[o],r=l[o+1],null==n||n<i.xaxis.min||n>i.xaxis.max||r<i.yaxis.min||r>i.yaxis.max||h.push(i.xaxis.p2c(n)+u.left,i.yaxis.p2c(r)+u.top);for(p=h.length,o=0;o<p-2;o+=2)a=a.concat(f.apply(this,h.slice(o,o+6).concat([s])));for(t.save(),t.strokeStyle=i.color,t.lineWidth=i.splines.lineWidth,m(0,"quadratic",h.slice(0,4),a.slice(0,2)),o=2;o<p-3;o+=2)m(0,"bezier",h.slice(o,o+4),a.slice(2*o-2,2*o+2));m(0,"quadratic",h.slice(p-2,p),[a[2*p-10],a[2*p-9],h[p-4],h[p-3]]),function(e,t,i,o,n){var r=d.color.parse(n);r.a="number"==typeof o?o:.3,r.normalize(),r=r.toString(),t.beginPath(),t.moveTo(e[0][0],e[0][1]);for(var a=e.length,s=0;s<a;s++)t[e[s][3]].apply(t,e[s][2]);t.stroke(),t.lineWidth=0,t.lineTo(e[a-1][0],i),t.lineTo(e[0][0],i),t.closePath(),!1!==o&&(t.fillStyle=r,t.fill())}(g,t,e.height()+10,i.splines.fill,i.color),t.restore()}}}d.plot.plugins.push({init:function(e){e.hooks.drawSeries.push(t)},options:{series:{splines:{show:!1,lineWidth:2,tension:.5,fill:!1}}},name:"spline",version:"0.8.2"})}(jQuery),function(){function t(e,t,i){var o={square:function(e,t,i,o,n){var r=o*Math.sqrt(Math.PI)/2;e.rect(t-r,i-r,r+r,r+r)},diamond:function(e,t,i,o,n){var r=o*Math.sqrt(Math.PI/2);e.moveTo(t-r,i),e.lineTo(t,i-r),e.lineTo(t+r,i),e.lineTo(t,i+r),e.lineTo(t-r,i)},triangle:function(e,t,i,o,n){var r=o*Math.sqrt(2*Math.PI/Math.sin(Math.PI/3)),a=r*Math.sin(Math.PI/3);e.moveTo(t-r/2,i+a/2),e.lineTo(t+r/2,i+a/2),n||(e.lineTo(t,i-a/2),e.lineTo(t-r/2,i+a/2))},cross:function(e,t,i,o,n){var r=o*Math.sqrt(Math.PI)/2;e.moveTo(t-r,i-r),e.lineTo(t+r,i+r),e.moveTo(t-r,i+r),e.lineTo(t+r,i-r)}},n=t.points.symbol;o[n]&&(t.points.symbol=o[n])}jQuery.plot.plugins.push({init:function(e){e.hooks.processDatapoints.push(t)},name:"symbols",version:"1.0"})}(),function(b){b.plot.plugins.push({init:function(e){function r(e,t,i,o,n){var r,a,s,l,c=i.pointsize,u=b.extend({},t);u.datapoints={points:[],pointsize:c,format:i.format},u.label=null,u.color=n,u.threshold=null,u.originSeries=t,u.data=[];for(var p,h,d=i.points,f=t.lines.show,g=[],m=[],x=0;x<d.length;x+=c){if(r=d[x],l=s,s=(a=d[x+1])<o?g:m,f&&l!=s&&null!=r&&0<x&&null!=d[x-c]){var v=r+(o-a)*(r-d[x-c])/(a-d[x-c+1]);for(l.push(v),l.push(o),p=2;p<c;++p)l.push(d[x+p]);for(s.push(null),s.push(null),p=2;p<c;++p)s.push(d[x+p]);for(s.push(v),s.push(o),p=2;p<c;++p)s.push(d[x+p])}for(s.push(r),s.push(a),p=2;p<c;++p)s.push(d[x+p])}i.points=m,u.datapoints.points=g,0<u.datapoints.points.length&&(h=b.inArray(t,e.getData()),e.getData().splice(h+1,0,u))}e.hooks.processDatapoints.push(function(i,o,n){o.threshold&&(o.threshold instanceof Array?(o.threshold.sort(function(e,t){return e.below-t.below}),b(o.threshold).each(function(e,t){r(i,o,n,t.below,t.color)})):r(i,o,n,o.threshold.below,o.threshold.color))})},options:{series:{threshold:null}},name:"threshold",version:"1.2"})}(jQuery),function(r){var e={tooltip:{show:!1,cssClass:"flotTip",content:"%s | X: %x | Y: %y",xDateFormat:null,yDateFormat:null,monthNames:null,dayNames:null,shifts:{x:10,y:20},defaultTheme:!0,snap:!0,lines:!1,clickTips:!1,onHover:function(e,t){},$compat:!1}};e.tooltipOpts=e.tooltip;function t(e){this.tipPosition={x:0,y:0},this.init(e)}t.prototype.init=function(f){var g=this,e=r.plot.plugins.length;if(this.plotPlugins=[],e)for(var t=0;t<e;t++)this.plotPlugins.push(r.plot.plugins[t].name);function i(e){var t={};t.x=e.pageX,t.y=e.pageY,f.setTooltipPosition(t)}function o(e,t,i){g.clickmode?(r(f.getPlaceholder()).bind("plothover",n),f.hideTooltip(),g.clickmode=!1):(n(0,t,i),g.getDomElement().is(":visible")&&(r(f.getPlaceholder()).unbind("plothover",n),g.clickmode=!0))}function n(e,u,t){function h(e,t,i,o){return Math.sqrt((i-e)*(i-e)+(o-t)*(o-t))}var i,p,d;t?f.showTooltip(t,g.tooltipOptions.snap?t:u):g.plotOptions.series.lines.show&&!0===g.tooltipOptions.lines?(i=g.plotOptions.grid.mouseActiveRadius,p={distance:i+1},d=u,r.each(f.getData(),function(e,t){for(var i,o,n,r,a,s=0,l=-1,c=1;c<t.data.length;c++)t.data[c-1][0]<=u.x&&t.data[c][0]>=u.x&&(s=c-1,l=c);-1!==l?(i={x:t.data[s][0],y:t.data[s][1]},o={x:t.data[l][0],y:t.data[l][1]},(n=function(i,o,n,r,a,s,e){if(!e||(e=function(){if(void 0!==n)return{x:n,y:o};if(void 0!==r)return{x:i,y:r};var e,t=-1/((s-r)/(a-n));return{x:e=(a*(i*t-o+r)+n*(i*-t+o-s))/(t*(a-n)+r-s),y:t*e-t*i+o}}()).x>=Math.min(n,a)&&e.x<=Math.max(n,a)&&e.y>=Math.min(r,s)&&e.y<=Math.max(r,s)){var t=r-s,l=a-n,c=n*s-r*a;return Math.abs(t*i+l*o+c)/Math.sqrt(t*t+l*l)}var u=h(i,o,n,r),p=h(i,o,a,s);return p<u?p:u}(t.xaxis.p2c(u.x),t.yaxis.p2c(u.y),t.xaxis.p2c(i.x),t.yaxis.p2c(i.y),t.xaxis.p2c(o.x),t.yaxis.p2c(o.y),!1))<p.distance&&(r=h(i.x,i.y,u.x,u.y)<h(u.x,u.y,o.x,o.y)?s:l,t.datapoints.pointsize,a=[u.x,i.y+(o.y-i.y)*((u.x-i.x)/(o.x-i.x))],p={distance:n,item:{datapoint:a,dataIndex:r,series:t,seriesIndex:e}},g.tooltipOptions.snap&&(d={pageX:t.xaxis.p2c(a[0]),pageY:t.yaxis.p2c(a[1])}))):f.hideTooltip()}),p.distance<i+1?f.showTooltip(p.item,d):f.hideTooltip()):f.hideTooltip()}f.hooks.bindEvents.push(function(e,t){g.plotOptions=e.getOptions(),"boolean"==typeof g.plotOptions.tooltip&&(g.plotOptions.tooltipOpts.show=g.plotOptions.tooltip,g.plotOptions.tooltip=g.plotOptions.tooltipOpts,delete g.plotOptions.tooltipOpts),!1!==g.plotOptions.tooltip.show&&void 0!==g.plotOptions.tooltip.show&&(g.tooltipOptions=g.plotOptions.tooltip,g.tooltipOptions.$compat?(g.wfunc="width",g.hfunc="height"):(g.wfunc="innerWidth",g.hfunc="innerHeight"),g.getDomElement(),r(e.getPlaceholder()).bind("plothover",n),g.tooltipOptions.clickTips&&r(e.getPlaceholder()).bind("plotclick",o),g.clickmode=!1,r(t).bind("mousemove",i))}),f.hooks.shutdown.push(function(e,t){r(e.getPlaceholder()).unbind("plothover",n),r(e.getPlaceholder()).unbind("plotclick",o),e.removeTooltip(),r(t).unbind("mousemove",i)}),f.setTooltipPosition=function(e){var t=g.getDomElement(),i=t.outerWidth()+g.tooltipOptions.shifts.x,o=t.outerHeight()+g.tooltipOptions.shifts.y;e.x-r(window).scrollLeft()>r(window)[g.wfunc]()-i&&(e.x-=i,e.x=Math.max(e.x,0)),e.y-r(window).scrollTop()>r(window)[g.hfunc]()-o&&(e.y-=o),isNaN(e.x)?g.tipPosition.x=g.tipPosition.xPrev:(g.tipPosition.x=e.x,g.tipPosition.xPrev=e.x),isNaN(e.y)?g.tipPosition.y=g.tipPosition.yPrev:(g.tipPosition.y=e.y,g.tipPosition.yPrev=e.y)},f.showTooltip=function(e,t,i){var o=g.getDomElement(),n=g.stringFormat(g.tooltipOptions.content,e);""!==n&&(o.html(n),f.setTooltipPosition({x:g.tipPosition.x,y:g.tipPosition.y}),o.css({left:g.tipPosition.x+g.tooltipOptions.shifts.x,top:g.tipPosition.y+g.tooltipOptions.shifts.y}).show(),"function"==typeof g.tooltipOptions.onHover&&g.tooltipOptions.onHover(e,o))},f.hideTooltip=function(){g.getDomElement().hide().html("")},f.removeTooltip=function(){g.getDomElement().remove()}},t.prototype.getDomElement=function(){var e=r("<div>");return this.tooltipOptions&&this.tooltipOptions.cssClass&&0===(e=r("."+this.tooltipOptions.cssClass)).length&&((e=r("<div />").addClass(this.tooltipOptions.cssClass)).appendTo("body").hide().css({position:"absolute"}),this.tooltipOptions.defaultTheme&&e.css({background:"#fff","z-index":"1040",padding:"0.4em 0.6em","border-radius":"0.5em","font-size":"0.8em",border:"1px solid #111",display:"none","white-space":"nowrap"})),e},t.prototype.stringFormat=function(e,t){var i,o,n,r,a,s=/%s/,l=/%c/,c=/%lx/,u=/%ly/,p=/%x\.{0,1}(\d{0,})/,h=/%y\.{0,1}(\d{0,})/;if(void 0!==t.series.threshold?(i=t.datapoint[0],o=t.datapoint[1],n=t.datapoint[2]):void 0!==t.series.curvedLines?(i=t.datapoint[0],o=t.datapoint[1]):n=void 0!==t.series.lines&&t.series.lines.steps?(i=t.series.datapoints.points[2*t.dataIndex],o=t.series.datapoints.points[2*t.dataIndex+1],""):(i=t.series.data[t.dataIndex][0],o=t.series.data[t.dataIndex][1],t.series.data[t.dataIndex][2]),null===t.series.label&&t.series.originSeries&&(t.series.label=t.series.originSeries.label),"function"==typeof e&&(e=e(t.series.label,i,o,t)),"boolean"==typeof e&&!e)return"";if(n&&(e=e.replace("%ct",n)),void 0!==t.series.percent?r=t.series.percent:void 0!==t.series.percents&&(r=t.series.percents[t.dataIndex]),"number"==typeof r&&(e=this.adjustValPrecision(/%p\.{0,1}(\d{0,})/,e,r)),t.series.hasOwnProperty("pie")&&void 0!==t.series.data[0][1]&&(a=t.series.data[0][1]),"number"==typeof a&&(e=e.replace("%n",a)),e=void 0!==t.series.label?e.replace(s,t.series.label):e.replace(s,""),e=void 0!==t.series.color?e.replace(l,t.series.color):e.replace(l,""),e=this.hasAxisLabel("xaxis",t)?e.replace(c,t.series.xaxis.options.axisLabel):e.replace(c,""),e=this.hasAxisLabel("yaxis",t)?e.replace(u,t.series.yaxis.options.axisLabel):e.replace(u,""),this.isTimeMode("xaxis",t)&&this.isXDateFormat(t)&&(e=e.replace(p,this.timestampToDate(i,this.tooltipOptions.xDateFormat,t.series.xaxis.options))),this.isTimeMode("yaxis",t)&&this.isYDateFormat(t)&&(e=e.replace(h,this.timestampToDate(o,this.tooltipOptions.yDateFormat,t.series.yaxis.options))),"number"==typeof i&&(e=this.adjustValPrecision(p,e,i)),"number"==typeof o&&(e=this.adjustValPrecision(h,e,o)),void 0!==t.series.xaxis.ticks){var d=this.hasRotatedXAxisTicks(t)?"rotatedTicks":"ticks",f=t.dataIndex+t.seriesIndex;for(var g in t.series.xaxis[d]){t.series.xaxis[d].hasOwnProperty(f)&&!this.isTimeMode("xaxis",t)&&(this.isCategoriesMode("xaxis",t)?t.series.xaxis[d][f].label:t.series.xaxis[d][f].v)===i&&(e=e.replace(p,t.series.xaxis[d][f].label.replace(/\$/g,"$$$$")))}}if(void 0!==t.series.yaxis.ticks)for(var m in t.series.yaxis.ticks){t.series.yaxis.ticks.hasOwnProperty(m)&&(this.isCategoriesMode("yaxis",t)?t.series.yaxis.ticks[m].label:t.series.yaxis.ticks[m].v)===o&&(e=e.replace(h,t.series.yaxis.ticks[m].label.replace(/\$/g,"$$$$")))}return void 0!==t.series.xaxis.tickFormatter&&(e=e.replace("%x",t.series.xaxis.tickFormatter(i,t.series.xaxis).replace(/\$/g,"$$"))),void 0!==t.series.yaxis.tickFormatter&&(e=e.replace("%y",t.series.yaxis.tickFormatter(o,t.series.yaxis).replace(/\$/g,"$$"))),e},t.prototype.isTimeMode=function(e,t){return void 0!==t.series[e].options.mode&&"time"===t.series[e].options.mode},t.prototype.isXDateFormat=function(e){return void 0!==this.tooltipOptions.xDateFormat&&null!==this.tooltipOptions.xDateFormat},t.prototype.isYDateFormat=function(e){return void 0!==this.tooltipOptions.yDateFormat&&null!==this.tooltipOptions.yDateFormat},t.prototype.isCategoriesMode=function(e,t){return void 0!==t.series[e].options.mode&&"categories"===t.series[e].options.mode},t.prototype.timestampToDate=function(e,t,i){var o=r.plot.dateGenerator(e,i);return r.plot.formatDate(o,t,this.tooltipOptions.monthNames,this.tooltipOptions.dayNames)},t.prototype.adjustValPrecision=function(e,t,i){var o;return null!==t.match(e)&&""!==RegExp.$1&&(o=RegExp.$1,i=i.toFixed(o),t=t.replace(e,i)),t},t.prototype.hasAxisLabel=function(e,t){return-1!==r.inArray("axisLabels",this.plotPlugins)&&void 0!==t.series[e].options.axisLabel&&0<t.series[e].options.axisLabel.length},t.prototype.hasRotatedXAxisTicks=function(e){return-1!==r.inArray("tickRotor",this.plotPlugins)&&void 0!==e.series.xaxis.rotatedTicks};r.plot.plugins.push({init:function(e){new t(e)},options:e,name:"tooltip",version:"0.8.5"})}(jQuery),function(i){function v(e,t){return t*Math.floor(e/t)}function c(e,t,i,o){if("function"==typeof e.strftime)return e.strftime(t);function n(e,t){return t=""+(null==t?"0":t),1==(e=""+e).length?t+e:e}var r,a=[],s=!1,l=e.getHours(),c=l<12;null==i&&(i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==o&&(o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),r=12<l?l-12:0==l?12:l;for(var u=0;u<t.length;++u){var p=t.charAt(u);if(s){switch(p){case"a":p=""+o[e.getDay()];break;case"b":p=""+i[e.getMonth()];break;case"d":p=n(e.getDate());break;case"e":p=n(e.getDate()," ");break;case"h":case"H":p=n(l);break;case"I":p=n(r);break;case"l":p=n(r," ");break;case"m":p=n(e.getMonth()+1);break;case"M":p=n(e.getMinutes());break;case"q":p=""+(Math.floor(e.getMonth()/3)+1);break;case"S":p=n(e.getSeconds());break;case"y":p=n(e.getFullYear()%100);break;case"Y":p=""+e.getFullYear();break;case"p":p=c?"am":"pm";break;case"P":p=c?"AM":"PM";break;case"w":p=""+e.getDay()}a.push(p),s=!1}else"%"==p?s=!0:a.push(p)}return a.join("")}function o(e){function t(e,t,i,o){e[t]=function(){return i[o].apply(i,arguments)}}var i={date:e};null!=e.strftime&&t(i,"strftime",e,"strftime"),t(i,"getTime",e,"getTime"),t(i,"setTime",e,"setTime");for(var o=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],n=0;n<o.length;n++)t(i,"get"+o[n],e,"getUTC"+o[n]),t(i,"set"+o[n],e,"setUTC"+o[n]);return i}function b(e,t){if("browser"==t.timezone)return new Date(e);if(t.timezone&&"utc"!=t.timezone){if("undefined"==typeof timezoneJS||void 0===timezoneJS.Date)return o(new Date(e));var i=new timezoneJS.Date;return i.setTimezone(t.timezone),i.setTime(e),i}return o(new Date(e))}var y={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},e=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],k=e.concat([[3,"month"],[6,"month"],[1,"year"]]),w=e.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);i.plot.plugins.push({init:function(e){e.hooks.processOptions.push(function(e,t){i.each(e.getAxes(),function(e,t){var x=t.options;"time"==x.mode&&(t.tickGenerator=function(e){var t=[],i=b(e.min,x),o=0,n=x.tickSize&&"quarter"===x.tickSize[1]||x.minTickSize&&"quarter"===x.minTickSize[1]?w:k;null!=x.minTickSize&&(o="number"==typeof x.tickSize?x.tickSize:x.minTickSize[0]*y[x.minTickSize[1]]);for(var r=0;r<n.length-1&&!(e.delta<(n[r][0]*y[n[r][1]]+n[r+1][0]*y[n[r+1][1]])/2&&n[r][0]*y[n[r][1]]>=o);++r);var a,s,l=n[r][0];"year"==(u=n[r][1])&&(null!=x.minTickSize&&"year"==x.minTickSize[1]?l=Math.floor(x.minTickSize[0]):(a=Math.pow(10,Math.floor(Math.log(e.delta/y.year)/Math.LN10)),l=(s=e.delta/y.year/a)<1.5?1:s<3?2:s<7.5?5:10,l*=a),l<1&&(l=1)),e.tickSize=x.tickSize||[l,u];var c=e.tickSize[0],u=e.tickSize[1],p=c*y[u];"second"==u?i.setSeconds(v(i.getSeconds(),c)):"minute"==u?i.setMinutes(v(i.getMinutes(),c)):"hour"==u?i.setHours(v(i.getHours(),c)):"month"==u?i.setMonth(v(i.getMonth(),c)):"quarter"==u?i.setMonth(3*v(i.getMonth()/3,c)):"year"==u&&i.setFullYear(v(i.getFullYear(),c)),i.setMilliseconds(0),y.minute<=p&&i.setSeconds(0),y.hour<=p&&i.setMinutes(0),y.day<=p&&i.setHours(0),4*y.day<=p&&i.setDate(1),2*y.month<=p&&i.setMonth(v(i.getMonth(),3)),2*y.quarter<=p&&i.setMonth(v(i.getMonth(),6)),y.year<=p&&i.setMonth(0);var h=0,d=Number.NaN;do{var f,g,m=d,d=i.getTime();t.push(d),"month"==u||"quarter"==u?c<1?(i.setDate(1),f=i.getTime(),i.setMonth(i.getMonth()+("quarter"==u?3:1)),g=i.getTime(),i.setTime(d+h*y.hour+(g-f)*c),h=i.getHours(),i.setHours(0)):i.setMonth(i.getMonth()+c*("quarter"==u?3:1)):"year"==u?i.setFullYear(i.getFullYear()+c):i.setTime(d+p)}while(d<e.max&&d!=m);return t},t.tickFormatter=function(e,t){var i=b(e,t.options);if(null!=x.timeformat)return c(i,x.timeformat,x.monthNames,x.dayNames);var o=t.options.tickSize&&"quarter"==t.options.tickSize[1]||t.options.minTickSize&&"quarter"==t.options.minTickSize[1],n=t.tickSize[0]*y[t.tickSize[1]],r=t.max-t.min,a=x.twelveHourClock?" %p":"",s=x.twelveHourClock?"%I":"%H",l=n<y.minute?s+":%M:%S"+a:n<y.day?r<2*y.day?s+":%M"+a:"%b %d "+s+":%M"+a:n<y.month?"%b %d":o&&n<y.quarter||!o&&n<y.year?r<y.year?"%b":"%b %Y":o&&n<y.year?r<y.year?"Q%q":"Q%q %Y":"%Y";return c(i,l,x.monthNames,x.dayNames)})})})},options:{xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},name:"time",version:"1.0"}),i.plot.formatDate=c,i.plot.dateGenerator=b}(jQuery);

© KUJUNTI.ID