/*! UIkit 2.5.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(t){"function"==typeof define&&define.amd&&define("uikit-datepicker",["uikit"],function(){return jQuery.UIkit.datepicker||t(window,window.jQuery,window.jQuery.UIkit)}),window&&window.jQuery&&window.jQuery.UIkit&&t(window,window.jQuery,window.jQuery.UIkit)})(function(t,e,n){var i,s=!1,o=e('
');o.on("click",".uk-datepicker-next, .uk-datepicker-previous, [data-date]",function(t){t.stopPropagation(),t.preventDefault();var n=e(this);n.is("[data-date]")?(s.element.val(i(n.data("date")).format(s.options.format)).trigger("change"),o.hide(),s=!1):s.add("months",1*(n.hasClass("uk-datepicker-next")?1:-1))});var a=function(t,n){var o=this,r=e(t);r.data("datepicker")||(this.element=r,this.options=e.extend({},a.defaults,n),this.current=this.element.val()?i(this.element.val(),this.options.format):i(),this.element.on("click",function(){s!==o&&o.pick(this.value)}).on("change",function(){o.element.val()&&!i(o.element.val(),o.options.format).isValid()&&o.element.val(i().format(o.options.format))}),this.element.data("datepicker",this))};return a.defaults={weekstart:1,i18n:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},format:"DD.MM.YYYY",offsettop:5,template:function(t,e){var n="";n+='
',n+='',n+='',n+='
'+e.i18n.months[t.month]+" "+t.year+"
",n+="
",n+='',n+="";for(var i=0;t.weekdays.length>i;i++)t.weekdays[i]&&(n+="");n+="",n+="";for(var i=0;t.days.length>i;i++)if(t.days[i]&&t.days[i].length){n+="";for(var s=0;t.days[i].length>s;s++)if(t.days[i][s]){var o=t.days[i][s],a=[];o.inmonth||a.push("uk-datepicker-table-muted"),o.selected&&a.push("uk-active"),n+='"}n+=""}return n+="",n+="
"+t.weekdays[i]+"
'+o.day.format("D")+"
"}},e.extend(a.prototype,{pick:function(t){var n=this.element.offset(),a={top:n.top+this.element.outerHeight()+this.options.offsettop,left:n.left,right:""};this.current=t?i(t,this.options.format):i(),this.initdate=this.current.format("YYYY-MM-DD"),this.update(),"right"==e.UIkit.langdirection&&(a.right=window.innerWidth-(a.left+this.element.outerWidth()),a.left=""),o.css(a).show(),s=this},add:function(t,e){this.current.add(t,e),this.update()},setMonth:function(t){this.current.month(t),this.update()},setYear:function(t){this.current.year(t),this.update()},update:function(){var t=this.getRows(this.current.year(),this.current.month()),e=this.options.template(t,this.options);o.html(e)},getRows:function(t,e){var n=this.options,s=i().format("YYYY-MM-DD"),o=[31,0===t%4&&0!==t%100||0===t%400?29:28,31,30,31,30,31,31,30,31,30,31][e],a=new Date(t,e,1).getDay(),r={month:e,year:t,weekdays:[],days:[]},u=[];r.weekdays=function(){for(var t=0,e=[];7>t;t++){for(var i=t+(n.weekstart||0);i>=7;)i-=7;e.push(n.i18n.weekdays[i])}return e}(),n.weekstart&&n.weekstart>0&&(a-=n.weekstart,0>a&&(a+=7));for(var l=o+a,d=l;d>7;)d-=7;l+=7-d;for(var c,h,f,p,m,g=0,v=0;l>g;g++)c=new Date(t,e,1+(g-a)),h=n.mindate&&n.mindate>c||n.maxdate&&c>n.maxdate,m=!(a>g||g>=o+a),c=i(c),f=this.initdate==c.format("YYYY-MM-DD"),p=s==c.format("YYYY-MM-DD"),u.push({selected:f,today:p,disabled:h,day:c,inmonth:m}),7===++v&&(r.days.push(u),u=[],v=0);return r}}),n.datepicker=a,e(document).on("focus.datepicker.uikit","[data-uk-datepicker]",function(t){var i=e(this);i.data("datepicker")||(t.preventDefault(),new a(i,n.Utils.options(i.attr("data-uk-datepicker"))),i.trigger("focus"))}),e(document).on("click.datepicker.uikit",function(t){var n=e(t.target);!s||n[0]==o[0]||n.data("datepicker")||n.parents(".uk-datepicker:first").length||(o.hide(),s=!1)}),e(function(){o.appendTo("body")}),i=function(t){function e(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function n(t,e){return function(n){return l(t.call(this,n),e)}}function i(t,e){return function(n){return this.lang().ordinal(t.call(this,n),e)}}function s(){}function o(t){y(t),r(this,t)}function a(t){t=p(t);var e=t.year||0,n=t.month||0,i=t.week||0,s=t.day||0;this._milliseconds=+(t.millisecond||0)+1e3*(t.second||0)+6e4*(t.minute||0)+36e5*(t.hour||0),this._days=+s+7*i,this._months=+n+12*e,this._data={},this._bubble()}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function u(t){return 0>t?Math.ceil(t):Math.floor(t)}function l(t,e,n){for(var i=""+Math.abs(t);e>i.length;)i="0"+i;return(t>=0?n?"+":"":"-")+i}function d(t,e,n,i){var s=e._milliseconds,o=e._days;e=e._months;var a,r;s&&t._d.setTime(+t._d+s*n),(o||e)&&(a=t.minute(),r=t.hour()),o&&t.date(t.date()+o*n),e&&t.month(t.month()+e*n),s&&!i&&q.updateOffset(t,o||e),(o||e)&&(t.minute(a),t.hour(r))}function c(t){return"[object Array]"===Object.prototype.toString.call(t)}function h(t,e,n){var i,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(i=0;s>i;i++)(n&&t[i]!==e[i]||!n&&g(t[i])!==g(e[i]))&&a++;return a+o}function f(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Oe[t]||je[e]||e}return t}function p(t){var e,n,i={};for(n in t)t.hasOwnProperty(n)&&(e=f(n))&&(i[e]=t[n]);return i}function m(e){var n,i;if(0===e.indexOf("week"))n=7,i="day";else{if(0!==e.indexOf("month"))return;n=12,i="month"}q[e]=function(s,o){var a,r,u=q.fn._lang[e],l=[];if("number"==typeof s&&(o=s,s=t),r=function(t){return t=q().utc().set(i,t),u.call(q.fn._lang,t,s||"")},null!=o)return r(o);for(a=0;n>a;a++)l.push(r(a));return l}}function g(t){t=+t;var e=0;return 0!==t&&isFinite(t)&&(e=t>=0?Math.floor(t):Math.ceil(t)),e}function v(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function k(t,e,n){return Q(q([t,11,31+e-n]),e,n).week}function w(t){return 0===t%4&&0!==t%100||0===t%400}function y(t){var e;t._a&&-2===t._pf.overflow&&(e=0>t._a[J]||t._a[J]>11?J:1>t._a[V]||t._a[V]>v(t._a[Z],t._a[J])?V:0>t._a[X]||t._a[X]>23?X:0>t._a[B]||t._a[B]>59?B:0>t._a[K]||t._a[K]>59?K:0>t._a[te]||t._a[te]>999?te:-1,t._pf._overflowDayOfYear&&(Z>e||e>V)&&(e=V),t._pf.overflow=e)}function _(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&0>t._pf.overflow&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function b(t){return t?t.toLowerCase().replace("_","-"):t}function M(t,e){return e._isUTC?q(t).zone(e._offset||0):q(t).local()}function D(t){var e,n,i,s,o=0,a=function(t){if(!ee[t]&&ie)try{require("./lang/"+t)}catch(e){}return ee[t]};if(!t)return q.fn._lang;if(!c(t)){if(n=a(t))return n;t=[t]}for(;t.length>o;){for(s=b(t[o]).split("-"),e=s.length,i=(i=b(t[o+1]))?i.split("-"):null;e>0;){if(n=a(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&h(s,i,!0)>=e-1)break;e--}o++}return q.fn._lang}function Y(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function C(t){var e,n,i=t.match(re);for(e=0,n=i.length;n>e;e++)i[e]=Pe[i[e]]?Pe[i[e]]:Y(i[e]);return function(s){var o="";for(e=0;n>e;e++)o+=i[e]instanceof Function?i[e].call(s,t):i[e];return o}}function T(t,e){return t.isValid()?(e=U(e,t.lang()),Ie[e]||(Ie[e]=C(e)),Ie[e](t)):t.lang().invalidDate()}function U(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(ue.lastIndex=0;i>=0&&ue.test(t);)t=t.replace(ue,n),ue.lastIndex=0,i-=1;return t}function S(t,e){var n=e._strict;switch(t){case"DDDD":return _e;case"YYYY":case"GGGG":case"gggg":return n?be:ce;case"Y":case"G":case"g":return De;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return n?Me:he;case"S":if(n)return we;case"SS":if(n)return ye;case"SSS":if(n)return _e;case"DDD":return de;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return pe;case"a":case"A":return D(e._l)._meridiemParse;case"X":return ve;case"Z":case"ZZ":return me;case"T":return ge;case"SSSS":return fe;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return n?ye:le;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return le;case"Do":return ke;default:var i,n=RegExp;return i=W(t.replace("\\","")).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),new n(i)}}function x(t){t=(t||"").match(me)||[],t=((t[t.length-1]||[])+"").match(Ue)||["-",0,0];var e=+(60*t[1])+g(t[2]);return"+"===t[0]?-e:e}function O(t){var e,n,i,s,o,a,r=[];if(!t._d){for(n=j(t),t._w&&null==t._a[V]&&null==t._a[J]&&(e=function(e){var n=parseInt(e,10);return e?3>e.length?n>68?1900+n:2e3+n:n:null==t._a[Z]?q().weekYear():t._a[Z]},i=t._w,null!=i.GG||null!=i.W||null!=i.E?e=z(e(i.GG),i.W||1,i.E,4,1):(s=D(t._l),o=null!=i.d?G(i.d,s):null!=i.e?parseInt(i.e,10)+s._week.dow:0,a=parseInt(i.w,10)||1,null!=i.d&&s._week.dow>o&&a++,e=z(e(i.gg),a,o,s._week.doy,s._week.dow)),t._a[Z]=e.year,t._dayOfYear=e.dayOfYear),t._dayOfYear&&(e=null==t._a[Z]?n[Z]:t._a[Z],t._dayOfYear>(w(e)?366:365)&&(t._pf._overflowDayOfYear=!0),e=P(e,0,t._dayOfYear),t._a[J]=e.getUTCMonth(),t._a[V]=e.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=r[e]=n[e];for(;7>e;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];r[X]+=g((t._tzm||0)/60),r[B]+=g((t._tzm||0)%60),t._d=(t._useUTC?P:F).apply(null,r)}}function j(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function I(t){t._a=[],t._pf.empty=!0;var e,n,i,s,o=D(t._l),a=""+t._i,r=a.length,u=0;for(n=U(t._f,o).match(re)||[],o=0;n.length>o;o++)if(i=n[o],(e=(a.match(S(i,t))||[])[0])&&(s=a.substr(0,a.indexOf(e)),s.length>0&&t._pf.unusedInput.push(s),a=a.slice(a.indexOf(e)+e.length),u+=e.length),Pe[i]){e?t._pf.empty=!1:t._pf.unusedTokens.push(i),s=t;var l=void 0,d=s._a;switch(i){case"M":case"MM":null!=e&&(d[J]=g(e)-1);break;case"MMM":case"MMMM":l=D(s._l).monthsParse(e),null!=l?d[J]=l:s._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(d[V]=g(e));break;case"Do":null!=e&&(d[V]=g(parseInt(e,10)));break;case"DDD":case"DDDD":null!=e&&(s._dayOfYear=g(e));break;case"YY":d[Z]=g(e)+(g(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":d[Z]=g(e);break;case"a":case"A":s._isPm=D(s._l).isPM(e);break;case"H":case"HH":case"h":case"hh":d[X]=g(e);break;case"m":case"mm":d[B]=g(e);break;case"s":case"ss":d[K]=g(e);break;case"S":case"SS":case"SSS":case"SSSS":d[te]=g(1e3*("0."+e));break;case"X":s._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":s._useUTC=!0,s._tzm=x(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":i=i.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":i=i.substr(0,2),e&&(s._w=s._w||{},s._w[i]=e)}}else t._strict&&!e&&t._pf.unusedTokens.push(i);t._pf.charsLeftOver=r-u,a.length>0&&t._pf.unusedInput.push(a),t._isPm&&12>t._a[X]&&(t._a[X]+=12),!1===t._isPm&&12===t._a[X]&&(t._a[X]=0),O(t),y(t)}function W(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,s){return e||n||i||s})}function F(t,e,n,i,s,o,a){return e=new Date(t,e,n,i,s,o,a),1970>t&&e.setFullYear(t),e}function P(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function G(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function H(t,e,n,i,s){return s.relativeTime(e||1,!!n,t,i)}function Q(t,e,n){return e=n-e,n-=t.day(),n>e&&(n-=7),e-7>n&&(n+=7),t=q(t).add("d",n),{week:Math.ceil(t.dayOfYear()/7),year:t.year()}}function z(t,e,n,i,s){var o=P(t,0,1).getUTCDay();return e=7*(e-1)+((null!=n?n:s)-s)+(s-o+(o>i?7:0)-(s>o?7:0))+1,{year:e>0?t:t-1,dayOfYear:e>0?e:(w(t-1)?366:365)+e}}function L(n){var i=n._i,s=n._f;if(null===i)return q.invalid({nullInput:!0});if("string"==typeof i&&(n._i=i=D().preparse(i)),q.isMoment(i)){n=i;var a,u={};for(a in n)n.hasOwnProperty(a)&&ne.hasOwnProperty(a)&&(u[a]=n[a]);n=u,n._d=new Date(+i._d)}else if(s)if(c(s)){var l,d,i=n;if(0===i._f.length)i._pf.invalidFormat=!0,i._d=new Date(0/0);else{for(a=0;i._f.length>a;a++)s=0,u=r({},i),u._pf=e(),u._f=i._f[a],I(u),_(u)&&(s+=u._pf.charsLeftOver,s+=10*u._pf.unusedTokens.length,u._pf.score=s,null==d||d>s)&&(d=s,l=u);r(i,l||u)}}else I(n);else if(u=n,l=u._i,d=se.exec(l),l===t)u._d=new Date;else if(d)u._d=new Date(+d[1]);else if("string"==typeof l)if(i=u._i,a=Ye.exec(i)){for(u._pf.iso=!0,l=0,d=Ce.length;d>l;l++)if(Ce[l][1].exec(i)){u._f=Ce[l][0]+(a[6]||" ");break}for(l=0,d=Te.length;d>l;l++)if(Te[l][1].exec(i)){u._f+=Te[l][0];break}i.match(me)&&(u._f+="Z"),I(u)}else u._d=new Date(i);else c(l)?(u._a=l.slice(0),O(u)):"[object Date]"===Object.prototype.toString.call(l)||l instanceof Date?u._d=new Date(+l):"object"==typeof l?u._d||(l=p(u._i),u._a=[l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond],O(u)):u._d=new Date(l);return new o(n)}function E(t,e){var n="date"===e||"month"===e||"year"===e;q.fn[t]=q.fn[t+"s"]=function(t,i){var s=this._isUTC?"UTC":"";return null==i&&(i=n),null!=t?(this._d["set"+s+e](t),q.updateOffset(this,i),this):this._d["get"+s+e]()}}function A(t){q.duration.fn[t]=function(){return this._data[t]}}function R(t,e){q.duration.fn["as"+t]=function(){return+this/e}}for(var q,$,N=Math.round,Z=0,J=1,V=2,X=3,B=4,K=5,te=6,ee={},ne={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},ie="undefined"!=typeof module&&module.exports&&"undefined"!=typeof require,se=/^\/?Date\((\-?\d+)/i,oe=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,ae=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,re=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,ue=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,le=/\d\d?/,de=/\d{1,3}/,ce=/\d{1,4}/,he=/[+\-]?\d{1,6}/,fe=/\d+/,pe=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,me=/Z|[\+\-]\d\d:?\d\d/gi,ge=/T/i,ve=/[\+\-]?\d+(\.\d{1,3})?/,ke=/\d{1,2}/,we=/\d/,ye=/\d\d/,_e=/\d{3}/,be=/\d{4}/,Me=/[+-]?\d{6}/,De=/[+-]?\d+/,Ye=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ce=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Te=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Ue=/([\+\-]|\d\d)/gi,Se=["Date","Hours","Minutes","Seconds","Milliseconds"],xe={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Oe={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},je={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Ie={},We="DDD w W M D d".split(" "),Fe="MDHhmswW".split(""),Pe={M:function(){return this.month()+1},MMM:function(t){return this.lang().monthsShort(this,t)},MMMM:function(t){return this.lang().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.lang().weekdaysMin(this,t)},ddd:function(t){return this.lang().weekdaysShort(this,t)},dddd:function(t){return this.lang().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return l(this.year()%100,2)},YYYY:function(){return l(this.year(),4)},YYYYY:function(){return l(this.year(),5)},YYYYYY:function(){var t=this.year();return(t>=0?"+":"-")+l(Math.abs(t),6)},gg:function(){return l(this.weekYear()%100,2)},gggg:function(){return l(this.weekYear(),4)},ggggg:function(){return l(this.weekYear(),5)},GG:function(){return l(this.isoWeekYear()%100,2)},GGGG:function(){return l(this.isoWeekYear(),4)},GGGGG:function(){return l(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return g(this.milliseconds()/100)},SS:function(){return l(g(this.milliseconds()/10),2)},SSS:function(){return l(this.milliseconds(),3)},SSSS:function(){return l(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+l(g(t/60),2)+":"+l(g(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+l(g(t/60),2)+l(g(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Ge=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];We.length;)$=We.pop(),Pe[$+"o"]=i(Pe[$],$);for(;Fe.length;)$=Fe.pop(),Pe[$+$]=n(Pe[$],2);for(Pe.DDDD=n(Pe.DDD,3),r(s.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January February March April May June July August September October November December".split(" "),months:function(t){return this._months[t.month()]},_monthsShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=q.utc([2e3,e]),n="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=RegExp(n.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su Mo Tu We Th Fr Sa".split(" "),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=q([2e3,1]).day(e),n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=RegExp(n.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,i){var s=this._relativeTime[n];return"function"==typeof s?s(t,e,n,i):s.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return Q(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),q=function(n,i,s,o){var a;return"boolean"==typeof s&&(o=s,s=t),a={_isAMomentObject:!0},a._i=n,a._f=i,a._l=s,a._strict=o,a._isUTC=!1,a._pf=e(),L(a)},q.utc=function(n,i,s,o){var a;return"boolean"==typeof s&&(o=s,s=t),a={_isAMomentObject:!0,_useUTC:!0,_isUTC:!0},a._l=s,a._i=n,a._f=i,a._strict=o,a._pf=e(),L(a).utc()},q.unix=function(t){return q(1e3*t)},q.duration=function(t,e){var n,i=t,s=null;return q.isDuration(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(i={},e?i[e]=t:i.milliseconds=t):(s=oe.exec(t))?(n="-"===s[1]?-1:1,i={y:0,d:g(s[V])*n,h:g(s[X])*n,m:g(s[B])*n,s:g(s[K])*n,ms:g(s[te])*n}):(s=ae.exec(t))&&(n="-"===s[1]?-1:1,i=function(t){return t=t&&parseFloat(t.replace(",",".")),(isNaN(t)?0:t)*n},i={y:i(s[2]),M:i(s[3]),d:i(s[4]),h:i(s[5]),m:i(s[6]),s:i(s[7]),w:i(s[8])}),s=new a(i),q.isDuration(t)&&t.hasOwnProperty("_lang")&&(s._lang=t._lang),s},q.version="2.5.1",q.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",q.updateOffset=function(){},q.lang=function(t,e){if(!t)return q.fn._lang._abbr;if(e){var n=b(t);e.abbr=n,ee[n]||(ee[n]=new s),ee[n].set(e)}else null===e?(delete ee[t],t="en"):ee[t]||D(t);return(q.duration.fn._lang=q.fn._lang=D(t))._abbr},q.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),D(t)},q.isMoment=function(t){return t instanceof o||null!=t&&t.hasOwnProperty("_isAMomentObject")},q.isDuration=function(t){return t instanceof a},$=Ge.length-1;$>=0;--$)m(Ge[$]);for(q.normalizeUnits=function(t){return f(t)},q.invalid=function(t){var e=q.utc(0/0);return null!=t?r(e._pf,t):e._pf.userInvalidated=!0,e},q.parseZone=function(){return q.apply(null,arguments).parseZone()},r(q.fn=o.prototype,{clone:function(){return q(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=q(this).utc();return t.year()>0&&9999>=t.year()?T(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):T(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){return[this.year(),this.month(),this.date(),this.hours(),this.minutes(),this.seconds(),this.milliseconds()]},isValid:function(){return _(this)},isDSTShifted:function(){return this._a?this.isValid()&&h(this._a,(this._isUTC?q.utc(this._a):q(this._a)).toArray())>0:!1},parsingFlags:function(){return r({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(t){return t=T(this,t||q.defaultFormat),this.lang().postformat(t)},add:function(t,e){var n;return n="string"==typeof t?q.duration(+e,t):q.duration(t,e),d(this,n,1),this},subtract:function(t,e){var n;return n="string"==typeof t?q.duration(+e,t):q.duration(t,e),d(this,n,-1),this},diff:function(t,e,n){t=M(t,this);var i,s=6e4*(this.zone()-t.zone());return e=f(e),"year"===e||"month"===e?(i=432e5*(this.daysInMonth()+t.daysInMonth()),s=12*(this.year()-t.year())+(this.month()-t.month()),s+=(this-q(this).startOf("month")-(t-q(t).startOf("month")))/i,s-=6e4*(this.zone()-q(this).startOf("month").zone()-(t.zone()-q(t).startOf("month").zone()))/i,"year"===e&&(s/=12)):(i=this-t,s="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-s)/864e5:"week"===e?(i-s)/6048e5:i),n?s:u(s)},from:function(t,e){return q.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(q(),t)},calendar:function(){var t=M(q(),this).startOf("day"),t=this.diff(t,"days",!0),t=-6>t?"sameElse":-1>t?"lastWeek":0>t?"lastDay":1>t?"sameDay":2>t?"nextDay":7>t?"nextWeek":"sameElse";return this.format(this.lang().calendar(t,this))},isLeapYear:function(){return w(this.year())},isDST:function(){return this.zone()+q(t).startOf(e)},isBefore:function(t,e){return e=e!==void 0?e:"millisecond",+this.clone().startOf(e)<+q(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+M(t,this).startOf(e)},min:function(t){return t=q.apply(null,arguments),this>t?this:t},max:function(t){return t=q.apply(null,arguments),t>this?this:t},zone:function(t,e){e=null==e?!0:!1;var n=this._offset||0;return null==t?this._isUTC?n:this._d.getTimezoneOffset():("string"==typeof t&&(t=x(t)),16>Math.abs(t)&&(t*=60),this._offset=t,this._isUTC=!0,n!==t&&e&&d(this,q.duration(n-t,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?q(t).zone():0,0===(this.zone()-t)%60},daysInMonth:function(){return v(this.year(),this.month())},dayOfYear:function(t){var e=N((q(this).startOf("day")-q(this).startOf("year"))/864e5)+1;return null==t?e:this.add("d",t-e)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(t){var e=Q(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=Q(this,1,4).year;return null==t?e:this.add("y",t-e)},week:function(t){var e=this.lang().week(this);return null==t?e:this.add("d",7*(t-e))},isoWeek:function(t){var e=Q(this,1,4).week;return null==t?e:this.add("d",7*(t-e))},weekday:function(t){var e=(this.day()+7-this.lang()._week.dow)%7;return null==t?e:this.add("d",t-e)},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return k(this.year(),1,4)},weeksInYear:function(){var t=this._lang._week;return k(this.year(),t.dow,t.doy)},get:function(t){return t=f(t),this[t]()},set:function(t,e){return t=f(t),"function"==typeof this[t]&&this[t](e),this},lang:function(e){return e===t?this._lang:(this._lang=D(e),this)}}),$=0;Se.length>$;$++)E(Se[$].toLowerCase().replace(/s$/,""),Se[$]);E("year","FullYear"),q.fn.days=q.fn.day,q.fn.months=q.fn.month,q.fn.weeks=q.fn.week,q.fn.isoWeeks=q.fn.isoWeek,q.fn.toJSON=q.fn.toISOString,r(q.duration.fn=a.prototype,{_bubble:function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;i.milliseconds=t%1e3,t=u(t/1e3),i.seconds=t%60,t=u(t/60),i.minutes=t%60,t=u(t/60),i.hours=t%24,e+=u(t/24),i.days=e%30,n+=u(e/30),i.months=n%12,e=u(n/12),i.years=e},weeks:function(){return u(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*g(this._months/12)},humanize:function(t){var e,n=+this;e=!t;var i=this.lang(),s=N(Math.abs(n)/1e3),o=N(s/60),a=N(o/60),r=N(a/24),u=N(r/365),s=45>s&&["s",s]||1===o&&["m"]||45>o&&["mm",o]||1===a&&["h"]||22>a&&["hh",a]||1===r&&["d"]||25>=r&&["dd",r]||45>=r&&["M"]||345>r&&["MM",N(r/30)]||1===u&&["y"]||["yy",u];return s[2]=e,s[3]=n>0,s[4]=i,e=H.apply({},s),t&&(e=this.lang().pastFuture(n,e)),this.lang().postformat(e)},add:function(t,e){var n=q.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=q.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=f(t),this[t.toLowerCase()+"s"]()},as:function(t){return t=f(t),this["as"+t.charAt(0).toUpperCase()+t.slice(1)+"s"]()},lang:q.fn.lang,toIsoString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),i=Math.abs(this.hours()),s=Math.abs(this.minutes()),o=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(0>this.asSeconds()?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(i||s||o?"T":"")+(i?i+"H":"")+(s?s+"M":"")+(o?o+"S":""):"P0D"}});for($ in xe)xe.hasOwnProperty($)&&(R($,xe[$]),A($.toLowerCase()));return R("Weeks",6048e5),q.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},q.lang("en",{ordinal:function(t){var e=t%10,e=1===g(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+e}}),q}.call(this),a.moment=i,a});