@digitransit-component/digitransit-component-autosuggest 1.7.17 → 1.7.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,c){"object"==typeof exports&&"undefined"!=typeof module?c(exports,require("prop-types"),require("react"),require("i18next"),require("classnames"),require("react-autosuggest"),require("lodash/debounce"),require("lodash/flatten"),require("lodash/take"),require("lodash/isString"),require("lodash/orderBy"),require("lodash/uniqWith"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),require("lodash/get"),require("@digitransit-component/digitransit-component-suggestion-item"),require("@digitransit-component/digitransit-component-icon"),require("lodash/isEmpty"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","i18next","classnames","react-autosuggest","lodash/debounce","lodash/flatten","lodash/take","lodash/isString","lodash/orderBy","lodash/uniqWith","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","lodash/get","@digitransit-component/digitransit-component-suggestion-item","@digitransit-component/digitransit-component-icon","lodash/isEmpty","react-modal","@digitransit-component/digitransit-component-dialog-modal"],c):c((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.PropTypes,e.React,e.i18next,e.cx,e.Autosuggest,e.debounce,e.flatten,e.take,e.isString,e.orderBy,e.uniqWith,e.isEqual,e.memoize,e.escapeRegExp,e.cloneDeep,e.get,e.SuggestionItem,e.Icon,e.isEmpty,e.ReactModal,e.DialogModal)}(this,(function(e,c,n,o,a,t,i,r,M,s,p,u,l,d,b,A,z,f,h,O,L,m){"use strict";function q(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var N=q(c),g=q(n),W=q(o),T=q(a),X=q(t),B=q(i),_=q(r),y=q(M),S=q(s),v=q(p),k=q(u),C=q(l),E=q(d),R=q(b),w=q(A),D=q(z),P=q(f),x=q(h),I=q(O),H=q(L),Y=q(m);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function U(){return U=Object.assign||function(e){for(var c=1;c<arguments.length;c++){var n=arguments[c];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(this,arguments)}function j(e,c){(null==c||c>e.length)&&(c=e.length);for(var n=0,o=new Array(c);n<c;n++)o[n]=e[n];return o}function G(e,c){if(e){if("string"==typeof e)return j(e,c);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,c):void 0}}function V(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}function Q(e,c){for(var n=0;n<c.length;n++){var o=c[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function J(e,c){return J=Object.setPrototypeOf||function(e,c){return e.__proto__=c,e},J(e,c)}function Z(e,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(c&&c.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),c&&J(e,c)}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ee(e,c){return!c||"object"!==F(c)&&"function"!=typeof c?$(e):c}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function ne(e,c){return function(e){if(Array.isArray(e))return e}(e)||function(e,c){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,a=!1,t=void 0;try{for(var i,r=e[Symbol.iterator]();!(o=(i=r.next()).done)&&(n.push(i.value),!c||n.length!==c);o=!0);}catch(e){a=!0,t=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw t}}return n}}(e,c)||G(e,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,c){return e&&c&&e===c}function ae(e,c){var n=e.properties,o=c.properties;if("FutureRoute"===e.type&&"FutureRoute"===c.type){var a=n.origin,t=n.destination,i=o.origin,r=o.destination;return!!oe("".concat(a.name,"//").concat(a.locality,"//").concat(t.name,"//").concat(t.locality),"".concat(i.name,"//").concat(i.locality,"//").concat(r.name,"//").concat(r.locality))}if("FutureRoute"===e.type||"FutureRoute"===c.type)return!1;if(("bikeRentalStation"===n.layer||"favouriteBikeRentalStation"===n.layer)&&("bikeRentalStation"===o.layer||"favouriteBikeRentalStation"===o.layer)||"bikestation"===n.layer&&"bikestation"===o.layer)return n.labelId===o.labelId;if(oe(n.gtfsId,o.gtfsId))return!0;if(n.gtfsId&&o.gid&&o.gid.includes(n.gtfsId))return!0;if(o.gtfsId&&n.gid&&n.gid.includes(o.gtfsId))return!0;var M=e&&e.geometry?e.geometry.coordinates:void 0,s=c&&c.geometry?c.geometry.coordinates:void 0;return!!(M&&s&&Math.abs(M[0]-s[0])<1e-6&&Math.abs(M[1]-s[1])<1e-6&&(oe(n.name,o.name)||oe(n.label,o.label)||oe(n.address,o.address)||oe(n.address,o.label)||oe(n.label,o.address)))}var te=function(e){return S.default(e)?e.toLowerCase():""},ie={Address:"address",Back:"back",CurrentPosition:"currentPosition",FavouriteStop:"favouriteStop",FavouriteStation:"favouriteStation",FavouritePlace:"favouritePlace",FavouriteRoute:"favouriteRoute",FutureRoute:"futureRoute",Station:"station",SelectFromMap:"selectFromMap",SelectFromOwnLocations:"ownLocations",Stop:"stop",Street:"street",Venue:"venue",BikeRentalStation:"bikeRentalStation"},re=function(e,c){if(!S.default(e)||0===e.length)return 0;return["name","label","address","shortName"].map((function(e){return c[e]})).filter((function(e){return S.default(e)&&e.length>0})).map((function(c){var n=te(c);return 0===n.indexOf(e)?.5+e.length/n.length:.5*e.length/(e.length+1)})).reduce((function(e,c){return c>e?c:e}),0)},Me=function(e,c){switch(e){case ie.CurrentPosition:return 1;case ie.Back:return.9;case ie.SelectFromMap:return.8;case ie.SelectFromOwnLocations:return.79;case ie.FavouriteStation:case ie.FavouritePlace:case ie.FavouriteStop:case ie.FavouriteRoute:return.45;case ie.FutureRoute:return.44;case ie.Station:return S.default(c)&&0===c.indexOf("gtfs")?.43:.42;default:return.4;case ie.Stop:return.35;case ie.BikeRentalStation:return.1}},se=function(e,c){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Array.isArray(c))return c;var o=function(c){return S.default(c)&&e&&e.test(c)},a=te(n),t=o(a),i=v.default(c,[function(e){return t&&o(te(e.properties.shortName))&&0===te(e.properties.shortName).indexOf(a)?1:0},function(e){var c=e.properties,n=c.confidence,o=c.layer,t=c.source;if(0===a.length)return Me(o,t);if(!n){var i=Me(o,t)+re(a,e.properties);return o===ie.BikeRentalStation?i-.8:i}switch(o){case ie.Station:var r=0===t.indexOf("gtfs")?.05:.01;return Math.min(n+r,1);default:return n;case ie.Stop:return n-.1}}],["desc","desc"]);return k.default(i,ae)},pe=function(e,c){return null!=c&&-1!==e.lastIndexOf(c)?e.substring(0,e.lastIndexOf(c)-1):e},ue=function(e){return e.localadmin||e.locality||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||""},le=function(e){var c=e.id,n=e.code;return n||(void 0!==c&&void 0!==c.indexOf&&-1!==c.indexOf("#")?c.substring(c.indexOf("#")+1):void 0)},de=E.default((function(e){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return[e.name||e.address&&e.address.split(",")[0],e.address.replace(new RegExp("".concat(R.default(e.name),"(,)?( )?")),"")];case"favouriteBikeRentalStation":case"bikeRentalStation":return[e.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-AIRPLANE":return!c&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp("".concat(R.default(e.name),"(,)?( )?")),"")];case"favouriteStop":case"stop":return c?[e.name||e.label||e.address&&e.address.split(",")[0],ue(e)]:[e.name,e.id,le(e),ue(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],ue(e)]}}),(function(e,c){var n=w.default(e);return n.plain=c,n}));function be(e){return k.default(e,(function(e,c){var n=C.default(de(e.properties),de(c.properties))&&e.properties.layer===c.properties.layer;return(!n||"FutureRoute"!==e.type&&"FutureRoute"!==c.type)&&n}))}function Ae(e,c,n){if("string"==typeof c&&c.length>0){var o=c.toLowerCase().trim(),a=o.includes(" ")||o.includes(",");return e.filter((function(e){var c=[];n.forEach((function(n){var o=D.default(e,n);a||"properties.label"!==n&&"address"!==n||!o||((o=o.split(",")).length>2?o.splice(o.length-2,2):o.length>1&&o.splice(o.length-1,1),o=o.join(",")),o&&(c=a?c.concat(o.toLowerCase()):c.concat(o.toLowerCase().replace(/,/g," ").split(" ")))}));for(var t=0;t<c.length;t++)if(0===c[t].indexOf(o))return!0;return!1}))}return e}function ze(e,c){return e?Object.keys(e).map((function(n){var o=c||n,a=e[n];return"object"===F(a)?ze(a,o):"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(a))})).join("&"):""}var fe=require("axios").default;function he(e,c){return fe.get(encodeURI(e)+(c?(-1===e.search(/\?/)?"?":"&")+ze(c):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((function(e){return e.data}))}function Oe(e,c,n,o,a,t,i,r){var M=e?e.trim():null;if(null==M||M.length<1||i&&!i.test(M))return Promise.resolve([]);var s=t||"https://api.digitransit.fi/geocoding/v1/search",p=U({text:M},c,o,{lang:n});(a&&(p=U({},p,{sources:a})),r)&&(p=U({},p,{layers:r.toString()}));return he(s,p).then((function(e){return e.features}))}function Le(e,c){if(!e||e.length<1)return Promise.resolve([]);var n="",o=e.map((function(e){var c="stop"===e.type?"stop":"station",o="gtfs".concat(e.gtfsId.split(":")[0].toLowerCase(),":").concat(c,":GTFS:").concat(e.gtfsId);return e.code&&(o+="#".concat(e.code)),n+="".concat(o,","),U({},e,{gid:o})})).reduce((function(e,c){return e[c.gid]=c,e}),{});return he(c,{ids:n.slice(0,-1)}).then((function(e){return e.features.map((function(e){var c,n,a;return{type:"FavouriteStop",properties:{gid:o[e.properties.gid].gid,code:o[e.properties.gid].code,gtfsId:o[e.properties.gid].gtfsId,lastUpdated:o[e.properties.gid].lastUpdated,favouriteId:o[e.properties.gid].favouriteId,address:e.properties.label,layer:(c=e.properties,n=c.layer,a=c.type,"stop"===n||"favouriteStop"===n||"stop"===a||"favouriteStop"===a?"favouriteStop":"favouriteStation")},geometry:e.geometry}}))}))}function me(e,c,n){var o=Ae(e,c,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(o=o.filter((function(e){return!n.includes(e.properties.layer)}))),Promise.resolve(y.default(o,10).map((function(e){var c=U({},e,{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete c.properties.confidence,c})))}var qe=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE"],Ne=["favouritePlace","venue","address","street"];var ge=B.default((function(e,c,n,o,a,t,i,r,M,s){var p=i.input,u=o.getPositions,l=o.getFavouriteLocations,d=o.getOldSearches,b=o.getFavouriteStops,A=o.getLanguage,z=o.getStopAndStationsQuery,f=o.getFavouriteBikeRentalStationsQuery,h=o.getFavouriteBikeRentalStations,O=o.getFavouriteRoutesQuery,L=o.getFavouriteRoutes,m=o.getRoutesQuery,q=o.context,N=o.isPeliasLocationAware,g=o.minimalRegexp,W=o.lineRegexp,T=o.URL_PELIAS,X=o.URL_PELIAS_PLACE,B=o.feedIDs,S=o.geocodingSearchParams,v=o.geocodingSources,k=o.getFutureRoutes,C=o.cityBikeNetworks,E=!e||0===e.length,R=!c||0===c.length,w=u(q),D=[],P={type:"all",term:p,results:[]},x=A(q),I=N&&null!=s&&s.lat&&null!=s&&s.lon?{"focus.point.lat":s.lat.toFixed(3),"focus.point.lon":s.lon.toFixed(3)}:{},H=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==w.status&&D.push(function(e,c){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:c.address,lat:c.lat,lon:c.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:c.address,lat:c.lat,lon:c.lon},geometry:{type:"Point",coordinates:[c.lon,c.lat]}}]):Promise.resolve([])}(p,w)),(E||e.includes("MapPosition"))&&D.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(p)),e.includes("FutureRoutes")){var Y=k(q);D.push(y.default(Y,3))}if(e.includes("SelectFromOwnLocations")&&function(e,c,n){var o=c(e);if(o&&o.length>0)return!0;var a=n(e);return a&&a.length>0}(q,l,b)&&D.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(p)),E||e.includes("Locations")){var F=S;if(c.includes("Favourite")){var j=l(q);D.push(function(e,c){return Promise.resolve(Ae(e,c,["address","name"]).map((function(e){return{type:"FavouritePlace",properties:U({},e,{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}}})))}(j,p)),c.includes("Back")&&D.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(R||c.includes("Datasource")){var G=B.map((function(e){return"gtfs".concat(e)})),K=v.concat(G).join(",");D.push(Oe(p,F,x,I,K,T,g,["station","venue","address","street"]))}if(R||c.includes("History")){var Q=d(q,"endpoint"),J=["currentPosition","selectFromMap","futureRoute","ownLocations","bikeRentalStation","stop","back"];J.push.apply(J,qe),D.push(me(Q,p,J))}}if(E||e.includes("Stops")){if(c.includes("Favourite")){var Z,$=b(q);Z=$.every((function(e){return"station"===e.type}))?Le($,X).then((function(e){return a?a(e,H):e})):z($).then((function(e){return Le(e,X)})).then((function(e){return a?a(e,H):e})),D.push(function(e,c){return e.then((function(e){return Ae(e,c,["properties.name","properties.name","properties.address"])}))}(Z,p))}if(R||c.includes("Datasource")){var ee={size:t},ce=B.map((function(e){return"gtfs".concat(e)})).join(",");D.push(Oe(p,ee,x,I,ce,T,g,["stop","station"]).then((function(e){return a?a(e,H):e})))}if(R||c.includes("History")){var ne=d(q).filter((function(e){return!e.properties.gid||e.properties.gid.includes("GTFS:")})),oe=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikeRentalStation","back"];oe.push.apply(oe,qe),oe.push.apply(oe,Ne),n?("route-CITYBIKE"!==n&&(oe.push("bikeRentalStation"),oe.push("bikestation")),D.push(me(ne,p,oe).then((function(e){return a?a(e,H):e})))):D.push(me(ne,p,oe))}}if(E||e.includes("Routes")){if(c.includes("Favourite")){var ae=L(q);D.push(O(ae,p,H,M).then((function(e){return a?a(e,H,"Routes"):e})))}if(D.push(m(p,B,n,M).then((function(e){return a?a(e,H,"Routes"):e}))),R||c.includes("History")){var te=d(q),ie=["currentPosition","selectFromMap","futureRoute","favouritePlace","stop","station","ownLocations","back"];n&&("route-CITYBIKE"!==n&&(ie.push("bikeRentalStation"),ie.push("bikestation")),ie.push.apply(ie,V(qe.filter((function(e){return!(e===n)}))))),ie.push.apply(ie,Ne),D.push(me(te,p,ie).then((function(e){return a?a(e,H,"Routes"):e})))}}if(E||e.includes("BikeRentalStations")){if(c.includes("Favourite")){var re=h(q);D.push(f(re,p))}if(R||c.includes("Datasource")){var Me={size:t};D.push(Oe(p,Me,x,I,C.join(","),T,g,["bikestation"]).then((function(e){return a?a(e,H,"BikeRentalStations"):e})))}}Promise.all(D).then(_.default).then(be).then((function(e){P.results=e})).catch((function(e){P.error=e})).then((function(){r(U({},P,{results:se(W,P.results,p)}))}))}),300,{leading:!0});function We(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Te(e,c){return e(c={exports:{}},c.exports),c.exports}var Xe,Be=Te((function(e,c){e.exports=function(){var c,n;function o(){return c.apply(null,arguments)}function a(e){c=e}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,c){return Object.prototype.hasOwnProperty.call(e,c)}function M(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var c;for(c in e)if(r(e,c))return!1;return!0}function s(e){return void 0===e}function p(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,c){var n,o=[];for(n=0;n<e.length;++n)o.push(c(e[n],n));return o}function d(e,c){for(var n in c)r(c,n)&&(e[n]=c[n]);return r(c,"toString")&&(e.toString=c.toString),r(c,"valueOf")&&(e.valueOf=c.valueOf),e}function b(e,c,n,o){return Vn(e,c,n,o,!0).utc()}function A(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function z(e){return null==e._pf&&(e._pf=A()),e._pf}function f(e){if(null==e._isValid){var c=z(e),o=n.call(c.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&c.overflow<0&&!c.empty&&!c.invalidEra&&!c.invalidMonth&&!c.invalidWeekday&&!c.weekdayMismatch&&!c.nullInput&&!c.invalidFormat&&!c.userInvalidated&&(!c.meridiem||c.meridiem&&o);if(e._strict&&(a=a&&0===c.charsLeftOver&&0===c.unusedTokens.length&&void 0===c.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function h(e){var c=b(NaN);return null!=e?d(z(c),e):z(c).userInvalidated=!0,c}n=Array.prototype.some?Array.prototype.some:function(e){var c,n=Object(this),o=n.length>>>0;for(c=0;c<o;c++)if(c in n&&e.call(this,n[c],c,n))return!0;return!1};var O=o.momentProperties=[],L=!1;function m(e,c){var n,o,a;if(s(c._isAMomentObject)||(e._isAMomentObject=c._isAMomentObject),s(c._i)||(e._i=c._i),s(c._f)||(e._f=c._f),s(c._l)||(e._l=c._l),s(c._strict)||(e._strict=c._strict),s(c._tzm)||(e._tzm=c._tzm),s(c._isUTC)||(e._isUTC=c._isUTC),s(c._offset)||(e._offset=c._offset),s(c._pf)||(e._pf=z(c)),s(c._locale)||(e._locale=c._locale),O.length>0)for(n=0;n<O.length;n++)s(a=c[o=O[n]])||(e[o]=a);return e}function q(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===L&&(L=!0,o.updateOffset(this),L=!1)}function N(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function g(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,c){var n=!0;return d((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var a,t,i,M=[];for(t=0;t<arguments.length;t++){if(a="","object"==typeof arguments[t]){for(i in a+="\n["+t+"] ",arguments[0])r(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[t];M.push(a)}g(e+"\nArguments: "+Array.prototype.slice.call(M).join("")+"\n"+(new Error).stack),n=!1}return c.apply(this,arguments)}),c)}var T,X={};function B(e,c){null!=o.deprecationHandler&&o.deprecationHandler(e,c),X[e]||(g(c),X[e]=!0)}function _(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function y(e){var c,n;for(n in e)r(e,n)&&(_(c=e[n])?this[n]=c:this["_"+n]=c);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(e,c){var n,o=d({},e);for(n in c)r(c,n)&&(i(e[n])&&i(c[n])?(o[n]={},d(o[n],e[n]),d(o[n],c[n])):null!=c[n]?o[n]=c[n]:delete o[n]);for(n in e)r(e,n)&&!r(c,n)&&i(e[n])&&(o[n]=d({},o[n]));return o}function v(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var c,n=[];for(c in e)r(e,c)&&n.push(c);return n};var k={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C(e,c,n){var o=this._calendar[e]||this._calendar.sameElse;return _(o)?o.call(c,n):o}function E(e,c,n){var o=""+Math.abs(e),a=c-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,w=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},P={};function x(e,c,n,o){var a=o;"string"==typeof o&&(a=function(){return this[o]()}),e&&(P[e]=a),c&&(P[c[0]]=function(){return E(a.apply(this,arguments),c[1],c[2])}),n&&(P[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function I(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var c,n,o=e.match(R);for(c=0,n=o.length;c<n;c++)P[o[c]]?o[c]=P[o[c]]:o[c]=I(o[c]);return function(c){var a,t="";for(a=0;a<n;a++)t+=_(o[a])?o[a].call(c,e):o[a];return t}}function Y(e,c){return e.isValid()?(c=F(c,e.localeData()),D[c]=D[c]||H(c),D[c](e)):e.localeData().invalidDate()}function F(e,c){var n=5;function o(e){return c.longDateFormat(e)||e}for(w.lastIndex=0;n>=0&&w.test(e);)e=e.replace(w,o),w.lastIndex=0,n-=1;return e}var U={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function j(e){var c=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return c||!n?c:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function V(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $(e,c,n,o){var a=this._relativeTime[n];return _(a)?a(e,c,n,o):a.replace(/%d/i,e)}function ee(e,c){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(c):n.replace(/%s/i,c)}var ce={};function ne(e,c){var n=e.toLowerCase();ce[n]=ce[n+"s"]=ce[c]=e}function oe(e){return"string"==typeof e?ce[e]||ce[e.toLowerCase()]:void 0}function ae(e){var c,n,o={};for(n in e)r(e,n)&&(c=oe(n))&&(o[c]=e[n]);return o}var te={};function ie(e,c){te[e]=c}function re(e){var c,n=[];for(c in e)r(e,c)&&n.push({unit:c,priority:te[c]});return n.sort((function(e,c){return e.priority-c.priority})),n}function Me(e){return e%4==0&&e%100!=0||e%400==0}function se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var c=+e,n=0;return 0!==c&&isFinite(c)&&(n=se(c)),n}function ue(e,c){return function(n){return null!=n?(de(this,e,n),o.updateOffset(this,c),this):le(this,e)}}function le(e,c){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+c]():NaN}function de(e,c,n){e.isValid()&&!isNaN(n)&&("FullYear"===c&&Me(e.year())&&1===e.month()&&29===e.date()?(n=pe(n),e._d["set"+(e._isUTC?"UTC":"")+c](n,e.month(),ec(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+c](n))}function be(e){return _(this[e=oe(e)])?this[e]():this}function Ae(e,c){if("object"==typeof e){var n,o=re(e=ae(e));for(n=0;n<o.length;n++)this[o[n].unit](e[o[n].unit])}else if(_(this[e=oe(e)]))return this[e](c);return this}var ze,fe=/\d/,he=/\d\d/,Oe=/\d{3}/,Le=/\d{4}/,me=/[+-]?\d{6}/,qe=/\d\d?/,Ne=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,Te=/\d{1,3}/,Xe=/\d{1,4}/,Be=/[+-]?\d{1,6}/,_e=/\d+/,ye=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,ve=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[+-]?\d+(\.\d{1,3})?/,Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ee(e,c,n){ze[e]=_(c)?c:function(e,o){return e&&n?n:c}}function Re(e,c){return r(ze,e)?ze[e](c._strict,c._locale):new RegExp(we(e))}function we(e){return De(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,c,n,o,a){return c||n||o||a})))}function De(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ze={};var Pe={};function xe(e,c){var n,o=c;for("string"==typeof e&&(e=[e]),p(c)&&(o=function(e,n){n[c]=pe(e)}),n=0;n<e.length;n++)Pe[e[n]]=o}function Ie(e,c){xe(e,(function(e,n,o,a){o._w=o._w||{},c(e,o._w,o,a)}))}function He(e,c,n){null!=c&&r(Pe,e)&&Pe[e](c,n._a,n,e)}var Ye,Fe=0,Ue=1,je=2,Ge=3,Ve=4,Ke=5,Qe=6,Je=7,Ze=8;function $e(e,c){return(e%c+c)%c}function ec(e,c){if(isNaN(e)||isNaN(c))return NaN;var n=$e(c,12);return e+=(c-n)/12,1===n?Me(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var c;for(c=0;c<this.length;++c)if(this[c]===e)return c;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),x("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ie("month",8),Ee("M",qe),Ee("MM",qe,he),Ee("MMM",(function(e,c){return c.monthsShortRegex(e)})),Ee("MMMM",(function(e,c){return c.monthsRegex(e)})),xe(["M","MM"],(function(e,c){c[Ue]=pe(e)-1})),xe(["MMM","MMMM"],(function(e,c,n,o){var a=n._locale.monthsParse(e,o,n._strict);null!=a?c[Ue]=a:z(n).invalidMonth=e}));var cc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nc="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),oc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ac=Ce,tc=Ce;function ic(e,c){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||oc).test(c)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone}function rc(e,c){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[oc.test(c)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Mc(e,c,n){var o,a,t,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)t=b([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(t,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(t,"").toLocaleLowerCase();return n?"MMM"===c?-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:"MMM"===c?-1!==(a=Ye.call(this._shortMonthsParse,i))||-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))||-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null}function sc(e,c,n){var o,a,t;if(this._monthsParseExact)return Mc.call(this,e,c,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=b([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(t="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(t.replace(".",""),"i")),n&&"MMMM"===c&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===c&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function pc(e,c){var n;if(!e.isValid())return e;if("string"==typeof c)if(/^\d+$/.test(c))c=pe(c);else if(!p(c=e.localeData().monthsParse(c)))return e;return n=Math.min(e.date(),ec(e.year(),c)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](c,n),e}function uc(e){return null!=e?(pc(this,e),o.updateOffset(this,!0),this):le(this,"Month")}function lc(){return ec(this.year(),this.month())}function dc(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ac.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=ac),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bc(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ac.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=tc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ac(){function e(e,c){return c.length-e.length}var c,n,o=[],a=[],t=[];for(c=0;c<12;c++)n=b([2e3,c]),o.push(this.monthsShort(n,"")),a.push(this.months(n,"")),t.push(this.months(n,"")),t.push(this.monthsShort(n,""));for(o.sort(e),a.sort(e),t.sort(e),c=0;c<12;c++)o[c]=De(o[c]),a[c]=De(a[c]);for(c=0;c<24;c++)t[c]=De(t[c]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function zc(e){return Me(e)?366:365}x("Y",0,0,(function(){var e=this.year();return e<=9999?E(e,4):"+"+e})),x(0,["YY",2],0,(function(){return this.year()%100})),x(0,["YYYY",4],0,"year"),x(0,["YYYYY",5],0,"year"),x(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ie("year",1),Ee("Y",ye),Ee("YY",qe,he),Ee("YYYY",Xe,Le),Ee("YYYYY",Be,me),Ee("YYYYYY",Be,me),xe(["YYYYY","YYYYYY"],Fe),xe("YYYY",(function(e,c){c[Fe]=2===e.length?o.parseTwoDigitYear(e):pe(e)})),xe("YY",(function(e,c){c[Fe]=o.parseTwoDigitYear(e)})),xe("Y",(function(e,c){c[Fe]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var fc=ue("FullYear",!0);function hc(){return Me(this.year())}function Oc(e,c,n,o,a,t,i){var r;return e<100&&e>=0?(r=new Date(e+400,c,n,o,a,t,i),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,c,n,o,a,t,i),r}function Lc(e){var c,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,c=new Date(Date.UTC.apply(null,n)),isFinite(c.getUTCFullYear())&&c.setUTCFullYear(e)):c=new Date(Date.UTC.apply(null,arguments)),c}function mc(e,c,n){var o=7+c-n;return-(7+Lc(e,0,o).getUTCDay()-c)%7+o-1}function qc(e,c,n,o,a){var t,i,r=1+7*(c-1)+(7+n-o)%7+mc(e,o,a);return r<=0?i=zc(t=e-1)+r:r>zc(e)?(t=e+1,i=r-zc(e)):(t=e,i=r),{year:t,dayOfYear:i}}function Nc(e,c,n){var o,a,t=mc(e.year(),c,n),i=Math.floor((e.dayOfYear()-t-1)/7)+1;return i<1?o=i+gc(a=e.year()-1,c,n):i>gc(e.year(),c,n)?(o=i-gc(e.year(),c,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function gc(e,c,n){var o=mc(e,c,n),a=mc(e+1,c,n);return(zc(e)-o+a)/7}function Wc(e){return Nc(e,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ie("week",5),ie("isoWeek",5),Ee("w",qe),Ee("ww",qe,he),Ee("W",qe),Ee("WW",qe,he),Ie(["w","ww","W","WW"],(function(e,c,n,o){c[o.substr(0,1)]=pe(e)}));var Tc={dow:0,doy:6};function Xc(){return this._week.dow}function Bc(){return this._week.doy}function _c(e){var c=this.localeData().week(this);return null==e?c:this.add(7*(e-c),"d")}function yc(e){var c=Nc(this,1,4).week;return null==e?c:this.add(7*(e-c),"d")}function Sc(e,c){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=c.weekdaysParse(e))?e:null:parseInt(e,10)}function vc(e,c){return"string"==typeof e?c.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kc(e,c){return e.slice(c,7).concat(e.slice(0,c))}x("d",0,"do","day"),x("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),x("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),x("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ie("day",11),ie("weekday",11),ie("isoWeekday",11),Ee("d",qe),Ee("e",qe),Ee("E",qe),Ee("dd",(function(e,c){return c.weekdaysMinRegex(e)})),Ee("ddd",(function(e,c){return c.weekdaysShortRegex(e)})),Ee("dddd",(function(e,c){return c.weekdaysRegex(e)})),Ie(["dd","ddd","dddd"],(function(e,c,n,o){var a=n._locale.weekdaysParse(e,o,n._strict);null!=a?c.d=a:z(n).invalidWeekday=e})),Ie(["d","e","E"],(function(e,c,n,o){c[o]=pe(e)}));var Cc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ec="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wc=Ce,Dc=Ce,Pc=Ce;function xc(e,c){var n=t(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(c)?"format":"standalone"];return!0===e?kc(n,this._week.dow):e?n[e.day()]:n}function Ic(e){return!0===e?kc(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Hc(e){return!0===e?kc(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yc(e,c,n){var o,a,t,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)t=b([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(t,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(t,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(t,"").toLocaleLowerCase();return n?"dddd"===c?-1!==(a=Ye.call(this._weekdaysParse,i))?a:null:"ddd"===c?-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"dddd"===c?-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._shortWeekdaysParse,i))||-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"ddd"===c?-1!==(a=Ye.call(this._shortWeekdaysParse,i))||-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))||-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null}function Fc(e,c,n){var o,a,t;if(this._weekdaysParseExact)return Yc.call(this,e,c,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=b([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(t="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(t.replace(".",""),"i")),n&&"dddd"===c&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===c&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===c&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function Uc(e){if(!this.isValid())return null!=e?this:NaN;var c=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Sc(e,this.localeData()),this.add(e-c,"d")):c}function jc(e){if(!this.isValid())return null!=e?this:NaN;var c=(this.day()+7-this.localeData()._week.dow)%7;return null==e?c:this.add(e-c,"d")}function Gc(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var c=vc(e,this.localeData());return this.day(this.day()%7?c:c-7)}return this.day()||7}function Vc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=wc),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dc),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pc),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jc(){function e(e,c){return c.length-e.length}var c,n,o,a,t,i=[],r=[],M=[],s=[];for(c=0;c<7;c++)n=b([2e3,1]).day(c),o=De(this.weekdaysMin(n,"")),a=De(this.weekdaysShort(n,"")),t=De(this.weekdays(n,"")),i.push(o),r.push(a),M.push(t),s.push(o),s.push(a),s.push(t);i.sort(e),r.sort(e),M.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Zc(){return this.hours()%12||12}function $c(){return this.hours()||24}function en(e,c){x(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),c)}))}function cn(e,c){return c._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Zc),x("k",["kk",2],0,$c),x("hmm",0,0,(function(){return""+Zc.apply(this)+E(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zc.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),en("a",!0),en("A",!1),ne("hour","h"),ie("hour",13),Ee("a",cn),Ee("A",cn),Ee("H",qe),Ee("h",qe),Ee("k",qe),Ee("HH",qe,he),Ee("hh",qe,he),Ee("kk",qe,he),Ee("hmm",Ne),Ee("hmmss",ge),Ee("Hmm",Ne),Ee("Hmmss",ge),xe(["H","HH"],Ge),xe(["k","kk"],(function(e,c,n){var o=pe(e);c[Ge]=24===o?0:o})),xe(["a","A"],(function(e,c,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),xe(["h","hh"],(function(e,c,n){c[Ge]=pe(e),z(n).bigHour=!0})),xe("hmm",(function(e,c,n){var o=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o)),z(n).bigHour=!0})),xe("hmmss",(function(e,c,n){var o=e.length-4,a=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o,2)),c[Ke]=pe(e.substr(a)),z(n).bigHour=!0})),xe("Hmm",(function(e,c,n){var o=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o))})),xe("Hmmss",(function(e,c,n){var o=e.length-4,a=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o,2)),c[Ke]=pe(e.substr(a))}));var on=/[ap]\.?m?\.?/i,an=ue("Hours",!0);function tn(e,c,n){return e>11?n?"pm":"PM":n?"am":"AM"}var rn,Mn={calendar:k,longDateFormat:U,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:cc,monthsShort:nc,week:Tc,weekdays:Cc,weekdaysMin:Rc,weekdaysShort:Ec,meridiemParse:on},sn={},pn={};function un(e,c){var n,o=Math.min(e.length,c.length);for(n=0;n<o;n+=1)if(e[n]!==c[n])return n;return o}function ln(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var c,n,o,a,t=0;t<e.length;){for(c=(a=ln(e[t]).split("-")).length,n=(n=ln(e[t+1]))?n.split("-"):null;c>0;){if(o=bn(a.slice(0,c).join("-")))return o;if(n&&n.length>=c&&un(a,n)>=c-1)break;c--}t++}return rn}function bn(c){var n=null;if(void 0===sn[c]&&e&&e.exports)try{n=rn._abbr,We(),An(n)}catch(e){sn[c]=null}return sn[c]}function An(e,c){var n;return e&&((n=s(c)?hn(e):zn(e,c))?rn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rn._abbr}function zn(e,c){if(null!==c){var n,o=Mn;if(c.abbr=e,null!=sn[e])B("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=sn[e]._config;else if(null!=c.parentLocale)if(null!=sn[c.parentLocale])o=sn[c.parentLocale]._config;else{if(null==(n=bn(c.parentLocale)))return pn[c.parentLocale]||(pn[c.parentLocale]=[]),pn[c.parentLocale].push({name:e,config:c}),null;o=n._config}return sn[e]=new v(S(o,c)),pn[e]&&pn[e].forEach((function(e){zn(e.name,e.config)})),An(e),sn[e]}return delete sn[e],null}function fn(e,c){if(null!=c){var n,o,a=Mn;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(S(sn[e]._config,c)):(null!=(o=bn(e))&&(a=o._config),c=S(a,c),null==o&&(c.abbr=e),(n=new v(c)).parentLocale=sn[e],sn[e]=n),An(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===An()&&An(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function hn(e){var c;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rn;if(!t(e)){if(c=bn(e))return c;e=[e]}return dn(e)}function On(){return T(sn)}function Ln(e){var c,n=e._a;return n&&-2===z(e).overflow&&(c=n[Ue]<0||n[Ue]>11?Ue:n[je]<1||n[je]>ec(n[Fe],n[Ue])?je:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[Ve]||0!==n[Ke]||0!==n[Qe])?Ge:n[Ve]<0||n[Ve]>59?Ve:n[Ke]<0||n[Ke]>59?Ke:n[Qe]<0||n[Qe]>999?Qe:-1,z(e)._overflowDayOfYear&&(c<Fe||c>je)&&(c=je),z(e)._overflowWeeks&&-1===c&&(c=Je),z(e)._overflowWeekday&&-1===c&&(c=Ze),z(e).overflow=c),e}var mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nn=/Z|[+-]\d\d(?::?\d\d)?/,gn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Wn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tn=/^\/?Date\((-?\d+)/i,Xn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Bn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _n(e){var c,n,o,a,t,i,r=e._i,M=mn.exec(r)||qn.exec(r);if(M){for(z(e).iso=!0,c=0,n=gn.length;c<n;c++)if(gn[c][1].exec(M[1])){a=gn[c][0],o=!1!==gn[c][2];break}if(null==a)return void(e._isValid=!1);if(M[3]){for(c=0,n=Wn.length;c<n;c++)if(Wn[c][1].exec(M[3])){t=(M[2]||" ")+Wn[c][0];break}if(null==t)return void(e._isValid=!1)}if(!o&&null!=t)return void(e._isValid=!1);if(M[4]){if(!Nn.exec(M[4]))return void(e._isValid=!1);i="Z"}e._f=a+(t||"")+(i||""),In(e)}else e._isValid=!1}function yn(e,c,n,o,a,t){var i=[Sn(e),nc.indexOf(c),parseInt(n,10),parseInt(o,10),parseInt(a,10)];return t&&i.push(parseInt(t,10)),i}function Sn(e){var c=parseInt(e,10);return c<=49?2e3+c:c<=999?1900+c:c}function vn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kn(e,c,n){return!e||Ec.indexOf(e)===new Date(c[0],c[1],c[2]).getDay()||(z(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Cn(e,c,n){if(e)return Bn[e];if(c)return 0;var o=parseInt(n,10),a=o%100;return(o-a)/100*60+a}function En(e){var c,n=Xn.exec(vn(e._i));if(n){if(c=yn(n[4],n[3],n[2],n[5],n[6],n[7]),!kn(n[1],c,e))return;e._a=c,e._tzm=Cn(n[8],n[9],n[10]),e._d=Lc.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),z(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var c=Tn.exec(e._i);null===c?(_n(e),!1===e._isValid&&(delete e._isValid,En(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+c[1])}function wn(e,c,n){return null!=e?e:null!=c?c:n}function Dn(e){var c=new Date(o.now());return e._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}function Pn(e){var c,n,o,a,t,i=[];if(!e._d){for(o=Dn(e),e._w&&null==e._a[je]&&null==e._a[Ue]&&xn(e),null!=e._dayOfYear&&(t=wn(e._a[Fe],o[Fe]),(e._dayOfYear>zc(t)||0===e._dayOfYear)&&(z(e)._overflowDayOfYear=!0),n=Lc(t,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[je]=n.getUTCDate()),c=0;c<3&&null==e._a[c];++c)e._a[c]=i[c]=o[c];for(;c<7;c++)e._a[c]=i[c]=null==e._a[c]?2===c?1:0:e._a[c];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Ke]&&0===e._a[Qe]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?Lc:Oc).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(z(e).weekdayMismatch=!0)}}function xn(e){var c,n,o,a,t,i,r,M,s;null!=(c=e._w).GG||null!=c.W||null!=c.E?(t=1,i=4,n=wn(c.GG,e._a[Fe],Nc(Kn(),1,4).year),o=wn(c.W,1),((a=wn(c.E,1))<1||a>7)&&(M=!0)):(t=e._locale._week.dow,i=e._locale._week.doy,s=Nc(Kn(),t,i),n=wn(c.gg,e._a[Fe],s.year),o=wn(c.w,s.week),null!=c.d?((a=c.d)<0||a>6)&&(M=!0):null!=c.e?(a=c.e+t,(c.e<0||c.e>6)&&(M=!0)):a=t),o<1||o>gc(n,t,i)?z(e)._overflowWeeks=!0:null!=M?z(e)._overflowWeekday=!0:(r=qc(n,o,a,t,i),e._a[Fe]=r.year,e._dayOfYear=r.dayOfYear)}function In(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],z(e).empty=!0;var c,n,a,t,i,r,M=""+e._i,s=M.length,p=0;for(a=F(e._f,e._locale).match(R)||[],c=0;c<a.length;c++)t=a[c],(n=(M.match(Re(t,e))||[])[0])&&((i=M.substr(0,M.indexOf(n))).length>0&&z(e).unusedInput.push(i),M=M.slice(M.indexOf(n)+n.length),p+=n.length),P[t]?(n?z(e).empty=!1:z(e).unusedTokens.push(t),He(t,n,e)):e._strict&&!n&&z(e).unusedTokens.push(t);z(e).charsLeftOver=s-p,M.length>0&&z(e).unusedInput.push(M),e._a[Ge]<=12&&!0===z(e).bigHour&&e._a[Ge]>0&&(z(e).bigHour=void 0),z(e).parsedDateParts=e._a.slice(0),z(e).meridiem=e._meridiem,e._a[Ge]=Hn(e._locale,e._a[Ge],e._meridiem),null!==(r=z(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(r,e._a[Fe])),Pn(e),Ln(e)}else En(e);else _n(e)}function Hn(e,c,n){var o;return null==n?c:null!=e.meridiemHour?e.meridiemHour(c,n):null!=e.isPM?((o=e.isPM(n))&&c<12&&(c+=12),o||12!==c||(c=0),c):c}function Yn(e){var c,n,o,a,t,i,r=!1;if(0===e._f.length)return z(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)t=0,i=!1,c=m({},e),null!=e._useUTC&&(c._useUTC=e._useUTC),c._f=e._f[a],In(c),f(c)&&(i=!0),t+=z(c).charsLeftOver,t+=10*z(c).unusedTokens.length,z(c).score=t,r?t<o&&(o=t,n=c):(null==o||t<o||i)&&(o=t,n=c,i&&(r=!0));d(e,n||c)}function Fn(e){if(!e._d){var c=ae(e._i),n=void 0===c.day?c.date:c.day;e._a=l([c.year,c.month,n,c.hour,c.minute,c.second,c.millisecond],(function(e){return e&&parseInt(e,10)})),Pn(e)}}function Un(e){var c=new q(Ln(jn(e)));return c._nextDay&&(c.add(1,"d"),c._nextDay=void 0),c}function jn(e){var c=e._i,n=e._f;return e._locale=e._locale||hn(e._l),null===c||void 0===n&&""===c?h({nullInput:!0}):("string"==typeof c&&(e._i=c=e._locale.preparse(c)),N(c)?new q(Ln(c)):(u(c)?e._d=c:t(n)?Yn(e):n?In(e):Gn(e),f(e)||(e._d=null),e))}function Gn(e){var c=e._i;s(c)?e._d=new Date(o.now()):u(c)?e._d=new Date(c.valueOf()):"string"==typeof c?Rn(e):t(c)?(e._a=l(c.slice(0),(function(e){return parseInt(e,10)})),Pn(e)):i(c)?Fn(e):p(c)?e._d=new Date(c):o.createFromInputFallback(e)}function Vn(e,c,n,o,a){var r={};return!0!==c&&!1!==c||(o=c,c=void 0),!0!==n&&!1!==n||(o=n,n=void 0),(i(e)&&M(e)||t(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=c,r._strict=o,Un(r)}function Kn(e,c,n,o){return Vn(e,c,n,o,!1)}o.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Qn=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()})),Jn=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()}));function Zn(e,c){var n,o;if(1===c.length&&t(c[0])&&(c=c[0]),!c.length)return Kn();for(n=c[0],o=1;o<c.length;++o)c[o].isValid()&&!c[o][e](n)||(n=c[o]);return n}function $n(){return Zn("isBefore",[].slice.call(arguments,0))}function eo(){return Zn("isAfter",[].slice.call(arguments,0))}var co=function(){return Date.now?Date.now():+new Date},no=["year","quarter","month","week","day","hour","minute","second","millisecond"];function oo(e){var c,n,o=!1;for(c in e)if(r(e,c)&&(-1===Ye.call(no,c)||null!=e[c]&&isNaN(e[c])))return!1;for(n=0;n<no.length;++n)if(e[no[n]]){if(o)return!1;parseFloat(e[no[n]])!==pe(e[no[n]])&&(o=!0)}return!0}function ao(){return this._isValid}function to(){return _o(NaN)}function io(e){var c=ae(e),n=c.year||0,o=c.quarter||0,a=c.month||0,t=c.week||c.isoWeek||0,i=c.day||0,r=c.hour||0,M=c.minute||0,s=c.second||0,p=c.millisecond||0;this._isValid=oo(c),this._milliseconds=+p+1e3*s+6e4*M+1e3*r*60*60,this._days=+i+7*t,this._months=+a+3*o+12*n,this._data={},this._locale=hn(),this._bubble()}function ro(e){return e instanceof io}function Mo(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function so(e,c,n){var o,a=Math.min(e.length,c.length),t=Math.abs(e.length-c.length),i=0;for(o=0;o<a;o++)(n&&e[o]!==c[o]||!n&&pe(e[o])!==pe(c[o]))&&i++;return i+t}function po(e,c){x(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+E(~~(e/60),2)+c+E(~~e%60,2)}))}po("Z",":"),po("ZZ",""),Ee("Z",ve),Ee("ZZ",ve),xe(["Z","ZZ"],(function(e,c,n){n._useUTC=!0,n._tzm=lo(ve,e)}));var uo=/([\+\-]|\d\d)/gi;function lo(e,c){var n,o,a=(c||"").match(e);return null===a?null:0===(o=60*(n=((a[a.length-1]||[])+"").match(uo)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?o:-o}function bo(e,c){var n,a;return c._isUTC?(n=c.clone(),a=(N(e)||u(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),o.updateOffset(n,!1),n):Kn(e).local()}function Ao(e){return-Math.round(e._d.getTimezoneOffset())}function zo(e,c,n){var a,t=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=lo(ve,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&c&&(a=Ao(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),t!==e&&(!c||this._changeInProgress?Co(this,_o(e-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?t:Ao(this)}function fo(e,c){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,c),this):-this.utcOffset()}function ho(e){return this.utcOffset(0,e)}function Oo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ao(this),"m")),this}function Lo(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=lo(Se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function mo(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qo(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function No(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,c={};return m(c,this),(c=jn(c))._a?(e=c._isUTC?b(c._a):Kn(c._a),this._isDSTShifted=this.isValid()&&so(c._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function go(){return!!this.isValid()&&!this._isUTC}function Wo(){return!!this.isValid()&&this._isUTC}function To(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Xo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _o(e,c){var n,o,a,t=e,i=null;return ro(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(t={},c?t[c]=+e:t.milliseconds=+e):(i=Xo.exec(e))?(n="-"===i[1]?-1:1,t={y:0,d:pe(i[je])*n,h:pe(i[Ge])*n,m:pe(i[Ve])*n,s:pe(i[Ke])*n,ms:pe(Mo(1e3*i[Qe]))*n}):(i=Bo.exec(e))?(n="-"===i[1]?-1:1,t={y:yo(i[2],n),M:yo(i[3],n),w:yo(i[4],n),d:yo(i[5],n),h:yo(i[6],n),m:yo(i[7],n),s:yo(i[8],n)}):null==t?t={}:"object"==typeof t&&("from"in t||"to"in t)&&(a=vo(Kn(t.from),Kn(t.to)),(t={}).ms=a.milliseconds,t.M=a.months),o=new io(t),ro(e)&&r(e,"_locale")&&(o._locale=e._locale),ro(e)&&r(e,"_isValid")&&(o._isValid=e._isValid),o}function yo(e,c){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*c}function So(e,c){var n={};return n.months=c.month()-e.month()+12*(c.year()-e.year()),e.clone().add(n.months,"M").isAfter(c)&&--n.months,n.milliseconds=+c-+e.clone().add(n.months,"M"),n}function vo(e,c){var n;return e.isValid()&&c.isValid()?(c=bo(c,e),e.isBefore(c)?n=So(e,c):((n=So(c,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ko(e,c){return function(n,o){var a;return null===o||isNaN(+o)||(B(c,"moment()."+c+"(period, number) is deprecated. Please use moment()."+c+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=o,o=a),Co(this,_o(n,o),e),this}}function Co(e,c,n,a){var t=c._milliseconds,i=Mo(c._days),r=Mo(c._months);e.isValid()&&(a=null==a||a,r&&pc(e,le(e,"Month")+r*n),i&&de(e,"Date",le(e,"Date")+i*n),t&&e._d.setTime(e._d.valueOf()+t*n),a&&o.updateOffset(e,i||r))}_o.fn=io.prototype,_o.invalid=to;var Eo=ko(1,"add"),Ro=ko(-1,"subtract");function wo(e){return"string"==typeof e||e instanceof String}function Do(e){return N(e)||u(e)||wo(e)||p(e)||xo(e)||Po(e)||null==e}function Po(e){var c,n,o=i(e)&&!M(e),a=!1,t=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(c=0;c<t.length;c+=1)n=t[c],a=a||r(e,n);return o&&a}function xo(e){var c=t(e),n=!1;return c&&(n=0===e.filter((function(c){return!p(c)&&wo(e)})).length),c&&n}function Io(e){var c,n,o=i(e)&&!M(e),a=!1,t=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(c=0;c<t.length;c+=1)n=t[c],a=a||r(e,n);return o&&a}function Ho(e,c){var n=e.diff(c,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yo(e,c){1===arguments.length&&(arguments[0]?Do(arguments[0])?(e=arguments[0],c=void 0):Io(arguments[0])&&(c=arguments[0],e=void 0):(e=void 0,c=void 0));var n=e||Kn(),a=bo(n,this).startOf("day"),t=o.calendarFormat(this,a)||"sameElse",i=c&&(_(c[t])?c[t].call(this,n):c[t]);return this.format(i||this.localeData().calendar(t,this,Kn(n)))}function Fo(){return new q(this)}function Uo(e,c){var n=N(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(c).valueOf())}function jo(e,c){var n=N(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(c).valueOf()<n.valueOf())}function Go(e,c,n,o){var a=N(e)?e:Kn(e),t=N(c)?c:Kn(c);return!!(this.isValid()&&a.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Vo(e,c){var n,o=N(e)?e:Kn(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(c).valueOf()<=n&&n<=this.clone().endOf(c).valueOf()))}function Ko(e,c){return this.isSame(e,c)||this.isAfter(e,c)}function Qo(e,c){return this.isSame(e,c)||this.isBefore(e,c)}function Jo(e,c,n){var o,a,t;if(!this.isValid())return NaN;if(!(o=bo(e,this)).isValid())return NaN;switch(a=6e4*(o.utcOffset()-this.utcOffset()),c=oe(c)){case"year":t=Zo(this,o)/12;break;case"month":t=Zo(this,o);break;case"quarter":t=Zo(this,o)/3;break;case"second":t=(this-o)/1e3;break;case"minute":t=(this-o)/6e4;break;case"hour":t=(this-o)/36e5;break;case"day":t=(this-o-a)/864e5;break;case"week":t=(this-o-a)/6048e5;break;default:t=this-o}return n?t:se(t)}function Zo(e,c){if(e.date()<c.date())return-Zo(c,e);var n=12*(c.year()-e.year())+(c.month()-e.month()),o=e.clone().add(n,"months");return-(n+(c-o<0?(c-o)/(o-e.clone().add(n-1,"months")):(c-o)/(e.clone().add(n+1,"months")-o)))||0}function $o(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ea(e){if(!this.isValid())return null;var c=!0!==e,n=c?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,c?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?c?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,c?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ca(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,c,n,o,a="moment",t="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+a+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(e+c+n+o)}function na(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var c=Y(this,e);return this.localeData().postformat(c)}function oa(e,c){return this.isValid()&&(N(e)&&e.isValid()||Kn(e).isValid())?_o({to:this,from:e}).locale(this.locale()).humanize(!c):this.localeData().invalidDate()}function aa(e){return this.from(Kn(),e)}function ta(e,c){return this.isValid()&&(N(e)&&e.isValid()||Kn(e).isValid())?_o({from:this,to:e}).locale(this.locale()).humanize(!c):this.localeData().invalidDate()}function ia(e){return this.to(Kn(),e)}function ra(e){var c;return void 0===e?this._locale._abbr:(null!=(c=hn(e))&&(this._locale=c),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ma=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function sa(){return this._locale}var pa=1e3,ua=60*pa,la=60*ua,da=3506328*la;function ba(e,c){return(e%c+c)%c}function Aa(e,c,n){return e<100&&e>=0?new Date(e+400,c,n)-da:new Date(e,c,n).valueOf()}function za(e,c,n){return e<100&&e>=0?Date.UTC(e+400,c,n)-da:Date.UTC(e,c,n)}function fa(e){var c,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?za:Aa,e){case"year":c=n(this.year(),0,1);break;case"quarter":c=n(this.year(),this.month()-this.month()%3,1);break;case"month":c=n(this.year(),this.month(),1);break;case"week":c=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":c=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":c=n(this.year(),this.month(),this.date());break;case"hour":c=this._d.valueOf(),c-=ba(c+(this._isUTC?0:this.utcOffset()*ua),la);break;case"minute":c=this._d.valueOf(),c-=ba(c,ua);break;case"second":c=this._d.valueOf(),c-=ba(c,pa)}return this._d.setTime(c),o.updateOffset(this,!0),this}function ha(e){var c,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?za:Aa,e){case"year":c=n(this.year()+1,0,1)-1;break;case"quarter":c=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":c=n(this.year(),this.month()+1,1)-1;break;case"week":c=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":c=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":c=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":c=this._d.valueOf(),c+=la-ba(c+(this._isUTC?0:this.utcOffset()*ua),la)-1;break;case"minute":c=this._d.valueOf(),c+=ua-ba(c,ua)-1;break;case"second":c=this._d.valueOf(),c+=pa-ba(c,pa)-1}return this._d.setTime(c),o.updateOffset(this,!0),this}function Oa(){return this._d.valueOf()-6e4*(this._offset||0)}function La(){return Math.floor(this.valueOf()/1e3)}function ma(){return new Date(this.valueOf())}function qa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Na(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ga(){return this.isValid()?this.toISOString():null}function Wa(){return f(this)}function Ta(){return d({},z(this))}function Xa(){return z(this).overflow}function Ba(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _a(e,c){var n,a,t,i=this._eras||hn("en")._eras;for(n=0,a=i.length;n<a;++n)switch("string"==typeof i[n].since&&(t=o(i[n].since).startOf("day"),i[n].since=t.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":t=o(i[n].until).startOf("day").valueOf(),i[n].until=t.valueOf()}return i}function ya(e,c,n){var o,a,t,i,r,M=this.eras();for(e=e.toUpperCase(),o=0,a=M.length;o<a;++o)if(t=M[o].name.toUpperCase(),i=M[o].abbr.toUpperCase(),r=M[o].narrow.toUpperCase(),n)switch(c){case"N":case"NN":case"NNN":if(i===e)return M[o];break;case"NNNN":if(t===e)return M[o];break;case"NNNNN":if(r===e)return M[o]}else if([t,i,r].indexOf(e)>=0)return M[o]}function Sa(e,c){var n=e.since<=e.until?1:-1;return void 0===c?o(e.since).year():o(e.since).year()+(c-e.offset)*n}function va(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].name;if(o[e].until<=n&&n<=o[e].since)return o[e].name}return""}function ka(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].narrow;if(o[e].until<=n&&n<=o[e].since)return o[e].narrow}return""}function Ca(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].abbr;if(o[e].until<=n&&n<=o[e].since)return o[e].abbr}return""}function Ea(){var e,c,n,a,t=this.localeData().eras();for(e=0,c=t.length;e<c;++e)if(n=t[e].since<=t[e].until?1:-1,a=this.clone().startOf("day").valueOf(),t[e].since<=a&&a<=t[e].until||t[e].until<=a&&a<=t[e].since)return(this.year()-o(t[e].since).year())*n+t[e].offset;return this.year()}function Ra(e){return r(this,"_erasNameRegex")||Ya.call(this),e?this._erasNameRegex:this._erasRegex}function wa(e){return r(this,"_erasAbbrRegex")||Ya.call(this),e?this._erasAbbrRegex:this._erasRegex}function Da(e){return r(this,"_erasNarrowRegex")||Ya.call(this),e?this._erasNarrowRegex:this._erasRegex}function Pa(e,c){return c.erasAbbrRegex(e)}function xa(e,c){return c.erasNameRegex(e)}function Ia(e,c){return c.erasNarrowRegex(e)}function Ha(e,c){return c._eraYearOrdinalRegex||_e}function Ya(){var e,c,n=[],o=[],a=[],t=[],i=this.eras();for(e=0,c=i.length;e<c;++e)o.push(De(i[e].name)),n.push(De(i[e].abbr)),a.push(De(i[e].narrow)),t.push(De(i[e].name)),t.push(De(i[e].abbr)),t.push(De(i[e].narrow));this._erasRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Fa(e,c){x(0,[e,e.length],0,c)}function Ua(e){return Ja.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ja(e){return Ja.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ga(){return gc(this.year(),1,4)}function Va(){return gc(this.isoWeekYear(),1,4)}function Ka(){var e=this.localeData()._week;return gc(this.year(),e.dow,e.doy)}function Qa(){var e=this.localeData()._week;return gc(this.weekYear(),e.dow,e.doy)}function Ja(e,c,n,o,a){var t;return null==e?Nc(this,o,a).year:(c>(t=gc(e,o,a))&&(c=t),Za.call(this,e,c,n,o,a))}function Za(e,c,n,o,a){var t=qc(e,c,n,o,a),i=Lc(t.year,0,t.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function $a(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}x("N",0,0,"eraAbbr"),x("NN",0,0,"eraAbbr"),x("NNN",0,0,"eraAbbr"),x("NNNN",0,0,"eraName"),x("NNNNN",0,0,"eraNarrow"),x("y",["y",1],"yo","eraYear"),x("y",["yy",2],0,"eraYear"),x("y",["yyy",3],0,"eraYear"),x("y",["yyyy",4],0,"eraYear"),Ee("N",Pa),Ee("NN",Pa),Ee("NNN",Pa),Ee("NNNN",xa),Ee("NNNNN",Ia),xe(["N","NN","NNN","NNNN","NNNNN"],(function(e,c,n,o){var a=n._locale.erasParse(e,o,n._strict);a?z(n).era=a:z(n).invalidEra=e})),Ee("y",_e),Ee("yy",_e),Ee("yyy",_e),Ee("yyyy",_e),Ee("yo",Ha),xe(["y","yy","yyy","yyyy"],Fe),xe(["yo"],(function(e,c,n,o){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?c[Fe]=n._locale.eraYearOrdinalParse(e,a):c[Fe]=parseInt(e,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Fa("gggg","weekYear"),Fa("ggggg","weekYear"),Fa("GGGG","isoWeekYear"),Fa("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ie("weekYear",1),ie("isoWeekYear",1),Ee("G",ye),Ee("g",ye),Ee("GG",qe,he),Ee("gg",qe,he),Ee("GGGG",Xe,Le),Ee("gggg",Xe,Le),Ee("GGGGG",Be,me),Ee("ggggg",Be,me),Ie(["gggg","ggggg","GGGG","GGGGG"],(function(e,c,n,o){c[o.substr(0,2)]=pe(e)})),Ie(["gg","GG"],(function(e,c,n,a){c[a]=o.parseTwoDigitYear(e)})),x("Q",0,"Qo","quarter"),ne("quarter","Q"),ie("quarter",7),Ee("Q",fe),xe("Q",(function(e,c){c[Ue]=3*(pe(e)-1)})),x("D",["DD",2],"Do","date"),ne("date","D"),ie("date",9),Ee("D",qe),Ee("DD",qe,he),Ee("Do",(function(e,c){return e?c._dayOfMonthOrdinalParse||c._ordinalParse:c._dayOfMonthOrdinalParseLenient})),xe(["D","DD"],je),xe("Do",(function(e,c){c[je]=pe(e.match(qe)[0])}));var et=ue("Date",!0);function ct(e){var c=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?c:this.add(e-c,"d")}x("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ie("dayOfYear",4),Ee("DDD",Te),Ee("DDDD",Oe),xe(["DDD","DDDD"],(function(e,c,n){n._dayOfYear=pe(e)})),x("m",["mm",2],0,"minute"),ne("minute","m"),ie("minute",14),Ee("m",qe),Ee("mm",qe,he),xe(["m","mm"],Ve);var nt=ue("Minutes",!1);x("s",["ss",2],0,"second"),ne("second","s"),ie("second",15),Ee("s",qe),Ee("ss",qe,he),xe(["s","ss"],Ke);var ot,at,tt=ue("Seconds",!1);for(x("S",0,0,(function(){return~~(this.millisecond()/100)})),x(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),x(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),x(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),x(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),x(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),x(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ie("millisecond",16),Ee("S",Te,fe),Ee("SS",Te,he),Ee("SSS",Te,Oe),ot="SSSS";ot.length<=9;ot+="S")Ee(ot,_e);function it(e,c){c[Qe]=pe(1e3*("0."+e))}for(ot="S";ot.length<=9;ot+="S")xe(ot,it);function rt(){return this._isUTC?"UTC":""}function Mt(){return this._isUTC?"Coordinated Universal Time":""}at=ue("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var st=q.prototype;function pt(e){return Kn(1e3*e)}function ut(){return Kn.apply(null,arguments).parseZone()}function lt(e){return e}st.add=Eo,st.calendar=Yo,st.clone=Fo,st.diff=Jo,st.endOf=ha,st.format=na,st.from=oa,st.fromNow=aa,st.to=ta,st.toNow=ia,st.get=be,st.invalidAt=Xa,st.isAfter=Uo,st.isBefore=jo,st.isBetween=Go,st.isSame=Vo,st.isSameOrAfter=Ko,st.isSameOrBefore=Qo,st.isValid=Wa,st.lang=Ma,st.locale=ra,st.localeData=sa,st.max=Jn,st.min=Qn,st.parsingFlags=Ta,st.set=Ae,st.startOf=fa,st.subtract=Ro,st.toArray=qa,st.toObject=Na,st.toDate=ma,st.toISOString=ea,st.inspect=ca,"undefined"!=typeof Symbol&&null!=Symbol.for&&(st[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),st.toJSON=ga,st.toString=$o,st.unix=La,st.valueOf=Oa,st.creationData=Ba,st.eraName=va,st.eraNarrow=ka,st.eraAbbr=Ca,st.eraYear=Ea,st.year=fc,st.isLeapYear=hc,st.weekYear=Ua,st.isoWeekYear=ja,st.quarter=st.quarters=$a,st.month=uc,st.daysInMonth=lc,st.week=st.weeks=_c,st.isoWeek=st.isoWeeks=yc,st.weeksInYear=Ka,st.weeksInWeekYear=Qa,st.isoWeeksInYear=Ga,st.isoWeeksInISOWeekYear=Va,st.date=et,st.day=st.days=Uc,st.weekday=jc,st.isoWeekday=Gc,st.dayOfYear=ct,st.hour=st.hours=an,st.minute=st.minutes=nt,st.second=st.seconds=tt,st.millisecond=st.milliseconds=at,st.utcOffset=zo,st.utc=ho,st.local=Oo,st.parseZone=Lo,st.hasAlignedHourOffset=mo,st.isDST=qo,st.isLocal=go,st.isUtcOffset=Wo,st.isUtc=To,st.isUTC=To,st.zoneAbbr=rt,st.zoneName=Mt,st.dates=W("dates accessor is deprecated. Use date instead.",et),st.months=W("months accessor is deprecated. Use month instead",uc),st.years=W("years accessor is deprecated. Use year instead",fc),st.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fo),st.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",No);var dt=v.prototype;function bt(e,c,n,o){var a=hn(),t=b().set(o,c);return a[n](t,e)}function At(e,c,n){if(p(e)&&(c=e,e=void 0),e=e||"",null!=c)return bt(e,c,n,"month");var o,a=[];for(o=0;o<12;o++)a[o]=bt(e,o,n,"month");return a}function zt(e,c,n,o){"boolean"==typeof e?(p(c)&&(n=c,c=void 0),c=c||""):(n=c=e,e=!1,p(c)&&(n=c,c=void 0),c=c||"");var a,t=hn(),i=e?t._week.dow:0,r=[];if(null!=n)return bt(c,(n+i)%7,o,"day");for(a=0;a<7;a++)r[a]=bt(c,(a+i)%7,o,"day");return r}function ft(e,c){return At(e,c,"months")}function ht(e,c){return At(e,c,"monthsShort")}function Ot(e,c,n){return zt(e,c,n,"weekdays")}function Lt(e,c,n){return zt(e,c,n,"weekdaysShort")}function mt(e,c,n){return zt(e,c,n,"weekdaysMin")}dt.calendar=C,dt.longDateFormat=j,dt.invalidDate=V,dt.ordinal=J,dt.preparse=lt,dt.postformat=lt,dt.relativeTime=$,dt.pastFuture=ee,dt.set=y,dt.eras=_a,dt.erasParse=ya,dt.erasConvertYear=Sa,dt.erasAbbrRegex=wa,dt.erasNameRegex=Ra,dt.erasNarrowRegex=Da,dt.months=ic,dt.monthsShort=rc,dt.monthsParse=sc,dt.monthsRegex=bc,dt.monthsShortRegex=dc,dt.week=Wc,dt.firstDayOfYear=Bc,dt.firstDayOfWeek=Xc,dt.weekdays=xc,dt.weekdaysMin=Hc,dt.weekdaysShort=Ic,dt.weekdaysParse=Fc,dt.weekdaysRegex=Vc,dt.weekdaysShortRegex=Kc,dt.weekdaysMinRegex=Qc,dt.isPM=nn,dt.meridiem=tn,An("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var c=e%10;return e+(1===pe(e%100/10)?"th":1===c?"st":2===c?"nd":3===c?"rd":"th")}}),o.lang=W("moment.lang is deprecated. Use moment.locale instead.",An),o.langData=W("moment.langData is deprecated. Use moment.localeData instead.",hn);var qt=Math.abs;function Nt(){var e=this._data;return this._milliseconds=qt(this._milliseconds),this._days=qt(this._days),this._months=qt(this._months),e.milliseconds=qt(e.milliseconds),e.seconds=qt(e.seconds),e.minutes=qt(e.minutes),e.hours=qt(e.hours),e.months=qt(e.months),e.years=qt(e.years),this}function gt(e,c,n,o){var a=_o(c,n);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Wt(e,c){return gt(this,e,c,1)}function Tt(e,c){return gt(this,e,c,-1)}function Xt(e){return e<0?Math.floor(e):Math.ceil(e)}function Bt(){var e,c,n,o,a,t=this._milliseconds,i=this._days,r=this._months,M=this._data;return t>=0&&i>=0&&r>=0||t<=0&&i<=0&&r<=0||(t+=864e5*Xt(yt(r)+i),i=0,r=0),M.milliseconds=t%1e3,e=se(t/1e3),M.seconds=e%60,c=se(e/60),M.minutes=c%60,n=se(c/60),M.hours=n%24,i+=se(n/24),r+=a=se(_t(i)),i-=Xt(yt(a)),o=se(r/12),r%=12,M.days=i,M.months=r,M.years=o,this}function _t(e){return 4800*e/146097}function yt(e){return 146097*e/4800}function St(e){if(!this.isValid())return NaN;var c,n,o=this._milliseconds;if("month"===(e=oe(e))||"quarter"===e||"year"===e)switch(c=this._days+o/864e5,n=this._months+_t(c),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(c=this._days+Math.round(yt(this._months)),e){case"week":return c/7+o/6048e5;case"day":return c+o/864e5;case"hour":return 24*c+o/36e5;case"minute":return 1440*c+o/6e4;case"second":return 86400*c+o/1e3;case"millisecond":return Math.floor(864e5*c)+o;default:throw new Error("Unknown unit "+e)}}function vt(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function kt(e){return function(){return this.as(e)}}var Ct=kt("ms"),Et=kt("s"),Rt=kt("m"),wt=kt("h"),Dt=kt("d"),Pt=kt("w"),xt=kt("M"),It=kt("Q"),Ht=kt("y");function Yt(){return _o(this)}function Ft(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Ut(e){return function(){return this.isValid()?this._data[e]:NaN}}var jt=Ut("milliseconds"),Gt=Ut("seconds"),Vt=Ut("minutes"),Kt=Ut("hours"),Qt=Ut("days"),Jt=Ut("months"),Zt=Ut("years");function $t(){return se(this.days()/7)}var ei=Math.round,ci={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,c,n,o,a){return a.relativeTime(c||1,!!n,e,o)}function oi(e,c,n,o){var a=_o(e).abs(),t=ei(a.as("s")),i=ei(a.as("m")),r=ei(a.as("h")),M=ei(a.as("d")),s=ei(a.as("M")),p=ei(a.as("w")),u=ei(a.as("y")),l=t<=n.ss&&["s",t]||t<n.s&&["ss",t]||i<=1&&["m"]||i<n.m&&["mm",i]||r<=1&&["h"]||r<n.h&&["hh",r]||M<=1&&["d"]||M<n.d&&["dd",M];return null!=n.w&&(l=l||p<=1&&["w"]||p<n.w&&["ww",p]),(l=l||s<=1&&["M"]||s<n.M&&["MM",s]||u<=1&&["y"]||["yy",u])[2]=c,l[3]=+e>0,l[4]=o,ni.apply(null,l)}function ai(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ti(e,c){return void 0!==ci[e]&&(void 0===c?ci[e]:(ci[e]=c,"s"===e&&(ci.ss=c-1),!0))}function ii(e,c){if(!this.isValid())return this.localeData().invalidDate();var n,o,a=!1,t=ci;return"object"==typeof e&&(c=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof c&&(t=Object.assign({},ci,c),null!=c.s&&null==c.ss&&(t.ss=c.s-1)),o=oi(this,!a,t,n=this.localeData()),a&&(o=n.pastFuture(+this,o)),n.postformat(o)}var ri=Math.abs;function Mi(e){return(e>0)-(e<0)||+e}function si(){if(!this.isValid())return this.localeData().invalidDate();var e,c,n,o,a,t,i,r,M=ri(this._milliseconds)/1e3,s=ri(this._days),p=ri(this._months),u=this.asSeconds();return u?(e=se(M/60),c=se(e/60),M%=60,e%=60,n=se(p/12),p%=12,o=M?M.toFixed(3).replace(/\.?0+$/,""):"",a=u<0?"-":"",t=Mi(this._months)!==Mi(u)?"-":"",i=Mi(this._days)!==Mi(u)?"-":"",r=Mi(this._milliseconds)!==Mi(u)?"-":"",a+"P"+(n?t+n+"Y":"")+(p?t+p+"M":"")+(s?i+s+"D":"")+(c||e||M?"T":"")+(c?r+c+"H":"")+(e?r+e+"M":"")+(M?r+o+"S":"")):"P0D"}var pi=io.prototype;return pi.isValid=ao,pi.abs=Nt,pi.add=Wt,pi.subtract=Tt,pi.as=St,pi.asMilliseconds=Ct,pi.asSeconds=Et,pi.asMinutes=Rt,pi.asHours=wt,pi.asDays=Dt,pi.asWeeks=Pt,pi.asMonths=xt,pi.asQuarters=It,pi.asYears=Ht,pi.valueOf=vt,pi._bubble=Bt,pi.clone=Yt,pi.get=Ft,pi.milliseconds=jt,pi.seconds=Gt,pi.minutes=Vt,pi.hours=Kt,pi.days=Qt,pi.weeks=$t,pi.months=Jt,pi.years=Zt,pi.humanize=ii,pi.toISOString=si,pi.toString=si,pi.toJSON=si,pi.locale=ra,pi.localeData=sa,pi.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",si),pi.lang=Ma,x("X",0,0,"unix"),x("x",0,0,"valueOf"),Ee("x",ye),Ee("X",ke),xe("X",(function(e,c,n){n._d=new Date(1e3*parseFloat(e))})),xe("x",(function(e,c,n){n._d=new Date(pe(e))})),
|
|
1
|
+
!function(e,c){"object"==typeof exports&&"undefined"!=typeof module?c(exports,require("prop-types"),require("react"),require("i18next"),require("classnames"),require("react-autosuggest"),require("lodash/debounce"),require("lodash/flatten"),require("lodash/take"),require("lodash/isString"),require("lodash/orderBy"),require("lodash/uniqWith"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),require("lodash/get"),require("@digitransit-component/digitransit-component-suggestion-item"),require("@digitransit-component/digitransit-component-icon"),require("lodash/isEmpty"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","i18next","classnames","react-autosuggest","lodash/debounce","lodash/flatten","lodash/take","lodash/isString","lodash/orderBy","lodash/uniqWith","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","lodash/get","@digitransit-component/digitransit-component-suggestion-item","@digitransit-component/digitransit-component-icon","lodash/isEmpty","react-modal","@digitransit-component/digitransit-component-dialog-modal"],c):c((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.PropTypes,e.React,e.i18next,e.cx,e.Autosuggest,e.debounce,e.flatten,e.take,e.isString,e.orderBy,e.uniqWith,e.isEqual,e.memoize,e.escapeRegExp,e.cloneDeep,e.get,e.SuggestionItem,e.Icon,e.isEmpty,e.ReactModal,e.DialogModal)}(this,(function(e,c,n,o,a,t,i,r,M,s,p,u,l,d,b,A,z,f,h,O,L,m){"use strict";function q(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var N=q(c),g=q(n),W=q(o),T=q(a),X=q(t),B=q(i),_=q(r),y=q(M),S=q(s),v=q(p),k=q(u),C=q(l),E=q(d),R=q(b),w=q(A),D=q(z),P=q(f),x=q(h),I=q(O),H=q(L),Y=q(m);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function U(){return U=Object.assign||function(e){for(var c=1;c<arguments.length;c++){var n=arguments[c];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(this,arguments)}function j(e,c){(null==c||c>e.length)&&(c=e.length);for(var n=0,o=new Array(c);n<c;n++)o[n]=e[n];return o}function G(e,c){if(e){if("string"==typeof e)return j(e,c);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,c):void 0}}function V(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}function Q(e,c){for(var n=0;n<c.length;n++){var o=c[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function J(e,c){return J=Object.setPrototypeOf||function(e,c){return e.__proto__=c,e},J(e,c)}function Z(e,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(c&&c.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),c&&J(e,c)}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ee(e,c){return!c||"object"!==F(c)&&"function"!=typeof c?$(e):c}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function ne(e,c){return function(e){if(Array.isArray(e))return e}(e)||function(e,c){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,a=!1,t=void 0;try{for(var i,r=e[Symbol.iterator]();!(o=(i=r.next()).done)&&(n.push(i.value),!c||n.length!==c);o=!0);}catch(e){a=!0,t=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw t}}return n}}(e,c)||G(e,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,c){return e&&c&&e===c}function ae(e,c){var n=e.properties,o=c.properties;if("FutureRoute"===e.type&&"FutureRoute"===c.type){var a=n.origin,t=n.destination,i=o.origin,r=o.destination;return!!oe("".concat(a.name,"//").concat(a.locality,"//").concat(t.name,"//").concat(t.locality),"".concat(i.name,"//").concat(i.locality,"//").concat(r.name,"//").concat(r.locality))}if("FutureRoute"===e.type||"FutureRoute"===c.type)return!1;if(("bikeRentalStation"===n.layer||"favouriteBikeRentalStation"===n.layer)&&("bikeRentalStation"===o.layer||"favouriteBikeRentalStation"===o.layer)||"bikestation"===n.layer&&"bikestation"===o.layer)return n.labelId===o.labelId;if(oe(n.gtfsId,o.gtfsId))return!0;if(n.gtfsId&&o.gid&&o.gid.includes(n.gtfsId))return!0;if(o.gtfsId&&n.gid&&n.gid.includes(o.gtfsId))return!0;var M=e&&e.geometry?e.geometry.coordinates:void 0,s=c&&c.geometry?c.geometry.coordinates:void 0;return!!(M&&s&&Math.abs(M[0]-s[0])<1e-6&&Math.abs(M[1]-s[1])<1e-6&&(oe(n.name,o.name)||oe(n.label,o.label)||oe(n.address,o.address)||oe(n.address,o.label)||oe(n.label,o.address)))}var te=function(e){return S.default(e)?e.toLowerCase():""},ie={Address:"address",Back:"back",CurrentPosition:"currentPosition",FavouriteStop:"favouriteStop",FavouriteStation:"favouriteStation",FavouritePlace:"favouritePlace",FavouriteRoute:"favouriteRoute",FutureRoute:"futureRoute",Station:"station",SelectFromMap:"selectFromMap",SelectFromOwnLocations:"ownLocations",Stop:"stop",Street:"street",Venue:"venue",BikeRentalStation:"bikeRentalStation"},re=function(e,c){if(!S.default(e)||0===e.length)return 0;return["name","label","address","shortName"].map((function(e){return c[e]})).filter((function(e){return S.default(e)&&e.length>0})).map((function(c){var n=te(c);return 0===n.indexOf(e)?.5+e.length/n.length:.5*e.length/(e.length+1)})).reduce((function(e,c){return c>e?c:e}),0)},Me=function(e,c){switch(e){case ie.CurrentPosition:return 1;case ie.Back:return.9;case ie.SelectFromMap:return.8;case ie.SelectFromOwnLocations:return.79;case ie.FavouriteStation:case ie.FavouritePlace:case ie.FavouriteStop:case ie.FavouriteRoute:return.45;case ie.FutureRoute:return.44;case ie.Station:return S.default(c)&&0===c.indexOf("gtfs")?.43:.42;default:return.4;case ie.Stop:return.35;case ie.BikeRentalStation:return.1}},se=function(e,c){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Array.isArray(c))return c;var o=function(c){return S.default(c)&&e&&e.test(c)},a=te(n),t=o(a),i=v.default(c,[function(e){return t&&o(te(e.properties.shortName))&&0===te(e.properties.shortName).indexOf(a)?1:0},function(e){var c=e.properties,n=c.confidence,o=c.layer,t=c.source;if(0===a.length)return Me(o,t);if(!n){var i=Me(o,t)+re(a,e.properties);return o===ie.BikeRentalStation?i-.8:i}switch(o){case ie.Station:var r=0===t.indexOf("gtfs")?.05:.01;return Math.min(n+r,1);default:return n;case ie.Stop:return n-.1}}],["desc","desc"]);return k.default(i,ae)},pe=function(e,c){return null!=c&&-1!==e.lastIndexOf(c)?e.substring(0,e.lastIndexOf(c)-1):e},ue=function(e){return e.localadmin||e.locality||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||""},le=function(e){var c=e.id,n=e.code;return n||(void 0!==c&&void 0!==c.indexOf&&-1!==c.indexOf("#")?c.substring(c.indexOf("#")+1):void 0)},de=E.default((function(e){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return[e.name||e.address&&e.address.split(",")[0],e.address.replace(new RegExp("".concat(R.default(e.name),"(,)?( )?")),"")];case"favouriteBikeRentalStation":case"bikeRentalStation":return[e.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-AIRPLANE":return!c&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp("".concat(R.default(e.name),"(,)?( )?")),"")];case"favouriteStop":case"stop":return c?[e.name||e.label||e.address&&e.address.split(",")[0],ue(e)]:[e.name,e.id,le(e),ue(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],ue(e)]}}),(function(e,c){var n=w.default(e);return n.plain=c,n}));function be(e){return k.default(e,(function(e,c){var n=C.default(de(e.properties),de(c.properties))&&e.properties.layer===c.properties.layer;return(!n||"FutureRoute"!==e.type&&"FutureRoute"!==c.type)&&n}))}function Ae(e,c,n){if("string"==typeof c&&c.length>0){var o=c.toLowerCase().trim(),a=o.includes(" ")||o.includes(",");return e.filter((function(e){var c=[];n.forEach((function(n){var o=D.default(e,n);a||"properties.label"!==n&&"address"!==n||!o||((o=o.split(",")).length>2?o.splice(o.length-2,2):o.length>1&&o.splice(o.length-1,1),o=o.join(",")),o&&(c=a?c.concat(o.toLowerCase()):c.concat(o.toLowerCase().replace(/,/g," ").split(" ")))}));for(var t=0;t<c.length;t++)if(0===c[t].indexOf(o))return!0;return!1}))}return e}function ze(e,c){return e?Object.keys(e).map((function(n){var o=c||n,a=e[n];return"object"===F(a)?ze(a,o):"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(a))})).join("&"):""}var fe=require("axios").default;function he(e,c){return fe.get(encodeURI(e)+(c?(-1===e.search(/\?/)?"?":"&")+ze(c):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((function(e){return e.data}))}function Oe(e,c,n,o,a,t,i,r){var M=e?e.trim():null;if(null==M||M.length<1||i&&!i.test(M))return Promise.resolve([]);var s=t||"https://api.digitransit.fi/geocoding/v1/search",p=U({text:M},c,o,{lang:n});(a&&(p=U({},p,{sources:a})),r)&&(p=U({},p,{layers:r.toString()}));return he(s,p).then((function(e){return e.features}))}function Le(e,c){if(!e||e.length<1)return Promise.resolve([]);var n="",o=e.map((function(e){var c="stop"===e.type?"stop":"station",o="gtfs".concat(e.gtfsId.split(":")[0].toLowerCase(),":").concat(c,":GTFS:").concat(e.gtfsId);return e.code&&(o+="#".concat(e.code)),n+="".concat(o,","),U({},e,{gid:o})})).reduce((function(e,c){return e[c.gid]=c,e}),{});return he(c,{ids:n.slice(0,-1)}).then((function(e){return e.features.map((function(e){var c,n,a;return{type:"FavouriteStop",properties:{addendum:e.properties.addendum,gid:o[e.properties.gid].gid,code:o[e.properties.gid].code,gtfsId:o[e.properties.gid].gtfsId,lastUpdated:o[e.properties.gid].lastUpdated,favouriteId:o[e.properties.gid].favouriteId,address:e.properties.label,layer:(c=e.properties,n=c.layer,a=c.type,"stop"===n||"favouriteStop"===n||"stop"===a||"favouriteStop"===a?"favouriteStop":"favouriteStation")},geometry:e.geometry}}))}))}function me(e,c,n){var o=Ae(e,c,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(o=o.filter((function(e){return!n.includes(e.properties.layer)}))),Promise.resolve(y.default(o,10).map((function(e){var c=U({},e,{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete c.properties.confidence,c})))}var qe=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE"],Ne=["favouritePlace","venue","address","street"];var ge=B.default((function(e,c,n,o,a,t,i,r,M,s){var p=i.input,u=o.getPositions,l=o.getFavouriteLocations,d=o.getOldSearches,b=o.getFavouriteStops,A=o.getLanguage,z=o.getStopAndStationsQuery,f=o.getFavouriteBikeRentalStationsQuery,h=o.getFavouriteBikeRentalStations,O=o.getFavouriteRoutesQuery,L=o.getFavouriteRoutes,m=o.getRoutesQuery,q=o.context,N=o.isPeliasLocationAware,g=o.minimalRegexp,W=o.lineRegexp,T=o.URL_PELIAS,X=o.URL_PELIAS_PLACE,B=o.feedIDs,S=o.geocodingSearchParams,v=o.geocodingSources,k=o.getFutureRoutes,C=o.cityBikeNetworks,E=!e||0===e.length,R=!c||0===c.length,w=u(q),D=[],P={type:"all",term:p,results:[]},x=A(q),I=N&&null!=s&&s.lat&&null!=s&&s.lon?{"focus.point.lat":s.lat.toFixed(3),"focus.point.lon":s.lon.toFixed(3)}:{},H=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==w.status&&D.push(function(e,c){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:c.address,lat:c.lat,lon:c.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:c.address,lat:c.lat,lon:c.lon},geometry:{type:"Point",coordinates:[c.lon,c.lat]}}]):Promise.resolve([])}(p,w)),(E||e.includes("MapPosition"))&&D.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(p)),e.includes("FutureRoutes")){var Y=k(q);D.push(y.default(Y,3))}if(e.includes("SelectFromOwnLocations")&&function(e,c,n){var o=c(e);if(o&&o.length>0)return!0;var a=n(e);return a&&a.length>0}(q,l,b)&&D.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(p)),E||e.includes("Locations")){var F=S;if(c.includes("Favourite")){var j=l(q);D.push(function(e,c){return Promise.resolve(Ae(e,c,["address","name"]).map((function(e){return{type:"FavouritePlace",properties:U({},e,{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}}})))}(j,p)),c.includes("Back")&&D.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(R||c.includes("Datasource")){var G=B.map((function(e){return"gtfs".concat(e)})),K=v.concat(G).join(",");D.push(Oe(p,F,x,I,K,T,g,["station","venue","address","street"]))}if(R||c.includes("History")){var Q=d(q,"endpoint"),J=["currentPosition","selectFromMap","futureRoute","ownLocations","bikeRentalStation","stop","back"];J.push.apply(J,qe),D.push(me(Q,p,J))}}if(E||e.includes("Stops")){if(c.includes("Favourite")){var Z,$=b(q);Z=$.every((function(e){return"station"===e.type}))?Le($,X).then((function(e){return a?a(e,H):e})):z($).then((function(e){return Le(e,X)})).then((function(e){return a?a(e,H):e})),D.push(function(e,c){return e.then((function(e){return Ae(e,c,["properties.name","properties.name","properties.address"])}))}(Z,p))}if(R||c.includes("Datasource")){var ee={size:t},ce=B.map((function(e){return"gtfs".concat(e)})).join(",");D.push(Oe(p,ee,x,I,ce,T,g,["stop","station"]).then((function(e){return a?a(e,H):e})))}if(R||c.includes("History")){var ne=d(q).filter((function(e){return!e.properties.gid||e.properties.gid.includes("GTFS:")})),oe=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikeRentalStation","back"];oe.push.apply(oe,qe),oe.push.apply(oe,Ne),n?("route-CITYBIKE"!==n&&(oe.push("bikeRentalStation"),oe.push("bikestation")),D.push(me(ne,p,oe).then((function(e){return a?a(e,H):e})))):D.push(me(ne,p,oe))}}if(E||e.includes("Routes")){if(c.includes("Favourite")){var ae=L(q);D.push(O(ae,p,H,M).then((function(e){return a?a(e,H,"Routes"):e})))}if(D.push(m(p,B,n,M).then((function(e){return a?a(e,H,"Routes"):e}))),R||c.includes("History")){var te=d(q),ie=["currentPosition","selectFromMap","futureRoute","favouritePlace","stop","station","ownLocations","back"];n&&("route-CITYBIKE"!==n&&(ie.push("bikeRentalStation"),ie.push("bikestation")),ie.push.apply(ie,V(qe.filter((function(e){return!(e===n)}))))),ie.push.apply(ie,Ne),D.push(me(te,p,ie).then((function(e){return a?a(e,H,"Routes"):e})))}}if(E||e.includes("BikeRentalStations")){if(c.includes("Favourite")){var re=h(q);D.push(f(re,p))}if(R||c.includes("Datasource")){var Me={size:t};D.push(Oe(p,Me,x,I,C.join(","),T,g,["bikestation"]).then((function(e){return a?a(e,H,"BikeRentalStations"):e})))}}Promise.all(D).then(_.default).then(be).then((function(e){P.results=e})).catch((function(e){P.error=e})).then((function(){r(U({},P,{results:se(W,P.results,p)}))}))}),300,{leading:!0});function We(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Te(e,c){return e(c={exports:{}},c.exports),c.exports}var Xe,Be=Te((function(e,c){e.exports=function(){var c,n;function o(){return c.apply(null,arguments)}function a(e){c=e}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,c){return Object.prototype.hasOwnProperty.call(e,c)}function M(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var c;for(c in e)if(r(e,c))return!1;return!0}function s(e){return void 0===e}function p(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,c){var n,o=[];for(n=0;n<e.length;++n)o.push(c(e[n],n));return o}function d(e,c){for(var n in c)r(c,n)&&(e[n]=c[n]);return r(c,"toString")&&(e.toString=c.toString),r(c,"valueOf")&&(e.valueOf=c.valueOf),e}function b(e,c,n,o){return Vn(e,c,n,o,!0).utc()}function A(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function z(e){return null==e._pf&&(e._pf=A()),e._pf}function f(e){if(null==e._isValid){var c=z(e),o=n.call(c.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&c.overflow<0&&!c.empty&&!c.invalidEra&&!c.invalidMonth&&!c.invalidWeekday&&!c.weekdayMismatch&&!c.nullInput&&!c.invalidFormat&&!c.userInvalidated&&(!c.meridiem||c.meridiem&&o);if(e._strict&&(a=a&&0===c.charsLeftOver&&0===c.unusedTokens.length&&void 0===c.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function h(e){var c=b(NaN);return null!=e?d(z(c),e):z(c).userInvalidated=!0,c}n=Array.prototype.some?Array.prototype.some:function(e){var c,n=Object(this),o=n.length>>>0;for(c=0;c<o;c++)if(c in n&&e.call(this,n[c],c,n))return!0;return!1};var O=o.momentProperties=[],L=!1;function m(e,c){var n,o,a;if(s(c._isAMomentObject)||(e._isAMomentObject=c._isAMomentObject),s(c._i)||(e._i=c._i),s(c._f)||(e._f=c._f),s(c._l)||(e._l=c._l),s(c._strict)||(e._strict=c._strict),s(c._tzm)||(e._tzm=c._tzm),s(c._isUTC)||(e._isUTC=c._isUTC),s(c._offset)||(e._offset=c._offset),s(c._pf)||(e._pf=z(c)),s(c._locale)||(e._locale=c._locale),O.length>0)for(n=0;n<O.length;n++)s(a=c[o=O[n]])||(e[o]=a);return e}function q(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===L&&(L=!0,o.updateOffset(this),L=!1)}function N(e){return e instanceof q||null!=e&&null!=e._isAMomentObject}function g(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,c){var n=!0;return d((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var a,t,i,M=[];for(t=0;t<arguments.length;t++){if(a="","object"==typeof arguments[t]){for(i in a+="\n["+t+"] ",arguments[0])r(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[t];M.push(a)}g(e+"\nArguments: "+Array.prototype.slice.call(M).join("")+"\n"+(new Error).stack),n=!1}return c.apply(this,arguments)}),c)}var T,X={};function B(e,c){null!=o.deprecationHandler&&o.deprecationHandler(e,c),X[e]||(g(c),X[e]=!0)}function _(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function y(e){var c,n;for(n in e)r(e,n)&&(_(c=e[n])?this[n]=c:this["_"+n]=c);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function S(e,c){var n,o=d({},e);for(n in c)r(c,n)&&(i(e[n])&&i(c[n])?(o[n]={},d(o[n],e[n]),d(o[n],c[n])):null!=c[n]?o[n]=c[n]:delete o[n]);for(n in e)r(e,n)&&!r(c,n)&&i(e[n])&&(o[n]=d({},o[n]));return o}function v(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var c,n=[];for(c in e)r(e,c)&&n.push(c);return n};var k={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C(e,c,n){var o=this._calendar[e]||this._calendar.sameElse;return _(o)?o.call(c,n):o}function E(e,c,n){var o=""+Math.abs(e),a=c-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,w=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},P={};function x(e,c,n,o){var a=o;"string"==typeof o&&(a=function(){return this[o]()}),e&&(P[e]=a),c&&(P[c[0]]=function(){return E(a.apply(this,arguments),c[1],c[2])}),n&&(P[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function I(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var c,n,o=e.match(R);for(c=0,n=o.length;c<n;c++)P[o[c]]?o[c]=P[o[c]]:o[c]=I(o[c]);return function(c){var a,t="";for(a=0;a<n;a++)t+=_(o[a])?o[a].call(c,e):o[a];return t}}function Y(e,c){return e.isValid()?(c=F(c,e.localeData()),D[c]=D[c]||H(c),D[c](e)):e.localeData().invalidDate()}function F(e,c){var n=5;function o(e){return c.longDateFormat(e)||e}for(w.lastIndex=0;n>=0&&w.test(e);)e=e.replace(w,o),w.lastIndex=0,n-=1;return e}var U={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function j(e){var c=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return c||!n?c:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function V(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $(e,c,n,o){var a=this._relativeTime[n];return _(a)?a(e,c,n,o):a.replace(/%d/i,e)}function ee(e,c){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(c):n.replace(/%s/i,c)}var ce={};function ne(e,c){var n=e.toLowerCase();ce[n]=ce[n+"s"]=ce[c]=e}function oe(e){return"string"==typeof e?ce[e]||ce[e.toLowerCase()]:void 0}function ae(e){var c,n,o={};for(n in e)r(e,n)&&(c=oe(n))&&(o[c]=e[n]);return o}var te={};function ie(e,c){te[e]=c}function re(e){var c,n=[];for(c in e)r(e,c)&&n.push({unit:c,priority:te[c]});return n.sort((function(e,c){return e.priority-c.priority})),n}function Me(e){return e%4==0&&e%100!=0||e%400==0}function se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var c=+e,n=0;return 0!==c&&isFinite(c)&&(n=se(c)),n}function ue(e,c){return function(n){return null!=n?(de(this,e,n),o.updateOffset(this,c),this):le(this,e)}}function le(e,c){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+c]():NaN}function de(e,c,n){e.isValid()&&!isNaN(n)&&("FullYear"===c&&Me(e.year())&&1===e.month()&&29===e.date()?(n=pe(n),e._d["set"+(e._isUTC?"UTC":"")+c](n,e.month(),ec(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+c](n))}function be(e){return _(this[e=oe(e)])?this[e]():this}function Ae(e,c){if("object"==typeof e){var n,o=re(e=ae(e));for(n=0;n<o.length;n++)this[o[n].unit](e[o[n].unit])}else if(_(this[e=oe(e)]))return this[e](c);return this}var ze,fe=/\d/,he=/\d\d/,Oe=/\d{3}/,Le=/\d{4}/,me=/[+-]?\d{6}/,qe=/\d\d?/,Ne=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,Te=/\d{1,3}/,Xe=/\d{1,4}/,Be=/[+-]?\d{1,6}/,_e=/\d+/,ye=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,ve=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[+-]?\d+(\.\d{1,3})?/,Ce=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ee(e,c,n){ze[e]=_(c)?c:function(e,o){return e&&n?n:c}}function Re(e,c){return r(ze,e)?ze[e](c._strict,c._locale):new RegExp(we(e))}function we(e){return De(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,c,n,o,a){return c||n||o||a})))}function De(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ze={};var Pe={};function xe(e,c){var n,o=c;for("string"==typeof e&&(e=[e]),p(c)&&(o=function(e,n){n[c]=pe(e)}),n=0;n<e.length;n++)Pe[e[n]]=o}function Ie(e,c){xe(e,(function(e,n,o,a){o._w=o._w||{},c(e,o._w,o,a)}))}function He(e,c,n){null!=c&&r(Pe,e)&&Pe[e](c,n._a,n,e)}var Ye,Fe=0,Ue=1,je=2,Ge=3,Ve=4,Ke=5,Qe=6,Je=7,Ze=8;function $e(e,c){return(e%c+c)%c}function ec(e,c){if(isNaN(e)||isNaN(c))return NaN;var n=$e(c,12);return e+=(c-n)/12,1===n?Me(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var c;for(c=0;c<this.length;++c)if(this[c]===e)return c;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),x("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ie("month",8),Ee("M",qe),Ee("MM",qe,he),Ee("MMM",(function(e,c){return c.monthsShortRegex(e)})),Ee("MMMM",(function(e,c){return c.monthsRegex(e)})),xe(["M","MM"],(function(e,c){c[Ue]=pe(e)-1})),xe(["MMM","MMMM"],(function(e,c,n,o){var a=n._locale.monthsParse(e,o,n._strict);null!=a?c[Ue]=a:z(n).invalidMonth=e}));var cc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nc="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),oc=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ac=Ce,tc=Ce;function ic(e,c){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||oc).test(c)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone}function rc(e,c){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[oc.test(c)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Mc(e,c,n){var o,a,t,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)t=b([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(t,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(t,"").toLocaleLowerCase();return n?"MMM"===c?-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:"MMM"===c?-1!==(a=Ye.call(this._shortMonthsParse,i))||-1!==(a=Ye.call(this._longMonthsParse,i))?a:null:-1!==(a=Ye.call(this._longMonthsParse,i))||-1!==(a=Ye.call(this._shortMonthsParse,i))?a:null}function sc(e,c,n){var o,a,t;if(this._monthsParseExact)return Mc.call(this,e,c,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=b([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(t="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(t.replace(".",""),"i")),n&&"MMMM"===c&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===c&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function pc(e,c){var n;if(!e.isValid())return e;if("string"==typeof c)if(/^\d+$/.test(c))c=pe(c);else if(!p(c=e.localeData().monthsParse(c)))return e;return n=Math.min(e.date(),ec(e.year(),c)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](c,n),e}function uc(e){return null!=e?(pc(this,e),o.updateOffset(this,!0),this):le(this,"Month")}function lc(){return ec(this.year(),this.month())}function dc(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ac.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=ac),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bc(e){return this._monthsParseExact?(r(this,"_monthsRegex")||Ac.call(this),e?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=tc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ac(){function e(e,c){return c.length-e.length}var c,n,o=[],a=[],t=[];for(c=0;c<12;c++)n=b([2e3,c]),o.push(this.monthsShort(n,"")),a.push(this.months(n,"")),t.push(this.months(n,"")),t.push(this.monthsShort(n,""));for(o.sort(e),a.sort(e),t.sort(e),c=0;c<12;c++)o[c]=De(o[c]),a[c]=De(a[c]);for(c=0;c<24;c++)t[c]=De(t[c]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function zc(e){return Me(e)?366:365}x("Y",0,0,(function(){var e=this.year();return e<=9999?E(e,4):"+"+e})),x(0,["YY",2],0,(function(){return this.year()%100})),x(0,["YYYY",4],0,"year"),x(0,["YYYYY",5],0,"year"),x(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ie("year",1),Ee("Y",ye),Ee("YY",qe,he),Ee("YYYY",Xe,Le),Ee("YYYYY",Be,me),Ee("YYYYYY",Be,me),xe(["YYYYY","YYYYYY"],Fe),xe("YYYY",(function(e,c){c[Fe]=2===e.length?o.parseTwoDigitYear(e):pe(e)})),xe("YY",(function(e,c){c[Fe]=o.parseTwoDigitYear(e)})),xe("Y",(function(e,c){c[Fe]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var fc=ue("FullYear",!0);function hc(){return Me(this.year())}function Oc(e,c,n,o,a,t,i){var r;return e<100&&e>=0?(r=new Date(e+400,c,n,o,a,t,i),isFinite(r.getFullYear())&&r.setFullYear(e)):r=new Date(e,c,n,o,a,t,i),r}function Lc(e){var c,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,c=new Date(Date.UTC.apply(null,n)),isFinite(c.getUTCFullYear())&&c.setUTCFullYear(e)):c=new Date(Date.UTC.apply(null,arguments)),c}function mc(e,c,n){var o=7+c-n;return-(7+Lc(e,0,o).getUTCDay()-c)%7+o-1}function qc(e,c,n,o,a){var t,i,r=1+7*(c-1)+(7+n-o)%7+mc(e,o,a);return r<=0?i=zc(t=e-1)+r:r>zc(e)?(t=e+1,i=r-zc(e)):(t=e,i=r),{year:t,dayOfYear:i}}function Nc(e,c,n){var o,a,t=mc(e.year(),c,n),i=Math.floor((e.dayOfYear()-t-1)/7)+1;return i<1?o=i+gc(a=e.year()-1,c,n):i>gc(e.year(),c,n)?(o=i-gc(e.year(),c,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function gc(e,c,n){var o=mc(e,c,n),a=mc(e+1,c,n);return(zc(e)-o+a)/7}function Wc(e){return Nc(e,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ie("week",5),ie("isoWeek",5),Ee("w",qe),Ee("ww",qe,he),Ee("W",qe),Ee("WW",qe,he),Ie(["w","ww","W","WW"],(function(e,c,n,o){c[o.substr(0,1)]=pe(e)}));var Tc={dow:0,doy:6};function Xc(){return this._week.dow}function Bc(){return this._week.doy}function _c(e){var c=this.localeData().week(this);return null==e?c:this.add(7*(e-c),"d")}function yc(e){var c=Nc(this,1,4).week;return null==e?c:this.add(7*(e-c),"d")}function Sc(e,c){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=c.weekdaysParse(e))?e:null:parseInt(e,10)}function vc(e,c){return"string"==typeof e?c.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kc(e,c){return e.slice(c,7).concat(e.slice(0,c))}x("d",0,"do","day"),x("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),x("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),x("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ie("day",11),ie("weekday",11),ie("isoWeekday",11),Ee("d",qe),Ee("e",qe),Ee("E",qe),Ee("dd",(function(e,c){return c.weekdaysMinRegex(e)})),Ee("ddd",(function(e,c){return c.weekdaysShortRegex(e)})),Ee("dddd",(function(e,c){return c.weekdaysRegex(e)})),Ie(["dd","ddd","dddd"],(function(e,c,n,o){var a=n._locale.weekdaysParse(e,o,n._strict);null!=a?c.d=a:z(n).invalidWeekday=e})),Ie(["d","e","E"],(function(e,c,n,o){c[o]=pe(e)}));var Cc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ec="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wc=Ce,Dc=Ce,Pc=Ce;function xc(e,c){var n=t(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(c)?"format":"standalone"];return!0===e?kc(n,this._week.dow):e?n[e.day()]:n}function Ic(e){return!0===e?kc(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Hc(e){return!0===e?kc(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yc(e,c,n){var o,a,t,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)t=b([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(t,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(t,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(t,"").toLocaleLowerCase();return n?"dddd"===c?-1!==(a=Ye.call(this._weekdaysParse,i))?a:null:"ddd"===c?-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"dddd"===c?-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._shortWeekdaysParse,i))||-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:"ddd"===c?-1!==(a=Ye.call(this._shortWeekdaysParse,i))||-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Ye.call(this._minWeekdaysParse,i))||-1!==(a=Ye.call(this._weekdaysParse,i))||-1!==(a=Ye.call(this._shortWeekdaysParse,i))?a:null}function Fc(e,c,n){var o,a,t;if(this._weekdaysParseExact)return Yc.call(this,e,c,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=b([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(t="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(t.replace(".",""),"i")),n&&"dddd"===c&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===c&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===c&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function Uc(e){if(!this.isValid())return null!=e?this:NaN;var c=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Sc(e,this.localeData()),this.add(e-c,"d")):c}function jc(e){if(!this.isValid())return null!=e?this:NaN;var c=(this.day()+7-this.localeData()._week.dow)%7;return null==e?c:this.add(e-c,"d")}function Gc(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var c=vc(e,this.localeData());return this.day(this.day()%7?c:c-7)}return this.day()||7}function Vc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=wc),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dc),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qc(e){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jc.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pc),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jc(){function e(e,c){return c.length-e.length}var c,n,o,a,t,i=[],r=[],M=[],s=[];for(c=0;c<7;c++)n=b([2e3,1]).day(c),o=De(this.weekdaysMin(n,"")),a=De(this.weekdaysShort(n,"")),t=De(this.weekdays(n,"")),i.push(o),r.push(a),M.push(t),s.push(o),s.push(a),s.push(t);i.sort(e),r.sort(e),M.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Zc(){return this.hours()%12||12}function $c(){return this.hours()||24}function en(e,c){x(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),c)}))}function cn(e,c){return c._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Zc),x("k",["kk",2],0,$c),x("hmm",0,0,(function(){return""+Zc.apply(this)+E(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zc.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),en("a",!0),en("A",!1),ne("hour","h"),ie("hour",13),Ee("a",cn),Ee("A",cn),Ee("H",qe),Ee("h",qe),Ee("k",qe),Ee("HH",qe,he),Ee("hh",qe,he),Ee("kk",qe,he),Ee("hmm",Ne),Ee("hmmss",ge),Ee("Hmm",Ne),Ee("Hmmss",ge),xe(["H","HH"],Ge),xe(["k","kk"],(function(e,c,n){var o=pe(e);c[Ge]=24===o?0:o})),xe(["a","A"],(function(e,c,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),xe(["h","hh"],(function(e,c,n){c[Ge]=pe(e),z(n).bigHour=!0})),xe("hmm",(function(e,c,n){var o=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o)),z(n).bigHour=!0})),xe("hmmss",(function(e,c,n){var o=e.length-4,a=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o,2)),c[Ke]=pe(e.substr(a)),z(n).bigHour=!0})),xe("Hmm",(function(e,c,n){var o=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o))})),xe("Hmmss",(function(e,c,n){var o=e.length-4,a=e.length-2;c[Ge]=pe(e.substr(0,o)),c[Ve]=pe(e.substr(o,2)),c[Ke]=pe(e.substr(a))}));var on=/[ap]\.?m?\.?/i,an=ue("Hours",!0);function tn(e,c,n){return e>11?n?"pm":"PM":n?"am":"AM"}var rn,Mn={calendar:k,longDateFormat:U,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:cc,monthsShort:nc,week:Tc,weekdays:Cc,weekdaysMin:Rc,weekdaysShort:Ec,meridiemParse:on},sn={},pn={};function un(e,c){var n,o=Math.min(e.length,c.length);for(n=0;n<o;n+=1)if(e[n]!==c[n])return n;return o}function ln(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var c,n,o,a,t=0;t<e.length;){for(c=(a=ln(e[t]).split("-")).length,n=(n=ln(e[t+1]))?n.split("-"):null;c>0;){if(o=bn(a.slice(0,c).join("-")))return o;if(n&&n.length>=c&&un(a,n)>=c-1)break;c--}t++}return rn}function bn(c){var n=null;if(void 0===sn[c]&&e&&e.exports)try{n=rn._abbr,We(),An(n)}catch(e){sn[c]=null}return sn[c]}function An(e,c){var n;return e&&((n=s(c)?hn(e):zn(e,c))?rn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rn._abbr}function zn(e,c){if(null!==c){var n,o=Mn;if(c.abbr=e,null!=sn[e])B("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=sn[e]._config;else if(null!=c.parentLocale)if(null!=sn[c.parentLocale])o=sn[c.parentLocale]._config;else{if(null==(n=bn(c.parentLocale)))return pn[c.parentLocale]||(pn[c.parentLocale]=[]),pn[c.parentLocale].push({name:e,config:c}),null;o=n._config}return sn[e]=new v(S(o,c)),pn[e]&&pn[e].forEach((function(e){zn(e.name,e.config)})),An(e),sn[e]}return delete sn[e],null}function fn(e,c){if(null!=c){var n,o,a=Mn;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(S(sn[e]._config,c)):(null!=(o=bn(e))&&(a=o._config),c=S(a,c),null==o&&(c.abbr=e),(n=new v(c)).parentLocale=sn[e],sn[e]=n),An(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===An()&&An(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function hn(e){var c;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rn;if(!t(e)){if(c=bn(e))return c;e=[e]}return dn(e)}function On(){return T(sn)}function Ln(e){var c,n=e._a;return n&&-2===z(e).overflow&&(c=n[Ue]<0||n[Ue]>11?Ue:n[je]<1||n[je]>ec(n[Fe],n[Ue])?je:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[Ve]||0!==n[Ke]||0!==n[Qe])?Ge:n[Ve]<0||n[Ve]>59?Ve:n[Ke]<0||n[Ke]>59?Ke:n[Qe]<0||n[Qe]>999?Qe:-1,z(e)._overflowDayOfYear&&(c<Fe||c>je)&&(c=je),z(e)._overflowWeeks&&-1===c&&(c=Je),z(e)._overflowWeekday&&-1===c&&(c=Ze),z(e).overflow=c),e}var mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nn=/Z|[+-]\d\d(?::?\d\d)?/,gn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Wn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tn=/^\/?Date\((-?\d+)/i,Xn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Bn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _n(e){var c,n,o,a,t,i,r=e._i,M=mn.exec(r)||qn.exec(r);if(M){for(z(e).iso=!0,c=0,n=gn.length;c<n;c++)if(gn[c][1].exec(M[1])){a=gn[c][0],o=!1!==gn[c][2];break}if(null==a)return void(e._isValid=!1);if(M[3]){for(c=0,n=Wn.length;c<n;c++)if(Wn[c][1].exec(M[3])){t=(M[2]||" ")+Wn[c][0];break}if(null==t)return void(e._isValid=!1)}if(!o&&null!=t)return void(e._isValid=!1);if(M[4]){if(!Nn.exec(M[4]))return void(e._isValid=!1);i="Z"}e._f=a+(t||"")+(i||""),In(e)}else e._isValid=!1}function yn(e,c,n,o,a,t){var i=[Sn(e),nc.indexOf(c),parseInt(n,10),parseInt(o,10),parseInt(a,10)];return t&&i.push(parseInt(t,10)),i}function Sn(e){var c=parseInt(e,10);return c<=49?2e3+c:c<=999?1900+c:c}function vn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kn(e,c,n){return!e||Ec.indexOf(e)===new Date(c[0],c[1],c[2]).getDay()||(z(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Cn(e,c,n){if(e)return Bn[e];if(c)return 0;var o=parseInt(n,10),a=o%100;return(o-a)/100*60+a}function En(e){var c,n=Xn.exec(vn(e._i));if(n){if(c=yn(n[4],n[3],n[2],n[5],n[6],n[7]),!kn(n[1],c,e))return;e._a=c,e._tzm=Cn(n[8],n[9],n[10]),e._d=Lc.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),z(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var c=Tn.exec(e._i);null===c?(_n(e),!1===e._isValid&&(delete e._isValid,En(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+c[1])}function wn(e,c,n){return null!=e?e:null!=c?c:n}function Dn(e){var c=new Date(o.now());return e._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}function Pn(e){var c,n,o,a,t,i=[];if(!e._d){for(o=Dn(e),e._w&&null==e._a[je]&&null==e._a[Ue]&&xn(e),null!=e._dayOfYear&&(t=wn(e._a[Fe],o[Fe]),(e._dayOfYear>zc(t)||0===e._dayOfYear)&&(z(e)._overflowDayOfYear=!0),n=Lc(t,0,e._dayOfYear),e._a[Ue]=n.getUTCMonth(),e._a[je]=n.getUTCDate()),c=0;c<3&&null==e._a[c];++c)e._a[c]=i[c]=o[c];for(;c<7;c++)e._a[c]=i[c]=null==e._a[c]?2===c?1:0:e._a[c];24===e._a[Ge]&&0===e._a[Ve]&&0===e._a[Ke]&&0===e._a[Qe]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?Lc:Oc).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(z(e).weekdayMismatch=!0)}}function xn(e){var c,n,o,a,t,i,r,M,s;null!=(c=e._w).GG||null!=c.W||null!=c.E?(t=1,i=4,n=wn(c.GG,e._a[Fe],Nc(Kn(),1,4).year),o=wn(c.W,1),((a=wn(c.E,1))<1||a>7)&&(M=!0)):(t=e._locale._week.dow,i=e._locale._week.doy,s=Nc(Kn(),t,i),n=wn(c.gg,e._a[Fe],s.year),o=wn(c.w,s.week),null!=c.d?((a=c.d)<0||a>6)&&(M=!0):null!=c.e?(a=c.e+t,(c.e<0||c.e>6)&&(M=!0)):a=t),o<1||o>gc(n,t,i)?z(e)._overflowWeeks=!0:null!=M?z(e)._overflowWeekday=!0:(r=qc(n,o,a,t,i),e._a[Fe]=r.year,e._dayOfYear=r.dayOfYear)}function In(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],z(e).empty=!0;var c,n,a,t,i,r,M=""+e._i,s=M.length,p=0;for(a=F(e._f,e._locale).match(R)||[],c=0;c<a.length;c++)t=a[c],(n=(M.match(Re(t,e))||[])[0])&&((i=M.substr(0,M.indexOf(n))).length>0&&z(e).unusedInput.push(i),M=M.slice(M.indexOf(n)+n.length),p+=n.length),P[t]?(n?z(e).empty=!1:z(e).unusedTokens.push(t),He(t,n,e)):e._strict&&!n&&z(e).unusedTokens.push(t);z(e).charsLeftOver=s-p,M.length>0&&z(e).unusedInput.push(M),e._a[Ge]<=12&&!0===z(e).bigHour&&e._a[Ge]>0&&(z(e).bigHour=void 0),z(e).parsedDateParts=e._a.slice(0),z(e).meridiem=e._meridiem,e._a[Ge]=Hn(e._locale,e._a[Ge],e._meridiem),null!==(r=z(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(r,e._a[Fe])),Pn(e),Ln(e)}else En(e);else _n(e)}function Hn(e,c,n){var o;return null==n?c:null!=e.meridiemHour?e.meridiemHour(c,n):null!=e.isPM?((o=e.isPM(n))&&c<12&&(c+=12),o||12!==c||(c=0),c):c}function Yn(e){var c,n,o,a,t,i,r=!1;if(0===e._f.length)return z(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)t=0,i=!1,c=m({},e),null!=e._useUTC&&(c._useUTC=e._useUTC),c._f=e._f[a],In(c),f(c)&&(i=!0),t+=z(c).charsLeftOver,t+=10*z(c).unusedTokens.length,z(c).score=t,r?t<o&&(o=t,n=c):(null==o||t<o||i)&&(o=t,n=c,i&&(r=!0));d(e,n||c)}function Fn(e){if(!e._d){var c=ae(e._i),n=void 0===c.day?c.date:c.day;e._a=l([c.year,c.month,n,c.hour,c.minute,c.second,c.millisecond],(function(e){return e&&parseInt(e,10)})),Pn(e)}}function Un(e){var c=new q(Ln(jn(e)));return c._nextDay&&(c.add(1,"d"),c._nextDay=void 0),c}function jn(e){var c=e._i,n=e._f;return e._locale=e._locale||hn(e._l),null===c||void 0===n&&""===c?h({nullInput:!0}):("string"==typeof c&&(e._i=c=e._locale.preparse(c)),N(c)?new q(Ln(c)):(u(c)?e._d=c:t(n)?Yn(e):n?In(e):Gn(e),f(e)||(e._d=null),e))}function Gn(e){var c=e._i;s(c)?e._d=new Date(o.now()):u(c)?e._d=new Date(c.valueOf()):"string"==typeof c?Rn(e):t(c)?(e._a=l(c.slice(0),(function(e){return parseInt(e,10)})),Pn(e)):i(c)?Fn(e):p(c)?e._d=new Date(c):o.createFromInputFallback(e)}function Vn(e,c,n,o,a){var r={};return!0!==c&&!1!==c||(o=c,c=void 0),!0!==n&&!1!==n||(o=n,n=void 0),(i(e)&&M(e)||t(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=c,r._strict=o,Un(r)}function Kn(e,c,n,o){return Vn(e,c,n,o,!1)}o.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Qn=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()})),Jn=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()}));function Zn(e,c){var n,o;if(1===c.length&&t(c[0])&&(c=c[0]),!c.length)return Kn();for(n=c[0],o=1;o<c.length;++o)c[o].isValid()&&!c[o][e](n)||(n=c[o]);return n}function $n(){return Zn("isBefore",[].slice.call(arguments,0))}function eo(){return Zn("isAfter",[].slice.call(arguments,0))}var co=function(){return Date.now?Date.now():+new Date},no=["year","quarter","month","week","day","hour","minute","second","millisecond"];function oo(e){var c,n,o=!1;for(c in e)if(r(e,c)&&(-1===Ye.call(no,c)||null!=e[c]&&isNaN(e[c])))return!1;for(n=0;n<no.length;++n)if(e[no[n]]){if(o)return!1;parseFloat(e[no[n]])!==pe(e[no[n]])&&(o=!0)}return!0}function ao(){return this._isValid}function to(){return _o(NaN)}function io(e){var c=ae(e),n=c.year||0,o=c.quarter||0,a=c.month||0,t=c.week||c.isoWeek||0,i=c.day||0,r=c.hour||0,M=c.minute||0,s=c.second||0,p=c.millisecond||0;this._isValid=oo(c),this._milliseconds=+p+1e3*s+6e4*M+1e3*r*60*60,this._days=+i+7*t,this._months=+a+3*o+12*n,this._data={},this._locale=hn(),this._bubble()}function ro(e){return e instanceof io}function Mo(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function so(e,c,n){var o,a=Math.min(e.length,c.length),t=Math.abs(e.length-c.length),i=0;for(o=0;o<a;o++)(n&&e[o]!==c[o]||!n&&pe(e[o])!==pe(c[o]))&&i++;return i+t}function po(e,c){x(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+E(~~(e/60),2)+c+E(~~e%60,2)}))}po("Z",":"),po("ZZ",""),Ee("Z",ve),Ee("ZZ",ve),xe(["Z","ZZ"],(function(e,c,n){n._useUTC=!0,n._tzm=lo(ve,e)}));var uo=/([\+\-]|\d\d)/gi;function lo(e,c){var n,o,a=(c||"").match(e);return null===a?null:0===(o=60*(n=((a[a.length-1]||[])+"").match(uo)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?o:-o}function bo(e,c){var n,a;return c._isUTC?(n=c.clone(),a=(N(e)||u(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),o.updateOffset(n,!1),n):Kn(e).local()}function Ao(e){return-Math.round(e._d.getTimezoneOffset())}function zo(e,c,n){var a,t=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=lo(ve,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&c&&(a=Ao(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),t!==e&&(!c||this._changeInProgress?Co(this,_o(e-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?t:Ao(this)}function fo(e,c){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,c),this):-this.utcOffset()}function ho(e){return this.utcOffset(0,e)}function Oo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ao(this),"m")),this}function Lo(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=lo(Se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function mo(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qo(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function No(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,c={};return m(c,this),(c=jn(c))._a?(e=c._isUTC?b(c._a):Kn(c._a),this._isDSTShifted=this.isValid()&&so(c._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function go(){return!!this.isValid()&&!this._isUTC}function Wo(){return!!this.isValid()&&this._isUTC}function To(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Xo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _o(e,c){var n,o,a,t=e,i=null;return ro(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:p(e)||!isNaN(+e)?(t={},c?t[c]=+e:t.milliseconds=+e):(i=Xo.exec(e))?(n="-"===i[1]?-1:1,t={y:0,d:pe(i[je])*n,h:pe(i[Ge])*n,m:pe(i[Ve])*n,s:pe(i[Ke])*n,ms:pe(Mo(1e3*i[Qe]))*n}):(i=Bo.exec(e))?(n="-"===i[1]?-1:1,t={y:yo(i[2],n),M:yo(i[3],n),w:yo(i[4],n),d:yo(i[5],n),h:yo(i[6],n),m:yo(i[7],n),s:yo(i[8],n)}):null==t?t={}:"object"==typeof t&&("from"in t||"to"in t)&&(a=vo(Kn(t.from),Kn(t.to)),(t={}).ms=a.milliseconds,t.M=a.months),o=new io(t),ro(e)&&r(e,"_locale")&&(o._locale=e._locale),ro(e)&&r(e,"_isValid")&&(o._isValid=e._isValid),o}function yo(e,c){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*c}function So(e,c){var n={};return n.months=c.month()-e.month()+12*(c.year()-e.year()),e.clone().add(n.months,"M").isAfter(c)&&--n.months,n.milliseconds=+c-+e.clone().add(n.months,"M"),n}function vo(e,c){var n;return e.isValid()&&c.isValid()?(c=bo(c,e),e.isBefore(c)?n=So(e,c):((n=So(c,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ko(e,c){return function(n,o){var a;return null===o||isNaN(+o)||(B(c,"moment()."+c+"(period, number) is deprecated. Please use moment()."+c+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=o,o=a),Co(this,_o(n,o),e),this}}function Co(e,c,n,a){var t=c._milliseconds,i=Mo(c._days),r=Mo(c._months);e.isValid()&&(a=null==a||a,r&&pc(e,le(e,"Month")+r*n),i&&de(e,"Date",le(e,"Date")+i*n),t&&e._d.setTime(e._d.valueOf()+t*n),a&&o.updateOffset(e,i||r))}_o.fn=io.prototype,_o.invalid=to;var Eo=ko(1,"add"),Ro=ko(-1,"subtract");function wo(e){return"string"==typeof e||e instanceof String}function Do(e){return N(e)||u(e)||wo(e)||p(e)||xo(e)||Po(e)||null==e}function Po(e){var c,n,o=i(e)&&!M(e),a=!1,t=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(c=0;c<t.length;c+=1)n=t[c],a=a||r(e,n);return o&&a}function xo(e){var c=t(e),n=!1;return c&&(n=0===e.filter((function(c){return!p(c)&&wo(e)})).length),c&&n}function Io(e){var c,n,o=i(e)&&!M(e),a=!1,t=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(c=0;c<t.length;c+=1)n=t[c],a=a||r(e,n);return o&&a}function Ho(e,c){var n=e.diff(c,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yo(e,c){1===arguments.length&&(arguments[0]?Do(arguments[0])?(e=arguments[0],c=void 0):Io(arguments[0])&&(c=arguments[0],e=void 0):(e=void 0,c=void 0));var n=e||Kn(),a=bo(n,this).startOf("day"),t=o.calendarFormat(this,a)||"sameElse",i=c&&(_(c[t])?c[t].call(this,n):c[t]);return this.format(i||this.localeData().calendar(t,this,Kn(n)))}function Fo(){return new q(this)}function Uo(e,c){var n=N(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(c).valueOf())}function jo(e,c){var n=N(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(c).valueOf()<n.valueOf())}function Go(e,c,n,o){var a=N(e)?e:Kn(e),t=N(c)?c:Kn(c);return!!(this.isValid()&&a.isValid()&&t.isValid())&&("("===(o=o||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Vo(e,c){var n,o=N(e)?e:Kn(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(c=oe(c)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(c).valueOf()<=n&&n<=this.clone().endOf(c).valueOf()))}function Ko(e,c){return this.isSame(e,c)||this.isAfter(e,c)}function Qo(e,c){return this.isSame(e,c)||this.isBefore(e,c)}function Jo(e,c,n){var o,a,t;if(!this.isValid())return NaN;if(!(o=bo(e,this)).isValid())return NaN;switch(a=6e4*(o.utcOffset()-this.utcOffset()),c=oe(c)){case"year":t=Zo(this,o)/12;break;case"month":t=Zo(this,o);break;case"quarter":t=Zo(this,o)/3;break;case"second":t=(this-o)/1e3;break;case"minute":t=(this-o)/6e4;break;case"hour":t=(this-o)/36e5;break;case"day":t=(this-o-a)/864e5;break;case"week":t=(this-o-a)/6048e5;break;default:t=this-o}return n?t:se(t)}function Zo(e,c){if(e.date()<c.date())return-Zo(c,e);var n=12*(c.year()-e.year())+(c.month()-e.month()),o=e.clone().add(n,"months");return-(n+(c-o<0?(c-o)/(o-e.clone().add(n-1,"months")):(c-o)/(e.clone().add(n+1,"months")-o)))||0}function $o(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ea(e){if(!this.isValid())return null;var c=!0!==e,n=c?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,c?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?c?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,c?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ca(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,c,n,o,a="moment",t="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+a+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(e+c+n+o)}function na(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var c=Y(this,e);return this.localeData().postformat(c)}function oa(e,c){return this.isValid()&&(N(e)&&e.isValid()||Kn(e).isValid())?_o({to:this,from:e}).locale(this.locale()).humanize(!c):this.localeData().invalidDate()}function aa(e){return this.from(Kn(),e)}function ta(e,c){return this.isValid()&&(N(e)&&e.isValid()||Kn(e).isValid())?_o({from:this,to:e}).locale(this.locale()).humanize(!c):this.localeData().invalidDate()}function ia(e){return this.to(Kn(),e)}function ra(e){var c;return void 0===e?this._locale._abbr:(null!=(c=hn(e))&&(this._locale=c),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ma=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function sa(){return this._locale}var pa=1e3,ua=60*pa,la=60*ua,da=3506328*la;function ba(e,c){return(e%c+c)%c}function Aa(e,c,n){return e<100&&e>=0?new Date(e+400,c,n)-da:new Date(e,c,n).valueOf()}function za(e,c,n){return e<100&&e>=0?Date.UTC(e+400,c,n)-da:Date.UTC(e,c,n)}function fa(e){var c,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?za:Aa,e){case"year":c=n(this.year(),0,1);break;case"quarter":c=n(this.year(),this.month()-this.month()%3,1);break;case"month":c=n(this.year(),this.month(),1);break;case"week":c=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":c=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":c=n(this.year(),this.month(),this.date());break;case"hour":c=this._d.valueOf(),c-=ba(c+(this._isUTC?0:this.utcOffset()*ua),la);break;case"minute":c=this._d.valueOf(),c-=ba(c,ua);break;case"second":c=this._d.valueOf(),c-=ba(c,pa)}return this._d.setTime(c),o.updateOffset(this,!0),this}function ha(e){var c,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?za:Aa,e){case"year":c=n(this.year()+1,0,1)-1;break;case"quarter":c=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":c=n(this.year(),this.month()+1,1)-1;break;case"week":c=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":c=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":c=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":c=this._d.valueOf(),c+=la-ba(c+(this._isUTC?0:this.utcOffset()*ua),la)-1;break;case"minute":c=this._d.valueOf(),c+=ua-ba(c,ua)-1;break;case"second":c=this._d.valueOf(),c+=pa-ba(c,pa)-1}return this._d.setTime(c),o.updateOffset(this,!0),this}function Oa(){return this._d.valueOf()-6e4*(this._offset||0)}function La(){return Math.floor(this.valueOf()/1e3)}function ma(){return new Date(this.valueOf())}function qa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Na(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ga(){return this.isValid()?this.toISOString():null}function Wa(){return f(this)}function Ta(){return d({},z(this))}function Xa(){return z(this).overflow}function Ba(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function _a(e,c){var n,a,t,i=this._eras||hn("en")._eras;for(n=0,a=i.length;n<a;++n)switch("string"==typeof i[n].since&&(t=o(i[n].since).startOf("day"),i[n].since=t.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":t=o(i[n].until).startOf("day").valueOf(),i[n].until=t.valueOf()}return i}function ya(e,c,n){var o,a,t,i,r,M=this.eras();for(e=e.toUpperCase(),o=0,a=M.length;o<a;++o)if(t=M[o].name.toUpperCase(),i=M[o].abbr.toUpperCase(),r=M[o].narrow.toUpperCase(),n)switch(c){case"N":case"NN":case"NNN":if(i===e)return M[o];break;case"NNNN":if(t===e)return M[o];break;case"NNNNN":if(r===e)return M[o]}else if([t,i,r].indexOf(e)>=0)return M[o]}function Sa(e,c){var n=e.since<=e.until?1:-1;return void 0===c?o(e.since).year():o(e.since).year()+(c-e.offset)*n}function va(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].name;if(o[e].until<=n&&n<=o[e].since)return o[e].name}return""}function ka(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].narrow;if(o[e].until<=n&&n<=o[e].since)return o[e].narrow}return""}function Ca(){var e,c,n,o=this.localeData().eras();for(e=0,c=o.length;e<c;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].abbr;if(o[e].until<=n&&n<=o[e].since)return o[e].abbr}return""}function Ea(){var e,c,n,a,t=this.localeData().eras();for(e=0,c=t.length;e<c;++e)if(n=t[e].since<=t[e].until?1:-1,a=this.clone().startOf("day").valueOf(),t[e].since<=a&&a<=t[e].until||t[e].until<=a&&a<=t[e].since)return(this.year()-o(t[e].since).year())*n+t[e].offset;return this.year()}function Ra(e){return r(this,"_erasNameRegex")||Ya.call(this),e?this._erasNameRegex:this._erasRegex}function wa(e){return r(this,"_erasAbbrRegex")||Ya.call(this),e?this._erasAbbrRegex:this._erasRegex}function Da(e){return r(this,"_erasNarrowRegex")||Ya.call(this),e?this._erasNarrowRegex:this._erasRegex}function Pa(e,c){return c.erasAbbrRegex(e)}function xa(e,c){return c.erasNameRegex(e)}function Ia(e,c){return c.erasNarrowRegex(e)}function Ha(e,c){return c._eraYearOrdinalRegex||_e}function Ya(){var e,c,n=[],o=[],a=[],t=[],i=this.eras();for(e=0,c=i.length;e<c;++e)o.push(De(i[e].name)),n.push(De(i[e].abbr)),a.push(De(i[e].narrow)),t.push(De(i[e].name)),t.push(De(i[e].abbr)),t.push(De(i[e].narrow));this._erasRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Fa(e,c){x(0,[e,e.length],0,c)}function Ua(e){return Ja.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function ja(e){return Ja.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ga(){return gc(this.year(),1,4)}function Va(){return gc(this.isoWeekYear(),1,4)}function Ka(){var e=this.localeData()._week;return gc(this.year(),e.dow,e.doy)}function Qa(){var e=this.localeData()._week;return gc(this.weekYear(),e.dow,e.doy)}function Ja(e,c,n,o,a){var t;return null==e?Nc(this,o,a).year:(c>(t=gc(e,o,a))&&(c=t),Za.call(this,e,c,n,o,a))}function Za(e,c,n,o,a){var t=qc(e,c,n,o,a),i=Lc(t.year,0,t.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function $a(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}x("N",0,0,"eraAbbr"),x("NN",0,0,"eraAbbr"),x("NNN",0,0,"eraAbbr"),x("NNNN",0,0,"eraName"),x("NNNNN",0,0,"eraNarrow"),x("y",["y",1],"yo","eraYear"),x("y",["yy",2],0,"eraYear"),x("y",["yyy",3],0,"eraYear"),x("y",["yyyy",4],0,"eraYear"),Ee("N",Pa),Ee("NN",Pa),Ee("NNN",Pa),Ee("NNNN",xa),Ee("NNNNN",Ia),xe(["N","NN","NNN","NNNN","NNNNN"],(function(e,c,n,o){var a=n._locale.erasParse(e,o,n._strict);a?z(n).era=a:z(n).invalidEra=e})),Ee("y",_e),Ee("yy",_e),Ee("yyy",_e),Ee("yyyy",_e),Ee("yo",Ha),xe(["y","yy","yyy","yyyy"],Fe),xe(["yo"],(function(e,c,n,o){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?c[Fe]=n._locale.eraYearOrdinalParse(e,a):c[Fe]=parseInt(e,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Fa("gggg","weekYear"),Fa("ggggg","weekYear"),Fa("GGGG","isoWeekYear"),Fa("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ie("weekYear",1),ie("isoWeekYear",1),Ee("G",ye),Ee("g",ye),Ee("GG",qe,he),Ee("gg",qe,he),Ee("GGGG",Xe,Le),Ee("gggg",Xe,Le),Ee("GGGGG",Be,me),Ee("ggggg",Be,me),Ie(["gggg","ggggg","GGGG","GGGGG"],(function(e,c,n,o){c[o.substr(0,2)]=pe(e)})),Ie(["gg","GG"],(function(e,c,n,a){c[a]=o.parseTwoDigitYear(e)})),x("Q",0,"Qo","quarter"),ne("quarter","Q"),ie("quarter",7),Ee("Q",fe),xe("Q",(function(e,c){c[Ue]=3*(pe(e)-1)})),x("D",["DD",2],"Do","date"),ne("date","D"),ie("date",9),Ee("D",qe),Ee("DD",qe,he),Ee("Do",(function(e,c){return e?c._dayOfMonthOrdinalParse||c._ordinalParse:c._dayOfMonthOrdinalParseLenient})),xe(["D","DD"],je),xe("Do",(function(e,c){c[je]=pe(e.match(qe)[0])}));var et=ue("Date",!0);function ct(e){var c=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?c:this.add(e-c,"d")}x("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ie("dayOfYear",4),Ee("DDD",Te),Ee("DDDD",Oe),xe(["DDD","DDDD"],(function(e,c,n){n._dayOfYear=pe(e)})),x("m",["mm",2],0,"minute"),ne("minute","m"),ie("minute",14),Ee("m",qe),Ee("mm",qe,he),xe(["m","mm"],Ve);var nt=ue("Minutes",!1);x("s",["ss",2],0,"second"),ne("second","s"),ie("second",15),Ee("s",qe),Ee("ss",qe,he),xe(["s","ss"],Ke);var ot,at,tt=ue("Seconds",!1);for(x("S",0,0,(function(){return~~(this.millisecond()/100)})),x(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),x(0,["SSS",3],0,"millisecond"),x(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),x(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),x(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),x(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),x(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),x(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ie("millisecond",16),Ee("S",Te,fe),Ee("SS",Te,he),Ee("SSS",Te,Oe),ot="SSSS";ot.length<=9;ot+="S")Ee(ot,_e);function it(e,c){c[Qe]=pe(1e3*("0."+e))}for(ot="S";ot.length<=9;ot+="S")xe(ot,it);function rt(){return this._isUTC?"UTC":""}function Mt(){return this._isUTC?"Coordinated Universal Time":""}at=ue("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var st=q.prototype;function pt(e){return Kn(1e3*e)}function ut(){return Kn.apply(null,arguments).parseZone()}function lt(e){return e}st.add=Eo,st.calendar=Yo,st.clone=Fo,st.diff=Jo,st.endOf=ha,st.format=na,st.from=oa,st.fromNow=aa,st.to=ta,st.toNow=ia,st.get=be,st.invalidAt=Xa,st.isAfter=Uo,st.isBefore=jo,st.isBetween=Go,st.isSame=Vo,st.isSameOrAfter=Ko,st.isSameOrBefore=Qo,st.isValid=Wa,st.lang=Ma,st.locale=ra,st.localeData=sa,st.max=Jn,st.min=Qn,st.parsingFlags=Ta,st.set=Ae,st.startOf=fa,st.subtract=Ro,st.toArray=qa,st.toObject=Na,st.toDate=ma,st.toISOString=ea,st.inspect=ca,"undefined"!=typeof Symbol&&null!=Symbol.for&&(st[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),st.toJSON=ga,st.toString=$o,st.unix=La,st.valueOf=Oa,st.creationData=Ba,st.eraName=va,st.eraNarrow=ka,st.eraAbbr=Ca,st.eraYear=Ea,st.year=fc,st.isLeapYear=hc,st.weekYear=Ua,st.isoWeekYear=ja,st.quarter=st.quarters=$a,st.month=uc,st.daysInMonth=lc,st.week=st.weeks=_c,st.isoWeek=st.isoWeeks=yc,st.weeksInYear=Ka,st.weeksInWeekYear=Qa,st.isoWeeksInYear=Ga,st.isoWeeksInISOWeekYear=Va,st.date=et,st.day=st.days=Uc,st.weekday=jc,st.isoWeekday=Gc,st.dayOfYear=ct,st.hour=st.hours=an,st.minute=st.minutes=nt,st.second=st.seconds=tt,st.millisecond=st.milliseconds=at,st.utcOffset=zo,st.utc=ho,st.local=Oo,st.parseZone=Lo,st.hasAlignedHourOffset=mo,st.isDST=qo,st.isLocal=go,st.isUtcOffset=Wo,st.isUtc=To,st.isUTC=To,st.zoneAbbr=rt,st.zoneName=Mt,st.dates=W("dates accessor is deprecated. Use date instead.",et),st.months=W("months accessor is deprecated. Use month instead",uc),st.years=W("years accessor is deprecated. Use year instead",fc),st.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",fo),st.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",No);var dt=v.prototype;function bt(e,c,n,o){var a=hn(),t=b().set(o,c);return a[n](t,e)}function At(e,c,n){if(p(e)&&(c=e,e=void 0),e=e||"",null!=c)return bt(e,c,n,"month");var o,a=[];for(o=0;o<12;o++)a[o]=bt(e,o,n,"month");return a}function zt(e,c,n,o){"boolean"==typeof e?(p(c)&&(n=c,c=void 0),c=c||""):(n=c=e,e=!1,p(c)&&(n=c,c=void 0),c=c||"");var a,t=hn(),i=e?t._week.dow:0,r=[];if(null!=n)return bt(c,(n+i)%7,o,"day");for(a=0;a<7;a++)r[a]=bt(c,(a+i)%7,o,"day");return r}function ft(e,c){return At(e,c,"months")}function ht(e,c){return At(e,c,"monthsShort")}function Ot(e,c,n){return zt(e,c,n,"weekdays")}function Lt(e,c,n){return zt(e,c,n,"weekdaysShort")}function mt(e,c,n){return zt(e,c,n,"weekdaysMin")}dt.calendar=C,dt.longDateFormat=j,dt.invalidDate=V,dt.ordinal=J,dt.preparse=lt,dt.postformat=lt,dt.relativeTime=$,dt.pastFuture=ee,dt.set=y,dt.eras=_a,dt.erasParse=ya,dt.erasConvertYear=Sa,dt.erasAbbrRegex=wa,dt.erasNameRegex=Ra,dt.erasNarrowRegex=Da,dt.months=ic,dt.monthsShort=rc,dt.monthsParse=sc,dt.monthsRegex=bc,dt.monthsShortRegex=dc,dt.week=Wc,dt.firstDayOfYear=Bc,dt.firstDayOfWeek=Xc,dt.weekdays=xc,dt.weekdaysMin=Hc,dt.weekdaysShort=Ic,dt.weekdaysParse=Fc,dt.weekdaysRegex=Vc,dt.weekdaysShortRegex=Kc,dt.weekdaysMinRegex=Qc,dt.isPM=nn,dt.meridiem=tn,An("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var c=e%10;return e+(1===pe(e%100/10)?"th":1===c?"st":2===c?"nd":3===c?"rd":"th")}}),o.lang=W("moment.lang is deprecated. Use moment.locale instead.",An),o.langData=W("moment.langData is deprecated. Use moment.localeData instead.",hn);var qt=Math.abs;function Nt(){var e=this._data;return this._milliseconds=qt(this._milliseconds),this._days=qt(this._days),this._months=qt(this._months),e.milliseconds=qt(e.milliseconds),e.seconds=qt(e.seconds),e.minutes=qt(e.minutes),e.hours=qt(e.hours),e.months=qt(e.months),e.years=qt(e.years),this}function gt(e,c,n,o){var a=_o(c,n);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Wt(e,c){return gt(this,e,c,1)}function Tt(e,c){return gt(this,e,c,-1)}function Xt(e){return e<0?Math.floor(e):Math.ceil(e)}function Bt(){var e,c,n,o,a,t=this._milliseconds,i=this._days,r=this._months,M=this._data;return t>=0&&i>=0&&r>=0||t<=0&&i<=0&&r<=0||(t+=864e5*Xt(yt(r)+i),i=0,r=0),M.milliseconds=t%1e3,e=se(t/1e3),M.seconds=e%60,c=se(e/60),M.minutes=c%60,n=se(c/60),M.hours=n%24,i+=se(n/24),r+=a=se(_t(i)),i-=Xt(yt(a)),o=se(r/12),r%=12,M.days=i,M.months=r,M.years=o,this}function _t(e){return 4800*e/146097}function yt(e){return 146097*e/4800}function St(e){if(!this.isValid())return NaN;var c,n,o=this._milliseconds;if("month"===(e=oe(e))||"quarter"===e||"year"===e)switch(c=this._days+o/864e5,n=this._months+_t(c),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(c=this._days+Math.round(yt(this._months)),e){case"week":return c/7+o/6048e5;case"day":return c+o/864e5;case"hour":return 24*c+o/36e5;case"minute":return 1440*c+o/6e4;case"second":return 86400*c+o/1e3;case"millisecond":return Math.floor(864e5*c)+o;default:throw new Error("Unknown unit "+e)}}function vt(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*pe(this._months/12):NaN}function kt(e){return function(){return this.as(e)}}var Ct=kt("ms"),Et=kt("s"),Rt=kt("m"),wt=kt("h"),Dt=kt("d"),Pt=kt("w"),xt=kt("M"),It=kt("Q"),Ht=kt("y");function Yt(){return _o(this)}function Ft(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Ut(e){return function(){return this.isValid()?this._data[e]:NaN}}var jt=Ut("milliseconds"),Gt=Ut("seconds"),Vt=Ut("minutes"),Kt=Ut("hours"),Qt=Ut("days"),Jt=Ut("months"),Zt=Ut("years");function $t(){return se(this.days()/7)}var ei=Math.round,ci={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ni(e,c,n,o,a){return a.relativeTime(c||1,!!n,e,o)}function oi(e,c,n,o){var a=_o(e).abs(),t=ei(a.as("s")),i=ei(a.as("m")),r=ei(a.as("h")),M=ei(a.as("d")),s=ei(a.as("M")),p=ei(a.as("w")),u=ei(a.as("y")),l=t<=n.ss&&["s",t]||t<n.s&&["ss",t]||i<=1&&["m"]||i<n.m&&["mm",i]||r<=1&&["h"]||r<n.h&&["hh",r]||M<=1&&["d"]||M<n.d&&["dd",M];return null!=n.w&&(l=l||p<=1&&["w"]||p<n.w&&["ww",p]),(l=l||s<=1&&["M"]||s<n.M&&["MM",s]||u<=1&&["y"]||["yy",u])[2]=c,l[3]=+e>0,l[4]=o,ni.apply(null,l)}function ai(e){return void 0===e?ei:"function"==typeof e&&(ei=e,!0)}function ti(e,c){return void 0!==ci[e]&&(void 0===c?ci[e]:(ci[e]=c,"s"===e&&(ci.ss=c-1),!0))}function ii(e,c){if(!this.isValid())return this.localeData().invalidDate();var n,o,a=!1,t=ci;return"object"==typeof e&&(c=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof c&&(t=Object.assign({},ci,c),null!=c.s&&null==c.ss&&(t.ss=c.s-1)),o=oi(this,!a,t,n=this.localeData()),a&&(o=n.pastFuture(+this,o)),n.postformat(o)}var ri=Math.abs;function Mi(e){return(e>0)-(e<0)||+e}function si(){if(!this.isValid())return this.localeData().invalidDate();var e,c,n,o,a,t,i,r,M=ri(this._milliseconds)/1e3,s=ri(this._days),p=ri(this._months),u=this.asSeconds();return u?(e=se(M/60),c=se(e/60),M%=60,e%=60,n=se(p/12),p%=12,o=M?M.toFixed(3).replace(/\.?0+$/,""):"",a=u<0?"-":"",t=Mi(this._months)!==Mi(u)?"-":"",i=Mi(this._days)!==Mi(u)?"-":"",r=Mi(this._milliseconds)!==Mi(u)?"-":"",a+"P"+(n?t+n+"Y":"")+(p?t+p+"M":"")+(s?i+s+"D":"")+(c||e||M?"T":"")+(c?r+c+"H":"")+(e?r+e+"M":"")+(M?r+o+"S":"")):"P0D"}var pi=io.prototype;return pi.isValid=ao,pi.abs=Nt,pi.add=Wt,pi.subtract=Tt,pi.as=St,pi.asMilliseconds=Ct,pi.asSeconds=Et,pi.asMinutes=Rt,pi.asHours=wt,pi.asDays=Dt,pi.asWeeks=Pt,pi.asMonths=xt,pi.asQuarters=It,pi.asYears=Ht,pi.valueOf=vt,pi._bubble=Bt,pi.clone=Yt,pi.get=Ft,pi.milliseconds=jt,pi.seconds=Gt,pi.minutes=Vt,pi.hours=Kt,pi.days=Qt,pi.weeks=$t,pi.months=Jt,pi.years=Zt,pi.humanize=ii,pi.toISOString=si,pi.toString=si,pi.toJSON=si,pi.locale=ra,pi.localeData=sa,pi.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",si),pi.lang=Ma,x("X",0,0,"unix"),x("x",0,0,"valueOf"),Ee("x",ye),Ee("X",ke),xe("X",(function(e,c,n){n._d=new Date(1e3*parseFloat(e))})),xe("x",(function(e,c,n){n._d=new Date(pe(e))})),
|
|
2
2
|
//! moment.js
|
|
3
3
|
o.version="2.29.1",a(Kn),o.fn=st,o.min=$n,o.max=eo,o.now=co,o.utc=b,o.unix=pt,o.months=ft,o.isDate=u,o.locale=An,o.invalid=h,o.duration=_o,o.isMoment=N,o.weekdays=Ot,o.parseZone=ut,o.localeData=hn,o.isDuration=ro,o.monthsShort=ht,o.weekdaysMin=mt,o.defineLocale=zn,o.updateLocale=fn,o.locales=On,o.weekdaysShort=Lt,o.normalizeUnits=oe,o.relativeTimeRounding=ai,o.relativeTimeThreshold=ti,o.calendarFormat=Ho,o.prototype=st,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()})),_e=Te((function(e){
|
|
4
4
|
//! moment-timezone.js
|