(function(t){var l={xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}};function i(e,t){return t*Math.floor(e/t)};function n(e,i,o,s){if(typeof e.strftime=='function'){return e.strftime(i)};var n=function(e,t){e=''+e;t=''+(t==null?'0':t);return e.length==1?t+e:e},l=[],m=!1,r=e.getHours(),c=r<12;if(o==null){o=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']};if(s==null){s=['Sun','Mon','Tue','Wed','Thu','Fri','Sat']};var a;if(r>12){a=r-12}else if(r==0){a=12}else{a=r};for(var u=0;u=M){break}};var c=f[m][0],o=f[m][1];if(o=='year'){if(t.minTickSize!=null&&t.minTickSize[1]=='year'){c=Math.floor(t.minTickSize[0])}else{var y=Math.pow(10,Math.floor(Math.log(a.delta/e.year)/Math.LN10)),d=(a.delta/e.year)/y;if(d<1.5){c=1}else if(d<3){c=2}else if(d<7.5){c=5}else{c=10};c*=y};if(c<1){c=1}};a.tickSize=t.tickSize||[c,o];var l=a.tickSize[0];o=a.tickSize[1];var h=l*e[o];if(o=='second'){n.setSeconds(i(n.getSeconds(),l))}else if(o=='minute'){n.setMinutes(i(n.getMinutes(),l))}else if(o=='hour'){n.setHours(i(n.getHours(),l))}else if(o=='month'){n.setMonth(i(n.getMonth(),l))}else if(o=='quarter'){n.setMonth(3*i(n.getMonth()/3,l))}else if(o=='year'){n.setFullYear(i(n.getFullYear(),l))};n.setMilliseconds(0);if(h>=e.minute){n.setSeconds(0)};if(h>=e.hour){n.setMinutes(0)};if(h>=e.day){n.setHours(0)};if(h>=e.day*4){n.setDate(1)};if(h>=e.month*2){n.setMonth(i(n.getMonth(),3))};if(h>=e.quarter*2){n.setMonth(i(n.getMonth(),6))};if(h>=e.year){n.setMonth(0)};var g=0,k=Number.NaN,S;do{S=k;k=n.getTime();z.push(k);if(o=='month'||o=='quarter'){if(l<1){n.setDate(1);var v=n.getTime();n.setMonth(n.getMonth()+(o=='quarter'?3:1));var p=n.getTime();n.setTime(k+g*e.hour+(p-v)*l);g=n.getHours();n.setHours(0)}else{n.setMonth(n.getMonth()+l*(o=='quarter'?3:1))}}else if(o=='year'){n.setFullYear(n.getFullYear()+l)}else{n.setTime(k+h)}}while(k