!function r(a,s,l){function c(e,t){if(!s[e]){if(!a[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(u)return u(e,!0);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}var i=s[e]={exports:{}};a[e][0].call(i.exports,function(t){return c(a[e][1][t]||t)},i,i.exports,r,a,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;t"))d(e,u,-9999);else{var h=document.createTextNode(e);u.appendChild(h)}u.style.position="absolute",u.style.maxWidth=i,u.setAttributeNS(null,"x",-9999),u.setAttributeNS(null,"y",-9999),"object"===et(n)?(u.style.font=r,u.style.fill=n.fill):"string"==typeof n&&u.setAttribute("class",n),this.getSVGLayer(t).appendChild(u);var p=u.getBBox();for(l=s[c]={width:p.width,height:p.height,measured:!0,element:u,positions:[]};u.firstChild;)u.removeChild(u.firstChild);u.parentNode.removeChild(u)}return l.measured=!0,l},t.prototype.addText=function(t,e,n,o,i,r,a,s,l,c){var u=this.getTextInfo(t,o,i,r,a),h=u.positions;"center"===s?e-=u.width/2:"right"===s&&(e-=u.width),"middle"===l?n-=u.height/2:"bottom"===l&&(n-=u.height),n+=.75*u.height;for(var p,f=0;h[f];f++){if((p=h[f]).x===e&&p.y===n&&p.text===o)return void(p.active=!0);if(!1===p.active)return p.active=!0,-1!==(p.text=o).indexOf("
")?(n-=.25*u.height,d(o,p.element,e)):p.element.textContent=o,p.element.setAttributeNS(null,"x",e),p.element.setAttributeNS(null,"y",n),p.x=e,void(p.y=n)}p={active:!0,rendered:!1,element:h.length?u.element.cloneNode():u.element,text:o,x:e,y:n},h.push(p),-1!==o.indexOf("
")?(n-=.25*u.height,d(o,p.element,e)):p.element.textContent=o,p.element.setAttributeNS(null,"x",e),p.element.setAttributeNS(null,"y",n),p.element.style.textAlign=s,c&&c.forEach(function(t){u.element.transform.baseVal.appendItem(t)})};var d=function(t,e,n){var o,i,r,a=t.split("
");for(i=0;il.xmax&&(l.xmax=h)),!0===p.y&&(hl.ymax&&(l.ymax=h))))}return l},M.adjustSeriesDataRange=function(t,e){if(t.bars.show){var n,o=t.bars.barWidth[1];t.datapoints&&t.datapoints.points&&!o&&function(t){var e=t.datapoints.pointsize,n=Number.MAX_VALUE,o=t.datapoints.points[e]-t.datapoints.points[0]||1;isFinite(o)&&(n=o);for(var i=e;it.datamax&&n!==1/0&&(t.datamax=n)}function g(t,e){return t&&t[e]&&t[e].datapoints&&t[e].datapoints.points?t[e].datapoints.points:[]}for(J.each(N(),function(t,e){!0!==e.options.growOnly?(e.datamin=f,e.datamax=d):(void 0===e.datamin&&(e.datamin=f),void 0===e.datamax&&(e.datamax=d)),e.used=!1}),e=0;eo.max?f:(l=v.getTextInfo(h,t.label,p),"x"===o.direction?(a="center",i=y.left+o.p2c(t.v),"bottom"===o.position?r=u.top+u.padding-o.boxPosition.centerY:(r=u.top+u.height-u.padding+o.boxPosition.centerY,s="bottom")):(s="middle",r=y.top+o.p2c(t.v),"left"===o.position?(i=u.left+u.width-u.padding-o.boxPosition.centerX,a="right"):i=u.left+u.padding+o.boxPosition.centerX),c={x:i-l.width/2-3,y:r-3,width:l.width+6,height:l.height+6},n=c,e.some(function(t){return m(n.x,n.y,n.x+n.width,n.y+n.height,t.x,t.y,t.x+t.width,t.y+t.height)})?f:(v.addText(h,i,r,t.label,p,null,null,a,s),c));var n};if(v.removeText(h),C(k.drawAxis,[o,v]),o.show)switch(o.options.showTickLabels){case"none":break;case"endpoints":d.push(g(o.ticks[0],d)),d.push(g(o.ticks[o.ticks.length-1],d));break;case"major":for(d.push(g(o.ticks[0],d)),d.push(g(o.ticks[o.ticks.length-1],d)),e=1;e=t.min&&c<=t.max&&("x"===t.direction?(r=t.p2c(c),h=e,"top"===t.position&&(h=-h)):(a=t.p2c(c),u=e,"left"===t.position&&(u=-u)),"x"===t.direction?r=G(g.lineWidth,r):a=G(g.lineWidth,a),g.moveTo(r,a),g.lineTo(r+u,a+h)),!0===n&&st.max||(n=i,void 0,(!("object"===et(o=d.grid.borderWidth)&&0i.axis.max||r.tor.axis.max)){i.from=Math.max(i.from,i.axis.min),i.to=Math.min(i.to,i.axis.max),r.from=Math.max(r.from,r.axis.min),r.to=Math.min(r.to,r.axis.max);var a=i.from===i.to,s=r.from===r.to;if(!a||!s)if(i.from=Math.floor(i.axis.p2c(i.from)),i.to=Math.floor(i.axis.p2c(i.to)),r.from=Math.floor(r.axis.p2c(r.from)),r.to=Math.floor(r.axis.p2c(r.to)),a||s){var l=o.lineWidth||d.grid.markingsLineWidth,c=l%2?.5:0;g.beginPath(),g.strokeStyle=o.color||d.grid.markingsColor,g.lineWidth=l,a?(g.moveTo(i.to+c,r.from),g.lineTo(i.to+c,r.to)):(g.moveTo(i.from,r.to+c),g.lineTo(i.to,r.to+c)),g.stroke()}else g.fillStyle=o.color||d.grid.markingsColor,g.fillRect(i.from,r.to,i.to-i.from,r.from-r.to)}}}(),t=N(),e=d.grid.borderWidth;for(var i=0;it.yaxis.min?Math.min(t.yaxis.max,u):t.yaxis.min,p=null,f=0;f=Math.min(h,d)&&m+o<=s&&s<=m+i:d+o<=a&&a<=d+i&&s>=Math.min(h,m)&&s<=Math.max(h,m))&&(p=f/c))}return p}function U(){var t=d.interaction.redrawOverlayInterval;-1!==t?s||(s=setTimeout(function(){Q(M)},t)):Q()}function Q(t){if(s=null,r){n.clear(),C(k.drawOverlay,[r,n]);var e=new CustomEvent("onDrawingDone");t.getEventHolder().dispatchEvent(e),t.getPlaceholder().trigger("drawingdone")}}function Z(t,e,n,o){if("string"==typeof t)return t;for(var i=g.createLinearGradient(0,n,0,e),r=0,a=t.colors.length;ra.max||xs.max||(ma.max&&(g=a.max,p=!1),vs.max&&(x=s.max,f=!1),m=a.p2c(m),v=s.p2c(v),g=a.p2c(g),x=s.p2c(x),r&&(l.fillStyle=r(v,x),l.fillRect(m,x,g-m,v-x)),0n.min?Math.min(n.max,o):n.min,c=0,u=1,h=!1,p=0,f=0,d=null,m=null;!(0a.length+s);){var g=a[(c+=s)-s],v=a[c-s+u],x=a[c],y=a[c+u];if(-2===s&&(v=y=l),h){if(0e.max){if(x>e.max)continue;v=(e.max-g)/(x-g)*(y-v)+v,g=e.max}else if(g<=x&&x>e.max){if(g>e.max)continue;y=(e.max-g)/(x-g)*(y-v)+v,x=e.max}if(h||(i.beginPath(),i.moveTo(e.p2c(g),n.p2c(l)),h=!0),v>=n.max&&y>=n.max)i.lineTo(e.p2c(g),n.p2c(n.max)),i.lineTo(e.p2c(x),n.p2c(n.max));else if(v<=n.min&&y<=n.min)i.lineTo(e.p2c(g),n.p2c(n.min)),i.lineTo(e.p2c(x),n.p2c(n.min));else{var b=g,w=x;v<=y&&v=n.min?(g=(n.min-v)/(y-v)*(x-g)+g,v=n.min):y<=v&&y=n.min&&(x=(n.min-v)/(y-v)*(x-g)+g,y=n.min),y<=v&&v>n.max&&y<=n.max?(g=(n.max-v)/(y-v)*(x-g)+g,v=n.max):v<=y&&y>n.max&&v<=n.max&&(x=(n.max-v)/(y-v)*(x-g)+g,y=n.max),g!==b&&i.lineTo(e.p2c(b),n.p2c(v)),i.lineTo(e.p2c(g),n.p2c(v)),i.lineTo(e.p2c(x),n.p2c(y)),x!==w&&(i.lineTo(e.p2c(x),n.p2c(y)),i.lineTo(e.p2c(w),n.p2c(y)))}}else m=d=null}}(s,t.xaxis,t.yaxis,t.lines.fillTowards||0,e,t.lines.steps)),0i.max){if(d>i.max)continue;h=(i.max-p)/(d-p)*(f-h)+h,p=i.max}else if(p<=d&&d>i.max){if(p>i.max)continue;f=(i.max-p)/(d-p)*(f-h)+h,d=i.max}if(h<=f&&ho.max){if(f>o.max)continue;p=(o.max-h)/(f-h)*(d-p)+p,h=o.max}else if(h<=f&&f>o.max){if(h>o.max)continue;d=(o.max-h)/(f-h)*(d-p)+p,f=o.max}h===c&&p===u||r.moveTo(o.p2c(h)+e,i.p2c(p)+n),c=f,u=d,r.lineTo(o.p2c(f)+e,i.p2c(d)+n)}else g=m=null;r.stroke()}(s,0,0,t.xaxis,t.yaxis,e,t.lines.steps),e.restore()},this.drawSeriesPoints=function(t,f,e,n,o,i,r){function a(t,e,n,o,i,r){t.moveTo(e+o,n),t.arc(e,n,o,0,i?Math.PI:2*Math.PI,!1)}a.fill=!0,f.save(),f.translate(e.left,e.top);var s={format:t.datapoints.format,points:t.datapoints.points,pointsize:t.datapoints.pointsize};t.decimatePoints&&(s.points=t.decimatePoints(t,t.xaxis.min,t.xaxis.max,n,t.yaxis.min,t.yaxis.max,o));var l,c=t.points.lineWidth,u=t.points.radius,h=t.points.symbol;"circle"===h?l=a:"string"==typeof h&&i&&i[h]?l=i[h]:"function"==typeof i&&(l=i),0===c&&(c=1e-4),f.lineWidth=c,f.fillStyle=m(t.points,t.color,null,null,r),f.strokeStyle=t.color,function(t,e,n,o,i,r,a,s){var l=t.points,c=t.pointsize;f.beginPath();for(var u=0;ur.max||pa.max||(h=r.p2c(h),p=a.p2c(p)+o,s(f,h,p,e,i,n))}s.fill&&!i&&f.fill(),f.stroke()}(s,u,!0,0,!1,t.xaxis,t.yaxis,l),f.restore()},this.drawSeriesBars=function(p,f,t,e,n,o,i){f.save(),f.translate(t.left,t.top);var r,a={format:p.datapoints.format,points:p.datapoints.points,pointsize:p.datapoints.pointsize};p.decimate&&(a.points=p.decimate(p,p.xaxis.min,p.xaxis.max,e)),f.lineWidth=p.bars.lineWidth,f.strokeStyle=p.color;var s=p.bars.barWidth[0]||p.bars.barWidth;switch(p.bars.align){case"left":r=0;break;case"right":r=-s;break;default:r=-s/2}!function(t,e,n,o,i,r){for(var a=t.points,s=t.pointsize,l=p.bars.fillTowards||0,c=l>r.min?Math.min(r.max,l):r.min,u=0;ua[1].max||ga[0].max))continue;if("y"===l[f].err&&(m>a[0].max||ma[1].max))continue;var y=!0,b=!0;v>d[1]&&(y=!1,v=d[1]),x=d?f={pixelCoord:h,idealPixelCoord:f.idealPixelCoord-d}:p=null,p&&o.push(p);o.reverse()}else{var g=t.computeTickSize(l,c,n),v={min:l,max:c,tickSize:g};o=x.plot.linearTickGenerator(v)}return o},w=function(t,e){var n=t.min,o=t.max;return n<=0&&o<(n=null===t.datamin?t.min=.1:p(e,t))&&(t.max=null!==t.datamax?t.datamax:t.options.max,t.options.offset.below=0,t.options.offset.above=0),n},r=function(t,e,n){var o=0e.left&&r.lefte.top&&r.tope.left&&n.lefte.top&&n.top=L||Math.abs(a.x)=L),y=b.getAxes();o=n?function(t){switch(!k&&Math.max(Math.abs(t.x),Math.abs(t.y))>=L&&(k=Math.abs(t.x)=L?{x:0,y:s.y}:Math.abs(s.y)=L?{x:s.x,y:0}:s),l=o,0e.left&&n.lefte.top&&n.top=e.length?null:e[t.fillBetween]:null}(e,t.getData());if(o){for(var i,r,a,s,l,c,u,h,p=n.pointsize,f=n.points,d=o.datapoints.pointsize,m=o.datapoints.points,g=[],v=e.lines.show,x=2=f.length);){if(u=g.length,null==f[w]){for(h=0;h=m.length){if(!v)for(h=0;h=m.length);){if(p=x.length,null==m[S]){for(f=0;f=v.length){if(!y)for(f=0;fm)&&(e=c,n=p,o=f,i=(t=u).offset(),r={left:0,top:0},a=v(e)/n.prevDistance,s=v(e),r.left=b(e,"pinch").x-i.left,r.top=b(e,"pinch").y-i.top,t.zoom({center:r,amount:a,axes:o.touchedAxis}),n.prevDistance=s,p.zoomEnable=!0),h=null},1e3/60))},end:function(t){h&&(clearTimeout(h),h=null),d(t,"pinch",p),p.prevDistance=null}},r={recenterPlot:function(t){t&&t.detail&&"touchstart"===t.detail.type&&function(t,e,n,o){if(r=t,a=e,s=o,l=r.getTouchedAxis(a.detail.firstTouch.x,a.detail.firstTouch.y),void 0!==l[0]&&(s.prevTouchedAxis=l[0].direction),void 0!==(l=r.getTouchedAxis(a.detail.secondTouch.x,a.detail.secondTouch.y))[0]&&(s.touchedAxis=l,s.currentTouchedAxis=l[0].direction),g(s)&&(s.touchedAxis=null,s.prevTouchedAxis="none",s.currentTouchedAxis="none"),"x"===o.currentTouchedAxis&&"x"===o.prevTouchedAxis||"y"===o.currentTouchedAxis&&"y"===o.prevTouchedAxis||"none"===o.currentTouchedAxis&&"none"===o.prevTouchedAxis){var i;t.recenter({axes:o.touchedAxis}),i=o.touchedAxis?new c.Event("re-center",{detail:{axisTouched:o.touchedAxis}}):new c.Event("re-center",{detail:e}),t.getPlaceholder().trigger(i)}var r,a,s,l}(u,t,0,f)}},!0!==t.pan.enableTouch&&!0!==t.zoom.enableTouch||(u.hooks.bindEvents.push(function(t,e){var n=t.getOptions();n.zoom.interactive&&n.zoom.enableTouch&&(e[0].addEventListener("pinchstart",i.start,!1),e[0].addEventListener("pinchdrag",i.drag,!1),e[0].addEventListener("pinchend",i.end,!1)),n.pan.interactive&&n.pan.enableTouch&&(e[0].addEventListener("panstart",o.start,!1),e[0].addEventListener("pandrag",o.drag,!1),e[0].addEventListener("panend",o.end,!1)),n.recenter.interactive&&n.recenter.enableTouch&&e[0].addEventListener("doubletap",r.recenterPlot,!1)}),u.hooks.shutdown.push(function(t,e){e[0].removeEventListener("panstart",o.start),e[0].removeEventListener("pandrag",o.drag),e[0].removeEventListener("panend",o.end),e[0].removeEventListener("pinchstart",i.start),e[0].removeEventListener("pinchdrag",i.drag),e[0].removeEventListener("pinchend",i.end),e[0].removeEventListener("doubletap",r.recenterPlot)}))}function g(t){return!t.touchedAxis||0===t.touchedAxis.length}function l(t,e,n,o){var i,r=b(t,e);switch(o.navigationConstraint){case"unconstrained":o.touchedAxis=null,n.prevTapPosition={x:n.prevPanPosition.x,y:n.prevPanPosition.y},n.prevPanPosition={x:r.x,y:r.y};break;case"axisConstrained":i=o.touchedAxis[0].direction,o.currentTouchedAxis=i,n.prevTapPosition[i]=n.prevPanPosition[i],n.prevPanPosition[i]=r[i]}}function v(t){var e,n,o,i,r=t.detail.touches[0],a=t.detail.touches[1];return e=r.pageX,n=r.pageY,o=a.pageX,i=a.pageY,Math.sqrt((e-o)*(e-o)+(n-i)*(n-i))}function x(t,e,n,o){var i=b(t,e);switch(o.navigationConstraint){case"unconstrained":n.prevPanPosition.x=i.x,n.prevPanPosition.y=i.y;break;case"axisConstrained":n.prevPanPosition[o.currentTouchedAxis]=i[o.currentTouchedAxis]}}function y(t,e,n){var o=b(t,e);return{x:o.x-n.prevPanPosition.x,y:o.y-n.prevPanPosition.y}}function b(t,e){return"pinch"===e?{x:(t.detail.touches[0].pageX+t.detail.touches[1].pageX)/2,y:(t.detail.touches[0].pageY+t.detail.touches[1].pageY)/2}:{x:t.detail.touches[0].pageX,y:t.detail.touches[0].pageY}}c.plot.plugins.push({init:function(t){t.hooks.processOptions.push(e)},options:{zoom:{enableTouch:!1},pan:{enableTouch:!1,touchMode:"manual"},recenter:{enableTouch:!0}},name:"navigateTouch",version:"0.3"})}(jQuery),function(p){var x=p.plot.browser;function e(d,o){var m=[],i={click:"click",hover:"hover"},e=d.getPlaceholder()[0].lastMouseMoveEvent;d.highlight=g,d.unhighlight=v;var r=function(t){var e=d.getOptions(),n=new CustomEvent("mouseevent");return n.pageX=t.detail.changedTouches[0].pageX,n.pageY=t.detail.changedTouches[0].pageY,n.clientX=t.detail.changedTouches[0].clientX,n.clientY=t.detail.changedTouches[0].clientY,e.grid.hoverable&&a(n,i.hover,30),!1};function a(t,e,n){var o=d.getData();if(void 0!==t&&0a.max||rs.max)){var c=t.points.radius+t.points.lineWidth/2;n.lineWidth=c,n.strokeStyle=l;var u=1.5*c;i=a.p2c(i),r=s.p2c(r),n.beginPath();var h=t.points.symbol;"circle"===h?n.arc(i,r,u,0,2*Math.PI,!1):"string"==typeof h&&o.drawSymbol&&o.drawSymbol[h]&&o.drawSymbol[h](n,i,r,u,!1),n.closePath(),n.stroke()}}function y(t,e,n){var o,i="string"==typeof t.highlightColor?t.highlightColor:p.color.parse(t.color).scale("a",.5).toString(),r=i,a=t.bars.barWidth[0]||t.bars.barWidth;switch(t.bars.align){case"left":o=0;break;case"right":o=-a;break;default:o=-a/2}n.lineWidth=t.bars.lineWidth,n.strokeStyle=i;var s=t.bars.fillTowards||0,l=s>t.yaxis.min?Math.min(t.yaxis.max,s):t.yaxis.min;p.plot.drawSeries.drawBar(e[0],e[1],e[2]||l,o,o+a,function(){return r},t.xaxis,t.yaxis,n,t.bars.horizontal,t.bars.lineWidth)}p.plot.plugins.push({init:function(t){t.hooks.processOptions.push(e)},options:{grid:{hoverable:!1,clickable:!1}},name:"hover",version:"0.1"})}(jQuery),function(t){function e(n,t){var o,i={twoTouches:!1,currentTapStart:{x:0,y:0},currentTapEnd:{x:0,y:0},prevTap:{x:0,y:0},currentTap:{x:0,y:0},interceptedLongTap:!1,isUnsupportedGesture:!1,prevTapTime:null,tapStartTime:null,longTapTriggerId:null},r=20,a=500;function s(t){var e=n.getOptions();(e.pan.active||e.zoom.active)&&(3<=t.touches.length?i.isUnsupportedGesture=!0:i.isUnsupportedGesture=!1,o.dispatchEvent(new CustomEvent("touchevent",{detail:t})),x(t)?l(t,"pinch"):(l(t,"pan"),v(t)||(function(t){var e=(new Date).getTime(),n=e-i.prevTapTime;if(0<=n&&n=r);++s);var l=a[s][0],c=a[s][1];if("year"===c){if(null!==n.minTickSize&&void 0!==n.minTickSize&&"year"===n.minTickSize[1])l=Math.floor(n.minTickSize[0]);else{var u=parseFloat("1e"+Math.floor(Math.log(t.delta/e.year)/Math.LN10)),h=t.delta/e.year/u;l=h<1.5?1:h<3?2:h<7.5?5:10,l*=u}l<1&&(l=1)}t.tickSize=n.tickSize||[l,c];var p=t.tickSize[0],f=p*e[c=t.tickSize[1]];"microsecond"===c?i.setMicroseconds(b(i.getMicroseconds(),p)):"millisecond"===c?i.setMilliseconds(b(i.getMilliseconds(),p)):"second"===c?i.setSeconds(b(i.getSeconds(),p)):"minute"===c?i.setMinutes(b(i.getMinutes(),p)):"hour"===c?i.setHours(b(i.getHours(),p)):"month"===c?i.setMonth(b(i.getMonth(),p)):"quarter"===c?i.setMonth(3*b(i.getMonth()/3,p)):"year"===c&&i.setFullYear(b(i.getFullYear(),p)),f>=e.millisecond&&(f>=e.second?i.setMicroseconds(0):i.setMicroseconds(1e3*i.getMilliseconds())),f>=e.minute&&i.setSeconds(0),f>=e.hour&&i.setMinutes(0),f>=e.day&&i.setHours(0),f>=4*e.day&&i.setDate(1),f>=2*e.month&&i.setMonth(b(i.getMonth(),3)),f>=2*e.quarter&&i.setMonth(b(i.getMonth(),6)),f>=e.year&&i.setMonth(0);var d,m,g=0,v=Number.NaN;do{if(m=v,d=i.getTime(),v=n&&"seconds"===n.timeBase?d/1e3:n&&"microseconds"===n.timeBase?1e3*d:d,o.push(v),"month"===c||"quarter"===c)if(p<1){i.setDate(1);var x=i.getTime();i.setMonth(i.getMonth()+("quarter"===c?3:1));var y=i.getTime();i.setTime(v+g*e.hour+(y-x)*p),g=i.getHours(),i.setHours(0)}else i.setMonth(i.getMonth()+p*("quarter"===c?3:1));else"year"===c?i.setFullYear(i.getFullYear()+p):"seconds"===n.timeBase?i.setTime(1e3*(v+f)):"microseconds"===n.timeBase?i.setTime((v+f)/1e3):i.setTime(v+f)}while(v=t&&Math.abs(b.second.y-b.first.y)>=t}c.clearSelection=p,c.setSelection=function(t,e){var n;"y"===w(c)?(b.first.x=0,b.second.x=c.width()):(n=f(t,"x"),b.first.x=n.axis.p2c(n.from),b.second.x=n.axis.p2c(n.to)),"x"===w(c)?(b.first.y=0,b.second.y=c.height()):(n=f(t,"y"),b.first.y=n.axis.p2c(n.from),b.second.y=n.axis.p2c(n.to)),b.show=!0,c.triggerRedrawOverlay(),!e&&T()&&s()},c.getSelection=e,c.hooks.bindEvents.push(function(t,e){null!=t.getOptions().selection.mode&&(e.mousemove(r),e.mousedown(a))}),c.hooks.drawOverlay.push(function(t,e){if(b.show&&T()){var n=t.getPlotOffset(),o=t.getOptions();e.save(),e.translate(n.left,n.top);var i=k.color.parse(o.selection.color);e.strokeStyle=i.scale("a",1).toString(),e.lineWidth=1,e.lineJoin=o.selection.shape,e.fillStyle=i.scale("a",.4).toString();var r=Math.min(b.first.x,b.second.x)+.5,a=r,s=Math.min(b.first.y,b.second.y)+.5,l=s,c=Math.abs(b.second.x-b.first.x)-1,u=Math.abs(b.second.y-b.first.y)-1;"x"===w(t)&&(u+=s,s=0),"y"===w(t)&&(c+=r,r=0),e.fillRect(0,0,t.width(),t.height()),e.clearRect(r,s,c,u),h=e,p=r,f=s,d=c,m=u,g=a,v=l,x=w(t),y=Math.max(0,Math.min(15,d/2-2,m/2-2)),h.fillStyle="#ffffff","xy"===x&&(h.beginPath(),h.moveTo(p,f+y),h.lineTo(p-3,f+y),h.lineTo(p-3,f-3),h.lineTo(p+y,f-3),h.lineTo(p+y,f),h.lineTo(p,f),h.closePath(),h.moveTo(p,f+m-y),h.lineTo(p-3,f+m-y),h.lineTo(p-3,f+m+3),h.lineTo(p+y,f+m+3),h.lineTo(p+y,f+m),h.lineTo(p,f+m),h.closePath(),h.moveTo(p+d,f+y),h.lineTo(p+d+3,f+y),h.lineTo(p+d+3,f-3),h.lineTo(p+d-y,f-3),h.lineTo(p+d-y,f),h.lineTo(p+d,f),h.closePath(),h.moveTo(p+d,f+m-y),h.lineTo(p+d+3,f+m-y),h.lineTo(p+d+3,f+m+3),h.lineTo(p+d-y,f+m+3),h.lineTo(p+d-y,f+m),h.lineTo(p+d,f+m),h.closePath(),h.stroke(),h.fill()),p=g,f=v,"x"===x&&(h.beginPath(),h.moveTo(p,f+15),h.lineTo(p,f-15),h.lineTo(p-3,f-15),h.lineTo(p-3,f+15),h.closePath(),h.moveTo(p+d,f+15),h.lineTo(p+d,f-15),h.lineTo(p+d+3,f-15),h.lineTo(p+d+3,f+15),h.closePath(),h.stroke(),h.fill()),"y"===x&&(h.beginPath(),h.moveTo(p-15,f),h.lineTo(p+15,f),h.lineTo(p+15,f-3),h.lineTo(p-15,f-3),h.closePath(),h.moveTo(p-15,f+m),h.lineTo(p+15,f+m),h.lineTo(p+15,f+m+3),h.lineTo(p-15,f+m+3),h.closePath(),h.stroke(),h.fill()),e.restore()}var h,p,f,d,m,g,v,x,y}),c.hooks.shutdown.push(function(t,e){e.unbind("mousemove",r),e.unbind("mousedown",a),o&&k(document).unbind("mouseup",o)})},options:{selection:{mode:null,color:"#888888",shape:"round",minSize:5}},name:"selection",version:"1.1"}),function(t){var e=-100,c=0,u=-1,h=-2,p=1,f=t.plot.browser,r=f.getPixelRatio;function n(t,e){var n=t.filter(a);p=r(e.getContext("2d"));var o,i=n.map(function(t){var c,u,e=new Image;return new Promise((u=t,(c=e).sourceDescription='',c.sourceComponent=u,function(e,t){var n,o,i,r,a,s,l;c.onload=function(t){c.successfullyLoaded=!0,e(c)},c.onabort=function(t){c.successfullyLoaded=!1,console.log("Can't generate temp image from "+c.sourceDescription+". It is possible that it is missing some properties or its content is not supported by this browser. Source component:",c.sourceComponent),e(c)},c.onerror=function(t){c.successfullyLoaded=!1,console.log("Can't generate temp image from "+c.sourceDescription+". It is possible that it is missing some properties or its content is not supported by this browser. Source component:",c.sourceComponent),e(c)},o=c,"CANVAS"===(n=u).tagName&&(i=n,o.src=i.toDataURL("image/png")),"svg"===n.tagName&&(r=n,a=o,f.isSafari()||f.isMobileSafari()?function(t,e){m.apply(this,arguments)}(r,a):function(t,e){d.apply(this,arguments)}(r,a)),o.srcImgTagName=n.tagName,s=n,(l=o).genLeft=s.getBoundingClientRect().left,l.genTop=s.getBoundingClientRect().top,"CANVAS"===s.tagName&&(l.genRight=l.genLeft+s.width,l.genBottom=l.genTop+s.height),"svg"===s.tagName&&(l.genRight=s.getBoundingClientRect().right,l.genBottom=s.getBoundingClientRect().bottom)}))});return Promise.all(i).then((o=e,function(t){var e=function(t,e){var n=function(t,e){var n,o=c;if(0===t.length)o=u;else{var i=t[0].genLeft,r=t[0].genTop,a=t[0].genRight,s=t[0].genBottom,l=0;for(l=1;lt[l].genLeft&&(i=t[l].genLeft),r>t[l].genTop&&(r=t[l].genTop);for(l=1;l',"",e.innerHTML,""].join("\n")}function d(){return(d=i(v.default.mark(function t(e,n){var o,i,r,a,s;return v.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w(document);case 2:o=t.sent,i=g(i=l(o,e)),r=new Blob([i],{type:"image/svg+xml;charset=utf-8"}),a=self.URL||self.webkitURL||self,s=a.createObjectURL(r),n.src=s;case 7:case"end":return t.stop()}},t)}))).apply(this,arguments)}function m(){return(m=i(v.default.mark(function t(e,n){var o,i,r,a,s;return v.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=function(t){for(var e="",n=new Uint8Array(t),o=0;o]+xmlns="http:\/\/www\.w3\.org\/2000\/svg"/)||(e=t.replace(/^]+"http:\/\/www\.w3\.org\/1999\/xlink"/)||(e=t.replace(/^\r\n'+e}function s(){return e}t.plot.composeImages=n,t.plot.plugins.push({init:function(t){t.composeImages=n},name:"composeImages",version:"1.0"})}(jQuery),function(b){function w(t){var e="",n=t.name,o=t.xPos,i=t.yPos,r=t.fillColor,a=t.strokeColor,s=t.strokeWidth;switch(n){case"circle":e='';break;case"diamond":e='';break;case"cross":e='';break;case"rectangle":e='';break;case"plus":e='';break;case"bar":e='';break;case"area":e='';break;case"line":e='';break;default:e=''}return e}var T='';function l(t,e){for(var n in t)if(t.hasOwnProperty(n)&&t[n]!==e[n])return!0;return!1}b.plot.plugins.push({init:function(t){t.hooks.setupGrid.push(function(t){var e=t.getOptions(),n=t.getData(),o=e.legend.labelFormatter,i=e.legend.legendEntries,r=e.legend.plotOffset,a=function(t,e,n){var r=e,o=t.reduce(function(t,e,n){var o=r?r(e.label,e):e.label;if(!e.hasOwnProperty("label")||o){var i={label:o||"Plot "+(n+1),color:e.color,options:{lines:e.lines,points:e.points,bars:e.bars}};t.push(i)}return t},[]);if(n)if(b.isFunction(n))o.sort(n);else if("reverse"===n)o.reverse();else{var i="descending"!==n;o.sort(function(t,e){return t.label===e.label?0:t.label',c[h++]='',c[h++]=T;for(var g=0;g'+m.label+"",c[h++]=""+a+r+"";c[h++]="",null==d[0]&&(d=[d,d]),"n"===f.charAt(0)?p+="top:"+(d[1]+l.top)+"px;":"s"===f.charAt(0)&&(p+="bottom:"+(d[1]+l.bottom)+"px;"),"e"===f.charAt(1)?p+="right:"+(d[0]+l.right)+"px;":"w"===f.charAt(1)&&(p+="left:"+(d[0]+l.left)+"px;");var v,x=3+u/2,y=1.6*s.length;e.legend.container?(v=b(c.join("")).appendTo(e.legend.container)[0],e.legend.container.style.width=x+"em",e.legend.container.style.height=y+"em"):((v=b('
'+c.join("")+"
").appendTo(n)).css("width",x+"em"),v.css("height",y+"em"),v.css("pointerEvents","none"))}}(t,e,t.getPlaceholder(),a)})},options:{legend:{show:!1,labelFormatter:null,container:null,position:"ne",margin:5,sorted:null}},name:"legend",version:"1.0"})}(jQuery)},{"regenerator-runtime":2,"regenerator-runtime/runtime":2}],2:[function(t,e,n){var o=function(r){"use strict";var l,t=Object.prototype,c=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function a(t,e,n,o){var r,a,s,l,i=e&&e.prototype instanceof v?e:v,c=Object.create(i.prototype),u=new C(o||[]);return c._invoke=(r=t,a=n,s=u,l=p,function(t,e){if(l===d)throw new Error("Generator is already running");if(l===m){if("throw"===t)throw e;return N()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){var o=M(n,s);if(o){if(o===g)continue;return o}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===p)throw l=m,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=d;var i=h(r,a,s);if("normal"===i.type){if(l=s.done?m:f,i.arg===g)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(l=m,s.method="throw",s.arg=i.arg)}}),c}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=a;var p="suspendedStart",f="suspendedYield",d="executing",m="completed",g={};function v(){}function s(){}function u(){}var x={};x[i]=function(){return this};var y=Object.getPrototypeOf,b=y&&y(y(L([])));b&&b!==t&&c.call(b,i)&&(x=b);var w=u.prototype=v.prototype=Object.create(x);function T(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(l){var e;this._invoke=function(n,o){function t(){return new Promise(function(t,e){!function e(t,n,o,i){var r=h(l[t],l,n);if("throw"!==r.type){var a=r.arg,s=a.value;return s&&"object"==typeof s&&c.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,o,i)},function(t){e("throw",t,o,i)}):Promise.resolve(s).then(function(t){a.value=t,o(a)},function(t){return e("throw",t,o,i)})}i(r.arg)}(n,o,t,e)})}return e=e?e.then(t,t):t()}}function M(t,e){var n=t.iterator[e.method];if(n===l){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=l,M(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,g;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=l),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n