New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

spacetime

Package Overview
Dependencies
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spacetime - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

6

builds/spacetime.min.js

@@ -1,5 +0,5 @@

/* @smallwins/spacetime v1.0.5
/* @smallwins/spacetime v1.0.7
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.spacetime=t()}}(function(){return function t(n,e,o){function a(s,i){if(!e[s]){if(!n[s]){var u="function"==typeof require&&require;if(!i&&u)return u(s,!0);if(r)return r(s,!0);var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var d=e[s]={exports:{}};n[s][0].call(d.exports,function(t){var e=n[s][1][t];return a(e?e:t)},d,d.exports,t,n,e,o)}return e[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)a(o[s]);return a}({1:[function(t,n,e){"use strict";var o=t("./zonefile.2017.json"),a=function(t){var n={},e=Object.keys(t);return e.forEach(function(e){var o=Object.keys(t[e]);o.forEach(function(o){var a=e+"/"+o;n[a]=t[e][o],"number"==typeof n[a]&&(n[a]={o:n[a]}),n[a].tz=a})}),n.UTC=n["Etc/UTC"],n},r=a(o);n.exports=r},{"./zonefile.2017.json":2}],2:[function(t,n,e){n.exports={Africa:{Abidjan:0,Accra:0,Addis_Ababa:180,Algiers:60,Asmara:180,Asmera:180,Bamako:0,Bangui:60,Banjul:0,Bissau:0,Blantyre:120,Brazzaville:60,Bujumbura:120,Cairo:120,Casablanca:{o:60,h:"n",dst:"6/2/3 -> 9/29/2"},Ceuta:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Conakry:0,Dakar:0,Dar_es_Salaam:180,Djibouti:180,Douala:60,El_Aaiun:{o:60,h:"n",dst:"6/2/3 -> 9/29/2"},Freetown:0,Gaborone:120,Harare:120,Johannesburg:120,Juba:180,Kampala:180,Khartoum:180,Kigali:120,Kinshasa:60,Lagos:60,Libreville:60,Lome:0,Luanda:60,Lubumbashi:120,Lusaka:120,Malabo:60,Maputo:120,Maseru:120,Mbabane:120,Mogadishu:180,Monrovia:0,Nairobi:180,Ndjamena:60,Niamey:60,Nouakchott:0,Ouagadougou:0,"Porto-Novo":60,Sao_Tome:0,Timbuktu:0,Tripoli:120,Tunis:60,Windhoek:{o:60,h:"s",dst:"8/3/3 -> 3/2/1"}},America:{Adak:{o:-540,h:"n",dst:"2/12/3 -> 10/5/1"},Anchorage:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Anguilla:-240,Antigua:-240,Araguaina:-180,Argentina:-180,Aruba:-240,Asuncion:{o:-240,h:"s",dst:"9/1/1 -> 2/25/23"},Atikokan:-300,Atka:{o:-540,h:"n",dst:"2/12/3 -> 10/5/1"},Bahia:-180,Bahia_Banderas:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"},Barbados:-240,Belem:-180,Belize:-360,"Blanc-Sablon":-240,Boa_Vista:-240,Bogota:-300,Boise:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Buenos_Aires:-180,Cambridge_Bay:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Campo_Grande:{o:-240,h:"s",dst:"9/15/1 -> 1/18/23"},Cancun:-300,Caracas:-270,Catamarca:-180,Cayenne:-180,Cayman:-300,Chicago:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Chihuahua:{o:-360,h:"n",dst:"3/2/3 -> 9/29/1"},Coral_Harbour:-300,Cordoba:-180,Costa_Rica:-360,Creston:-420,Cuiaba:{o:-240,h:"s",dst:"9/15/1 -> 1/18/23"},Curacao:-240,Danmarkshavn:0,Dawson:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Dawson_Creek:-420,Denver:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Detroit:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Dominica:-240,Edmonton:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Eirunepe:-300,El_Salvador:-360,Ensenada:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Fort_Wayne:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Fortaleza:-180,Glace_Bay:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Godthab:{o:-120,h:"n",dst:"2/25/23 -> 9/28/22"},Goose_Bay:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Grand_Turk:-240,Grenada:-240,Guadeloupe:-240,Guatemala:-360,Guayaquil:-300,Guyana:-240,Halifax:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Havana:{o:-240,h:"n",dst:"2/12/1 -> 10/5/0"},Hermosillo:-420,Indiana:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Indianapolis:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Inuvik:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Iqaluit:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Jamaica:-300,Jujuy:-180,Juneau:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Kentucky:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Knox_IN:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Kralendijk:-240,La_Paz:-240,Lima:-300,Los_Angeles:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Louisville:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Lower_Princes:-240,Maceio:-180,Managua:-360,Manaus:-240,Marigot:-240,Martinique:-240,Matamoros:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Mazatlan:{o:-360,h:"n",dst:"3/2/3 -> 9/29/1"},Mendoza:-180,Menominee:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Merida:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"},Metlakatla:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Mexico_City:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"},Miquelon:{o:-120,h:"n",dst:"2/12/3 -> 10/5/1"},Moncton:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Monterrey:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"},Montevideo:-180,Montreal:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Montserrat:-240,Nassau:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},New_York:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Nipigon:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Nome:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Noronha:-120,North_Dakota:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Ojinaga:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Panama:-300,Pangnirtung:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Paramaribo:-180,Phoenix:-420,"Port-au-Prince":-240,Port_of_Spain:-240,Porto_Acre:-300,Porto_Velho:-240,Puerto_Rico:-240,Rainy_River:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Rankin_Inlet:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Recife:-180,Regina:-360,Resolute:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Rio_Branco:-300,Rosario:-180,Santa_Isabel:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Santarem:-180,Santiago:{o:-180,h:"s",dst:"7/13/1 -> 4/13/23"},Santo_Domingo:-240,Sao_Paulo:{o:-180,h:"s",dst:"9/15/1 -> 1/18/23"},Scoresbysund:{o:0,h:"n",dst:"2/26/1 -> 9/29/0"},Shiprock:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Sitka:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},St_Barthelemy:-240,St_Johns:{o:-150,h:"n",dst:"2/12/3 -> 10/5/1"},St_Kitts:-240,St_Lucia:-240,St_Thomas:-240,St_Vincent:-240,Swift_Current:-360,Tegucigalpa:-360,Thule:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Thunder_Bay:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Tijuana:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Toronto:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Tortola:-240,Vancouver:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Virgin:-240,Whitehorse:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Winnipeg:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Yakutat:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Yellowknife:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"}},Antarctica:{Casey:480,Davis:420,DumontDUrville:600,Macquarie:660,Mawson:300,McMurdo:{o:720,h:"s",dst:"8/24/3 -> 3/2/2"},Palmer:{o:-180,h:"s",dst:"7/13/1 -> 4/13/23"},Rothera:-180,South_Pole:{o:720,h:"s",dst:"8/24/3 -> 3/2/2"},Syowa:180,Troll:{o:120,h:"n",dst:"2/26/3 -> 9/29/1"},Vostok:360},Arctic:{Longyearbyen:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"}},Asia:{Aden:180,Almaty:360,Amman:{o:180,h:"n",dst:"2/31/1 -> 9/27/0"},Anadyr:720,Aqtau:300,Aqtobe:300,Ashgabat:300,Ashkhabad:300,Baghdad:180,Bahrain:180,Baku:300,Bangkok:420,Beirut:{o:180,h:"n",dst:"2/26/1 -> 9/28/23"},Bishkek:360,Brunei:480,Calcutta:330,Chita:480,Choibalsan:{o:480,h:"n",dst:"2/25/3 -> 8/29/23"},Chongqing:480,Chungking:480,Colombo:330,Dacca:360,Damascus:{o:180,h:"n",dst:"2/31/1 -> 9/26/23"},Dhaka:360,Dili:540,Dubai:240,Dushanbe:300,Gaza:{o:180,h:"n",dst:"2/25/2 -> 9/28/0"},Harbin:480,Hebron:{o:180,h:"n",dst:"2/25/2 -> 9/28/0"},Ho_Chi_Minh:420,Hong_Kong:480,Hovd:{o:420,h:"n",dst:"2/25/3 -> 8/29/23"},Irkutsk:480,Istanbul:180,Jakarta:420,Jayapura:540,Jerusalem:{o:180,h:"n",dst:"2/24/3 -> 9/29/1"},Kabul:270,Kamchatka:720,Karachi:300,Kashgar:360,Kathmandu:345,Katmandu:345,Khandyga:540,Kolkata:330,Krasnoyarsk:420,Kuala_Lumpur:480,Kuching:480,Kuwait:180,Macao:480,Macau:480,Magadan:600,Makassar:480,Manila:480,Muscat:240,Nicosia:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Novokuznetsk:420,Novosibirsk:360,Omsk:360,Oral:300,Phnom_Penh:420,Pontianak:420,Pyongyang:540,Qatar:180,Qyzylorda:360,Rangoon:390,Riyadh:180,Saigon:420,Sakhalin:600,Samarkand:300,Seoul:540,Shanghai:480,Singapore:480,Srednekolymsk:660,Taipei:480,Tashkent:300,Tbilisi:240,Tehran:{o:270,h:"n",dst:"2/22/1 -> 8/21/23"},Tel_Aviv:{o:180,h:"n",dst:"2/24/3 -> 9/29/1"},Thimbu:360,Thimphu:360,Tokyo:540,Ujung_Pandang:480,Ulaanbaatar:{o:480,h:"n",dst:"2/25/3 -> 8/29/23"},Ulan_Bator:{o:480,h:"n",dst:"2/25/3 -> 8/29/23"},Urumqi:360,"Ust-Nera":600,Vientiane:420,Vladivostok:600,Yakutsk:540,Yekaterinburg:300,Yerevan:240},Atlantic:{Azores:{o:0,h:"n",dst:"2/26/1 -> 9/29/0"},Bermuda:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Canary:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Cape_Verde:-60,Faeroe:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Faroe:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Jan_Mayen:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Madeira:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Reykjavik:0,South_Georgia:-120,St_Helena:0,Stanley:-180},Australia:{ACT:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Adelaide:{o:570,h:"s",dst:"9/1/3 -> 3/2/2"},Brisbane:600,Broken_Hill:{o:570,h:"s",dst:"9/1/3 -> 3/2/2"},Canberra:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Currie:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Darwin:570,Eucla:525,Hobart:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},LHI:{o:630,h:"s",dst:"9/1/2 -> 3/2/1"},Lindeman:600,Lord_Howe:{o:630,h:"s",dst:"9/1/2 -> 3/2/1"},Melbourne:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},NSW:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},North:570,Perth:480,Queensland:600,South:{o:570,h:"s",dst:"9/1/3 -> 3/2/2"},Sydney:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Tasmania:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Victoria:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},West:480,Yancowinna:{o:570,h:"s",dst:"9/1/3 -> 3/2/2"}},Brazil:{Acre:-300,DeNoronha:-120,East:{o:-180,h:"s",dst:"9/15/1 -> 1/18/23"},West:-240},Canada:{Atlantic:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Central:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},"East-Saskatchewan":-360,Eastern:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Mountain:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Newfoundland:{o:-150,h:"n",dst:"2/12/3 -> 10/5/1"},Pacific:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Saskatchewan:-360,Yukon:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"}},Chile:{Continental:{o:-180,h:"s",dst:"7/13/1 -> 4/13/23"},EasterIsland:{o:-300,h:"s",dst:"7/12/23 -> 4/13/21"}},Etc:{GMT:0,"GMT+0":0,"GMT+1":-60,"GMT+10":-600,"GMT+11":-660,"GMT+12":-720,"GMT+2":-120,"GMT+3":-180,"GMT+4":-240,"GMT+5":-300,"GMT+6":-360,"GMT+7":-420,"GMT+8":-480,"GMT+9":-540,"GMT-0":0,"GMT-1":60,"GMT-10":600,"GMT-11":660,"GMT-12":720,"GMT-13":780,"GMT-14":840,"GMT-2":120,"GMT-3":180,"GMT-4":240,"GMT-5":300,"GMT-6":360,"GMT-7":420,"GMT-8":480,"GMT-9":540,GMT0:0,Greenwich:0,UCT:0,UTC:0,Universal:0,Zulu:0},Europe:{Amsterdam:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Andorra:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Athens:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Belfast:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Belgrade:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Berlin:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Bratislava:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Brussels:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Bucharest:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Budapest:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Busingen:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Chisinau:{o:180,h:"n",dst:"2/26/3 -> 9/29/2"},Copenhagen:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Dublin:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Gibraltar:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Guernsey:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Helsinki:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Isle_of_Man:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Istanbul:180,Jersey:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Kaliningrad:120,Kiev:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Lisbon:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Ljubljana:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},London:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Luxembourg:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Madrid:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Malta:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Mariehamn:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Minsk:180,Monaco:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Moscow:180,Nicosia:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Oslo:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Paris:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Podgorica:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Prague:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Riga:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Rome:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Samara:240,San_Marino:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Sarajevo:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Simferopol:180,Skopje:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Sofia:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Stockholm:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Tallinn:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Tirane:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Tiraspol:{o:180,h:"n",dst:"2/26/3 -> 9/29/2"},Uzhgorod:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Vaduz:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Vatican:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Vienna:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Vilnius:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Volgograd:180,Warsaw:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Zagreb:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Zaporozhye:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Zurich:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"}},Indian:{Antananarivo:180,Chagos:360,Christmas:420,Cocos:390,Comoro:180,Kerguelen:300,Mahe:240,Maldives:300,Mauritius:240,Mayotte:180,Reunion:240},Mexico:{BajaNorte:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},BajaSur:{o:-360,h:"n",dst:"3/2/3 -> 9/29/1"},General:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"}},Pacific:{Apia:{o:780,h:"s",dst:"8/24/4 -> 3/2/3"},Auckland:{o:720,h:"s",dst:"8/24/3 -> 3/2/2"},Chatham:{o:765,h:"s",dst:"8/24/3 -> 3/2/2"},Chuuk:600,Easter:{o:-300,h:"s",dst:"7/12/23 -> 4/13/21"},Efate:660,Enderbury:780,Fakaofo:780,Fiji:{o:720,h:"s",dst:"10/5/3 -> 0/15/2"},Funafuti:720,Galapagos:-360,Gambier:-540,Guadalcanal:660,Guam:600,Honolulu:-600,Johnston:-600,Kiritimati:840,Kosrae:660,Kwajalein:720,Majuro:720,Marquesas:-570,Midway:-660,Nauru:720,Niue:-660,Norfolk:690,Noumea:660,Pago_Pago:-660,Palau:540,Pitcairn:-480,Pohnpei:660,Ponape:660,Port_Moresby:600,Rarotonga:-600,Saipan:600,Samoa:-660,Tahiti:-600,Tarawa:720,Tongatapu:{o:780,h:"s",dst:"10/5/3 -> 0/15/2"},Truk:600,Wake:720,Wallis:720,Yap:600}}},{}],3:[function(t,n,e){n.exports={name:"spacetime",version:"1.0.5",description:"represent dates in remote timezones",main:"./builds/spacetime.js",license:"Apache-2.0",scripts:{build:"node ./scripts/build.js",demo:"node ./scripts/demo.js",watch:"node ./scripts/watch.js",test:"./node_modules/tape/bin/tape ./test/**/*.test.js | ./node_modules/tap-spec/bin/cmd.js",coverage:"node ./scripts/coverage.js"},repository:{type:"git",url:"https://github.com/smallwins/spacetime.git"},files:["builds/"],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",gaze:"^1.1.1",nyc:"^8.4.0",shelljs:"^0.7.2","tap-spec":"4.1.1",tape:"4.6.0",timekeeper:"^1.0.0","uglify-js":"2.7.0"}}},{}],4:[function(t,n,e){"use strict";n.exports={short:["sun","mon","tues","wed","thurs","fri","sat"],long:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]}},{}],5:[function(t,n,e){"use strict";var o={millisecond:1};o.second=1e3,o.minute=6e4,o.hour=36e5,o.day=864e5,o.date=864e5,o.month=25488e5,o.week=6048e5,o.year=3154e7,Object.keys(o).forEach(function(t){o[t+"s"]=o[t]}),n.exports=o},{}],6:[function(t,n,e){"use strict";n.exports=[31,28,31,30,31,30,31,31,30,31,30,31]},{}],7:[function(t,n,e){"use strict";for(var o=["jan","feb","mar","apr","may","jun","jul","aug","sept","oct","nov","dec"],a=["january","february","march","april","may","june","july","august","september","october","november","december"],r={sep:8},s=0;s<o.length;s++)r[o[s]]=s;for(var i=0;i<a.length;i++)r[a[i]]=i;n.exports={short:o,long:a,mapping:r}},{}],8:[function(t,n,e){"use strict";n.exports=[null,[0,1],[3,1],[6,1],[9,1]]},{}],9:[function(t,n,e){"use strict";n.exports=[["spring",2,1],["summer",5,1],["fall",8,1],["autumn",8,1],["winter",11,1]]},{}],10:[function(t,n,e){"use strict";e.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.valueOf())},e.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},e.zeroPad=function(t,n){n=n||2;var e="0";return t+="",t.length>=n?t:new Array(n-t.length+1).join(e)+t},e.titleCase=function(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():""},e.ordinal=function(t){var n=t%10,e=t%100;return 1===n&&11!==e?t+"st":2===n&&12!==e?t+"nd":3===n&&13!==e?t+"rd":t+"th"},e.normalize=function(t){return t=t.toLowerCase(),t=t.replace(/s$/,""),"day"===t?"date":t},e.getEpoch=function(t){return"number"==typeof t?t:e.isDate(t)?t.getTime():t.epoch?t.epoch:null}},{}],11:[function(t,n,e){"use strict";var o=t("./spacetime"),a=t("../package.json"),r=function(t,n){return new o(t,n)};r.now=function(t){return new o((new Date).getTime(),t)},r.today=function(t){var n=new o((new Date).getTime(),t);return n.startOf("day")},r.tomorrow=function(t){var n=new o((new Date).getTime(),t);return n.add(1,"day").startOf("day")},r.yesterday=function(t){var n=new o((new Date).getTime(),t);return n.subtract(1,"day").startOf("day")},r.version=a.version,n.exports=r},{"../package.json":3,"./spacetime":28}],12:[function(t,n,e){"use strict";var o=t("./strParse"),a=t("../fns"),r=function(t,n){for(var e=["year","month","date","hour","minute","second","millisecond"],o=0;o<n.length;o++){var a=n[o]||0;t[e[o]](a)}return t},s=function(t,n){for(var e=Object.keys(n),o=0;o<e.length;o++){var a=e[o];if(void 0!==t[a]){var r=n[a]||0;t[a](r)}}return t},i=function(t,n){if("number"==typeof n)return void(t.epoch=n);if(t.epoch=Date.now(),null!==n&&void 0!==n){if(a.isDate(n)===!0)return void(t.epoch=n.getTime());if(a.isArray(n)===!0)return void r(t,n);if(a.isObject(n)===!0)return n.epoch?void(t.epoch=n.epoch):void s(t,n);if("string"==typeof n){for(var e=0;e<o.length;e++){var i=n.match(o[e].reg);if(i)return void o[e].parse(t,i)}t.epoch=null}}};n.exports=i},{"../fns":10,"./strParse":13}],13:[function(t,n,e){"use strict";var o=t("../methods/set/walk"),a=t("../data/months"),r=function(t,n){n=n.replace(/^\s+/,"");var e=n.match(/([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?:?([0-9]{1,4})?/);e&&(t.hour(e[1]),t.minute(e[2]),e[3]&&t.seconds(e[3]),e[4]&&t.millisecond(e[4]))},s=[{reg:/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})T([0-9:-]+)Z?$/,parse:function(t,n){var e=parseInt(n[2],10)-1;o(t,{year:n[1],month:e,date:n[3]}),r(t,n[4])}},{reg:/^([0-9]{4})[\-\/]([0-9]{1,2})[\-\/]([0-9]{1,2})$/,parse:function(t,n){var e=parseInt(n[2],10)-1;o(t,{year:n[1],month:e,date:n[3]})}},{reg:/^([0-9]{1,2})[\-\/]([0-9]{1,2})[\-\/]([0-9]{4})$/,parse:function(t,n){var e=parseInt(n[1],10)-1;o(t,{year:n[3],month:e,date:n[2]})}},{reg:/^([a-z]+) ([0-9]{1,2}),? ([0-9]{4})( ([0-9:]+))?$/i,parse:function(t,n){var e=a.mapping[n[1].toLowerCase()];o(t,{year:n[3],month:e,date:n[2]}),n[4]&&r(t,n[4])}},{reg:/^([0-9]{1,2}) ([a-z]+),? ([0-9]{4})$/i,parse:function(t,n){var e=a.mapping[n[2].toLowerCase()];o(t,{year:n[3],month:e,date:n[1]})}}];n.exports=s},{"../data/months":7,"../methods/set/walk":26}],14:[function(t,n,e){"use strict";var o=t("./methods/format"),a=t("./methods/progress"),r=t("./methods/diff"),s=t("./methods/startOf"),i=t("./timezone/index"),u=t("./input"),h={set:function(t){return u(this,t),this},timezone:function(){return i(this)},isDST:function(){return i(this).current.isDst},hasDST:function(){return 0!==i(this).dst.change},offset:function(){return i(this).current.offset/60},format:function(t){return o(this,t)},startOf:function(t){return s.startOf(this,t)},endOf:function(t){return s.endOf(this,t)},leapYear:function(){var t=this.year();return t%4===0&&t%100!==0||t%400===0},progress:function(){return a(this)},diff:function(t,n){return r(this,t,n)},isValid:function(){return!isNaN(this.d.getTime())},goto:function(t){return this.tz=t,this},isAsleep:function(){var t=this.hour();return t<8||t>22},log:function(){return console.log(""),console.log(o(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(o(this,"full-short")),this}};h.inDST=h.isDST,n.exports=h},{"./input":12,"./methods/diff":17,"./methods/format":18,"./methods/progress":19,"./methods/startOf":27,"./timezone/index":30}],15:[function(t,n,e){"use strict";var o=t("./set/walk"),a=t("../data/milliseconds"),r=t("../data/monthLength"),s=t("../fns"),i=["millisecond","second","minute","hour","date","month"],u={second:i.slice(0,1),minute:i.slice(0,2),hour:i.slice(0,3),date:i.slice(0,4),month:i.slice(0,4),quarter:i.slice(0,4),season:i.slice(0,4),year:i};u.week=u.date,u.season=u.date,u.quarter=u.date;var h={month:!0,quarter:!0,season:!0,year:!0},d=function(t,n){if(t.month>0){var e=parseInt(t.month/12,10);t.year=n.year()+e,t.month=t.month%12}else if(t.month<0){var o=Math.floor(Math.abs(t.month)/13,10);o=Math.abs(o)+1,t.year=n.year()-o,t.month=t.month%12,t.month=t.month+12,12===t.month&&(t.month=0)}return t},c=function(t){t.prototype.add=function(t,n){var e=this.clone();n=s.normalize(n),a[n]?this.epoch+=a[n]*t:"week"===n?this.epoch+=a.day*(7*t):"quarter"===n||"season"===n?this.epoch+=a.month*(4*t):"season"===n&&(this.epoch+=a.month*(4*t));var i={};if(u[n]&&u[n].forEach(function(t){i[t]=e[t]()}),"month"===n&&(i.month=e.month()+t,i=d(i,e)),"year"===n&&this.year()===e.year()&&(this.epoch+=a.week),h[n]){var c=r[i.month];i.date=e.date(),i.date>c&&(i.date=c)}return o(this,i),this},t.prototype.subtract=function(t,n){return this.add(t*-1,n),this}};n.exports=c},{"../data/milliseconds":5,"../data/monthLength":6,"../fns":10,"./set/walk":26}],16:[function(t,n,e){"use strict";var o=t("../fns"),a=function(t){var n={isAfter:function(t){var n=o.getEpoch(t);return null===n?null:this.epoch>n},isBefore:function(t){var n=o.getEpoch(t);return null===n?null:this.epoch<n},isEqual:function(t){var n=o.getEpoch(t);return null===n?null:this.epoch===n}};Object.keys(n).forEach(function(e){t.prototype[e]=n[e]})};n.exports=a},{"../fns":10}],17:[function(t,n,e){"use strict";var o=t("../fns"),a=function(t,n,e){var o=0;for(t=t.clone();t.isBefore(n);)t.add(1,e),o+=1;return t.isSame(n,e)||(o-=1),o},r=function(t,n,e){return e=o.normalize(e),t.isBefore(n)?a(t,n,e):a(n,t,e)*-1};n.exports=r},{"../fns":10}],18:[function(t,n,e){"use strict";var o=t("../fns"),a=t("../data/months"),r=t("../data/days"),s={day:function(t){return o.titleCase(r.long[t.day()])},"day-short":function(t){return o.titleCase(r.short[t.day()])},date:function(t){return""+t.date()},"date-ordinal":function(t){return o.ordinal(t.date())},month:function(t){return o.titleCase(a.long[t.month()])},"month-short":function(t){return o.titleCase(a.short[t.month()])},time:function(t){return t.h12()+":"+o.zeroPad(t.minute())+t.ampm()},"time-24h":function(t){return t.hour()+":"+o.zeroPad(t.minute())},year:function(t){return""+t.year()},"year-short":function(t){return"'"+(""+t.year()).substr(2,4)},"numeric-us":function(t){return o.zeroPad(t.month()+1)+"/"+o.zeroPad(t.date())+"/"+t.year()},"numeric-uk":function(t){return o.zeroPad(t.date())+"/"+o.zeroPad(t.month()+1)+"/"+t.year()},"numeric-cn":function(t){return t.year()+"/"+o.zeroPad(t.month()+1)+"/"+o.zeroPad(t.date())},iso:function(t){var n=o.zeroPad(t.month()+1),e=o.zeroPad(t.date()),a=o.zeroPad(t.h24()),r=o.zeroPad(t.minute()),s=o.zeroPad(t.second()),i=o.zeroPad(t.millisecond(),3);return t.year()+"-"+n+"-"+e+"T"+a+":"+r+":"+s+":"+i+"Z"},"iso-short":function(t){var n=o.zeroPad(t.month()+1),e=o.zeroPad(t.date());return t.year()+"-"+n+"-"+e},"iso-utc":function(t){return new Date(t.epoch).toISOString()}};s.nice=function(t){var n=s.month(t),e=s["date-ordinal"](t),o=s.time(t);return n+" "+e+", "+o},s["nice-day"]=function(t){var n=s.day(t),e=s.month(t),o=s["date-ordinal"](t),a=s.time(t);return n+" "+e+" "+o+", "+a},s["nice-short"]=function(t){var n=s["month-short"](t),e=s["date-ordinal"](t),o=s.time(t);return n+" "+e+", "+o},s.full=function(t){var n=s.day(t),e=s.month(t),o=s["date-ordinal"](t),a=t.year();return n+" "+e+" "+o+", "+a},s["full-short"]=function(t){var n=s["day-short"](t),e=s["month-short"](t),o=s["date-ordinal"](t),a=t.year();return n+" "+e+" "+o+", "+a},s.ordinal=s["date-ordinal"],s["date-short"]=s.date,s["time-12h"]=s.time,s["time-h12"]=s["time-12h"],s["time-h24"]=s["time-24h"],s.numeric=s["numeric-us"],s.mdy=s["numeric-us"],s.dmy=s["numeric-uk"],s.ymd=s["numeric-cn"],s["little-endian"]=s["numeric-uk"],s["big-endian"]=s["numeric-cn"];var i=function(t,n){if(s&&s[n])return s[n](t);var e=Object.keys(s).reduce(function(n,e){return n[e]=s[e](t),n},{});return e};n.exports=i},{"../data/days":4,"../data/months":7,"../fns":10}],19:[function(t,n,e){"use strict";var o=function(t){var n=["year","season","quarter","month","week","day","hour","minute"],e={};return n.forEach(function(n){var o=t.clone().startOf(n),a=t.clone().endOf(n),r=a.epoch-o.epoch,s=(t.epoch-o.epoch)/r;e[n]=parseFloat(s.toFixed(2))}),e};n.exports=o},{}],20:[function(t,n,e){"use strict";var o=t("../../data/quarters"),a=t("../../data/seasons"),r=t("../set/set"),s=function(t){t.minute(0),t.second(0),t.millisecond(1)};n.exports={time:function(t){return void 0!==t?(this.epoch=r.time(this,t),this):this.format("time-h12")},week:function(t){if(void 0!==t)return this.month(0),this.date(1),this.day("monday"),s(this),"december"===this.monthName()&&this.add(1,"week"),t-=1,this.add(t,"weeks"),this;var n=this.clone();n.month(0),n.date(1),s(n),n.day("monday"),"december"===n.monthName()&&n.add(1,"week");var e=this.epoch;if(n.epoch>e)return 1;for(var o=0;o<52;o++){if(n.epoch>e)return o;n.add(1,"week")}return 52},quarter:function(t){if(void 0!==t&&("string"==typeof t&&(t=t.replace(/^q/i,""),t=parseInt(t,10)),o[t])){var n=o[t][0];return this.month(n),this.date(1),this.hour(0),s(this),this}for(var e=this.d.getMonth(),a=1;a<o.length;a++)if(e<o[a][0])return a-1;return 4},hourFloat:function(t){if(void 0!==t){var n=t%1;n=60*n;var e=parseInt(t,10);return this.epoch=r.hours(this,e),this.epoch=r.minutes(this,n),this}var o=this.d,a=o.getHours(),s=o.getMinutes();return s/=60,a+s},season:function(t){if(void 0!==t){for(var n=0;n<a.length;n++)t===a[n][0]&&(this.month(a[n][1]),this.date(1),this.hour(0),s(this));return this}for(var e=this.d.getMonth(),o=0;o<a.length-1;o++)if(e>=a[o][1]&&e<a[o+1][1])return a[o][0];return"winter"}}},{"../../data/quarters":8,"../../data/seasons":9,"../set/set":25}],21:[function(t,n,e){"use strict";var o=t("./normal"),a=t("./destructive"),r=t("./tricky"),s=function(t){Object.keys(o).forEach(function(n){t.prototype[n]=o[n]}),Object.keys(a).forEach(function(n){t.prototype[n]=a[n]}),Object.keys(r).forEach(function(n){t.prototype[n]=r[n]})};n.exports=s},{"./destructive":20,"./normal":22,"./tricky":23}],22:[function(t,n,e){"use strict";var o=t("../set/set"),a={millisecond:function(t){return void 0!==t?(this.epoch=o.milliseconds(this,t),this):this.d.getMilliseconds()},second:function(t){return void 0!==t?(this.epoch=o.seconds(this,t),this):this.d.getSeconds()},minute:function(t){return void 0!==t?(this.epoch=o.minutes(this,t),this):this.d.getMinutes()},hour:function(t){var n=this.d;return void 0!==t?(this.epoch=o.hours(this,t),this):n.getHours()},hour12:function t(n){var e=this.d;if(void 0!==n){n=""+n;var a=n.match(/^([0-9]+)(am|pm)$/);if(a){var r=parseInt(a[1],10);"pm"===a[2]&&(r+=12),this.epoch=o.hours(this,r)}return this}var t=e.getHours();return t>12&&(t-=12),0===t&&(t=12),t},date:function(t){return void 0!==t?(this.epoch=o.date(this,t),this):this.d.getDate()},month:function(t){return void 0!==t?(this.epoch=o.month(this,t),this):this.d.getMonth()},year:function(t){return void 0!==t?(this.epoch=o.year(this,t),this):this.d.getFullYear()},dayTime:function(t){if(void 0!==t){var n={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 t=t||"",t=t.toLowerCase(),n[t]&&this.time(n[t]),this}var e=this.hour();return e<6?"night":e<12?"morning":e<17?"afternoon":e<22?"evening":"night"},dayOfYear:function(t){if(void 0!==t)return this.epoch=o.dayOfYear(this,t),this;for(var n=0,e=this.d.getMonth(),a=void 0,r=0;r<e;r++)a=new Date,a.setMonth(r),a.setDate(1),a.setHours(-2),n+=a.getDate();return n+this.d.getDate()}};a.milliseconds=a.millisecond,a.seconds=a.second,a.minutes=a.minute,a.hours=a.hour,a.hour24=a.hour,a.h12=a.hour12,a.h24=a.hour24,a.days=a.day,n.exports=a},{"../set/set":25}],23:[function(t,n,e){"use strict";var o=t("../../data/days"),a=t("../../data/months"),r=t("../set/walk");n.exports={day:function t(n){if(void 0===n)return this.d.getDay();var e=this.clone(),a=n;"string"==typeof n&&(n=n.toLowerCase(),a=o.short.indexOf(n),a===-1&&(a=o.long.indexOf(n)));var t=this.d.getDay(),s=t-a,i=this.subtract(24*s,"hours");return r(i,{hour:e.hour(),minute:e.minute(),second:e.second()}),this.epoch=i.epoch,i},ampm:function(t){var n="am",e=this.hour();return e>=12&&(n="pm"),void 0===t?n:t===n?this:("am"===t?this.subtract(12,"hours"):this.add(12,"hours"),this)},dayName:function(t){return void 0===t?o.long[this.day()]:(this.day(t),this)},monthName:function(t){return void 0===t?a.long[this.month()]:(this.month(t),this)}}},{"../../data/days":4,"../../data/months":7,"../set/walk":26}],24:[function(t,n,e){"use strict";var o={millisecond:function(t){return t.epoch},second:function(t){return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second()].join("-")},minute:function(t){return[t.year(),t.month(),t.date(),t.hour(),t.minute()].join("-")},hour:function(t){return[t.year(),t.month(),t.date(),t.hour()].join("-")},day:function(t){return[t.year(),t.month(),t.date()].join("-")},week:function(t){return[t.year(),t.week()].join("-")},month:function(t){return[t.year(),t.month()].join("-")},quarter:function(t){return[t.year(),t.quarter()].join("-")},year:function(t){return t.year()}};o.date=o.day;var a=function(t){t.prototype.isSame=function(n,e){var a=this;return"string"!=typeof n&&"number"!=typeof n||(n=new t(n,this.timezone.name)),e=e.replace(/s$/,""),o[e]?o[e](a)===o[e](n):null}};n.exports=a},{}],25:[function(t,n,e){"use strict";var o=t("../../data/milliseconds"),a=t("../../data/months"),r=t("../../data/monthLength"),s=t("./walk"),i=function(t){return"string"==typeof t&&(t=parseInt(t,10)),t},u=["year","month","date","hour","minute","second","millisecond"],h=function(t,n,e){for(var o=u.indexOf(e),a=u.slice(o,u.length),r=0;r<a.length;r++){var s=n[a[r]]();t[a[r]](s)}return t};n.exports={milliseconds:function(t,n){n=i(n);var e=t.millisecond(),o=e-n;return t.epoch-o},seconds:function(t,n){n=i(n);var e=t.second()-n,a=e*o.second;return t.epoch-a},minutes:function(t,n){n=i(n);var e=t.clone(),a=t.minute()-n,r=a*o.minute;return t.epoch-=r,h(t,e,"second"),t.epoch},hours:function(t,n){n=i(n);var e=t.clone(),a=t.hour()-n,r=a*o.hour;return t.epoch-=r,h(t,e,"minute"),t.epoch},time:function(t,n){var e=n.match(/([0-9]{1,2}):([0-9]{1,2})(am|pm)?/);if(!e){if(e=n.match(/([0-9]{1,2})(am|pm)/),!e)return t.epoch;e.splice(2,0,"0")}var o=!1,a=parseInt(e[1],10),r=parseInt(e[2],10);return a>12&&(o=!0),o===!1&&("am"===e[3]&&12===a&&(a=0),"pm"===e[3]&&a<12&&(a+=12)),t.hour(a),t.minute(r),t.second(0),t.millisecond(0),t.epoch},date:function(t,n){return n=i(n),s(t,{date:n}),t.epoch},month:function(t,n){"string"==typeof n&&(n=a.mapping[n.toLowerCase()]),n=i(n);var e=t.date();return e>r[n]&&(e=r[n]),s(t,{month:n,date:e}),t.epoch},year:function(t,n){return n=i(n),s(t,{year:n}),t.epoch},dayOfYear:function(t,n){n=i(n);var e=t.clone(),a=n-t.dayOfYear(),r=a*o.day;return t.epoch+=r,h(t,e,"hour"),t.epoch}}},{"../../data/milliseconds":5,"../../data/monthLength":6,"../../data/months":7,"./walk":26}],26:[function(t,n,e){"use strict";var o=t("../../data/milliseconds"),a={year:{valid:function(t){return t>0&&t<4e3},walkTo:function(t,n){for(;t.year()<n;)t.epoch+=o.year;for(;t.year()>n;)t.epoch-=o.year}},month:{valid:function(t){return t>=0&&t<=11},walkTo:function(t,n){for(;t.month()<n;)t.epoch+=o.day;for(;t.month()>n;)t.epoch-=o.day}},date:{valid:function(t){return t>0&&t<=31},walkTo:function(t,n){for(;t.date()<n;)t.epoch+=o.day;for(;t.date()>n;)t.epoch-=o.day}},hour:{valid:function(t){return t>=0&&t<24},walkTo:function(t,n){for(;t.hour()<n;)t.epoch+=o.hour;for(;t.hour()>n;)t.epoch-=o.hour}},minute:{valid:function(t){return t>=0&&t<60},walkTo:function(t,n){for(;t.minute()<n;)t.epoch+=o.minute;for(;t.minute()>n;)t.epoch-=o.minute}},second:{valid:function(t){return t>=0&&t<60},walkTo:function(t,n){for(;t.second()<n;)t.epoch+=o.second;for(;t.second()>n;)t.epoch-=o.second;
}},millisecond:{valid:function(t){return t>=0&&t<1e3},walkTo:function(t,n){t.milliseconds(n)}}},r=function(t,n){for(var e=Object.keys(a),o=t.clone(),r=0;r<e.length;r++){var s=e[r],i=n[s];if(void 0===i&&(i=o[s]()),"string"==typeof i&&(i=parseInt(i,10)),!a[s].valid(i))return void console.warn("invalid "+s+": "+i);a[s].walkTo(t,i)}void 0===n.hour&&t.hour()!==o.hour()&&t.hour(o.hour())};n.exports=r},{"../../data/milliseconds":5}],27:[function(t,n,e){"use strict";var o=t("../data/seasons"),a=t("../data/quarters"),r=t("./set/walk"),s={minute:function(t){return r(t,{second:0,millisecond:0}),t},hour:function(t){return r(t,{minute:0,second:0,millisecond:0}),t},day:function(t){return r(t,{hour:0,minute:0,second:0,millisecond:0}),t},week:function(t){var n=t.clone();return t.day(1),t.isAfter(n)&&t.subtract(1,"week"),r(t,{hour:0,minute:0,second:0,millisecond:0}),t},month:function(t){return r(t,{date:1,hour:0,minute:0,second:0,millisecond:0}),t},quarter:function(t){var n=t.quarter();return a[n]&&r(t,{month:a[n][0],date:a[n][1],hour:0,minute:0,second:0,millisecond:0}),t},season:function(t){for(var n=t.season(),e=0;e<o.length;e++)if(o[e][0]===n){var a=t.year();return"winter"===n&&t.month()<3&&(a-=1),r(t,{year:a,month:o[e][1],date:o[e][2],hour:0,minute:0,second:0,millisecond:0}),t}return t},year:function(t){return r(t,{month:0,date:1,hour:0,minute:0,second:0,millisecond:0}),t}};s.date=s.day;var i=function(t,n){return s[n]?s[n](t):t},u=function(t,n){return s[n]?(t=s[n](t),t.add(1,n),t.subtract(1,"milliseconds"),t):t};n.exports={startOf:i,endOf:u}},{"../data/quarters":8,"../data/seasons":9,"./set/walk":26}],28:[function(t,n,e){"use strict";var o=t("./timezone/guessTz"),a=t("./timezone/index"),r=t("./input"),s=t("./methods"),i=function(t,n){this.tz=n||o(),this.bias=(new Date).getTimezoneOffset()||0,Object.defineProperty(this,"d",{get:function(){var t=a(this)||{},n=t.current.epochShift;n+=60*this.bias*1e3;var e=this.epoch+n,o=new Date(e);return o}}),r(this,t)};Object.keys(s).forEach(function(t){i.prototype[t]=s[t]}),i.prototype.clone=function(){return new i(this.epoch,this.tz)},t("./methods/query")(i),t("./methods/add")(i),t("./methods/same")(i),t("./methods/compare")(i),n.exports=i},{"./input":12,"./methods":14,"./methods/add":15,"./methods/compare":16,"./methods/query":21,"./methods/same":24,"./timezone/guessTz":29,"./timezone/index":30}],29:[function(t,n,e){"use strict";var o="Canada/Pacific",a=function(){if("undefined"==typeof Intl||"undefined"==typeof Intl.DateTimeFormat)return o;var t=Intl.DateTimeFormat();if("undefined"==typeof t||"undefined"==typeof t.resolvedOptions)return o;var n=t.resolvedOptions().timeZone;return n&&(n.indexOf("/")>-1||"UTC"===n)?n:o};n.exports=a},{}],30:[function(t,n,e){"use strict";var o=t("../../data"),a=t("./isDst"),r=function(t){if(!t)return{};var n=t.split(" -> ").map(function(t){var n=t.split("/").map(function(t){return parseInt(t,10)});return{month:n[0],date:n[1],hour:n[2]}});return{start:n[0],end:n[1]}},s=function(t){var n=t.tz;if(!o[n])return console.warn("Warn: could not find given or local timezone - '"+n+"'"),{current:{epochShift:0}};var e={name:n};return e.dst=r(o[n].dst),e.dst.change=0,e.dst.start&&e.dst.end&&(e.dst.change=-60,"Australia/Lord_Howe"===e.name&&(e.dst.change=-30)),e.hemisphere=null,"n"===o[n].h?e.hemisphere="North":"s"===o[n].h&&(e.hemisphere="South"),e.offsets={base:o[n].o+e.dst.change,dst:o[n].o},a(t,e.dst)?e.current={isDst:!0,offset:e.offsets.dst}:e.current={isDst:!1,offset:e.offsets.base},e.current.epochShift=60*e.current.offset*1e3,e};n.exports=s},{"../../data":1,"./isDst":31}],31:[function(t,n,e){"use strict";var o=t("../fns").zeroPad,a=function(t){return[o(t.month),o(t.date),o(t.hour)].join("-")},r=function(t,n){if(!n.start||!n.end)return!1;var e=new Date(t.epoch),o={month:e.getMonth(),date:e.getDate(),hour:e.getHours()};o=a(o);var r=a(n.start),s=a(n.end);return r<s?o>r&&o<s:o>r||o<s};n.exports=r},{"../fns":10}]},{},[11])(11)});
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.spacetime=t()}}(function(){return function t(n,e,o){function a(s,i){if(!e[s]){if(!n[s]){var u="function"==typeof require&&require;if(!i&&u)return u(s,!0);if(r)return r(s,!0);var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var d=e[s]={exports:{}};n[s][0].call(d.exports,function(t){var e=n[s][1][t];return a(e?e:t)},d,d.exports,t,n,e,o)}return e[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)a(o[s]);return a}({1:[function(t,n,e){"use strict";var o=t("./zonefile.2017.json"),a=function(t){var n={},e=Object.keys(t);return e.forEach(function(e){var o=Object.keys(t[e]);o.forEach(function(o){var a=e+"/"+o;n[a]=t[e][o],"number"==typeof n[a]&&(n[a]={o:n[a]}),n[a].tz=a})}),n.UTC=n["Etc/UTC"],n},r=a(o);n.exports=r},{"./zonefile.2017.json":2}],2:[function(t,n,e){n.exports={Africa:{Abidjan:0,Accra:0,Addis_Ababa:180,Algiers:60,Asmara:180,Asmera:180,Bamako:0,Bangui:60,Banjul:0,Bissau:0,Blantyre:120,Brazzaville:60,Bujumbura:120,Cairo:120,Casablanca:{o:60,h:"n",dst:"6/2/3 -> 9/29/2"},Ceuta:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Conakry:0,Dakar:0,Dar_es_Salaam:180,Djibouti:180,Douala:60,El_Aaiun:{o:60,h:"n",dst:"6/2/3 -> 9/29/2"},Freetown:0,Gaborone:120,Harare:120,Johannesburg:120,Juba:180,Kampala:180,Khartoum:180,Kigali:120,Kinshasa:60,Lagos:60,Libreville:60,Lome:0,Luanda:60,Lubumbashi:120,Lusaka:120,Malabo:60,Maputo:120,Maseru:120,Mbabane:120,Mogadishu:180,Monrovia:0,Nairobi:180,Ndjamena:60,Niamey:60,Nouakchott:0,Ouagadougou:0,"Porto-Novo":60,Sao_Tome:0,Timbuktu:0,Tripoli:120,Tunis:60,Windhoek:{o:60,h:"s",dst:"8/3/3 -> 3/2/1"}},America:{Adak:{o:-540,h:"n",dst:"2/12/3 -> 10/5/1"},Anchorage:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Anguilla:-240,Antigua:-240,Araguaina:-180,Argentina:-180,Aruba:-240,Asuncion:{o:-240,h:"s",dst:"9/1/1 -> 2/25/23"},Atikokan:-300,Atka:{o:-540,h:"n",dst:"2/12/3 -> 10/5/1"},Bahia:-180,Bahia_Banderas:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"},Barbados:-240,Belem:-180,Belize:-360,"Blanc-Sablon":-240,Boa_Vista:-240,Bogota:-300,Boise:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Buenos_Aires:-180,Cambridge_Bay:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Campo_Grande:{o:-240,h:"s",dst:"9/15/1 -> 1/18/23"},Cancun:-300,Caracas:-270,Catamarca:-180,Cayenne:-180,Cayman:-300,Chicago:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Chihuahua:{o:-360,h:"n",dst:"3/2/3 -> 9/29/1"},Coral_Harbour:-300,Cordoba:-180,Costa_Rica:-360,Creston:-420,Cuiaba:{o:-240,h:"s",dst:"9/15/1 -> 1/18/23"},Curacao:-240,Danmarkshavn:0,Dawson:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Dawson_Creek:-420,Denver:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Detroit:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Dominica:-240,Edmonton:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Eirunepe:-300,El_Salvador:-360,Ensenada:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Fort_Wayne:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Fortaleza:-180,Glace_Bay:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Godthab:{o:-120,h:"n",dst:"2/25/23 -> 9/28/22"},Goose_Bay:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Grand_Turk:-240,Grenada:-240,Guadeloupe:-240,Guatemala:-360,Guayaquil:-300,Guyana:-240,Halifax:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Havana:{o:-240,h:"n",dst:"2/12/1 -> 10/5/0"},Hermosillo:-420,Indiana:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Indianapolis:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Inuvik:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Iqaluit:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Jamaica:-300,Jujuy:-180,Juneau:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Kentucky:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Knox_IN:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Kralendijk:-240,La_Paz:-240,Lima:-300,Los_Angeles:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Louisville:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Lower_Princes:-240,Maceio:-180,Managua:-360,Manaus:-240,Marigot:-240,Martinique:-240,Matamoros:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Mazatlan:{o:-360,h:"n",dst:"3/2/3 -> 9/29/1"},Mendoza:-180,Menominee:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Merida:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"},Metlakatla:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Mexico_City:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"},Miquelon:{o:-120,h:"n",dst:"2/12/3 -> 10/5/1"},Moncton:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Monterrey:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"},Montevideo:-180,Montreal:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Montserrat:-240,Nassau:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},New_York:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Nipigon:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Nome:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Noronha:-120,North_Dakota:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Ojinaga:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Panama:-300,Pangnirtung:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Paramaribo:-180,Phoenix:-420,"Port-au-Prince":-240,Port_of_Spain:-240,Porto_Acre:-300,Porto_Velho:-240,Puerto_Rico:-240,Rainy_River:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Rankin_Inlet:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Recife:-180,Regina:-360,Resolute:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Rio_Branco:-300,Rosario:-180,Santa_Isabel:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Santarem:-180,Santiago:{o:-180,h:"s",dst:"7/13/1 -> 4/13/23"},Santo_Domingo:-240,Sao_Paulo:{o:-180,h:"s",dst:"9/15/1 -> 1/18/23"},Scoresbysund:{o:0,h:"n",dst:"2/26/1 -> 9/29/0"},Shiprock:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Sitka:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},St_Barthelemy:-240,St_Johns:{o:-150,h:"n",dst:"2/12/3 -> 10/5/1"},St_Kitts:-240,St_Lucia:-240,St_Thomas:-240,St_Vincent:-240,Swift_Current:-360,Tegucigalpa:-360,Thule:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Thunder_Bay:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Tijuana:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Toronto:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Tortola:-240,Vancouver:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Virgin:-240,Whitehorse:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Winnipeg:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},Yakutat:{o:-480,h:"n",dst:"2/12/3 -> 10/5/1"},Yellowknife:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"}},Antarctica:{Casey:480,Davis:420,DumontDUrville:600,Macquarie:660,Mawson:300,McMurdo:{o:720,h:"s",dst:"8/24/3 -> 3/2/2"},Palmer:{o:-180,h:"s",dst:"7/13/1 -> 4/13/23"},Rothera:-180,South_Pole:{o:720,h:"s",dst:"8/24/3 -> 3/2/2"},Syowa:180,Troll:{o:120,h:"n",dst:"2/26/3 -> 9/29/1"},Vostok:360},Arctic:{Longyearbyen:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"}},Asia:{Aden:180,Almaty:360,Amman:{o:180,h:"n",dst:"2/31/1 -> 9/27/0"},Anadyr:720,Aqtau:300,Aqtobe:300,Ashgabat:300,Ashkhabad:300,Baghdad:180,Bahrain:180,Baku:300,Bangkok:420,Beirut:{o:180,h:"n",dst:"2/26/1 -> 9/28/23"},Bishkek:360,Brunei:480,Calcutta:330,Chita:480,Choibalsan:{o:480,h:"n",dst:"2/25/3 -> 8/29/23"},Chongqing:480,Chungking:480,Colombo:330,Dacca:360,Damascus:{o:180,h:"n",dst:"2/31/1 -> 9/26/23"},Dhaka:360,Dili:540,Dubai:240,Dushanbe:300,Gaza:{o:180,h:"n",dst:"2/25/2 -> 9/28/0"},Harbin:480,Hebron:{o:180,h:"n",dst:"2/25/2 -> 9/28/0"},Ho_Chi_Minh:420,Hong_Kong:480,Hovd:{o:420,h:"n",dst:"2/25/3 -> 8/29/23"},Irkutsk:480,Istanbul:180,Jakarta:420,Jayapura:540,Jerusalem:{o:180,h:"n",dst:"2/24/3 -> 9/29/1"},Kabul:270,Kamchatka:720,Karachi:300,Kashgar:360,Kathmandu:345,Katmandu:345,Khandyga:540,Kolkata:330,Krasnoyarsk:420,Kuala_Lumpur:480,Kuching:480,Kuwait:180,Macao:480,Macau:480,Magadan:600,Makassar:480,Manila:480,Muscat:240,Nicosia:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Novokuznetsk:420,Novosibirsk:360,Omsk:360,Oral:300,Phnom_Penh:420,Pontianak:420,Pyongyang:540,Qatar:180,Qyzylorda:360,Rangoon:390,Riyadh:180,Saigon:420,Sakhalin:600,Samarkand:300,Seoul:540,Shanghai:480,Singapore:480,Srednekolymsk:660,Taipei:480,Tashkent:300,Tbilisi:240,Tehran:{o:270,h:"n",dst:"2/22/1 -> 8/21/23"},Tel_Aviv:{o:180,h:"n",dst:"2/24/3 -> 9/29/1"},Thimbu:360,Thimphu:360,Tokyo:540,Ujung_Pandang:480,Ulaanbaatar:{o:480,h:"n",dst:"2/25/3 -> 8/29/23"},Ulan_Bator:{o:480,h:"n",dst:"2/25/3 -> 8/29/23"},Urumqi:360,"Ust-Nera":600,Vientiane:420,Vladivostok:600,Yakutsk:540,Yekaterinburg:300,Yerevan:240},Atlantic:{Azores:{o:0,h:"n",dst:"2/26/1 -> 9/29/0"},Bermuda:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Canary:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Cape_Verde:-60,Faeroe:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Faroe:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Jan_Mayen:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Madeira:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Reykjavik:0,South_Georgia:-120,St_Helena:0,Stanley:-180},Australia:{ACT:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Adelaide:{o:570,h:"s",dst:"9/1/3 -> 3/2/2"},Brisbane:600,Broken_Hill:{o:570,h:"s",dst:"9/1/3 -> 3/2/2"},Canberra:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Currie:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Darwin:570,Eucla:525,Hobart:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},LHI:{o:630,h:"s",dst:"9/1/2 -> 3/2/1"},Lindeman:600,Lord_Howe:{o:630,h:"s",dst:"9/1/2 -> 3/2/1"},Melbourne:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},NSW:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},North:570,Perth:480,Queensland:600,South:{o:570,h:"s",dst:"9/1/3 -> 3/2/2"},Sydney:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Tasmania:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},Victoria:{o:600,h:"s",dst:"9/1/3 -> 3/2/2"},West:480,Yancowinna:{o:570,h:"s",dst:"9/1/3 -> 3/2/2"}},Brazil:{Acre:-300,DeNoronha:-120,East:{o:-180,h:"s",dst:"9/15/1 -> 1/18/23"},West:-240},Canada:{Atlantic:{o:-180,h:"n",dst:"2/12/3 -> 10/5/1"},Central:{o:-300,h:"n",dst:"2/12/3 -> 10/5/1"},"East-Saskatchewan":-360,Eastern:{o:-240,h:"n",dst:"2/12/3 -> 10/5/1"},Mountain:{o:-360,h:"n",dst:"2/12/3 -> 10/5/1"},Newfoundland:{o:-150,h:"n",dst:"2/12/3 -> 10/5/1"},Pacific:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},Saskatchewan:-360,Yukon:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"}},Chile:{Continental:{o:-180,h:"s",dst:"7/13/1 -> 4/13/23"},EasterIsland:{o:-300,h:"s",dst:"7/12/23 -> 4/13/21"}},Etc:{GMT:0,"GMT+0":0,"GMT+1":-60,"GMT+10":-600,"GMT+11":-660,"GMT+12":-720,"GMT+2":-120,"GMT+3":-180,"GMT+4":-240,"GMT+5":-300,"GMT+6":-360,"GMT+7":-420,"GMT+8":-480,"GMT+9":-540,"GMT-0":0,"GMT-1":60,"GMT-10":600,"GMT-11":660,"GMT-12":720,"GMT-13":780,"GMT-14":840,"GMT-2":120,"GMT-3":180,"GMT-4":240,"GMT-5":300,"GMT-6":360,"GMT-7":420,"GMT-8":480,"GMT-9":540,GMT0:0,Greenwich:0,UCT:0,UTC:0,Universal:0,Zulu:0},Europe:{Amsterdam:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Andorra:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Athens:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Belfast:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Belgrade:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Berlin:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Bratislava:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Brussels:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Bucharest:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Budapest:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Busingen:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Chisinau:{o:180,h:"n",dst:"2/26/3 -> 9/29/2"},Copenhagen:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Dublin:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Gibraltar:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Guernsey:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Helsinki:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Isle_of_Man:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Istanbul:180,Jersey:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Kaliningrad:120,Kiev:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Lisbon:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Ljubljana:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},London:{o:60,h:"n",dst:"2/26/2 -> 9/29/1"},Luxembourg:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Madrid:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Malta:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Mariehamn:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Minsk:180,Monaco:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Moscow:180,Nicosia:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Oslo:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Paris:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Podgorica:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Prague:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Riga:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Rome:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Samara:240,San_Marino:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Sarajevo:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Simferopol:180,Skopje:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Sofia:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Stockholm:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Tallinn:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Tirane:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Tiraspol:{o:180,h:"n",dst:"2/26/3 -> 9/29/2"},Uzhgorod:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Vaduz:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Vatican:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Vienna:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Vilnius:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Volgograd:180,Warsaw:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Zagreb:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"},Zaporozhye:{o:180,h:"n",dst:"2/26/4 -> 9/29/3"},Zurich:{o:120,h:"n",dst:"2/26/3 -> 9/29/2"}},Indian:{Antananarivo:180,Chagos:360,Christmas:420,Cocos:390,Comoro:180,Kerguelen:300,Mahe:240,Maldives:300,Mauritius:240,Mayotte:180,Reunion:240},Mexico:{BajaNorte:{o:-420,h:"n",dst:"2/12/3 -> 10/5/1"},BajaSur:{o:-360,h:"n",dst:"3/2/3 -> 9/29/1"},General:{o:-300,h:"n",dst:"3/2/3 -> 9/29/1"}},Pacific:{Apia:{o:780,h:"s",dst:"8/24/4 -> 3/2/3"},Auckland:{o:720,h:"s",dst:"8/24/3 -> 3/2/2"},Chatham:{o:765,h:"s",dst:"8/24/3 -> 3/2/2"},Chuuk:600,Easter:{o:-300,h:"s",dst:"7/12/23 -> 4/13/21"},Efate:660,Enderbury:780,Fakaofo:780,Fiji:{o:720,h:"s",dst:"10/5/3 -> 0/15/2"},Funafuti:720,Galapagos:-360,Gambier:-540,Guadalcanal:660,Guam:600,Honolulu:-600,Johnston:-600,Kiritimati:840,Kosrae:660,Kwajalein:720,Majuro:720,Marquesas:-570,Midway:-660,Nauru:720,Niue:-660,Norfolk:690,Noumea:660,Pago_Pago:-660,Palau:540,Pitcairn:-480,Pohnpei:660,Ponape:660,Port_Moresby:600,Rarotonga:-600,Saipan:600,Samoa:-660,Tahiti:-600,Tarawa:720,Tongatapu:{o:780,h:"s",dst:"10/5/3 -> 0/15/2"},Truk:600,Wake:720,Wallis:720,Yap:600}}},{}],3:[function(t,n,e){n.exports={name:"spacetime",version:"1.0.7",description:"represent dates in remote timezones",main:"./builds/spacetime.js",license:"Apache-2.0",scripts:{build:"node ./scripts/build.js",demo:"node ./scripts/demo.js",watch:"node ./scripts/watch.js",test:"./node_modules/tape/bin/tape ./test/**/*.test.js | ./node_modules/tap-spec/bin/cmd.js",coverage:"node ./scripts/coverage.js"},repository:{type:"git",url:"https://github.com/smallwins/spacetime.git"},files:["builds/"],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",gaze:"^1.1.1",nyc:"^8.4.0",shelljs:"^0.7.2","tap-spec":"4.1.1",tape:"4.6.0",timekeeper:"^1.0.0","uglify-js":"2.7.0"}}},{}],4:[function(t,n,e){"use strict";n.exports={short:["sun","mon","tues","wed","thurs","fri","sat"],long:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]}},{}],5:[function(t,n,e){"use strict";var o={millisecond:1};o.second=1e3,o.minute=6e4,o.hour=36e5,o.day=864e5,o.date=864e5,o.month=25488e5,o.week=6048e5,o.year=3154e7,Object.keys(o).forEach(function(t){o[t+"s"]=o[t]}),n.exports=o},{}],6:[function(t,n,e){"use strict";n.exports=[31,28,31,30,31,30,31,31,30,31,30,31]},{}],7:[function(t,n,e){"use strict";for(var o=["jan","feb","mar","apr","may","jun","jul","aug","sept","oct","nov","dec"],a=["january","february","march","april","may","june","july","august","september","october","november","december"],r={sep:8},s=0;s<o.length;s++)r[o[s]]=s;for(var i=0;i<a.length;i++)r[a[i]]=i;n.exports={short:o,long:a,mapping:r}},{}],8:[function(t,n,e){"use strict";n.exports=[null,[0,1],[3,1],[6,1],[9,1]]},{}],9:[function(t,n,e){"use strict";n.exports=[["spring",2,1],["summer",5,1],["fall",8,1],["autumn",8,1],["winter",11,1]]},{}],10:[function(t,n,e){"use strict";e.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.valueOf())},e.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},e.zeroPad=function(t,n){n=n||2;var e="0";return t+="",t.length>=n?t:new Array(n-t.length+1).join(e)+t},e.titleCase=function(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():""},e.ordinal=function(t){var n=t%10,e=t%100;return 1===n&&11!==e?t+"st":2===n&&12!==e?t+"nd":3===n&&13!==e?t+"rd":t+"th"},e.normalize=function(t){return t=t.toLowerCase(),t=t.replace(/s$/,""),"day"===t?"date":t},e.getEpoch=function(t){return"number"==typeof t?t:e.isDate(t)?t.getTime():t.epoch?t.epoch:null}},{}],11:[function(t,n,e){"use strict";var o=t("./spacetime"),a=t("../package.json"),r=function(t,n){return new o(t,n)};r.now=function(t){return new o((new Date).getTime(),t)},r.today=function(t){var n=new o((new Date).getTime(),t);return n.startOf("day")},r.tomorrow=function(t){var n=new o((new Date).getTime(),t);return n.add(1,"day").startOf("day")},r.yesterday=function(t){var n=new o((new Date).getTime(),t);return n.subtract(1,"day").startOf("day")},r.version=a.version,n.exports=r},{"../package.json":3,"./spacetime":28}],12:[function(t,n,e){"use strict";var o=t("./strParse"),a=t("../fns"),r=function(t,n){for(var e=["year","month","date","hour","minute","second","millisecond"],o=0;o<n.length;o++){var a=n[o]||0;t[e[o]](a)}return t},s=function(t,n){for(var e=Object.keys(n),o=0;o<e.length;o++){var a=e[o];if(void 0!==t[a]){var r=n[a]||0;t[a](r)}}return t},i=function(t,n){if("number"==typeof n)return void(t.epoch=n);if(t.epoch=Date.now(),null!==n&&void 0!==n){if(a.isDate(n)===!0)return void(t.epoch=n.getTime());if(a.isArray(n)===!0)return void r(t,n);if(a.isObject(n)===!0)return n.epoch?void(t.epoch=n.epoch):void s(t,n);if("string"==typeof n){for(var e=0;e<o.length;e++){var i=n.match(o[e].reg);if(i)return void o[e].parse(t,i)}t.epoch=null,t.valid=!1}}};n.exports=i},{"../fns":10,"./strParse":13}],13:[function(t,n,e){"use strict";var o=t("../methods/set/walk"),a=t("../data/months"),r=function(t,n){n=n.replace(/^\s+/,"");var e=n.match(/([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?:?([0-9]{1,4})?/);e&&(t.hour(e[1]),t.minute(e[2]),e[3]&&t.seconds(e[3]),e[4]&&t.millisecond(e[4]))},s=[{reg:/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})T([0-9:-\\.]+)(Z|[0-9\-\+]+)?$/,parse:function(t,n){var e=parseInt(n[2],10)-1;o(t,{year:n[1],month:e,date:n[3]}),r(t,n[4])}},{reg:/^([0-9]{4})[\-\/]([0-9]{1,2})[\-\/]([0-9]{1,2})$/,parse:function(t,n){var e=parseInt(n[2],10)-1;o(t,{year:n[1],month:e,date:n[3]})}},{reg:/^([0-9]{1,2})[\-\/]([0-9]{1,2})[\-\/]([0-9]{4})$/,parse:function(t,n){var e=parseInt(n[1],10)-1;o(t,{year:n[3],month:e,date:n[2]})}},{reg:/^([a-z]+) ([0-9]{1,2}),? ([0-9]{4})( ([0-9:]+))?$/i,parse:function(t,n){var e=a.mapping[n[1].toLowerCase()];o(t,{year:n[3],month:e,date:n[2]}),n[4]&&r(t,n[4])}},{reg:/^([0-9]{1,2}) ([a-z]+),? ([0-9]{4})$/i,parse:function(t,n){var e=a.mapping[n[2].toLowerCase()];o(t,{year:n[3],month:e,date:n[1]})}}];n.exports=s},{"../data/months":7,"../methods/set/walk":26}],14:[function(t,n,e){"use strict";var o=t("./methods/format"),a=t("./methods/progress"),r=t("./methods/diff"),s=t("./methods/startOf"),i=t("./timezone/index"),u=t("./input"),h={set:function(t){return u(this,t),this},timezone:function(){return i(this)},isDST:function(){return i(this).current.isDst},hasDST:function(){return 0!==i(this).dst.change},offset:function(){return i(this).current.offset/60},format:function(t){return o(this,t)},startOf:function(t){return s.startOf(this,t)},endOf:function(t){return s.endOf(this,t)},leapYear:function(){var t=this.year();return t%4===0&&t%100!==0||t%400===0},progress:function(){return a(this)},diff:function(t,n){return r(this,t,n)},isValid:function(){return this.valid&&!isNaN(this.d.getTime())},goto:function(t){return this.tz=t,this},isAsleep:function(){var t=this.hour();return t<8||t>22},log:function(){return console.log(""),console.log(o(this,"nice-short")),this},logYear:function(){return console.log(""),console.log(o(this,"full-short")),this}};h.inDST=h.isDST,n.exports=h},{"./input":12,"./methods/diff":17,"./methods/format":18,"./methods/progress":19,"./methods/startOf":27,"./timezone/index":30}],15:[function(t,n,e){"use strict";var o=t("./set/walk"),a=t("../data/milliseconds"),r=t("../data/monthLength"),s=t("../fns"),i=["millisecond","second","minute","hour","date","month"],u={second:i.slice(0,1),minute:i.slice(0,2),hour:i.slice(0,3),date:i.slice(0,4),month:i.slice(0,4),quarter:i.slice(0,4),season:i.slice(0,4),year:i};u.week=u.date,u.season=u.date,u.quarter=u.date;var h={month:!0,quarter:!0,season:!0,year:!0},d=function(t,n){if(t.month>0){var e=parseInt(t.month/12,10);t.year=n.year()+e,t.month=t.month%12}else if(t.month<0){var o=Math.floor(Math.abs(t.month)/13,10);o=Math.abs(o)+1,t.year=n.year()-o,t.month=t.month%12,t.month=t.month+12,12===t.month&&(t.month=0)}return t},c=function(t){t.prototype.add=function(t,n){var e=this.clone();n=s.normalize(n),a[n]?this.epoch+=a[n]*t:"week"===n?this.epoch+=a.day*(7*t):"quarter"===n||"season"===n?this.epoch+=a.month*(4*t):"season"===n&&(this.epoch+=a.month*(4*t));var i={};if(u[n]&&u[n].forEach(function(t){i[t]=e[t]()}),"month"===n&&(i.month=e.month()+t,i=d(i,e)),"year"===n&&this.year()===e.year()&&(this.epoch+=a.week),h[n]){var c=r[i.month];i.date=e.date(),i.date>c&&(i.date=c)}return o(this,i),this},t.prototype.subtract=function(t,n){return this.add(t*-1,n),this}};n.exports=c},{"../data/milliseconds":5,"../data/monthLength":6,"../fns":10,"./set/walk":26}],16:[function(t,n,e){"use strict";var o=t("../fns"),a=function(t){var n={isAfter:function(t){var n=o.getEpoch(t);return null===n?null:this.epoch>n},isBefore:function(t){var n=o.getEpoch(t);return null===n?null:this.epoch<n},isEqual:function(t){var n=o.getEpoch(t);return null===n?null:this.epoch===n}};Object.keys(n).forEach(function(e){t.prototype[e]=n[e]})};n.exports=a},{"../fns":10}],17:[function(t,n,e){"use strict";var o=t("../fns"),a=function(t,n,e){var o=0;for(t=t.clone();t.isBefore(n);)t.add(1,e),o+=1;return t.isSame(n,e)||(o-=1),o},r=function(t,n,e){return e=o.normalize(e),t.isBefore(n)?a(t,n,e):a(n,t,e)*-1};n.exports=r},{"../fns":10}],18:[function(t,n,e){"use strict";var o=t("../fns"),a=t("../data/months"),r=t("../data/days"),s={day:function(t){return o.titleCase(r.long[t.day()])},"day-short":function(t){return o.titleCase(r.short[t.day()])},date:function(t){return""+t.date()},"date-ordinal":function(t){return o.ordinal(t.date())},month:function(t){return o.titleCase(a.long[t.month()])},"month-short":function(t){return o.titleCase(a.short[t.month()])},time:function(t){return t.h12()+":"+o.zeroPad(t.minute())+t.ampm()},"time-24h":function(t){return t.hour()+":"+o.zeroPad(t.minute())},year:function(t){return""+t.year()},"year-short":function(t){return"'"+(""+t.year()).substr(2,4)},"numeric-us":function(t){return o.zeroPad(t.month()+1)+"/"+o.zeroPad(t.date())+"/"+t.year()},"numeric-uk":function(t){return o.zeroPad(t.date())+"/"+o.zeroPad(t.month()+1)+"/"+t.year()},"numeric-cn":function(t){return t.year()+"/"+o.zeroPad(t.month()+1)+"/"+o.zeroPad(t.date())},iso:function(t){var n=o.zeroPad(t.month()+1),e=o.zeroPad(t.date()),a=o.zeroPad(t.h24()),r=o.zeroPad(t.minute()),s=o.zeroPad(t.second()),i=o.zeroPad(t.millisecond(),3);return t.year()+"-"+n+"-"+e+"T"+a+":"+r+":"+s+":"+i+"Z"},"iso-short":function(t){var n=o.zeroPad(t.month()+1),e=o.zeroPad(t.date());return t.year()+"-"+n+"-"+e},"iso-utc":function(t){return new Date(t.epoch).toISOString()}};s.nice=function(t){var n=s.month(t),e=s["date-ordinal"](t),o=s.time(t);return n+" "+e+", "+o},s["nice-day"]=function(t){var n=s.day(t),e=s.month(t),o=s["date-ordinal"](t),a=s.time(t);return n+" "+e+" "+o+", "+a},s["nice-short"]=function(t){var n=s["month-short"](t),e=s["date-ordinal"](t),o=s.time(t);return n+" "+e+", "+o},s.full=function(t){var n=s.day(t),e=s.month(t),o=s["date-ordinal"](t),a=t.year();return n+" "+e+" "+o+", "+a},s["full-short"]=function(t){var n=s["day-short"](t),e=s["month-short"](t),o=s["date-ordinal"](t),a=t.year();return n+" "+e+" "+o+", "+a},s.ordinal=s["date-ordinal"],s["date-short"]=s.date,s["time-12h"]=s.time,s["time-h12"]=s["time-12h"],s["time-h24"]=s["time-24h"],s.numeric=s["numeric-us"],s.mdy=s["numeric-us"],s.dmy=s["numeric-uk"],s.ymd=s["numeric-cn"],s["little-endian"]=s["numeric-uk"],s["big-endian"]=s["numeric-cn"];var i=function(t,n){if(t.isValid()!==!0)return"";if(s&&s[n])return s[n](t);var e=Object.keys(s).reduce(function(n,e){return n[e]=s[e](t),n},{});return e};n.exports=i},{"../data/days":4,"../data/months":7,"../fns":10}],19:[function(t,n,e){"use strict";var o=function(t){var n=["year","season","quarter","month","week","day","hour","minute"],e={};return n.forEach(function(n){var o=t.clone().startOf(n),a=t.clone().endOf(n),r=a.epoch-o.epoch,s=(t.epoch-o.epoch)/r;e[n]=parseFloat(s.toFixed(2))}),e};n.exports=o},{}],20:[function(t,n,e){"use strict";var o=t("../../data/quarters"),a=t("../../data/seasons"),r=t("../set/set"),s=function(t){t.minute(0),t.second(0),t.millisecond(1)};n.exports={time:function(t){return void 0!==t?(this.epoch=r.time(this,t),this):this.format("time-h12")},week:function(t){if(void 0!==t)return this.month(0),this.date(1),this.day("monday"),s(this),"december"===this.monthName()&&this.add(1,"week"),t-=1,this.add(t,"weeks"),this;var n=this.clone();n.month(0),n.date(1),s(n),n.day("monday"),"december"===n.monthName()&&n.add(1,"week");var e=this.epoch;if(n.epoch>e)return 1;for(var o=0;o<52;o++){if(n.epoch>e)return o;n.add(1,"week")}return 52},quarter:function(t){if(void 0!==t&&("string"==typeof t&&(t=t.replace(/^q/i,""),t=parseInt(t,10)),o[t])){var n=o[t][0];return this.month(n),this.date(1),this.hour(0),s(this),this}for(var e=this.d.getMonth(),a=1;a<o.length;a++)if(e<o[a][0])return a-1;return 4},hourFloat:function(t){if(void 0!==t){var n=t%1;n=60*n;var e=parseInt(t,10);return this.epoch=r.hours(this,e),this.epoch=r.minutes(this,n),this}var o=this.d,a=o.getHours(),s=o.getMinutes();return s/=60,a+s},season:function(t){if(void 0!==t){for(var n=0;n<a.length;n++)t===a[n][0]&&(this.month(a[n][1]),this.date(1),this.hour(0),s(this));return this}for(var e=this.d.getMonth(),o=0;o<a.length-1;o++)if(e>=a[o][1]&&e<a[o+1][1])return a[o][0];return"winter"}}},{"../../data/quarters":8,"../../data/seasons":9,"../set/set":25}],21:[function(t,n,e){"use strict";var o=t("./normal"),a=t("./destructive"),r=t("./tricky"),s=function(t){Object.keys(o).forEach(function(n){t.prototype[n]=o[n]}),Object.keys(a).forEach(function(n){t.prototype[n]=a[n]}),Object.keys(r).forEach(function(n){t.prototype[n]=r[n]})};n.exports=s},{"./destructive":20,"./normal":22,"./tricky":23}],22:[function(t,n,e){"use strict";var o=t("../set/set"),a={millisecond:function(t){return void 0!==t?(this.epoch=o.milliseconds(this,t),this):this.d.getMilliseconds()},second:function(t){return void 0!==t?(this.epoch=o.seconds(this,t),this):this.d.getSeconds()},minute:function(t){return void 0!==t?(this.epoch=o.minutes(this,t),this):this.d.getMinutes()},hour:function(t){var n=this.d;return void 0!==t?(this.epoch=o.hours(this,t),this):n.getHours()},hour12:function t(n){var e=this.d;if(void 0!==n){n=""+n;var a=n.match(/^([0-9]+)(am|pm)$/);if(a){var r=parseInt(a[1],10);"pm"===a[2]&&(r+=12),this.epoch=o.hours(this,r)}return this}var t=e.getHours();return t>12&&(t-=12),0===t&&(t=12),t},date:function(t){return void 0!==t?(this.epoch=o.date(this,t),this):this.d.getDate()},month:function(t){return void 0!==t?(this.epoch=o.month(this,t),this):this.d.getMonth()},year:function(t){return void 0!==t?(this.epoch=o.year(this,t),this):this.d.getFullYear()},dayTime:function(t){if(void 0!==t){var n={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 t=t||"",t=t.toLowerCase(),n[t]&&this.time(n[t]),this}var e=this.hour();return e<6?"night":e<12?"morning":e<17?"afternoon":e<22?"evening":"night"},dayOfYear:function(t){if(void 0!==t)return this.epoch=o.dayOfYear(this,t),this;for(var n=0,e=this.d.getMonth(),a=void 0,r=0;r<e;r++)a=new Date,a.setMonth(r),a.setDate(1),a.setHours(-2),n+=a.getDate();return n+this.d.getDate()}};a.milliseconds=a.millisecond,a.seconds=a.second,a.minutes=a.minute,a.hours=a.hour,a.hour24=a.hour,a.h12=a.hour12,a.h24=a.hour24,a.days=a.day,n.exports=a},{"../set/set":25}],23:[function(t,n,e){"use strict";var o=t("../../data/days"),a=t("../../data/months"),r=t("../set/walk");n.exports={day:function t(n){if(void 0===n)return this.d.getDay();var e=this.clone(),a=n;"string"==typeof n&&(n=n.toLowerCase(),a=o.short.indexOf(n),a===-1&&(a=o.long.indexOf(n)));var t=this.d.getDay(),s=t-a,i=this.subtract(24*s,"hours");return r(i,{hour:e.hour(),minute:e.minute(),second:e.second()}),this.epoch=i.epoch,i},ampm:function(t){var n="am",e=this.hour();return e>=12&&(n="pm"),void 0===t?n:t===n?this:("am"===t?this.subtract(12,"hours"):this.add(12,"hours"),this)},dayName:function(t){return void 0===t?o.long[this.day()]:(this.day(t),this)},monthName:function(t){return void 0===t?a.long[this.month()]:(this.month(t),this)}}},{"../../data/days":4,"../../data/months":7,"../set/walk":26}],24:[function(t,n,e){"use strict";var o={millisecond:function(t){return t.epoch},second:function(t){return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second()].join("-")},minute:function(t){return[t.year(),t.month(),t.date(),t.hour(),t.minute()].join("-")},hour:function(t){return[t.year(),t.month(),t.date(),t.hour()].join("-")},day:function(t){return[t.year(),t.month(),t.date()].join("-")},week:function(t){return[t.year(),t.week()].join("-")},month:function(t){return[t.year(),t.month()].join("-")},quarter:function(t){return[t.year(),t.quarter()].join("-")},year:function(t){return t.year()}};o.date=o.day;var a=function(t){t.prototype.isSame=function(n,e){var a=this;return"string"!=typeof n&&"number"!=typeof n||(n=new t(n,this.timezone.name)),e=e.replace(/s$/,""),o[e]?o[e](a)===o[e](n):null}};n.exports=a},{}],25:[function(t,n,e){"use strict";var o=t("../../data/milliseconds"),a=t("../../data/months"),r=t("../../data/monthLength"),s=t("./walk"),i=function(t){return"string"==typeof t&&(t=parseInt(t,10)),t},u=["year","month","date","hour","minute","second","millisecond"],h=function(t,n,e){for(var o=u.indexOf(e),a=u.slice(o,u.length),r=0;r<a.length;r++){var s=n[a[r]]();t[a[r]](s)}return t};n.exports={milliseconds:function(t,n){n=i(n);var e=t.millisecond(),o=e-n;return t.epoch-o},seconds:function(t,n){n=i(n);var e=t.second()-n,a=e*o.second;return t.epoch-a},minutes:function(t,n){n=i(n);var e=t.clone(),a=t.minute()-n,r=a*o.minute;return t.epoch-=r,h(t,e,"second"),t.epoch},hours:function(t,n){n=i(n);var e=t.clone(),a=t.hour()-n,r=a*o.hour;return t.epoch-=r,h(t,e,"minute"),t.epoch},time:function(t,n){var e=n.match(/([0-9]{1,2}):([0-9]{1,2})(am|pm)?/);if(!e){if(e=n.match(/([0-9]{1,2})(am|pm)/),!e)return t.epoch;e.splice(2,0,"0")}var o=!1,a=parseInt(e[1],10),r=parseInt(e[2],10);return a>12&&(o=!0),o===!1&&("am"===e[3]&&12===a&&(a=0),"pm"===e[3]&&a<12&&(a+=12)),t.hour(a),t.minute(r),t.second(0),t.millisecond(0),t.epoch},date:function(t,n){return n=i(n),s(t,{date:n}),t.epoch},month:function(t,n){"string"==typeof n&&(n=a.mapping[n.toLowerCase()]),n=i(n);var e=t.date();return e>r[n]&&(e=r[n]),s(t,{month:n,date:e}),t.epoch},year:function(t,n){return n=i(n),s(t,{year:n}),t.epoch},dayOfYear:function(t,n){n=i(n);var e=t.clone(),a=n-t.dayOfYear(),r=a*o.day;return t.epoch+=r,h(t,e,"hour"),t.epoch}}},{"../../data/milliseconds":5,"../../data/monthLength":6,"../../data/months":7,"./walk":26}],26:[function(t,n,e){"use strict";var o=t("../../data/milliseconds"),a={year:{valid:function(t){return t>0&&t<4e3},walkTo:function(t,n){for(;t.year()<n;)t.epoch+=o.year;for(;t.year()>n;)t.epoch-=o.year}},month:{valid:function(t){return t>=0&&t<=11},walkTo:function(t,n){for(;t.month()<n;)t.epoch+=o.day;for(;t.month()>n;)t.epoch-=o.day}},date:{valid:function(t){return t>0&&t<=31},walkTo:function(t,n){for(;t.date()<n;)t.epoch+=o.day;for(;t.date()>n;)t.epoch-=o.day}},hour:{valid:function(t){return t>=0&&t<24},walkTo:function(t,n){for(;t.hour()<n;)t.epoch+=o.hour;for(;t.hour()>n;)t.epoch-=o.hour}},minute:{valid:function(t){return t>=0&&t<60},walkTo:function(t,n){for(;t.minute()<n;)t.epoch+=o.minute;for(;t.minute()>n;)t.epoch-=o.minute}},second:{valid:function(t){return t>=0&&t<60},walkTo:function(t,n){
for(;t.second()<n;)t.epoch+=o.second;for(;t.second()>n;)t.epoch-=o.second}},millisecond:{valid:function(t){return t>=0&&t<1e3},walkTo:function(t,n){t.milliseconds(n)}}},r=function(t,n){for(var e=Object.keys(a),o=t.clone(),r=0;r<e.length;r++){var s=e[r],i=n[s];if(void 0===i&&(i=o[s]()),"string"==typeof i&&(i=parseInt(i,10)),!a[s].valid(i))return t.valid=!1,t.epoch=null,void console.warn("invalid "+s+": "+i);a[s].walkTo(t,i)}void 0===n.hour&&t.hour()!==o.hour()&&t.hour(o.hour())};n.exports=r},{"../../data/milliseconds":5}],27:[function(t,n,e){"use strict";var o=t("../data/seasons"),a=t("../data/quarters"),r=t("./set/walk"),s={minute:function(t){return r(t,{second:0,millisecond:0}),t},hour:function(t){return r(t,{minute:0,second:0,millisecond:0}),t},day:function(t){return r(t,{hour:0,minute:0,second:0,millisecond:0}),t},week:function(t){var n=t.clone();return t.day(1),t.isAfter(n)&&t.subtract(1,"week"),r(t,{hour:0,minute:0,second:0,millisecond:0}),t},month:function(t){return r(t,{date:1,hour:0,minute:0,second:0,millisecond:0}),t},quarter:function(t){var n=t.quarter();return a[n]&&r(t,{month:a[n][0],date:a[n][1],hour:0,minute:0,second:0,millisecond:0}),t},season:function(t){for(var n=t.season(),e=0;e<o.length;e++)if(o[e][0]===n){var a=t.year();return"winter"===n&&t.month()<3&&(a-=1),r(t,{year:a,month:o[e][1],date:o[e][2],hour:0,minute:0,second:0,millisecond:0}),t}return t},year:function(t){return r(t,{month:0,date:1,hour:0,minute:0,second:0,millisecond:0}),t}};s.date=s.day;var i=function(t,n){return s[n]?s[n](t):t},u=function(t,n){return s[n]?(t=s[n](t),t.add(1,n),t.subtract(1,"milliseconds"),t):t};n.exports={startOf:i,endOf:u}},{"../data/quarters":8,"../data/seasons":9,"./set/walk":26}],28:[function(t,n,e){"use strict";var o=t("./timezone/guessTz"),a=t("./timezone/index"),r=t("./input"),s=t("./methods"),i=function(t,n){this.tz=n||o(),this.valid=!0,this.bias=(new Date).getTimezoneOffset()||0,Object.defineProperty(this,"d",{get:function(){var t=a(this)||{},n=t.current.epochShift;n+=60*this.bias*1e3;var e=this.epoch+n,o=new Date(e);return o}}),r(this,t)};Object.keys(s).forEach(function(t){i.prototype[t]=s[t]}),i.prototype.clone=function(){return new i(this.epoch,this.tz)},t("./methods/query")(i),t("./methods/add")(i),t("./methods/same")(i),t("./methods/compare")(i),n.exports=i},{"./input":12,"./methods":14,"./methods/add":15,"./methods/compare":16,"./methods/query":21,"./methods/same":24,"./timezone/guessTz":29,"./timezone/index":30}],29:[function(t,n,e){"use strict";var o="Canada/Pacific",a=function(){if("undefined"==typeof Intl||"undefined"==typeof Intl.DateTimeFormat)return o;var t=Intl.DateTimeFormat();if("undefined"==typeof t||"undefined"==typeof t.resolvedOptions)return o;var n=t.resolvedOptions().timeZone;return n&&(n.indexOf("/")>-1||"UTC"===n)?n:o};n.exports=a},{}],30:[function(t,n,e){"use strict";var o=t("../../data"),a=t("./isDst"),r=function(t){if(!t)return{};var n=t.split(" -> ").map(function(t){var n=t.split("/").map(function(t){return parseInt(t,10)});return{month:n[0],date:n[1],hour:n[2]}});return{start:n[0],end:n[1]}},s=function(t){var n=t.tz;if(!o[n])return console.warn("Warn: could not find given or local timezone - '"+n+"'"),{current:{epochShift:0}};var e={name:n};return e.dst=r(o[n].dst),e.dst.change=0,e.dst.start&&e.dst.end&&(e.dst.change=-60,"Australia/Lord_Howe"===e.name&&(e.dst.change=-30)),e.hemisphere=null,"n"===o[n].h?e.hemisphere="North":"s"===o[n].h&&(e.hemisphere="South"),e.offsets={base:o[n].o+e.dst.change,dst:o[n].o},a(t,e.dst)?e.current={isDst:!0,offset:e.offsets.dst}:e.current={isDst:!1,offset:e.offsets.base},e.current.epochShift=60*e.current.offset*1e3,e};n.exports=s},{"../../data":1,"./isDst":31}],31:[function(t,n,e){"use strict";var o=t("../fns").zeroPad,a=function(t){return[o(t.month),o(t.date),o(t.hour)].join("-")},r=function(t,n){if(!n.start||!n.end)return!1;var e=new Date(t.epoch),o={month:e.getMonth(),date:e.getDate(),hour:e.getHours()};o=a(o);var r=a(n.start),s=a(n.end);return r<s?o>r&&o<s:o>r||o<s};n.exports=r},{"../fns":10}]},{},[11])(11)});
{
"name": "spacetime",
"version": "1.0.6",
"version": "1.0.7",
"description": "represent dates in remote timezones",

@@ -5,0 +5,0 @@ "main": "./builds/spacetime.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc