0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-09 08:38:15 -05:00
penpot/frontend/vendor/datefns/datefns.min.js
2017-03-06 18:38:17 +01:00

2 lines
52 KiB
JavaScript

(function(e){var n;if(typeof window!=="undefined"){n=window}else if(typeof global!=="undefined"){n=global}else if(typeof self!=="undefined"){n=self}else{n=this}n.dateFns=e()})(function(){var e,n,r;return function e(n,r,s){function t(i,o){if(!r[i]){if(!n[i]){var d=typeof require=="function"&&require;if(!o&&d)return d(i,!0);if(a)return a(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var _=r[i]={exports:{}};n[i][0].call(_.exports,function(e){var r=n[i][1][e];return t(r?r:e)},_,_.exports,e,n,r,s)}return r[i].exports}var a=typeof require=="function"&&require;for(var i=0;i<s.length;i++)t(s[i]);return t}({1:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setDate(r.getDate()+t);return r}n.exports=t},{"../parse/index.js":123}],2:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setHours(r.getHours()+t);return r}n.exports=t},{"../parse/index.js":123}],3:[function(e,n,r){var s=e("../get_iso_year/index.js");var t=e("../set_iso_year/index.js");function a(e,n){var r=Number(n);return t(e,s(e)+r)}n.exports=a},{"../get_iso_year/index.js":60,"../set_iso_year/index.js":130}],4:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setMilliseconds(r.getMilliseconds()+t);return r}n.exports=t},{"../parse/index.js":123}],5:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setMinutes(r.getMinutes()+t);return r}n.exports=t},{"../parse/index.js":123}],6:[function(e,n,r){var s=e("../parse/index.js");var t=e("../get_days_in_month/index.js");function a(e,n){var r=s(e);var a=Number(n);var i=r.getMonth()+a;var o=new Date(0);o.setFullYear(r.getFullYear(),i,1);o.setHours(0,0,0,0);var d=t(o);r.setMonth(i,Math.min(d,r.getDate()));return r}n.exports=a},{"../get_days_in_month/index.js":54,"../parse/index.js":123}],7:[function(e,n,r){var s=e("../add_months/index.js");function t(e,n){var r=Number(n);var t=r*3;return s(e,t)}n.exports=t},{"../add_months/index.js":6}],8:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setSeconds(r.getSeconds()+t);return r}n.exports=t},{"../parse/index.js":123}],9:[function(e,n,r){var s=e("../add_days/index.js");function t(e,n){var r=Number(n);var t=r*7;return s(e,t)}n.exports=t},{"../add_days/index.js":1}],10:[function(e,n,r){var s=e("../add_months/index.js");function t(e,n){var r=Number(n);return s(e,r*12)}n.exports=t},{"../add_months/index.js":6}],11:[function(e,n,r){var s=e("../parse/index.js");function t(e,n,r,t){var a=s(e).getTime();var i=s(n).getTime();var o=s(r).getTime();var d=s(t).getTime();if(a>i||o>d){throw new Error("The start of the range cannot be after the end of the range")}return a<d&&o<i}n.exports=t},{"../parse/index.js":123}],12:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){if(!(n instanceof Array)){throw new TypeError(toString.call(n)+" is not an instance of Array")}var r=s(e);var t=r.getTime();var a;var i;n.forEach(function(e,n){var r=s(e);var o=Math.abs(t-r.getTime());if(a===undefined||o<i){a=n;i=o}});return a}n.exports=t},{"../parse/index.js":123}],13:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){if(!(n instanceof Array)){throw new TypeError(toString.call(n)+" is not an instance of Array")}var r=s(e);var t=r.getTime();var a;var i;n.forEach(function(e){var n=s(e);var r=Math.abs(t-n.getTime());if(a===undefined||r<i){a=n;i=r}});return a}n.exports=t},{"../parse/index.js":123}],14:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=r.getTime();var a=s(n);var i=a.getTime();if(t<i){return-1}else if(t>i){return 1}else{return 0}}n.exports=t},{"../parse/index.js":123}],15:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=r.getTime();var a=s(n);var i=a.getTime();if(t>i){return-1}else if(t<i){return 1}else{return 0}}n.exports=t},{"../parse/index.js":123}],16:[function(e,n,r){var s=e("../start_of_day/index.js");var t=6e4;var a=864e5;function i(e,n){var r=s(e);var i=s(n);var o=r.getTime()-r.getTimezoneOffset()*t;var d=i.getTime()-i.getTimezoneOffset()*t;return Math.round((o-d)/a)}n.exports=i},{"../start_of_day/index.js":137}],17:[function(e,n,r){var s=e("../start_of_iso_week/index.js");var t=6e4;var a=6048e5;function i(e,n){var r=s(e);var i=s(n);var o=r.getTime()-r.getTimezoneOffset()*t;var d=i.getTime()-i.getTimezoneOffset()*t;return Math.round((o-d)/a)}n.exports=i},{"../start_of_iso_week/index.js":139}],18:[function(e,n,r){var s=e("../get_iso_year/index.js");function t(e,n){return s(e)-s(n)}n.exports=t},{"../get_iso_year/index.js":60}],19:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);var a=r.getFullYear()-t.getFullYear();var i=r.getMonth()-t.getMonth();return a*12+i}n.exports=t},{"../parse/index.js":123}],20:[function(e,n,r){var s=e("../get_quarter/index.js");var t=e("../parse/index.js");function a(e,n){var r=t(e);var a=t(n);var i=r.getFullYear()-a.getFullYear();var o=s(r)-s(a);return i*4+o}n.exports=a},{"../get_quarter/index.js":65,"../parse/index.js":123}],21:[function(e,n,r){var s=e("../start_of_week/index.js");var t=6e4;var a=6048e5;function i(e,n,r){var i=s(e,r);var o=s(n,r);var d=i.getTime()-i.getTimezoneOffset()*t;var u=o.getTime()-o.getTimezoneOffset()*t;return Math.round((d-u)/a)}n.exports=i},{"../start_of_week/index.js":147}],22:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getFullYear()-t.getFullYear()}n.exports=t},{"../parse/index.js":123}],23:[function(e,n,r){var s=e("../parse/index.js");var t=e("../difference_in_calendar_days/index.js");var a=e("../compare_asc/index.js");function i(e,n){var r=s(e);var i=s(n);var o=a(r,i);var d=Math.abs(t(r,i));r.setDate(r.getDate()-o*d);var u=a(r,i)===-o;return o*(d-u)}n.exports=i},{"../compare_asc/index.js":14,"../difference_in_calendar_days/index.js":16,"../parse/index.js":123}],24:[function(e,n,r){var s=e("../difference_in_milliseconds/index.js");var t=36e5;function a(e,n){var r=s(e,n)/t;return r>0?Math.floor(r):Math.ceil(r)}n.exports=a},{"../difference_in_milliseconds/index.js":26}],25:[function(e,n,r){var s=e("../parse/index.js");var t=e("../difference_in_calendar_iso_years/index.js");var a=e("../compare_asc/index.js");var i=e("../sub_iso_years/index.js");function o(e,n){var r=s(e);var o=s(n);var d=a(r,o);var u=Math.abs(t(r,o));r=i(r,d*u);var _=a(r,o)===-d;return d*(u-_)}n.exports=o},{"../compare_asc/index.js":14,"../difference_in_calendar_iso_years/index.js":18,"../parse/index.js":123,"../sub_iso_years/index.js":152}],26:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()-t.getTime()}n.exports=t},{"../parse/index.js":123}],27:[function(e,n,r){var s=e("../difference_in_milliseconds/index.js");var t=6e4;function a(e,n){var r=s(e,n)/t;return r>0?Math.floor(r):Math.ceil(r)}n.exports=a},{"../difference_in_milliseconds/index.js":26}],28:[function(e,n,r){var s=e("../parse/index.js");var t=e("../difference_in_calendar_months/index.js");var a=e("../compare_asc/index.js");function i(e,n){var r=s(e);var i=s(n);var o=a(r,i);var d=Math.abs(t(r,i));r.setMonth(r.getMonth()-o*d);var u=a(r,i)===-o;return o*(d-u)}n.exports=i},{"../compare_asc/index.js":14,"../difference_in_calendar_months/index.js":19,"../parse/index.js":123}],29:[function(e,n,r){var s=e("../difference_in_months/index.js");function t(e,n){var r=s(e,n)/3;return r>0?Math.floor(r):Math.ceil(r)}n.exports=t},{"../difference_in_months/index.js":28}],30:[function(e,n,r){var s=e("../difference_in_milliseconds/index.js");function t(e,n){var r=s(e,n)/1e3;return r>0?Math.floor(r):Math.ceil(r)}n.exports=t},{"../difference_in_milliseconds/index.js":26}],31:[function(e,n,r){var s=e("../difference_in_days/index.js");function t(e,n){var r=s(e,n)/7;return r>0?Math.floor(r):Math.ceil(r)}n.exports=t},{"../difference_in_days/index.js":23}],32:[function(e,n,r){var s=e("../parse/index.js");var t=e("../difference_in_calendar_years/index.js");var a=e("../compare_asc/index.js");function i(e,n){var r=s(e);var i=s(n);var o=a(r,i);var d=Math.abs(t(r,i));r.setFullYear(r.getFullYear()-o*d);var u=a(r,i)===-o;return o*(d-u)}n.exports=i},{"../compare_asc/index.js":14,"../difference_in_calendar_years/index.js":22,"../parse/index.js":123}],33:[function(e,n,r){var s=e("../compare_desc/index.js");var t=e("../parse/index.js");var a=e("../difference_in_seconds/index.js");var i=e("../difference_in_months/index.js");var o=e("../locale/en/index.js");var d=1440;var u=2520;var _=43200;var f=86400;function x(e,n,r){var x=r||{};var c=s(e,n);var j=x.locale;var v=o.distanceInWords.localize;if(j&&j.distanceInWords&&j.distanceInWords.localize){v=j.distanceInWords.localize}var l={addSuffix:Boolean(x.addSuffix),comparison:c};var p,m;if(c>0){p=t(e);m=t(n)}else{p=t(n);m=t(e)}var g=a(m,p);var y=m.getTimezoneOffset()-p.getTimezoneOffset();var h=Math.round(g/60)-y;var w;if(h<2){if(x.includeSeconds){if(g<5){return v("lessThanXSeconds",5,l)}else if(g<10){return v("lessThanXSeconds",10,l)}else if(g<20){return v("lessThanXSeconds",20,l)}else if(g<40){return v("halfAMinute",null,l)}else if(g<60){return v("lessThanXMinutes",1,l)}else{return v("xMinutes",1,l)}}else{if(h===0){return v("lessThanXMinutes",1,l)}else{return v("xMinutes",h,l)}}}else if(h<45){return v("xMinutes",h,l)}else if(h<90){return v("aboutXHours",1,l)}else if(h<d){var D=Math.round(h/60);return v("aboutXHours",D,l)}else if(h<u){return v("xDays",1,l)}else if(h<_){var M=Math.round(h/d);return v("xDays",M,l)}else if(h<f){w=Math.round(h/_);return v("aboutXMonths",w,l)}w=i(m,p);if(w<12){var T=Math.round(h/_);return v("xMonths",T,l)}else{var b=w%12;var Y=Math.floor(w/12);if(b<3){return v("aboutXYears",Y,l)}else if(b<9){return v("overXYears",Y,l)}else{return v("almostXYears",Y+1,l)}}}n.exports=x},{"../compare_desc/index.js":15,"../difference_in_months/index.js":28,"../difference_in_seconds/index.js":30,"../locale/en/index.js":120,"../parse/index.js":123}],34:[function(e,n,r){var s=e("../compare_desc/index.js");var t=e("../parse/index.js");var a=e("../difference_in_seconds/index.js");var i=e("../locale/en/index.js");var o=1440;var d=43200;var u=525600;function _(e,n,r){var _=r||{};var f=s(e,n);var x=_.locale;var c=i.distanceInWords.localize;if(x&&x.distanceInWords&&x.distanceInWords.localize){c=x.distanceInWords.localize}var j={addSuffix:Boolean(_.addSuffix),comparison:f};var v,l;if(f>0){v=t(e);l=t(n)}else{v=t(n);l=t(e)}var p;var m=Math[_.partialMethod?String(_.partialMethod):"floor"];var g=a(l,v);var y=l.getTimezoneOffset()-v.getTimezoneOffset();var h=m(g/60)-y;var w,D,M,T;if(_.unit){p=String(_.unit)}else{if(h<1){p="s"}else if(h<60){p="m"}else if(h<o){p="h"}else if(h<d){p="d"}else if(h<u){p="M"}else{p="Y"}}if(p==="s"){return c("xSeconds",g,j)}else if(p==="m"){return c("xMinutes",h,j)}else if(p==="h"){w=m(h/60);return c("xHours",w,j)}else if(p==="d"){D=m(h/o);return c("xDays",D,j)}else if(p==="M"){M=m(h/d);return c("xMonths",M,j)}else if(p==="Y"){T=m(h/u);return c("xYears",T,j)}throw new Error("Unknown unit: "+p)}n.exports=_},{"../compare_desc/index.js":15,"../difference_in_seconds/index.js":30,"../locale/en/index.js":120,"../parse/index.js":123}],35:[function(e,n,r){var s=e("../distance_in_words/index.js");function t(e,n){return s(Date.now(),e,n)}n.exports=t},{"../distance_in_words/index.js":33}],36:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);var a=t.getTime();if(r.getTime()>a){throw new Error("The first date cannot be after the second date")}var i=[];var o=r;o.setHours(0,0,0,0);while(o.getTime()<=a){i.push(s(o));o.setDate(o.getDate()+1)}return i}n.exports=t},{"../parse/index.js":123}],37:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setHours(23,59,59,999);return n}n.exports=t},{"../parse/index.js":123}],38:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setMinutes(59,59,999);return n}n.exports=t},{"../parse/index.js":123}],39:[function(e,n,r){var s=e("../end_of_week/index.js");function t(e){return s(e,{weekStartsOn:1})}n.exports=t},{"../end_of_week/index.js":47}],40:[function(e,n,r){var s=e("../get_iso_year/index.js");var t=e("../start_of_iso_week/index.js");function a(e){var n=s(e);var r=new Date(0);r.setFullYear(n+1,0,4);r.setHours(0,0,0,0);var a=t(r);a.setMilliseconds(a.getMilliseconds()-1);return a}n.exports=a},{"../get_iso_year/index.js":60,"../start_of_iso_week/index.js":139}],41:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setSeconds(59,999);return n}n.exports=t},{"../parse/index.js":123}],42:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getMonth();n.setFullYear(n.getFullYear(),r+1,0);n.setHours(23,59,59,999);return n}n.exports=t},{"../parse/index.js":123}],43:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getMonth();var t=r-r%3+3;n.setMonth(t,0);n.setHours(23,59,59,999);return n}n.exports=t},{"../parse/index.js":123}],44:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setMilliseconds(999);return n}n.exports=t},{"../parse/index.js":123}],45:[function(e,n,r){var s=e("../end_of_day/index.js");function t(){return s(new Date)}n.exports=t},{"../end_of_day/index.js":37}],46:[function(e,n,r){function s(){var e=new Date;var n=e.getFullYear();var r=e.getMonth();var s=e.getDate();var t=new Date(0);t.setFullYear(n,r,s+1);t.setHours(23,59,59,999);return t}n.exports=s},{}],47:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=n?Number(n.weekStartsOn)||0:0;var t=s(e);var a=t.getDay();var i=(a<r?-7:0)+6-(a-r);t.setDate(t.getDate()+i);t.setHours(23,59,59,999);return t}n.exports=t},{"../parse/index.js":123}],48:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getFullYear();n.setFullYear(r+1,0,0);n.setHours(23,59,59,999);return n}n.exports=t},{"../parse/index.js":123}],49:[function(e,n,r){function s(){var e=new Date;var n=e.getFullYear();var r=e.getMonth();var s=e.getDate();var t=new Date(0);t.setFullYear(n,r,s-1);t.setHours(23,59,59,999);return t}n.exports=s},{}],50:[function(e,n,r){var s=e("../get_day_of_year/index.js");var t=e("../get_iso_week/index.js");var a=e("../get_iso_year/index.js");var i=e("../parse/index.js");var o=e("../is_valid/index.js");var d=e("../locale/en/index.js");function u(e,n,r){var s=n?String(n):"YYYY-MM-DDTHH:mm:ss.SSSZ";var t=r||{};var a=t.locale;var u=d.format.formatters;var _=d.format.formattingTokensRegExp;if(a&&a.format&&a.format.formatters){u=a.format.formatters;if(a.format.formattingTokensRegExp){_=a.format.formattingTokensRegExp}}var x=i(e);if(!o(x)){return"Invalid Date"}var c=f(s,u,_);return c(x)}var _={M:function(e){return e.getMonth()+1},MM:function(e){return j(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return j(e.getDate(),2)},DDD:function(e){return s(e)},DDDD:function(e){return j(s(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return t(e)},WW:function(e){return j(t(e),2)},YY:function(e){return j(e.getFullYear(),4).substr(2)},YYYY:function(e){return j(e.getFullYear(),4)},GG:function(e){return String(a(e)).substr(2)},GGGG:function(e){return a(e)},H:function(e){return e.getHours()},HH:function(e){return j(e.getHours(),2)},h:function(e){var n=e.getHours();if(n===0){return 12}else if(n>12){return n%12}else{return n}},hh:function(e){return j(_["h"](e),2)},m:function(e){return e.getMinutes()},mm:function(e){return j(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return j(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return j(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return j(e.getMilliseconds(),3)},Z:function(e){return c(e.getTimezoneOffset(),":")},ZZ:function(e){return c(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function f(e,n,r){var s=e.match(r);var t=s.length;var a;var i;for(a=0;a<t;a++){i=n[s[a]]||_[s[a]];if(i){s[a]=i}else{s[a]=x(s[a])}}return function(e){var n="";for(var r=0;r<t;r++){if(s[r]instanceof Function){n+=s[r](e,_)}else{n+=s[r]}}return n}}function x(e){if(e.match(/\[[\s\S]/)){return e.replace(/^\[|]$/g,"")}return e.replace(/\\/g,"")}function c(e,n){n=n||"";var r=e>0?"-":"+";var s=Math.abs(e);var t=Math.floor(s/60);var a=s%60;return r+j(t,2)+n+j(a,2)}function j(e,n){var r=Math.abs(e).toString();while(r.length<n){r="0"+r}return r}n.exports=u},{"../get_day_of_year/index.js":53,"../get_iso_week/index.js":58,"../get_iso_year/index.js":60,"../is_valid/index.js":106,"../locale/en/index.js":120,"../parse/index.js":123}],51:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getDate();return r}n.exports=t},{"../parse/index.js":123}],52:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getDay();return r}n.exports=t},{"../parse/index.js":123}],53:[function(e,n,r){var s=e("../parse/index.js");var t=e("../start_of_year/index.js");var a=e("../difference_in_calendar_days/index.js");function i(e){var n=s(e);var r=a(n,t(n));var i=r+1;return i}n.exports=i},{"../difference_in_calendar_days/index.js":16,"../parse/index.js":123,"../start_of_year/index.js":148}],54:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getFullYear();var t=n.getMonth();var a=new Date(0);a.setFullYear(r,t+1,0);a.setHours(0,0,0,0);return a.getDate()}n.exports=t},{"../parse/index.js":123}],55:[function(e,n,r){var s=e("../is_leap_year/index.js");function t(e){return s(e)?366:365}n.exports=t},{"../is_leap_year/index.js":78}],56:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getHours();return r}n.exports=t},{"../parse/index.js":123}],57:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getDay();if(r===0){r=7}return r}n.exports=t},{"../parse/index.js":123}],58:[function(e,n,r){var s=e("../parse/index.js");var t=e("../start_of_iso_week/index.js");var a=e("../start_of_iso_year/index.js");var i=6048e5;function o(e){var n=s(e);var r=t(n).getTime()-a(n).getTime();return Math.round(r/i)+1}n.exports=o},{"../parse/index.js":123,"../start_of_iso_week/index.js":139,"../start_of_iso_year/index.js":140}],59:[function(e,n,r){var s=e("../start_of_iso_year/index.js");var t=e("../add_weeks/index.js");var a=6048e5;function i(e){var n=s(e);var r=s(t(n,60));var i=r.valueOf()-n.valueOf();return Math.round(i/a)}n.exports=i},{"../add_weeks/index.js":9,"../start_of_iso_year/index.js":140}],60:[function(e,n,r){var s=e("../parse/index.js");var t=e("../start_of_iso_week/index.js");function a(e){var n=s(e);var r=n.getFullYear();var a=new Date(0);a.setFullYear(r+1,0,4);a.setHours(0,0,0,0);var i=t(a);var o=new Date(0);o.setFullYear(r,0,4);o.setHours(0,0,0,0);var d=t(o);if(n.getTime()>=i.getTime()){return r+1}else if(n.getTime()>=d.getTime()){return r}else{return r-1}}n.exports=a},{"../parse/index.js":123,"../start_of_iso_week/index.js":139}],61:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getMilliseconds();return r}n.exports=t},{"../parse/index.js":123}],62:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getMinutes();return r}n.exports=t},{"../parse/index.js":123}],63:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getMonth();return r}n.exports=t},{"../parse/index.js":123}],64:[function(e,n,r){var s=e("../parse/index.js");var t=24*60*60*1e3;function a(e,n,r,a){var i=s(e).getTime();var o=s(n).getTime();var d=s(r).getTime();var u=s(a).getTime();if(i>o||d>u){throw new Error("The start of the range cannot be after the end of the range")}var _=i<u&&d<o;if(!_){return 0}var f=d<i?i:d;var x=u>o?o:u;var c=x-f;return Math.ceil(c/t)}n.exports=a},{"../parse/index.js":123}],65:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=Math.floor(n.getMonth()/3)+1;return r}n.exports=t},{"../parse/index.js":123}],66:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getSeconds();return r}n.exports=t},{"../parse/index.js":123}],67:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getTime();return r}n.exports=t},{"../parse/index.js":123}],68:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getFullYear();return r}n.exports=t},{"../parse/index.js":123}],69:[function(e,n,r){n.exports={addDays:e("./add_days/index.js"),addHours:e("./add_hours/index.js"),addISOYears:e("./add_iso_years/index.js"),addMilliseconds:e("./add_milliseconds/index.js"),addMinutes:e("./add_minutes/index.js"),addMonths:e("./add_months/index.js"),addQuarters:e("./add_quarters/index.js"),addSeconds:e("./add_seconds/index.js"),addWeeks:e("./add_weeks/index.js"),addYears:e("./add_years/index.js"),areRangesOverlapping:e("./are_ranges_overlapping/index.js"),closestIndexTo:e("./closest_index_to/index.js"),closestTo:e("./closest_to/index.js"),compareAsc:e("./compare_asc/index.js"),compareDesc:e("./compare_desc/index.js"),differenceInCalendarDays:e("./difference_in_calendar_days/index.js"),differenceInCalendarISOWeeks:e("./difference_in_calendar_iso_weeks/index.js"),differenceInCalendarISOYears:e("./difference_in_calendar_iso_years/index.js"),differenceInCalendarMonths:e("./difference_in_calendar_months/index.js"),differenceInCalendarQuarters:e("./difference_in_calendar_quarters/index.js"),differenceInCalendarWeeks:e("./difference_in_calendar_weeks/index.js"),differenceInCalendarYears:e("./difference_in_calendar_years/index.js"),differenceInDays:e("./difference_in_days/index.js"),differenceInHours:e("./difference_in_hours/index.js"),differenceInISOYears:e("./difference_in_iso_years/index.js"),differenceInMilliseconds:e("./difference_in_milliseconds/index.js"),differenceInMinutes:e("./difference_in_minutes/index.js"),differenceInMonths:e("./difference_in_months/index.js"),differenceInQuarters:e("./difference_in_quarters/index.js"),differenceInSeconds:e("./difference_in_seconds/index.js"),differenceInWeeks:e("./difference_in_weeks/index.js"),differenceInYears:e("./difference_in_years/index.js"),distanceInWords:e("./distance_in_words/index.js"),distanceInWordsStrict:e("./distance_in_words_strict/index.js"),distanceInWordsToNow:e("./distance_in_words_to_now/index.js"),eachDay:e("./each_day/index.js"),endOfDay:e("./end_of_day/index.js"),endOfHour:e("./end_of_hour/index.js"),endOfISOWeek:e("./end_of_iso_week/index.js"),endOfISOYear:e("./end_of_iso_year/index.js"),endOfMinute:e("./end_of_minute/index.js"),endOfMonth:e("./end_of_month/index.js"),endOfQuarter:e("./end_of_quarter/index.js"),endOfSecond:e("./end_of_second/index.js"),endOfToday:e("./end_of_today/index.js"),endOfTomorrow:e("./end_of_tomorrow/index.js"),endOfWeek:e("./end_of_week/index.js"),endOfYear:e("./end_of_year/index.js"),endOfYesterday:e("./end_of_yesterday/index.js"),format:e("./format/index.js"),getDate:e("./get_date/index.js"),getDay:e("./get_day/index.js"),getDayOfYear:e("./get_day_of_year/index.js"),getDaysInMonth:e("./get_days_in_month/index.js"),getDaysInYear:e("./get_days_in_year/index.js"),getHours:e("./get_hours/index.js"),getISODay:e("./get_iso_day/index.js"),getISOWeek:e("./get_iso_week/index.js"),getISOWeeksInYear:e("./get_iso_weeks_in_year/index.js"),getISOYear:e("./get_iso_year/index.js"),getMilliseconds:e("./get_milliseconds/index.js"),getMinutes:e("./get_minutes/index.js"),getMonth:e("./get_month/index.js"),getOverlappingDaysInRanges:e("./get_overlapping_days_in_ranges/index.js"),getQuarter:e("./get_quarter/index.js"),getSeconds:e("./get_seconds/index.js"),getTime:e("./get_time/index.js"),getYear:e("./get_year/index.js"),isAfter:e("./is_after/index.js"),isBefore:e("./is_before/index.js"),isDate:e("./is_date/index.js"),isEqual:e("./is_equal/index.js"),isFirstDayOfMonth:e("./is_first_day_of_month/index.js"),isFriday:e("./is_friday/index.js"),isFuture:e("./is_future/index.js"),isLastDayOfMonth:e("./is_last_day_of_month/index.js"),isLeapYear:e("./is_leap_year/index.js"),isMonday:e("./is_monday/index.js"),isPast:e("./is_past/index.js"),isSameDay:e("./is_same_day/index.js"),isSameHour:e("./is_same_hour/index.js"),isSameISOWeek:e("./is_same_iso_week/index.js"),isSameISOYear:e("./is_same_iso_year/index.js"),isSameMinute:e("./is_same_minute/index.js"),isSameMonth:e("./is_same_month/index.js"),isSameQuarter:e("./is_same_quarter/index.js"),isSameSecond:e("./is_same_second/index.js"),isSameWeek:e("./is_same_week/index.js"),isSameYear:e("./is_same_year/index.js"),isSaturday:e("./is_saturday/index.js"),isSunday:e("./is_sunday/index.js"),isThisHour:e("./is_this_hour/index.js"),isThisISOWeek:e("./is_this_iso_week/index.js"),isThisISOYear:e("./is_this_iso_year/index.js"),isThisMinute:e("./is_this_minute/index.js"),isThisMonth:e("./is_this_month/index.js"),isThisQuarter:e("./is_this_quarter/index.js"),isThisSecond:e("./is_this_second/index.js"),isThisWeek:e("./is_this_week/index.js"),isThisYear:e("./is_this_year/index.js"),isThursday:e("./is_thursday/index.js"),isToday:e("./is_today/index.js"),isTomorrow:e("./is_tomorrow/index.js"),isTuesday:e("./is_tuesday/index.js"),isValid:e("./is_valid/index.js"),isWednesday:e("./is_wednesday/index.js"),isWeekend:e("./is_weekend/index.js"),isWithinRange:e("./is_within_range/index.js"),isYesterday:e("./is_yesterday/index.js"),lastDayOfISOWeek:e("./last_day_of_iso_week/index.js"),lastDayOfISOYear:e("./last_day_of_iso_year/index.js"),lastDayOfMonth:e("./last_day_of_month/index.js"),lastDayOfQuarter:e("./last_day_of_quarter/index.js"),lastDayOfWeek:e("./last_day_of_week/index.js"),lastDayOfYear:e("./last_day_of_year/index.js"),max:e("./max/index.js"),min:e("./min/index.js"),parse:e("./parse/index.js"),setDate:e("./set_date/index.js"),setDay:e("./set_day/index.js"),setDayOfYear:e("./set_day_of_year/index.js"),setHours:e("./set_hours/index.js"),setISODay:e("./set_iso_day/index.js"),setISOWeek:e("./set_iso_week/index.js"),setISOYear:e("./set_iso_year/index.js"),setMilliseconds:e("./set_milliseconds/index.js"),setMinutes:e("./set_minutes/index.js"),setMonth:e("./set_month/index.js"),setQuarter:e("./set_quarter/index.js"),setSeconds:e("./set_seconds/index.js"),setYear:e("./set_year/index.js"),startOfDay:e("./start_of_day/index.js"),startOfHour:e("./start_of_hour/index.js"),startOfISOWeek:e("./start_of_iso_week/index.js"),startOfISOYear:e("./start_of_iso_year/index.js"),startOfMinute:e("./start_of_minute/index.js"),startOfMonth:e("./start_of_month/index.js"),startOfQuarter:e("./start_of_quarter/index.js"),startOfSecond:e("./start_of_second/index.js"),startOfToday:e("./start_of_today/index.js"),startOfTomorrow:e("./start_of_tomorrow/index.js"),startOfWeek:e("./start_of_week/index.js"),startOfYear:e("./start_of_year/index.js"),startOfYesterday:e("./start_of_yesterday/index.js"),subDays:e("./sub_days/index.js"),subHours:e("./sub_hours/index.js"),subISOYears:e("./sub_iso_years/index.js"),subMilliseconds:e("./sub_milliseconds/index.js"),subMinutes:e("./sub_minutes/index.js"),subMonths:e("./sub_months/index.js"),subQuarters:e("./sub_quarters/index.js"),subSeconds:e("./sub_seconds/index.js"),subWeeks:e("./sub_weeks/index.js"),subYears:e("./sub_years/index.js")}},{"./add_days/index.js":1,"./add_hours/index.js":2,"./add_iso_years/index.js":3,"./add_milliseconds/index.js":4,"./add_minutes/index.js":5,"./add_months/index.js":6,"./add_quarters/index.js":7,"./add_seconds/index.js":8,"./add_weeks/index.js":9,"./add_years/index.js":10,"./are_ranges_overlapping/index.js":11,"./closest_index_to/index.js":12,"./closest_to/index.js":13,"./compare_asc/index.js":14,"./compare_desc/index.js":15,"./difference_in_calendar_days/index.js":16,"./difference_in_calendar_iso_weeks/index.js":17,"./difference_in_calendar_iso_years/index.js":18,"./difference_in_calendar_months/index.js":19,"./difference_in_calendar_quarters/index.js":20,"./difference_in_calendar_weeks/index.js":21,"./difference_in_calendar_years/index.js":22,"./difference_in_days/index.js":23,"./difference_in_hours/index.js":24,"./difference_in_iso_years/index.js":25,"./difference_in_milliseconds/index.js":26,"./difference_in_minutes/index.js":27,"./difference_in_months/index.js":28,"./difference_in_quarters/index.js":29,"./difference_in_seconds/index.js":30,"./difference_in_weeks/index.js":31,"./difference_in_years/index.js":32,"./distance_in_words/index.js":33,"./distance_in_words_strict/index.js":34,"./distance_in_words_to_now/index.js":35,"./each_day/index.js":36,"./end_of_day/index.js":37,"./end_of_hour/index.js":38,"./end_of_iso_week/index.js":39,"./end_of_iso_year/index.js":40,"./end_of_minute/index.js":41,"./end_of_month/index.js":42,"./end_of_quarter/index.js":43,"./end_of_second/index.js":44,"./end_of_today/index.js":45,"./end_of_tomorrow/index.js":46,"./end_of_week/index.js":47,"./end_of_year/index.js":48,"./end_of_yesterday/index.js":49,"./format/index.js":50,"./get_date/index.js":51,"./get_day/index.js":52,"./get_day_of_year/index.js":53,"./get_days_in_month/index.js":54,"./get_days_in_year/index.js":55,"./get_hours/index.js":56,"./get_iso_day/index.js":57,"./get_iso_week/index.js":58,"./get_iso_weeks_in_year/index.js":59,"./get_iso_year/index.js":60,"./get_milliseconds/index.js":61,"./get_minutes/index.js":62,"./get_month/index.js":63,"./get_overlapping_days_in_ranges/index.js":64,"./get_quarter/index.js":65,"./get_seconds/index.js":66,"./get_time/index.js":67,"./get_year/index.js":68,"./is_after/index.js":70,"./is_before/index.js":71,"./is_date/index.js":72,"./is_equal/index.js":73,"./is_first_day_of_month/index.js":74,"./is_friday/index.js":75,"./is_future/index.js":76,"./is_last_day_of_month/index.js":77,"./is_leap_year/index.js":78,"./is_monday/index.js":79,"./is_past/index.js":80,"./is_same_day/index.js":81,"./is_same_hour/index.js":82,"./is_same_iso_week/index.js":83,"./is_same_iso_year/index.js":84,"./is_same_minute/index.js":85,"./is_same_month/index.js":86,"./is_same_quarter/index.js":87,"./is_same_second/index.js":88,"./is_same_week/index.js":89,"./is_same_year/index.js":90,"./is_saturday/index.js":91,"./is_sunday/index.js":92,"./is_this_hour/index.js":93,"./is_this_iso_week/index.js":94,"./is_this_iso_year/index.js":95,"./is_this_minute/index.js":96,"./is_this_month/index.js":97,"./is_this_quarter/index.js":98,"./is_this_second/index.js":99,"./is_this_week/index.js":100,"./is_this_year/index.js":101,"./is_thursday/index.js":102,"./is_today/index.js":103,"./is_tomorrow/index.js":104,"./is_tuesday/index.js":105,"./is_valid/index.js":106,"./is_wednesday/index.js":107,"./is_weekend/index.js":108,"./is_within_range/index.js":109,"./is_yesterday/index.js":110,"./last_day_of_iso_week/index.js":111,"./last_day_of_iso_year/index.js":112,"./last_day_of_month/index.js":113,"./last_day_of_quarter/index.js":114,"./last_day_of_week/index.js":115,"./last_day_of_year/index.js":116,"./max/index.js":121,"./min/index.js":122,"./parse/index.js":123,"./set_date/index.js":124,"./set_day/index.js":125,"./set_day_of_year/index.js":126,"./set_hours/index.js":127,"./set_iso_day/index.js":128,"./set_iso_week/index.js":129,"./set_iso_year/index.js":130,"./set_milliseconds/index.js":131,"./set_minutes/index.js":132,"./set_month/index.js":133,"./set_quarter/index.js":134,"./set_seconds/index.js":135,"./set_year/index.js":136,"./start_of_day/index.js":137,"./start_of_hour/index.js":138,"./start_of_iso_week/index.js":139,"./start_of_iso_year/index.js":140,"./start_of_minute/index.js":141,"./start_of_month/index.js":142,"./start_of_quarter/index.js":143,"./start_of_second/index.js":144,"./start_of_today/index.js":145,"./start_of_tomorrow/index.js":146,"./start_of_week/index.js":147,"./start_of_year/index.js":148,"./start_of_yesterday/index.js":149,"./sub_days/index.js":150,"./sub_hours/index.js":151,
"./sub_iso_years/index.js":152,"./sub_milliseconds/index.js":153,"./sub_minutes/index.js":154,"./sub_months/index.js":155,"./sub_quarters/index.js":156,"./sub_seconds/index.js":157,"./sub_weeks/index.js":158,"./sub_years/index.js":159}],70:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()>t.getTime()}n.exports=t},{"../parse/index.js":123}],71:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()<t.getTime()}n.exports=t},{"../parse/index.js":123}],72:[function(e,n,r){function s(e){return e instanceof Date}n.exports=s},{}],73:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()===t.getTime()}n.exports=t},{"../parse/index.js":123}],74:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getDate()===1}n.exports=t},{"../parse/index.js":123}],75:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getDay()===5}n.exports=t},{"../parse/index.js":123}],76:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getTime()>(new Date).getTime()}n.exports=t},{"../parse/index.js":123}],77:[function(e,n,r){var s=e("../parse/index.js");var t=e("../end_of_day/index.js");var a=e("../end_of_month/index.js");function i(e){var n=s(e);return t(n).getTime()===a(n).getTime()}n.exports=i},{"../end_of_day/index.js":37,"../end_of_month/index.js":42,"../parse/index.js":123}],78:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getFullYear();return r%400===0||r%4===0&&r%100!==0}n.exports=t},{"../parse/index.js":123}],79:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getDay()===1}n.exports=t},{"../parse/index.js":123}],80:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getTime()<(new Date).getTime()}n.exports=t},{"../parse/index.js":123}],81:[function(e,n,r){var s=e("../start_of_day/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()===t.getTime()}n.exports=t},{"../start_of_day/index.js":137}],82:[function(e,n,r){var s=e("../start_of_hour/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()===t.getTime()}n.exports=t},{"../start_of_hour/index.js":138}],83:[function(e,n,r){var s=e("../is_same_week/index.js");function t(e,n){return s(e,n,{weekStartsOn:1})}n.exports=t},{"../is_same_week/index.js":89}],84:[function(e,n,r){var s=e("../start_of_iso_year/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()===t.getTime()}n.exports=t},{"../start_of_iso_year/index.js":140}],85:[function(e,n,r){var s=e("../start_of_minute/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()===t.getTime()}n.exports=t},{"../start_of_minute/index.js":141}],86:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()}n.exports=t},{"../parse/index.js":123}],87:[function(e,n,r){var s=e("../start_of_quarter/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()===t.getTime()}n.exports=t},{"../start_of_quarter/index.js":143}],88:[function(e,n,r){var s=e("../start_of_second/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getTime()===t.getTime()}n.exports=t},{"../start_of_second/index.js":144}],89:[function(e,n,r){var s=e("../start_of_week/index.js");function t(e,n,r){var t=s(e,r);var a=s(n,r);return t.getTime()===a.getTime()}n.exports=t},{"../start_of_week/index.js":147}],90:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=s(n);return r.getFullYear()===t.getFullYear()}n.exports=t},{"../parse/index.js":123}],91:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getDay()===6}n.exports=t},{"../parse/index.js":123}],92:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getDay()===0}n.exports=t},{"../parse/index.js":123}],93:[function(e,n,r){var s=e("../is_same_hour/index.js");function t(e){return s(new Date,e)}n.exports=t},{"../is_same_hour/index.js":82}],94:[function(e,n,r){var s=e("../is_same_iso_week/index.js");function t(e){return s(new Date,e)}n.exports=t},{"../is_same_iso_week/index.js":83}],95:[function(e,n,r){var s=e("../is_same_iso_year/index.js");function t(e){return s(new Date,e)}n.exports=t},{"../is_same_iso_year/index.js":84}],96:[function(e,n,r){var s=e("../is_same_minute/index.js");function t(e){return s(new Date,e)}n.exports=t},{"../is_same_minute/index.js":85}],97:[function(e,n,r){var s=e("../is_same_month/index.js");function t(e){return s(new Date,e)}n.exports=t},{"../is_same_month/index.js":86}],98:[function(e,n,r){var s=e("../is_same_quarter/index.js");function t(e){return s(new Date,e)}n.exports=t},{"../is_same_quarter/index.js":87}],99:[function(e,n,r){var s=e("../is_same_second/index.js");function t(e){return s(new Date,e)}n.exports=t},{"../is_same_second/index.js":88}],100:[function(e,n,r){var s=e("../is_same_week/index.js");function t(e,n){return s(new Date,e,n)}n.exports=t},{"../is_same_week/index.js":89}],101:[function(e,n,r){var s=e("../is_same_year/index.js");function t(e){return s(new Date,e)}n.exports=t},{"../is_same_year/index.js":90}],102:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getDay()===4}n.exports=t},{"../parse/index.js":123}],103:[function(e,n,r){var s=e("../start_of_day/index.js");function t(e){return s(e).getTime()===s(new Date).getTime()}n.exports=t},{"../start_of_day/index.js":137}],104:[function(e,n,r){var s=e("../start_of_day/index.js");function t(e){var n=new Date;n.setDate(n.getDate()+1);return s(e).getTime()===s(n).getTime()}n.exports=t},{"../start_of_day/index.js":137}],105:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getDay()===2}n.exports=t},{"../parse/index.js":123}],106:[function(e,n,r){var s=e("../is_date/index.js");function t(e){if(s(e)){return!isNaN(e)}else{throw new TypeError(toString.call(e)+" is not an instance of Date")}}n.exports=t},{"../is_date/index.js":72}],107:[function(e,n,r){var s=e("../parse/index.js");function t(e){return s(e).getDay()===3}n.exports=t},{"../parse/index.js":123}],108:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getDay();return r===0||r===6}n.exports=t},{"../parse/index.js":123}],109:[function(e,n,r){var s=e("../parse/index.js");function t(e,n,r){var t=s(e).getTime();var a=s(n).getTime();var i=s(r).getTime();if(a>i){throw new Error("The start of the range cannot be after the end of the range")}return t>=a&&t<=i}n.exports=t},{"../parse/index.js":123}],110:[function(e,n,r){var s=e("../start_of_day/index.js");function t(e){var n=new Date;n.setDate(n.getDate()-1);return s(e).getTime()===s(n).getTime()}n.exports=t},{"../start_of_day/index.js":137}],111:[function(e,n,r){var s=e("../last_day_of_week/index.js");function t(e){return s(e,{weekStartsOn:1})}n.exports=t},{"../last_day_of_week/index.js":115}],112:[function(e,n,r){var s=e("../get_iso_year/index.js");var t=e("../start_of_iso_week/index.js");function a(e){var n=s(e);var r=new Date(0);r.setFullYear(n+1,0,4);r.setHours(0,0,0,0);var a=t(r);a.setDate(a.getDate()-1);return a}n.exports=a},{"../get_iso_year/index.js":60,"../start_of_iso_week/index.js":139}],113:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getMonth();n.setFullYear(n.getFullYear(),r+1,0);n.setHours(0,0,0,0);return n}n.exports=t},{"../parse/index.js":123}],114:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getMonth();var t=r-r%3+3;n.setMonth(t,0);n.setHours(0,0,0,0);return n}n.exports=t},{"../parse/index.js":123}],115:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=n?Number(n.weekStartsOn)||0:0;var t=s(e);var a=t.getDay();var i=(a<r?-7:0)+6-(a-r);t.setHours(0,0,0,0);t.setDate(t.getDate()+i);return t}n.exports=t},{"../parse/index.js":123}],116:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getFullYear();n.setFullYear(r+1,0,0);n.setHours(0,0,0,0);return n}n.exports=t},{"../parse/index.js":123}],117:[function(e,n,r){var s=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];function t(e){var n=[];for(var r in e){if(e.hasOwnProperty(r)){n.push(r)}}var t=s.concat(n).sort().reverse();var a=new RegExp("(\\[[^\\[]*\\])|(\\\\)?"+"("+t.join("|")+"|.)","g");return a}n.exports=t},{}],118:[function(e,n,r){function s(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function n(n,r,s){s=s||{};var t;if(typeof e[n]==="string"){t=e[n]}else if(r===1){t=e[n].one}else{t=e[n].other.replace("{{count}}",r)}if(s.addSuffix){if(s.comparison>0){return"in "+t}else{return t+" ago"}}return t}return{localize:n}}n.exports=s},{}],119:[function(e,n,r){var s=e("../../_lib/build_formatting_tokens_reg_exp/index.js");function t(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var n=["January","February","March","April","May","June","July","August","September","October","November","December"];var r=["Su","Mo","Tu","We","Th","Fr","Sa"];var t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var o=["AM","PM"];var d=["am","pm"];var u=["a.m.","p.m."];var _={MMM:function(n){return e[n.getMonth()]},MMMM:function(e){return n[e.getMonth()]},dd:function(e){return r[e.getDay()]},ddd:function(e){return t[e.getDay()]},dddd:function(e){return i[e.getDay()]},A:function(e){return e.getHours()/12>=1?o[1]:o[0]},a:function(e){return e.getHours()/12>=1?d[1]:d[0]},aa:function(e){return e.getHours()/12>=1?u[1]:u[0]}};var f=["M","D","DDD","d","Q","W"];f.forEach(function(e){_[e+"o"]=function(n,r){return a(r[e](n))}});return{formatters:_,formattingTokensRegExp:s(_)}}function a(e){var n=e%100;if(n>20||n<10){switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}}return e+"th"}n.exports=t},{"../../_lib/build_formatting_tokens_reg_exp/index.js":117}],120:[function(e,n,r){var s=e("./build_distance_in_words_locale/index.js");var t=e("./build_format_locale/index.js");n.exports={distanceInWords:s(),format:t()}},{"./build_distance_in_words_locale/index.js":118,"./build_format_locale/index.js":119}],121:[function(e,n,r){var s=e("../parse/index.js");function t(){var e=Array.prototype.slice.call(arguments);var n=e.map(function(e){return s(e)});var r=Math.max.apply(null,n);return new Date(r)}n.exports=t},{"../parse/index.js":123}],122:[function(e,n,r){var s=e("../parse/index.js");function t(){var e=Array.prototype.slice.call(arguments);var n=e.map(function(e){return s(e)});var r=Math.min.apply(null,n);return new Date(r)}n.exports=t},{"../parse/index.js":123}],123:[function(e,n,r){var s=e("../is_date/index.js");var t=36e5;var a=6e4;var i=2;var o=/[T ]/;var d=/:/;var u=/^(\d{2})$/;var _=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/];var f=/^(\d{4})/;var x=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/];var c=/^-(\d{2})$/;var j=/^-?(\d{3})$/;var v=/^-?(\d{2})-?(\d{2})$/;var l=/^-?W(\d{2})$/;var p=/^-?W(\d{2})-?(\d{1})$/;var m=/^(\d{2}([.,]\d*)?)$/;var g=/^(\d{2}):?(\d{2}([.,]\d*)?)$/;var y=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/;var h=/([Z+-].*)$/;var w=/^(Z)$/;var D=/^([+-])(\d{2})$/;var M=/^([+-])(\d{2}):?(\d{2})$/;function T(e,n){if(s(e)){return new Date(e.getTime())}else if(typeof e!=="string"){return new Date(e)}var r=n||{};var t=r.additionalDigits;if(t==null){t=i}else{t=Number(t)}var o=b(e);var d=Y(o.date,t);var u=d.year;var _=d.restDateString;var f=k(_,u);if(f){var x=f.getTime();var c=0;var j;if(o.time){c=S(o.time)}if(o.timezone){j=O(o.timezone)}else{j=new Date(x+c).getTimezoneOffset();j=new Date(x+c+j*a).getTimezoneOffset()}return new Date(x+c+j*a)}else{return new Date(e)}}function b(e){var n={};var r=e.split(o);var s;if(d.test(r[0])){n.date=null;s=r[0]}else{n.date=r[0];s=r[1]}if(s){var t=h.exec(s);if(t){n.time=s.replace(t[1],"");n.timezone=t[1]}else{n.time=s}}return n}function Y(e,n){var r=_[n];var s=x[n];var t;t=f.exec(e)||s.exec(e);if(t){var a=t[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}t=u.exec(e)||r.exec(e);if(t){var i=t[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}return{year:null}}function k(e,n){if(n===null){return null}var r;var s;var t;var a;if(e.length===0){s=new Date(0);s.setUTCFullYear(n);return s}r=c.exec(e);if(r){s=new Date(0);t=parseInt(r[1],10)-1;s.setUTCFullYear(n,t);return s}r=j.exec(e);if(r){s=new Date(0);var i=parseInt(r[1],10);s.setUTCFullYear(n,0,i);return s}r=v.exec(e);if(r){s=new Date(0);t=parseInt(r[1],10)-1;var o=parseInt(r[2],10);s.setUTCFullYear(n,t,o);return s}r=l.exec(e);if(r){a=parseInt(r[1],10)-1;return I(n,a)}r=p.exec(e);if(r){a=parseInt(r[1],10)-1;var d=parseInt(r[2],10)-1;return I(n,a,d)}return null}function S(e){var n;var r;var s;n=m.exec(e);if(n){r=parseFloat(n[1].replace(",","."));return r%24*t}n=g.exec(e);if(n){r=parseInt(n[1],10);s=parseFloat(n[2].replace(",","."));return r%24*t+s*a}n=y.exec(e);if(n){r=parseInt(n[1],10);s=parseInt(n[2],10);var i=parseFloat(n[3].replace(",","."));return r%24*t+s*a+i*1e3}return null}function O(e){var n;var r;n=w.exec(e);if(n){return 0}n=D.exec(e);if(n){r=parseInt(n[2],10)*60;return n[1]==="+"?-r:r}n=M.exec(e);if(n){r=parseInt(n[2],10)*60+parseInt(n[3],10);return n[1]==="+"?-r:r}return 0}function I(e,n,r){n=n||0;r=r||0;var s=new Date(0);s.setUTCFullYear(e,0,4);var t=s.getUTCDay()||7;var a=n*7+r+1-t;s.setUTCDate(s.getUTCDate()+a);return s}n.exports=T},{"../is_date/index.js":72}],124:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setDate(t);return r}n.exports=t},{"../parse/index.js":123}],125:[function(e,n,r){var s=e("../parse/index.js");var t=e("../add_days/index.js");function a(e,n,r){var a=r?Number(r.weekStartsOn)||0:0;var i=s(e);var o=Number(n);var d=i.getDay();var u=o%7;var _=(u+7)%7;var f=(_<a?7:0)+o-d;return t(i,f)}n.exports=a},{"../add_days/index.js":1,"../parse/index.js":123}],126:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setMonth(0);r.setDate(t);return r}n.exports=t},{"../parse/index.js":123}],127:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setHours(t);return r}n.exports=t},{"../parse/index.js":123}],128:[function(e,n,r){var s=e("../parse/index.js");var t=e("../add_days/index.js");var a=e("../get_iso_day/index.js");function i(e,n){var r=s(e);var i=Number(n);var o=a(r);var d=i-o;return t(r,d)}n.exports=i},{"../add_days/index.js":1,"../get_iso_day/index.js":57,"../parse/index.js":123}],129:[function(e,n,r){var s=e("../parse/index.js");var t=e("../get_iso_week/index.js");function a(e,n){var r=s(e);var a=Number(n);var i=t(r)-a;r.setDate(r.getDate()-i*7);return r}n.exports=a},{"../get_iso_week/index.js":58,"../parse/index.js":123}],130:[function(e,n,r){var s=e("../parse/index.js");var t=e("../start_of_iso_year/index.js");var a=e("../difference_in_calendar_days/index.js");function i(e,n){var r=s(e);var i=Number(n);var o=a(r,t(r));var d=new Date(0);d.setFullYear(i,0,4);d.setHours(0,0,0,0);r=t(d);r.setDate(r.getDate()+o);return r}n.exports=i},{"../difference_in_calendar_days/index.js":16,"../parse/index.js":123,"../start_of_iso_year/index.js":140}],131:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setMilliseconds(t);return r}n.exports=t},{"../parse/index.js":123}],132:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setMinutes(t);return r}n.exports=t},{"../parse/index.js":123}],133:[function(e,n,r){var s=e("../parse/index.js");var t=e("../get_days_in_month/index.js");function a(e,n){var r=s(e);var a=Number(n);var i=r.getFullYear();var o=r.getDate();var d=new Date(0);d.setFullYear(i,a,15);d.setHours(0,0,0,0);var u=t(d);r.setMonth(a,Math.min(o,u));return r}n.exports=a},{"../get_days_in_month/index.js":54,"../parse/index.js":123}],134:[function(e,n,r){var s=e("../parse/index.js");var t=e("../set_month/index.js");function a(e,n){var r=s(e);var a=Number(n);var i=Math.floor(r.getMonth()/3)+1;var o=a-i;return t(r,r.getMonth()+o*3)}n.exports=a},{"../parse/index.js":123,"../set_month/index.js":133}],135:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setSeconds(t);return r}n.exports=t},{"../parse/index.js":123}],136:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=s(e);var t=Number(n);r.setFullYear(t);return r}n.exports=t},{"../parse/index.js":123}],137:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setHours(0,0,0,0);return n}n.exports=t},{"../parse/index.js":123}],138:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setMinutes(0,0,0);return n}n.exports=t},{"../parse/index.js":123}],139:[function(e,n,r){var s=e("../start_of_week/index.js");function t(e){return s(e,{weekStartsOn:1})}n.exports=t},{"../start_of_week/index.js":147}],140:[function(e,n,r){var s=e("../get_iso_year/index.js");var t=e("../start_of_iso_week/index.js");function a(e){var n=s(e);var r=new Date(0);r.setFullYear(n,0,4);r.setHours(0,0,0,0);var a=t(r);return a}n.exports=a},{"../get_iso_year/index.js":60,"../start_of_iso_week/index.js":139}],141:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setSeconds(0,0);return n}n.exports=t},{"../parse/index.js":123}],142:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setDate(1);n.setHours(0,0,0,0);return n}n.exports=t},{"../parse/index.js":123}],143:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=n.getMonth();var t=r-r%3;n.setMonth(t,1);n.setHours(0,0,0,0);return n}n.exports=t},{"../parse/index.js":123}],144:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);n.setMilliseconds(0);return n}n.exports=t},{"../parse/index.js":123}],145:[function(e,n,r){var s=e("../start_of_day/index.js");function t(){return s(new Date)}n.exports=t},{"../start_of_day/index.js":137}],146:[function(e,n,r){function s(){var e=new Date;var n=e.getFullYear();var r=e.getMonth();var s=e.getDate();var t=new Date(0);t.setFullYear(n,r,s+1);t.setHours(0,0,0,0);return t}n.exports=s},{}],147:[function(e,n,r){var s=e("../parse/index.js");function t(e,n){var r=n?Number(n.weekStartsOn)||0:0;var t=s(e);var a=t.getDay();var i=(a<r?7:0)+a-r;t.setDate(t.getDate()-i);t.setHours(0,0,0,0);return t}n.exports=t},{"../parse/index.js":123}],148:[function(e,n,r){var s=e("../parse/index.js");function t(e){var n=s(e);var r=new Date(0);r.setFullYear(n.getFullYear(),0,1);r.setHours(0,0,0,0);return r}n.exports=t},{"../parse/index.js":123}],149:[function(e,n,r){function s(){var e=new Date;var n=e.getFullYear();var r=e.getMonth();var s=e.getDate();var t=new Date(0);t.setFullYear(n,r,s-1);t.setHours(0,0,0,0);return t}n.exports=s},{}],150:[function(e,n,r){var s=e("../add_days/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_days/index.js":1}],151:[function(e,n,r){var s=e("../add_hours/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_hours/index.js":2}],152:[function(e,n,r){var s=e("../add_iso_years/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_iso_years/index.js":3}],153:[function(e,n,r){var s=e("../add_milliseconds/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_milliseconds/index.js":4}],154:[function(e,n,r){var s=e("../add_minutes/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_minutes/index.js":5}],155:[function(e,n,r){var s=e("../add_months/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_months/index.js":6}],156:[function(e,n,r){var s=e("../add_quarters/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_quarters/index.js":7}],157:[function(e,n,r){var s=e("../add_seconds/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_seconds/index.js":8}],158:[function(e,n,r){var s=e("../add_weeks/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_weeks/index.js":9}],159:[function(e,n,r){var s=e("../add_years/index.js");function t(e,n){var r=Number(n);return s(e,-r)}n.exports=t},{"../add_years/index.js":10}]},{},[69])(69)});