diff --git a/changelog.md b/changelog.md index bbd3e637..73e35d56 100644 --- a/changelog.md +++ b/changelog.md @@ -25,8 +25,10 @@ * add `.era()` get/set method * found 6 or 7 wrong offsets -## v3.0.0 +## v3.0.1 * fallback to UTC, instead of PST if no `Intl` is present * support passing-in offsets as ISO_8601 date-strings * add epoch-seconds warning msg * allow getting/setting new timezones +### v3.1.0 +* dramatic speedup by optimizing walkTo method diff --git a/immutable.js b/immutable.js index 41c89b52..7399234f 100644 --- a/immutable.js +++ b/immutable.js @@ -1,2 +1,2 @@ -!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.spacetime=n()}}(function(){return function n(t,e,r){function o(i,s){if(!e[i]){if(!t[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var h=e[i]={exports:{}};t[i][0].call(h.exports,function(n){var e=t[i][1][n];return o(e?e:n)},h,h.exports,n,t,e,r)}return e[i].exports}for(var a="function"==typeof require&&require,i=0;i10/29:02"],Ceuta:[2,"n","03/26:03->10/29:02"],Conakry:[0,"n"],Dakar:[0,"n"],Dar_es_Salaam:[3,"n"],Djibouti:[3,"n"],Douala:[1,"n"],El_Aaiun:[1,"n","07/02:03->10/29:02"],Freetown:[0,"n"],Gaborone:[2,"s"],Harare:[2,"s"],Johannesburg:[2,"s"],Juba:[3,"n"],Kampala:[3,"n"],Khartoum:[3,"n"],Kigali:[2,"n"],Kinshasa:[1,"s"],Lagos:[1,"n"],Libreville:[1,"n"],Lome:[0,"n"],Luanda:[1,"s"],Lubumbashi:[2,"s"],Lusaka:[2,"s"],Malabo:[1,"n"],Maputo:[2,"s"],Maseru:[2,"s"],Mbabane:[2,"s"],Mogadishu:[3,"n"],Monrovia:[0,"n"],Nairobi:[3,"n"],Ndjamena:[1,"n"],Niamey:[1,"n"],Nouakchott:[0,"n"],Ouagadougou:[0,"n"],"Porto-Novo":[1,"n"],Sao_Tome:[0,"n"],Timbuktu:[0,"n"],Tripoli:[2,"n"],Tunis:[1,"n"],Windhoek:[1,"s","04/02:01->09/03:03"]},America:{Adak:[-9,"n","03/12:03->11/05:01"],Anchorage:[-8,"n","03/12:03->11/05:01"],Anguilla:[-4,"n"],Antigua:[-4,"n"],Araguaina:[-3,"n"],Argentina:[-3,"s"],Aruba:[-4,"n"],Asuncion:[-4,"s","03/25:23->10/01:01"],Atikokan:[-5,"n"],Atka:[-9,"n","03/12:03->11/05:01"],Bahia:[-3,"n"],Bahia_Banderas:[-5,"n","04/02:03->10/29:01"],Barbados:[-4,"n"],Belem:[-3,"n"],Belize:[-6,"n"],"Blanc-Sablon":[-4,"n"],Boa_Vista:[-4,"n"],Bogota:[-5,"n"],Boise:[-6,"n","03/12:03->11/05:01"],Buenos_Aires:[-3,"s"],Cambridge_Bay:[-6,"n","03/12:03->11/05:01"],Campo_Grande:[-4,"s","02/18:23->10/15:01"],Cancun:[-5,"n"],Caracas:[-4,"n"],Catamarca:[-3,"n"],Cayenne:[-3,"n"],Cayman:[-5,"n"],Chicago:[-5,"n","03/12:03->11/05:01"],Chihuahua:[-6,"n","04/02:03->10/29:01"],Coral_Harbour:[-5,"n"],Cordoba:[-3,"s"],Costa_Rica:[-6,"n"],Creston:[-7,"n"],Cuiaba:[-4,"s","02/18:23->10/15:01"],Curacao:[-4,"n"],Danmarkshavn:[0,"n"],Dawson:[-7,"n","03/12:03->11/05:01"],Dawson_Creek:[-7,"n"],Denver:[-6,"n","03/12:03->11/05:01"],Detroit:[-4,"n","03/12:03->11/05:01"],Dominica:[-4,"n"],Edmonton:[-6,"n","03/12:03->11/05:01"],Eirunepe:[-5,"n"],El_Salvador:[-6,"n"],Ensenada:[-7,"n","03/12:03->11/05:01"],Fort_Wayne:[-4,"n","03/12:03->11/05:01"],Fortaleza:[-3,"n"],Glace_Bay:[-3,"n","03/12:03->11/05:01"],Godthab:[-3,"n","03/25:23->10/28:22"],Goose_Bay:[-3,"n","03/12:03->11/05:01"],Grand_Turk:[-4,"n"],Grenada:[-4,"n"],Guadeloupe:[-4,"n"],Guatemala:[-6,"n"],Guayaquil:[-5,"n"],Guyana:[-4,"n"],Halifax:[-3,"n","03/12:03->11/05:01"],Havana:[-4,"n","03/12:01->11/05:00"],Hermosillo:[-7,"n"],Indiana:[-4,"n","03/12:03->11/05:01"],Indianapolis:[-4,"n","03/12:03->11/05:01"],Inuvik:[-6,"n","03/12:03->11/05:01"],Iqaluit:[-4,"n","03/12:03->11/05:01"],Jamaica:[-5,"n"],Jujuy:[-3,"n"],Juneau:[-8,"n","03/12:03->11/05:01"],Kentucky:[-4,"n","03/12:03->11/05:01"],Knox_IN:[-5,"n","03/12:03->11/05:01"],Kralendijk:[-4,"n"],La_Paz:[-4,"s"],Lima:[-5,"s"],Los_Angeles:[-7,"n","03/12:03->11/05:01"],Louisville:[-4,"n","03/12:03->11/05:01"],Lower_Princes:[-4,"n"],Maceio:[-3,"n"],Managua:[-6,"n"],Manaus:[-4,"s"],Marigot:[-4,"n"],Martinique:[-4,"n"],Matamoros:[-5,"n","03/12:03->11/05:01"],Mazatlan:[-6,"n","04/02:03->10/29:01"],Mendoza:[-3,"n"],Menominee:[-5,"n","03/12:03->11/05:01"],Merida:[-5,"n","04/02:03->10/29:01"],Metlakatla:[-8,"n","03/12:03->11/05:01"],Mexico_City:[-5,"n","04/02:03->10/29:01"],Miquelon:[-2,"n","03/12:03->11/05:01"],Moncton:[-3,"n","03/12:03->11/05:01"],Monterrey:[-5,"n","04/02:03->10/29:01"],Montevideo:[-3,"s"],Montreal:[-4,"n","03/12:03->11/05:01"],Montserrat:[-4,"n"],Nassau:[-4,"n","03/12:03->11/05:01"],New_York:[-4,"n","03/12:03->11/05:01"],Nipigon:[-4,"n","03/12:03->11/05:01"],Nome:[-8,"n","03/12:03->11/05:01"],Noronha:[-2,"n"],North_Dakota:[-5,"n","03/12:03->11/05:01"],Ojinaga:[-6,"n","03/12:03->11/05:01"],Panama:[-5,"n"],Pangnirtung:[-4,"n","03/12:03->11/05:01"],Paramaribo:[-3,"n"],Phoenix:[-7,"n"],"Port-au-Prince":[-4,"n"],Port_of_Spain:[-4,"n"],Porto_Acre:[-5,"n"],Porto_Velho:[-4,"n"],Puerto_Rico:[-4,"n"],Rainy_River:[-5,"n","03/12:03->11/05:01"],Rankin_Inlet:[-5,"n","03/12:03->11/05:01"],Recife:[-3,"n"],Regina:[-6,"n"],Resolute:[-5,"n","03/12:03->11/05:01"],Rio_Branco:[-5,"n"],Rosario:[-3,"n"],Santa_Isabel:[-7,"n","03/12:03->11/05:01"],Santarem:[-3,"n"],Santiago:[-4,"s","05/13:23->08/13:01"],Santo_Domingo:[-4,"n"],Sao_Paulo:[-3,"s","02/18:23->10/15:01"],Scoresbysund:[0,"n","03/26:01->10/29:00"],Shiprock:[-6,"n","03/12:03->11/05:01"],Sitka:[-8,"n","03/12:03->11/05:01"],St_Barthelemy:[-4,"n"],St_Johns:[-2.5,"n","03/12:03->11/05:01"],St_Kitts:[-4,"n"],St_Lucia:[-4,"n"],St_Thomas:[-4,"n"],St_Vincent:[-4,"n"],Swift_Current:[-6,"n"],Tegucigalpa:[-6,"n"],Thule:[-3,"n","03/12:03->11/05:01"],Thunder_Bay:[-4,"n","03/12:03->11/05:01"],Tijuana:[-7,"n","03/12:03->11/05:01"],Toronto:[-4,"n","03/12:03->11/05:01"],Tortola:[-4,"n"],Vancouver:[-7,"n","03/12:03->11/05:01"],Virgin:[-4,"n"],Whitehorse:[-7,"n","03/12:03->11/05:01"],Winnipeg:[-5,"n","03/12:03->11/05:01"],Yakutat:[-8,"n","03/12:03->11/05:01"],Yellowknife:[-6,"n","03/12:03->11/05:01"]},Antarctica:{Casey:[8,"s"],Davis:[7,"s"],DumontDUrville:[10,"s"],Macquarie:[11,"s"],Mawson:[5,"s"],McMurdo:[12,"s","04/02:02->09/24:03"],Palmer:[-4,"s","05/13:23->08/13:01"],Rothera:[-3,"s"],South_Pole:[12,"s","04/02:02->09/24:03"],Syowa:[3,"s"],Troll:[2,"s","03/26:03->10/29:01"],Vostok:[6,"s"]},Arctic:{Longyearbyen:[2,"n","03/26:03->10/29:02"]},Asia:{Aden:[3,"n"],Almaty:[6,"n"],Amman:[3,"n","03/31:01->10/27:00"],Anadyr:[12,"n"],Aqtau:[5,"n"],Aqtobe:[5,"n"],Ashgabat:[5,"n"],Ashkhabad:[5,"n"],Baghdad:[3,"n"],Bahrain:[3,"n"],Baku:[5,"n"],Bangkok:[7,"n"],Barnaul:[7,"n"],Beirut:[3,"n","03/26:01->10/28:23"],Bishkek:[6,"n"],Brunei:[8,"n"],Calcutta:[5.5,"n"],Chita:[10,"n"],Choibalsan:[8,"n","03/25:03->09/29:23"],Chongqing:[8,"n"],Chungking:[8,"n"],Colombo:[5.5,"n"],Dacca:[6,"n"],Damascus:[3,"n","03/31:01->10/26:23"],Dhaka:[6,"n"],Dili:[9,"s"],Dubai:[4,"n"],Dushanbe:[5,"n"],Gaza:[3,"n","03/25:02->10/28:00"],Harbin:[8,"n"],Hebron:[3,"n","03/25:02->10/28:00"],Ho_Chi_Minh:[7,"n"],Hong_Kong:[8,"n"],Hovd:[7,"n","03/25:03->09/29:23"],Irkutsk:[9,"n"],Istanbul:[3,"n"],Jakarta:[7,"s"],Jayapura:[9,"n"],Jerusalem:[3,"n","03/24:03->10/29:01"],Kabul:[4.5,"n"],Kamchatka:[13,"n"],Karachi:[5,"n"],Kashgar:[6,"n"],Kathmandu:[5.75,"n"],Katmandu:[5.75,"n"],Khandyga:[10,"n"],Kolkata:[5.5,"n"],Krasnoyarsk:[8,"n"],Kuala_Lumpur:[8,"s"],Kuching:[8,"n"],Kuwait:[3,"n"],Macao:[8,"n"],Macau:[8,"n"],Magadan:[12,"n"],Makassar:[8,"s"],Manila:[8,"n"],Muscat:[4,"n"],Nicosia:[3,"n","03/26:04->10/29:03"],Novokuznetsk:[7,"n"],Novosibirsk:[7,"n"],Omsk:[7,"n"],Oral:[5,"n"],Phnom_Penh:[7,"n"],Pontianak:[7,"n"],Pyongyang:[9,"n"],Qatar:[3,"n"],Qyzylorda:[6,"n"],Rangoon:[6.5,"n"],Riyadh:[3,"n"],Saigon:[7,"n"],Sakhalin:[11,"n"],Samarkand:[5,"n"],Seoul:[9,"n"],Shanghai:[8,"n"],Singapore:[8,"s"],Srednekolymsk:[12,"n"],Taipei:[8,"n"],Tashkent:[5,"n"],Tbilisi:[4,"n"],Tehran:[4.5,"n","03/22:01->09/21:23"],Tel_Aviv:[3,"n","03/24:03->10/29:01"],Thimbu:[6,"n"],Thimphu:[6,"n"],Tokyo:[9,"n"],Ujung_Pandang:[8,"n"],Ulaanbaatar:[8,"n","03/25:03->09/29:23"],Ulan_Bator:[8,"n","03/25:03->09/29:23"],Urumqi:[6,"n"],"Ust-Nera":[11,"n"],Vientiane:[7,"n"],Vladivostok:[11,"n"],Yakutsk:[10,"n"],Yekaterinburg:[6,"n"],Yerevan:[4,"n"]},Atlantic:{Azores:[0,"n","03/26:01->10/29:00"],Bermuda:[-3,"n","03/12:03->11/05:01"],Canary:[1,"n","03/26:02->10/29:01"],Cape_Verde:[-1,"n"],Faeroe:[1,"n","03/26:02->10/29:01"],Faroe:[1,"n","03/26:02->10/29:01"],Jan_Mayen:[2,"n","03/26:03->10/29:02"],Madeira:[1,"n","03/26:02->10/29:01"],Reykjavik:[0,"n"],South_Georgia:[-2,"n"],St_Helena:[0,"n"],Stanley:[-3,"n"]},Australia:{ACT:[10,"s","04/02:02->10/01:03"],Adelaide:[9.5,"s","04/02:02->10/01:03"],Brisbane:[10,"s"],Broken_Hill:[9.5,"s","04/02:02->10/01:03"],Canberra:[10,"s","04/02:02->10/01:03"],Currie:[10,"s","04/02:02->10/01:03"],Darwin:[9.5,"s"],Eucla:[8.75,"s"],Hobart:[10,"s","04/02:02->10/01:03"],LHI:[10.5,"s","04/02:01->10/01:02"],Lindeman:[10,"s"],Lord_Howe:[10.5,"s","04/02:01->10/01:02"],Melbourne:[10,"s","04/02:02->10/01:03"],NSW:[10,"s","04/02:02->10/01:03"],North:[9.5,"s"],Perth:[8,"s"],Queensland:[10,"s"],South:[9.5,"s","04/02:02->10/01:03"],Sydney:[10,"s","04/02:02->10/01:03"],Tasmania:[10,"s","04/02:02->10/01:03"],Victoria:[10,"s","04/02:02->10/01:03"],West:[8,"s"],Yancowinna:[9.5,"s","04/02:02->10/01:03"]},Brazil:{Acre:[-5,"s"],DeNoronha:[-2,"s"],East:[-3,"s","02/18:23->10/15:01"],West:[-4,"s"]},Canada:{Atlantic:[-3,"n","03/12:03->11/05:01"],Central:[-5,"n","03/12:03->11/05:01"],"East-Saskatchewan":[-6,"n"],Eastern:[-4,"n","03/12:03->11/05:01"],Mountain:[-6,"n","03/12:03->11/05:01"],Newfoundland:[-2.5,"n","03/12:03->11/05:01"],Pacific:[-7,"n","03/12:03->11/05:01"],Saskatchewan:[-6,"n"],Yukon:[-7,"n","03/12:03->11/05:01"]},Chile:{Continental:[-3,"s","05/13:23->08/13:01"],EasterIsland:[-5,"s","05/13:21->08/12:23"]},Etc:{GMT:[0,"n"],"GMT+0":[0,"n"],"GMT+1":[-1,"n"],"GMT+10":[-10,"n"],"GMT+11":[-11,"n"],"GMT+12":[-12,"n"],"GMT+2":[-2,"n"],"GMT+3":[-3,"n"],"GMT+4":[-4,"n"],"GMT+5":[-5,"n"],"GMT+6":[-6,"n"],"GMT+7":[-7,"n"],"GMT+8":[-8,"n"],"GMT+9":[-9,"n"],"GMT-0":[0,"n"],"GMT-1":[1,"n"],"GMT-10":[10,"n"],"GMT-11":[11,"n"],"GMT-12":[12,"n"],"GMT-13":[13,"n"],"GMT-14":[14,"n"],"GMT-2":[2,"n"],"GMT-3":[3,"n"],"GMT-4":[4,"n"],"GMT-5":[5,"n"],"GMT-6":[6,"n"],"GMT-7":[7,"n"],"GMT-8":[8,"n"],"GMT-9":[9,"n"],GMT0:[0,"n"],Greenwich:[0,"n"],UCT:[0,"n"],UTC:[0,"n"],Universal:[0,"n"],Zulu:[0,"n"]},Europe:{Amsterdam:[2,"n","03/26:03->10/29:02"],Andorra:[2,"n","03/26:03->10/29:02"],Athens:[3,"n","03/26:04->10/29:03"],Belfast:[1,"n","03/26:02->10/29:01"],Belgrade:[2,"n","03/26:03->10/29:02"],Berlin:[2,"n","03/26:03->10/29:02"],Bratislava:[2,"n","03/26:03->10/29:02"],Brussels:[2,"n","03/26:03->10/29:02"],Bucharest:[3,"n","03/26:04->10/29:03"],Budapest:[2,"n","03/26:03->10/29:02"],Busingen:[2,"n","03/26:03->10/29:02"],Chisinau:[3,"n","03/26:03->10/29:02"],Copenhagen:[2,"n","03/26:03->10/29:02"],Dublin:[1,"n","03/26:02->10/29:01"],Gibraltar:[2,"n","03/26:03->10/29:02"],Guernsey:[1,"n","03/26:02->10/29:01"],Helsinki:[3,"n","03/26:04->10/29:03"],Isle_of_Man:[1,"n","03/26:02->10/29:01"],Istanbul:[3,"n"],Jersey:[1,"n","03/26:02->10/29:01"],Kaliningrad:[3,"n"],Kiev:[3,"n","03/26:04->10/29:03"],Lisbon:[1,"n","03/26:02->10/29:01"],Ljubljana:[2,"n","03/26:03->10/29:02"],London:[1,"n","03/26:02->10/29:01"],Luxembourg:[2,"n","03/26:03->10/29:02"],Madrid:[2,"n","03/26:03->10/29:02"],Malta:[2,"n","03/26:03->10/29:02"],Mariehamn:[3,"n","03/26:04->10/29:03"],Minsk:[3,"n"],Monaco:[2,"n","03/26:03->10/29:02"],Moscow:[3,"n"],Nicosia:[3,"n","03/26:04->10/29:03"],Oslo:[2,"n","03/26:03->10/29:02"],Paris:[2,"n","03/26:03->10/29:02"],Podgorica:[2,"n","03/26:03->10/29:02"],Prague:[2,"n","03/26:03->10/29:02"],Riga:[3,"n","03/26:04->10/29:03"],Rome:[2,"n","03/26:03->10/29:02"],Samara:[4,"n"],San_Marino:[2,"n","03/26:03->10/29:02"],Sarajevo:[2,"n","03/26:03->10/29:02"],Simferopol:[3,"n"],Skopje:[2,"n","03/26:03->10/29:02"],Sofia:[3,"n","03/26:04->10/29:03"],Stockholm:[2,"n","03/26:03->10/29:02"],Tallinn:[3,"n","03/26:04->10/29:03"],Tirane:[2,"n","03/26:03->10/29:02"],Tiraspol:[3,"n","03/26:03->10/29:02"],Uzhgorod:[3,"n","03/26:04->10/29:03"],Vaduz:[2,"n","03/26:03->10/29:02"],Vatican:[2,"n","03/26:03->10/29:02"],Vienna:[2,"n","03/26:03->10/29:02"],Vilnius:[3,"n","03/26:04->10/29:03"],Volgograd:[3,"n"],Warsaw:[2,"n","03/26:03->10/29:02"],Zagreb:[2,"n","03/26:03->10/29:02"],Zaporozhye:[3,"n","03/26:04->10/29:03"],Zurich:[2,"n","03/26:03->10/29:02"]},Indian:{Antananarivo:[3,"s"],Chagos:[6,"n"],Christmas:[7,"n"],Cocos:[6.5,"n"],Comoro:[3,"n"],Kerguelen:[5,"s"],Mahe:[4,"n"],Maldives:[5,"n"],Mauritius:[4,"n"],Mayotte:[3,"n"],Reunion:[4,"s"]},Mexico:{BajaNorte:[-7,"n","03/12:03->11/05:01"],BajaSur:[-6,"n","04/02:03->10/29:01"],General:[-5,"n","04/02:03->10/29:01"]},Pacific:{Apia:[13,"s","04/02:03->09/24:04"],Auckland:[12,"s","04/02:02->09/24:03"],Chatham:[12.75,"s","04/02:02->09/24:03"],Chuuk:[10,"n"],Easter:[-6,"s","05/13:21->08/12:23"],Efate:[11,"n"],Enderbury:[13,"n"],Fakaofo:[13,"n"],Fiji:[12,"s","01/15:02->11/05:03"],Funafuti:[12,"n"],Galapagos:[-6,"n"],Gambier:[-9,"n"],Guadalcanal:[11,"n"],Guam:[10,"n"],Honolulu:[-10,"n"],Johnston:[-10,"n"],Kiritimati:[14,"n"],Kosrae:[11,"n"],Kwajalein:[12,"n"],Majuro:[12,"n"],Marquesas:[-9.5,"n"],Midway:[-11,"n"],Nauru:[12,"n"],Niue:[-11,"n"],Norfolk:[11.5,"n"],Noumea:[11,"n"],Pago_Pago:[-11,"n"],Palau:[9,"n"],Pitcairn:[-8,"n"],Pohnpei:[11,"n"],Ponape:[11,"n"],Port_Moresby:[10,"n"],Rarotonga:[-10,"n"],Saipan:[10,"n"],Samoa:[-11,"n"],Tahiti:[-10,"n"],Tarawa:[12,"n"],Tongatapu:[13,"s","01/15:02->11/05:03"],Truk:[10,"n"],Wake:[12,"n"],Wallis:[12,"n"],Yap:[10,"n"]}}},{}],3:[function(n,t,e){t.exports={name:"spacetime",version:"3.0.1",description:"represent dates in remote timezones",main:"./spacetime.js",license:"Apache-2.0",scripts:{precommit:"lint-staged",build:"node ./scripts/build.js",demo:"node ./scripts/demo.js",watch:"node ./scripts/watch.js",test:"TESTENV=dev tape ./test/**/*.test.js | tap-dot",t:"TESTENV=dev tape ./test/**/immutable.test.js",testb:"TESTENV=prod tape ./test/**/*.test.js | tap-dot",lint:"eslint .",size:"./node_modules/.bin/size-limit",coverage:"node ./scripts/coverage.js"},repository:{type:"git",url:"https://github.com/smallwins/spacetime.git"},files:["spacetime.js","immutable.js"],dependencies:{},devDependencies:{"babel-preset-es2015":"6.9.0","babel-preset-stage-2":"^6.11.0",babelify:"7.3.0",browserify:"13.0.1",derequire:"^2.0.3",eslint:"^3.1.1","eslint-plugin-prettier":"^2.1.2",gaze:"^1.1.1",nyc:"^8.4.0",prettier:"^1.5.3",shelljs:"^0.7.2","size-limit":"^0.8.0","tap-dot":"^1.0.5",tape:"4.6.0",timekeeper:"^1.0.0","uglify-js":"2.7.0"},"size-limit":[{path:"./spacetime.js",limit:"14 KB"}]}},{}],4:[function(n,t,e){"use strict";var r=["sun","mon","tue","wed","thu","fri","sat"],o=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];t.exports={short:function(){return r},long:function(){return o},set:function(n){r=n.short,o=n.long}}},{}],5:[function(n,t,e){"use strict";var r={millisecond:1};r.second=1e3,r.minute=6e4,r.hour=36e5,r.day=864e5,r.date=864e5,r.month=25488e5,r.week=6048e5,r.year=3154e7,Object.keys(r).forEach(function(n){r[n+"s"]=r[n]}),t.exports=r},{}],6:[function(n,t,e){"use strict";t.exports=[31,28,31,30,31,30,31,31,30,31,30,31]},{}],7:[function(n,t,e){"use strict";function r(){for(var n={},t=0;t=a&&s<=i&&(!(s===a&&t.minute()o.minute()))});return s}},{"./spacetime":32}],11:[function(n,t,e){"use strict";e.isDate=function(n){return"[object Date]"===Object.prototype.toString.call(n)&&!isNaN(n.valueOf())},e.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)},e.isObject=function(n){return"[object Object]"===Object.prototype.toString.call(n)},e.zeroPad=function(n,t){t=t||2;var e="0";return n+="",n.length>=t?n:new Array(t-n.length+1).join(e)+n},e.titleCase=function(n){return n?n[0].toUpperCase()+n.substr(1).toLowerCase():""},e.ordinal=function(n){var t=n%10,e=n%100;return 1===t&&11!==e?n+"st":2===t&&12!==e?n+"nd":3===t&&13!==e?n+"rd":n+"th"},e.normalize=function(n){return n=n.toLowerCase(),n=n.replace(/s$/,""),"day"===n?"date":n},e.getEpoch=function(n){return"number"==typeof n?n:e.isDate(n)?n.getTime():n.epoch?n.epoch:null}},{}],12:[function(n,t,e){"use strict";function r(n){var t=["add","subtract","hour","date","day","month","quarter","goto"];return t.forEach(function(t){Object.defineProperty(n,t,{enumerable:!1,value:function(){for(var e=n.clone(),r=arguments.length,o=Array(r),a=0;a0&&t100&&(e/=100);var r=n.timezone().current.offset;if(r===e)return n;e>=0&&(e="+"+e);var o="Etc/GMT"+e,a=n.timezones;return a[o]&&(n.tz=o),n},s=[{reg:/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})T([0-9.:]+)(Z|[0-9\-\+:]+)?$/,parse:function(n,t){var e=parseInt(t[2],10)-1;i(n,t[5]),r(n,{year:t[1],month:e,date:t[3]}),a(n,t[4])}},{reg:/^([0-9]{4})[\-\/]([0-9]{1,2})[\-\/]([0-9]{1,2})$/,parse:function(n,t){var e=parseInt(t[2],10)-1,o=parseInt(t[3],10);e>=12&&(o=parseInt(t[2],10),e=parseInt(t[3],10)-1),r(n,{year:t[1],month:e,date:o})}},{reg:/^([0-9]{1,2})[\-\/]([0-9]{1,2})[\-\/]([0-9]{4})$/,parse:function(n,t){var e=parseInt(t[1],10)-1,o=parseInt(t[2],10);e>=12&&(e=parseInt(t[2],10)-1,o=parseInt(t[1],10)),r(n,{year:t[3],month:e,date:o})}},{reg:/^([a-z]+) ([0-9]{1,2}),? ([0-9]{4})( ([0-9:]+))?$/i,parse:function(n,t){var e=o.mapping()[t[1].toLowerCase()];r(n,{year:t[3],month:e,date:t[2]}),t[4]&&a(n,t[4])}},{reg:/^([0-9]{1,2}) ([a-z]+),? ([0-9]{4})$/i,parse:function(n,t){var e=o.mapping()[t[2].toLowerCase()];r(n,{year:t[3],month:e,date:t[1]})}}];t.exports=s},{"../data/months":7,"../methods/set/walk":30}],15:[function(n,t,e){"use strict";var r=n("./methods/format"),o=n("./methods/progress"),a=n("./methods/nearest"),i=n("./methods/diff"),s=n("./methods/startOf"),u=n("./timezone/index"),c=n("./input"),h={set:function(n){return c(this,n),this},timezone:function(){return u(this)},isDST:function(){return u(this).current.isDST},hasDST:function(){return u(this).hasDst},offset:function(){return u(this).current.offset/60},hemisphere:function(){return u(this).hemisphere},format:function(n){return r(this,n)},startOf:function(n){return s.startOf(this,n)},endOf:function(n){return s.endOf(this,n)},leapYear:function(){var n=this.year();return n%4===0&&n%100!==0||n%400===0},progress:function(){return o(this)},nearest:function(n){return a(this,n)},diff:function(n,t){return i(this,n,t)},isValid:function(){return this.valid&&!isNaN(this.d.getTime())},goto:function(n){return this.tz=n,this},isAsleep:function(){var n=this.hour();return n<8||n>22},log:function(){return console.log(""),console.log(r(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(r(this,"full-short")),this},debug:function(){var n=this.timezone(),t=this.format("MM")+" "+this.format("date-ordinal")+" "+this.year();return t+="\n - "+this.format("time"),console.log("\n\n",t+"\n - "+n.name+" ("+n.current.offset+")"),this}};h.inDST=h.isDST,h.round=h.nearest,t.exports=h},{"./input":13,"./methods/diff":18,"./methods/format":19,"./methods/nearest":22,"./methods/progress":23,"./methods/startOf":31,"./timezone/index":34}],16:[function(n,t,e){"use strict";var r=n("./set/walk"),o=n("../data/milliseconds"),a=n("../data/monthLength"),i=n("../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},h=function(n,t){if(n.month>0){var e=parseInt(n.month/12,10);n.year=t.year()+e,n.month=n.month%12}else if(n.month<0){var r=Math.floor(Math.abs(n.month)/13,10);r=Math.abs(r)+1,n.year=t.year()-r,n.month=n.month%12,n.month=n.month+12,12===n.month&&(n.month=0)}return n},d=function(n){n.prototype.add=function(n,t){var e=this.clone();t=i.normalize(t),o[t]?this.epoch+=o[t]*n:"week"===t?this.epoch+=o.day*(7*n):"quarter"===t||"season"===t?this.epoch+=o.month*(4*n):"season"===t?this.epoch+=o.month*(4*n):"quarterhour"===t&&(this.epoch+=15*o.minute);var s={};if(u[t]&&u[t].forEach(function(n){s[n]=e[n]()}),"month"===t?(s.month=e.month()+n,s=h(s,e)):"date"===t&&0!==n&&e.isSame(this,"day")?s.date=e.date()+n:"year"===t&&this.year()===e.year()&&(this.epoch+=o.week),c[t]){var d=a[s.month];s.date=e.date(),s.date>d&&(s.date=d)}return r(this,s),this},n.prototype.subtract=function(n,t){return this.add(n*-1,t),this}};t.exports=d},{"../data/milliseconds":5,"../data/monthLength":6,"../fns":11,"./set/walk":30}],17:[function(n,t,e){"use strict";var r=n("../fns"),o=function(n){var t={isAfter:function(n){var t=r.getEpoch(n);return null===t?null:this.epoch>t},isBefore:function(n){var t=r.getEpoch(n);return null===t?null:this.epoch.5&&n.add(1,t),n.startOf(t)):console.warn("no known unit '"+t+"'"),n};t.exports=r},{}],23:[function(n,t,e){"use strict";var r=function(n){var t=["year","season","quarter","month","week","day","quarterHour","hour","minute"],e={};return t.forEach(function(t){var r=n.clone().startOf(t),o=n.clone().endOf(t),a=o.epoch-r.epoch,i=(n.epoch-r.epoch)/a;e[t]=parseFloat(i.toFixed(2))}),e};t.exports=r},{}],24:[function(n,t,e){"use strict";var r=n("../../data/quarters"),o=n("../../data/seasons"),a=n("../set/set"),i=function(n){n.minute(0),n.second(0),n.millisecond(1)};t.exports={time:function(n){return void 0!==n?(this.epoch=a.time(this,n),this):this.format("time-h12")},week:function(n){if(void 0!==n)return this.month(0),this.date(1),this.day("monday"),i(this),"december"===this.monthName()&&this.add(1,"week"),n-=1,this.add(n,"weeks"),this;var t=this.clone();t.month(0),t.date(1),i(t),t.day("monday"),"december"===t.monthName()&&t.add(1,"week"); -var e=this.epoch;if(t.epoch>e)return 1;for(var r=0;r<52;r++){if(t.epoch>e)return r;t.add(1,"week")}return 52},quarter:function(n){if(void 0!==n&&("string"==typeof n&&(n=n.replace(/^q/i,""),n=parseInt(n,10)),r[n])){var t=r[n][0];return this.month(t),this.date(1),this.hour(0),i(this),this}for(var e=this.d.getMonth(),o=1;o=o[t][a][1]&&r12&&(n-=12),0===n&&(n=12),n},date:function(n){return void 0!==n?(this.epoch=r.date(this,n),this):this.d.getDate()},month:function(n){return void 0!==n?(this.epoch=r.month(this,n),this):this.d.getMonth()},year:function(n){return void 0!==n?(this.epoch=r.year(this,n),this):this.d.getFullYear()},dayTime:function(n){if(void 0!==n){var t={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"};return n=n||"",n=n.toLowerCase(),t[n]&&this.time(t[n]),this}var e=this.hour();return e<6?"night":e<12?"morning":e<17?"afternoon":e<22?"evening":"night"},dayOfYear:function(n){if(void 0!==n)return this.epoch=r.dayOfYear(this,n),this;for(var t=0,e=this.d.getMonth(),o=void 0,a=1;a<=e;a++)o=new Date,o.setYear(this.d.getFullYear()),o.setMonth(a),o.setDate(1),o.setHours(-2),t+=o.getDate();return t+this.d.getDate()},era:function(n){if(void 0!==n){n=n.toLowerCase();var t=this.d.getFullYear();return"bc"===n&&t>0&&(this.epoch=r.year(this,t*-1)),"ad"===n&&t<0&&(this.epoch=r.year(this,t*-1)),this}return this.d.getFullYear()<0?"BC":"AD"}};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,t.exports=o},{"../set/set":29}],27:[function(n,t,e){"use strict";var r=n("../../data/days"),o=n("../../data/months"),a=n("../set/walk");t.exports={day:function n(t){if(void 0===t)return this.d.getDay();var e=this.clone(),o=t;"string"==typeof t&&(t=t.toLowerCase(),o=r.short().indexOf(t),o===-1&&(o=r.long().indexOf(t)));var n=this.d.getDay(),i=n-o,s=this.subtract(24*i,"hours");return a(s,{hour:e.hour(),minute:e.minute(),second:e.second()}),this.epoch=s.epoch,s},ampm:function(n){var t="am",e=this.hour();return e>=12&&(t="pm"),void 0===n?t:n===t?this:("am"===n?this.subtract(12,"hours"):this.add(12,"hours"),this)},dayName:function(n){return void 0===n?r.long()[this.day()]:(this.day(n),this)},monthName:function(n){return void 0===n?o.long()[this.month()]:(this.month(n),this)}}},{"../../data/days":4,"../../data/months":7,"../set/walk":30}],28:[function(n,t,e){"use strict";var r={millisecond:function(n){return n.epoch},second:function(n){return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second()].join("-")},minute:function(n){return[n.year(),n.month(),n.date(),n.hour(),n.minute()].join("-")},hour:function(n){return[n.year(),n.month(),n.date(),n.hour()].join("-")},day:function(n){return[n.year(),n.month(),n.date()].join("-")},week:function(n){return[n.year(),n.week()].join("-")},month:function(n){return[n.year(),n.month()].join("-")},quarter:function(n){return[n.year(),n.quarter()].join("-")},year:function(n){return n.year()}};r.date=r.day;var o=function(n){n.prototype.isSame=function(t,e){var o=this;return"string"!=typeof t&&"number"!=typeof t||(t=new n(t,this.timezone.name)),e=e.replace(/s$/,""),r[e]?r[e](o)===r[e](t):null}};t.exports=o},{}],29:[function(n,t,e){"use strict";var r=n("../../data/milliseconds"),o=n("../../data/months"),a=n("../../data/monthLength"),i=n("./walk"),s=function(n){return"string"==typeof n&&(n=parseInt(n,10)),n},u=["year","month","date","hour","minute","second","millisecond"],c=function(n,t,e){for(var r=u.indexOf(e),o=u.slice(r,u.length),a=0;a12&&(r=!0),r===!1&&("am"===e[3]&&12===o&&(o=0),"pm"===e[3]&&o<12&&(o+=12)),n.hour(o),n.minute(a),n.second(0),n.millisecond(0),n.epoch},date:function(n,t){return t=s(t),i(n,{date:t}),n.epoch},month:function(n,t){"string"==typeof t&&(t=o.mapping()[t.toLowerCase()]),t=s(t);var e=n.date();return e>a[t]&&(e=a[t]),i(n,{month:t,date:e}),n.epoch},year:function(n,t){return t=s(t),i(n,{year:t}),n.epoch},dayOfYear:function(n,t){t=s(t);var e=n.clone(),o=t-n.dayOfYear(),a=o*r.day;return n.epoch+=a,c(n,e,"hour"),n.epoch}}},{"../../data/milliseconds":5,"../../data/monthLength":6,"../../data/months":7,"./walk":30}],30:[function(n,t,e){"use strict";var r=n("../../data/milliseconds"),o={year:{valid:function(n){return n>-4e3&&n<4e3},walkTo:function(n,t){for(;n.year()t;)n.epoch-=r.year}},month:{valid:function(n){return n>=0&&n<=11},walkTo:function(n,t){for(;n.month()t;)n.epoch-=r.day}},date:{valid:function(n){return n>0&&n<=31},walkTo:function(n,t){for(;n.date()t;)n.epoch-=r.day}},hour:{valid:function(n){return n>=0&&n<24},walkTo:function(n,t){for(;n.hour()t;)n.epoch-=r.hour}},minute:{valid:function(n){return n>=0&&n<60},walkTo:function(n,t){for(;n.minute()t;)n.epoch-=r.minute}},second:{valid:function(n){return n>=0&&n<60},walkTo:function(n,t){for(;n.second()t;)n.epoch-=r.second}},millisecond:{valid:function(n){return n>=0&&n<1e3},walkTo:function(n,t){n.milliseconds(t)}}},a=function(n,t){for(var e=Object.keys(o),r=n.clone(),a=0;a=45?n.minutes(45):t>=30?n.minutes(30):t>=15?n.minutes(15):n.minutes(0),a(n,{second:0,millisecond:0}),n},hour:function(n){return a(n,{minute:0,second:0,millisecond:0}),n},day:function(n){return a(n,{hour:0,minute:0,second:0,millisecond:0}),n},week:function(n){var t=n.clone();return n.day(1),n.isAfter(t)&&n.subtract(1,"week"),a(n,{hour:0,minute:0,second:0,millisecond:0}),n},month:function(n){return a(n,{date:1,hour:0,minute:0,second:0,millisecond:0}),n},quarter:function(n){var t=n.quarter();return o[t]&&a(n,{month:o[t][0],date:o[t][1],hour:0,minute:0,second:0,millisecond:0}),n},season:function(n){var t=n.season(),e="north";"South"===n.timezone().hemisphere&&(e="south");for(var o=0;o"):[]},a=function(n){var t=n.tz,e=n.timezones;if(!e[t])return console.warn("Warn: could not find given or local timezone - '"+t+"'"),{current:{epochShift:0}};var a={name:t,hasDst:Boolean(e[t].dst),hemisphere:"s"===e[t].h?"South":"North",change:{},current:{}};if(a.hasDst===!0){var i=o(e[t].dst);a.change={start:i[0],back:i[1]}}var s=e[t].o,u=s;return a.hasDst===!0&&(u="North"===a.hemisphere?s-1:e[t].o+1),a.hasDst===!1?(a.current.offset=s,a.current.isDST=!1):r(n,a)===!0?(a.current.offset=s,a.current.isDST="North"===a.hemisphere):(a.current.offset=u,a.current.isDST="South"===a.hemisphere),a};t.exports=a},{"./summerTime":35}],35:[function(n,t,e){"use strict";var r=n("../fns").zeroPad,o=function(n){return r(n.getMonth()+1)+"/"+r(n.getDate())+":"+r(n.getHours())},a=function(n,t){if(t.hasDst!==!0||!t.change.start||!t.change.back)return!1;var e=new Date(n.epoch),r=o(e);return r>=t.change.start&&r10/29:02"],Ceuta:[2,"n","03/26:03->10/29:02"],Conakry:[0,"n"],Dakar:[0,"n"],Dar_es_Salaam:[3,"n"],Djibouti:[3,"n"],Douala:[1,"n"],El_Aaiun:[1,"n","07/02:03->10/29:02"],Freetown:[0,"n"],Gaborone:[2,"s"],Harare:[2,"s"],Johannesburg:[2,"s"],Juba:[3,"n"],Kampala:[3,"n"],Khartoum:[3,"n"],Kigali:[2,"n"],Kinshasa:[1,"s"],Lagos:[1,"n"],Libreville:[1,"n"],Lome:[0,"n"],Luanda:[1,"s"],Lubumbashi:[2,"s"],Lusaka:[2,"s"],Malabo:[1,"n"],Maputo:[2,"s"],Maseru:[2,"s"],Mbabane:[2,"s"],Mogadishu:[3,"n"],Monrovia:[0,"n"],Nairobi:[3,"n"],Ndjamena:[1,"n"],Niamey:[1,"n"],Nouakchott:[0,"n"],Ouagadougou:[0,"n"],"Porto-Novo":[1,"n"],Sao_Tome:[0,"n"],Timbuktu:[0,"n"],Tripoli:[2,"n"],Tunis:[1,"n"],Windhoek:[1,"s","04/02:01->09/03:03"]},America:{Adak:[-9,"n","03/12:03->11/05:01"],Anchorage:[-8,"n","03/12:03->11/05:01"],Anguilla:[-4,"n"],Antigua:[-4,"n"],Araguaina:[-3,"n"],Argentina:[-3,"s"],Aruba:[-4,"n"],Asuncion:[-4,"s","03/25:23->10/01:01"],Atikokan:[-5,"n"],Atka:[-9,"n","03/12:03->11/05:01"],Bahia:[-3,"n"],Bahia_Banderas:[-5,"n","04/02:03->10/29:01"],Barbados:[-4,"n"],Belem:[-3,"n"],Belize:[-6,"n"],"Blanc-Sablon":[-4,"n"],Boa_Vista:[-4,"n"],Bogota:[-5,"n"],Boise:[-6,"n","03/12:03->11/05:01"],Buenos_Aires:[-3,"s"],Cambridge_Bay:[-6,"n","03/12:03->11/05:01"],Campo_Grande:[-4,"s","02/18:23->10/15:01"],Cancun:[-5,"n"],Caracas:[-4,"n"],Catamarca:[-3,"n"],Cayenne:[-3,"n"],Cayman:[-5,"n"],Chicago:[-5,"n","03/12:03->11/05:01"],Chihuahua:[-6,"n","04/02:03->10/29:01"],Coral_Harbour:[-5,"n"],Cordoba:[-3,"s"],Costa_Rica:[-6,"n"],Creston:[-7,"n"],Cuiaba:[-4,"s","02/18:23->10/15:01"],Curacao:[-4,"n"],Danmarkshavn:[0,"n"],Dawson:[-7,"n","03/12:03->11/05:01"],Dawson_Creek:[-7,"n"],Denver:[-6,"n","03/12:03->11/05:01"],Detroit:[-4,"n","03/12:03->11/05:01"],Dominica:[-4,"n"],Edmonton:[-6,"n","03/12:03->11/05:01"],Eirunepe:[-5,"n"],El_Salvador:[-6,"n"],Ensenada:[-7,"n","03/12:03->11/05:01"],Fort_Wayne:[-4,"n","03/12:03->11/05:01"],Fortaleza:[-3,"n"],Glace_Bay:[-3,"n","03/12:03->11/05:01"],Godthab:[-3,"n","03/25:23->10/28:22"],Goose_Bay:[-3,"n","03/12:03->11/05:01"],Grand_Turk:[-4,"n"],Grenada:[-4,"n"],Guadeloupe:[-4,"n"],Guatemala:[-6,"n"],Guayaquil:[-5,"n"],Guyana:[-4,"n"],Halifax:[-3,"n","03/12:03->11/05:01"],Havana:[-4,"n","03/12:01->11/05:00"],Hermosillo:[-7,"n"],Indiana:[-4,"n","03/12:03->11/05:01"],Indianapolis:[-4,"n","03/12:03->11/05:01"],Inuvik:[-6,"n","03/12:03->11/05:01"],Iqaluit:[-4,"n","03/12:03->11/05:01"],Jamaica:[-5,"n"],Jujuy:[-3,"n"],Juneau:[-8,"n","03/12:03->11/05:01"],Kentucky:[-4,"n","03/12:03->11/05:01"],Knox_IN:[-5,"n","03/12:03->11/05:01"],Kralendijk:[-4,"n"],La_Paz:[-4,"s"],Lima:[-5,"s"],Los_Angeles:[-7,"n","03/12:03->11/05:01"],Louisville:[-4,"n","03/12:03->11/05:01"],Lower_Princes:[-4,"n"],Maceio:[-3,"n"],Managua:[-6,"n"],Manaus:[-4,"s"],Marigot:[-4,"n"],Martinique:[-4,"n"],Matamoros:[-5,"n","03/12:03->11/05:01"],Mazatlan:[-6,"n","04/02:03->10/29:01"],Mendoza:[-3,"n"],Menominee:[-5,"n","03/12:03->11/05:01"],Merida:[-5,"n","04/02:03->10/29:01"],Metlakatla:[-8,"n","03/12:03->11/05:01"],Mexico_City:[-5,"n","04/02:03->10/29:01"],Miquelon:[-2,"n","03/12:03->11/05:01"],Moncton:[-3,"n","03/12:03->11/05:01"],Monterrey:[-5,"n","04/02:03->10/29:01"],Montevideo:[-3,"s"],Montreal:[-4,"n","03/12:03->11/05:01"],Montserrat:[-4,"n"],Nassau:[-4,"n","03/12:03->11/05:01"],New_York:[-4,"n","03/12:03->11/05:01"],Nipigon:[-4,"n","03/12:03->11/05:01"],Nome:[-8,"n","03/12:03->11/05:01"],Noronha:[-2,"n"],North_Dakota:[-5,"n","03/12:03->11/05:01"],Ojinaga:[-6,"n","03/12:03->11/05:01"],Panama:[-5,"n"],Pangnirtung:[-4,"n","03/12:03->11/05:01"],Paramaribo:[-3,"n"],Phoenix:[-7,"n"],"Port-au-Prince":[-4,"n"],Port_of_Spain:[-4,"n"],Porto_Acre:[-5,"n"],Porto_Velho:[-4,"n"],Puerto_Rico:[-4,"n"],Rainy_River:[-5,"n","03/12:03->11/05:01"],Rankin_Inlet:[-5,"n","03/12:03->11/05:01"],Recife:[-3,"n"],Regina:[-6,"n"],Resolute:[-5,"n","03/12:03->11/05:01"],Rio_Branco:[-5,"n"],Rosario:[-3,"n"],Santa_Isabel:[-7,"n","03/12:03->11/05:01"],Santarem:[-3,"n"],Santiago:[-4,"s","05/13:23->08/13:01"],Santo_Domingo:[-4,"n"],Sao_Paulo:[-3,"s","02/18:23->10/15:01"],Scoresbysund:[0,"n","03/26:01->10/29:00"],Shiprock:[-6,"n","03/12:03->11/05:01"],Sitka:[-8,"n","03/12:03->11/05:01"],St_Barthelemy:[-4,"n"],St_Johns:[-2.5,"n","03/12:03->11/05:01"],St_Kitts:[-4,"n"],St_Lucia:[-4,"n"],St_Thomas:[-4,"n"],St_Vincent:[-4,"n"],Swift_Current:[-6,"n"],Tegucigalpa:[-6,"n"],Thule:[-3,"n","03/12:03->11/05:01"],Thunder_Bay:[-4,"n","03/12:03->11/05:01"],Tijuana:[-7,"n","03/12:03->11/05:01"],Toronto:[-4,"n","03/12:03->11/05:01"],Tortola:[-4,"n"],Vancouver:[-7,"n","03/12:03->11/05:01"],Virgin:[-4,"n"],Whitehorse:[-7,"n","03/12:03->11/05:01"],Winnipeg:[-5,"n","03/12:03->11/05:01"],Yakutat:[-8,"n","03/12:03->11/05:01"],Yellowknife:[-6,"n","03/12:03->11/05:01"]},Antarctica:{Casey:[8,"s"],Davis:[7,"s"],DumontDUrville:[10,"s"],Macquarie:[11,"s"],Mawson:[5,"s"],McMurdo:[12,"s","04/02:02->09/24:03"],Palmer:[-4,"s","05/13:23->08/13:01"],Rothera:[-3,"s"],South_Pole:[12,"s","04/02:02->09/24:03"],Syowa:[3,"s"],Troll:[2,"s","03/26:03->10/29:01"],Vostok:[6,"s"]},Arctic:{Longyearbyen:[2,"n","03/26:03->10/29:02"]},Asia:{Aden:[3,"n"],Almaty:[6,"n"],Amman:[3,"n","03/31:01->10/27:00"],Anadyr:[12,"n"],Aqtau:[5,"n"],Aqtobe:[5,"n"],Ashgabat:[5,"n"],Ashkhabad:[5,"n"],Baghdad:[3,"n"],Bahrain:[3,"n"],Baku:[5,"n"],Bangkok:[7,"n"],Barnaul:[7,"n"],Beirut:[3,"n","03/26:01->10/28:23"],Bishkek:[6,"n"],Brunei:[8,"n"],Calcutta:[5.5,"n"],Chita:[10,"n"],Choibalsan:[8,"n","03/25:03->09/29:23"],Chongqing:[8,"n"],Chungking:[8,"n"],Colombo:[5.5,"n"],Dacca:[6,"n"],Damascus:[3,"n","03/31:01->10/26:23"],Dhaka:[6,"n"],Dili:[9,"s"],Dubai:[4,"n"],Dushanbe:[5,"n"],Gaza:[3,"n","03/25:02->10/28:00"],Harbin:[8,"n"],Hebron:[3,"n","03/25:02->10/28:00"],Ho_Chi_Minh:[7,"n"],Hong_Kong:[8,"n"],Hovd:[7,"n","03/25:03->09/29:23"],Irkutsk:[9,"n"],Istanbul:[3,"n"],Jakarta:[7,"s"],Jayapura:[9,"n"],Jerusalem:[3,"n","03/24:03->10/29:01"],Kabul:[4.5,"n"],Kamchatka:[13,"n"],Karachi:[5,"n"],Kashgar:[6,"n"],Kathmandu:[5.75,"n"],Katmandu:[5.75,"n"],Khandyga:[10,"n"],Kolkata:[5.5,"n"],Krasnoyarsk:[8,"n"],Kuala_Lumpur:[8,"s"],Kuching:[8,"n"],Kuwait:[3,"n"],Macao:[8,"n"],Macau:[8,"n"],Magadan:[12,"n"],Makassar:[8,"s"],Manila:[8,"n"],Muscat:[4,"n"],Nicosia:[3,"n","03/26:04->10/29:03"],Novokuznetsk:[7,"n"],Novosibirsk:[7,"n"],Omsk:[7,"n"],Oral:[5,"n"],Phnom_Penh:[7,"n"],Pontianak:[7,"n"],Pyongyang:[9,"n"],Qatar:[3,"n"],Qyzylorda:[6,"n"],Rangoon:[6.5,"n"],Riyadh:[3,"n"],Saigon:[7,"n"],Sakhalin:[11,"n"],Samarkand:[5,"n"],Seoul:[9,"n"],Shanghai:[8,"n"],Singapore:[8,"s"],Srednekolymsk:[12,"n"],Taipei:[8,"n"],Tashkent:[5,"n"],Tbilisi:[4,"n"],Tehran:[4.5,"n","03/22:01->09/21:23"],Tel_Aviv:[3,"n","03/24:03->10/29:01"],Thimbu:[6,"n"],Thimphu:[6,"n"],Tokyo:[9,"n"],Ujung_Pandang:[8,"n"],Ulaanbaatar:[8,"n","03/25:03->09/29:23"],Ulan_Bator:[8,"n","03/25:03->09/29:23"],Urumqi:[6,"n"],"Ust-Nera":[11,"n"],Vientiane:[7,"n"],Vladivostok:[11,"n"],Yakutsk:[10,"n"],Yekaterinburg:[6,"n"],Yerevan:[4,"n"]},Atlantic:{Azores:[0,"n","03/26:01->10/29:00"],Bermuda:[-3,"n","03/12:03->11/05:01"],Canary:[1,"n","03/26:02->10/29:01"],Cape_Verde:[-1,"n"],Faeroe:[1,"n","03/26:02->10/29:01"],Faroe:[1,"n","03/26:02->10/29:01"],Jan_Mayen:[2,"n","03/26:03->10/29:02"],Madeira:[1,"n","03/26:02->10/29:01"],Reykjavik:[0,"n"],South_Georgia:[-2,"n"],St_Helena:[0,"n"],Stanley:[-3,"n"]},Australia:{ACT:[10,"s","04/02:02->10/01:03"],Adelaide:[9.5,"s","04/02:02->10/01:03"],Brisbane:[10,"s"],Broken_Hill:[9.5,"s","04/02:02->10/01:03"],Canberra:[10,"s","04/02:02->10/01:03"],Currie:[10,"s","04/02:02->10/01:03"],Darwin:[9.5,"s"],Eucla:[8.75,"s"],Hobart:[10,"s","04/02:02->10/01:03"],LHI:[10.5,"s","04/02:01->10/01:02"],Lindeman:[10,"s"],Lord_Howe:[10.5,"s","04/02:01->10/01:02"],Melbourne:[10,"s","04/02:02->10/01:03"],NSW:[10,"s","04/02:02->10/01:03"],North:[9.5,"s"],Perth:[8,"s"],Queensland:[10,"s"],South:[9.5,"s","04/02:02->10/01:03"],Sydney:[10,"s","04/02:02->10/01:03"],Tasmania:[10,"s","04/02:02->10/01:03"],Victoria:[10,"s","04/02:02->10/01:03"],West:[8,"s"],Yancowinna:[9.5,"s","04/02:02->10/01:03"]},Brazil:{Acre:[-5,"s"],DeNoronha:[-2,"s"],East:[-3,"s","02/18:23->10/15:01"],West:[-4,"s"]},Canada:{Atlantic:[-3,"n","03/12:03->11/05:01"],Central:[-5,"n","03/12:03->11/05:01"],"East-Saskatchewan":[-6,"n"],Eastern:[-4,"n","03/12:03->11/05:01"],Mountain:[-6,"n","03/12:03->11/05:01"],Newfoundland:[-2.5,"n","03/12:03->11/05:01"],Pacific:[-7,"n","03/12:03->11/05:01"],Saskatchewan:[-6,"n"],Yukon:[-7,"n","03/12:03->11/05:01"]},Chile:{Continental:[-3,"s","05/13:23->08/13:01"],EasterIsland:[-5,"s","05/13:21->08/12:23"]},Etc:{GMT:[0,"n"],"GMT+0":[0,"n"],"GMT+1":[-1,"n"],"GMT+10":[-10,"n"],"GMT+11":[-11,"n"],"GMT+12":[-12,"n"],"GMT+2":[-2,"n"],"GMT+3":[-3,"n"],"GMT+4":[-4,"n"],"GMT+5":[-5,"n"],"GMT+6":[-6,"n"],"GMT+7":[-7,"n"],"GMT+8":[-8,"n"],"GMT+9":[-9,"n"],"GMT-0":[0,"n"],"GMT-1":[1,"n"],"GMT-10":[10,"n"],"GMT-11":[11,"n"],"GMT-12":[12,"n"],"GMT-13":[13,"n"],"GMT-14":[14,"n"],"GMT-2":[2,"n"],"GMT-3":[3,"n"],"GMT-4":[4,"n"],"GMT-5":[5,"n"],"GMT-6":[6,"n"],"GMT-7":[7,"n"],"GMT-8":[8,"n"],"GMT-9":[9,"n"],GMT0:[0,"n"],Greenwich:[0,"n"],UCT:[0,"n"],UTC:[0,"n"],Universal:[0,"n"],Zulu:[0,"n"]},Europe:{Amsterdam:[2,"n","03/26:03->10/29:02"],Andorra:[2,"n","03/26:03->10/29:02"],Athens:[3,"n","03/26:04->10/29:03"],Belfast:[1,"n","03/26:02->10/29:01"],Belgrade:[2,"n","03/26:03->10/29:02"],Berlin:[2,"n","03/26:03->10/29:02"],Bratislava:[2,"n","03/26:03->10/29:02"],Brussels:[2,"n","03/26:03->10/29:02"],Bucharest:[3,"n","03/26:04->10/29:03"],Budapest:[2,"n","03/26:03->10/29:02"],Busingen:[2,"n","03/26:03->10/29:02"],Chisinau:[3,"n","03/26:03->10/29:02"],Copenhagen:[2,"n","03/26:03->10/29:02"],Dublin:[1,"n","03/26:02->10/29:01"],Gibraltar:[2,"n","03/26:03->10/29:02"],Guernsey:[1,"n","03/26:02->10/29:01"],Helsinki:[3,"n","03/26:04->10/29:03"],Isle_of_Man:[1,"n","03/26:02->10/29:01"],Istanbul:[3,"n"],Jersey:[1,"n","03/26:02->10/29:01"],Kaliningrad:[3,"n"],Kiev:[3,"n","03/26:04->10/29:03"],Lisbon:[1,"n","03/26:02->10/29:01"],Ljubljana:[2,"n","03/26:03->10/29:02"],London:[1,"n","03/26:02->10/29:01"],Luxembourg:[2,"n","03/26:03->10/29:02"],Madrid:[2,"n","03/26:03->10/29:02"],Malta:[2,"n","03/26:03->10/29:02"],Mariehamn:[3,"n","03/26:04->10/29:03"],Minsk:[3,"n"],Monaco:[2,"n","03/26:03->10/29:02"],Moscow:[3,"n"],Nicosia:[3,"n","03/26:04->10/29:03"],Oslo:[2,"n","03/26:03->10/29:02"],Paris:[2,"n","03/26:03->10/29:02"],Podgorica:[2,"n","03/26:03->10/29:02"],Prague:[2,"n","03/26:03->10/29:02"],Riga:[3,"n","03/26:04->10/29:03"],Rome:[2,"n","03/26:03->10/29:02"],Samara:[4,"n"],San_Marino:[2,"n","03/26:03->10/29:02"],Sarajevo:[2,"n","03/26:03->10/29:02"],Simferopol:[3,"n"],Skopje:[2,"n","03/26:03->10/29:02"],Sofia:[3,"n","03/26:04->10/29:03"],Stockholm:[2,"n","03/26:03->10/29:02"],Tallinn:[3,"n","03/26:04->10/29:03"],Tirane:[2,"n","03/26:03->10/29:02"],Tiraspol:[3,"n","03/26:03->10/29:02"],Uzhgorod:[3,"n","03/26:04->10/29:03"],Vaduz:[2,"n","03/26:03->10/29:02"],Vatican:[2,"n","03/26:03->10/29:02"],Vienna:[2,"n","03/26:03->10/29:02"],Vilnius:[3,"n","03/26:04->10/29:03"],Volgograd:[3,"n"],Warsaw:[2,"n","03/26:03->10/29:02"],Zagreb:[2,"n","03/26:03->10/29:02"],Zaporozhye:[3,"n","03/26:04->10/29:03"],Zurich:[2,"n","03/26:03->10/29:02"]},Indian:{Antananarivo:[3,"s"],Chagos:[6,"n"],Christmas:[7,"n"],Cocos:[6.5,"n"],Comoro:[3,"n"],Kerguelen:[5,"s"],Mahe:[4,"n"],Maldives:[5,"n"],Mauritius:[4,"n"],Mayotte:[3,"n"],Reunion:[4,"s"]},Mexico:{BajaNorte:[-7,"n","03/12:03->11/05:01"],BajaSur:[-6,"n","04/02:03->10/29:01"],General:[-5,"n","04/02:03->10/29:01"]},Pacific:{Apia:[13,"s","04/02:03->09/24:04"],Auckland:[12,"s","04/02:02->09/24:03"],Chatham:[12.75,"s","04/02:02->09/24:03"],Chuuk:[10,"n"],Easter:[-6,"s","05/13:21->08/12:23"],Efate:[11,"n"],Enderbury:[13,"n"],Fakaofo:[13,"n"],Fiji:[12,"s","01/15:02->11/05:03"],Funafuti:[12,"n"],Galapagos:[-6,"n"],Gambier:[-9,"n"],Guadalcanal:[11,"n"],Guam:[10,"n"],Honolulu:[-10,"n"],Johnston:[-10,"n"],Kiritimati:[14,"n"],Kosrae:[11,"n"],Kwajalein:[12,"n"],Majuro:[12,"n"],Marquesas:[-9.5,"n"],Midway:[-11,"n"],Nauru:[12,"n"],Niue:[-11,"n"],Norfolk:[11.5,"n"],Noumea:[11,"n"],Pago_Pago:[-11,"n"],Palau:[9,"n"],Pitcairn:[-8,"n"],Pohnpei:[11,"n"],Ponape:[11,"n"],Port_Moresby:[10,"n"],Rarotonga:[-10,"n"],Saipan:[10,"n"],Samoa:[-11,"n"],Tahiti:[-10,"n"],Tarawa:[12,"n"],Tongatapu:[13,"s","01/15:02->11/05:03"],Truk:[10,"n"],Wake:[12,"n"],Wallis:[12,"n"],Yap:[10,"n"]}}},{}],3:[function(n,t,e){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(n){if(d===setTimeout)return setTimeout(n,0);if((d===r||!d)&&setTimeout)return d=setTimeout,setTimeout(n,0);try{return d(n,0)}catch(t){try{return d.call(null,n,0)}catch(t){return d.call(this,n,0)}}}function i(n){if(f===clearTimeout)return clearTimeout(n);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(n);try{return f(n)}catch(t){try{return f.call(null,n)}catch(t){return f.call(this,n)}}}function s(){y&&m&&(y=!1,m.length?p=m.concat(p):v=-1,p.length&&u())}function u(){if(!y){var n=a(s);y=!0;for(var t=p.length;t;){for(m=p,p=[];++v1)for(var e=1;e=a&&s<=i&&(!(s===a&&t.minute()o.minute()))});return s}},{"./spacetime":33}],12:[function(n,t,e){"use strict";e.isDate=function(n){return"[object Date]"===Object.prototype.toString.call(n)&&!isNaN(n.valueOf())},e.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)},e.isObject=function(n){return"[object Object]"===Object.prototype.toString.call(n)},e.zeroPad=function(n,t){t=t||2;var e="0";return n+="",n.length>=t?n:new Array(t-n.length+1).join(e)+n},e.titleCase=function(n){return n?n[0].toUpperCase()+n.substr(1).toLowerCase():""},e.ordinal=function(n){var t=n%10,e=n%100;return 1===t&&11!==e?n+"st":2===t&&12!==e?n+"nd":3===t&&13!==e?n+"rd":n+"th"},e.normalize=function(n){return n=n.toLowerCase(),n=n.replace(/s$/,""),"day"===n?"date":n},e.getEpoch=function(n){return"number"==typeof n?n:e.isDate(n)?n.getTime():n.epoch?n.epoch:null}},{}],13:[function(n,t,e){"use strict";function r(n){var t=["add","subtract","hour","date","day","month","quarter","goto"];return t.forEach(function(t){Object.defineProperty(n,t,{enumerable:!1,value:function(){for(var e=n.clone(),r=arguments.length,o=Array(r),a=0;a0&&t100&&(o/=100);var a=n.timezone().current.offset;if(a===o)return n;o>=0&&(o="+"+o);var i="Etc/GMT"+o,s=n.timezones;return s[i]&&(r&&s[r]&&s[r].o!==s[i].o&&"undefined"!=typeof e&&e.env&&!e.env.TESTENV&&(console.warn(" - Setting timezone to: '"+i+"'"),console.warn(" from ISO string '"+t+"'"),console.warn(" overwriting given timezone: '"+r+"'\n")),n.tz=i),n},s=[{reg:/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})T([0-9.:]+)(Z|[0-9\-\+:]+)?$/,parse:function(n,t,e){var o=parseInt(t[2],10)-1;i(n,t[5],e),r(n,{year:t[1],month:o,date:t[3]}),a(n,t[4])}},{reg:/^([0-9]{4})[\-\/]([0-9]{1,2})[\-\/]([0-9]{1,2})$/,parse:function(n,t){var e=parseInt(t[2],10)-1,o=parseInt(t[3],10);e>=12&&(o=parseInt(t[2],10),e=parseInt(t[3],10)-1),r(n,{year:t[1],month:e,date:o})}},{reg:/^([0-9]{1,2})[\-\/]([0-9]{1,2})[\-\/]([0-9]{4})$/,parse:function(n,t){var e=parseInt(t[1],10)-1,o=parseInt(t[2],10);e>=12&&(e=parseInt(t[2],10)-1,o=parseInt(t[1],10)),r(n,{year:t[3],month:e,date:o})}},{reg:/^([a-z]+) ([0-9]{1,2}),? ([0-9]{4})( ([0-9:]+))?$/i,parse:function(n,t){var e=o.mapping()[t[1].toLowerCase()];r(n,{year:t[3],month:e,date:t[2]}),t[4]&&a(n,t[4])}},{reg:/^([0-9]{1,2}) ([a-z]+),? ([0-9]{4})$/i,parse:function(n,t){var e=o.mapping()[t[2].toLowerCase()];r(n,{year:t[3],month:e,date:t[1]})}}];t.exports=s}).call(this,n("_process"))},{"../data/months":8,"../methods/set/walk":31,_process:3}],16:[function(n,t,e){"use strict";var r=n("./methods/format"),o=n("./methods/progress"),a=n("./methods/nearest"),i=n("./methods/diff"),s=n("./methods/startOf"),u=n("./timezone/index"),c=n("./input"),h={set:function(n){return c(this,n),this},timezone:function(){return u(this)},isDST:function(){return u(this).current.isDST},hasDST:function(){return u(this).hasDst},offset:function(){return u(this).current.offset/60},hemisphere:function(){return u(this).hemisphere},format:function(n){return r(this,n)},startOf:function(n){return s.startOf(this,n)},endOf:function(n){return s.endOf(this,n)},leapYear:function(){var n=this.year();return n%4===0&&n%100!==0||n%400===0},progress:function(){return o(this)},nearest:function(n){return a(this,n)},diff:function(n,t){return i(this,n,t)},isValid:function(){return this.valid&&!isNaN(this.d.getTime())},goto:function(n){return this.tz=n,this},isAsleep:function(){var n=this.hour();return n<8||n>22},log:function(){return console.log(""),console.log(r(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(r(this,"full-short")),this},debug:function(){var n=this.timezone(),t=this.format("MM")+" "+this.format("date-ordinal")+" "+this.year();return t+="\n - "+this.format("time"),console.log("\n\n",t+"\n - "+n.name+" ("+n.current.offset+")"),this}};h.inDST=h.isDST,h.round=h.nearest,t.exports=h},{"./input":14,"./methods/diff":19,"./methods/format":20,"./methods/nearest":23,"./methods/progress":24,"./methods/startOf":32,"./timezone/index":35}],17:[function(n,t,e){"use strict";var r=n("./set/walk"),o=n("../data/milliseconds"),a=n("../data/monthLength"),i=n("../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},h=function(n,t){if(n.month>0){var e=parseInt(n.month/12,10);n.year=t.year()+e,n.month=n.month%12}else if(n.month<0){var r=Math.floor(Math.abs(n.month)/13,10);r=Math.abs(r)+1,n.year=t.year()-r,n.month=n.month%12,n.month=n.month+12,12===n.month&&(n.month=0)}return n},d=function(n){n.prototype.add=function(n,t){var e=this.clone();t=i.normalize(t),o[t]?this.epoch+=o[t]*n:"week"===t?this.epoch+=o.day*(7*n):"quarter"===t||"season"===t?this.epoch+=o.month*(4*n):"season"===t?this.epoch+=o.month*(4*n):"quarterhour"===t&&(this.epoch+=15*o.minute);var s={};if(u[t]&&u[t].forEach(function(n){s[n]=e[n]()}),"month"===t?(s.month=e.month()+n,s=h(s,e)):"date"===t&&0!==n&&e.isSame(this,"day")?s.date=e.date()+n:"year"===t&&this.year()===e.year()&&(this.epoch+=o.week),c[t]){var d=a[s.month];s.date=e.date(),s.date>d&&(s.date=d)}return r(this,s),this},n.prototype.subtract=function(n,t){return this.add(n*-1,t),this}};t.exports=d},{"../data/milliseconds":6,"../data/monthLength":7,"../fns":12,"./set/walk":31}],18:[function(n,t,e){"use strict";var r=n("../fns"),o=function(n){var t={isAfter:function(n){var t=r.getEpoch(n);return null===t?null:this.epoch>t},isBefore:function(n){var t=r.getEpoch(n);return null===t?null:this.epoch.5&&n.add(1,t),n.startOf(t)):console.warn("no known unit '"+t+"'"),n};t.exports=r},{}],24:[function(n,t,e){"use strict";var r=function(n){var t=["year","season","quarter","month","week","day","quarterHour","hour","minute"],e={};return t.forEach(function(t){var r=n.clone().startOf(t),o=n.clone().endOf(t),a=o.epoch-r.epoch,i=(n.epoch-r.epoch)/a;e[t]=parseFloat(i.toFixed(2))}),e};t.exports=r},{}],25:[function(n,t,e){"use strict";var r=n("../../data/quarters"),o=n("../../data/seasons"),a=n("../set/set"),i=function(n){n.minute(0),n.second(0),n.millisecond(1)};t.exports={time:function(n){return void 0!==n?(this.epoch=a.time(this,n),this):this.format("time-h12")},week:function(n){if(void 0!==n)return this.month(0),this.date(1),this.day("monday"),i(this),"december"===this.monthName()&&this.add(1,"week"),n-=1,this.add(n,"weeks"),this;var t=this.clone();t.month(0),t.date(1),i(t),t.day("monday"),"december"===t.monthName()&&t.add(1,"week");var e=this.epoch;if(t.epoch>e)return 1;for(var r=0;r<52;r++){if(t.epoch>e)return r;t.add(1,"week")}return 52},quarter:function(n){if(void 0!==n&&("string"==typeof n&&(n=n.replace(/^q/i,""),n=parseInt(n,10)),r[n])){var t=r[n][0];return this.month(t),this.date(1),this.hour(0),i(this),this}for(var e=this.d.getMonth(),o=1;o=o[t][a][1]&&r12&&(n-=12),0===n&&(n=12),n},date:function(n){return void 0!==n?(this.epoch=r.date(this,n),this):this.d.getDate()},month:function(n){return void 0!==n?(this.epoch=r.month(this,n),this):this.d.getMonth()},year:function(n){return void 0!==n?(this.epoch=r.year(this,n),this):this.d.getFullYear()},dayTime:function(n){if(void 0!==n){var t={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"};return n=n||"",n=n.toLowerCase(),t[n]&&this.time(t[n]),this}var e=this.hour();return e<6?"night":e<12?"morning":e<17?"afternoon":e<22?"evening":"night"},dayOfYear:function(n){if(void 0!==n)return this.epoch=r.dayOfYear(this,n),this;for(var t=0,e=this.d.getMonth(),o=void 0,a=1;a<=e;a++)o=new Date,o.setYear(this.d.getFullYear()),o.setMonth(a),o.setDate(1),o.setHours(-2),t+=o.getDate();return t+this.d.getDate()},era:function(n){if(void 0!==n){n=n.toLowerCase();var t=this.d.getFullYear();return"bc"===n&&t>0&&(this.epoch=r.year(this,t*-1)),"ad"===n&&t<0&&(this.epoch=r.year(this,t*-1)),this}return this.d.getFullYear()<0?"BC":"AD"}};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,t.exports=o},{"../set/set":30}],28:[function(n,t,e){"use strict";var r=n("../../data/days"),o=n("../../data/months"),a=n("../set/walk");t.exports={day:function n(t){if(void 0===t)return this.d.getDay();var e=this.clone(),o=t;"string"==typeof t&&(t=t.toLowerCase(),o=r.short().indexOf(t),o===-1&&(o=r.long().indexOf(t)));var n=this.d.getDay(),i=n-o,s=this.subtract(24*i,"hours");return a(s,{hour:e.hour(),minute:e.minute(),second:e.second()}),this.epoch=s.epoch,s},ampm:function(n){var t="am",e=this.hour();return e>=12&&(t="pm"),void 0===n?t:n===t?this:("am"===n?this.subtract(12,"hours"):this.add(12,"hours"),this)},dayName:function(n){return void 0===n?r.long()[this.day()]:(this.day(n),this)},monthName:function(n){return void 0===n?o.long()[this.month()]:(this.month(n),this)}}},{"../../data/days":5,"../../data/months":8,"../set/walk":31}],29:[function(n,t,e){"use strict";var r={millisecond:function(n){return n.epoch},second:function(n){return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second()].join("-")},minute:function(n){return[n.year(),n.month(),n.date(),n.hour(),n.minute()].join("-")},hour:function(n){return[n.year(),n.month(),n.date(),n.hour()].join("-")},day:function(n){return[n.year(),n.month(),n.date()].join("-")},week:function(n){return[n.year(),n.week()].join("-")},month:function(n){return[n.year(),n.month()].join("-")},quarter:function(n){return[n.year(),n.quarter()].join("-")},year:function(n){return n.year()}};r.date=r.day;var o=function(n){n.prototype.isSame=function(t,e){var o=this;return"string"!=typeof t&&"number"!=typeof t||(t=new n(t,this.timezone.name)),e=e.replace(/s$/,""),r[e]?r[e](o)===r[e](t):null}};t.exports=o},{}],30:[function(n,t,e){"use strict";var r=n("../../data/milliseconds"),o=n("../../data/months"),a=n("../../data/monthLength"),i=n("./walk"),s=function(n){return"string"==typeof n&&(n=parseInt(n,10)),n},u=["year","month","date","hour","minute","second","millisecond"],c=function(n,t,e){for(var r=u.indexOf(e),o=u.slice(r,u.length),a=0;a12&&(r=!0),r===!1&&("am"===e[3]&&12===o&&(o=0),"pm"===e[3]&&o<12&&(o+=12)),n.hour(o),n.minute(a),n.second(0),n.millisecond(0),n.epoch},date:function(n,t){return t=s(t),i(n,{date:t}),n.epoch},month:function(n,t){"string"==typeof t&&(t=o.mapping()[t.toLowerCase()]),t=s(t);var e=n.date();return e>a[t]&&(e=a[t]),i(n,{month:t,date:e}),n.epoch},year:function(n,t){return t=s(t),i(n,{year:t}),n.epoch},dayOfYear:function(n,t){t=s(t);var e=n.clone(),o=t-n.dayOfYear(),a=o*r.day;return n.epoch+=a,c(n,e,"hour"),n.epoch}}},{"../../data/milliseconds":6,"../../data/monthLength":7,"../../data/months":8,"./walk":31}],31:[function(n,t,e){"use strict";var r=n("../../data/milliseconds"),o=function(n,t,e,o){var a=n.d[e]();if(a!==t){var i=t-a;for(n.epoch+=r[o]*i;n.d[e]()t;)n.epoch-=r[o]}},a={year:{valid:function(n){return n>-4e3&&n<4e3},walkTo:function(n,t){return o(n,t,"getFullYear","year")}},month:{valid:function(n){return n>=0&&n<=11},walkTo:function(n,t){var e=n.d.getMonth();if(e!==t){var o=t-e;for(n.epoch+=r.day*(28*o);n.d.getMonth()t;)n.epoch-=r.day}}},date:{valid:function(n){return n>0&&n<=31},walkTo:function(n,t){return o(n,t,"getDate","day")}},hour:{valid:function(n){return n>=0&&n<24},walkTo:function(n,t){return o(n,t,"getHours","hour")}},minute:{valid:function(n){return n>=0&&n<60},walkTo:function(n,t){return o(n,t,"getMinutes","minute")}},second:{valid:function(n){return n>=0&&n<60},walkTo:function(n,t){return o(n,t,"getSeconds","second")}},millisecond:{valid:function(n){return n>=0&&n<1e3},walkTo:function(n,t){n.milliseconds(t)}}},i=function(n,t){for(var e=Object.keys(a),r=n.clone(),o=0;o=45?n.minutes(45):t>=30?n.minutes(30):t>=15?n.minutes(15):n.minutes(0),a(n,{second:0,millisecond:0}),n},hour:function(n){return a(n,{minute:0,second:0,millisecond:0}),n},day:function(n){return a(n,{hour:0,minute:0,second:0,millisecond:0}),n},week:function(n){var t=n.clone();return n.day(1),n.isAfter(t)&&n.subtract(1,"week"),a(n,{hour:0,minute:0,second:0,millisecond:0}),n},month:function(n){return a(n,{date:1,hour:0,minute:0,second:0,millisecond:0}),n},quarter:function(n){var t=n.quarter();return o[t]&&a(n,{month:o[t][0],date:o[t][1],hour:0,minute:0,second:0,millisecond:0}),n},season:function(n){var t=n.season(),e="north";"South"===n.timezone().hemisphere&&(e="south");for(var o=0;o"):[]},a=function(n){var t=n.tz,e=n.timezones;if(!e[t])return console.warn("Warn: could not find given or local timezone - '"+t+"'"),{current:{epochShift:0}};var a={name:t,hasDst:Boolean(e[t].dst),hemisphere:"s"===e[t].h?"South":"North",change:{},current:{}};if(a.hasDst===!0){var i=o(e[t].dst);a.change={start:i[0],back:i[1]}}var s=e[t].o,u=s;return a.hasDst===!0&&(u="North"===a.hemisphere?s-1:e[t].o+1),a.hasDst===!1?(a.current.offset=s,a.current.isDST=!1):r(n,a)===!0?(a.current.offset=s,a.current.isDST="North"===a.hemisphere):(a.current.offset=u,a.current.isDST="South"===a.hemisphere),a};t.exports=a},{"./summerTime":36}],36:[function(n,t,e){"use strict";var r=n("../fns").zeroPad,o=function(n){return r(n.getMonth()+1)+"/"+r(n.getDate())+":"+r(n.getHours())},a=function(n,t){if(t.hasDst!==!0||!t.change.start||!t.change.back)return!1;var e=new Date(n.epoch),r=o(e);return r>=t.change.start&&r10/29:02"],Ceuta:[2,"n","03/26:03->10/29:02"],Conakry:[0,"n"],Dakar:[0,"n"],Dar_es_Salaam:[3,"n"],Djibouti:[3,"n"],Douala:[1,"n"],El_Aaiun:[1,"n","07/02:03->10/29:02"],Freetown:[0,"n"],Gaborone:[2,"s"],Harare:[2,"s"],Johannesburg:[2,"s"],Juba:[3,"n"],Kampala:[3,"n"],Khartoum:[3,"n"],Kigali:[2,"n"],Kinshasa:[1,"s"],Lagos:[1,"n"],Libreville:[1,"n"],Lome:[0,"n"],Luanda:[1,"s"],Lubumbashi:[2,"s"],Lusaka:[2,"s"],Malabo:[1,"n"],Maputo:[2,"s"],Maseru:[2,"s"],Mbabane:[2,"s"],Mogadishu:[3,"n"],Monrovia:[0,"n"],Nairobi:[3,"n"],Ndjamena:[1,"n"],Niamey:[1,"n"],Nouakchott:[0,"n"],Ouagadougou:[0,"n"],"Porto-Novo":[1,"n"],Sao_Tome:[0,"n"],Timbuktu:[0,"n"],Tripoli:[2,"n"],Tunis:[1,"n"],Windhoek:[1,"s","04/02:01->09/03:03"]},America:{Adak:[-9,"n","03/12:03->11/05:01"],Anchorage:[-8,"n","03/12:03->11/05:01"],Anguilla:[-4,"n"],Antigua:[-4,"n"],Araguaina:[-3,"n"],Argentina:[-3,"s"],Aruba:[-4,"n"],Asuncion:[-4,"s","03/25:23->10/01:01"],Atikokan:[-5,"n"],Atka:[-9,"n","03/12:03->11/05:01"],Bahia:[-3,"n"],Bahia_Banderas:[-5,"n","04/02:03->10/29:01"],Barbados:[-4,"n"],Belem:[-3,"n"],Belize:[-6,"n"],"Blanc-Sablon":[-4,"n"],Boa_Vista:[-4,"n"],Bogota:[-5,"n"],Boise:[-6,"n","03/12:03->11/05:01"],Buenos_Aires:[-3,"s"],Cambridge_Bay:[-6,"n","03/12:03->11/05:01"],Campo_Grande:[-4,"s","02/18:23->10/15:01"],Cancun:[-5,"n"],Caracas:[-4,"n"],Catamarca:[-3,"n"],Cayenne:[-3,"n"],Cayman:[-5,"n"],Chicago:[-5,"n","03/12:03->11/05:01"],Chihuahua:[-6,"n","04/02:03->10/29:01"],Coral_Harbour:[-5,"n"],Cordoba:[-3,"s"],Costa_Rica:[-6,"n"],Creston:[-7,"n"],Cuiaba:[-4,"s","02/18:23->10/15:01"],Curacao:[-4,"n"],Danmarkshavn:[0,"n"],Dawson:[-7,"n","03/12:03->11/05:01"],Dawson_Creek:[-7,"n"],Denver:[-6,"n","03/12:03->11/05:01"],Detroit:[-4,"n","03/12:03->11/05:01"],Dominica:[-4,"n"],Edmonton:[-6,"n","03/12:03->11/05:01"],Eirunepe:[-5,"n"],El_Salvador:[-6,"n"],Ensenada:[-7,"n","03/12:03->11/05:01"],Fort_Wayne:[-4,"n","03/12:03->11/05:01"],Fortaleza:[-3,"n"],Glace_Bay:[-3,"n","03/12:03->11/05:01"],Godthab:[-3,"n","03/25:23->10/28:22"],Goose_Bay:[-3,"n","03/12:03->11/05:01"],Grand_Turk:[-4,"n"],Grenada:[-4,"n"],Guadeloupe:[-4,"n"],Guatemala:[-6,"n"],Guayaquil:[-5,"n"],Guyana:[-4,"n"],Halifax:[-3,"n","03/12:03->11/05:01"],Havana:[-4,"n","03/12:01->11/05:00"],Hermosillo:[-7,"n"],Indiana:[-4,"n","03/12:03->11/05:01"],Indianapolis:[-4,"n","03/12:03->11/05:01"],Inuvik:[-6,"n","03/12:03->11/05:01"],Iqaluit:[-4,"n","03/12:03->11/05:01"],Jamaica:[-5,"n"],Jujuy:[-3,"n"],Juneau:[-8,"n","03/12:03->11/05:01"],Kentucky:[-4,"n","03/12:03->11/05:01"],Knox_IN:[-5,"n","03/12:03->11/05:01"],Kralendijk:[-4,"n"],La_Paz:[-4,"s"],Lima:[-5,"s"],Los_Angeles:[-7,"n","03/12:03->11/05:01"],Louisville:[-4,"n","03/12:03->11/05:01"],Lower_Princes:[-4,"n"],Maceio:[-3,"n"],Managua:[-6,"n"],Manaus:[-4,"s"],Marigot:[-4,"n"],Martinique:[-4,"n"],Matamoros:[-5,"n","03/12:03->11/05:01"],Mazatlan:[-6,"n","04/02:03->10/29:01"],Mendoza:[-3,"n"],Menominee:[-5,"n","03/12:03->11/05:01"],Merida:[-5,"n","04/02:03->10/29:01"],Metlakatla:[-8,"n","03/12:03->11/05:01"],Mexico_City:[-5,"n","04/02:03->10/29:01"],Miquelon:[-2,"n","03/12:03->11/05:01"],Moncton:[-3,"n","03/12:03->11/05:01"],Monterrey:[-5,"n","04/02:03->10/29:01"],Montevideo:[-3,"s"],Montreal:[-4,"n","03/12:03->11/05:01"],Montserrat:[-4,"n"],Nassau:[-4,"n","03/12:03->11/05:01"],New_York:[-4,"n","03/12:03->11/05:01"],Nipigon:[-4,"n","03/12:03->11/05:01"],Nome:[-8,"n","03/12:03->11/05:01"],Noronha:[-2,"n"],North_Dakota:[-5,"n","03/12:03->11/05:01"],Ojinaga:[-6,"n","03/12:03->11/05:01"],Panama:[-5,"n"],Pangnirtung:[-4,"n","03/12:03->11/05:01"],Paramaribo:[-3,"n"],Phoenix:[-7,"n"],"Port-au-Prince":[-4,"n"],Port_of_Spain:[-4,"n"],Porto_Acre:[-5,"n"],Porto_Velho:[-4,"n"],Puerto_Rico:[-4,"n"],Rainy_River:[-5,"n","03/12:03->11/05:01"],Rankin_Inlet:[-5,"n","03/12:03->11/05:01"],Recife:[-3,"n"],Regina:[-6,"n"],Resolute:[-5,"n","03/12:03->11/05:01"],Rio_Branco:[-5,"n"],Rosario:[-3,"n"],Santa_Isabel:[-7,"n","03/12:03->11/05:01"],Santarem:[-3,"n"],Santiago:[-4,"s","05/13:23->08/13:01"],Santo_Domingo:[-4,"n"],Sao_Paulo:[-3,"s","02/18:23->10/15:01"],Scoresbysund:[0,"n","03/26:01->10/29:00"],Shiprock:[-6,"n","03/12:03->11/05:01"],Sitka:[-8,"n","03/12:03->11/05:01"],St_Barthelemy:[-4,"n"],St_Johns:[-2.5,"n","03/12:03->11/05:01"],St_Kitts:[-4,"n"],St_Lucia:[-4,"n"],St_Thomas:[-4,"n"],St_Vincent:[-4,"n"],Swift_Current:[-6,"n"],Tegucigalpa:[-6,"n"],Thule:[-3,"n","03/12:03->11/05:01"],Thunder_Bay:[-4,"n","03/12:03->11/05:01"],Tijuana:[-7,"n","03/12:03->11/05:01"],Toronto:[-4,"n","03/12:03->11/05:01"],Tortola:[-4,"n"],Vancouver:[-7,"n","03/12:03->11/05:01"],Virgin:[-4,"n"],Whitehorse:[-7,"n","03/12:03->11/05:01"],Winnipeg:[-5,"n","03/12:03->11/05:01"],Yakutat:[-8,"n","03/12:03->11/05:01"],Yellowknife:[-6,"n","03/12:03->11/05:01"]},Antarctica:{Casey:[8,"s"],Davis:[7,"s"],DumontDUrville:[10,"s"],Macquarie:[11,"s"],Mawson:[5,"s"],McMurdo:[12,"s","04/02:02->09/24:03"],Palmer:[-4,"s","05/13:23->08/13:01"],Rothera:[-3,"s"],South_Pole:[12,"s","04/02:02->09/24:03"],Syowa:[3,"s"],Troll:[2,"s","03/26:03->10/29:01"],Vostok:[6,"s"]},Arctic:{Longyearbyen:[2,"n","03/26:03->10/29:02"]},Asia:{Aden:[3,"n"],Almaty:[6,"n"],Amman:[3,"n","03/31:01->10/27:00"],Anadyr:[12,"n"],Aqtau:[5,"n"],Aqtobe:[5,"n"],Ashgabat:[5,"n"],Ashkhabad:[5,"n"],Baghdad:[3,"n"],Bahrain:[3,"n"],Baku:[5,"n"],Bangkok:[7,"n"],Barnaul:[7,"n"],Beirut:[3,"n","03/26:01->10/28:23"],Bishkek:[6,"n"],Brunei:[8,"n"],Calcutta:[5.5,"n"],Chita:[10,"n"],Choibalsan:[8,"n","03/25:03->09/29:23"],Chongqing:[8,"n"],Chungking:[8,"n"],Colombo:[5.5,"n"],Dacca:[6,"n"],Damascus:[3,"n","03/31:01->10/26:23"],Dhaka:[6,"n"],Dili:[9,"s"],Dubai:[4,"n"],Dushanbe:[5,"n"],Gaza:[3,"n","03/25:02->10/28:00"],Harbin:[8,"n"],Hebron:[3,"n","03/25:02->10/28:00"],Ho_Chi_Minh:[7,"n"],Hong_Kong:[8,"n"],Hovd:[7,"n","03/25:03->09/29:23"],Irkutsk:[9,"n"],Istanbul:[3,"n"],Jakarta:[7,"s"],Jayapura:[9,"n"],Jerusalem:[3,"n","03/24:03->10/29:01"],Kabul:[4.5,"n"],Kamchatka:[13,"n"],Karachi:[5,"n"],Kashgar:[6,"n"],Kathmandu:[5.75,"n"],Katmandu:[5.75,"n"],Khandyga:[10,"n"],Kolkata:[5.5,"n"],Krasnoyarsk:[8,"n"],Kuala_Lumpur:[8,"s"],Kuching:[8,"n"],Kuwait:[3,"n"],Macao:[8,"n"],Macau:[8,"n"],Magadan:[12,"n"],Makassar:[8,"s"],Manila:[8,"n"],Muscat:[4,"n"],Nicosia:[3,"n","03/26:04->10/29:03"],Novokuznetsk:[7,"n"],Novosibirsk:[7,"n"],Omsk:[7,"n"],Oral:[5,"n"],Phnom_Penh:[7,"n"],Pontianak:[7,"n"],Pyongyang:[9,"n"],Qatar:[3,"n"],Qyzylorda:[6,"n"],Rangoon:[6.5,"n"],Riyadh:[3,"n"],Saigon:[7,"n"],Sakhalin:[11,"n"],Samarkand:[5,"n"],Seoul:[9,"n"],Shanghai:[8,"n"],Singapore:[8,"s"],Srednekolymsk:[12,"n"],Taipei:[8,"n"],Tashkent:[5,"n"],Tbilisi:[4,"n"],Tehran:[4.5,"n","03/22:01->09/21:23"],Tel_Aviv:[3,"n","03/24:03->10/29:01"],Thimbu:[6,"n"],Thimphu:[6,"n"],Tokyo:[9,"n"],Ujung_Pandang:[8,"n"],Ulaanbaatar:[8,"n","03/25:03->09/29:23"],Ulan_Bator:[8,"n","03/25:03->09/29:23"],Urumqi:[6,"n"],"Ust-Nera":[11,"n"],Vientiane:[7,"n"],Vladivostok:[11,"n"],Yakutsk:[10,"n"],Yekaterinburg:[6,"n"],Yerevan:[4,"n"]},Atlantic:{Azores:[0,"n","03/26:01->10/29:00"],Bermuda:[-3,"n","03/12:03->11/05:01"],Canary:[1,"n","03/26:02->10/29:01"],Cape_Verde:[-1,"n"],Faeroe:[1,"n","03/26:02->10/29:01"],Faroe:[1,"n","03/26:02->10/29:01"],Jan_Mayen:[2,"n","03/26:03->10/29:02"],Madeira:[1,"n","03/26:02->10/29:01"],Reykjavik:[0,"n"],South_Georgia:[-2,"n"],St_Helena:[0,"n"],Stanley:[-3,"n"]},Australia:{ACT:[10,"s","04/02:02->10/01:03"],Adelaide:[9.5,"s","04/02:02->10/01:03"],Brisbane:[10,"s"],Broken_Hill:[9.5,"s","04/02:02->10/01:03"],Canberra:[10,"s","04/02:02->10/01:03"],Currie:[10,"s","04/02:02->10/01:03"],Darwin:[9.5,"s"],Eucla:[8.75,"s"],Hobart:[10,"s","04/02:02->10/01:03"],LHI:[10.5,"s","04/02:01->10/01:02"],Lindeman:[10,"s"],Lord_Howe:[10.5,"s","04/02:01->10/01:02"],Melbourne:[10,"s","04/02:02->10/01:03"],NSW:[10,"s","04/02:02->10/01:03"],North:[9.5,"s"],Perth:[8,"s"],Queensland:[10,"s"],South:[9.5,"s","04/02:02->10/01:03"],Sydney:[10,"s","04/02:02->10/01:03"],Tasmania:[10,"s","04/02:02->10/01:03"],Victoria:[10,"s","04/02:02->10/01:03"],West:[8,"s"],Yancowinna:[9.5,"s","04/02:02->10/01:03"]},Brazil:{Acre:[-5,"s"],DeNoronha:[-2,"s"],East:[-3,"s","02/18:23->10/15:01"],West:[-4,"s"]},Canada:{Atlantic:[-3,"n","03/12:03->11/05:01"],Central:[-5,"n","03/12:03->11/05:01"],"East-Saskatchewan":[-6,"n"],Eastern:[-4,"n","03/12:03->11/05:01"],Mountain:[-6,"n","03/12:03->11/05:01"],Newfoundland:[-2.5,"n","03/12:03->11/05:01"],Pacific:[-7,"n","03/12:03->11/05:01"],Saskatchewan:[-6,"n"],Yukon:[-7,"n","03/12:03->11/05:01"]},Chile:{Continental:[-3,"s","05/13:23->08/13:01"],EasterIsland:[-5,"s","05/13:21->08/12:23"]},Etc:{GMT:[0,"n"],"GMT+0":[0,"n"],"GMT+1":[-1,"n"],"GMT+10":[-10,"n"],"GMT+11":[-11,"n"],"GMT+12":[-12,"n"],"GMT+2":[-2,"n"],"GMT+3":[-3,"n"],"GMT+4":[-4,"n"],"GMT+5":[-5,"n"],"GMT+6":[-6,"n"],"GMT+7":[-7,"n"],"GMT+8":[-8,"n"],"GMT+9":[-9,"n"],"GMT-0":[0,"n"],"GMT-1":[1,"n"],"GMT-10":[10,"n"],"GMT-11":[11,"n"],"GMT-12":[12,"n"],"GMT-13":[13,"n"],"GMT-14":[14,"n"],"GMT-2":[2,"n"],"GMT-3":[3,"n"],"GMT-4":[4,"n"],"GMT-5":[5,"n"],"GMT-6":[6,"n"],"GMT-7":[7,"n"],"GMT-8":[8,"n"],"GMT-9":[9,"n"],GMT0:[0,"n"],Greenwich:[0,"n"],UCT:[0,"n"],UTC:[0,"n"],Universal:[0,"n"],Zulu:[0,"n"]},Europe:{Amsterdam:[2,"n","03/26:03->10/29:02"],Andorra:[2,"n","03/26:03->10/29:02"],Athens:[3,"n","03/26:04->10/29:03"],Belfast:[1,"n","03/26:02->10/29:01"],Belgrade:[2,"n","03/26:03->10/29:02"],Berlin:[2,"n","03/26:03->10/29:02"],Bratislava:[2,"n","03/26:03->10/29:02"],Brussels:[2,"n","03/26:03->10/29:02"],Bucharest:[3,"n","03/26:04->10/29:03"],Budapest:[2,"n","03/26:03->10/29:02"],Busingen:[2,"n","03/26:03->10/29:02"],Chisinau:[3,"n","03/26:03->10/29:02"],Copenhagen:[2,"n","03/26:03->10/29:02"],Dublin:[1,"n","03/26:02->10/29:01"],Gibraltar:[2,"n","03/26:03->10/29:02"],Guernsey:[1,"n","03/26:02->10/29:01"],Helsinki:[3,"n","03/26:04->10/29:03"],Isle_of_Man:[1,"n","03/26:02->10/29:01"],Istanbul:[3,"n"],Jersey:[1,"n","03/26:02->10/29:01"],Kaliningrad:[3,"n"],Kiev:[3,"n","03/26:04->10/29:03"],Lisbon:[1,"n","03/26:02->10/29:01"],Ljubljana:[2,"n","03/26:03->10/29:02"],London:[1,"n","03/26:02->10/29:01"],Luxembourg:[2,"n","03/26:03->10/29:02"],Madrid:[2,"n","03/26:03->10/29:02"],Malta:[2,"n","03/26:03->10/29:02"],Mariehamn:[3,"n","03/26:04->10/29:03"],Minsk:[3,"n"],Monaco:[2,"n","03/26:03->10/29:02"],Moscow:[3,"n"],Nicosia:[3,"n","03/26:04->10/29:03"],Oslo:[2,"n","03/26:03->10/29:02"],Paris:[2,"n","03/26:03->10/29:02"],Podgorica:[2,"n","03/26:03->10/29:02"],Prague:[2,"n","03/26:03->10/29:02"],Riga:[3,"n","03/26:04->10/29:03"],Rome:[2,"n","03/26:03->10/29:02"],Samara:[4,"n"],San_Marino:[2,"n","03/26:03->10/29:02"],Sarajevo:[2,"n","03/26:03->10/29:02"],Simferopol:[3,"n"],Skopje:[2,"n","03/26:03->10/29:02"],Sofia:[3,"n","03/26:04->10/29:03"],Stockholm:[2,"n","03/26:03->10/29:02"],Tallinn:[3,"n","03/26:04->10/29:03"],Tirane:[2,"n","03/26:03->10/29:02"],Tiraspol:[3,"n","03/26:03->10/29:02"],Uzhgorod:[3,"n","03/26:04->10/29:03"],Vaduz:[2,"n","03/26:03->10/29:02"],Vatican:[2,"n","03/26:03->10/29:02"],Vienna:[2,"n","03/26:03->10/29:02"],Vilnius:[3,"n","03/26:04->10/29:03"],Volgograd:[3,"n"],Warsaw:[2,"n","03/26:03->10/29:02"],Zagreb:[2,"n","03/26:03->10/29:02"],Zaporozhye:[3,"n","03/26:04->10/29:03"],Zurich:[2,"n","03/26:03->10/29:02"]},Indian:{Antananarivo:[3,"s"],Chagos:[6,"n"],Christmas:[7,"n"],Cocos:[6.5,"n"],Comoro:[3,"n"],Kerguelen:[5,"s"],Mahe:[4,"n"],Maldives:[5,"n"],Mauritius:[4,"n"],Mayotte:[3,"n"],Reunion:[4,"s"]},Mexico:{BajaNorte:[-7,"n","03/12:03->11/05:01"],BajaSur:[-6,"n","04/02:03->10/29:01"],General:[-5,"n","04/02:03->10/29:01"]},Pacific:{Apia:[13,"s","04/02:03->09/24:04"],Auckland:[12,"s","04/02:02->09/24:03"],Chatham:[12.75,"s","04/02:02->09/24:03"],Chuuk:[10,"n"],Easter:[-6,"s","05/13:21->08/12:23"],Efate:[11,"n"],Enderbury:[13,"n"],Fakaofo:[13,"n"],Fiji:[12,"s","01/15:02->11/05:03"],Funafuti:[12,"n"],Galapagos:[-6,"n"],Gambier:[-9,"n"],Guadalcanal:[11,"n"],Guam:[10,"n"],Honolulu:[-10,"n"],Johnston:[-10,"n"],Kiritimati:[14,"n"],Kosrae:[11,"n"],Kwajalein:[12,"n"],Majuro:[12,"n"],Marquesas:[-9.5,"n"],Midway:[-11,"n"],Nauru:[12,"n"],Niue:[-11,"n"],Norfolk:[11.5,"n"],Noumea:[11,"n"],Pago_Pago:[-11,"n"],Palau:[9,"n"],Pitcairn:[-8,"n"],Pohnpei:[11,"n"],Ponape:[11,"n"],Port_Moresby:[10,"n"],Rarotonga:[-10,"n"],Saipan:[10,"n"],Samoa:[-11,"n"],Tahiti:[-10,"n"],Tarawa:[12,"n"],Tongatapu:[13,"s","01/15:02->11/05:03"],Truk:[10,"n"],Wake:[12,"n"],Wallis:[12,"n"],Yap:[10,"n"]}}},{}],3:[function(n,t,e){t.exports={name:"spacetime",version:"3.0.1",description:"represent dates in remote timezones",main:"./spacetime.js",license:"Apache-2.0",scripts:{precommit:"lint-staged",build:"node ./scripts/build.js",demo:"node ./scripts/demo.js",watch:"node ./scripts/watch.js",test:"TESTENV=dev tape ./test/**/*.test.js | tap-dot",t:"TESTENV=dev tape ./test/**/immutable.test.js",testb:"TESTENV=prod tape ./test/**/*.test.js | tap-dot",lint:"eslint .",size:"./node_modules/.bin/size-limit",coverage:"node ./scripts/coverage.js"},repository:{type:"git",url:"https://github.com/smallwins/spacetime.git"},files:["spacetime.js","immutable.js"],dependencies:{},devDependencies:{"babel-preset-es2015":"6.9.0","babel-preset-stage-2":"^6.11.0",babelify:"7.3.0",browserify:"13.0.1",derequire:"^2.0.3",eslint:"^3.1.1","eslint-plugin-prettier":"^2.1.2",gaze:"^1.1.1",nyc:"^8.4.0",prettier:"^1.5.3",shelljs:"^0.7.2","size-limit":"^0.8.0","tap-dot":"^1.0.5",tape:"4.6.0",timekeeper:"^1.0.0","uglify-js":"2.7.0"},"size-limit":[{path:"./spacetime.js",limit:"14 KB"}]}},{}],4:[function(n,t,e){"use strict";var r=["sun","mon","tue","wed","thu","fri","sat"],o=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];t.exports={short:function(){return r},long:function(){return o},set:function(n){r=n.short,o=n.long}}},{}],5:[function(n,t,e){"use strict";var r={millisecond:1};r.second=1e3,r.minute=6e4,r.hour=36e5,r.day=864e5,r.date=864e5,r.month=25488e5,r.week=6048e5,r.year=3154e7,Object.keys(r).forEach(function(n){r[n+"s"]=r[n]}),t.exports=r},{}],6:[function(n,t,e){"use strict";t.exports=[31,28,31,30,31,30,31,31,30,31,30,31]},{}],7:[function(n,t,e){"use strict";function r(){for(var n={},t=0;t=a&&s<=i&&(!(s===a&&t.minute()o.minute()))});return s}},{"./spacetime":32}],11:[function(n,t,e){"use strict";e.isDate=function(n){return"[object Date]"===Object.prototype.toString.call(n)&&!isNaN(n.valueOf())},e.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)},e.isObject=function(n){return"[object Object]"===Object.prototype.toString.call(n)},e.zeroPad=function(n,t){t=t||2;var e="0";return n+="",n.length>=t?n:new Array(t-n.length+1).join(e)+n},e.titleCase=function(n){return n?n[0].toUpperCase()+n.substr(1).toLowerCase():""},e.ordinal=function(n){var t=n%10,e=n%100;return 1===t&&11!==e?n+"st":2===t&&12!==e?n+"nd":3===t&&13!==e?n+"rd":n+"th"},e.normalize=function(n){return n=n.toLowerCase(),n=n.replace(/s$/,""),"day"===n?"date":n},e.getEpoch=function(n){return"number"==typeof n?n:e.isDate(n)?n.getTime():n.epoch?n.epoch:null}},{}],12:[function(n,t,e){"use strict";var r=n("./spacetime"),o=n("./findTz").whereIts,a=n("../package.json"),i=function(n,t){return new r(n,t)};i.now=function(n){return new r((new Date).getTime(),n)},i.today=function(n){var t=new r((new Date).getTime(),n);return t.startOf("day")},i.tomorrow=function(n){var t=new r((new Date).getTime(),n);return t.add(1,"day").startOf("day")},i.yesterday=function(n){var t=new r((new Date).getTime(),n);return t.subtract(1,"day").startOf("day")},i.whereIts=o,i.version=a.version,t.exports=i},{"../package.json":3,"./findTz":10,"./spacetime":32}],13:[function(n,t,e){"use strict";var r=n("./strParse"),o=n("../fns"),a=25e8,i=function(n,t){for(var e=["year","month","date","hour","minute","second","millisecond"],r=0;r0&&t100&&(e/=100);var r=n.timezone().current.offset;if(r===e)return n;e>=0&&(e="+"+e);var o="Etc/GMT"+e,a=n.timezones;return a[o]&&(n.tz=o),n},s=[{reg:/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})T([0-9.:]+)(Z|[0-9\-\+:]+)?$/,parse:function(n,t){var e=parseInt(t[2],10)-1;i(n,t[5]),r(n,{year:t[1],month:e,date:t[3]}),a(n,t[4])}},{reg:/^([0-9]{4})[\-\/]([0-9]{1,2})[\-\/]([0-9]{1,2})$/,parse:function(n,t){var e=parseInt(t[2],10)-1,o=parseInt(t[3],10);e>=12&&(o=parseInt(t[2],10),e=parseInt(t[3],10)-1),r(n,{year:t[1],month:e,date:o})}},{reg:/^([0-9]{1,2})[\-\/]([0-9]{1,2})[\-\/]([0-9]{4})$/,parse:function(n,t){var e=parseInt(t[1],10)-1,o=parseInt(t[2],10);e>=12&&(e=parseInt(t[2],10)-1,o=parseInt(t[1],10)),r(n,{year:t[3],month:e,date:o})}},{reg:/^([a-z]+) ([0-9]{1,2}),? ([0-9]{4})( ([0-9:]+))?$/i,parse:function(n,t){var e=o.mapping()[t[1].toLowerCase()];r(n,{year:t[3],month:e,date:t[2]}),t[4]&&a(n,t[4])}},{reg:/^([0-9]{1,2}) ([a-z]+),? ([0-9]{4})$/i,parse:function(n,t){var e=o.mapping()[t[2].toLowerCase()];r(n,{year:t[3],month:e,date:t[1]})}}];t.exports=s},{"../data/months":7,"../methods/set/walk":30}],15:[function(n,t,e){"use strict";var r=n("./methods/format"),o=n("./methods/progress"),a=n("./methods/nearest"),i=n("./methods/diff"),s=n("./methods/startOf"),u=n("./timezone/index"),c=n("./input"),h={set:function(n){return c(this,n),this},timezone:function(){return u(this)},isDST:function(){return u(this).current.isDST},hasDST:function(){return u(this).hasDst},offset:function(){return u(this).current.offset/60},hemisphere:function(){return u(this).hemisphere},format:function(n){return r(this,n)},startOf:function(n){return s.startOf(this,n)},endOf:function(n){return s.endOf(this,n)},leapYear:function(){var n=this.year();return n%4===0&&n%100!==0||n%400===0},progress:function(){return o(this)},nearest:function(n){return a(this,n)},diff:function(n,t){return i(this,n,t)},isValid:function(){return this.valid&&!isNaN(this.d.getTime())},goto:function(n){return this.tz=n,this},isAsleep:function(){var n=this.hour();return n<8||n>22},log:function(){return console.log(""),console.log(r(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(r(this,"full-short")),this},debug:function(){var n=this.timezone(),t=this.format("MM")+" "+this.format("date-ordinal")+" "+this.year();return t+="\n - "+this.format("time"),console.log("\n\n",t+"\n - "+n.name+" ("+n.current.offset+")"),this}};h.inDST=h.isDST,h.round=h.nearest,t.exports=h},{"./input":13,"./methods/diff":18,"./methods/format":19,"./methods/nearest":22,"./methods/progress":23,"./methods/startOf":31,"./timezone/index":34}],16:[function(n,t,e){"use strict";var r=n("./set/walk"),o=n("../data/milliseconds"),a=n("../data/monthLength"),i=n("../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},h=function(n,t){if(n.month>0){var e=parseInt(n.month/12,10);n.year=t.year()+e,n.month=n.month%12}else if(n.month<0){var r=Math.floor(Math.abs(n.month)/13,10);r=Math.abs(r)+1,n.year=t.year()-r,n.month=n.month%12,n.month=n.month+12,12===n.month&&(n.month=0)}return n},d=function(n){n.prototype.add=function(n,t){var e=this.clone();t=i.normalize(t),o[t]?this.epoch+=o[t]*n:"week"===t?this.epoch+=o.day*(7*n):"quarter"===t||"season"===t?this.epoch+=o.month*(4*n):"season"===t?this.epoch+=o.month*(4*n):"quarterhour"===t&&(this.epoch+=15*o.minute);var s={};if(u[t]&&u[t].forEach(function(n){s[n]=e[n]()}),"month"===t?(s.month=e.month()+n,s=h(s,e)):"date"===t&&0!==n&&e.isSame(this,"day")?s.date=e.date()+n:"year"===t&&this.year()===e.year()&&(this.epoch+=o.week),c[t]){var d=a[s.month];s.date=e.date(),s.date>d&&(s.date=d)}return r(this,s),this},n.prototype.subtract=function(n,t){return this.add(n*-1,t),this}};t.exports=d},{"../data/milliseconds":5,"../data/monthLength":6,"../fns":11,"./set/walk":30}],17:[function(n,t,e){"use strict";var r=n("../fns"),o=function(n){var t={isAfter:function(n){var t=r.getEpoch(n);return null===t?null:this.epoch>t},isBefore:function(n){var t=r.getEpoch(n);return null===t?null:this.epoch.5&&n.add(1,t),n.startOf(t)):console.warn("no known unit '"+t+"'"),n};t.exports=r},{}],23:[function(n,t,e){"use strict";var r=function(n){var t=["year","season","quarter","month","week","day","quarterHour","hour","minute"],e={};return t.forEach(function(t){var r=n.clone().startOf(t),o=n.clone().endOf(t),a=o.epoch-r.epoch,i=(n.epoch-r.epoch)/a;e[t]=parseFloat(i.toFixed(2))}),e};t.exports=r},{}],24:[function(n,t,e){"use strict";var r=n("../../data/quarters"),o=n("../../data/seasons"),a=n("../set/set"),i=function(n){n.minute(0),n.second(0),n.millisecond(1)};t.exports={time:function(n){return void 0!==n?(this.epoch=a.time(this,n),this):this.format("time-h12")},week:function(n){if(void 0!==n)return this.month(0),this.date(1),this.day("monday"),i(this),"december"===this.monthName()&&this.add(1,"week"),n-=1,this.add(n,"weeks"),this;var t=this.clone();t.month(0),t.date(1),i(t),t.day("monday"),"december"===t.monthName()&&t.add(1,"week");var e=this.epoch;if(t.epoch>e)return 1;for(var r=0;r<52;r++){if(t.epoch>e)return r;t.add(1,"week")}return 52},quarter:function(n){if(void 0!==n&&("string"==typeof n&&(n=n.replace(/^q/i,""),n=parseInt(n,10)),r[n])){var t=r[n][0];return this.month(t),this.date(1),this.hour(0),i(this),this}for(var e=this.d.getMonth(),o=1;o=o[t][a][1]&&r12&&(n-=12),0===n&&(n=12),n},date:function(n){return void 0!==n?(this.epoch=r.date(this,n),this):this.d.getDate()},month:function(n){return void 0!==n?(this.epoch=r.month(this,n),this):this.d.getMonth()},year:function(n){return void 0!==n?(this.epoch=r.year(this,n),this):this.d.getFullYear()},dayTime:function(n){if(void 0!==n){var t={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"};return n=n||"",n=n.toLowerCase(),t[n]&&this.time(t[n]),this}var e=this.hour();return e<6?"night":e<12?"morning":e<17?"afternoon":e<22?"evening":"night"},dayOfYear:function(n){if(void 0!==n)return this.epoch=r.dayOfYear(this,n),this;for(var t=0,e=this.d.getMonth(),o=void 0,a=1;a<=e;a++)o=new Date,o.setYear(this.d.getFullYear()),o.setMonth(a),o.setDate(1),o.setHours(-2),t+=o.getDate();return t+this.d.getDate()},era:function(n){if(void 0!==n){n=n.toLowerCase();var t=this.d.getFullYear();return"bc"===n&&t>0&&(this.epoch=r.year(this,t*-1)),"ad"===n&&t<0&&(this.epoch=r.year(this,t*-1)),this}return this.d.getFullYear()<0?"BC":"AD"}};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,t.exports=o},{"../set/set":29}],27:[function(n,t,e){"use strict";var r=n("../../data/days"),o=n("../../data/months"),a=n("../set/walk");t.exports={day:function n(t){if(void 0===t)return this.d.getDay();var e=this.clone(),o=t;"string"==typeof t&&(t=t.toLowerCase(),o=r.short().indexOf(t),o===-1&&(o=r.long().indexOf(t)));var n=this.d.getDay(),i=n-o,s=this.subtract(24*i,"hours");return a(s,{hour:e.hour(),minute:e.minute(),second:e.second()}),this.epoch=s.epoch,s},ampm:function(n){var t="am",e=this.hour();return e>=12&&(t="pm"),void 0===n?t:n===t?this:("am"===n?this.subtract(12,"hours"):this.add(12,"hours"),this)},dayName:function(n){return void 0===n?r.long()[this.day()]:(this.day(n),this)},monthName:function(n){return void 0===n?o.long()[this.month()]:(this.month(n),this)}}},{"../../data/days":4,"../../data/months":7,"../set/walk":30}],28:[function(n,t,e){"use strict";var r={millisecond:function(n){return n.epoch},second:function(n){return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second()].join("-")},minute:function(n){return[n.year(),n.month(),n.date(),n.hour(),n.minute()].join("-")},hour:function(n){return[n.year(),n.month(),n.date(),n.hour()].join("-")},day:function(n){return[n.year(),n.month(),n.date()].join("-")},week:function(n){return[n.year(),n.week()].join("-")},month:function(n){return[n.year(),n.month()].join("-")},quarter:function(n){return[n.year(),n.quarter()].join("-")},year:function(n){return n.year()}};r.date=r.day;var o=function(n){n.prototype.isSame=function(t,e){var o=this;return"string"!=typeof t&&"number"!=typeof t||(t=new n(t,this.timezone.name)),e=e.replace(/s$/,""),r[e]?r[e](o)===r[e](t):null}};t.exports=o},{}],29:[function(n,t,e){"use strict";var r=n("../../data/milliseconds"),o=n("../../data/months"),a=n("../../data/monthLength"),i=n("./walk"),s=function(n){return"string"==typeof n&&(n=parseInt(n,10)),n},u=["year","month","date","hour","minute","second","millisecond"],c=function(n,t,e){for(var r=u.indexOf(e),o=u.slice(r,u.length),a=0;a12&&(r=!0),r===!1&&("am"===e[3]&&12===o&&(o=0),"pm"===e[3]&&o<12&&(o+=12)),n.hour(o),n.minute(a),n.second(0),n.millisecond(0),n.epoch},date:function(n,t){return t=s(t),i(n,{date:t}),n.epoch},month:function(n,t){"string"==typeof t&&(t=o.mapping()[t.toLowerCase()]),t=s(t);var e=n.date();return e>a[t]&&(e=a[t]),i(n,{month:t,date:e}),n.epoch},year:function(n,t){return t=s(t),i(n,{year:t}),n.epoch},dayOfYear:function(n,t){t=s(t);var e=n.clone(),o=t-n.dayOfYear(),a=o*r.day;return n.epoch+=a,c(n,e,"hour"),n.epoch}}},{"../../data/milliseconds":5,"../../data/monthLength":6,"../../data/months":7,"./walk":30}],30:[function(n,t,e){"use strict";var r=n("../../data/milliseconds"),o={year:{valid:function(n){return n>-4e3&&n<4e3},walkTo:function(n,t){for(;n.year()t;)n.epoch-=r.year}},month:{valid:function(n){return n>=0&&n<=11},walkTo:function(n,t){for(;n.month()t;)n.epoch-=r.day}},date:{valid:function(n){return n>0&&n<=31},walkTo:function(n,t){for(;n.date()t;)n.epoch-=r.day}},hour:{valid:function(n){return n>=0&&n<24},walkTo:function(n,t){for(;n.hour()t;)n.epoch-=r.hour}},minute:{valid:function(n){return n>=0&&n<60},walkTo:function(n,t){for(;n.minute()t;)n.epoch-=r.minute}},second:{valid:function(n){return n>=0&&n<60},walkTo:function(n,t){for(;n.second()t;)n.epoch-=r.second}},millisecond:{valid:function(n){return n>=0&&n<1e3},walkTo:function(n,t){n.milliseconds(t)}}},a=function(n,t){for(var e=Object.keys(o),r=n.clone(),a=0;a=45?n.minutes(45):t>=30?n.minutes(30):t>=15?n.minutes(15):n.minutes(0),a(n,{second:0,millisecond:0}),n},hour:function(n){return a(n,{minute:0,second:0,millisecond:0}),n},day:function(n){return a(n,{hour:0,minute:0,second:0,millisecond:0}),n},week:function(n){var t=n.clone();return n.day(1),n.isAfter(t)&&n.subtract(1,"week"),a(n,{hour:0,minute:0,second:0,millisecond:0}),n},month:function(n){return a(n,{date:1,hour:0,minute:0,second:0,millisecond:0}),n},quarter:function(n){var t=n.quarter();return o[t]&&a(n,{month:o[t][0],date:o[t][1],hour:0,minute:0,second:0,millisecond:0}),n},season:function(n){var t=n.season(),e="north";"South"===n.timezone().hemisphere&&(e="south");for(var o=0;o"):[]},a=function(n){var t=n.tz,e=n.timezones;if(!e[t])return console.warn("Warn: could not find given or local timezone - '"+t+"'"),{current:{epochShift:0}};var a={name:t,hasDst:Boolean(e[t].dst),hemisphere:"s"===e[t].h?"South":"North",change:{},current:{}};if(a.hasDst===!0){var i=o(e[t].dst);a.change={start:i[0],back:i[1]}}var s=e[t].o,u=s;return a.hasDst===!0&&(u="North"===a.hemisphere?s-1:e[t].o+1),a.hasDst===!1?(a.current.offset=s,a.current.isDST=!1):r(n,a)===!0?(a.current.offset=s,a.current.isDST="North"===a.hemisphere):(a.current.offset=u,a.current.isDST="South"===a.hemisphere),a};t.exports=a},{"./summerTime":35}],35:[function(n,t,e){"use strict";var r=n("../fns").zeroPad,o=function(n){return r(n.getMonth()+1)+"/"+r(n.getDate())+":"+r(n.getHours())},a=function(n,t){if(t.hasDst!==!0||!t.change.start||!t.change.back)return!1;var e=new Date(n.epoch),r=o(e);return r>=t.change.start&&r10/29:02"],Ceuta:[2,"n","03/26:03->10/29:02"],Conakry:[0,"n"],Dakar:[0,"n"],Dar_es_Salaam:[3,"n"],Djibouti:[3,"n"],Douala:[1,"n"],El_Aaiun:[1,"n","07/02:03->10/29:02"],Freetown:[0,"n"],Gaborone:[2,"s"],Harare:[2,"s"],Johannesburg:[2,"s"],Juba:[3,"n"],Kampala:[3,"n"],Khartoum:[3,"n"],Kigali:[2,"n"],Kinshasa:[1,"s"],Lagos:[1,"n"],Libreville:[1,"n"],Lome:[0,"n"],Luanda:[1,"s"],Lubumbashi:[2,"s"],Lusaka:[2,"s"],Malabo:[1,"n"],Maputo:[2,"s"],Maseru:[2,"s"],Mbabane:[2,"s"],Mogadishu:[3,"n"],Monrovia:[0,"n"],Nairobi:[3,"n"],Ndjamena:[1,"n"],Niamey:[1,"n"],Nouakchott:[0,"n"],Ouagadougou:[0,"n"],"Porto-Novo":[1,"n"],Sao_Tome:[0,"n"],Timbuktu:[0,"n"],Tripoli:[2,"n"],Tunis:[1,"n"],Windhoek:[1,"s","04/02:01->09/03:03"]},America:{Adak:[-9,"n","03/12:03->11/05:01"],Anchorage:[-8,"n","03/12:03->11/05:01"],Anguilla:[-4,"n"],Antigua:[-4,"n"],Araguaina:[-3,"n"],Argentina:[-3,"s"],Aruba:[-4,"n"],Asuncion:[-4,"s","03/25:23->10/01:01"],Atikokan:[-5,"n"],Atka:[-9,"n","03/12:03->11/05:01"],Bahia:[-3,"n"],Bahia_Banderas:[-5,"n","04/02:03->10/29:01"],Barbados:[-4,"n"],Belem:[-3,"n"],Belize:[-6,"n"],"Blanc-Sablon":[-4,"n"],Boa_Vista:[-4,"n"],Bogota:[-5,"n"],Boise:[-6,"n","03/12:03->11/05:01"],Buenos_Aires:[-3,"s"],Cambridge_Bay:[-6,"n","03/12:03->11/05:01"],Campo_Grande:[-4,"s","02/18:23->10/15:01"],Cancun:[-5,"n"],Caracas:[-4,"n"],Catamarca:[-3,"n"],Cayenne:[-3,"n"],Cayman:[-5,"n"],Chicago:[-5,"n","03/12:03->11/05:01"],Chihuahua:[-6,"n","04/02:03->10/29:01"],Coral_Harbour:[-5,"n"],Cordoba:[-3,"s"],Costa_Rica:[-6,"n"],Creston:[-7,"n"],Cuiaba:[-4,"s","02/18:23->10/15:01"],Curacao:[-4,"n"],Danmarkshavn:[0,"n"],Dawson:[-7,"n","03/12:03->11/05:01"],Dawson_Creek:[-7,"n"],Denver:[-6,"n","03/12:03->11/05:01"],Detroit:[-4,"n","03/12:03->11/05:01"],Dominica:[-4,"n"],Edmonton:[-6,"n","03/12:03->11/05:01"],Eirunepe:[-5,"n"],El_Salvador:[-6,"n"],Ensenada:[-7,"n","03/12:03->11/05:01"],Fort_Wayne:[-4,"n","03/12:03->11/05:01"],Fortaleza:[-3,"n"],Glace_Bay:[-3,"n","03/12:03->11/05:01"],Godthab:[-3,"n","03/25:23->10/28:22"],Goose_Bay:[-3,"n","03/12:03->11/05:01"],Grand_Turk:[-4,"n"],Grenada:[-4,"n"],Guadeloupe:[-4,"n"],Guatemala:[-6,"n"],Guayaquil:[-5,"n"],Guyana:[-4,"n"],Halifax:[-3,"n","03/12:03->11/05:01"],Havana:[-4,"n","03/12:01->11/05:00"],Hermosillo:[-7,"n"],Indiana:[-4,"n","03/12:03->11/05:01"],Indianapolis:[-4,"n","03/12:03->11/05:01"],Inuvik:[-6,"n","03/12:03->11/05:01"],Iqaluit:[-4,"n","03/12:03->11/05:01"],Jamaica:[-5,"n"],Jujuy:[-3,"n"],Juneau:[-8,"n","03/12:03->11/05:01"],Kentucky:[-4,"n","03/12:03->11/05:01"],Knox_IN:[-5,"n","03/12:03->11/05:01"],Kralendijk:[-4,"n"],La_Paz:[-4,"s"],Lima:[-5,"s"],Los_Angeles:[-7,"n","03/12:03->11/05:01"],Louisville:[-4,"n","03/12:03->11/05:01"],Lower_Princes:[-4,"n"],Maceio:[-3,"n"],Managua:[-6,"n"],Manaus:[-4,"s"],Marigot:[-4,"n"],Martinique:[-4,"n"],Matamoros:[-5,"n","03/12:03->11/05:01"],Mazatlan:[-6,"n","04/02:03->10/29:01"],Mendoza:[-3,"n"],Menominee:[-5,"n","03/12:03->11/05:01"],Merida:[-5,"n","04/02:03->10/29:01"],Metlakatla:[-8,"n","03/12:03->11/05:01"],Mexico_City:[-5,"n","04/02:03->10/29:01"],Miquelon:[-2,"n","03/12:03->11/05:01"],Moncton:[-3,"n","03/12:03->11/05:01"],Monterrey:[-5,"n","04/02:03->10/29:01"],Montevideo:[-3,"s"],Montreal:[-4,"n","03/12:03->11/05:01"],Montserrat:[-4,"n"],Nassau:[-4,"n","03/12:03->11/05:01"],New_York:[-4,"n","03/12:03->11/05:01"],Nipigon:[-4,"n","03/12:03->11/05:01"],Nome:[-8,"n","03/12:03->11/05:01"],Noronha:[-2,"n"],North_Dakota:[-5,"n","03/12:03->11/05:01"],Ojinaga:[-6,"n","03/12:03->11/05:01"],Panama:[-5,"n"],Pangnirtung:[-4,"n","03/12:03->11/05:01"],Paramaribo:[-3,"n"],Phoenix:[-7,"n"],"Port-au-Prince":[-4,"n"],Port_of_Spain:[-4,"n"],Porto_Acre:[-5,"n"],Porto_Velho:[-4,"n"],Puerto_Rico:[-4,"n"],Rainy_River:[-5,"n","03/12:03->11/05:01"],Rankin_Inlet:[-5,"n","03/12:03->11/05:01"],Recife:[-3,"n"],Regina:[-6,"n"],Resolute:[-5,"n","03/12:03->11/05:01"],Rio_Branco:[-5,"n"],Rosario:[-3,"n"],Santa_Isabel:[-7,"n","03/12:03->11/05:01"],Santarem:[-3,"n"],Santiago:[-4,"s","05/13:23->08/13:01"],Santo_Domingo:[-4,"n"],Sao_Paulo:[-3,"s","02/18:23->10/15:01"],Scoresbysund:[0,"n","03/26:01->10/29:00"],Shiprock:[-6,"n","03/12:03->11/05:01"],Sitka:[-8,"n","03/12:03->11/05:01"],St_Barthelemy:[-4,"n"],St_Johns:[-2.5,"n","03/12:03->11/05:01"],St_Kitts:[-4,"n"],St_Lucia:[-4,"n"],St_Thomas:[-4,"n"],St_Vincent:[-4,"n"],Swift_Current:[-6,"n"],Tegucigalpa:[-6,"n"],Thule:[-3,"n","03/12:03->11/05:01"],Thunder_Bay:[-4,"n","03/12:03->11/05:01"],Tijuana:[-7,"n","03/12:03->11/05:01"],Toronto:[-4,"n","03/12:03->11/05:01"],Tortola:[-4,"n"],Vancouver:[-7,"n","03/12:03->11/05:01"],Virgin:[-4,"n"],Whitehorse:[-7,"n","03/12:03->11/05:01"],Winnipeg:[-5,"n","03/12:03->11/05:01"],Yakutat:[-8,"n","03/12:03->11/05:01"],Yellowknife:[-6,"n","03/12:03->11/05:01"]},Antarctica:{Casey:[8,"s"],Davis:[7,"s"],DumontDUrville:[10,"s"],Macquarie:[11,"s"],Mawson:[5,"s"],McMurdo:[12,"s","04/02:02->09/24:03"],Palmer:[-4,"s","05/13:23->08/13:01"],Rothera:[-3,"s"],South_Pole:[12,"s","04/02:02->09/24:03"],Syowa:[3,"s"],Troll:[2,"s","03/26:03->10/29:01"],Vostok:[6,"s"]},Arctic:{Longyearbyen:[2,"n","03/26:03->10/29:02"]},Asia:{Aden:[3,"n"],Almaty:[6,"n"],Amman:[3,"n","03/31:01->10/27:00"],Anadyr:[12,"n"],Aqtau:[5,"n"],Aqtobe:[5,"n"],Ashgabat:[5,"n"],Ashkhabad:[5,"n"],Baghdad:[3,"n"],Bahrain:[3,"n"],Baku:[5,"n"],Bangkok:[7,"n"],Barnaul:[7,"n"],Beirut:[3,"n","03/26:01->10/28:23"],Bishkek:[6,"n"],Brunei:[8,"n"],Calcutta:[5.5,"n"],Chita:[10,"n"],Choibalsan:[8,"n","03/25:03->09/29:23"],Chongqing:[8,"n"],Chungking:[8,"n"],Colombo:[5.5,"n"],Dacca:[6,"n"],Damascus:[3,"n","03/31:01->10/26:23"],Dhaka:[6,"n"],Dili:[9,"s"],Dubai:[4,"n"],Dushanbe:[5,"n"],Gaza:[3,"n","03/25:02->10/28:00"],Harbin:[8,"n"],Hebron:[3,"n","03/25:02->10/28:00"],Ho_Chi_Minh:[7,"n"],Hong_Kong:[8,"n"],Hovd:[7,"n","03/25:03->09/29:23"],Irkutsk:[9,"n"],Istanbul:[3,"n"],Jakarta:[7,"s"],Jayapura:[9,"n"],Jerusalem:[3,"n","03/24:03->10/29:01"],Kabul:[4.5,"n"],Kamchatka:[13,"n"],Karachi:[5,"n"],Kashgar:[6,"n"],Kathmandu:[5.75,"n"],Katmandu:[5.75,"n"],Khandyga:[10,"n"],Kolkata:[5.5,"n"],Krasnoyarsk:[8,"n"],Kuala_Lumpur:[8,"s"],Kuching:[8,"n"],Kuwait:[3,"n"],Macao:[8,"n"],Macau:[8,"n"],Magadan:[12,"n"],Makassar:[8,"s"],Manila:[8,"n"],Muscat:[4,"n"],Nicosia:[3,"n","03/26:04->10/29:03"],Novokuznetsk:[7,"n"],Novosibirsk:[7,"n"],Omsk:[7,"n"],Oral:[5,"n"],Phnom_Penh:[7,"n"],Pontianak:[7,"n"],Pyongyang:[9,"n"],Qatar:[3,"n"],Qyzylorda:[6,"n"],Rangoon:[6.5,"n"],Riyadh:[3,"n"],Saigon:[7,"n"],Sakhalin:[11,"n"],Samarkand:[5,"n"],Seoul:[9,"n"],Shanghai:[8,"n"],Singapore:[8,"s"],Srednekolymsk:[12,"n"],Taipei:[8,"n"],Tashkent:[5,"n"],Tbilisi:[4,"n"],Tehran:[4.5,"n","03/22:01->09/21:23"],Tel_Aviv:[3,"n","03/24:03->10/29:01"],Thimbu:[6,"n"],Thimphu:[6,"n"],Tokyo:[9,"n"],Ujung_Pandang:[8,"n"],Ulaanbaatar:[8,"n","03/25:03->09/29:23"],Ulan_Bator:[8,"n","03/25:03->09/29:23"],Urumqi:[6,"n"],"Ust-Nera":[11,"n"],Vientiane:[7,"n"],Vladivostok:[11,"n"],Yakutsk:[10,"n"],Yekaterinburg:[6,"n"],Yerevan:[4,"n"]},Atlantic:{Azores:[0,"n","03/26:01->10/29:00"],Bermuda:[-3,"n","03/12:03->11/05:01"],Canary:[1,"n","03/26:02->10/29:01"],Cape_Verde:[-1,"n"],Faeroe:[1,"n","03/26:02->10/29:01"],Faroe:[1,"n","03/26:02->10/29:01"],Jan_Mayen:[2,"n","03/26:03->10/29:02"],Madeira:[1,"n","03/26:02->10/29:01"],Reykjavik:[0,"n"],South_Georgia:[-2,"n"],St_Helena:[0,"n"],Stanley:[-3,"n"]},Australia:{ACT:[10,"s","04/02:02->10/01:03"],Adelaide:[9.5,"s","04/02:02->10/01:03"],Brisbane:[10,"s"],Broken_Hill:[9.5,"s","04/02:02->10/01:03"],Canberra:[10,"s","04/02:02->10/01:03"],Currie:[10,"s","04/02:02->10/01:03"],Darwin:[9.5,"s"],Eucla:[8.75,"s"],Hobart:[10,"s","04/02:02->10/01:03"],LHI:[10.5,"s","04/02:01->10/01:02"],Lindeman:[10,"s"],Lord_Howe:[10.5,"s","04/02:01->10/01:02"],Melbourne:[10,"s","04/02:02->10/01:03"],NSW:[10,"s","04/02:02->10/01:03"],North:[9.5,"s"],Perth:[8,"s"],Queensland:[10,"s"],South:[9.5,"s","04/02:02->10/01:03"],Sydney:[10,"s","04/02:02->10/01:03"],Tasmania:[10,"s","04/02:02->10/01:03"],Victoria:[10,"s","04/02:02->10/01:03"],West:[8,"s"],Yancowinna:[9.5,"s","04/02:02->10/01:03"]},Brazil:{Acre:[-5,"s"],DeNoronha:[-2,"s"],East:[-3,"s","02/18:23->10/15:01"],West:[-4,"s"]},Canada:{Atlantic:[-3,"n","03/12:03->11/05:01"],Central:[-5,"n","03/12:03->11/05:01"],"East-Saskatchewan":[-6,"n"],Eastern:[-4,"n","03/12:03->11/05:01"],Mountain:[-6,"n","03/12:03->11/05:01"],Newfoundland:[-2.5,"n","03/12:03->11/05:01"],Pacific:[-7,"n","03/12:03->11/05:01"],Saskatchewan:[-6,"n"],Yukon:[-7,"n","03/12:03->11/05:01"]},Chile:{Continental:[-3,"s","05/13:23->08/13:01"],EasterIsland:[-5,"s","05/13:21->08/12:23"]},Etc:{GMT:[0,"n"],"GMT+0":[0,"n"],"GMT+1":[-1,"n"],"GMT+10":[-10,"n"],"GMT+11":[-11,"n"],"GMT+12":[-12,"n"],"GMT+2":[-2,"n"],"GMT+3":[-3,"n"],"GMT+4":[-4,"n"],"GMT+5":[-5,"n"],"GMT+6":[-6,"n"],"GMT+7":[-7,"n"],"GMT+8":[-8,"n"],"GMT+9":[-9,"n"],"GMT-0":[0,"n"],"GMT-1":[1,"n"],"GMT-10":[10,"n"],"GMT-11":[11,"n"],"GMT-12":[12,"n"],"GMT-13":[13,"n"],"GMT-14":[14,"n"],"GMT-2":[2,"n"],"GMT-3":[3,"n"],"GMT-4":[4,"n"],"GMT-5":[5,"n"],"GMT-6":[6,"n"],"GMT-7":[7,"n"],"GMT-8":[8,"n"],"GMT-9":[9,"n"],GMT0:[0,"n"],Greenwich:[0,"n"],UCT:[0,"n"],UTC:[0,"n"],Universal:[0,"n"],Zulu:[0,"n"]},Europe:{Amsterdam:[2,"n","03/26:03->10/29:02"],Andorra:[2,"n","03/26:03->10/29:02"],Athens:[3,"n","03/26:04->10/29:03"],Belfast:[1,"n","03/26:02->10/29:01"],Belgrade:[2,"n","03/26:03->10/29:02"],Berlin:[2,"n","03/26:03->10/29:02"],Bratislava:[2,"n","03/26:03->10/29:02"],Brussels:[2,"n","03/26:03->10/29:02"],Bucharest:[3,"n","03/26:04->10/29:03"],Budapest:[2,"n","03/26:03->10/29:02"],Busingen:[2,"n","03/26:03->10/29:02"],Chisinau:[3,"n","03/26:03->10/29:02"],Copenhagen:[2,"n","03/26:03->10/29:02"],Dublin:[1,"n","03/26:02->10/29:01"],Gibraltar:[2,"n","03/26:03->10/29:02"],Guernsey:[1,"n","03/26:02->10/29:01"],Helsinki:[3,"n","03/26:04->10/29:03"],Isle_of_Man:[1,"n","03/26:02->10/29:01"],Istanbul:[3,"n"],Jersey:[1,"n","03/26:02->10/29:01"],Kaliningrad:[3,"n"],Kiev:[3,"n","03/26:04->10/29:03"],Lisbon:[1,"n","03/26:02->10/29:01"],Ljubljana:[2,"n","03/26:03->10/29:02"],London:[1,"n","03/26:02->10/29:01"],Luxembourg:[2,"n","03/26:03->10/29:02"],Madrid:[2,"n","03/26:03->10/29:02"],Malta:[2,"n","03/26:03->10/29:02"],Mariehamn:[3,"n","03/26:04->10/29:03"],Minsk:[3,"n"],Monaco:[2,"n","03/26:03->10/29:02"],Moscow:[3,"n"],Nicosia:[3,"n","03/26:04->10/29:03"],Oslo:[2,"n","03/26:03->10/29:02"],Paris:[2,"n","03/26:03->10/29:02"],Podgorica:[2,"n","03/26:03->10/29:02"],Prague:[2,"n","03/26:03->10/29:02"],Riga:[3,"n","03/26:04->10/29:03"],Rome:[2,"n","03/26:03->10/29:02"],Samara:[4,"n"],San_Marino:[2,"n","03/26:03->10/29:02"],Sarajevo:[2,"n","03/26:03->10/29:02"],Simferopol:[3,"n"],Skopje:[2,"n","03/26:03->10/29:02"],Sofia:[3,"n","03/26:04->10/29:03"],Stockholm:[2,"n","03/26:03->10/29:02"],Tallinn:[3,"n","03/26:04->10/29:03"],Tirane:[2,"n","03/26:03->10/29:02"],Tiraspol:[3,"n","03/26:03->10/29:02"],Uzhgorod:[3,"n","03/26:04->10/29:03"],Vaduz:[2,"n","03/26:03->10/29:02"],Vatican:[2,"n","03/26:03->10/29:02"],Vienna:[2,"n","03/26:03->10/29:02"],Vilnius:[3,"n","03/26:04->10/29:03"],Volgograd:[3,"n"],Warsaw:[2,"n","03/26:03->10/29:02"],Zagreb:[2,"n","03/26:03->10/29:02"],Zaporozhye:[3,"n","03/26:04->10/29:03"],Zurich:[2,"n","03/26:03->10/29:02"]},Indian:{Antananarivo:[3,"s"],Chagos:[6,"n"],Christmas:[7,"n"],Cocos:[6.5,"n"],Comoro:[3,"n"],Kerguelen:[5,"s"],Mahe:[4,"n"],Maldives:[5,"n"],Mauritius:[4,"n"],Mayotte:[3,"n"],Reunion:[4,"s"]},Mexico:{BajaNorte:[-7,"n","03/12:03->11/05:01"],BajaSur:[-6,"n","04/02:03->10/29:01"],General:[-5,"n","04/02:03->10/29:01"]},Pacific:{Apia:[13,"s","04/02:03->09/24:04"],Auckland:[12,"s","04/02:02->09/24:03"],Chatham:[12.75,"s","04/02:02->09/24:03"],Chuuk:[10,"n"],Easter:[-6,"s","05/13:21->08/12:23"],Efate:[11,"n"],Enderbury:[13,"n"],Fakaofo:[13,"n"],Fiji:[12,"s","01/15:02->11/05:03"],Funafuti:[12,"n"],Galapagos:[-6,"n"],Gambier:[-9,"n"],Guadalcanal:[11,"n"],Guam:[10,"n"],Honolulu:[-10,"n"],Johnston:[-10,"n"],Kiritimati:[14,"n"],Kosrae:[11,"n"],Kwajalein:[12,"n"],Majuro:[12,"n"],Marquesas:[-9.5,"n"],Midway:[-11,"n"],Nauru:[12,"n"],Niue:[-11,"n"],Norfolk:[11.5,"n"],Noumea:[11,"n"],Pago_Pago:[-11,"n"],Palau:[9,"n"],Pitcairn:[-8,"n"],Pohnpei:[11,"n"],Ponape:[11,"n"],Port_Moresby:[10,"n"],Rarotonga:[-10,"n"],Saipan:[10,"n"],Samoa:[-11,"n"],Tahiti:[-10,"n"],Tarawa:[12,"n"],Tongatapu:[13,"s","01/15:02->11/05:03"],Truk:[10,"n"],Wake:[12,"n"],Wallis:[12,"n"],Yap:[10,"n"]}}},{}],3:[function(n,t,e){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(n){if(d===setTimeout)return setTimeout(n,0);if((d===r||!d)&&setTimeout)return d=setTimeout,setTimeout(n,0);try{return d(n,0)}catch(t){try{return d.call(null,n,0)}catch(t){return d.call(this,n,0)}}}function i(n){if(f===clearTimeout)return clearTimeout(n);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(n);try{return f(n)}catch(t){try{return f.call(null,n)}catch(t){return f.call(this,n)}}}function s(){y&&l&&(y=!1,l.length?p=l.concat(p):v=-1,p.length&&u())}function u(){if(!y){var n=a(s);y=!0;for(var t=p.length;t;){for(l=p,p=[];++v1)for(var e=1;e=a&&s<=i&&(!(s===a&&t.minute()o.minute()))});return s}},{"./spacetime":33}],12:[function(n,t,e){"use strict";e.isDate=function(n){return"[object Date]"===Object.prototype.toString.call(n)&&!isNaN(n.valueOf())},e.isArray=function(n){return"[object Array]"===Object.prototype.toString.call(n)},e.isObject=function(n){return"[object Object]"===Object.prototype.toString.call(n)},e.zeroPad=function(n,t){t=t||2;var e="0";return n+="",n.length>=t?n:new Array(t-n.length+1).join(e)+n},e.titleCase=function(n){return n?n[0].toUpperCase()+n.substr(1).toLowerCase():""},e.ordinal=function(n){var t=n%10,e=n%100;return 1===t&&11!==e?n+"st":2===t&&12!==e?n+"nd":3===t&&13!==e?n+"rd":n+"th"},e.normalize=function(n){return n=n.toLowerCase(),n=n.replace(/s$/,""),"day"===n?"date":n},e.getEpoch=function(n){return"number"==typeof n?n:e.isDate(n)?n.getTime():n.epoch?n.epoch:null}},{}],13:[function(n,t,e){"use strict";var r=n("./spacetime"),o=n("./findTz").whereIts,a=n("../package.json"),i=function(n,t){return new r(n,t)};i.now=function(n){return new r((new Date).getTime(),n)},i.today=function(n){var t=new r((new Date).getTime(),n);return t.startOf("day")},i.tomorrow=function(n){var t=new r((new Date).getTime(),n);return t.add(1,"day").startOf("day")},i.yesterday=function(n){var t=new r((new Date).getTime(),n);return t.subtract(1,"day").startOf("day")},i.whereIts=o,i.version=a.version,t.exports=i},{"../package.json":4,"./findTz":11,"./spacetime":33}],14:[function(n,t,e){"use strict";var r=n("./strParse"),o=n("../fns"),a=25e8,i=function(n,t){for(var e=["year","month","date","hour","minute","second","millisecond"],r=0;r0&&t100&&(o/=100);var a=n.timezone().current.offset;if(a===o)return n;o>=0&&(o="+"+o);var i="Etc/GMT"+o,s=n.timezones;return s[i]&&(r&&s[r]&&s[r].o!==s[i].o&&"undefined"!=typeof e&&e.env&&!e.env.TESTENV&&(console.warn(" - Setting timezone to: '"+i+"'"),console.warn(" from ISO string '"+t+"'"),console.warn(" overwriting given timezone: '"+r+"'\n")),n.tz=i),n},s=[{reg:/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})T([0-9.:]+)(Z|[0-9\-\+:]+)?$/,parse:function(n,t,e){var o=parseInt(t[2],10)-1;i(n,t[5],e),r(n,{year:t[1],month:o,date:t[3]}),a(n,t[4])}},{reg:/^([0-9]{4})[\-\/]([0-9]{1,2})[\-\/]([0-9]{1,2})$/,parse:function(n,t){var e=parseInt(t[2],10)-1,o=parseInt(t[3],10);e>=12&&(o=parseInt(t[2],10),e=parseInt(t[3],10)-1),r(n,{year:t[1],month:e,date:o})}},{reg:/^([0-9]{1,2})[\-\/]([0-9]{1,2})[\-\/]([0-9]{4})$/,parse:function(n,t){var e=parseInt(t[1],10)-1,o=parseInt(t[2],10);e>=12&&(e=parseInt(t[2],10)-1,o=parseInt(t[1],10)),r(n,{year:t[3],month:e,date:o})}},{reg:/^([a-z]+) ([0-9]{1,2}),? ([0-9]{4})( ([0-9:]+))?$/i,parse:function(n,t){var e=o.mapping()[t[1].toLowerCase()];r(n,{year:t[3],month:e,date:t[2]}),t[4]&&a(n,t[4])}},{reg:/^([0-9]{1,2}) ([a-z]+),? ([0-9]{4})$/i,parse:function(n,t){var e=o.mapping()[t[2].toLowerCase()];r(n,{year:t[3],month:e,date:t[1]})}}];t.exports=s}).call(this,n("_process"))},{"../data/months":8,"../methods/set/walk":31,_process:3}],16:[function(n,t,e){"use strict";var r=n("./methods/format"),o=n("./methods/progress"),a=n("./methods/nearest"),i=n("./methods/diff"),s=n("./methods/startOf"),u=n("./timezone/index"),c=n("./input"),h={set:function(n){return c(this,n),this},timezone:function(){return u(this)},isDST:function(){return u(this).current.isDST},hasDST:function(){return u(this).hasDst},offset:function(){return u(this).current.offset/60},hemisphere:function(){return u(this).hemisphere},format:function(n){return r(this,n)},startOf:function(n){return s.startOf(this,n)},endOf:function(n){return s.endOf(this,n)},leapYear:function(){var n=this.year();return n%4===0&&n%100!==0||n%400===0},progress:function(){return o(this)},nearest:function(n){return a(this,n)},diff:function(n,t){return i(this,n,t)},isValid:function(){return this.valid&&!isNaN(this.d.getTime())},goto:function(n){return this.tz=n,this},isAsleep:function(){var n=this.hour();return n<8||n>22},log:function(){return console.log(""),console.log(r(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(r(this,"full-short")),this},debug:function(){var n=this.timezone(),t=this.format("MM")+" "+this.format("date-ordinal")+" "+this.year();return t+="\n - "+this.format("time"),console.log("\n\n",t+"\n - "+n.name+" ("+n.current.offset+")"),this}};h.inDST=h.isDST,h.round=h.nearest,t.exports=h},{"./input":14,"./methods/diff":19,"./methods/format":20,"./methods/nearest":23,"./methods/progress":24,"./methods/startOf":32,"./timezone/index":35}],17:[function(n,t,e){"use strict";var r=n("./set/walk"),o=n("../data/milliseconds"),a=n("../data/monthLength"),i=n("../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},h=function(n,t){if(n.month>0){var e=parseInt(n.month/12,10);n.year=t.year()+e,n.month=n.month%12}else if(n.month<0){var r=Math.floor(Math.abs(n.month)/13,10);r=Math.abs(r)+1,n.year=t.year()-r,n.month=n.month%12,n.month=n.month+12,12===n.month&&(n.month=0)}return n},d=function(n){n.prototype.add=function(n,t){var e=this.clone();t=i.normalize(t),o[t]?this.epoch+=o[t]*n:"week"===t?this.epoch+=o.day*(7*n):"quarter"===t||"season"===t?this.epoch+=o.month*(4*n):"season"===t?this.epoch+=o.month*(4*n):"quarterhour"===t&&(this.epoch+=15*o.minute);var s={};if(u[t]&&u[t].forEach(function(n){s[n]=e[n]()}),"month"===t?(s.month=e.month()+n,s=h(s,e)):"date"===t&&0!==n&&e.isSame(this,"day")?s.date=e.date()+n:"year"===t&&this.year()===e.year()&&(this.epoch+=o.week),c[t]){var d=a[s.month];s.date=e.date(),s.date>d&&(s.date=d)}return r(this,s),this},n.prototype.subtract=function(n,t){return this.add(n*-1,t),this}};t.exports=d},{"../data/milliseconds":6,"../data/monthLength":7,"../fns":12,"./set/walk":31}],18:[function(n,t,e){"use strict";var r=n("../fns"),o=function(n){var t={isAfter:function(n){var t=r.getEpoch(n);return null===t?null:this.epoch>t},isBefore:function(n){var t=r.getEpoch(n);return null===t?null:this.epoch.5&&n.add(1,t),n.startOf(t)):console.warn("no known unit '"+t+"'"),n};t.exports=r},{}],24:[function(n,t,e){"use strict";var r=function(n){var t=["year","season","quarter","month","week","day","quarterHour","hour","minute"],e={};return t.forEach(function(t){var r=n.clone().startOf(t),o=n.clone().endOf(t),a=o.epoch-r.epoch,i=(n.epoch-r.epoch)/a;e[t]=parseFloat(i.toFixed(2))}),e};t.exports=r},{}],25:[function(n,t,e){"use strict";var r=n("../../data/quarters"),o=n("../../data/seasons"),a=n("../set/set"),i=function(n){n.minute(0),n.second(0),n.millisecond(1)};t.exports={time:function(n){return void 0!==n?(this.epoch=a.time(this,n),this):this.format("time-h12")},week:function(n){if(void 0!==n)return this.month(0),this.date(1),this.day("monday"),i(this),"december"===this.monthName()&&this.add(1,"week"),n-=1,this.add(n,"weeks"),this;var t=this.clone();t.month(0),t.date(1),i(t),t.day("monday"),"december"===t.monthName()&&t.add(1,"week");var e=this.epoch;if(t.epoch>e)return 1;for(var r=0;r<52;r++){if(t.epoch>e)return r;t.add(1,"week")}return 52},quarter:function(n){if(void 0!==n&&("string"==typeof n&&(n=n.replace(/^q/i,""),n=parseInt(n,10)),r[n])){var t=r[n][0];return this.month(t),this.date(1),this.hour(0),i(this),this}for(var e=this.d.getMonth(),o=1;o=o[t][a][1]&&r12&&(n-=12),0===n&&(n=12),n},date:function(n){return void 0!==n?(this.epoch=r.date(this,n),this):this.d.getDate()},month:function(n){return void 0!==n?(this.epoch=r.month(this,n),this):this.d.getMonth()},year:function(n){return void 0!==n?(this.epoch=r.year(this,n),this):this.d.getFullYear()},dayTime:function(n){if(void 0!==n){var t={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"};return n=n||"",n=n.toLowerCase(),t[n]&&this.time(t[n]),this}var e=this.hour();return e<6?"night":e<12?"morning":e<17?"afternoon":e<22?"evening":"night"},dayOfYear:function(n){if(void 0!==n)return this.epoch=r.dayOfYear(this,n),this;for(var t=0,e=this.d.getMonth(),o=void 0,a=1;a<=e;a++)o=new Date,o.setYear(this.d.getFullYear()),o.setMonth(a),o.setDate(1),o.setHours(-2),t+=o.getDate();return t+this.d.getDate()},era:function(n){if(void 0!==n){n=n.toLowerCase();var t=this.d.getFullYear();return"bc"===n&&t>0&&(this.epoch=r.year(this,t*-1)),"ad"===n&&t<0&&(this.epoch=r.year(this,t*-1)),this}return this.d.getFullYear()<0?"BC":"AD"}};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,t.exports=o},{"../set/set":30}],28:[function(n,t,e){"use strict";var r=n("../../data/days"),o=n("../../data/months"),a=n("../set/walk");t.exports={day:function n(t){if(void 0===t)return this.d.getDay();var e=this.clone(),o=t;"string"==typeof t&&(t=t.toLowerCase(),o=r.short().indexOf(t),o===-1&&(o=r.long().indexOf(t)));var n=this.d.getDay(),i=n-o,s=this.subtract(24*i,"hours");return a(s,{hour:e.hour(),minute:e.minute(),second:e.second()}),this.epoch=s.epoch,s},ampm:function(n){var t="am",e=this.hour();return e>=12&&(t="pm"),void 0===n?t:n===t?this:("am"===n?this.subtract(12,"hours"):this.add(12,"hours"),this)},dayName:function(n){return void 0===n?r.long()[this.day()]:(this.day(n),this)},monthName:function(n){return void 0===n?o.long()[this.month()]:(this.month(n),this)}}},{"../../data/days":5,"../../data/months":8,"../set/walk":31}],29:[function(n,t,e){"use strict";var r={millisecond:function(n){return n.epoch},second:function(n){return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second()].join("-")},minute:function(n){return[n.year(),n.month(),n.date(),n.hour(),n.minute()].join("-")},hour:function(n){return[n.year(),n.month(),n.date(),n.hour()].join("-")},day:function(n){return[n.year(),n.month(),n.date()].join("-")},week:function(n){return[n.year(),n.week()].join("-")},month:function(n){return[n.year(),n.month()].join("-")},quarter:function(n){return[n.year(),n.quarter()].join("-")},year:function(n){return n.year()}};r.date=r.day;var o=function(n){n.prototype.isSame=function(t,e){var o=this;return"string"!=typeof t&&"number"!=typeof t||(t=new n(t,this.timezone.name)),e=e.replace(/s$/,""),r[e]?r[e](o)===r[e](t):null}};t.exports=o},{}],30:[function(n,t,e){"use strict";var r=n("../../data/milliseconds"),o=n("../../data/months"),a=n("../../data/monthLength"),i=n("./walk"),s=function(n){return"string"==typeof n&&(n=parseInt(n,10)),n},u=["year","month","date","hour","minute","second","millisecond"],c=function(n,t,e){for(var r=u.indexOf(e),o=u.slice(r,u.length),a=0;a12&&(r=!0),r===!1&&("am"===e[3]&&12===o&&(o=0),"pm"===e[3]&&o<12&&(o+=12)),n.hour(o),n.minute(a),n.second(0),n.millisecond(0),n.epoch},date:function(n,t){return t=s(t),i(n,{date:t}),n.epoch},month:function(n,t){"string"==typeof t&&(t=o.mapping()[t.toLowerCase()]),t=s(t);var e=n.date();return e>a[t]&&(e=a[t]),i(n,{month:t,date:e}),n.epoch},year:function(n,t){return t=s(t),i(n,{year:t}),n.epoch},dayOfYear:function(n,t){t=s(t);var e=n.clone(),o=t-n.dayOfYear(),a=o*r.day;return n.epoch+=a,c(n,e,"hour"),n.epoch}}},{"../../data/milliseconds":6,"../../data/monthLength":7,"../../data/months":8,"./walk":31}],31:[function(n,t,e){"use strict";var r=n("../../data/milliseconds"),o=function(n,t,e,o){var a=n.d[e]();if(a!==t){var i=t-a;for(n.epoch+=r[o]*i;n.d[e]()t;)n.epoch-=r[o]}},a={year:{valid:function(n){return n>-4e3&&n<4e3},walkTo:function(n,t){return o(n,t,"getFullYear","year")}},month:{valid:function(n){return n>=0&&n<=11},walkTo:function(n,t){var e=n.d.getMonth();if(e!==t){var o=t-e;for(n.epoch+=r.day*(28*o);n.d.getMonth()t;)n.epoch-=r.day}}},date:{valid:function(n){return n>0&&n<=31},walkTo:function(n,t){return o(n,t,"getDate","day")}},hour:{valid:function(n){return n>=0&&n<24},walkTo:function(n,t){return o(n,t,"getHours","hour")}},minute:{valid:function(n){return n>=0&&n<60},walkTo:function(n,t){return o(n,t,"getMinutes","minute")}},second:{valid:function(n){return n>=0&&n<60},walkTo:function(n,t){return o(n,t,"getSeconds","second")}},millisecond:{valid:function(n){return n>=0&&n<1e3},walkTo:function(n,t){n.milliseconds(t)}}},i=function(n,t){for(var e=Object.keys(a),r=n.clone(),o=0;o=45?n.minutes(45):t>=30?n.minutes(30):t>=15?n.minutes(15):n.minutes(0),a(n,{second:0,millisecond:0}),n},hour:function(n){return a(n,{minute:0,second:0,millisecond:0}),n},day:function(n){return a(n,{hour:0,minute:0,second:0,millisecond:0}),n},week:function(n){var t=n.clone();return n.day(1),n.isAfter(t)&&n.subtract(1,"week"),a(n,{hour:0,minute:0,second:0,millisecond:0}),n},month:function(n){return a(n,{date:1,hour:0,minute:0,second:0,millisecond:0}),n},quarter:function(n){var t=n.quarter();return o[t]&&a(n,{month:o[t][0],date:o[t][1],hour:0,minute:0,second:0,millisecond:0}),n},season:function(n){var t=n.season(),e="north";"South"===n.timezone().hemisphere&&(e="south");for(var o=0;o"):[]},a=function(n){var t=n.tz,e=n.timezones;if(!e[t])return console.warn("Warn: could not find given or local timezone - '"+t+"'"),{current:{epochShift:0}};var a={name:t,hasDst:Boolean(e[t].dst),hemisphere:"s"===e[t].h?"South":"North",change:{},current:{}};if(a.hasDst===!0){var i=o(e[t].dst);a.change={start:i[0],back:i[1]}}var s=e[t].o,u=s;return a.hasDst===!0&&(u="North"===a.hemisphere?s-1:e[t].o+1),a.hasDst===!1?(a.current.offset=s,a.current.isDST=!1):r(n,a)===!0?(a.current.offset=s,a.current.isDST="North"===a.hemisphere):(a.current.offset=u,a.current.isDST="South"===a.hemisphere),a};t.exports=a},{"./summerTime":36}],36:[function(n,t,e){"use strict";var r=n("../fns").zeroPad,o=function(n){return r(n.getMonth()+1)+"/"+r(n.getDate())+":"+r(n.getHours())},a=function(n,t){if(t.hasDst!==!0||!t.change.start||!t.change.back)return!1;var e=new Date(n.epoch),r=o(e);return r>=t.change.start&&r { +const parseInput = (s, input, givenTz) => { //if we've been given a epoch number, it's easy if (typeof input === 'number') { s.epoch = input; @@ -81,7 +81,7 @@ const parseInput = (s, input) => { for (let i = 0; i < strFmt.length; i++) { let m = input.match(strFmt[i].reg); if (m) { - strFmt[i].parse(s, m); + strFmt[i].parse(s, m, givenTz); return; } } diff --git a/src/input/strParse.js b/src/input/strParse.js index 7097dc0e..a2137ba6 100644 --- a/src/input/strParse.js +++ b/src/input/strParse.js @@ -17,7 +17,7 @@ const parseHour = function(s, str) { } } }; -const parseOffset = function(s, offset) { +const parseOffset = function(s, offset, givenTz) { if (!offset) { return s } @@ -52,6 +52,15 @@ const parseOffset = function(s, offset) { let zones = s.timezones if (zones[tz]) { // console.log('changing timezone to: ' + tz) + //log a warning if we're over-writing a given timezone + if (givenTz && zones[givenTz] && zones[givenTz].o !== zones[tz].o) { + //don't log during our tests, either.. + if (typeof process !== 'undefined' && process.env && !process.env.TESTENV) { + console.warn(' - Setting timezone to: \'' + tz + '\'') + console.warn(' from ISO string \'' + offset + '\'') + console.warn(' overwriting given timezone: \'' + givenTz + '\'\n') + } + } s.tz = tz } return s @@ -61,9 +70,9 @@ const strFmt = [ //iso-this 1998-05-30T22:00:00:000Z, iso-that 2017-04-03T08:00:00-0700 { reg: /^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})T([0-9.:]+)(Z|[0-9\-\+:]+)?$/, - parse: (s, arr) => { + parse: (s, arr, givenTz) => { let month = parseInt(arr[2], 10) - 1; - parseOffset(s, arr[5]); + parseOffset(s, arr[5], givenTz); walkTo(s, { year: arr[1], month: month, diff --git a/src/methods/format/unixFmt.js b/src/methods/format/unixFmt.js index 84e151e3..c3059561 100644 --- a/src/methods/format/unixFmt.js +++ b/src/methods/format/unixFmt.js @@ -26,9 +26,9 @@ const mapping = { QQQQ: (s) => s.quarter(), //month - M: (s) => s.month(), - MM: (s) => s.format('month-short'), - MMM: (s) => s.format('month'), + M: (s) => s.month() + 1, + MM: (s) => pad(s.month() + 1), + MMM: (s) => s.format('month-short'), MMMM: (s) => s.format('month'), //week diff --git a/src/methods/set/walk.js b/src/methods/set/walk.js index dd82baa1..ad72d13e 100644 --- a/src/methods/set/walk.js +++ b/src/methods/set/walk.js @@ -1,73 +1,63 @@ 'use strict'; const ms = require('../../data/milliseconds'); +//basically, step-forward/backward until js Date object says we're there. +const walk = function(s, n, fn, unit) { + let current = s.d[fn]() + if (current === n) { + return + } + //try to get it as close as we can + let diff = (n - current) + s.epoch += ms[unit] * diff + + while (s.d[fn]() < n) { + s.epoch += ms[unit]; + } + while (s.d[fn]() > n) { + s.epoch -= ms[unit]; + } +} //find the desired date by a increment/check while loop const units = { year: { valid: n => n > -4000 && n < 4000, - walkTo: (s, n) => { - while (s.year() < n) { - s.epoch += ms.year; - } - while (s.year() > n) { - s.epoch -= ms.year; - } - }, + walkTo: (s, n) => walk(s, n, 'getFullYear', 'year') }, month: { valid: n => n >= 0 && n <= 11, walkTo: (s, n) => { - while (s.month() < n) { + let current = s.d.getMonth() + if (current === n) { + return + } + //try to get it as close as we can.. + let diff = (n - current) + s.epoch += ms.day * (diff * 28) + //incriment by day + while (s.d.getMonth() < n) { s.epoch += ms.day; } - while (s.month() > n) { + while (s.d.getMonth() > n) { s.epoch -= ms.day; } }, }, date: { valid: n => n > 0 && n <= 31, - walkTo: (s, n) => { - while (s.date() < n) { - s.epoch += ms.day; - } - while (s.date() > n) { - s.epoch -= ms.day; - } - }, + walkTo: (s, n) => walk(s, n, 'getDate', 'day') }, hour: { valid: n => n >= 0 && n < 24, - walkTo: (s, n) => { - while (s.hour() < n) { - s.epoch += ms.hour; - } - while (s.hour() > n) { - s.epoch -= ms.hour; - } - }, + walkTo: (s, n) => walk(s, n, 'getHours', 'hour') }, minute: { valid: n => n >= 0 && n < 60, - walkTo: (s, n) => { - while (s.minute() < n) { - s.epoch += ms.minute; - } - while (s.minute() > n) { - s.epoch -= ms.minute; - } - }, + walkTo: (s, n) => walk(s, n, 'getMinutes', 'minute') }, second: { valid: n => n >= 0 && n < 60, - walkTo: (s, n) => { - while (s.second() < n) { - s.epoch += ms.second; - } - while (s.second() > n) { - s.epoch -= ms.second; - } - }, + walkTo: (s, n) => walk(s, n, 'getSeconds', 'second') }, millisecond: { valid: n => n >= 0 && n < 1000, diff --git a/src/spacetime.js b/src/spacetime.js index 43783cc1..7217019b 100644 --- a/src/spacetime.js +++ b/src/spacetime.js @@ -38,7 +38,7 @@ const SpaceTime = function(input, tz) { } }) //parse the various formats - handleInput(this, input) + handleInput(this, input, tz) } //(add instance methods to prototype) diff --git a/test/format.test.js b/test/format.test.js index 8e94c20d..a2f5bfad 100644 --- a/test/format.test.js +++ b/test/format.test.js @@ -34,15 +34,27 @@ test('unix-formatting', t => { //examples from http://unicode.org/reports/tr35/tr35-25.html#Date_Format_Patterns let arr = [ ['h:mm a', '11:34 AM'], - ['LL', 'Nov'], - [`yyyy.MM.dd G 'at' HH:mm:ss zzz`, '2017.Nov.16 AD at 11:34:25 Canada/Eastern'], - [`EEE, MMM d, ''yy`, 'Thu, November 16, \'17'], + ['LLL', 'Nov'], + [`yyyy.MM.dd G 'at' HH:mm:ss zzz`, '2017.11.16 AD at 11:34:25 Canada/Eastern'], + [`EEE, MMM d, ''yy`, 'Thu, Nov 16, \'17'], [`hh 'o''clock' a`, '11 oclock AM'], ['yyyyy.MMMM.dd GGG hh:mm aaa', '02017.November.16 AD 11:34 AM'], ] arr.forEach((a) => { t.equal(s.format(a[0]), a[1], a[0]) }) + + //test another date + s = spacetime([2018, 'February', 20], 'Canada/Eastern') + arr = [ + ['M', '2'], + ['MM', '02'], + ['MMM', 'Feb'], + ['MMMM', 'February'] + ] + arr.forEach((a) => { + t.equal(s.format(a[0]), a[1], a[0]) + }) t.end(); });