UNPKG

half-past

Version:

natural-language date-parsing in javascript

1 lines 73.8 kB
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).halfPast=t()}}(function(){return function(){return function t(e,n,a){function r(i,s){if(!n[i]){if(!e[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(o)return o(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[i]={exports:{}};e[i][0].call(d.exports,function(t){return r(e[i][1][t]||t)},d,d.exports,t,e,n,a)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<a.length;i++)r(a[i]);return r}}()({1:[function(t,e,n){(function(a){!function(t){"object"==typeof n&&void 0!==e?e.exports=t():("undefined"!=typeof window?window:void 0!==a?a:"undefined"!=typeof self?self:this).spacetime=t()}(function(){return function(){return function e(n,a,r){function o(s,u){if(!a[s]){if(!n[s]){var c="function"==typeof t&&t;if(!u&&c)return c(s,!0);if(i)return i(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var l=a[s]={exports:{}};n[s][0].call(l.exports,function(t){return o(n[s][1][t]||t)},l,l.exports,e,n,a,r)}return a[s].exports}for(var i="function"==typeof t&&t,s=0;s<r.length;s++)o(r[s]);return o}}()({1:[function(t,e,n){"use strict";e.exports="5.1.0"},{}],2:[function(t,e,n){"use strict";var a=["sun","mon","tue","wed","thu","fri","sat"],r=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];e.exports={short:function(){return a},long:function(){return r},set:function(t){a=t.short,r=t.long}}},{}],3:[function(t,e,n){"use strict";var a={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};a.date=a.day,a.month=25488e5,a.week=6048e5,a.year=3154e7,Object.keys(a).forEach(function(t){a[t+"s"]=a[t]}),e.exports=a},{}],4:[function(t,e,n){"use strict";e.exports=[31,28,31,30,31,30,31,31,30,31,30,31]},{}],5:[function(t,e,n){"use strict";var a=["jan","feb","mar","apr","may","jun","jul","aug","sept","oct","nov","dec"],r=["january","february","march","april","may","june","july","august","september","october","november","december"];e.exports={short:function(){return a},long:function(){return r},mapping:function(){return function(){for(var t={sep:8},e=0;e<a.length;e++)t[a[e]]=e;for(var n=0;n<r.length;n++)t[r[n]]=n;return t}()},set:function(t){a=t.short,r=t.long}}},{}],6:[function(t,e,n){"use strict";e.exports=[null,[0,1],[3,1],[6,1],[9,1]]},{}],7:[function(t,e,n){"use strict";e.exports={north:[["spring",2,1],["summer",5,1],["fall",8,1],["autumn",8,1],["winter",11,1]],south:[["fall",2,1],["autumn",2,1],["winter",5,1],["spring",8,1],["summer",11,1]]}},{}],8:[function(t,e,n){"use strict";n.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},n.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.valueOf())},n.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},n.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},n.zeroPad=function(t,e){return(t+="").length>=(e=e||2)?t:new Array(e-t.length+1).join("0")+t},n.titleCase=function(t){return t?t[0].toUpperCase()+t.substr(1):""},n.ordinal=function(t){var e=t%10,n=t%100;return 1===e&&11!==n?t+"st":2===e&&12!==n?t+"nd":3===e&&13!==n?t+"rd":t+"th"},n.toCardinal=function(t){return t=(t=String(t)).replace(/([0-9])(st|nd|rd|th)$/i,"$1"),parseInt(t,10)},n.normalize=function(t){return"day"===(t=(t=t.toLowerCase()).replace(/s$/,""))?"date":t},n.getEpoch=function(t){return"number"==typeof t?t:n.isDate(t)?t.getTime():t.epoch?t.epoch:null},n.beADate=function(t,e){return!1===n.isObject(t)?e.clone().set(t):t}},{}],9:[function(t,e,n){"use strict";var a=t("./spacetime"),r=t("./whereIts"),o=t("../_version"),i=function(t,e,n){return new a(t,e,n)};i.now=function(t,e){return new a((new Date).getTime(),t,e)},i.today=function(t,e){return new a((new Date).getTime(),t,e).startOf("day")},i.tomorrow=function(t,e){return new a((new Date).getTime(),t,e).add(1,"day").startOf("day")},i.yesterday=function(t,e){return new a((new Date).getTime(),t,e).subtract(1,"day").startOf("day")},i.extend=function(t){return Object.keys(t).forEach(function(e){a.prototype[e]=t[e]}),this},i.whereIts=r,i.version=o,i.plugin=i.extend,e.exports=i},{"../_version":1,"./spacetime":34,"./whereIts":41}],10:[function(t,e,n){"use strict";var a=t("../data/monthLengths"),r=t("../fns").isLeapYear;e.exports=function(t){if(!0!==a.hasOwnProperty(t.month))return!1;if(1===t.month)return!!(r(t.year)&&t.date<=29)||t.date<=28;var e=a[t.month]||0;return t.date<=e}},{"../data/monthLengths":4,"../fns":8}],11:[function(t,e,n){"use strict";var a=t("./strParse"),r=t("../fns"),o=t("./named-dates");e.exports=function(t,e,n){if("number"==typeof e)return e>0&&e<25e8&&!1===t.silent&&(console.warn(" - Warning: You are setting the date to January 1970."),console.warn(" - did input seconds instead of milliseconds?")),t.epoch=e,t;if(t.epoch=Date.now(),null==e)return t;if(!0===r.isDate(e))return t.epoch=e.getTime(),t;if(!0===r.isArray(e))return t=function(t,e){for(var n=["year","month","date","hour","minute","second","millisecond"],a=0;a<e.length;a++){var r=e[a]||0;t=t[n[a]](r)}return t}(t,e);if(!0===r.isObject(e))return e.epoch?(t.epoch=e.epoch,t):t=function(t,e){for(var n=Object.keys(e),a=0;a<n.length;a++){var r=n[a];if(void 0!==t[r]){var o=e[r]||0;t=t[r](o)}}return t}(t,e);if("string"!=typeof e)return t;if(e=(e=e.replace(/\b(mon|tues|wed|wednes|thu|thurs|fri|sat|satur|sun)(day)?\b/,"")).trim().replace(/ +/g," "),!0===o.hasOwnProperty(e))return t=o[e](t);for(var i=0;i<a.length;i++){var s=e.match(a[i].reg);if(s)return t=a[i].parse(t,s,n)}return!1===t.silent&&console.warn("Warning: couldn't parse date-string: '"+e+"'"),t.epoch=null,t}},{"../fns":8,"./named-dates":12,"./strParse":14}],12:[function(t,e,n){"use strict";var a={now:function(t){return t.epoch=Date.now(),t},tonight:function(t){return t.epoch=Date.now(),t=t.hour(18)},today:function(t){return t.epoch=Date.now(),t},tomorrow:function(t){return t.epoch=Date.now(),t=(t=t.add(1,"day")).startOf("day")},yesterday:function(t){return t.epoch=Date.now(),t=(t=t.subtract(1,"day")).startOf("day")},christmas:function(t){var e=(new Date).getFullYear();return t=t.set([e,11,25,18,0,0])},"new years":function(t){var e=(new Date).getFullYear();return t=t.set([e,11,31,18,0,0])}};a["new years eve"]=a["new years"],e.exports=a},{}],13:[function(t,e,n){"use strict";e.exports=function(t,e){if(!e)return t;"Z"===e&&(e="+0000"),!0===/:00/.test(e)&&(e=e.replace(/:00/,"")),!0===/:00/.test(e)&&(e=e.replace(/:00/,".5"));var n=parseInt(e,10);if(Math.abs(n)>100&&(n/=100),t.timezone().current.offset===n)return t;(n*=-1)>=0&&(n="+"+n);var a="etc/gmt"+n;return t.timezones[a]&&(t.tz=a),t}},{}],14:[function(t,e,n){"use strict";var a=t("../methods/set/walk"),r=t("../data/months").mapping(),o=t("./parseOffset"),i=t("./hasDate"),s=t("../fns"),u=function(t,e){var n=(e=e.replace(/^\s+/,"")).match(/([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?[:\.]?([0-9]{1,4})?/);return n&&(t=(t=t.hour(n[1])).minute(n[2]),n[3]&&(t=t.seconds(n[3])),n[4]&&(t=t.millisecond(n[4]))),t},c=function(t){t=t||"";var e=parseInt(t.trim(),10);return e=e||(new Date).getFullYear()},d=[{reg:/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})[T| ]([0-9.:]+)(Z|[0-9\-\+:]+)?$/,parse:function(t,e,n,r){var s=parseInt(e[2],10)-1,c={year:e[1],month:s,date:e[3]};return!1===i(c)?(t.epoch=null,t):(o(t,e[5],n,r),a(t,c),t=u(t,e[4]))}},{reg:/^([0-9]{4})[\-\/]([0-9]{1,2})[\-\/]([0-9]{1,2})$/,parse:function(t,e){var n={year:e[1],month:parseInt(e[2],10)-1,date:parseInt(e[3],10)};return n.month>=12&&(n.date=parseInt(e[2],10),n.month=parseInt(e[3],10)-1),!1===i(n)?(t.epoch=null,t):(a(t,n),t)}},{reg:/^([0-9]{1,2})[\-\/]([0-9]{1,2})[\-\/]?([0-9]{4})?$/,parse:function(t,e){var n=parseInt(e[1],10)-1,r=parseInt(e[2],10);n>=12&&(n=parseInt(e[2],10)-1,r=parseInt(e[1],10));var o={year:e[3]||(new Date).getFullYear(),month:n,date:r};return!1===i(o)?(t.epoch=null,t):(a(t,o),t)}},{reg:/^([a-z]+) ([0-9]{1,2}(?:st|nd|rd|th)?),?( [0-9]{4})?( ([0-9:]+))?$/i,parse:function(t,e){var n=r[e[1].toLowerCase()],o={year:c(e[3]),month:n,date:s.toCardinal(e[2]||"")};return!1===i(o)?(t.epoch=null,t):(a(t,o),e[4]&&(t=u(t,e[4])),t)}},{reg:/^([a-z]+) ([0-9]{4})$/i,parse:function(t,e){var n=r[e[1].toLowerCase()],o={year:c(e[2]),month:n,date:1};return!1===i(o)?(t.epoch=null,t):(a(t,o),e[4]&&(t=u(t,e[4])),t)}},{reg:/^([0-9]{1,2}(?:st|nd|rd|th)?) ([a-z]+),?( [0-9]{4})?$/i,parse:function(t,e){var n=r[e[2].toLowerCase()],o={year:c(e[3]),month:n,date:s.toCardinal(e[1])};return!1===i(o)?(t.epoch=null,t):(a(t,o),t)}},{reg:/^[0-9]{4}$/i,parse:function(t,e){var n=c(e[0]),r=new Date,o={year:n,month:r.getMonth(),date:r.getDate()};return!1===i(o)?(t.epoch=null,t):(a(t,o),t)}},{reg:/^[0-9,]+ ?b\.?c\.?$/i,parse:function(t,e){var n=e[0]||"";n=(n=n.replace(/^([0-9,]+) ?b\.?c\.?$/i,"-$1")).replace(/,/g,"");var r=parseInt(n.trim(),10),o=new Date,s={year:r,month:o.getMonth(),date:o.getDate()};return!1===i(s)?(t.epoch=null,t):(a(t,s),t)}}];e.exports=d},{"../data/months":5,"../fns":8,"../methods/set/walk":31,"./hasDate":10,"./parseOffset":13}],15:[function(t,e,n){"use strict";var a=t("./methods/format"),r=t("./methods/format/unixFmt"),o=t("./methods/progress"),i=t("./methods/nearest"),s=t("./methods/diff"),u=t("./methods/since"),c=t("./methods/startOf"),d=t("./timezone/index"),l=t("./timezone/find"),h=t("./input"),f=t("./fns"),m={set:function(t){var e=this.clone();return e=h(e,t)},timezone:function(){return d(this)},isDST:function(){return d(this).current.isDST},hasDST:function(){return d(this).hasDst},offset:function(){return 60*d(this).current.offset},hemisphere:function(){return d(this).hemisphere},format:function(t){return a(this,t)},unixFmt:function(t){return r(this,t)},startOf:function(t){return c.startOf(this,t)},endOf:function(t){return c.endOf(this,t)},leapYear:function(){var t=this.year();return f.isLeapYear(t)},progress:function(){return o(this)},nearest:function(t){return i(this,t)},diff:function(t,e){return s(this,t,e)},since:function(t){return t||(t=this.clone().set()),u(this,t)},isValid:function(){return!(!this.epoch&&0!==this.epoch)&&!isNaN(this.d.getTime())},goto:function(t){var e=this.clone();return e.tz=l(t,e.timezones),e},isAwake:function(){var t=this.hour();return!(t<8||t>22)},isAsleep:function(){return!this.isAwake()},log:function(){return console.log(""),console.log(a(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(a(this,"full-short")),this},debug:function(){var t=this.timezone(),e=this.format("MM")+" "+this.format("date-ordinal")+" "+this.year();return e+="\n - "+this.format("time"),console.log("\n\n",e+"\n - "+t.name+" ("+t.current.offset+")"),this}};m.inDST=m.isDST,m.round=m.nearest,e.exports=m},{"./fns":8,"./input":11,"./methods/diff":18,"./methods/format":20,"./methods/format/unixFmt":21,"./methods/nearest":23,"./methods/progress":24,"./methods/since":32,"./methods/startOf":33,"./timezone/find":36,"./timezone/index":38}],16:[function(t,e,n){"use strict";var a=t("./set/walk"),r=t("../data/milliseconds"),o=t("../data/monthLengths"),i=t("../fns"),s=["millisecond","second","minute","hour","date","month"],u={second:s.slice(0,1),minute:s.slice(0,2),quarterhour:s.slice(0,2),hour:s.slice(0,3),date:s.slice(0,4),month:s.slice(0,4),quarter:s.slice(0,4),season:s.slice(0,4),year:s};u.week=u.date,u.season=u.date,u.quarter=u.date;var c={month:!0,quarter:!0,season:!0,year:!0};e.exports=function(t){t.prototype.add=function(t,e){var n=this.clone(),s=this.clone();e=i.normalize(e),r[e]?n.epoch+=r[e]*t:"week"===e?n.epoch+=r.day*(7*t):"quarter"===e||"season"===e?n.epoch+=r.month*(4*t):"season"===e?n.epoch+=r.month*(4*t):"quarterhour"===e&&(n.epoch+=15*r.minute);var d={};if(u[e]&&u[e].forEach(function(t){d[t]=s[t]()}),"month"===e?(d.month=s.month()+t,d=function(t,e){if(t.month>0){var n=parseInt(t.month/12,10);t.year=e.year()+n,t.month=t.month%12}else if(t.month<0){var a=Math.floor(Math.abs(t.month)/13,10);a=Math.abs(a)+1,t.year=e.year()-a,t.month=t.month%12,t.month=t.month+12,12===t.month&&(t.month=0)}return t}(d,s)):"date"===e&&0!==t&&s.isSame(n,"day")?d.date=s.date()+t:"year"===e&&n.year()===s.year()&&(n.epoch+=r.week),c[e]){var l=o[d.month];d.date=s.date(),d.date>l&&(d.date=l)}return a(n,d),n},t.prototype.subtract=function(t,e){return this.clone().add(-1*t,e)},t.prototype.minus=t.prototype.subtract,t.prototype.plus=t.prototype.add}},{"../data/milliseconds":3,"../data/monthLengths":4,"../fns":8,"./set/walk":31}],17:[function(t,e,n){"use strict";var a=t("../fns");e.exports=function(t){var e={isAfter:function(t){t=a.beADate(t,this);var e=a.getEpoch(t);return null===e?null:this.epoch>e},isBefore:function(t){t=a.beADate(t,this);var e=a.getEpoch(t);return null===e?null:this.epoch<e},isEqual:function(t){t=a.beADate(t,this);var e=a.getEpoch(t);return null===e?null:this.epoch===e},isBetween:function(t,e){t=a.beADate(t,this),e=a.beADate(e,this);var n=a.getEpoch(t);if(null===n)return null;var r=a.getEpoch(e);return null===r?null:n<this.epoch&&this.epoch<r}};Object.keys(e).forEach(function(n){t.prototype[n]=e[n]})}},{"../fns":8}],18:[function(t,e,n){"use strict";var a=t("../fns"),r=function(){},o=function(t,e,n){var a=0;for(t=t.clone();t.isBefore(e);)t=t.add(1,n),a+=1;return t.isSame(e,n)||(a-=1),a},i=function(t,e){var n=e.epoch-t.epoch,a={milliseconds:n,seconds:parseInt(n/1e3,10)};return a.minutes=parseInt(a.seconds/60,10),a.hours=parseInt(a.minutes/60,10),a},s=function(t,e,n){return e=a.beADate(e,t),n?(n=a.normalize(n),!0!==/s$/.test(n)&&(n+="s"),"milliseconds"===n||"seconds"===n||"minutes"===n?i(t,e)[n]:t.isBefore(e)?o(t,e,n):-1*o(e,t,n)):r(t,e)};r=function(t,e){var n=i(t,e);return n.years=s(t,e,"year"),n.months=s(t,e,"month"),n.weeks=s(t,e,"week"),n.days=s(t,e,"day"),0===n.years&&(n.hours=s(t,e,"hour")),n},e.exports=s},{"../fns":8}],19:[function(t,e,n){"use strict";var a=t("../../fns");e.exports=function(t){var e=t.timezone().current.offset,n="00";return e%1==.5&&(n="30",e=Math.floor(e)),e<0?(e*=-1,e="-"+(e=a.zeroPad(e,2))):e="+"+(e=a.zeroPad(e,2)),"+00:00"==(e=e+":"+n)&&(e="Z"),e}},{"../../fns":8}],20:[function(t,e,n){"use strict";var a=t("../../fns"),r=t("../../data/months"),o=t("../../data/days"),i=t("./_offset"),s={day:function(t){return a.titleCase(t.dayName())},"day-short":function(t){return a.titleCase(o.short()[t.day()])},"day-number":function(t){return t.day()},"day-ordinal":function(t){return a.ordinal(t.day())},"day-pad":function(t){return a.zeroPad(t.day())},date:function(t){return t.date()},"date-ordinal":function(t){return a.ordinal(t.date())},"date-pad":function(t){return a.zeroPad(t.date())},month:function(t){return a.titleCase(t.monthName())},"month-short":function(t){return a.titleCase(r.short()[t.month()])},"month-number":function(t){return t.month()},"month-ordinal":function(t){return a.ordinal(t.month())},"month-pad":function(t){return a.zeroPad(t.month())},year:function(t){var e=t.year();return e>0?e:(e=Math.abs(e),e+" BC")},"year-short":function(t){var e=t.year();return e>0?"'".concat(String(t.year()).substr(2,4)):(e=Math.abs(e))+" BC"},time:function(t){return t.time()},"time-24":function(t){return"".concat(t.hour24(),":").concat(a.zeroPad(t.minute()))},hour:function(t){return t.hour12()},"hour-24":function(t){return t.hour24()},minute:function(t){return t.minute()},"minute-pad":function(t){return a.zeroPad(t.minute())},second:function(t){return t.second()},"second-pad":function(t){return a.zeroPad(t.second())},ampm:function(t){return t.ampm()},quarter:function(t){return"Q"+t.quarter()},season:function(t){return t.season()},era:function(t){return t.era()},timezone:function(t){return t.timezone().name},offset:function(t){return i(t)},numeric:function(t){return"".concat(t.year(),"/").concat(a.zeroPad(t.month()+1),"/").concat(a.zeroPad(t.date()))},"numeric-us":function(t){return"".concat(a.zeroPad(t.month()+1),"/").concat(a.zeroPad(t.date()),"/").concat(t.year())},"numeric-uk":function(t){return"".concat(a.zeroPad(t.date()),"/").concat(a.zeroPad(t.month()+1),"/").concat(t.year())},"mm/dd":function(t){return"".concat(a.zeroPad(t.month()+1),"/").concat(a.zeroPad(t.date()))},iso:function(t){var e=a.zeroPad(t.month()+1),n=a.zeroPad(t.date()),r=a.zeroPad(t.h24()),o=a.zeroPad(t.minute()),s=a.zeroPad(t.second()),u=a.zeroPad(t.millisecond(),3),c=i(t);return"".concat(t.year(),"-").concat(e,"-").concat(n,"T").concat(r,":").concat(o,":").concat(s,".").concat(u).concat(c)},"iso-short":function(t){var e=a.zeroPad(t.month()+1),n=a.zeroPad(t.date());return"".concat(t.year(),"-").concat(e,"-").concat(n)},"iso-utc":function(t){return new Date(t.epoch).toISOString()},nice:function(t){return"".concat(r.short()[t.month()]," ").concat(a.ordinal(t.date()),", ").concat(t.time())},"nice-year":function(t){return"".concat(r.short()[t.month()]," ").concat(a.ordinal(t.date()),", ").concat(t.year())},"nice-day":function(t){return"".concat(o.short()[t.day()]," ").concat(a.titleCase(r.short()[t.month()])," ").concat(a.ordinal(t.date()))},"nice-full":function(t){return"".concat(t.dayName()," ").concat(a.titleCase(t.monthName())," ").concat(a.ordinal(t.date()),", ").concat(t.time())}},u={"day-name":"day","month-name":"month","iso 8601":"iso","time-h24":"time-24","time-12":"time","time-h12":"time",tz:"timezone","day-num":"day-number","month-num":"month-number","nice-short":"nice",mdy:"numeric-us",dmy:"numeric-uk",ymd:"numeric","yyyy/mm/dd":"numeric","mm/dd/yyyy":"numeric-us","dd/mm/yyyy":"numeric-us","little-endian":"numeric-uk","big-endian":"numeric"};Object.keys(u).forEach(function(t){return s[t]=s[u[t]]});e.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!0!==t.isValid())return"";if(s.hasOwnProperty(e)){var n=String(s[e](t)||"");return"ampm"!==e&&(n=a.titleCase(n)),n}if(-1!==e.indexOf("{"))return e=e.replace(/\{(.+?)\}/g,function(e,n){return n=n.toLowerCase().trim(),s.hasOwnProperty(n)?String(s[n](t)||""):""});return t.format("iso-short")}},{"../../data/days":2,"../../data/months":5,"../../fns":8,"./_offset":19}],21:[function(t,e,n){"use strict";var a=t("../../fns").zeroPad,r={G:function(t){return t.era()},GG:function(t){return t.era()},GGG:function(t){return t.era()},GGGG:function(t){return"AD"===t.era()?"Anno Domini":"Before Christ"},y:function(t){return t.year()},yy:function(t){return parseInt(String(t.year()).substr(2,4),10)},yyy:function(t){return t.year()},yyyy:function(t){return t.year()},yyyyy:function(t){return"0"+t.year()},Q:function(t){return t.quarter()},QQ:function(t){return t.quarter()},QQQ:function(t){return t.quarter()},QQQQ:function(t){return t.quarter()},M:function(t){return t.month()+1},MM:function(t){return a(t.month()+1)},MMM:function(t){return t.format("month-short")},MMMM:function(t){return t.format("month")},w:function(t){return t.week()},ww:function(t){return a(t.week())},d:function(t){return t.date()},dd:function(t){return a(t.date())},D:function(t){return t.dayOfYear()},DD:function(t){return a(t.dayOfYear())},DDD:function(t){return a(t.dayOfYear(),3)},E:function(t){return t.format("day-short")},EE:function(t){return t.format("day-short")},EEE:function(t){return t.format("day-short")},EEEE:function(t){return t.format("day")},EEEEE:function(t){return t.format("day")[0]},e:function(t){return t.day()},ee:function(t){return t.day()},eee:function(t){return t.format("day-short")},eeee:function(t){return t.format("day")},eeeee:function(t){return t.format("day")[0]},a:function(t){return t.ampm().toUpperCase()},aa:function(t){return t.ampm().toUpperCase()},aaa:function(t){return t.ampm().toUpperCase()},aaaa:function(t){return t.ampm().toUpperCase()},h:function(t){return t.h12()},hh:function(t){return a(t.h12())},H:function(t){return t.hour()},HH:function(t){return a(t.hour())},m:function(t){return t.minute()},mm:function(t){return a(t.minute())},s:function(t){return t.second()},ss:function(t){return a(t.second())},A:function(t){return t.epoch-t.startOf("day").epoch},z:function(t){return t.timezone().name},zz:function(t){return t.timezone().name},zzz:function(t){return t.timezone().name},zzzz:function(t){return t.timezone().name},Z:function(t){return t.timezone().current.offset+"00"},ZZ:function(t){return t.timezone().current.offset+"00"},ZZZ:function(t){return t.timezone().current.offset+"00"},ZZZZ:function(t){return t.timezone().current.offset+":00"}},o=function(t,e,n){for(var a=t,o=e,i=0;i<n;i+=1)r[a]=r[o],a+=t,o+=e};o("q","Q",4),o("L","M",4),o("Y","y",4),o("c","e",4),o("k","H",2),o("K","h",2),o("S","s",2),o("v","z",4),o("V","Z",4);e.exports=function(t,e){for(var n=e.split(""),a=[n[0]],o=!1,i=1;i<n.length;i+=1){if("'"===n[i]){if(!0!=(o=!o)||!n[i+1]||"'"!==n[i+1])continue;o=!0}!0===o||n[i]===a[a.length-1][0]?a[a.length-1]+=n[i]:a.push(n[i])}return a.reduce(function(e,n){return void 0!==r[n]?e+=r[n](t)||"":e+=n,e},"")}},{"../../fns":8}],22:[function(t,e,n){"use strict";var a=t("../fns"),r=t("../data/days"),o=t("../data/months");e.exports=function(t){var e={i18n:function(t){if(!(a.isObject(t)&&a.isObject(t.days)&&a.isObject(t.months)&&a.isArray(t.days.short)&&a.isArray(t.days.long)&&a.isArray(t.months.short)&&a.isArray(t.months.long)))throw new Error("Invalid i18n payload passed.");r.set(t.days),o.set(t.months)}};Object.keys(e).forEach(function(n){t.prototype[n]=e[n]})}},{"../data/days":2,"../data/months":5,"../fns":8}],23:[function(t,e,n){"use strict";e.exports=function(t,e){e=(e=e.toLowerCase()).replace(/s$/,"");var n=t.progress();return void 0!==n[e]?(n[e]>.5&&(t=t.add(1,e)),t=t.startOf(e)):!1===t.silent&&console.warn("no known unit '"+e+"'"),t}},{}],24:[function(t,e,n){"use strict";e.exports=function(t){var e={};return["year","season","quarter","month","week","day","quarterHour","hour","minute"].forEach(function(n){var a=t.clone().startOf(n),r=t.clone().endOf(n).epoch-a.epoch,o=(t.epoch-a.epoch)/r;e[n]=parseFloat(o.toFixed(2))}),e}},{}],25:[function(t,e,n){"use strict";var a=t("../../data/quarters"),r=t("../../data/seasons"),o=t("../set/set"),i=t("../../fns"),s=function(t){return t=(t=(t=t.minute(0)).second(0)).millisecond(1)};e.exports={time:function(t){if(void 0!==t){var e=this.clone();return e.epoch=o.time(e,t),e}return"".concat(this.h12(),":").concat(i.zeroPad(this.minute())).concat(this.ampm())},week:function(t){if(void 0!==t){var e=this.clone();return e=(e=(e=e.month(0)).date(1)).day("monday"),"december"===(e=s(e)).monthName()&&(e=e.add(1,"week")),t-=1,e=e.add(t,"weeks")}var n=this.clone();n=(n=n.month(0)).date(1),"december"===(n=(n=s(n)).day("monday")).monthName()&&(n=n.add(1,"week"));var a=this.epoch;if(n.epoch>a)return 1;for(var r=0;r<52;r++){if(n.epoch>a)return r;n=n.add(1,"week")}return 52},quarter:function(t){if(void 0!==t&&("string"==typeof t&&(t=t.replace(/^q/i,""),t=parseInt(t,10)),a[t])){var e=this.clone(),n=a[t][0];return e=(e=(e=e.month(n)).date(1)).startOf("day")}for(var r=this.d.getMonth(),o=1;o<a.length;o++)if(r<a[o][0])return o-1;return 4},hourFloat:function(t){if(void 0!==t){var e=this.clone(),n=t%1;n*=60;var a=parseInt(t,10);return e.epoch=o.hours(e,a),e.epoch=o.minutes(e,n),e}var r=this.d,i=r.getHours(),s=r.getMinutes();return i+(s/=60)},season:function(t){var e="north";if("South"===this.hemisphere()&&(e="south"),void 0!==t){for(var n=this.clone(),a=0;a<r[e].length;a++)t===r[e][a][0]&&(n=(n=(n=n.month(r[e][a][1])).date(1)).startOf("day"));return n}for(var o=this.d.getMonth(),i=0;i<r[e].length-1;i++)if(o>=r[e][i][1]&&o<r[e][i+1][1])return r[e][i][0];return"winter"}}},{"../../data/quarters":6,"../../data/seasons":7,"../../fns":8,"../set/set":30}],26:[function(t,e,n){"use strict";var a=t("./normal"),r=t("./destructive"),o=t("./tricky");e.exports=function(t){Object.keys(a).forEach(function(e){t.prototype[e]=a[e]}),Object.keys(r).forEach(function(e){t.prototype[e]=r[e]}),Object.keys(o).forEach(function(e){t.prototype[e]=o[e]})}},{"./destructive":25,"./normal":27,"./tricky":28}],27:[function(t,e,n){"use strict";var a=t("../set/set"),r=t("../set/walk"),o={millisecond:function(t){if(void 0!==t){var e=this.clone();return e.epoch=a.milliseconds(e,t),e}return this.d.getMilliseconds()},second:function(t){if(void 0!==t){var e=this.clone();return e.epoch=a.seconds(e,t),e}return this.d.getSeconds()},minute:function(t){if(void 0!==t){var e=this.clone();return e.epoch=a.minutes(e,t),e}return this.d.getMinutes()},hour:function(t){var e=this.d;if(void 0!==t){var n=this.clone();return n.epoch=a.hours(n,t),r(n,{month:this.month(),date:this.date(),hour:t}),n}return e.getHours()},hour12:function(t){var e=this.d;if(void 0!==t){var n=this.clone(),r=(t=""+t).match(/^([0-9]+)(am|pm)$/);if(r){var o=parseInt(r[1],10);"pm"===r[2]&&(o+=12),n.epoch=a.hours(n,o)}return n}var i=e.getHours();return i>12&&(i-=12),0===i&&(i=12),i},date:function(t){if(void 0!==t){var e=this.clone();return e.epoch=a.date(e,t),e}return this.d.getDate()},month:function(t){if(void 0!==t){var e=this.clone();return e.epoch=a.month(e,t),e}return this.d.getMonth()},year:function(t){if(void 0!==t){var e=this.clone();return e.epoch=a.year(e,t),e}return this.d.getFullYear()},iso:function(t){return void 0!==t?this.set(t):this.format("iso")},dayTime:function(t){if(void 0!==t){var e={morning:"7:00am",breakfast:"7:00am",noon:"12:00am",lunch:"12:00pm",afternoon:"2:00pm",evening:"6:00pm",dinner:"6:00pm",night:"11:00pm",midnight:"23:59pm"},n=this.clone();return t=(t=t||"").toLowerCase(),!0===e.hasOwnProperty(t)&&(n=n.time(e[t])),n}var a=this.hour();return a<6?"night":a<12?"morning":a<17?"afternoon":a<22?"evening":"night"},dayOfYear:function(t){if(void 0!==t){var e=this.clone();return e.epoch=a.dayOfYear(e,t),e}for(var n,r=0,o=this.d.getMonth(),i=1;i<=o;i++)(n=new Date).setDate(1),n.setYear(this.d.getFullYear()),n.setHours(1),n.setMinutes(1),n.setMonth(i),n.setHours(-2),r+=n.getDate();return r+this.d.getDate()},era:function(t){if(void 0!==t){var e=this.clone();t=t.toLowerCase();var n=e.d.getFullYear();return"bc"===t&&n>0&&(e.epoch=a.year(e,-1*n)),"ad"===t&&n<0&&(e.epoch=a.year(e,-1*n)),e}return this.d.getFullYear()<0?"BC":"AD"},from:function(t){return(t=this.clone().set(t)).since(this)},fromNow:function(){return this.clone().set(Date.now()).since(this)}};o.milliseconds=o.millisecond,o.seconds=o.second,o.minutes=o.minute,o.hours=o.hour,o.hour24=o.hour,o.h12=o.hour12,o.h24=o.hour24,o.days=o.day,e.exports=o},{"../set/set":30,"../set/walk":31}],28:[function(t,e,n){"use strict";var a=t("../../data/days"),r=t("../../data/months"),o=t("../set/walk");e.exports={day:function(t){if(void 0===t)return this.d.getDay();var e=this.clone(),n=t;"string"==typeof t&&(t=t.toLowerCase(),-1===(n=a.short().indexOf(t))&&(n=a.long().indexOf(t)));var r=this.d.getDay(),i=r-n,s=this.subtract(24*i,"hours");return o(s,{hour:e.hour(),minute:e.minute(),second:e.second()}),s},ampm:function(t){var e="am";if(this.hour()>=12&&(e="pm"),void 0===t)return e;var n=this.clone();return t===e?n:n="am"===n?n.subtract(12,"hours"):n.add(12,"hours")},dayName:function(t){if(void 0===t)return a.long()[this.day()];var e=this.clone();return e=e.day(t)},monthName:function(t){if(void 0===t)return r.long()[this.month()];var e=this.clone();return e=e.month(t)}}},{"../../data/days":2,"../../data/months":5,"../set/walk":31}],29:[function(t,e,n){"use strict";var a={millisecond:function(t){return t.epoch},second:function(t){return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second()].join("-")},minute:function(t){return[t.year(),t.month(),t.date(),t.hour(),t.minute()].join("-")},hour:function(t){return[t.year(),t.month(),t.date(),t.hour()].join("-")},day:function(t){return[t.year(),t.month(),t.date()].join("-")},week:function(t){return[t.year(),t.week()].join("-")},month:function(t){return[t.year(),t.month()].join("-")},quarter:function(t){return[t.year(),t.quarter()].join("-")},year:function(t){return t.year()}};a.date=a.day;e.exports=function(t){t.prototype.isSame=function(e,n){return"string"!=typeof e&&"number"!=typeof e||(e=new t(e,this.timezone.name)),n=n.replace(/s$/,""),a[n]?a[n](this)===a[n](e):null}}},{}],30:[function(t,e,n){"use strict";var a=t("../../data/milliseconds"),r=t("../../data/months"),o=t("../../data/monthLengths"),i=t("./walk"),s=function(t){return"string"==typeof t&&(t=parseInt(t,10)),t},u=["year","month","date","hour","minute","second","millisecond"],c=function(t,e,n){for(var a=u.indexOf(n),r=u.slice(a,u.length),o=0;o<r.length;o++){var i=e[r[o]]();t[r[o]](i)}return t};e.exports={milliseconds:function(t,e){e=s(e);var n=t.millisecond()-e;return t.epoch-n},seconds:function(t,e){e=s(e);var n=(t.second()-e)*a.second;return t.epoch-n},minutes:function(t,e){e=s(e);var n=t.clone(),r=(t.minute()-e)*a.minute;return t.epoch-=r,c(t,n,"second"),t.epoch},hours:function(t,e){e=s(e);var n=t.clone(),r=(t.hour()-e)*a.hour;return t.epoch-=r,c(t,n,"minute"),t.epoch},time:function(t,e){var n=e.match(/([0-9]{1,2}):([0-9]{1,2})(am|pm)?/);if(!n){if(!(n=e.match(/([0-9]{1,2})(am|pm)/)))return t.epoch;n.splice(2,0,"0")}var a=!1,r=parseInt(n[1],10),o=parseInt(n[2],10);return r>12&&(a=!0),!1===a&&("am"===n[3]&&12===r&&(r=0),"pm"===n[3]&&r<12&&(r+=12)),(t=(t=(t=(t=t.hour(r)).minute(o)).second(0)).millisecond(0)).epoch},date:function(t,e){return e=s(e),i(t,{date:e}),t.epoch},month:function(t,e){"string"==typeof e&&(e=r.mapping()[e.toLowerCase()]),e=s(e);var n=t.date();return n>o[e]&&(n=o[e]),i(t,{month:e,date:n}),t.epoch},year:function(t,e){return e=s(e),i(t,{year:e}),t.epoch},dayOfYear:function(t,e){e=s(e);var n=t.clone(),r=(e-t.dayOfYear())*a.day;return t.epoch+=r,c(t,n,"hour"),t.epoch}}},{"../../data/milliseconds":3,"../../data/monthLengths":4,"../../data/months":5,"./walk":31}],31:[function(t,e,n){"use strict";var a=t("../../data/milliseconds"),r=function(t,e,n,r,o){var i=t.d[n]();if(i!==e){var s=null===o?null:t.d[o](),u=t.epoch,c=e-i;t.epoch+=a[r]*c,"day"===r&&Math.abs(c)>28&&(t.epoch+=a.hour);for(var d=a[r]/2;t.d[n]()<e;)t.epoch+=d;for(;t.d[n]()>e;)t.epoch-=d;null!==o&&s!==t.d[o]()&&(console.warn("spacetime warning: missed setting "+r),t.epoch=u)}},o={year:{valid:function(t){return t>-4e3&&t<4e3},walkTo:function(t,e){return r(t,e,"getFullYear","year",null)}},month:{valid:function(t){return t>=0&&t<=11},walkTo:function(t,e){var n=t.d,r=n.getMonth(),o=t.epoch,i=n.getYear();if(r!==e){var s=e-r;for(t.epoch+=a.day*(28*s),i!==t.d.getYear()&&(t.epoch=o);t.d.getMonth()<e;)t.epoch+=a.day;for(;t.d.getMonth()>e;)t.epoch-=a.day}}},date:{valid:function(t){return t>0&&t<=31},walkTo:function(t,e){return r(t,e,"getDate","day","getMonth")}},hour:{valid:function(t){return t>=0&&t<24},walkTo:function(t,e){return r(t,e,"getHours","hour","getDate")}},minute:{valid:function(t){return t>=0&&t<60},walkTo:function(t,e){return r(t,e,"getMinutes","minute","getHours")}},second:{valid:function(t){return t>=0&&t<60},walkTo:function(t,e){t.epoch=t.seconds(e).epoch}},millisecond:{valid:function(t){return t>=0&&t<1e3},walkTo:function(t,e){t.epoch=t.milliseconds(e).epoch}}};e.exports=function(t,e){for(var n=Object.keys(o),a=t.clone(),r=0;r<n.length;r++){var i=n[r],s=e[i];if(void 0===s&&(s=a[i]()),"string"==typeof s&&(s=parseInt(s,10)),!o[i].valid(s))return t.epoch=null,void(!1===t.silent&&console.warn("invalid "+i+": "+s));o[i].walkTo(t,s)}}},{"../../data/milliseconds":3}],32:[function(t,e,n){"use strict";var a=t("../fns"),r={months:{almost:10,over:4},days:{almost:25,over:10},hours:{almost:20,over:8},minutes:{almost:50,over:20},seconds:{almost:50,over:20}};function o(t,e){return 1===t&&(e=e.slice(0,-1)),t+" "+e}e.exports=function(t,e){var n,i,s,u=function(t,e){var n=t.isBefore(e),a=n?e:t,r=n?t:e;r=r.clone();var o={years:0,months:0,days:0,hours:0,minutes:0,seconds:0};return Object.keys(o).forEach(function(t){if(!r.isSame(a,t)){var e=r.diff(a,t);(r=r.add(e,t)).epoch>a.epoch+10&&(r=r.subtract(1,t),e-=1),o[t]=e}}),n&&Object.keys(o).forEach(function(t){0!==o[t]&&(o[t]*=-1)}),o}(t,e=a.beADate(e,t));if(!0===Object.keys(u).every(function(t){return!u[t]}))return{diff:u,rounded:"now",qualified:"now",precise:"now"};var c=[];return Object.keys(u).forEach(function(t,e,a){var s=Math.abs(u[t]);if(0!==s){var d=o(s,t);if(c.push(d),!n){if(n=i=d,e>4)return;var l=a[e+1],h=Math.abs(u[l]);h>r[l].almost?(n=o(s+1,t),i="almost "+n):h>r[l].over&&(i="over "+d)}}}),s=c.splice(0,2).join(", "),!0===t.isAfter(e)?(n+=" ago",i+=" ago",s+=" ago"):(n="in "+n,i="in "+i,s="in "+s),{diff:u,rounded:n,qualified:i,precise:s}}},{"../fns":8}],33:[function(t,e,n){"use strict";var a=t("../data/seasons"),r=t("../data/quarters"),o=t("./set/walk"),i={minute:function(t){return o(t,{second:0,millisecond:0}),t},quarterHour:function(t){var e=t.minutes();return t=e>=45?t.minutes(45):e>=30?t.minutes(30):e>=15?t.minutes(15):t.minutes(0),o(t,{second:0,millisecond:0}),t},hour:function(t){return o(t,{minute:0,second:0,millisecond:0}),t},day:function(t){return o(t,{hour:0,minute:0,second:0,millisecond:0}),t},week:function(t){var e=t.clone();return(t=t.day(1)).isAfter(e)&&(t=t.subtract(1,"week")),o(t,{hour:0,minute:0,second:0,millisecond:0}),t},month:function(t){return o(t,{date:1,hour:0,minute:0,second:0,millisecond:0}),t},quarter:function(t){var e=t.quarter();return r[e]&&o(t,{month:r[e][0],date:r[e][1],hour:0,minute:0,second:0,millisecond:0}),t},season:function(t){var e=t.season(),n="north";"South"===t.hemisphere()&&(n="south");for(var r=0;r<a[n].length;r++)if(a[n][r][0]===e){var i=t.year();return"winter"===e&&t.month()<3&&(i-=1),o(t,{year:i,month:a[n][r][1],date:a[n][r][2],hour:0,minute:0,second:0,millisecond:0}),t}return t},year:function(t){return o(t,{month:0,date:1,hour:0,minute:0,second:0,millisecond:0}),t}};i.date=i.day;e.exports={startOf:function(t,e){var n=t.clone();return i[e]?i[e](n):"summer"===e||"winter"===e?(n=n.season(e),i.season(n)):n},endOf:function(t,e){var n=t.clone();return i[e]?n=(n=(n=i[e](n)).add(1,e)).subtract(1,"milliseconds"):n}}},{"../data/quarters":6,"../data/seasons":7,"./set/walk":31}],34:[function(t,e,n){"use strict";var a=t("./timezone/quick"),r=t("./timezone/find"),o=t("./input"),i=t("./methods"),s=t("../zonefile/unpack"),u=function(t,e,n){if(n=n||{},this.epoch=null,this.tz=r(e,s),this.silent=n.silent||!0,Object.defineProperty(this,"d",{get:function(){var t=a(this),e=(new Date(this.epoch).getTimezoneOffset()||0)+60*t;e=60*e*1e3;var n=this.epoch+e;return new Date(n)}}),Object.defineProperty(this,"timezones",{get:function(){return s},set:function(t){return s=t,t}}),void 0!==t||null===t){var i=o(this,t,e,n);this.epoch=i.epoch}};Object.keys(i).forEach(function(t){u.prototype[t]=i[t]}),u.prototype.clone=function(){return new u(this.epoch,this.tz,{silent:this.silent})},t("./methods/query")(u),t("./methods/add")(u),t("./methods/same")(u),t("./methods/compare")(u),t("./methods/i18n")(u),e.exports=u},{"../zonefile/unpack":45,"./input":11,"./methods":15,"./methods/add":16,"./methods/compare":17,"./methods/i18n":22,"./methods/query":26,"./methods/same":29,"./timezone/find":36,"./timezone/quick":39}],35:[function(t,e,n){"use strict";var a=t("../../zonefile/informal").informal,r={"-8":"america/anchorage","-7":"america/los_angeles","-6":"america/denver","-5":"america/chicago","-4":"america/new_york","-3":"america/halifax",0:"etc/gmt",1:"europe/lisbon",2:"europe/berlin",8:"asia/shanghai"},o={"-3":"america/sao_paulo",0:"etc/gmt",1:"africa/lagos",2:"africa/johannesburg",3:"africa/nairobi",10:"australia/brisbane",12:"pacific/auckland"},i={"europe/belfast":!0,"europe/dublin":!0,"europe/guernsey":!0,"europe/jersey":!0},s=function(t,e){return t[1]&&!0===e.current.isDST?t[1].toUpperCase():t[0]?t[0].toUpperCase():null};e.exports=function(t,e){if(a.hasOwnProperty(t)){var n=s(a[t],e);if(null!==n)return n}var u=String(e.default_offset),c=function(t,e){return i.hasOwnProperty(t)?"1"===e?"BST":"GMT":null}(t,u);if(c)return c;if("North"===e.hemisphere&&r.hasOwnProperty(u)){var d=r[u];return s(a[d],e)||""}if("South"===e.hemisphere&&o.hasOwnProperty(u)){var l=o[u];return s(a[l],e)||""}return""}},{"../../zonefile/informal":44}],36:[function(t,e,n){"use strict";var a=t("../../zonefile/unpack"),r=t("../../zonefile/informal").lookup,o=t("./guessTz")(),i=/(\-?[0-9]+)h(rs)?/,s=Object.keys(a).reduce(function(t,e){var n=e.split("/")[1];return t[n=n.replace(/_/g," ")]=e,t},{});e.exports=function(t,e){if(!t)return o;var n=t.trim(),a=t.split("/");if(a.length>2&&!1===e.hasOwnProperty(n)&&(n=a[0]+"/"+a[1]),n=n.toLowerCase(),!0===e.hasOwnProperty(n))return n;if(n=function(t){return t=(t=(t=(t=(t=(t=t.replace(/ time/g,"")).replace(/ (standard|daylight|summer)/g,"")).replace(/\b(east|west|north|south)ern/g,"$1")).replace(/\b(africa|america|australia)n/g,"$1")).replace(/\beuropean/g,"europe")).replace(/\islands/g,"island")}(n),!0===e.hasOwnProperty(n))return n;if(!0===r.hasOwnProperty(n))return r[n];if(!0===s.hasOwnProperty(n))return s[n];var u=n.match(i);if(null!==u){var c=Number(u[1]),d="etc/gmt"+(c=((c*=-1)>0?"+":"")+c);if(e.hasOwnProperty(d))return d}return console.warn("Cannot find timezone named: '"+t+"'"),o}},{"../../zonefile/informal":44,"../../zonefile/unpack":45,"./guessTz":37}],37:[function(t,e,n){"use strict";e.exports=function(){var t=function(){if("undefined"==typeof Intl||void 0===Intl.DateTimeFormat)return null;var t=Intl.DateTimeFormat();if(void 0===t||void 0===t.resolvedOptions)return null;var e=t.resolvedOptions().timeZone;return!e||-1===e.indexOf("/")&&"UTC"===e?null:e}();return null===t?"asia/shanghai":t.toLowerCase()}},{}],38:[function(t,e,n){"use strict";var a=t("./find"),r=t("./summerTime"),o=t("./display");e.exports=function(t){var e=t.timezones,n=t.tz;if(!1===e.hasOwnProperty(n)&&(n=a(t.tz,e)),null===n)return!1===t.silent&&console.warn("Warn: could not find given or local timezone - '"+t.tz+"'"),{current:{epochShift:0}};var i,s,u=e[n],c={name:(i=n,i=(i=(i=i[0].toUpperCase()+i.substr(1)).replace(/\/gmt/,"/GMT")).replace(/[\/_]([a-z])/gi,function(t){return t.toUpperCase()})),hasDst:Boolean(u.dst),default_offset:u.offset,hemisphere:"s"===u.hem?"South":"North",current:{}};if(c.hasDst){var d=(s=u.dst)?s.split("->"):[];c.change={start:d[0],back:d[1]}}var l=u.offset,h=l;return!0===c.hasDst&&(h="North"===c.hemisphere?l-1:u.offset+1),!1===c.hasDst?(c.current.offset=l,c.current.isDST=!1):!0===r(t.epoch,c.change.start,c.change.back,l)?(c.current.offset=l,c.current.isDST="North"===c.hemisphere):(c.current.offset=h,c.current.isDST="South"===c.hemisphere),c.display=o(n,c,e),c}},{"./display":35,"./find":36,"./summerTime":40}],39:[function(t,e,n){"use strict";var a=t("./summerTime");e.exports=function(t){var e=t.timezones[t.tz];if(void 0===e.dst)return e.offset;var n=e.offset,r=e.offset+1;"n"===e.hem&&(r=n-1);var o=e.dst.split("->");return!0===a(t.epoch,o[0],o[1],n)?n:r}},{"./summerTime":40}],40:[function(t,e,n){"use strict";var a=t("../fns").zeroPad;e.exports=function(t,e,n,r){var o=new Date(t),i=(o.getTimezoneOffset()||0)+60*r;i=60*i*1e3;var s=function(t){return a(t.getMonth()+1)+"/"+a(t.getDate())+":"+a(t.getHours())}(o=new Date(t+i));return s>=e&&s<n}},{"../fns":8}],41:[function(t,e,n){"use strict";var a=t("./spacetime");e.exports=function(t,e){var n=new a(null),r=new a(null);n=n.time(t),r=e?r.time(e):n.add(59,"minutes");var o=n.hour(),i=r.hour();return Object.keys(n.timezones).filter(function(t){if(-1===t.indexOf("/"))return!1;var e=new a(null,t),s=e.hour();return s>=o&&s<=i&&!(s===o&&e.minute()<n.minute())&&!(s===i&&e.minute()>r.minute())})}},{"./spacetime":34}],42:[function(t,e,n){e.exports={"9|s":"2/dili,2/jayapura","9|n":"2/chita,2/khandyga,2/pyongyang,2/seoul,2/tokyo,11/palau","9.5|s|04/01:03->10/07:02":"4/adelaide,4/broken_hill,4/south,4/yancowinna","9.5|s":"4/darwin,4/north","8|s":"12/casey,2/kuala_lumpur,2/makassar,2/singapore,4/perth,4/west","8|n|03/25:03->09/29:23":"2/ulan_bator","8|n":"2/brunei,2/choibalsan,2/chongqing,2/chungking,2/harbin,2/hong_kong,2/irkutsk,2/kuching,2/macao,2/macau,2/manila,2/shanghai,2/taipei,2/ujung_pandang,2/ulaanbaatar","8.75|s":"4/eucla","7|s":"12/davis,2/jakarta,9/christmas","7|n":"2/bangkok,2/barnaul,2/ho_chi_minh,2/hovd,2/krasnoyarsk,2/novokuznetsk,2/novosibirsk,2/phnom_penh,2/pontianak,2/saigon,2/vientiane","6|s":"12/vostok","6|n":"2/almaty,2/bishkek,2/dacca,2/dhaka,2/kashgar,2/omsk,2/qyzylorda,2/thimbu,2/thimphu,2/urumqi,9/chagos","6.5|n":"2/rangoon,9/cocos","5|s":"12/mawson,9/kerguelen","5|n":"2/aqtau,2/aqtobe,2/ashgabat,2/ashkhabad,2/atyrau,2/baku,2/dushanbe,2/karachi,2/oral,2/samarkand,2/tashkent,2/yekaterinburg,9/maldives","5.75|n":"2/kathmandu,2/katmandu","5.5|n":"2/calcutta,2/colombo,2/kolkata","4|s":"9/reunion","4|n":"2/dubai,2/muscat,2/tbilisi,2/yerevan,8/astrakhan,8/samara,8/saratov,8/ulyanovsk,9/mahe,9/mauritius","4.5|n|03/22:00->09/21:24":"2/tehran","4.5|n":"2/kabul","3|s":"12/syowa,9/antananarivo","3|n|03/30:00->10/26:01":"2/amman","3|n|03/30:00->10/25:24":"2/damascus","3|n|03/25:03->10/28:04":"2/nicosia,8/athens,8/bucharest,8/helsinki,8/kiev,8/mariehamn,8/nicosia,8/riga,8/sofia,8/tallinn,8/uzhgorod,8/vilnius,8/zaporozhye","3|n|03/25:02->10/28:03":"8/chisinau,8/tiraspol","3|n|03/25:00->10/27:24":"2/beirut","3|n|03/24:01->10/27:01":"2/gaza,2/hebron","3|n|03/23:02->10/28:02":"2/jerusalem,2/tel_aviv","3|n":"0/addis_ababa,0/asmara,0/asmera,0/dar_es_salaam,0/djibouti,0/juba,0/kampala,0/mogadishu,0/nairobi,2/aden,2/baghdad,2/bahrain,2/istanbul,2/kuwait,2/qatar,2/riyadh,8/istanbul,8/kirov,8/minsk,8/moscow,8/simferopol,8/volgograd,9/comoro,9/mayotte","2|s|03/25:02->10/28:02":"12/troll","2|s":"0/gaborone,0/harare,0/johannesburg,0/lubumbashi,0/lusaka,0/maputo,0/maseru,0/mbabane","2|n|03/25:02->10/28:03":"0/ceuta,arctic/longyearbyen,3/jan_mayen,8/amsterdam,8/andorra,8/belgrade,8/berlin,8/bratislava,8/brussels,8/budapest,8/busingen,8/copenhagen,8/gibraltar,8/ljubljana,8/luxembourg,8/madrid,8/malta,8/monaco,8/oslo,8/paris,8/podgorica,8/prague,8/rome,8/san_marino,8/sarajevo,8/skopje,8/stockholm,8/tirane,8/vaduz,8/vatican,8/vienna,8/warsaw,8/zagreb,8/zurich","2|n":"0/blantyre,0/bujumbura,0/cairo,0/khartoum,0/kigali,0/tripoli,8/kaliningrad","1|s|04/02:01->09/03:03":"0/windhoek","1|s":"0/kinshasa,0/luanda","1|n|07/02:03->10/29:02":"0/casablanca,0/el_aaiun","1|n|03/25:01->10/28:02":"3/canary,3/faeroe,3/faroe,3/madeira,8/belfast,8/dublin,8/guernsey,8/isle_of_man,8/jersey,8/lisbon,8/london","1|n":"0/algiers,0/bangui,0/brazzaville,0/douala,0/lagos,0/libreville,0/malabo,0/ndjamena,0/niamey,0/porto-novo,0/tunis","14|n":"11/kiritimati","13|s|04/01:04->09/30:03":"11/apia","13|s|01/15:02->11/05:03":"11/tongatapu","13|n":"11/enderbury,11/fakaofo","12|s|04/01:03->09/30:02":"12/mcmurdo,12/south_pole,11/auckland","12|s|01/14:03->11/04:02":"11/fiji","12|n":"2/anadyr,2/kamchatka,2/srednekolymsk,11/funafuti,11/kwajalein,11/majuro,11/nauru,11/tarawa,11/wake,11/wallis","12.75|s|04/07:03->09/29:02":"11/chatham","11|s":"12/macquarie,11/bougainville","11|n":"2/magadan,2/sakhalin,11/efate,11/guadalcanal,11/kosrae,11/noumea,11/pohnpei,11/ponape","11.5|n":"11/norfolk","10|s|04/01:03->10/07:02":"4/act,4/canberra,4/currie,4/hobart,4/melbourne,4/nsw,4/sydney,4/tasmania,4/victoria","10|s":"12/dumontdurville,4/brisbane,4/lindeman,4/queensland","10|n":"2/ust-nera,2/vladivostok,2/yakutsk,11/chuuk,11/guam,11/port_moresby,11/saipan,11/truk,11/yap","10.5|s|04/01:01->10/07:02":"4/lhi,4/lord_howe","0|n|03/25:00->10/28:01":"1/scoresbysund,3/azores","0|n":"0/abidjan,0/accra,0/bamako,0/banjul,0/bissau,0/conakry,0/dakar,0/freetown,0/lome,0/monrovia,0/nouakchott,0/ouagadougou,0/sao_tome,0/timbuktu,1/danmarkshavn,3/reykjavik,3/st_helena,13/gmt,13/gmt+0,13/gmt-0,13/gmt0,13/greenwich,13/utc,13/universal,13/zulu","-9|n|03/11:02->11/04:02":"1/adak,1/atka","-9|n":"11/gambier","-9.5|n":"11/marquesas","-8|n|03/11:02->11/04:02":"1/anchorage,1/juneau,1/metlakatla,1/nome,1/sitka,1/yakutat","-8|n":"11/pitcairn","-7|n|03/11:02->11/04:02":"1/dawson,1/ensenada,1/los_angeles,1/santa_isabel,1/tijuana,1/vancouver,1/whitehorse,6/pacific,6/yukon,10/bajanorte","-7|n":"1/creston,1/dawson_creek,1/hermosillo,1/phoenix","-6|s|05/12:22->08/11:22":"7/easterisland,11/easter","-6|n|04/01:02->10/28:02":"1/chihuahua,1/mazatlan,10/bajasur","-6|n|03/11:02->11/04:02":"1/boise,1/cambridge_bay,1/denver,1/edmonton,1/inuvik,1/ojinaga,1/shiprock,1/yellowknife,6/mountain","-6|n":"1/belize,1/costa_rica,1/el_salvador,1/guatemala,1/managua,1/regina,1/swift_current,1/tegucigalpa,6/east-saskatchewan,6/saskatchewan,11/galapagos","-5|s":"1/lima,1/rio_branco,5/acre","-5|n|04/01:02->10/28:02":"1/bahia_banderas,1/merida,1/mexico_city,1/monterrey,10/general","-5|n|03/12:03->11/05:01":"1/north_dakota","-5|n|03/11:02->11/04:02":"1/chicago,1/knox_in,1/matamoros,1/menominee,1/rainy_river,1/rankin_inlet,1/resolute,1/winnipeg,6/central","-5|n":"1/atikokan,1/bogota,1/cancun,1/cayman,1/coral_harbour,1/eirunepe,1/guayaquil,1/jamaica,1/panama,1/porto_acre","-4|s|05/13:23->08/13:01":"12/palmer","-4|s|05/12:24->08/12:00":"1/santiago,7/continental","-4|s|03/24:24->10/07:00":"1/asuncion","-4|s|02/17:24->11/04:00":"1/campo_grande,1/cuiaba","-4|s":"1/la_paz,1/manaus,5/west","-4|n|03/12:03->11/05:01":"1/indiana,1/kentucky","-4|n|03/11:02->11/04:02":"1/detroit,1/fort_wayne,1/grand_turk,1/indianapolis,1/iqaluit,1/louisville,1/montreal,1/nassau,1/new_york,1/nipigon,1/pangnirtung,1/port-au-prince,1/thunder_bay,1/toronto,6/eastern","-4|n|03/11:00->11/04:01":"1/havana","-4|n":"1/anguilla,1/antigua,1/aruba,1/barbados,1/blanc-sablon,1/boa_vista,1/caracas,1/curacao,1/dominica,1/grenada,1/guadeloupe,1/guyana,1/kralendijk,1/lower_princes,1/marigot,1/martinique,1/montserrat,1/port_of_spain,1/porto_velho,1/puerto_rico,1/santo_domingo,1/st_barthelemy,1/st_kitts,1/st_lucia,1/st_thomas,1/st_vincent,1/tortola,1/virgin","-3|s|02/17:24->11/04:00":"1/sao_paulo,5/east","-3|s":"1/argentina,1/buenos_aires,1/cordoba,1/fortaleza,1/montevideo,1/punta_arenas,12/rothera,3/stanley","-3|n|03/11:02->11/04:02":"1/glace_bay,1/goose_bay,1/halifax,1/moncton,1/thule,3/bermuda,6/atlantic","-3|n":"1/araguaina,1/bahia,1/belem,1/catamarca,1/cayenne,1/jujuy,1/maceio,1/mendoza,1/paramaribo,1/recife,1/rosario,1/santarem","-2|s":"5/denoronha","-2|n|03/24:22->10/27:23":"1/godthab","-2|n|03/11:02->11/04:02":"1/miquelon","-2|n":"1/noronha,3/south_georgia","-2.5|n|03/11:02->11/04:02":"1/st_johns,6/newfoundland","-1|n":"3/cape_verde","-11|n":"11/midway,11/niue,11/pago_pago,11/samoa","-10|n":"11/honolulu,11/johnston,11/rarotonga,11/tahiti"}},{}],43:[function(t,e,n){"use strict";e.exports=["africa","america","asia","atlantic","australia","brazil","canada","chile","europe","indian","mexico","pacific","antarctica","etc"]},{}],44:[function(t,e,n){"use strict";var a={"america/halifax":["ast","adt","atlantic"],"america/new_york":["est","edt","eastern"],"america/chicago":["cst","cdt","central"],"america/denver":["mst","mdt","mountain"],"america/los_angeles":["pst","pdt","pacific"],"america/anchorage":["ahst","ahdt","akst","akdt","alaska"],"america/st_johns":["nst","ndt","nt","newfoundland","nddt"],"america/caracas":["vet",null,"venezuela"],"america/bogota":["cot",null,"colombia"],"america/cayenne":["gft",null,"french guiana"],"america/paramaribo":["srt",null,"suriname"],"america/guyana":["gyt"],"america/buenos_aires":["art",null,"argentina"],"america/la_paz":["bot",null,"bolivia"],"america/asuncion":["pyt","pyst","paraguay"],"america/santiago":["clt","clst","chile"],"america/lima":["pet",null,"peru"],"america/montevideo":["uyt",null,"uruguay"],"atlantic/stanley":["fkst",null,"falkland island"],"america/manaus":["amt"],"america/sao_paulo":["brt","brst"],"brazil/acre":["act"],"europe/london":["gmt","bst","british"],"etc/gmt":["gmt",null,"greenwich"],"europe/lisbon":["wet","west","west europe"],"europe/berlin":["cet","cest","central europe","middle european","met","mest"],"europe/riga":["eet","eest","east europe","kalt"],"europe/moscow":["msk",null,"fet","mdst","msd"],"europe/samara":["samt"],"asia/yekaterinburg":["yekt"],"asia/omsk":["omst"],"asia/krasnoyarsk":["krat"],"asia/novosibirsk":["novt"],"asia/irkutsk":["irkt"],"asia/yakutsk":["yakt"],"asia/vladivostok":["vlat"],"asia/magadan":["magt"],"asia/sakhalin":["sakt"],"asia/srednekolymsk":["sret"],"asia/anadyr":["anat"],"asia/kamchatka":["pett"],"asia/tashkent":["uzt","uzbekistan"],"asia/bishkek":["kgt","kyrgyzstan"],"antarctica/vostok":["vost"],"asia/hovd":["hovt"],"asia/ashgabat":["tmt",null,"turkmenistan"],"africa/lagos":["wat","wast","west africa"],"africa/khartoum":["cat",null,"central africa"],"africa/nairobi":["eat",null,"east africa"],"atlantic/cape_verde":["cvt"],"indian/mauritius":["mut"],"indian/reunion":["ret"],"africa/johannesburg":["sast",null,"south africa"],"atlantic/azores":["azot","azost","hmt"],"america/godthab":["wgt","wgst","west greenland"],"america/scoresbysund":["egt","egst","east greenland"],"europe/istanbul":["trt",null,"turkey"],"asia/tbilisi":["get",null,"georgia"],"asia/baku":["azt",null,"azerbaijan"],"asia/jerusalem":[null,"idt","israel","jmt","iddt"],"asia/tehran":["irst","irdt","iran"],"asia/karachi":["pkt",null,"pakistan"],"asia/kabul":["aft",null,"afghanistan"],"asia/dushanbe":["tjt",null,"tajikistan"],"asia/almaty":["almt",null,"alma ata"],"asia/dubai":["gst",null,"gulf"],"asia/kolkata":["ist",null,"india","slst"],"asia/thimbu":["btt",null,"bhutan"],"indian/maldives":["mvt"],"asia/kathmandu":["npt",null,"nepal"],"indian/cocos":["cct",null,"cocos island"],"indian/chagos":["iot",null,"indian chagos"],"indian/kerguelen":["tft",null,"french southern and antarctic"],"asia/shanghai":["ct",null,"china","hkt"],"asia/ulaanbaatar":["ulat"],"asia/seoul":["kst",null,"korea"],"asia/tokyo":["jst",null,"japan"],"asia/phnom_penh":["ict",null,"indochina"],"asia/manila":["pht",null,"philippines"],"asia/singapore":["sgt"],"australia/brisbane":["aest","aedt","australian east"],"australia/adelaide":["acst","acdt","australian central"],"australia/eucla":["acwst",null,"cwst","australian central western"],"australia/perth":["awst","awdt","australian west"],"pacific/auckland":["nzst","nzdt","nzmt"],"australia/lord_howe":["lhst","lhdt"],"pacific/guam":["chst"],"pacific/chatham":["chast","chadt"],"pacific/honolulu":["hst"],"asia/brunei":["bnt",null,"bdt"],"pacific/midway":["sst",null,"samoa","