text: !function(t){"use strict";function e(e){function n(e){C=e.getOptions();var i=C.series.grow.valueIndex;if(C.series.grow.active===!0){var n=!1,r=0;if(C.series.grow.reanimate&&w===h.PLOTTED_LAST_FRAME){m=!1,w=h.NOT_PLOTTED_YET,y=0,_=e.getData();var a=Math.min(_.length,x.length);for(r=0;a>r;r++)_[r].dataOld=x[r];n=!0,v=!0}if(!m){for(n||(_=e.getData()),w=h.NOT_PLOTTED_YET,y=0|+new Date,x=[],r=0;r<_.length;r++){var o=_[r];if(o.dataOrg=t.extend(!0,[],o.data),x.push(o.dataOrg),!n)for(var s=0;s<o.data.length;s++)o.data[s][i]=null===o.dataOrg[s][i]?null:0}e.setData(_),m=!0}}}function o(t){v===!0&&s(t)}function s(t){C=t.getOptions(),C.series.grow.active===!0&&(l(t.getData(),C),y=0|+new Date,g=r(d)),v=!1}function l(t,e){for(var i=e.series.grow.duration,n=0,r=t.length;r>n;n++){var a=t[n].grow.duration;a>i&&(i=a)}e.series.grow.duration=i}function u(t){i("resize")&&t.getPlaceholder().resize(p)}function d(){b=0|+new Date-y;for(var t=0,e=_.length;e>t;t++)for(var i=_[t],n=i.dataOld&&i.dataOld.length>0,a=0,o=i.grow.growings.length;o>a;a++){var s,l=i.grow.growings[a];n&&"reinit"!==l.reanimate?("function"==typeof l.reanimate&&(s=l.reanimate),s="continue"===l.reanimate?c.reanimate:c.none):s="function"==typeof l.stepMode?l.stepMode:c[l.stepMode]||c.none,s(i,b,l,w)}k.setData(_),k.draw(),w===h.NOT_PLOTTED_YET&&(w=h.PLOTTED_SOME_FRAMES),b<C.series.grow.duration?g=r(d):(w=h.PLOTTED_LAST_FRAME,g=null,k.getPlaceholder().trigger("growFinished"))}function p(){if(g){for(var i=0;i<_.length;i++){var n=_[i];n.data=t.extend(!0,[],n.dataOrg)}e.setData(_),e.setupGrid()}}function f(t){t.getPlaceholder().unbind("resize",p),g&&(a(g),g=null)}var g,m=!1,v=!0,y=0,b=0,w=h.NOT_PLOTTED_YET,x=[],k=e,_=null,C=null;e.hooks.drawSeries.push(n),e.hooks.draw.push(o),e.hooks.bindEvents.push(u),e.hooks.shutdown.push(f)}function i(e){for(var i=t.plot.plugins,n=0,r=i.length;r>n;n++){var a=i[n];if(a.name===e)return!0}return!1}function n(){for(var t=window.requestAnimationFrame,e=window.cancelAnimationFrame,i=+new Date,n=["ms","moz","webkit","o"],o=0;o<n.length&&!t;++o)t=window[n[o]+"RequestAnimationFrame"],e=window[n[o]+"CancelAnimationFrame"]||window[n[o]+"CancelRequestAnimationFrame"];t||(t=function(t){var e=+new Date,n=Math.max(0,16-(e-i)),r=window.setTimeout(function(){t(e+n)},n);return i=e+n,r}),e||(e=function(t){clearTimeout(t)}),r=t,a=e}var r,a,o="growraf",s="0.4.5",l={series:{grow:{active:!1,duration:1e3,valueIndex:1,reanimate:!0,growings:[{valueIndex:1,stepMode:"linear",stepDirection:"up",reanimate:"continue"}]}}},h={NOT_PLOTTED_YET:0,PLOTTED_SOME_FRAMES:1,PLOTTED_LAST_FRAME:2},c={none:function(t,e,i,n){if(n===h.NOT_PLOTTED_YET)for(var r=0,a=t.data.length;a>r;r++)t.data[r][i.valueIndex]=t.dataOrg[r][i.valueIndex]},linear:function(t,e,i){for(var n=Math.min(e/t.grow.duration,1),r=0,a=t.data.length;a>r;r++){var o=t.dataOrg[r][i.valueIndex];null!==o?"up"===i.stepDirection?t.data[r][i.valueIndex]=o*n:"down"===i.stepDirection&&(t.data[r][i.valueIndex]=o+(t.yaxis.max-o)*(1-n)):t.data[r][i.valueIndex]=null}},maximum:function(t,e,i){for(var n=Math.min(e/t.grow.duration,1),r=t.yaxis.max*n,a=t.yaxis.min*n,o=t.yaxis.max*(1-n),s=t.yaxis.min*(1-n),l=0,h=t.data.length;h>l;l++){var c=t.dataOrg[l][i.valueIndex];null!==c?"up"===i.stepDirection?t.data[l][i.valueIndex]=c>=0?Math.min(c,r):Math.max(c,a):"down"===i.stepDirection&&(t.data[l][i.valueIndex]=c>=0?Math.max(c,o):Math.min(c,s)):t.data[l][i.valueIndex]=null}},delay:function(t,e,i){if(e>=t.grow.duration)for(var n=0,r=t.data.length;r>n;n++)t.data[n][i.valueIndex]=t.dataOrg[n][i.valueIndex]},reanimate:function(t,e,i){for(var n=Math.min(e/t.grow.duration,1),r=0,a=t.data.length;a>r;r++){var o=t.dataOrg[r][i.valueIndex];if(null===o)t.data[r][i.valueIndex]=null;else if(t.dataOld){var s=t.dataOld[r][i.valueIndex];t.data[r][i.valueIndex]=s+(o-s)*n}}}};n(),t.plot.plugins.push({init:e,options:l,name:o,version:s})}(jQuery);