text: /*! tempusjs 0.2.18 Kuznetsov Aleksey <me@akuzn.com> 2014-01-02 */
  (function(a){"use strict";Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c,d;for(c=b||0,d=this.length;d>c;c+=1)if(this[c]===a)return c;return-1});var b,c,d,e,f,g,h,i=this,j=function(a,b){for(var c=a.toString();c.length<b;)c="0"+c;return c},k=function(b,c){return c!==a?(b.year(c.year()||c.year),b.month(c.month()||c.month),b.day(c.day()||c.day),b.hours(c.hours()||c.hours),b.minutes(c.minutes()||c.minutes),b.seconds(c.seconds()||c.seconds),b.milliseconds(c.milliseconds()||c.milliseconds),b):a},l=function(a,b){var c,d="";return c=a.slice(b,b+1),""===c||isNaN(Number(c))||(d+="%H"),c=a.charAt(b+2),""!==c&&":"===c&&(d+=c),c=a.slice(b+3,b+4),""===c||isNaN(Number(c))||(d+="%M"),c=a.charAt(b+5),""!==c&&":"===c&&(d+=c),c=a.slice(b+6,b+7),""===c||isNaN(Number(c))||(d+="%S"),d},m=function(a,b){var c,d,e=[a.slice(b,b+1),a.charAt(b+2),a.slice(b+3,b+4),a.charAt(b+5),a.slice(b+6,b+9)];return isNaN(Number(e[0]))||isNaN(Number(e[2]))||isNaN(Number(e[4]))?(d=[a.slice(b,b+3),a.charAt(b+4),a.slice(b+5,b+6),a.charAt(b+7),a.slice(b+8,b+9)],isNaN(Number(d[0]))||isNaN(Number(d[2]))||isNaN(Number(d[4]))?"":("-"===d[1]&&"-"===d[3]&&(c="%Y-%m-%d"),c)):("."===e[1]&&"."===e[3]?c="%d.%m.%Y":"-"===e[1]&&"-"===e[3]?c="%m-%d-%Y":"/"===e[1]&&"/"===e[3]&&(c="%m/%d/%Y"),c)},n=i.tempus,o=i.navigator||{},p="en",q={en:{JANUARY_SHORT:"Jan",FEBRUARY_SHORT:"Feb",MARCH_SHORT:"Mar",APRIL_SHORT:"Apr",MAY_SHORT:"May",JUNE_SHORT:"Jun",JULY_SHORT:"Jul",AUGUST_SHORT:"Aug",SEPTEMBER_SHORT:"Sep",OCTOBER_SHORT:"Oct",NOVEMBER_SHORT:"Nov",DECEMBER_SHORT:"Dec",JANUARY_LONG:"January",FEBRUARY_LONG:"February",MARCH_LONG:"March",APRIL_LONG:"April",MAY_LONG:"May",JUNE_LONG:"June",JULY_LONG:"July",AUGUST_LONG:"August",SEPTEMBER_LONG:"September",OCTOBER_LONG:"October",NOVEMBER_LONG:"November",DECEMBER_LONG:"December",SUNDAY_SHORT:"Sun",MONDAY_SHORT:"Mon",TUESDAY_SHORT:"Tue",WEDNESDAY_SHORT:"Wed",THURSDAY_SHORT:"Thu",FRIDAY_SHORT:"Fri",SATURDAY_SHORT:"Sat",SUNDAY_LONG:"Sunday",MONDAY_LONG:"Monday",TUESDAY_LONG:"Tuesday",WEDNESDAY_LONG:"Wednesday",THURSDAY_LONG:"Thursday",FRIDAY_LONG:"Friday",SATURDAY_LONG:"Saturday"},ru:{JANUARY_SHORT:"Янв",FEBRUARY_SHORT:"Фев",MARCH_SHORT:"Мар",APRIL_SHORT:"Апр",MAY_SHORT:"Май",JUNE_SHORT:"Июн",JULY_SHORT:"Июл",AUGUST_SHORT:"Авг",SEPTEMBER_SHORT:"Сен",OCTOBER_SHORT:"Окт",NOVEMBER_SHORT:"Ноя",DECEMBER_SHORT:"Дек",JANUARY_LONG:"Январь",FEBRUARY_LONG:"Февраль",MARCH_LONG:"Март",APRIL_LONG:"Апрель",MAY_LONG:"Май",JUNE_LONG:"Июнь",JULY_LONG:"Июль",AUGUST_LONG:"Август",SEPTEMBER_LONG:"Сентябрь",OCTOBER_LONG:"Октябрь",NOVEMBER_LONG:"Ноябрь",DECEMBER_LONG:"Декабрь",SUNDAY_SHORT:"Вс",MONDAY_SHORT:"Пн",TUESDAY_SHORT:"Вт",WEDNESDAY_SHORT:"Ср",THURSDAY_SHORT:"Чт",FRIDAY_SHORT:"Пт",SATURDAY_SHORT:"Сб",SUNDAY_LONG:"Воскресенье",MONDAY_LONG:"Понедельник",TUESDAY_LONG:"Вторник",WEDNESDAY_LONG:"Среда",THURSDAY_LONG:"Четверг",FRIDAY_LONG:"Пятница",SATURDAY_LONG:"Суббота"},ua:{JANUARY_SHORT:"Січ",FEBRUARY_SHORT:"Лют",MARCH_SHORT:"Берез",APRIL_SHORT:"Квіт",MAY_SHORT:"Трав",JUNE_SHORT:"Черв",JULY_SHORT:"Лип",AUGUST_SHORT:"Серп",SEPTEMBER_SHORT:"Верес",OCTOBER_SHORT:"Жовт",NOVEMBER_SHORT:"Листоп",DECEMBER_SHORT:"Груд",JANUARY_LONG:"Січень",FEBRUARY_LONG:"Лютий",MARCH_LONG:"Березень",APRIL_LONG:"Квітень",MAY_LONG:"Травень",JUNE_LONG:"Червень",JULY_LONG:"Липень",AUGUST_LONG:"Серпень",SEPTEMBER_LONG:"Вересень",OCTOBER_LONG:"Жовтень",NOVEMBER_LONG:"Листопад",DECEMBER_LONG:"Грудень",SUNDAY_SHORT:"Нд",MONDAY_SHORT:"Пн",TUESDAY_SHORT:"Вт",WEDNESDAY_SHORT:"Ср",THURSDAY_SHORT:"Чт",FRIDAY_SHORT:"Пт",SATURDAY_SHORT:"Сб",SUNDAY_LONG:"Неділя",MONDAY_LONG:"Понеділок",TUESDAY_LONG:"Вівторок",WEDNESDAY_LONG:"Середа",THURSDAY_LONG:"Четвер",FRIDAY_LONG:"П’ятниця",SATURDAY_LONG:"Субота"},de:{JANUARY_SHORT:"Jan",FEBRUARY_SHORT:"Feb",MARCH_SHORT:"März",APRIL_SHORT:"Apr",MAY_SHORT:"Mai",JUNE_SHORT:"Juni",JULY_SHORT:"Juli",AUGUST_SHORT:"Aug",SEPTEMBER_SHORT:"Sept",OCTOBER_SHORT:"Okt",NOVEMBER_SHORT:"Nov",DECEMBER_SHORT:"Dez",JANUARY_LONG:"Januar",FEBRUARY_LONG:"Februar",MARCH_LONG:"März",APRIL_LONG:"April",MAY_LONG:"Mai",JUNE_LONG:"Juni",JULY_LONG:"Juli",AUGUST_LONG:"August",SEPTEMBER_LONG:"September",OCTOBER_LONG:"Oktober",NOVEMBER_LONG:"November",DECEMBER_LONG:"Dezember",SUNDAY_SHORT:"So",MONDAY_SHORT:"Mo",TUESDAY_SHORT:"Di",WEDNESDAY_SHORT:"Mi",THURSDAY_SHORT:"Do",FRIDAY_SHORT:"Fr",SATURDAY_SHORT:"Sa",SUNDAY_LONG:"Sonntag",MONDAY_LONG:"Montag",TUESDAY_LONG:"Dienstag",WEDNESDAY_LONG:"Mittwoch",THURSDAY_LONG:"Donnerstag",FRIDAY_LONG:"Freitag",SATURDAY_LONG:"Samstag"}},r=function(){return[q[p].JANUARY_LONG,q[p].FEBRUARY_LONG,q[p].MARCH_LONG,q[p].APRIL_LONG,q[p].MAY_LONG,q[p].JUNE_LONG,q[p].JULY_LONG,q[p].AUGUST_LONG,q[p].SEPTEMBER_LONG,q[p].OCTOBER_LONG,q[p].NOVEMBER_LONG,q[p].DECEMBER_LONG]},s=function(){return[q[p].JANUARY_SHORT,q[p].FEBRUARY_SHORT,q[p].MARCH_SHORT,q[p].APRIL_SHORT,q[p].MAY_SHORT,q[p].JUNE_SHORT,q[p].JULY_SHORT,q[p].AUGUST_SHORT,q[p].SEPTEMBER_SHORT,q[p].OCTOBER_SHORT,q[p].NOVEMBER_SHORT,q[p].DECEMBER_SHORT]},t=function(){return[q[p].SUNDAY_LONG,q[p].MONDAY_LONG,q[p].TUESDAY_LONG,q[p].WEDNESDAY_LONG,q[p].THURSDAY_LONG,q[p].FRIDAY_LONG,q[p].SATURDAY_LONG]},u=function(){return[q[p].SUNDAY_SHORT,q[p].MONDAY_SHORT,q[p].TUESDAY_SHORT,q[p].WEDNESDAY_SHORT,q[p].THURSDAY_SHORT,q[p].FRIDAY_SHORT,q[p].SATURDAY_SHORT]},v=function(b,c,d){var e;e=i.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),e.onreadystatechange=function(){4===e.readyState&&(200===e.status?c&&(i.JSON===a?alert("Please, include json2 into your project if you want use old browsers!\nhttps://github.com/douglascrockford/JSON-js/blob/master/json2.js"):c(JSON.parse(e.responseText))):d&&d(e))},e.open("GET",b,!1),e.send()},w={"%d":{format:function(a){return j(a.day()||b.MIN_DAY,2)},parse:function(b){var c=Number(b);return{day:isNaN(c)?a:c}},minLength:2,maxLength:2,type:"number"},"%m":{format:function(a){return j(a.month()||b.MIN_MONTH,2)},parse:function(b){var c=Number(b);return{month:isNaN(c)?a:c}},minLength:2,maxLength:2,type:"number"},"%Y":{format:function(a){return j(a.year()||b.MIN_YEAR,4)},parse:function(b){var c=Number(b);return{year:isNaN(c)?a:c}},minLength:4,maxLength:4,type:"number"},"%w":{format:function(a){return a.dayOfWeek()||b.MIN_DAY_OF_WEEK},parse:function(){return{}},minLength:1,maxLength:1,type:"number"},"%a":{format:function(c){var d=c.dayOfWeek();return g[d!==a?d:b.MIN_DAY_OF_WEEK]},parse:function(){return{}},minLength:1,maxLength:999,type:"word"},"%A":{format:function(c){var d=c.dayOfWeek();return f[d!==a?d:b.MIN_DAY_OF_WEEK]},parse:function(){return{}},minLength:1,maxLength:999,type:"word"},"%b":{format:function(c){var d=b.options("monthFromZero")?c.month():c.month()-1;return e[d!==a?d:b.MIN_MONTH]},parse:function(c){var d=b.monthNames().indexOf(c)+(b.options("monthFromZero")?0:1);return{month:-1!==d?d:a}},minLength:1,maxLength:999,type:"word"},"%B":{format:function(c){var e=b.options("monthFromZero")?c.month():c.month()-1;return d[e!==a?e:b.MIN_MONTH]},parse:function(c){var d=b.monthNames(!0).indexOf(c)+(b.options("monthFromZero")?0:1);return{month:-1!==d?d:a}},minLength:1,maxLength:999,type:"word"},"%H":{format:function(a){return j(a.hours()||b.MIN_HOURS,2)},parse:function(b){var c=Number(b);return{hours:isNaN(c)?a:c}},minLength:2,maxLength:2,type:"number"},"%M":{format:function(a){return j(a.minutes()||b.MIN_MINUTES,2)},parse:function(b){var c=Number(b);return{minutes:isNaN(c)?a:c}},minLength:2,maxLength:2,type:"number"},"%S":{format:function(a){return j(a.seconds()||b.MIN_SECONDS,2)},parse:function(b){var c=Number(b);return{seconds:isNaN(c)?a:c}},minLength:2,maxLength:2,type:"number"},"%s":{format:function(a){return a.timestamp()},parse:function(a){return isNaN(Number(a))?{}:b(Number(a)).get()},minLength:1,maxLength:20,type:"number"},"%F":{format:function(a){return j(a.year()||b.MIN_YEAR,4)+"-"+j(a.month()||b.MIN_MONTH,2)+"-"+j(a.day()||b.MIN_DAY,2)},parse:function(a){var b=Number(a.slice(0,4)),c=Number(a.slice(5,7)),d=Number(a.slice(8,10));return{year:b,month:c,day:d}},minLength:10,maxLength:10,type:"string"},"%D":{format:function(a){return j(a.month()||b.MIN_MONTH,2)+"/"+j(a.day()||b.MIN_DAY,2)+"/"+j(a.year()||b.MIN_YEAR,4)},parse:function(a){var b=Number(a.slice(0,2)),c=Number(a.slice(3,5)),d=Number(a.slice(6,10));return{year:d,month:b,day:c}},minLength:10,maxLength:10,type:"string"}},x={useMilliseconds:!1,monthFromZero:!1};h=function(b,c,d){return this._d=new Date,this._i={year:!1,month:!1,day:!1,hours:!1,minutes:!1,seconds:!1,milliseconds:!1},b!==a&&this.set(b,c,d),this},h.fn=h.prototype,h.fn.dayCount=function(){var a=this.month(),c=b.MAX_DAY_IN_MONTHS[a-(b.options("monthFromZero")?0:1)];return this.leapYear()&&a===(b.options("monthFromZero")?1:2)&&(c+=1),c},h.fn.year=function(a){return 0===arguments.length?this._i.year===!1?this._d.getFullYear():this._i.year:("number"!=typeof a&&"string"!=typeof a||isNaN(Number(a))?(this._d.setFullYear(b.MIN_YEAR),this._i.year=!1):Number(a)>=b.MIN_YEAR&&Number(a)<=b.MAX_YEAR?(this._d.setFullYear(Number(a)),this._i.year=!1):this._i.year=Number(a),this)},h.fn.month=function(a){return 0===arguments.length?this._i.month===!1?b.options("monthFromZero")?this._d.getMonth():this._d.getMonth()+1:this._i.month:("number"!=typeof a&&"string"!=typeof a||isNaN(Number(a))?(this._d.setMonth(b.options("monthFromZero")?b.MIN_MONTH:b.MIN_MONTH-1),this._i.month=!1):Number(a)>=b.MIN_MONTH&&Number(a)<=b.MAX_MONTH?(this._d.setMonth(b.options("monthFromZero")?Number(a):Number(a)-1),this._i.month=!1):this._i.month=Number(a),this)},h.fn.day=function(a){return 0===arguments.length?this._i.day===!1?this._d.getDate():this._i.day:("number"!=typeof a&&"string"!=typeof a||isNaN(Number(a))?(this._d.setDate(b.MIN_DAY),this._i.day=!1):Number(a)>=b.MIN_DAY&&Number(a)<=this.dayCount()?(this._d.setDate(Number(a)),this._i.day=!1):this._i.day=Number(a),this)},h.fn.hours=function(a){return 0===arguments.length?this._i.hours===!1?this._d.getHours():this._i.hours:("number"!=typeof a&&"string"!=typeof a||isNaN(Number(a))?(this._d.setHours(b.MIN_HOURS),this._i.hours=!1):Number(a)>=b.MIN_HOURS&&Number(a)<=b.MAX_HOURS?(this._d.setHours(Number(a)),this._i.hours=!1):this._i.hours=Number(a),this)},h.fn.minutes=function(a){return 0===arguments.length?this._i.minutes===!1?this._d.getMinutes():this._i.minutes:("number"!=typeof a&&"string"!=typeof a||isNaN(Number(a))?(this._d.setMinutes(b.MIN_MINUTES),this._i.minutes=!1):Number(a)>=b.MIN_MINUTES&&Number(a)<=b.MAX_MINUTES?(this._d.setMinutes(Number(a)),this._i.minutes=!1):this._i.minutes=Number(a),this)},h.fn.seconds=function(a){return 0===arguments.length?this._i.seconds===!1?this._d.getSeconds():this._i.seconds:("number"!=typeof a&&"string"!=typeof a||isNaN(Number(a))?(this._d.setSeconds(b.MIN_SECONDS),this._i.seconds=!1):Number(a)>=b.MIN_SECONDS&&Number(a)<=b.MAX_SECONDS?(this._d.setSeconds(Number(a)),this._i.seconds=!1):this._i.seconds=Number(a),this)},h.fn.milliseconds=function(a){return 0===arguments.length?this._i.milliseconds===!1?this._d.getMilliseconds():this._i.milliseconds:("number"!=typeof a&&"string"!=typeof a||isNaN(Number(a))?(this._d.setMilliseconds(b.MIN_MILLISECONDS),this._i.milliseconds=!1):Number(a)>=b.MIN_MILLISECONDS&&Number(a)<=b.MAX_MILLISECONDS?(this._d.setMilliseconds(Number(a)),this._i.milliseconds=!1):this._i.milliseconds=Number(a),this)},h.fn.week=function(){var a=new Date(this.year(),0,1),c=1e3*b(this.utc()).hours(0).minutes(0).seconds(0).milliseconds(0).utc();return Math.ceil(((c-a.getTime())/864e5+a.getDay()+1)/7)},h.fn.set=function(c,d,e){if(this._i={year:!1,month:!1,day:!1,hours:!1,minutes:!1,seconds:!1,milliseconds:!1},c===a)return this._d=new Date,this;if(c instanceof Date)return this._d=c,this;if("number"==typeof c)return this._d=new Date(c*(b.options("useMilliseconds")?1:1e3)),this;if("object"==typeof c&&(c instanceof Array?(this.day(b.MIN_DAY),this.year(c[0]),this.month(c[1]),this.day(c[2]),this.hours(c[3]),this.minutes(c[4]),this.seconds(c[5]),this.milliseconds(c[6])):(this.day(b.MIN_DAY),this.year(c.year),this.month(c.month),this.day(c.day),this.hours(c.hours),this.minutes(c.minutes),this.seconds(c.seconds),this.milliseconds(c.milliseconds))),"string"==typeof c){var f,g,h,i,j,l,m=[],n=[],o=0,p=0,q={};if(c===a)return g=k(this,e),g===a&&(this._i={year:-1,month:-1,day:-1,hours:-1,minutes:-1,seconds:-1,milliseconds:-1}),g;for(d===a&&(d=b.detectFormat(c));o<d.length;){if("%"===d.charAt(o)){if(h=d.charAt(o)+d.charAt(o+1),w[h]!==a){switch(i=0,j="",w[h].type){case"number":for(;i<w[h].maxLength&&p+i<c.length&&!isNaN(Number(c.charAt(p+i)));)j+=c.charAt(p+i),i+=1;break;case"word":for(;i<w[h].maxLength&&p+i<c.length&&/^[\u00BF-\u1FFF\u2C00-\uD7FF\w]+$/.test(c.charAt(p+i));)j+=c.charAt(p+i),i+=1;break;case"string":for(;i<w[h].maxLength&&p+i<c.length;)j+=c.charAt(p+i),i+=1}if(i<w[h].minLength)return g=k(this,e),g===a&&(this._i={year:-1,month:-1,day:-1,hours:-1,minutes:-1,seconds:-1,milliseconds:-1}),g;m.push(h),n.push(j),i-=1,p+=i,o+=1}}else if(c.charAt(p)!==d.charAt(o))return g=k(this,e),g===a&&(this._i={year:-1,month:-1,day:-1,hours:-1,minutes:-1,seconds:-1,milliseconds:-1}),g;o+=1,p+=1}for(f in m)m.hasOwnProperty(f)&&w.hasOwnProperty(m[f])&&(l=w[m[f]].parse(n[f]),q={year:l.year!==a?l.year:q.year,month:l.month!==a?l.month:q.month,day:l.day!==a?l.day:q.day,hours:l.hours!==a?l.hours:q.hours,minutes:l.minutes!==a?l.minutes:q.minutes,seconds:l.seconds!==a?l.seconds:q.seconds});this.day(b.MIN_DAY),this.year(q.year),this.month(q.month),this.day(q.day),this.hours(q.hours),this.minutes(q.minutes),this.seconds(q.seconds),this.milliseconds(q.milliseconds)}return this},h.fn.leapYear=function(){var a=this.year();return a%4===0?a%100===0?a%400===0:!0:!1},h.fn.timestamp=function(a){return 0!==arguments.length?(this._d=new Date(Number(a)*(b.options("useMilliseconds")?1:1e3)+6e4*this._d.getTimezoneOffset()),this):b.options("useMilliseconds")?this._d.getTime()-6e4*this._d.getTimezoneOffset():Math.floor(this._d.getTime()/1e3)-60*this._d.getTimezoneOffset()},h.fn.utc=function(a){return 0!==arguments.length?(this._d=new Date(Number(a)*(b.options("useMilliseconds")?1:1e3)),this):b.options("useMilliseconds")?this._d.getTime():Math.floor(this._d.getTime()/1e3)},h.fn.dayOfWeek=function(b){return"long"===b?f[this._d.getDay()]:"short"===b?g[this._d.getDay()]:b===a?this._d.getDay():0===b||"Sunday"===b?this.calc({day:-this.dayOfWeek()}):1===b||"Monday"===b?this.calc({day:(0===this.dayOfWeek()?-6:1)-this.dayOfWeek()}):2===b||"Tuesday"===b?this.calc({day:(0===this.dayOfWeek()?-5:2)-this.dayOfWeek()}):3===b||"Wednesday"===b?this.calc({day:(0===this.dayOfWeek()?-4:3)-this.dayOfWeek()}):4===b||"Thursday"===b?this.calc({day:(0===this.dayOfWeek()?-3:4)-this.dayOfWeek()}):5===b||"Friday"===b?this.calc({day:(0===this.dayOfWeek()?-2:5)-this.dayOfWeek()}):6===b||"Saturday"===b?this.calc({day:(0===this.dayOfWeek()?-1:6)-this.dayOfWeek()}):void 0},h.fn.timezone=function(a){switch(a){case"hours":return Math.floor(this._d.getTimezoneOffset()/60);case"minutes":return this._d.getTimezoneOffset();default:return 60*this._d.getTimezoneOffset()}},h.fn.get=function(a){switch(a){case"Date":return new Date(this.year(),this.month()-(b.options("monthFromZero")?0:1),this.day(),this.hours(),this.minutes(),this.seconds(),this.milliseconds());case"DateUTC":return new Date(Date.UTC(this.year(),this.month()-(b.options("monthFromZero")?0:1),this.day(),this.hours(),this.minutes(),this.seconds(),this.milliseconds()));case"Array":return[this.year(),this.month(),this.day(),this.hours(),this.minutes(),this.seconds(),this.milliseconds()];default:return{year:this.year(),month:this.month(),week:this.week(),day:this.day(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds(),utc:this.utc(),dayOfWeek:this.dayOfWeek(),dayOfWeekShort:this.dayOfWeek("short"),dayOfWeekLong:this.dayOfWeek("long"),timestamp:this.timestamp()}}},h.fn.format=function(b){for(var c,d=0,e="";d<b.length;)"%"===b.charAt(d)?(c=b.charAt(d)+b.charAt(d+1),w[c]!==a?(e+=w[c].format(this),d+=1):e+="%"):e+=b.charAt(d),d+=1;return e},h.fn.valid=function(){return this._i.year===!1&&this._i.month===!1&&this._i.day===!1&&this._i.hours===!1&&this._i.minutes===!1&&this._i.seconds===!1&&this._i.milliseconds===!1},h.fn.errors=function(){return this._i},h.fn.between=function(b,c){var d=this.timestamp(),e=b.timestamp();switch(c){case"year":return Math.floor((e-d)/31556952);case"month":return Math.floor((e-d)/2629746);case"day":return Math.floor((e-d)/86400);case"hours":return Math.floor((e-d)/3600);case"minutes":return Math.floor((e-d)/60);case"seconds":return e-d;default:return a}},h.fn.calc=function(b){return b.year!==a&&this._d.setFullYear(this._d.getFullYear()+b.year),b.month!==a&&this._d.setMonth(this._d.getMonth()+b.month),b.day!==a&&this._d.setDate(this._d.getDate()+b.day),b.hours!==a&&this._d.setHours(this._d.getHours()+b.hours),b.minutes!==a&&this._d.setMinutes(this._d.getMinutes()+b.minutes),b.seconds!==a&&this._d.setSeconds(this._d.getSeconds()+b.seconds),b.milliseconds!==a&&this._d.setMilliseconds(this._d.getMilliseconds()+b.milliseconds),this},b=function(a,b,c){return new h(a,b,c)},b.MIN_YEAR=1e3,b.MAX_YEAR=3e3,b.MIN_MONTH=1,b.MAX_MONTH=12,b.MIN_DAY=1,b.MAX_DAY_IN_MONTHS=[31,28,31,30,31,30,31,31,30,31,30,31],b.MIN_DAY_OF_WEEK=0,b.MAX_DAY_OF_WEEK=6,b.MIN_HOURS=0,b.MAX_HOURS=23,b.MIN_MINUTES=0,b.MAX_MINUTES=59,b.MIN_SECONDS=0,b.MAX_SECONDS=59,b.MIN_MILLISECONDS=0,b.MAX_MILLISECONDS=999,b.VERSION="0.2.18",b.options=function(c,d){if(c===a)return x;if(x.hasOwnProperty(c)){if(d===a)return x[c];x[c]=d,"monthFromZero"===c&&(b.MIN_MONTH=d?0:1,b.MAX_MONTH=d?11:12)}return a},b.noConflict=function(){return i.tempus=n,b},b.generate=function(c){var d,e,f,g,i,j,k,l;if("number"!=typeof c.dateFrom&&(d=c.dateFrom instanceof h?c.dateFrom.utc():b(c.dateFrom,c.formatFrom).utc()),"number"!=typeof c.dateTo&&(e=c.dateTo instanceof h?c.dateTo.utc():b(c.dateTo,c.formatTo!==a?c.formatTo:c.formatFrom).utc()),"number"==typeof c.period?i={year:0,month:0,day:0,hours:0,minutes:0,seconds:c.period}:"string"==typeof c.period?i={year:"year"===c.period?1:0,month:"month"===c.period?1:0,day:"day"===c.period?1:0,hours:"hours"===c.period?1:0,minutes:"minutes"===c.period?1:0,seconds:"seconds"===c.period?1:0}:"object"==typeof c.period&&(i={year:c.period.year!==a?c.period.year:0,month:c.period.month!==a?c.period.month:0,day:c.period.day!==a?c.period.day:0,hours:c.period.hours!==a?c.period.hours:0,minutes:c.period.minutes!==a?c.period.minutes:0,seconds:c.period.seconds!==a?c.period.seconds:0}),c.groupBy===a?j=c.asObject===!0?{}:[]:(j=[],j.push([]),k=b(d).get()[c.groupBy]),l=function(d,e,f){return c.asObject===!0?c.format!==a?d[b(e).format(c.format)]={}:d[b(e).format("%F %H:%M:%S")]={}:c.format!==a?d.push(f?null:b(e).format(c.format)):d.push(f?null:b(e)),d},c.groupBy!==a&&c.fillNulls){var m={year:i.year?-i.year:a,month:i.month?-i.month:a,day:i.day?-i.day:a,hours:i.hours?-i.hours:a,minutes:i.minutes?-i.minutes:a,seconds:i.seconds?-i.seconds:a,milliseconds:i.milliseconds?-i.milliseconds:a};for(f=b(d).calc(m).utc();b(f).get()[c.groupBy]===k;)l(j[j.length-1],f,!0),f=b(f).calc(m).utc();if("week"===c.groupBy){var n=b(d).dayOfWeek();for(f=b(d).dayOfWeek(0).utc();j[0].length<n&&d>f;)l(j[j.length-1],f,!0),f=b(f).calc(i).utc()}}for(;e>=d;)c.groupBy===a?l(j,d):b(d).get()[c.groupBy]===k?l(j[j.length-1],d):(j.push([]),l(j[j.length-1],d),k=b(d).get()[c.groupBy]),d=b(d).calc(i).utc();if(c.groupBy!==a&&c.fillNulls)for(g=b(e).calc(i).utc();b(g).get()[c.groupBy]===k;)l(j[j.length-1],g,!0),g=b(g).calc(i).utc();return j},b.monthNames=function(a){switch(a){case"long":return d;default:return e}},b.dayNames=function(a){switch(a){case"long":return f;default:return g}},b.lang=function(b){return b===a?p:(p=b,q[p]===a&&(p="en"),d=r(),e=s(),f=t(),g=u(),a)},b.availableLangs=function(){return Object.keys(q)},b.registerFormat=function(a,b,c,d,e,f){w[a]={format:b,parse:c,minLength:d,maxLength:e,type:f}},b.unregisterFormat=function(a){delete w[a]},b.detectFormat=function(a){var b,c,d;return b=m(a,0),""!==b&&(d=10),c=a.charAt(d),("T"===c||" "===c)&&(b+=c,d+=1),b+=l(a,d)},c={TempusDate:h},b.classes=function(b,d){return d===a?c[b]:(c[b]=d,void 0)},b.loadTranslations=function(a){"object"==typeof a?q=a:"string"==typeof a&&v(a,function(a){q=a},function(){})},p=(o.language||o.systemLanguage||o.userLanguage||"en").substr(0,2).toLowerCase(),q[p]===a&&(p="en"),d=r(),e=s(),f=t(),g=u(),"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=b),exports.tempus=b):i.tempus=b}).call(this);