/*! UIkit 2.3.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(t,e,n){var i=!1,s=e('
');s.on("click",".uk-datepicker-next, .uk-datepicker-previous, [data-date]",function(t){t.stopPropagation(),t.preventDefault();var n=e(this);n.is("[data-date]")?(i.element.val(moment(n.data("date")).format(i.options.format)).trigger("change"),s.hide(),i=!1):i.add("months",1*(n.hasClass("uk-datepicker-next")?1:-1))});var o=function(t,n){var s=this,a=e(t);a.data("datepicker")||(this.element=a,this.options=e.extend({},o.defaults,n),this.current=this.element.val()?moment(this.element.val(),this.options.format):moment(),this.element.on("click",function(){i!==s&&s.pick(this.value)}).on("change",function(){s.element.val()&&!moment(s.element.val(),s.options.format).isValid()&&s.element.val(moment().format(s.options.format))}),this.element.data("datepicker",this))};o.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+=""+t.weekdays[i]+" | ");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+=''+o.day.format("D")+" | "}n+="
"}return n+="",n+="
"}},e.extend(o.prototype,{pick:function(t){var n=this.element.offset(),o={top:n.top+this.element.outerHeight()+this.options.offsettop,left:n.left,right:""};this.current=t?moment(t,this.options.format):moment(),this.initdate=this.current.format("YYYY-MM-DD"),this.update(),"right"==e.UIkit.langdirection&&(o.right=window.innerWidth-(o.left+this.element.outerWidth()),o.left=""),s.css(o).show(),i=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);s.html(e)},getRows:function(t,e){var n=this.options,i=moment().format("YYYY-MM-DD"),s=[31,0===t%4&&0!==t%100||0===t%400?29:28,31,30,31,30,31,31,30,31,30,31][e],o=new Date(t,e,1).getDay(),a={month:e,year:t,weekdays:[],days:[]},r=[];a.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&&(o-=n.weekstart,0>o&&(o+=7));for(var u=s+o,l=u;l>7;)l-=7;u+=7-l;for(var d,h,c,f,p,m=0,g=0;u>m;m++)d=new Date(t,e,1+(m-o)),h=n.mindate&&n.mindate>d||n.maxdate&&d>n.maxdate,p=!(o>m||m>=s+o),d=moment(d),c=this.initdate==d.format("YYYY-MM-DD"),f=i==d.format("YYYY-MM-DD"),r.push({selected:c,today:f,disabled:h,day:d,inmonth:p}),7===++g&&(a.days.push(r),r=[],g=0);return a}}),n.datepicker=o,e(document).on("focus.datepicker.uikit","[data-uk-datepicker]",function(t){var i=e(this);i.data("datepicker")||(t.preventDefault(),new o(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);!i||n[0]==s[0]||n.data("datepicker")||n.parents(".uk-datepicker:first").length||(s.hide(),i=!1)}),e(function(){s.appendTo("body")})})(this,jQuery,jQuery.UIkit),window.moment||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 d(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){b(t),r(this,t)}function a(t){var e=g(t),n=e.year||0,i=e.month||0,s=e.week||0,o=e.day||0,a=e.hour||0,r=e.minute||0,u=e.second||0,l=e.millisecond||0;this._milliseconds=+l+1e3*u+6e4*r+36e5*a,this._days=+o+7*s,this._months=+i+12*n,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){var e,n={};for(e in t)t.hasOwnProperty(e)&&ge.hasOwnProperty(e)&&(n[e]=t[e]);return n}function l(t){return 0>t?Math.ceil(t):Math.floor(t)}function d(t,e,n){for(var i=""+Math.abs(t),s=t>=0;e>i.length;)i="0"+i;return(s?n?"+":"":"-")+i}function h(t,e,n,i){var s,o,a=e._milliseconds,r=e._days,u=e._months;a&&t._d.setTime(+t._d+a*n),(r||u)&&(s=t.minute(),o=t.hour()),r&&t.date(t.date()+r*n),u&&t.month(t.month()+u*n),a&&!i&&ie.updateOffset(t),(r||u)&&(t.minute(s),t.hour(o))}function c(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function p(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&&k(t[i])!==k(e[i]))&&a++;return a+o}function m(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Ne[t]||Ze[e]||e}return t}function g(t){var e,n,i={};for(n in t)t.hasOwnProperty(n)&&(e=m(n),e&&(i[e]=t[n]));return i}function v(e){var n,i;if(0===e.indexOf("week"))n=7,i="day";else{if(0!==e.indexOf("month"))return;n=12,i="month"}ie[e]=function(s,o){var a,r,u=ie.fn._lang[e],l=[];if("number"==typeof s&&(o=s,s=t),r=function(t){var e=ie().utc().set(i,t);return u.call(ie.fn._lang,e,s||"")},null!=o)return r(o);for(a=0;n>a;a++)l.push(r(a));return l}}function k(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function y(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function w(t){return _(t)?366:365}function _(t){return 0===t%4&&0!==t%100||0===t%400}function b(t){var e;t._a&&-2===t._pf.overflow&&(e=0>t._a[le]||t._a[le]>11?le:1>t._a[de]||t._a[de]>y(t._a[ue],t._a[le])?de:0>t._a[he]||t._a[he]>23?he:0>t._a[ce]||t._a[ce]>59?ce:0>t._a[fe]||t._a[fe]>59?fe:0>t._a[pe]||t._a[pe]>999?pe:-1,t._pf._overflowDayOfYear&&(ue>e||e>de)&&(e=de),t._pf.overflow=e)}function M(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 D(t){return t?t.toLowerCase().replace("_","-"):t}function Y(t,e){return e._isUTC?ie(t).zone(e._offset||0):ie(t).local()}function C(t,e){return e.abbr=t,me[t]||(me[t]=new s),me[t].set(e),me[t]}function T(t){delete me[t]}function x(t){var e,n,i,s,o=0,a=function(t){if(!me[t]&&ve)try{require("./lang/"+t)}catch(e){}return me[t]};if(!t)return ie.fn._lang;if(!c(t)){if(n=a(t))return n;t=[t]}for(;t.length>o;){for(s=D(t[o]).split("-"),e=s.length,i=D(t[o+1]),i=i?i.split("-"):null;e>0;){if(n=a(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&p(s,i,!0)>=e-1)break;e--}o++}return ie.fn._lang}function S(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,n,i=t.match(_e);for(e=0,n=i.length;n>e;e++)i[e]=$e[i[e]]?$e[i[e]]:S(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 O(t,e){return t.isValid()?(e=I(e,t.lang()),qe[e]||(qe[e]=U(e)),qe[e](t)):t.lang().invalidDate()}function I(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(be.lastIndex=0;i>=0&&be.test(t);)t=t.replace(be,n),be.lastIndex=0,i-=1;return t}function j(t,e){var n,i=e._strict;switch(t){case"DDDD":return We;case"YYYY":case"GGGG":case"gggg":return i?Fe:Ye;case"Y":case"G":case"g":return Ge;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?Pe:Ce;case"S":if(i)return Ie;case"SS":if(i)return je;case"SSS":if(i)return We;case"DDD":return De;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return xe;case"a":case"A":return x(e._l)._meridiemParse;case"X":return Oe;case"Z":case"ZZ":return Se;case"T":return Ue;case"SSSS":return Te;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?je:Me;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Me;default:return n=RegExp(R(L(t.replace("\\","")),"i"))}}function W(t){t=t||"";var e=t.match(Se)||[],n=e[e.length-1]||[],i=(n+"").match(Ae)||["-",0,0],s=+(60*i[1])+k(i[2]);return"+"===i[0]?-s:s}function F(t,e,n){var i,s=n._a;switch(t){case"M":case"MM":null!=e&&(s[le]=k(e)-1);break;case"MMM":case"MMMM":i=x(n._l).monthsParse(e),null!=i?s[le]=i:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(s[de]=k(e));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=k(e));break;case"YY":s[ue]=k(e)+(k(e)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":s[ue]=k(e);break;case"a":case"A":n._isPm=x(n._l).isPM(e);break;case"H":case"HH":case"h":case"hh":s[he]=k(e);break;case"m":case"mm":s[ce]=k(e);break;case"s":case"ss":s[fe]=k(e);break;case"S":case"SS":case"SSS":case"SSSS":s[pe]=k(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=W(e);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":t=t.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=e)}}function P(t){var e,n,i,s,o,a,r,u,l,d,h=[];if(!t._d){for(i=H(t),t._w&&null==t._a[de]&&null==t._a[le]&&(o=function(e){var n=parseInt(e,10);return e?3>e.length?n>68?1900+n:2e3+n:n:null==t._a[ue]?ie().weekYear():t._a[ue]},a=t._w,null!=a.GG||null!=a.W||null!=a.E?r=X(o(a.GG),a.W||1,a.E,4,1):(u=x(t._l),l=null!=a.d?q(a.d,u):null!=a.e?parseInt(a.e,10)+u._week.dow:0,d=parseInt(a.w,10)||1,null!=a.d&&u._week.dow>l&&d++,r=X(o(a.gg),d,l,u._week.doy,u._week.dow)),t._a[ue]=r.year,t._dayOfYear=r.dayOfYear),t._dayOfYear&&(s=null==t._a[ue]?i[ue]:t._a[ue],t._dayOfYear>w(s)&&(t._pf._overflowDayOfYear=!0),n=Z(s,0,t._dayOfYear),t._a[le]=n.getUTCMonth(),t._a[de]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=h[e]=i[e];for(;7>e;e++)t._a[e]=h[e]=null==t._a[e]?2===e?1:0:t._a[e];h[he]+=k((t._tzm||0)/60),h[ce]+=k((t._tzm||0)%60),t._d=(t._useUTC?Z:N).apply(null,h)}}function G(t){var e;t._d||(e=g(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],P(t))}function H(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function z(t){t._a=[],t._pf.empty=!0;var e,n,i,s,o,a=x(t._l),r=""+t._i,u=r.length,l=0;for(i=I(t._f,a).match(_e)||[],e=0;i.length>e;e++)s=i[e],n=(r.match(j(s,t))||[])[0],n&&(o=r.substr(0,r.indexOf(n)),o.length>0&&t._pf.unusedInput.push(o),r=r.slice(r.indexOf(n)+n.length),l+=n.length),$e[s]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(s),F(s,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(s);t._pf.charsLeftOver=u-l,r.length>0&&t._pf.unusedInput.push(r),t._isPm&&12>t._a[he]&&(t._a[he]+=12),t._isPm===!1&&12===t._a[he]&&(t._a[he]=0),P(t),b(t)}function L(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,s){return e||n||i||s})}function R(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function A(t){var n,i,s,o,a;if(0===t._f.length)return t._pf.invalidFormat=!0,t._d=new Date(0/0),void 0;for(o=0;t._f.length>o;o++)a=0,n=r({},t),n._pf=e(),n._f=t._f[o],z(n),M(n)&&(a+=n._pf.charsLeftOver,a+=10*n._pf.unusedTokens.length,n._pf.score=a,(null==s||s>a)&&(s=a,i=n));r(t,i||n)}function E(t){var e,n,i=t._i,s=He.exec(i);if(s){for(t._pf.iso=!0,e=0,n=Le.length;n>e;e++)if(Le[e][1].exec(i)){t._f=Le[e][0]+(s[6]||" ");break}for(e=0,n=Re.length;n>e;e++)if(Re[e][1].exec(i)){t._f+=Re[e][0];break}i.match(Se)&&(t._f+="Z"),z(t)}else t._d=new Date(i)}function Q(e){var n=e._i,i=ke.exec(n);n===t?e._d=new Date:i?e._d=new Date(+i[1]):"string"==typeof n?E(e):c(n)?(e._a=n.slice(0),P(e)):f(n)?e._d=new Date(+n):"object"==typeof n?G(e):e._d=new Date(n)}function N(t,e,n,i,s,o,a){var r=new Date(t,e,n,i,s,o,a);return 1970>t&&r.setFullYear(t),r}function Z(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function q(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 V(t,e,n,i,s){return s.relativeTime(e||1,!!n,t,i)}function J(t,e,n){var i=re(Math.abs(t)/1e3),s=re(i/60),o=re(s/60),a=re(o/24),r=re(a/365),u=45>i&&["s",i]||1===s&&["m"]||45>s&&["mm",s]||1===o&&["h"]||22>o&&["hh",o]||1===a&&["d"]||25>=a&&["dd",a]||45>=a&&["M"]||345>a&&["MM",re(a/30)]||1===r&&["y"]||["yy",r];return u[2]=e,u[3]=t>0,u[4]=n,V.apply({},u)}function $(t,e,n){var i,s=n-e,o=n-t.day();return o>s&&(o-=7),s-7>o&&(o+=7),i=ie(t).add("d",o),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function X(t,e,n,i,s){var o,a,r=Z(t,0,1).getUTCDay();return n=null!=n?n:s,o=s-r+(r>i?7:0)-(s>r?7:0),a=7*(e-1)+(n-s)+o+1,{year:a>0?t:t-1,dayOfYear:a>0?a:w(t-1)+a}}function B(t){var e=t._i,n=t._f;return null===e?ie.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=x().preparse(e)),ie.isMoment(e)?(t=u(e),t._d=new Date(+e._d)):n?c(n)?A(t):z(t):Q(t),new o(t))}function K(t,e){ie.fn[t]=ie.fn[t+"s"]=function(t){var n=this._isUTC?"UTC":"";return null!=t?(this._d["set"+n+e](t),ie.updateOffset(this),this):this._d["get"+n+e]()}}function te(t){ie.duration.fn[t]=function(){return this._data[t]}}function ee(t,e){ie.duration.fn["as"+t]=function(){return+this/e}}function ne(t){var e=!1,n=ie;"undefined"==typeof ender&&(t?(ae.moment=function(){return!e&&console&&console.warn&&(e=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),n.apply(null,arguments)},r(ae.moment,n)):ae.moment=ie)}for(var ie,se,oe="2.5.1",ae=this,re=Math.round,ue=0,le=1,de=2,he=3,ce=4,fe=5,pe=6,me={},ge={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_isUTC:null,_offset:null,_pf:null,_lang:null},ve="undefined"!=typeof module&&module.exports&&"undefined"!=typeof require,ke=/^\/?Date\((\-?\d+)/i,ye=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,we=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,_e=/(\[[^\[]*\])|(\\)?(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,be=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Me=/\d\d?/,De=/\d{1,3}/,Ye=/\d{1,4}/,Ce=/[+\-]?\d{1,6}/,Te=/\d+/,xe=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Se=/Z|[\+\-]\d\d:?\d\d/gi,Ue=/T/i,Oe=/[\+\-]?\d+(\.\d{1,3})?/,Ie=/\d/,je=/\d\d/,We=/\d{3}/,Fe=/\d{4}/,Pe=/[+-]?\d{6}/,Ge=/[+-]?\d+/,He=/^\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)?)?$/,ze="YYYY-MM-DDTHH:mm:ssZ",Le=[["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}/]],Re=[["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/]],Ae=/([\+\-]|\d\d)/gi,Ee="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),Qe={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Ne={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"},Ze={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},qe={},Ve="DDD w W M D d".split(" "),Je="M D H h m s w W".split(" "),$e={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 d(this.year()%100,2)},YYYY:function(){return d(this.year(),4)},YYYYY:function(){return d(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+d(Math.abs(t),6)},gg:function(){return d(this.weekYear()%100,2)},gggg:function(){return d(this.weekYear(),4)},ggggg:function(){return d(this.weekYear(),5)},GG:function(){return d(this.isoWeekYear()%100,2)},GGGG:function(){return d(this.isoWeekYear(),4)},GGGGG:function(){return d(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 k(this.milliseconds()/100)},SS:function(){return d(k(this.milliseconds()/10),2)},SSS:function(){return d(this.milliseconds(),3)},SSSS:function(){return d(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+d(k(t/60),2)+":"+d(k(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+d(k(t/60),2)+d(k(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Xe=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Ve.length;)se=Ve.pop(),$e[se+"o"]=i($e[se],se);for(;Je.length;)se=Je.pop(),$e[se+se]=n($e[se],2);for($e.DDDD=n($e.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,i;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=ie.utc([2e3,e]),i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=RegExp(i.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,i;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=ie([2e3,1]).day(e),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=RegExp(i.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 $(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),ie=function(n,i,s,o){var a;return"boolean"==typeof s&&(o=s,s=t),a={},a._isAMomentObject=!0,a._i=n,a._f=i,a._l=s,a._strict=o,a._isUTC=!1,a._pf=e(),B(a)},ie.utc=function(n,i,s,o){var a;return"boolean"==typeof s&&(o=s,s=t),a={},a._isAMomentObject=!0,a._useUTC=!0,a._isUTC=!0,a._l=s,a._i=n,a._f=i,a._strict=o,a._pf=e(),B(a).utc()},ie.unix=function(t){return ie(1e3*t)},ie.duration=function(t,e){var n,i,s,o=t,r=null;return ie.isDuration(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(r=ye.exec(t))?(n="-"===r[1]?-1:1,o={y:0,d:k(r[de])*n,h:k(r[he])*n,m:k(r[ce])*n,s:k(r[fe])*n,ms:k(r[pe])*n}):(r=we.exec(t))&&(n="-"===r[1]?-1:1,s=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},o={y:s(r[2]),M:s(r[3]),d:s(r[4]),h:s(r[5]),m:s(r[6]),s:s(r[7]),w:s(r[8])}),i=new a(o),ie.isDuration(t)&&t.hasOwnProperty("_lang")&&(i._lang=t._lang),i},ie.version=oe,ie.defaultFormat=ze,ie.updateOffset=function(){},ie.lang=function(t,e){var n;return t?(e?C(D(t),e):null===e?(T(t),t="en"):me[t]||x(t),n=ie.duration.fn._lang=ie.fn._lang=x(t),n._abbr):ie.fn._lang._abbr},ie.langData=function(t){return t&&t._lang&&t._lang._abbr&&(t=t._lang._abbr),x(t)},ie.isMoment=function(t){return t instanceof o||null!=t&&t.hasOwnProperty("_isAMomentObject")},ie.isDuration=function(t){return t instanceof a},se=Xe.length-1;se>=0;--se)v(Xe[se]);for(ie.normalizeUnits=function(t){return m(t)},ie.invalid=function(t){var e=ie.utc(0/0);return null!=t?r(e._pf,t):e._pf.userInvalidated=!0,e},ie.parseZone=function(t){return ie(t).parseZone()},r(ie.fn=o.prototype,{clone:function(){return ie(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=ie(this).utc();return t.year()>0&&9999>=t.year()?O(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):O(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return M(this)},isDSTShifted:function(){return this._a?this.isValid()&&p(this._a,(this._isUTC?ie.utc(this._a):ie(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){var e=O(this,t||ie.defaultFormat);return this.lang().postformat(e)},add:function(t,e){var n;return n="string"==typeof t?ie.duration(+e,t):ie.duration(t,e),h(this,n,1),this},subtract:function(t,e){var n;return n="string"==typeof t?ie.duration(+e,t):ie.duration(t,e),h(this,n,-1),this},diff:function(t,e,n){var i,s,o=Y(t,this),a=6e4*(this.zone()-o.zone());return e=m(e),"year"===e||"month"===e?(i=432e5*(this.daysInMonth()+o.daysInMonth()),s=12*(this.year()-o.year())+(this.month()-o.month()),s+=(this-ie(this).startOf("month")-(o-ie(o).startOf("month")))/i,s-=6e4*(this.zone()-ie(this).startOf("month").zone()-(o.zone()-ie(o).startOf("month").zone()))/i,"year"===e&&(s/=12)):(i=this-o,s="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-a)/864e5:"week"===e?(i-a)/6048e5:i),n?s:l(s)},from:function(t,e){return ie.duration(this.diff(t)).lang(this.lang()._abbr).humanize(!e)},fromNow:function(t){return this.from(ie(),t)},calendar:function(){var t=Y(ie(),this).startOf("day"),e=this.diff(t,"days",!0),n=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(this.lang().calendar(n,this))},isLeapYear:function(){return _(this.year())},isDST:function(){return this.zone()+ie(t).startOf(e)},isBefore:function(t,e){return e=e!==void 0?e:"millisecond",+this.clone().startOf(e)<+ie(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+Y(t,this).startOf(e)},min:function(t){return t=ie.apply(null,arguments),this>t?this:t},max:function(t){return t=ie.apply(null,arguments),t>this?this:t},zone:function(t){var e=this._offset||0;return null==t?this._isUTC?e:this._d.getTimezoneOffset():("string"==typeof t&&(t=W(t)),16>Math.abs(t)&&(t=60*t),this._offset=t,this._isUTC=!0,e!==t&&h(this,ie.duration(e-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?ie(t).zone():0,0===(this.zone()-t)%60},daysInMonth:function(){return y(this.year(),this.month())},dayOfYear:function(t){var e=re((ie(this).startOf("day")-ie(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=$(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==t?e:this.add("y",t-e)},isoWeekYear:function(t){var e=$(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=$(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)},get:function(t){return t=m(t),this[t]()},set:function(t,e){return t=m(t),"function"==typeof this[t]&&this[t](e),this},lang:function(e){return e===t?this._lang:(this._lang=x(e),this)}}),se=0;Ee.length>se;se++)K(Ee[se].toLowerCase().replace(/s$/,""),Ee[se]);K("year","FullYear"),ie.fn.days=ie.fn.day,ie.fn.months=ie.fn.month,ie.fn.weeks=ie.fn.week,ie.fn.isoWeeks=ie.fn.isoWeek,ie.fn.toJSON=ie.fn.toISOString,r(ie.duration.fn=a.prototype,{_bubble:function(){var t,e,n,i,s=this._milliseconds,o=this._days,a=this._months,r=this._data;r.milliseconds=s%1e3,t=l(s/1e3),r.seconds=t%60,e=l(t/60),r.minutes=e%60,n=l(e/60),r.hours=n%24,o+=l(n/24),r.days=o%30,a+=l(o/30),r.months=a%12,i=l(a/12),r.years=i},weeks:function(){return l(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+2592e6*(this._months%12)+31536e6*k(this._months/12)},humanize:function(t){var e=+this,n=J(e,!t,this.lang());return t&&(n=this.lang().pastFuture(e,n)),this.lang().postformat(n)},add:function(t,e){var n=ie.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=ie.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=m(t),this[t.toLowerCase()+"s"]()},as:function(t){return t=m(t),this["as"+t.charAt(0).toUpperCase()+t.slice(1)+"s"]()},lang:ie.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(se in Qe)Qe.hasOwnProperty(se)&&(ee(se,Qe[se]),te(se.toLowerCase()));ee("Weeks",6048e5),ie.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},ie.lang("en",{ordinal:function(t){var e=t%10,n=1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),ve?(module.exports=ie,ne(!0)):"function"==typeof define&&define.amd?define("moment",function(e,n,i){return i.config&&i.config()&&i.config().noGlobal!==!0&&ne(i.config().noGlobal===t),ie}):ne()}.call(this);