@digitransit-component/digitransit-component-autosuggest 3.0.0 → 3.0.1
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.development.js +2 -2
- 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(M,z){"object"==typeof exports&&"undefined"!=typeof module?z(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/get"),require("@digitransit-component/digitransit-component-suggestion-item"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),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/get","@digitransit-component/digitransit-component-suggestion-item","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","@digitransit-component/digitransit-component-icon","lodash/isEmpty","react-modal","@digitransit-component/digitransit-component-dialog-modal"],z):z((M="undefined"!=typeof globalThis?globalThis:M||self).DTAutosuggest={},M.PropTypes,M.React,M.i18next,M.cx,M.Autosuggest,M.debounce,M.flatten,M.take,M.isString,M.orderBy,M.uniqWith,M.get,M.SuggestionItem,M.isEqual,M.memoize,M.escapeRegExp,M.cloneDeep,M.Icon,M.isEmpty,M.ReactModal,M.DialogModal)}(this,(function(M,z,b,p,O,o,c,A,q,e,n,a,W,t,d,i,r,s,u,f,R,l){"use strict";function L(M){return M&&"object"==typeof M&&"default"in M?M:{default:M}}var N=L(z),B=L(b),X=L(p),h=L(O),m=L(o),g=L(c),T=L(A),y=L(q),_=L(e),S=L(n),v=L(a),k=L(W),w=L(t),E=L(d),C=L(i),D=L(r),P=L(s),x=L(u),j=L(f),I=L(R),H=L(l);function Y(M){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Y(M)}function F(M){var z=function(M,z){if("object"!=Y(M)||!M)return M;var b=M[Symbol.toPrimitive];if(void 0!==b){var p=b.call(M,z||"default");if("object"!=Y(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===z?String:Number)(M)}(M,"string");return"symbol"==Y(z)?z:String(z)}function U(M,z,b){return(z=F(z))in M?Object.defineProperty(M,z,{value:b,enumerable:!0,configurable:!0,writable:!0}):M[z]=b,M}function G(M,z){(null==z||z>M.length)&&(z=M.length);for(var b=0,p=new Array(z);b<z;b++)p[b]=M[b];return p}function V(M,z){return function(M){if(Array.isArray(M))return M}(M)||function(M,z){var b=null==M?null:"undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(null!=b){var p,O,o,c,A=[],q=!0,e=!1;try{if(o=(b=b.call(M)).next,0===z){if(Object(b)!==b)return;q=!1}else for(;!(q=(p=o.call(b)).done)&&(A.push(p.value),A.length!==z);q=!0);}catch(M){e=!0,O=M}finally{try{if(!q&&null!=b.return&&(c=b.return(),Object(c)!==c))return}finally{if(e)throw O}}return A}}(M,z)||function(M,z){if(M){if("string"==typeof M)return G(M,z);var b=Object.prototype.toString.call(M).slice(8,-1);return"Object"===b&&M.constructor&&(b=M.constructor.name),"Map"===b||"Set"===b?Array.from(M):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?G(M,z):void 0}}(M,z)||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 K(M,z){return M&&z&&M===z}var Q=["stop","station","favouriteStop","favouriteStation"],J=["favouriteVehicleRentalStation","bikestation"];function Z(M){if(!M)return"";var z=M.split(":");return 0===z.length?"":`citybikes${z[0]}:bikestation:${z[1]}`}function $(M,z){var b=M.properties,p=z.properties;if("FutureRoute"===M.type&&"FutureRoute"===z.type){var O=b.origin,o=b.destination,c=p.origin,A=p.destination;return`${O.name}//${O.locality}//${o.name}//${o.locality}`===`${c.name}//${c.locality}//${A.name}//${A.locality}`}if("FutureRoute"===M.type||"FutureRoute"===z.type)return!1;if(J.includes(b.layer)&&J.includes(p.layer))return(b.gid||Z(b.labelId))===(p.gid||Z(p.labelId));if(b.gtfsId&&p.gtfsId)return b.gtfsId===p.gtfsId;if(Q.includes(b.layer)&&Q.includes(p.layer)&&b.gid&&p.gid)return b.gid===p.gid;var q=M&&M.geometry?M.geometry.coordinates:void 0,e=z&&z.geometry?z.geometry.coordinates:void 0;return!!(q&&e&&Math.abs(q[0]-e[0])<1e-6&&Math.abs(q[1]-e[1])<1e-6&&(K(b.name,p.name)||K(b.label,p.label)||K(b.address,p.address)||K(b.address,p.label)||K(b.label,p.address)))}var MM=M=>_.default(M)?M.toLowerCase():"",zM="back",bM="currentPosition",pM="favouriteStop",OM="favouriteStation",oM="favouritePlace",cM="favouriteRoute",AM="favouriteVehicleRentalStation",qM="futureRoute",eM="station",nM="selectFromMap",aM="ownLocations",WM="stop",tM="bikestation",dM="carpark",iM="bikepark",rM=M=>{var z=M.layer,b=M.type;return"stop"===z||"favouriteStop"===z||"stop"===b||"favouriteStop"===b},sM=(M,z)=>{switch(M){case bM:return 1;case zM:return.9;case nM:return.8;case aM:return.79;case OM:case oM:case pM:case cM:case AM:return.45;case qM:return.44;case eM:return _.default(z)&&0===z.indexOf("gtfs")?.43:.42;case dM:case iM:case tM:return.38;case WM:return.36;default:return.41}},uM=function(M,z){var b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Array.isArray(z))return z;var p=z=>_.default(z)&&M&&M.test(z),O=MM(b),o=p(O),c=S.default(z,[M=>o&&p(MM(M.properties.shortName))&&0===MM(M.properties.shortName).indexOf(O)?1:0,M=>{var z=M.properties,b=z.confidence,p=z.layer,o=z.source;if(0===O.length)return sM(p,o);if(!b)return sM(p,o)+((M,z)=>_.default(M)&&0!==M.length?["name","label","address","shortName"].map((M=>z[M])).filter((M=>_.default(M)&&M.length>0)).map((z=>{var b=MM(z);return 0===b.indexOf(M)?.5+M.length/b.length:.5*M.length/(M.length+1)})).reduce(((M,z)=>z>M?z:M),0):0)(O,M.properties);switch(p){case eM:return b+(0===o.indexOf("gtfs")?.02:.01);case WM:case dM:case iM:return b-.05;case tM:return b-.04;default:return b}}],["desc","desc"]);return v.default(c,$)},fM=(M,z)=>null!=z&&-1!==M.lastIndexOf(z)?M.substring(0,M.lastIndexOf(z)-1):M;function RM(M,z,b){if("string"==typeof z&&z.length>0){var p=z.toLowerCase().trim(),O=p.includes(" ")||p.includes(",");return M.filter((M=>{var z=[];b.forEach((b=>{var p=k.default(M,b);O||"properties.label"!==b&&"address"!==b||!p||((p=p.split(",")).length>2?p.splice(p.length-2,2):p.length>1&&p.splice(p.length-1,1),p=p.join(",")),p&&(z=O?z.concat(p.toLowerCase()):z.concat(p.toLowerCase().replace(/,/g," ").split(" ")))}));for(var o=0;o<z.length;o++)if(0===z[o].indexOf(p))return!0;return!1}))}return M}function lM(M,z){return M?Object.keys(M).map((b=>{var p=z||b,O=M[b];return"object"==typeof O?lM(O,p):`${encodeURIComponent(p)}=${encodeURIComponent(O)}`})).join("&"):""}var LM=require("axios").default;function NM(M,z){return LM.get(encodeURI(M)+(z?(-1===M.search(/\?/)?"?":"&")+lM(z):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((M=>M.data))}function BM(M,z){var b=Object.keys(M);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(M);z&&(p=p.filter((function(z){return Object.getOwnPropertyDescriptor(M,z).enumerable}))),b.push.apply(b,p)}return b}function XM(M){for(var z=1;z<arguments.length;z++){var b=null!=arguments[z]?arguments[z]:{};z%2?BM(Object(b),!0).forEach((function(z){U(M,z,b[z])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(b)):BM(Object(b)).forEach((function(z){Object.defineProperty(M,z,Object.getOwnPropertyDescriptor(b,z))}))}return M}var hM="https://api.digitransit.fi/geocoding/v1/search";function mM(M,z,b,p,O,o,c,A){var q=M?M.trim():null;if(null==q||q.length<1||c&&!c.test(q))return Promise.resolve([]);var e=o||hM,n=XM(XM(XM({text:q},z),p),{},{lang:b});if(O&&(n=XM(XM({},n),{},{sources:O})),A){var a=A.toString();n=XM(XM({},n),{},{layers:a})}return NM(e,n).then((M=>M.features))}function gM(M,z){var b=Object.keys(M);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(M);z&&(p=p.filter((function(z){return Object.getOwnPropertyDescriptor(M,z).enumerable}))),b.push.apply(b,p)}return b}function TM(M){for(var z=1;z<arguments.length;z++){var b=null!=arguments[z]?arguments[z]:{};z%2?gM(Object(b),!0).forEach((function(z){U(M,z,b[z])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(b)):gM(Object(b)).forEach((function(z){Object.defineProperty(M,z,Object.getOwnPropertyDescriptor(b,z))}))}return M}function yM(M,z){if(!M||M.length<1)return Promise.resolve([]);var b="",p=M.map((M=>{var z="stop"===M.type?"stop":"station",p=`gtfs${M.gtfsId.split(":")[0].toLowerCase()}:${z}:GTFS:${M.gtfsId}`;return M.code&&(p+=`#${M.code}`),b+=`${p},`,TM(TM({},M),{},{gid:p})})).reduce((function(M,z){return M[z.gid]=z,M}),{});return NM(z,{ids:b.slice(0,-1)}).then((M=>M.features.map((M=>({type:"FavouriteStop",properties:{addendum:M.properties.addendum,gid:p[M.properties.gid].gid,code:p[M.properties.gid].code,gtfsId:p[M.properties.gid].gtfsId,lastUpdated:p[M.properties.gid].lastUpdated,favouriteId:p[M.properties.gid].favouriteId,address:M.properties.label,layer:rM(M.properties)?"favouriteStop":"favouriteStation"},geometry:M.geometry})))))}function _M(M,z,b){var p=RM(M,z,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return b&&(p=p.filter((M=>!b.includes(M.properties.layer)))),Promise.resolve(y.default(p,10).map((M=>{var z=TM(TM({},M),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete z.properties.confidence,z})))}var SM=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],vM=["venue","address","street"],kM=["carpark","bikepark"],wM=["stop","station"];var EM=g.default((function(M,z,b,p,O,o,c,A,q,e){var n=c.input,a=p.getPositions,W=p.getFavouriteLocations,t=p.getOldSearches,d=p.getFavouriteStops,i=p.parkingAreaSources,r=p.getLanguage,s=p.getStopAndStationsQuery,u=p.getFavouriteVehicleRentalStationsQuery,f=p.getFavouriteVehicleRentalStations,R=p.getFavouriteRoutesQuery,l=p.getFavouriteRoutes,L=p.getRoutesQuery,N=p.context,B=p.isPeliasLocationAware,X=p.minimalRegexp,h=p.lineRegexp,m=p.URL_PELIAS,g=p.URL_PELIAS_PLACE,_=p.feedIDs,S=p.geocodingSearchParams,v=p.geocodingSources,k=p.getFutureRoutes,w=p.cityBikeNetworks,E=!M||0===M.length,C=!z||0===z.length,D=a(N),P=[],x={type:"all",term:n,results:[]},j=r(N),I=B&&null!=e&&e.lat&&null!=e&&e.lon?{"focus.point.lat":e.lat.toFixed(3),"focus.point.lon":e.lon.toFixed(3)}:{},H=b?b.split("-")[1]:void 0;if(M.includes("CurrentPosition")&&"geolocation-not-supported"!==D.status&&P.push(function(M,z){return"string"!=typeof M||0===M.length?Promise.resolve([{type:"CurrentLocation",address:z.address,lat:z.lat,lon:z.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:z.address,lat:z.lat,lon:z.lon},geometry:{type:"Point",coordinates:[z.lon,z.lat]}}]):Promise.resolve([])}(n,D)),(E||M.includes("MapPosition"))&&P.push(function(M){return"string"!=typeof M||0===M.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([])}(n)),M.includes("FutureRoutes")){var Y=k(N);P.push(y.default(Y,3))}if(M.includes("SelectFromOwnLocations")&&function(M){var z=M.getFavouriteLocations(M.context);if((null==z?void 0:z.length)>0)return!0;var b=M.getFavouriteVehicleRentalStations(M.context);if((null==b?void 0:b.length)>0)return!0;var p=M.getFavouriteStops(M.context);return(null==p?void 0:p.length)>0}(p)&&P.push(function(M){return"string"!=typeof M||0===M.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([])}(n)),E||M.includes("Locations")){var F=S;if(z.includes("Favourite")){var U=W(N);P.push(function(M,z){return Promise.resolve(RM(M,z,["address","name"]).map((M=>({type:"FavouritePlace",properties:TM(TM({},M),{},{label:M.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[M.lon,M.lat]}}))))}(U,n)),z.includes("Back")&&P.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(C||z.includes("Datasource")){var G=_.map((M=>`gtfs${M}`)),V=v.concat(G).join(",");P.push(mM(n,F,j,I,V,m,X,["venue","address","street"]))}if(C||z.includes("History")){var K=t(N,"endpoint"),Q=["bikestation"];Q.push(...wM),Q.push(...SM),Q.push(...kM),P.push(_M(K,n,Q))}}if(E||M.includes("ParkingAreas")){if(C||z.includes("Datasource")){var J=S;o&&10!==o&&(J.size=o);var Z=i?i.join(","):null;P.push(mM(n,J,j,I,Z,m,X,["carpark","bikepark"]).then((M=>O?O(M,H):M)))}if(C||z.includes("History")){var $=t(N),MM=["bikestation"];MM.push(...wM),MM.push(...SM),MM.push(...vM),P.push(_M($,n,MM))}}var zM=M.includes("Stops"),bM=M.includes("Stations");if(E||zM||bM){if(z.includes("Favourite")){var pM,OM=d(N);pM=OM.every((M=>"station"===M.type))?yM(OM,g).then((M=>O?O(M,H):M)):s(OM).then((M=>yM(M,g))).then((M=>O?O(M,H):M)),P.push(function(M,z,b,p){return M.then((M=>RM(M.filter((M=>"stop"===M.type?b:p)),z,["properties.name","properties.name","properties.address"])))}(pM,n,zM,bM))}if(C||z.includes("Datasource")){var oM=[];zM&&oM.push("stop"),bM&&oM.push("station");var cM=o&&10!==o?{size:o}:{};S&&S["boundary.country"]&&(cM["boundary.country"]=S["boundary.country"]),(E||M.includes("Locations"))&&(cM.dedupestops=1);var AM=_.map((M=>`gtfs${M}`)).join(",");P.push(mM(n,cM,j,I,AM,m,X,oM).then((M=>O?O(M,H):M)))}if(C||z.includes("History")){var qM=t(N).filter((M=>!M.properties.gid||M.properties.gid.includes("GTFS:"))),eM=["bikestation"];eM.push(...SM),eM.push(...vM),eM.push(...kM),zM||eM.push("stop"),bM||eM.push("station"),b?P.push(_M(qM,n,eM).then((M=>O?O(M,H):M))):P.push(_M(qM,n,eM))}}if(E||M.includes("Routes")){if(z.includes("Favourite")){var nM=l(N);P.push(R(nM,n,H,q).then((M=>O?O(M,H,"Routes"):M)))}if(P.push(L(n,_,b,q).then((M=>O?O(M,H,"Routes"):M))),C||z.includes("History")){var aM=t(N),WM=["bikestation"];b&&WM.push(...SM.filter((M=>!(M===b)))),WM.push(...wM),WM.push(...vM),WM.push(...kM),P.push(_M(aM,n,WM).then((M=>O?O(M,H,"Routes"):M)))}}if(E||M.includes("VehicleRentalStations")){if(z.includes("Favourite")){var tM=f(N);P.push(u(tM,n))}if(C||z.includes("Datasource")){var dM=o&&10!==o?{size:o}:{};P.push(mM(n,dM,j,I,w.join(","),m,X,["bikestation"]).then((M=>O?O(M,H,"VehicleRentalStations"):M)))}if(C||z.includes("History")){var iM=t(N),rM=[...wM];rM.push(...SM),rM.push(...vM),rM.push(...kM),P.push(_M(iM,n,rM))}}Promise.all(P).then(T.default).then((M=>{x.results=M})).catch((M=>{x.error=M})).then((()=>{A(TM(TM({},x),{},{results:uM(h,x.results,n)}))}))}),300,{leading:!0}),CM=M=>M.localadmin||M.locality||M.address&&M.address.lastIndexOf(",")<M.address.length-2&&M.address.substring(M.address.lastIndexOf(",")+2)||"",DM=M=>{var z=M.id,b=M.code;return b||(void 0!==z&&void 0!==z.indexOf&&-1!==z.indexOf("#")?z.substring(z.indexOf("#")+1):void 0)},PM=C.default((function(M){var z,b,p=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(M.layer){case"currentPosition":return[M.labelId,M.address];case"selectFromMap":case"ownLocations":case"back":return[M.labelId];case"favouritePlace":return z=M.name,b=M.address,[z||b&&b.split(",")[0],"string"==typeof b?b.replace(new RegExp(`${D.default(z)}([ ,]|$)+`),""):""];case"favouriteVehicleRentalStation":case"bikestation":return[M.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!p&&M.shortName?[M.gtfsId,M.mode.toLowerCase(),M.longName]:[M.shortName,M.longName,M.agency?M.agency.name:void 0];case"venue":case"address":case"street":return[M.name,M.label.replace(new RegExp(`${D.default(M.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return p?[M.name||M.label||M.address&&M.address.split(",")[0],CM(M)]:[M.name,M.id,DM(M),CM(M)];default:return[M.name||M.label||M.address&&M.address.split(",")[0],CM(M)]}}),((M,z)=>{var b=P.default(M);return b.plain=z,b}));function xM(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function jM(M,z){return M(z={exports:{}},z.exports),z.exports}var IM,HM=jM((function(M,z){M.exports=function(){var z,b;function p(){return z.apply(null,arguments)}function O(M){z=M}function o(M){return M instanceof Array||"[object Array]"===Object.prototype.toString.call(M)}function c(M){return null!=M&&"[object Object]"===Object.prototype.toString.call(M)}function A(M,z){return Object.prototype.hasOwnProperty.call(M,z)}function q(M){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(M).length;var z;for(z in M)if(A(M,z))return!1;return!0}function e(M){return void 0===M}function n(M){return"number"==typeof M||"[object Number]"===Object.prototype.toString.call(M)}function a(M){return M instanceof Date||"[object Date]"===Object.prototype.toString.call(M)}function W(M,z){var b,p=[],O=M.length;for(b=0;b<O;++b)p.push(z(M[b],b));return p}function t(M,z){for(var b in z)A(z,b)&&(M[b]=z[b]);return A(z,"toString")&&(M.toString=z.toString),A(z,"valueOf")&&(M.valueOf=z.valueOf),M}function d(M,z,b,p){return Vb(M,z,b,p,!0).utc()}function i(){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 r(M){return null==M._pf&&(M._pf=i()),M._pf}function s(M){var z=null,p=!1,O=M._d&&!isNaN(M._d.getTime());return O&&(z=r(M),p=b.call(z.parsedDateParts,(function(M){return null!=M})),O=z.overflow<0&&!z.empty&&!z.invalidEra&&!z.invalidMonth&&!z.invalidWeekday&&!z.weekdayMismatch&&!z.nullInput&&!z.invalidFormat&&!z.userInvalidated&&(!z.meridiem||z.meridiem&&p),M._strict&&(O=O&&0===z.charsLeftOver&&0===z.unusedTokens.length&&void 0===z.bigHour)),null!=Object.isFrozen&&Object.isFrozen(M)?O:(M._isValid=O,M._isValid)}function u(M){var z=d(NaN);return null!=M?t(r(z),M):r(z).userInvalidated=!0,z}b=Array.prototype.some?Array.prototype.some:function(M){var z,b=Object(this),p=b.length>>>0;for(z=0;z<p;z++)if(z in b&&M.call(this,b[z],z,b))return!0;return!1};var f=p.momentProperties=[],R=!1;function l(M,z){var b,p,O,o=f.length;if(e(z._isAMomentObject)||(M._isAMomentObject=z._isAMomentObject),e(z._i)||(M._i=z._i),e(z._f)||(M._f=z._f),e(z._l)||(M._l=z._l),e(z._strict)||(M._strict=z._strict),e(z._tzm)||(M._tzm=z._tzm),e(z._isUTC)||(M._isUTC=z._isUTC),e(z._offset)||(M._offset=z._offset),e(z._pf)||(M._pf=r(z)),e(z._locale)||(M._locale=z._locale),o>0)for(b=0;b<o;b++)e(O=z[p=f[b]])||(M[p]=O);return M}function L(M){l(this,M),this._d=new Date(null!=M._d?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===R&&(R=!0,p.updateOffset(this),R=!1)}function N(M){return M instanceof L||null!=M&&null!=M._isAMomentObject}function B(M){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+M)}function X(M,z){var b=!0;return t((function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,M),b){var O,o,c,q=[],e=arguments.length;for(o=0;o<e;o++){if(O="","object"==typeof arguments[o]){for(c in O+="\n["+o+"] ",arguments[0])A(arguments[0],c)&&(O+=c+": "+arguments[0][c]+", ");O=O.slice(0,-2)}else O=arguments[o];q.push(O)}B(M+"\nArguments: "+Array.prototype.slice.call(q).join("")+"\n"+(new Error).stack),b=!1}return z.apply(this,arguments)}),z)}var h,m={};function g(M,z){null!=p.deprecationHandler&&p.deprecationHandler(M,z),m[M]||(B(z),m[M]=!0)}function T(M){return"undefined"!=typeof Function&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}function y(M){var z,b;for(b in M)A(M,b)&&(T(z=M[b])?this[b]=z:this["_"+b]=z);this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _(M,z){var b,p=t({},M);for(b in z)A(z,b)&&(c(M[b])&&c(z[b])?(p[b]={},t(p[b],M[b]),t(p[b],z[b])):null!=z[b]?p[b]=z[b]:delete p[b]);for(b in M)A(M,b)&&!A(z,b)&&c(M[b])&&(p[b]=t({},p[b]));return p}function S(M){null!=M&&this.set(M)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,h=Object.keys?Object.keys:function(M){var z,b=[];for(z in M)A(M,z)&&b.push(z);return b};var v={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function k(M,z,b){var p=this._calendar[M]||this._calendar.sameElse;return T(p)?p.call(z,b):p}function w(M,z,b){var p=""+Math.abs(M),O=z-p.length;return(M>=0?b?"+":"":"-")+Math.pow(10,Math.max(0,O)).toString().substr(1)+p}var E=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},P={};function x(M,z,b,p){var O=p;"string"==typeof p&&(O=function(){return this[p]()}),M&&(P[M]=O),z&&(P[z[0]]=function(){return w(O.apply(this,arguments),z[1],z[2])}),b&&(P[b]=function(){return this.localeData().ordinal(O.apply(this,arguments),M)})}function j(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function I(M){var z,b,p=M.match(E);for(z=0,b=p.length;z<b;z++)P[p[z]]?p[z]=P[p[z]]:p[z]=j(p[z]);return function(z){var O,o="";for(O=0;O<b;O++)o+=T(p[O])?p[O].call(z,M):p[O];return o}}function H(M,z){return M.isValid()?(z=Y(z,M.localeData()),D[z]=D[z]||I(z),D[z](M)):M.localeData().invalidDate()}function Y(M,z){var b=5;function p(M){return z.longDateFormat(M)||M}for(C.lastIndex=0;b>=0&&C.test(M);)M=M.replace(C,p),C.lastIndex=0,b-=1;return M}var F={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 U(M){var z=this._longDateFormat[M],b=this._longDateFormat[M.toUpperCase()];return z||!b?z:(this._longDateFormat[M]=b.match(E).map((function(M){return"MMMM"===M||"MM"===M||"DD"===M||"dddd"===M?M.slice(1):M})).join(""),this._longDateFormat[M])}var G="Invalid date";function V(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function J(M){return this._ordinal.replace("%d",M)}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 $(M,z,b,p){var O=this._relativeTime[b];return T(O)?O(M,z,b,p):O.replace(/%d/i,M)}function MM(M,z){var b=this._relativeTime[M>0?"future":"past"];return T(b)?b(z):b.replace(/%s/i,z)}var zM={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function bM(M){return"string"==typeof M?zM[M]||zM[M.toLowerCase()]:void 0}function pM(M){var z,b,p={};for(b in M)A(M,b)&&(z=bM(b))&&(p[z]=M[b]);return p}var OM={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oM(M){var z,b=[];for(z in M)A(M,z)&&b.push({unit:z,priority:OM[z]});return b.sort((function(M,z){return M.priority-z.priority})),b}var cM,AM=/\d/,qM=/\d\d/,eM=/\d{3}/,nM=/\d{4}/,aM=/[+-]?\d{6}/,WM=/\d\d?/,tM=/\d\d\d\d?/,dM=/\d\d\d\d\d\d?/,iM=/\d{1,3}/,rM=/\d{1,4}/,sM=/[+-]?\d{1,6}/,uM=/\d+/,fM=/[+-]?\d+/,RM=/Z|[+-]\d\d:?\d\d/gi,lM=/Z|[+-]\d\d(?::?\d\d)?/gi,LM=/[+-]?\d+(\.\d{1,3})?/,NM=/[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,BM=/^[1-9]\d?/,XM=/^([1-9]\d|\d)/;function hM(M,z,b){cM[M]=T(z)?z:function(M,p){return M&&b?b:z}}function mM(M,z){return A(cM,M)?cM[M](z._strict,z._locale):new RegExp(gM(M))}function gM(M){return TM(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(M,z,b,p,O){return z||b||p||O})))}function TM(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function yM(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function _M(M){var z=+M,b=0;return 0!==z&&isFinite(z)&&(b=yM(z)),b}cM={};var SM={};function vM(M,z){var b,p,O=z;for("string"==typeof M&&(M=[M]),n(z)&&(O=function(M,b){b[z]=_M(M)}),p=M.length,b=0;b<p;b++)SM[M[b]]=O}function kM(M,z){vM(M,(function(M,b,p,O){p._w=p._w||{},z(M,p._w,p,O)}))}function wM(M,z,b){null!=z&&A(SM,M)&&SM[M](z,b._a,b,M)}function EM(M){return M%4==0&&M%100!=0||M%400==0}var CM=0,DM=1,PM=2,jM=3,IM=4,HM=5,YM=6,FM=7,UM=8;function GM(M){return EM(M)?366:365}x("Y",0,0,(function(){var M=this.year();return M<=9999?w(M,4):"+"+M})),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"),hM("Y",fM),hM("YY",WM,qM),hM("YYYY",rM,nM),hM("YYYYY",sM,aM),hM("YYYYYY",sM,aM),vM(["YYYYY","YYYYYY"],CM),vM("YYYY",(function(M,z){z[CM]=2===M.length?p.parseTwoDigitYear(M):_M(M)})),vM("YY",(function(M,z){z[CM]=p.parseTwoDigitYear(M)})),vM("Y",(function(M,z){z[CM]=parseInt(M,10)})),p.parseTwoDigitYear=function(M){return _M(M)+(_M(M)>68?1900:2e3)};var VM,KM=JM("FullYear",!0);function QM(){return EM(this.year())}function JM(M,z){return function(b){return null!=b?($M(this,M,b),p.updateOffset(this,z),this):ZM(this,M)}}function ZM(M,z){if(!M.isValid())return NaN;var b=M._d,p=M._isUTC;switch(z){case"Milliseconds":return p?b.getUTCMilliseconds():b.getMilliseconds();case"Seconds":return p?b.getUTCSeconds():b.getSeconds();case"Minutes":return p?b.getUTCMinutes():b.getMinutes();case"Hours":return p?b.getUTCHours():b.getHours();case"Date":return p?b.getUTCDate():b.getDate();case"Day":return p?b.getUTCDay():b.getDay();case"Month":return p?b.getUTCMonth():b.getMonth();case"FullYear":return p?b.getUTCFullYear():b.getFullYear();default:return NaN}}function $M(M,z,b){var p,O,o,c,A;if(M.isValid()&&!isNaN(b)){switch(p=M._d,O=M._isUTC,z){case"Milliseconds":return void(O?p.setUTCMilliseconds(b):p.setMilliseconds(b));case"Seconds":return void(O?p.setUTCSeconds(b):p.setSeconds(b));case"Minutes":return void(O?p.setUTCMinutes(b):p.setMinutes(b));case"Hours":return void(O?p.setUTCHours(b):p.setHours(b));case"Date":return void(O?p.setUTCDate(b):p.setDate(b));case"FullYear":break;default:return}o=b,c=M.month(),A=29!==(A=M.date())||1!==c||EM(o)?A:28,O?p.setUTCFullYear(o,c,A):p.setFullYear(o,c,A)}}function Mz(M){return T(this[M=bM(M)])?this[M]():this}function zz(M,z){if("object"==typeof M){var b,p=oM(M=pM(M)),O=p.length;for(b=0;b<O;b++)this[p[b].unit](M[p[b].unit])}else if(T(this[M=bM(M)]))return this[M](z);return this}function bz(M,z){return(M%z+z)%z}function pz(M,z){if(isNaN(M)||isNaN(z))return NaN;var b=bz(z,12);return M+=(z-b)/12,1===b?EM(M)?29:28:31-b%7%2}VM=Array.prototype.indexOf?Array.prototype.indexOf:function(M){var z;for(z=0;z<this.length;++z)if(this[z]===M)return z;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(M){return this.localeData().monthsShort(this,M)})),x("MMMM",0,0,(function(M){return this.localeData().months(this,M)})),hM("M",WM,BM),hM("MM",WM,qM),hM("MMM",(function(M,z){return z.monthsShortRegex(M)})),hM("MMMM",(function(M,z){return z.monthsRegex(M)})),vM(["M","MM"],(function(M,z){z[DM]=_M(M)-1})),vM(["MMM","MMMM"],(function(M,z,b,p){var O=b._locale.monthsParse(M,p,b._strict);null!=O?z[DM]=O:r(b).invalidMonth=M}));var Oz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),oz="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),cz=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Az=NM,qz=NM;function ez(M,z){return M?o(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||cz).test(z)?"format":"standalone"][M.month()]:o(this._months)?this._months:this._months.standalone}function nz(M,z){return M?o(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[cz.test(z)?"format":"standalone"][M.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function az(M,z,b){var p,O,o,c=M.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],p=0;p<12;++p)o=d([2e3,p]),this._shortMonthsParse[p]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[p]=this.months(o,"").toLocaleLowerCase();return b?"MMM"===z?-1!==(O=VM.call(this._shortMonthsParse,c))?O:null:-1!==(O=VM.call(this._longMonthsParse,c))?O:null:"MMM"===z?-1!==(O=VM.call(this._shortMonthsParse,c))||-1!==(O=VM.call(this._longMonthsParse,c))?O:null:-1!==(O=VM.call(this._longMonthsParse,c))||-1!==(O=VM.call(this._shortMonthsParse,c))?O:null}function Wz(M,z,b){var p,O,o;if(this._monthsParseExact)return az.call(this,M,z,b);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),p=0;p<12;p++){if(O=d([2e3,p]),b&&!this._longMonthsParse[p]&&(this._longMonthsParse[p]=new RegExp("^"+this.months(O,"").replace(".","")+"$","i"),this._shortMonthsParse[p]=new RegExp("^"+this.monthsShort(O,"").replace(".","")+"$","i")),b||this._monthsParse[p]||(o="^"+this.months(O,"")+"|^"+this.monthsShort(O,""),this._monthsParse[p]=new RegExp(o.replace(".",""),"i")),b&&"MMMM"===z&&this._longMonthsParse[p].test(M))return p;if(b&&"MMM"===z&&this._shortMonthsParse[p].test(M))return p;if(!b&&this._monthsParse[p].test(M))return p}}function tz(M,z){if(!M.isValid())return M;if("string"==typeof z)if(/^\d+$/.test(z))z=_M(z);else if(!n(z=M.localeData().monthsParse(z)))return M;var b=z,p=M.date();return p=p<29?p:Math.min(p,pz(M.year(),b)),M._isUTC?M._d.setUTCMonth(b,p):M._d.setMonth(b,p),M}function dz(M){return null!=M?(tz(this,M),p.updateOffset(this,!0),this):ZM(this,"Month")}function iz(){return pz(this.year(),this.month())}function rz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||uz.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Az),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)}function sz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||uz.call(this),M?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=qz),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)}function uz(){function M(M,z){return z.length-M.length}var z,b,p,O,o=[],c=[],A=[];for(z=0;z<12;z++)b=d([2e3,z]),p=TM(this.monthsShort(b,"")),O=TM(this.months(b,"")),o.push(p),c.push(O),A.push(O),A.push(p);o.sort(M),c.sort(M),A.sort(M),this._monthsRegex=new RegExp("^("+A.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function fz(M,z,b,p,O,o,c){var A;return M<100&&M>=0?(A=new Date(M+400,z,b,p,O,o,c),isFinite(A.getFullYear())&&A.setFullYear(M)):A=new Date(M,z,b,p,O,o,c),A}function Rz(M){var z,b;return M<100&&M>=0?((b=Array.prototype.slice.call(arguments))[0]=M+400,z=new Date(Date.UTC.apply(null,b)),isFinite(z.getUTCFullYear())&&z.setUTCFullYear(M)):z=new Date(Date.UTC.apply(null,arguments)),z}function lz(M,z,b){var p=7+z-b;return-(7+Rz(M,0,p).getUTCDay()-z)%7+p-1}function Lz(M,z,b,p,O){var o,c,A=1+7*(z-1)+(7+b-p)%7+lz(M,p,O);return A<=0?c=GM(o=M-1)+A:A>GM(M)?(o=M+1,c=A-GM(M)):(o=M,c=A),{year:o,dayOfYear:c}}function Nz(M,z,b){var p,O,o=lz(M.year(),z,b),c=Math.floor((M.dayOfYear()-o-1)/7)+1;return c<1?p=c+Bz(O=M.year()-1,z,b):c>Bz(M.year(),z,b)?(p=c-Bz(M.year(),z,b),O=M.year()+1):(O=M.year(),p=c),{week:p,year:O}}function Bz(M,z,b){var p=lz(M,z,b),O=lz(M+1,z,b);return(GM(M)-p+O)/7}function Xz(M){return Nz(M,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),hM("w",WM,BM),hM("ww",WM,qM),hM("W",WM,BM),hM("WW",WM,qM),kM(["w","ww","W","WW"],(function(M,z,b,p){z[p.substr(0,1)]=_M(M)}));var hz={dow:0,doy:6};function mz(){return this._week.dow}function gz(){return this._week.doy}function Tz(M){var z=this.localeData().week(this);return null==M?z:this.add(7*(M-z),"d")}function yz(M){var z=Nz(this,1,4).week;return null==M?z:this.add(7*(M-z),"d")}function _z(M,z){return"string"!=typeof M?M:isNaN(M)?"number"==typeof(M=z.weekdaysParse(M))?M:null:parseInt(M,10)}function Sz(M,z){return"string"==typeof M?z.weekdaysParse(M)%7||7:isNaN(M)?null:M}function vz(M,z){return M.slice(z,7).concat(M.slice(0,z))}x("d",0,"do","day"),x("dd",0,0,(function(M){return this.localeData().weekdaysMin(this,M)})),x("ddd",0,0,(function(M){return this.localeData().weekdaysShort(this,M)})),x("dddd",0,0,(function(M){return this.localeData().weekdays(this,M)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),hM("d",WM),hM("e",WM),hM("E",WM),hM("dd",(function(M,z){return z.weekdaysMinRegex(M)})),hM("ddd",(function(M,z){return z.weekdaysShortRegex(M)})),hM("dddd",(function(M,z){return z.weekdaysRegex(M)})),kM(["dd","ddd","dddd"],(function(M,z,b,p){var O=b._locale.weekdaysParse(M,p,b._strict);null!=O?z.d=O:r(b).invalidWeekday=M})),kM(["d","e","E"],(function(M,z,b,p){z[p]=_M(M)}));var kz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wz="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ez="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cz=NM,Dz=NM,Pz=NM;function xz(M,z){var b=o(this._weekdays)?this._weekdays:this._weekdays[M&&!0!==M&&this._weekdays.isFormat.test(z)?"format":"standalone"];return!0===M?vz(b,this._week.dow):M?b[M.day()]:b}function jz(M){return!0===M?vz(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort}function Iz(M){return!0===M?vz(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin}function Hz(M,z,b){var p,O,o,c=M.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],p=0;p<7;++p)o=d([2e3,1]).day(p),this._minWeekdaysParse[p]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[p]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[p]=this.weekdays(o,"").toLocaleLowerCase();return b?"dddd"===z?-1!==(O=VM.call(this._weekdaysParse,c))?O:null:"ddd"===z?-1!==(O=VM.call(this._shortWeekdaysParse,c))?O:null:-1!==(O=VM.call(this._minWeekdaysParse,c))?O:null:"dddd"===z?-1!==(O=VM.call(this._weekdaysParse,c))||-1!==(O=VM.call(this._shortWeekdaysParse,c))||-1!==(O=VM.call(this._minWeekdaysParse,c))?O:null:"ddd"===z?-1!==(O=VM.call(this._shortWeekdaysParse,c))||-1!==(O=VM.call(this._weekdaysParse,c))||-1!==(O=VM.call(this._minWeekdaysParse,c))?O:null:-1!==(O=VM.call(this._minWeekdaysParse,c))||-1!==(O=VM.call(this._weekdaysParse,c))||-1!==(O=VM.call(this._shortWeekdaysParse,c))?O:null}function Yz(M,z,b){var p,O,o;if(this._weekdaysParseExact)return Hz.call(this,M,z,b);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),p=0;p<7;p++){if(O=d([2e3,1]).day(p),b&&!this._fullWeekdaysParse[p]&&(this._fullWeekdaysParse[p]=new RegExp("^"+this.weekdays(O,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[p]=new RegExp("^"+this.weekdaysShort(O,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[p]=new RegExp("^"+this.weekdaysMin(O,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[p]||(o="^"+this.weekdays(O,"")+"|^"+this.weekdaysShort(O,"")+"|^"+this.weekdaysMin(O,""),this._weekdaysParse[p]=new RegExp(o.replace(".",""),"i")),b&&"dddd"===z&&this._fullWeekdaysParse[p].test(M))return p;if(b&&"ddd"===z&&this._shortWeekdaysParse[p].test(M))return p;if(b&&"dd"===z&&this._minWeekdaysParse[p].test(M))return p;if(!b&&this._weekdaysParse[p].test(M))return p}}function Fz(M){if(!this.isValid())return null!=M?this:NaN;var z=ZM(this,"Day");return null!=M?(M=_z(M,this.localeData()),this.add(M-z,"d")):z}function Uz(M){if(!this.isValid())return null!=M?this:NaN;var z=(this.day()+7-this.localeData()._week.dow)%7;return null==M?z:this.add(M-z,"d")}function Gz(M){if(!this.isValid())return null!=M?this:NaN;if(null!=M){var z=Sz(M,this.localeData());return this.day(this.day()%7?z:z-7)}return this.day()||7}function Vz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=Cz),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dz),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pz),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jz(){function M(M,z){return z.length-M.length}var z,b,p,O,o,c=[],A=[],q=[],e=[];for(z=0;z<7;z++)b=d([2e3,1]).day(z),p=TM(this.weekdaysMin(b,"")),O=TM(this.weekdaysShort(b,"")),o=TM(this.weekdays(b,"")),c.push(p),A.push(O),q.push(o),e.push(p),e.push(O),e.push(o);c.sort(M),A.sort(M),q.sort(M),e.sort(M),this._weekdaysRegex=new RegExp("^("+e.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+c.join("|")+")","i")}function Zz(){return this.hours()%12||12}function $z(){return this.hours()||24}function Mb(M,z){x(M,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),z)}))}function zb(M,z){return z._meridiemParse}function bb(M){return"p"===(M+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Zz),x("k",["kk",2],0,$z),x("hmm",0,0,(function(){return""+Zz.apply(this)+w(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zz.apply(this)+w(this.minutes(),2)+w(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+w(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+w(this.minutes(),2)+w(this.seconds(),2)})),Mb("a",!0),Mb("A",!1),hM("a",zb),hM("A",zb),hM("H",WM,XM),hM("h",WM,BM),hM("k",WM,BM),hM("HH",WM,qM),hM("hh",WM,qM),hM("kk",WM,qM),hM("hmm",tM),hM("hmmss",dM),hM("Hmm",tM),hM("Hmmss",dM),vM(["H","HH"],jM),vM(["k","kk"],(function(M,z,b){var p=_M(M);z[jM]=24===p?0:p})),vM(["a","A"],(function(M,z,b){b._isPm=b._locale.isPM(M),b._meridiem=M})),vM(["h","hh"],(function(M,z,b){z[jM]=_M(M),r(b).bigHour=!0})),vM("hmm",(function(M,z,b){var p=M.length-2;z[jM]=_M(M.substr(0,p)),z[IM]=_M(M.substr(p)),r(b).bigHour=!0})),vM("hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[jM]=_M(M.substr(0,p)),z[IM]=_M(M.substr(p,2)),z[HM]=_M(M.substr(O)),r(b).bigHour=!0})),vM("Hmm",(function(M,z,b){var p=M.length-2;z[jM]=_M(M.substr(0,p)),z[IM]=_M(M.substr(p))})),vM("Hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[jM]=_M(M.substr(0,p)),z[IM]=_M(M.substr(p,2)),z[HM]=_M(M.substr(O))}));var pb=/[ap]\.?m?\.?/i,Ob=JM("Hours",!0);function ob(M,z,b){return M>11?b?"pm":"PM":b?"am":"AM"}var cb,Ab={calendar:v,longDateFormat:F,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:Oz,monthsShort:oz,week:hz,weekdays:kz,weekdaysMin:Ez,weekdaysShort:wz,meridiemParse:pb},qb={},eb={};function nb(M,z){var b,p=Math.min(M.length,z.length);for(b=0;b<p;b+=1)if(M[b]!==z[b])return b;return p}function ab(M){return M?M.toLowerCase().replace("_","-"):M}function Wb(M){for(var z,b,p,O,o=0;o<M.length;){for(z=(O=ab(M[o]).split("-")).length,b=(b=ab(M[o+1]))?b.split("-"):null;z>0;){if(p=db(O.slice(0,z).join("-")))return p;if(b&&b.length>=z&&nb(O,b)>=z-1)break;z--}o++}return cb}function tb(M){return!(!M||!M.match("^[^/\\\\]*$"))}function db(z){var b=null;if(void 0===qb[z]&&M&&M.exports&&tb(z))try{b=cb._abbr,xM(),ib(b)}catch(M){qb[z]=null}return qb[z]}function ib(M,z){var b;return M&&((b=e(z)?ub(M):rb(M,z))?cb=b:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),cb._abbr}function rb(M,z){if(null!==z){var b,p=Ab;if(z.abbr=M,null!=qb[M])g("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."),p=qb[M]._config;else if(null!=z.parentLocale)if(null!=qb[z.parentLocale])p=qb[z.parentLocale]._config;else{if(null==(b=db(z.parentLocale)))return eb[z.parentLocale]||(eb[z.parentLocale]=[]),eb[z.parentLocale].push({name:M,config:z}),null;p=b._config}return qb[M]=new S(_(p,z)),eb[M]&&eb[M].forEach((function(M){rb(M.name,M.config)})),ib(M),qb[M]}return delete qb[M],null}function sb(M,z){if(null!=z){var b,p,O=Ab;null!=qb[M]&&null!=qb[M].parentLocale?qb[M].set(_(qb[M]._config,z)):(null!=(p=db(M))&&(O=p._config),z=_(O,z),null==p&&(z.abbr=M),(b=new S(z)).parentLocale=qb[M],qb[M]=b),ib(M)}else null!=qb[M]&&(null!=qb[M].parentLocale?(qb[M]=qb[M].parentLocale,M===ib()&&ib(M)):null!=qb[M]&&delete qb[M]);return qb[M]}function ub(M){var z;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return cb;if(!o(M)){if(z=db(M))return z;M=[M]}return Wb(M)}function fb(){return h(qb)}function Rb(M){var z,b=M._a;return b&&-2===r(M).overflow&&(z=b[DM]<0||b[DM]>11?DM:b[PM]<1||b[PM]>pz(b[CM],b[DM])?PM:b[jM]<0||b[jM]>24||24===b[jM]&&(0!==b[IM]||0!==b[HM]||0!==b[YM])?jM:b[IM]<0||b[IM]>59?IM:b[HM]<0||b[HM]>59?HM:b[YM]<0||b[YM]>999?YM:-1,r(M)._overflowDayOfYear&&(z<CM||z>PM)&&(z=PM),r(M)._overflowWeeks&&-1===z&&(z=FM),r(M)._overflowWeekday&&-1===z&&(z=UM),r(M).overflow=z),M}var lb=/^\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)?)?$/,Lb=/^\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)?)?$/,Nb=/Z|[+-]\d\d(?::?\d\d)?/,Bb=[["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]],Xb=[["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/]],hb=/^\/?Date\((-?\d+)/i,mb=/^(?:(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}))$/,gb={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tb(M){var z,b,p,O,o,c,A=M._i,q=lb.exec(A)||Lb.exec(A),e=Bb.length,n=Xb.length;if(q){for(r(M).iso=!0,z=0,b=e;z<b;z++)if(Bb[z][1].exec(q[1])){O=Bb[z][0],p=!1!==Bb[z][2];break}if(null==O)return void(M._isValid=!1);if(q[3]){for(z=0,b=n;z<b;z++)if(Xb[z][1].exec(q[3])){o=(q[2]||" ")+Xb[z][0];break}if(null==o)return void(M._isValid=!1)}if(!p&&null!=o)return void(M._isValid=!1);if(q[4]){if(!Nb.exec(q[4]))return void(M._isValid=!1);c="Z"}M._f=O+(o||"")+(c||""),jb(M)}else M._isValid=!1}function yb(M,z,b,p,O,o){var c=[_b(M),oz.indexOf(z),parseInt(b,10),parseInt(p,10),parseInt(O,10)];return o&&c.push(parseInt(o,10)),c}function _b(M){var z=parseInt(M,10);return z<=49?2e3+z:z<=999?1900+z:z}function Sb(M){return M.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vb(M,z,b){return!M||wz.indexOf(M)===new Date(z[0],z[1],z[2]).getDay()||(r(b).weekdayMismatch=!0,b._isValid=!1,!1)}function kb(M,z,b){if(M)return gb[M];if(z)return 0;var p=parseInt(b,10),O=p%100;return(p-O)/100*60+O}function wb(M){var z,b=mb.exec(Sb(M._i));if(b){if(z=yb(b[4],b[3],b[2],b[5],b[6],b[7]),!vb(b[1],z,M))return;M._a=z,M._tzm=kb(b[8],b[9],b[10]),M._d=Rz.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),r(M).rfc2822=!0}else M._isValid=!1}function Eb(M){var z=hb.exec(M._i);null===z?(Tb(M),!1===M._isValid&&(delete M._isValid,wb(M),!1===M._isValid&&(delete M._isValid,M._strict?M._isValid=!1:p.createFromInputFallback(M)))):M._d=new Date(+z[1])}function Cb(M,z,b){return null!=M?M:null!=z?z:b}function Db(M){var z=new Date(p.now());return M._useUTC?[z.getUTCFullYear(),z.getUTCMonth(),z.getUTCDate()]:[z.getFullYear(),z.getMonth(),z.getDate()]}function Pb(M){var z,b,p,O,o,c=[];if(!M._d){for(p=Db(M),M._w&&null==M._a[PM]&&null==M._a[DM]&&xb(M),null!=M._dayOfYear&&(o=Cb(M._a[CM],p[CM]),(M._dayOfYear>GM(o)||0===M._dayOfYear)&&(r(M)._overflowDayOfYear=!0),b=Rz(o,0,M._dayOfYear),M._a[DM]=b.getUTCMonth(),M._a[PM]=b.getUTCDate()),z=0;z<3&&null==M._a[z];++z)M._a[z]=c[z]=p[z];for(;z<7;z++)M._a[z]=c[z]=null==M._a[z]?2===z?1:0:M._a[z];24===M._a[jM]&&0===M._a[IM]&&0===M._a[HM]&&0===M._a[YM]&&(M._nextDay=!0,M._a[jM]=0),M._d=(M._useUTC?Rz:fz).apply(null,c),O=M._useUTC?M._d.getUTCDay():M._d.getDay(),null!=M._tzm&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[jM]=24),M._w&&void 0!==M._w.d&&M._w.d!==O&&(r(M).weekdayMismatch=!0)}}function xb(M){var z,b,p,O,o,c,A,q,e;null!=(z=M._w).GG||null!=z.W||null!=z.E?(o=1,c=4,b=Cb(z.GG,M._a[CM],Nz(Kb(),1,4).year),p=Cb(z.W,1),((O=Cb(z.E,1))<1||O>7)&&(q=!0)):(o=M._locale._week.dow,c=M._locale._week.doy,e=Nz(Kb(),o,c),b=Cb(z.gg,M._a[CM],e.year),p=Cb(z.w,e.week),null!=z.d?((O=z.d)<0||O>6)&&(q=!0):null!=z.e?(O=z.e+o,(z.e<0||z.e>6)&&(q=!0)):O=o),p<1||p>Bz(b,o,c)?r(M)._overflowWeeks=!0:null!=q?r(M)._overflowWeekday=!0:(A=Lz(b,p,O,o,c),M._a[CM]=A.year,M._dayOfYear=A.dayOfYear)}function jb(M){if(M._f!==p.ISO_8601)if(M._f!==p.RFC_2822){M._a=[],r(M).empty=!0;var z,b,O,o,c,A,q,e=""+M._i,n=e.length,a=0;for(q=(O=Y(M._f,M._locale).match(E)||[]).length,z=0;z<q;z++)o=O[z],(b=(e.match(mM(o,M))||[])[0])&&((c=e.substr(0,e.indexOf(b))).length>0&&r(M).unusedInput.push(c),e=e.slice(e.indexOf(b)+b.length),a+=b.length),P[o]?(b?r(M).empty=!1:r(M).unusedTokens.push(o),wM(o,b,M)):M._strict&&!b&&r(M).unusedTokens.push(o);r(M).charsLeftOver=n-a,e.length>0&&r(M).unusedInput.push(e),M._a[jM]<=12&&!0===r(M).bigHour&&M._a[jM]>0&&(r(M).bigHour=void 0),r(M).parsedDateParts=M._a.slice(0),r(M).meridiem=M._meridiem,M._a[jM]=Ib(M._locale,M._a[jM],M._meridiem),null!==(A=r(M).era)&&(M._a[CM]=M._locale.erasConvertYear(A,M._a[CM])),Pb(M),Rb(M)}else wb(M);else Tb(M)}function Ib(M,z,b){var p;return null==b?z:null!=M.meridiemHour?M.meridiemHour(z,b):null!=M.isPM?((p=M.isPM(b))&&z<12&&(z+=12),p||12!==z||(z=0),z):z}function Hb(M){var z,b,p,O,o,c,A=!1,q=M._f.length;if(0===q)return r(M).invalidFormat=!0,void(M._d=new Date(NaN));for(O=0;O<q;O++)o=0,c=!1,z=l({},M),null!=M._useUTC&&(z._useUTC=M._useUTC),z._f=M._f[O],jb(z),s(z)&&(c=!0),o+=r(z).charsLeftOver,o+=10*r(z).unusedTokens.length,r(z).score=o,A?o<p&&(p=o,b=z):(null==p||o<p||c)&&(p=o,b=z,c&&(A=!0));t(M,b||z)}function Yb(M){if(!M._d){var z=pM(M._i),b=void 0===z.day?z.date:z.day;M._a=W([z.year,z.month,b,z.hour,z.minute,z.second,z.millisecond],(function(M){return M&&parseInt(M,10)})),Pb(M)}}function Fb(M){var z=new L(Rb(Ub(M)));return z._nextDay&&(z.add(1,"d"),z._nextDay=void 0),z}function Ub(M){var z=M._i,b=M._f;return M._locale=M._locale||ub(M._l),null===z||void 0===b&&""===z?u({nullInput:!0}):("string"==typeof z&&(M._i=z=M._locale.preparse(z)),N(z)?new L(Rb(z)):(a(z)?M._d=z:o(b)?Hb(M):b?jb(M):Gb(M),s(M)||(M._d=null),M))}function Gb(M){var z=M._i;e(z)?M._d=new Date(p.now()):a(z)?M._d=new Date(z.valueOf()):"string"==typeof z?Eb(M):o(z)?(M._a=W(z.slice(0),(function(M){return parseInt(M,10)})),Pb(M)):c(z)?Yb(M):n(z)?M._d=new Date(z):p.createFromInputFallback(M)}function Vb(M,z,b,p,O){var A={};return!0!==z&&!1!==z||(p=z,z=void 0),!0!==b&&!1!==b||(p=b,b=void 0),(c(M)&&q(M)||o(M)&&0===M.length)&&(M=void 0),A._isAMomentObject=!0,A._useUTC=A._isUTC=O,A._l=b,A._i=M,A._f=z,A._strict=p,Fb(A)}function Kb(M,z,b,p){return Vb(M,z,b,p,!1)}p.createFromInputFallback=X("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(M){M._d=new Date(M._i+(M._useUTC?" UTC":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var Qb=X("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var M=Kb.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:u()})),Jb=X("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var M=Kb.apply(null,arguments);return this.isValid()&&M.isValid()?M>this?this:M:u()}));function Zb(M,z){var b,p;if(1===z.length&&o(z[0])&&(z=z[0]),!z.length)return Kb();for(b=z[0],p=1;p<z.length;++p)z[p].isValid()&&!z[p][M](b)||(b=z[p]);return b}function $b(){return Zb("isBefore",[].slice.call(arguments,0))}function Mp(){return Zb("isAfter",[].slice.call(arguments,0))}var zp=function(){return Date.now?Date.now():+new Date},bp=["year","quarter","month","week","day","hour","minute","second","millisecond"];function pp(M){var z,b,p=!1,O=bp.length;for(z in M)if(A(M,z)&&(-1===VM.call(bp,z)||null!=M[z]&&isNaN(M[z])))return!1;for(b=0;b<O;++b)if(M[bp[b]]){if(p)return!1;parseFloat(M[bp[b]])!==_M(M[bp[b]])&&(p=!0)}return!0}function Op(){return this._isValid}function op(){return gp(NaN)}function cp(M){var z=pM(M),b=z.year||0,p=z.quarter||0,O=z.month||0,o=z.week||z.isoWeek||0,c=z.day||0,A=z.hour||0,q=z.minute||0,e=z.second||0,n=z.millisecond||0;this._isValid=pp(z),this._milliseconds=+n+1e3*e+6e4*q+1e3*A*60*60,this._days=+c+7*o,this._months=+O+3*p+12*b,this._data={},this._locale=ub(),this._bubble()}function Ap(M){return M instanceof cp}function qp(M){return M<0?-1*Math.round(-1*M):Math.round(M)}function ep(M,z,b){var p,O=Math.min(M.length,z.length),o=Math.abs(M.length-z.length),c=0;for(p=0;p<O;p++)(b&&M[p]!==z[p]||!b&&_M(M[p])!==_M(z[p]))&&c++;return c+o}function np(M,z){x(M,0,0,(function(){var M=this.utcOffset(),b="+";return M<0&&(M=-M,b="-"),b+w(~~(M/60),2)+z+w(~~M%60,2)}))}np("Z",":"),np("ZZ",""),hM("Z",lM),hM("ZZ",lM),vM(["Z","ZZ"],(function(M,z,b){b._useUTC=!0,b._tzm=Wp(lM,M)}));var ap=/([\+\-]|\d\d)/gi;function Wp(M,z){var b,p,O=(z||"").match(M);return null===O?null:0===(p=60*(b=((O[O.length-1]||[])+"").match(ap)||["-",0,0])[1]+_M(b[2]))?0:"+"===b[0]?p:-p}function tp(M,z){var b,O;return z._isUTC?(b=z.clone(),O=(N(M)||a(M)?M.valueOf():Kb(M).valueOf())-b.valueOf(),b._d.setTime(b._d.valueOf()+O),p.updateOffset(b,!1),b):Kb(M).local()}function dp(M){return-Math.round(M._d.getTimezoneOffset())}function ip(M,z,b){var O,o=this._offset||0;if(!this.isValid())return null!=M?this:NaN;if(null!=M){if("string"==typeof M){if(null===(M=Wp(lM,M)))return this}else Math.abs(M)<16&&!b&&(M*=60);return!this._isUTC&&z&&(O=dp(this)),this._offset=M,this._isUTC=!0,null!=O&&this.add(O,"m"),o!==M&&(!z||this._changeInProgress?vp(this,gp(M-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:dp(this)}function rp(M,z){return null!=M?("string"!=typeof M&&(M=-M),this.utcOffset(M,z),this):-this.utcOffset()}function sp(M){return this.utcOffset(0,M)}function up(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(dp(this),"m")),this}function fp(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var M=Wp(RM,this._i);null!=M?this.utcOffset(M):this.utcOffset(0,!0)}return this}function Rp(M){return!!this.isValid()&&(M=M?Kb(M).utcOffset():0,(this.utcOffset()-M)%60==0)}function lp(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Lp(){if(!e(this._isDSTShifted))return this._isDSTShifted;var M,z={};return l(z,this),(z=Ub(z))._a?(M=z._isUTC?d(z._a):Kb(z._a),this._isDSTShifted=this.isValid()&&ep(z._a,M.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Np(){return!!this.isValid()&&!this._isUTC}function Bp(){return!!this.isValid()&&this._isUTC}function Xp(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var hp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function gp(M,z){var b,p,O,o=M,c=null;return Ap(M)?o={ms:M._milliseconds,d:M._days,M:M._months}:n(M)||!isNaN(+M)?(o={},z?o[z]=+M:o.milliseconds=+M):(c=hp.exec(M))?(b="-"===c[1]?-1:1,o={y:0,d:_M(c[PM])*b,h:_M(c[jM])*b,m:_M(c[IM])*b,s:_M(c[HM])*b,ms:_M(qp(1e3*c[YM]))*b}):(c=mp.exec(M))?(b="-"===c[1]?-1:1,o={y:Tp(c[2],b),M:Tp(c[3],b),w:Tp(c[4],b),d:Tp(c[5],b),h:Tp(c[6],b),m:Tp(c[7],b),s:Tp(c[8],b)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(O=_p(Kb(o.from),Kb(o.to)),(o={}).ms=O.milliseconds,o.M=O.months),p=new cp(o),Ap(M)&&A(M,"_locale")&&(p._locale=M._locale),Ap(M)&&A(M,"_isValid")&&(p._isValid=M._isValid),p}function Tp(M,z){var b=M&&parseFloat(M.replace(",","."));return(isNaN(b)?0:b)*z}function yp(M,z){var b={};return b.months=z.month()-M.month()+12*(z.year()-M.year()),M.clone().add(b.months,"M").isAfter(z)&&--b.months,b.milliseconds=+z-+M.clone().add(b.months,"M"),b}function _p(M,z){var b;return M.isValid()&&z.isValid()?(z=tp(z,M),M.isBefore(z)?b=yp(M,z):((b=yp(z,M)).milliseconds=-b.milliseconds,b.months=-b.months),b):{milliseconds:0,months:0}}function Sp(M,z){return function(b,p){var O;return null===p||isNaN(+p)||(g(z,"moment()."+z+"(period, number) is deprecated. Please use moment()."+z+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),O=b,b=p,p=O),vp(this,gp(b,p),M),this}}function vp(M,z,b,O){var o=z._milliseconds,c=qp(z._days),A=qp(z._months);M.isValid()&&(O=null==O||O,A&&tz(M,ZM(M,"Month")+A*b),c&&$M(M,"Date",ZM(M,"Date")+c*b),o&&M._d.setTime(M._d.valueOf()+o*b),O&&p.updateOffset(M,c||A))}gp.fn=cp.prototype,gp.invalid=op;var kp=Sp(1,"add"),wp=Sp(-1,"subtract");function Ep(M){return"string"==typeof M||M instanceof String}function Cp(M){return N(M)||a(M)||Ep(M)||n(M)||Pp(M)||Dp(M)||null==M}function Dp(M){var z,b,p=c(M)&&!q(M),O=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],e=o.length;for(z=0;z<e;z+=1)b=o[z],O=O||A(M,b);return p&&O}function Pp(M){var z=o(M),b=!1;return z&&(b=0===M.filter((function(z){return!n(z)&&Ep(M)})).length),z&&b}function xp(M){var z,b,p=c(M)&&!q(M),O=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(z=0;z<o.length;z+=1)b=o[z],O=O||A(M,b);return p&&O}function jp(M,z){var b=M.diff(z,"days",!0);return b<-6?"sameElse":b<-1?"lastWeek":b<0?"lastDay":b<1?"sameDay":b<2?"nextDay":b<7?"nextWeek":"sameElse"}function Ip(M,z){1===arguments.length&&(arguments[0]?Cp(arguments[0])?(M=arguments[0],z=void 0):xp(arguments[0])&&(z=arguments[0],M=void 0):(M=void 0,z=void 0));var b=M||Kb(),O=tp(b,this).startOf("day"),o=p.calendarFormat(this,O)||"sameElse",c=z&&(T(z[o])?z[o].call(this,b):z[o]);return this.format(c||this.localeData().calendar(o,this,Kb(b)))}function Hp(){return new L(this)}function Yp(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=bM(z)||"millisecond")?this.valueOf()>b.valueOf():b.valueOf()<this.clone().startOf(z).valueOf())}function Fp(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=bM(z)||"millisecond")?this.valueOf()<b.valueOf():this.clone().endOf(z).valueOf()<b.valueOf())}function Up(M,z,b,p){var O=N(M)?M:Kb(M),o=N(z)?z:Kb(z);return!!(this.isValid()&&O.isValid()&&o.isValid())&&("("===(p=p||"()")[0]?this.isAfter(O,b):!this.isBefore(O,b))&&(")"===p[1]?this.isBefore(o,b):!this.isAfter(o,b))}function Gp(M,z){var b,p=N(M)?M:Kb(M);return!(!this.isValid()||!p.isValid())&&("millisecond"===(z=bM(z)||"millisecond")?this.valueOf()===p.valueOf():(b=p.valueOf(),this.clone().startOf(z).valueOf()<=b&&b<=this.clone().endOf(z).valueOf()))}function Vp(M,z){return this.isSame(M,z)||this.isAfter(M,z)}function Kp(M,z){return this.isSame(M,z)||this.isBefore(M,z)}function Qp(M,z,b){var p,O,o;if(!this.isValid())return NaN;if(!(p=tp(M,this)).isValid())return NaN;switch(O=6e4*(p.utcOffset()-this.utcOffset()),z=bM(z)){case"year":o=Jp(this,p)/12;break;case"month":o=Jp(this,p);break;case"quarter":o=Jp(this,p)/3;break;case"second":o=(this-p)/1e3;break;case"minute":o=(this-p)/6e4;break;case"hour":o=(this-p)/36e5;break;case"day":o=(this-p-O)/864e5;break;case"week":o=(this-p-O)/6048e5;break;default:o=this-p}return b?o:yM(o)}function Jp(M,z){if(M.date()<z.date())return-Jp(z,M);var b=12*(z.year()-M.year())+(z.month()-M.month()),p=M.clone().add(b,"months");return-(b+(z-p<0?(z-p)/(p-M.clone().add(b-1,"months")):(z-p)/(M.clone().add(b+1,"months")-p)))||0}function Zp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $p(M){if(!this.isValid())return null;var z=!0!==M,b=z?this.clone().utc():this;return b.year()<0||b.year()>9999?H(b,z?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?z?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(b,"Z")):H(b,z?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function MO(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var M,z,b,p,O="moment",o="";return this.isLocal()||(O=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),M="["+O+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",b="-MM-DD[T]HH:mm:ss.SSS",p=o+'[")]',this.format(M+z+b+p)}function zO(M){M||(M=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var z=H(this,M);return this.localeData().postformat(z)}function bO(M,z){return this.isValid()&&(N(M)&&M.isValid()||Kb(M).isValid())?gp({to:this,from:M}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()}function pO(M){return this.from(Kb(),M)}function OO(M,z){return this.isValid()&&(N(M)&&M.isValid()||Kb(M).isValid())?gp({from:this,to:M}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()}function oO(M){return this.to(Kb(),M)}function cO(M){var z;return void 0===M?this._locale._abbr:(null!=(z=ub(M))&&(this._locale=z),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var AO=X("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(M){return void 0===M?this.localeData():this.locale(M)}));function qO(){return this._locale}var eO=1e3,nO=60*eO,aO=60*nO,WO=3506328*aO;function tO(M,z){return(M%z+z)%z}function dO(M,z,b){return M<100&&M>=0?new Date(M+400,z,b)-WO:new Date(M,z,b).valueOf()}function iO(M,z,b){return M<100&&M>=0?Date.UTC(M+400,z,b)-WO:Date.UTC(M,z,b)}function rO(M){var z,b;if(void 0===(M=bM(M))||"millisecond"===M||!this.isValid())return this;switch(b=this._isUTC?iO:dO,M){case"year":z=b(this.year(),0,1);break;case"quarter":z=b(this.year(),this.month()-this.month()%3,1);break;case"month":z=b(this.year(),this.month(),1);break;case"week":z=b(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":z=b(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":z=b(this.year(),this.month(),this.date());break;case"hour":z=this._d.valueOf(),z-=tO(z+(this._isUTC?0:this.utcOffset()*nO),aO);break;case"minute":z=this._d.valueOf(),z-=tO(z,nO);break;case"second":z=this._d.valueOf(),z-=tO(z,eO)}return this._d.setTime(z),p.updateOffset(this,!0),this}function sO(M){var z,b;if(void 0===(M=bM(M))||"millisecond"===M||!this.isValid())return this;switch(b=this._isUTC?iO:dO,M){case"year":z=b(this.year()+1,0,1)-1;break;case"quarter":z=b(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":z=b(this.year(),this.month()+1,1)-1;break;case"week":z=b(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":z=b(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":z=b(this.year(),this.month(),this.date()+1)-1;break;case"hour":z=this._d.valueOf(),z+=aO-tO(z+(this._isUTC?0:this.utcOffset()*nO),aO)-1;break;case"minute":z=this._d.valueOf(),z+=nO-tO(z,nO)-1;break;case"second":z=this._d.valueOf(),z+=eO-tO(z,eO)-1}return this._d.setTime(z),p.updateOffset(this,!0),this}function uO(){return this._d.valueOf()-6e4*(this._offset||0)}function fO(){return Math.floor(this.valueOf()/1e3)}function RO(){return new Date(this.valueOf())}function lO(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]}function LO(){var M=this;return{years:M.year(),months:M.month(),date:M.date(),hours:M.hours(),minutes:M.minutes(),seconds:M.seconds(),milliseconds:M.milliseconds()}}function NO(){return this.isValid()?this.toISOString():null}function BO(){return s(this)}function XO(){return t({},r(this))}function hO(){return r(this).overflow}function mO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function gO(M,z){var b,O,o,c=this._eras||ub("en")._eras;for(b=0,O=c.length;b<O;++b)switch("string"==typeof c[b].since&&(o=p(c[b].since).startOf("day"),c[b].since=o.valueOf()),typeof c[b].until){case"undefined":c[b].until=1/0;break;case"string":o=p(c[b].until).startOf("day").valueOf(),c[b].until=o.valueOf()}return c}function TO(M,z,b){var p,O,o,c,A,q=this.eras();for(M=M.toUpperCase(),p=0,O=q.length;p<O;++p)if(o=q[p].name.toUpperCase(),c=q[p].abbr.toUpperCase(),A=q[p].narrow.toUpperCase(),b)switch(z){case"N":case"NN":case"NNN":if(c===M)return q[p];break;case"NNNN":if(o===M)return q[p];break;case"NNNNN":if(A===M)return q[p]}else if([o,c,A].indexOf(M)>=0)return q[p]}function yO(M,z){var b=M.since<=M.until?1:-1;return void 0===z?p(M.since).year():p(M.since).year()+(z-M.offset)*b}function _O(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].name;if(p[M].until<=b&&b<=p[M].since)return p[M].name}return""}function SO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].narrow;if(p[M].until<=b&&b<=p[M].since)return p[M].narrow}return""}function vO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].abbr;if(p[M].until<=b&&b<=p[M].since)return p[M].abbr}return""}function kO(){var M,z,b,O,o=this.localeData().eras();for(M=0,z=o.length;M<z;++M)if(b=o[M].since<=o[M].until?1:-1,O=this.clone().startOf("day").valueOf(),o[M].since<=O&&O<=o[M].until||o[M].until<=O&&O<=o[M].since)return(this.year()-p(o[M].since).year())*b+o[M].offset;return this.year()}function wO(M){return A(this,"_erasNameRegex")||IO.call(this),M?this._erasNameRegex:this._erasRegex}function EO(M){return A(this,"_erasAbbrRegex")||IO.call(this),M?this._erasAbbrRegex:this._erasRegex}function CO(M){return A(this,"_erasNarrowRegex")||IO.call(this),M?this._erasNarrowRegex:this._erasRegex}function DO(M,z){return z.erasAbbrRegex(M)}function PO(M,z){return z.erasNameRegex(M)}function xO(M,z){return z.erasNarrowRegex(M)}function jO(M,z){return z._eraYearOrdinalRegex||uM}function IO(){var M,z,b,p,O,o=[],c=[],A=[],q=[],e=this.eras();for(M=0,z=e.length;M<z;++M)b=TM(e[M].name),p=TM(e[M].abbr),O=TM(e[M].narrow),c.push(b),o.push(p),A.push(O),q.push(b),q.push(p),q.push(O);this._erasRegex=new RegExp("^("+q.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+c.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+A.join("|")+")","i")}function HO(M,z){x(0,[M,M.length],0,z)}function YO(M){return QO.call(this,M,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function FO(M){return QO.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)}function UO(){return Bz(this.year(),1,4)}function GO(){return Bz(this.isoWeekYear(),1,4)}function VO(){var M=this.localeData()._week;return Bz(this.year(),M.dow,M.doy)}function KO(){var M=this.localeData()._week;return Bz(this.weekYear(),M.dow,M.doy)}function QO(M,z,b,p,O){var o;return null==M?Nz(this,p,O).year:(z>(o=Bz(M,p,O))&&(z=o),JO.call(this,M,z,b,p,O))}function JO(M,z,b,p,O){var o=Lz(M,z,b,p,O),c=Rz(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}function ZO(M){return null==M?Math.ceil((this.month()+1)/3):this.month(3*(M-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"),hM("N",DO),hM("NN",DO),hM("NNN",DO),hM("NNNN",PO),hM("NNNNN",xO),vM(["N","NN","NNN","NNNN","NNNNN"],(function(M,z,b,p){var O=b._locale.erasParse(M,p,b._strict);O?r(b).era=O:r(b).invalidEra=M})),hM("y",uM),hM("yy",uM),hM("yyy",uM),hM("yyyy",uM),hM("yo",jO),vM(["y","yy","yyy","yyyy"],CM),vM(["yo"],(function(M,z,b,p){var O;b._locale._eraYearOrdinalRegex&&(O=M.match(b._locale._eraYearOrdinalRegex)),b._locale.eraYearOrdinalParse?z[CM]=b._locale.eraYearOrdinalParse(M,O):z[CM]=parseInt(M,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),HO("gggg","weekYear"),HO("ggggg","weekYear"),HO("GGGG","isoWeekYear"),HO("GGGGG","isoWeekYear"),hM("G",fM),hM("g",fM),hM("GG",WM,qM),hM("gg",WM,qM),hM("GGGG",rM,nM),hM("gggg",rM,nM),hM("GGGGG",sM,aM),hM("ggggg",sM,aM),kM(["gggg","ggggg","GGGG","GGGGG"],(function(M,z,b,p){z[p.substr(0,2)]=_M(M)})),kM(["gg","GG"],(function(M,z,b,O){z[O]=p.parseTwoDigitYear(M)})),x("Q",0,"Qo","quarter"),hM("Q",AM),vM("Q",(function(M,z){z[DM]=3*(_M(M)-1)})),x("D",["DD",2],"Do","date"),hM("D",WM,BM),hM("DD",WM,qM),hM("Do",(function(M,z){return M?z._dayOfMonthOrdinalParse||z._ordinalParse:z._dayOfMonthOrdinalParseLenient})),vM(["D","DD"],PM),vM("Do",(function(M,z){z[PM]=_M(M.match(WM)[0])}));var $O=JM("Date",!0);function Mo(M){var z=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==M?z:this.add(M-z,"d")}x("DDD",["DDDD",3],"DDDo","dayOfYear"),hM("DDD",iM),hM("DDDD",eM),vM(["DDD","DDDD"],(function(M,z,b){b._dayOfYear=_M(M)})),x("m",["mm",2],0,"minute"),hM("m",WM,XM),hM("mm",WM,qM),vM(["m","mm"],IM);var zo=JM("Minutes",!1);x("s",["ss",2],0,"second"),hM("s",WM,XM),hM("ss",WM,qM),vM(["s","ss"],HM);var bo,po,Oo=JM("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()})),hM("S",iM,AM),hM("SS",iM,qM),hM("SSS",iM,eM),bo="SSSS";bo.length<=9;bo+="S")hM(bo,uM);function oo(M,z){z[YM]=_M(1e3*("0."+M))}for(bo="S";bo.length<=9;bo+="S")vM(bo,oo);function co(){return this._isUTC?"UTC":""}function Ao(){return this._isUTC?"Coordinated Universal Time":""}po=JM("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var qo=L.prototype;function eo(M){return Kb(1e3*M)}function no(){return Kb.apply(null,arguments).parseZone()}function ao(M){return M}qo.add=kp,qo.calendar=Ip,qo.clone=Hp,qo.diff=Qp,qo.endOf=sO,qo.format=zO,qo.from=bO,qo.fromNow=pO,qo.to=OO,qo.toNow=oO,qo.get=Mz,qo.invalidAt=hO,qo.isAfter=Yp,qo.isBefore=Fp,qo.isBetween=Up,qo.isSame=Gp,qo.isSameOrAfter=Vp,qo.isSameOrBefore=Kp,qo.isValid=BO,qo.lang=AO,qo.locale=cO,qo.localeData=qO,qo.max=Jb,qo.min=Qb,qo.parsingFlags=XO,qo.set=zz,qo.startOf=rO,qo.subtract=wp,qo.toArray=lO,qo.toObject=LO,qo.toDate=RO,qo.toISOString=$p,qo.inspect=MO,"undefined"!=typeof Symbol&&null!=Symbol.for&&(qo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),qo.toJSON=NO,qo.toString=Zp,qo.unix=fO,qo.valueOf=uO,qo.creationData=mO,qo.eraName=_O,qo.eraNarrow=SO,qo.eraAbbr=vO,qo.eraYear=kO,qo.year=KM,qo.isLeapYear=QM,qo.weekYear=YO,qo.isoWeekYear=FO,qo.quarter=qo.quarters=ZO,qo.month=dz,qo.daysInMonth=iz,qo.week=qo.weeks=Tz,qo.isoWeek=qo.isoWeeks=yz,qo.weeksInYear=VO,qo.weeksInWeekYear=KO,qo.isoWeeksInYear=UO,qo.isoWeeksInISOWeekYear=GO,qo.date=$O,qo.day=qo.days=Fz,qo.weekday=Uz,qo.isoWeekday=Gz,qo.dayOfYear=Mo,qo.hour=qo.hours=Ob,qo.minute=qo.minutes=zo,qo.second=qo.seconds=Oo,qo.millisecond=qo.milliseconds=po,qo.utcOffset=ip,qo.utc=sp,qo.local=up,qo.parseZone=fp,qo.hasAlignedHourOffset=Rp,qo.isDST=lp,qo.isLocal=Np,qo.isUtcOffset=Bp,qo.isUtc=Xp,qo.isUTC=Xp,qo.zoneAbbr=co,qo.zoneName=Ao,qo.dates=X("dates accessor is deprecated. Use date instead.",$O),qo.months=X("months accessor is deprecated. Use month instead",dz),qo.years=X("years accessor is deprecated. Use year instead",KM),qo.zone=X("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rp),qo.isDSTShifted=X("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Lp);var Wo=S.prototype;function to(M,z,b,p){var O=ub(),o=d().set(p,z);return O[b](o,M)}function io(M,z,b){if(n(M)&&(z=M,M=void 0),M=M||"",null!=z)return to(M,z,b,"month");var p,O=[];for(p=0;p<12;p++)O[p]=to(M,p,b,"month");return O}function ro(M,z,b,p){"boolean"==typeof M?(n(z)&&(b=z,z=void 0),z=z||""):(b=z=M,M=!1,n(z)&&(b=z,z=void 0),z=z||"");var O,o=ub(),c=M?o._week.dow:0,A=[];if(null!=b)return to(z,(b+c)%7,p,"day");for(O=0;O<7;O++)A[O]=to(z,(O+c)%7,p,"day");return A}function so(M,z){return io(M,z,"months")}function uo(M,z){return io(M,z,"monthsShort")}function fo(M,z,b){return ro(M,z,b,"weekdays")}function Ro(M,z,b){return ro(M,z,b,"weekdaysShort")}function lo(M,z,b){return ro(M,z,b,"weekdaysMin")}Wo.calendar=k,Wo.longDateFormat=U,Wo.invalidDate=V,Wo.ordinal=J,Wo.preparse=ao,Wo.postformat=ao,Wo.relativeTime=$,Wo.pastFuture=MM,Wo.set=y,Wo.eras=gO,Wo.erasParse=TO,Wo.erasConvertYear=yO,Wo.erasAbbrRegex=EO,Wo.erasNameRegex=wO,Wo.erasNarrowRegex=CO,Wo.months=ez,Wo.monthsShort=nz,Wo.monthsParse=Wz,Wo.monthsRegex=sz,Wo.monthsShortRegex=rz,Wo.week=Xz,Wo.firstDayOfYear=gz,Wo.firstDayOfWeek=mz,Wo.weekdays=xz,Wo.weekdaysMin=Iz,Wo.weekdaysShort=jz,Wo.weekdaysParse=Yz,Wo.weekdaysRegex=Vz,Wo.weekdaysShortRegex=Kz,Wo.weekdaysMinRegex=Qz,Wo.isPM=bb,Wo.meridiem=ob,ib("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(M){var z=M%10;return M+(1===_M(M%100/10)?"th":1===z?"st":2===z?"nd":3===z?"rd":"th")}}),p.lang=X("moment.lang is deprecated. Use moment.locale instead.",ib),p.langData=X("moment.langData is deprecated. Use moment.localeData instead.",ub);var Lo=Math.abs;function No(){var M=this._data;return this._milliseconds=Lo(this._milliseconds),this._days=Lo(this._days),this._months=Lo(this._months),M.milliseconds=Lo(M.milliseconds),M.seconds=Lo(M.seconds),M.minutes=Lo(M.minutes),M.hours=Lo(M.hours),M.months=Lo(M.months),M.years=Lo(M.years),this}function Bo(M,z,b,p){var O=gp(z,b);return M._milliseconds+=p*O._milliseconds,M._days+=p*O._days,M._months+=p*O._months,M._bubble()}function Xo(M,z){return Bo(this,M,z,1)}function ho(M,z){return Bo(this,M,z,-1)}function mo(M){return M<0?Math.floor(M):Math.ceil(M)}function go(){var M,z,b,p,O,o=this._milliseconds,c=this._days,A=this._months,q=this._data;return o>=0&&c>=0&&A>=0||o<=0&&c<=0&&A<=0||(o+=864e5*mo(yo(A)+c),c=0,A=0),q.milliseconds=o%1e3,M=yM(o/1e3),q.seconds=M%60,z=yM(M/60),q.minutes=z%60,b=yM(z/60),q.hours=b%24,c+=yM(b/24),A+=O=yM(To(c)),c-=mo(yo(O)),p=yM(A/12),A%=12,q.days=c,q.months=A,q.years=p,this}function To(M){return 4800*M/146097}function yo(M){return 146097*M/4800}function _o(M){if(!this.isValid())return NaN;var z,b,p=this._milliseconds;if("month"===(M=bM(M))||"quarter"===M||"year"===M)switch(z=this._days+p/864e5,b=this._months+To(z),M){case"month":return b;case"quarter":return b/3;case"year":return b/12}else switch(z=this._days+Math.round(yo(this._months)),M){case"week":return z/7+p/6048e5;case"day":return z+p/864e5;case"hour":return 24*z+p/36e5;case"minute":return 1440*z+p/6e4;case"second":return 86400*z+p/1e3;case"millisecond":return Math.floor(864e5*z)+p;default:throw new Error("Unknown unit "+M)}}function So(M){return function(){return this.as(M)}}var vo=So("ms"),ko=So("s"),wo=So("m"),Eo=So("h"),Co=So("d"),Do=So("w"),Po=So("M"),xo=So("Q"),jo=So("y"),Io=vo;function Ho(){return gp(this)}function Yo(M){return M=bM(M),this.isValid()?this[M+"s"]():NaN}function Fo(M){return function(){return this.isValid()?this._data[M]:NaN}}var Uo=Fo("milliseconds"),Go=Fo("seconds"),Vo=Fo("minutes"),Ko=Fo("hours"),Qo=Fo("days"),Jo=Fo("months"),Zo=Fo("years");function $o(){return yM(this.days()/7)}var Mc=Math.round,zc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bc(M,z,b,p,O){return O.relativeTime(z||1,!!b,M,p)}function pc(M,z,b,p){var O=gp(M).abs(),o=Mc(O.as("s")),c=Mc(O.as("m")),A=Mc(O.as("h")),q=Mc(O.as("d")),e=Mc(O.as("M")),n=Mc(O.as("w")),a=Mc(O.as("y")),W=o<=b.ss&&["s",o]||o<b.s&&["ss",o]||c<=1&&["m"]||c<b.m&&["mm",c]||A<=1&&["h"]||A<b.h&&["hh",A]||q<=1&&["d"]||q<b.d&&["dd",q];return null!=b.w&&(W=W||n<=1&&["w"]||n<b.w&&["ww",n]),(W=W||e<=1&&["M"]||e<b.M&&["MM",e]||a<=1&&["y"]||["yy",a])[2]=z,W[3]=+M>0,W[4]=p,bc.apply(null,W)}function Oc(M){return void 0===M?Mc:"function"==typeof M&&(Mc=M,!0)}function oc(M,z){return void 0!==zc[M]&&(void 0===z?zc[M]:(zc[M]=z,"s"===M&&(zc.ss=z-1),!0))}function cc(M,z){if(!this.isValid())return this.localeData().invalidDate();var b,p,O=!1,o=zc;return"object"==typeof M&&(z=M,M=!1),"boolean"==typeof M&&(O=M),"object"==typeof z&&(o=Object.assign({},zc,z),null!=z.s&&null==z.ss&&(o.ss=z.s-1)),p=pc(this,!O,o,b=this.localeData()),O&&(p=b.pastFuture(+this,p)),b.postformat(p)}var Ac=Math.abs;function qc(M){return(M>0)-(M<0)||+M}function ec(){if(!this.isValid())return this.localeData().invalidDate();var M,z,b,p,O,o,c,A,q=Ac(this._milliseconds)/1e3,e=Ac(this._days),n=Ac(this._months),a=this.asSeconds();return a?(M=yM(q/60),z=yM(M/60),q%=60,M%=60,b=yM(n/12),n%=12,p=q?q.toFixed(3).replace(/\.?0+$/,""):"",O=a<0?"-":"",o=qc(this._months)!==qc(a)?"-":"",c=qc(this._days)!==qc(a)?"-":"",A=qc(this._milliseconds)!==qc(a)?"-":"",O+"P"+(b?o+b+"Y":"")+(n?o+n+"M":"")+(e?c+e+"D":"")+(z||M||q?"T":"")+(z?A+z+"H":"")+(M?A+M+"M":"")+(q?A+p+"S":"")):"P0D"}var nc=cp.prototype;return nc.isValid=Op,nc.abs=No,nc.add=Xo,nc.subtract=ho,nc.as=_o,nc.asMilliseconds=vo,nc.asSeconds=ko,nc.asMinutes=wo,nc.asHours=Eo,nc.asDays=Co,nc.asWeeks=Do,nc.asMonths=Po,nc.asQuarters=xo,nc.asYears=jo,nc.valueOf=Io,nc._bubble=go,nc.clone=Ho,nc.get=Yo,nc.milliseconds=Uo,nc.seconds=Go,nc.minutes=Vo,nc.hours=Ko,nc.days=Qo,nc.weeks=$o,nc.months=Jo,nc.years=Zo,nc.humanize=cc,nc.toISOString=ec,nc.toString=ec,nc.toJSON=ec,nc.locale=cO,nc.localeData=qO,nc.toIsoString=X("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ec),nc.lang=AO,x("X",0,0,"unix"),x("x",0,0,"valueOf"),hM("x",fM),hM("X",LM),vM("X",(function(M,z,b){b._d=new Date(1e3*parseFloat(M))})),vM("x",(function(M,z,b){b._d=new Date(_M(M))})),
|
|
1
|
+
!function(M,z){"object"==typeof exports&&"undefined"!=typeof module?z(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/get"),require("@digitransit-component/digitransit-component-suggestion-item"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),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/get","@digitransit-component/digitransit-component-suggestion-item","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","@digitransit-component/digitransit-component-icon","lodash/isEmpty","react-modal","@digitransit-component/digitransit-component-dialog-modal"],z):z((M="undefined"!=typeof globalThis?globalThis:M||self).DTAutosuggest={},M.PropTypes,M.React,M.i18next,M.cx,M.Autosuggest,M.debounce,M.flatten,M.take,M.isString,M.orderBy,M.uniqWith,M.get,M.SuggestionItem,M.isEqual,M.memoize,M.escapeRegExp,M.cloneDeep,M.Icon,M.isEmpty,M.ReactModal,M.DialogModal)}(this,(function(M,z,b,p,O,o,c,A,q,e,n,a,W,t,d,i,r,s,u,f,R,l){"use strict";function L(M){return M&&"object"==typeof M&&"default"in M?M:{default:M}}var N=L(z),B=L(b),X=L(p),h=L(O),m=L(o),g=L(c),T=L(A),y=L(q),_=L(e),S=L(n),v=L(a),k=L(W),w=L(t),E=L(d),C=L(i),D=L(r),P=L(s),x=L(u),j=L(f),I=L(R),H=L(l);function Y(M){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Y(M)}function F(M){var z=function(M,z){if("object"!=Y(M)||!M)return M;var b=M[Symbol.toPrimitive];if(void 0!==b){var p=b.call(M,z||"default");if("object"!=Y(p))return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===z?String:Number)(M)}(M,"string");return"symbol"==Y(z)?z:String(z)}function U(M,z,b){return(z=F(z))in M?Object.defineProperty(M,z,{value:b,enumerable:!0,configurable:!0,writable:!0}):M[z]=b,M}function G(M,z){(null==z||z>M.length)&&(z=M.length);for(var b=0,p=new Array(z);b<z;b++)p[b]=M[b];return p}function V(M,z){return function(M){if(Array.isArray(M))return M}(M)||function(M,z){var b=null==M?null:"undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(null!=b){var p,O,o,c,A=[],q=!0,e=!1;try{if(o=(b=b.call(M)).next,0===z){if(Object(b)!==b)return;q=!1}else for(;!(q=(p=o.call(b)).done)&&(A.push(p.value),A.length!==z);q=!0);}catch(M){e=!0,O=M}finally{try{if(!q&&null!=b.return&&(c=b.return(),Object(c)!==c))return}finally{if(e)throw O}}return A}}(M,z)||function(M,z){if(M){if("string"==typeof M)return G(M,z);var b=Object.prototype.toString.call(M).slice(8,-1);return"Object"===b&&M.constructor&&(b=M.constructor.name),"Map"===b||"Set"===b?Array.from(M):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?G(M,z):void 0}}(M,z)||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 K(M,z){return M&&z&&M===z}var Q=["stop","station","favouriteStop","favouriteStation"],J=["favouriteVehicleRentalStation","bikestation"];function Z(M){if(!M)return"";var z=M.split(":");return 0===z.length?"":`citybikes${z[0]}:bikestation:${z[1]}`}function $(M,z){var b=M.properties,p=z.properties;if("FutureRoute"===M.type&&"FutureRoute"===z.type){var O=b.origin,o=b.destination,c=p.origin,A=p.destination;return`${O.name}//${O.locality}//${o.name}//${o.locality}`===`${c.name}//${c.locality}//${A.name}//${A.locality}`}if("FutureRoute"===M.type||"FutureRoute"===z.type)return!1;if(J.includes(b.layer)&&J.includes(p.layer))return(b.gid||Z(b.labelId))===(p.gid||Z(p.labelId));if(b.gtfsId&&p.gtfsId)return b.gtfsId===p.gtfsId;if(Q.includes(b.layer)&&Q.includes(p.layer)&&b.gid&&p.gid)return b.gid===p.gid;var q=M&&M.geometry?M.geometry.coordinates:void 0,e=z&&z.geometry?z.geometry.coordinates:void 0;return!!(q&&e&&Math.abs(q[0]-e[0])<1e-6&&Math.abs(q[1]-e[1])<1e-6&&(K(b.name,p.name)||K(b.label,p.label)||K(b.address,p.address)||K(b.address,p.label)||K(b.label,p.address)))}var MM=M=>_.default(M)?M.toLowerCase():"",zM="back",bM="currentPosition",pM="favouriteStop",OM="favouriteStation",oM="favouritePlace",cM="favouriteRoute",AM="favouriteVehicleRentalStation",qM="futureRoute",eM="station",nM="selectFromMap",aM="ownLocations",WM="stop",tM="bikestation",dM="carpark",iM="bikepark",rM=M=>{var z=M.layer,b=M.type;return"stop"===z||"favouriteStop"===z||"stop"===b||"favouriteStop"===b},sM=(M,z)=>{switch(M){case bM:return 1;case zM:return.9;case nM:return.8;case aM:return.79;case OM:case oM:case pM:case cM:case AM:return.45;case qM:return.44;case eM:return _.default(z)&&0===z.indexOf("gtfs")?.43:.42;case dM:case iM:case tM:return.38;case WM:return.36;default:return.41}},uM=function(M,z){var b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Array.isArray(z))return z;var p=z=>_.default(z)&&M&&M.test(z),O=MM(b),o=p(O),c=S.default(z,[M=>o&&p(MM(M.properties.shortName))&&0===MM(M.properties.shortName).indexOf(O)?1:0,M=>{var z=M.properties,b=z.confidence,p=z.layer,o=z.source;if(0===O.length)return sM(p,o);if(!b)return sM(p,o)+((M,z)=>_.default(M)&&0!==M.length?["name","label","address","shortName"].map((M=>z[M])).filter((M=>_.default(M)&&M.length>0)).map((z=>{var b=MM(z);return 0===b.indexOf(M)?.5+M.length/b.length:.5*M.length/(M.length+1)})).reduce(((M,z)=>z>M?z:M),0):0)(O,M.properties);switch(p){case eM:return b+(0===o.indexOf("gtfs")?.02:.01);case WM:case dM:case iM:return b-.05;case tM:return b-.04;default:return b}}],["desc","desc"]);return v.default(c,$)},fM=(M,z)=>null!=z&&-1!==M.lastIndexOf(z)?M.substring(0,M.lastIndexOf(z)-1):M;function RM(M,z,b){if("string"==typeof z&&z.length>0){var p=z.toLowerCase().trim(),O=p.includes(" ")||p.includes(",");return M.filter((M=>{var z=[];b.forEach((b=>{var p=k.default(M,b);O||"properties.label"!==b&&"address"!==b||!p||((p=p.split(",")).length>2?p.splice(p.length-2,2):p.length>1&&p.splice(p.length-1,1),p=p.join(",")),p&&(z=O?z.concat(p.toLowerCase()):z.concat(p.toLowerCase().replace(/,/g," ").split(" ")))}));for(var o=0;o<z.length;o++)if(0===z[o].indexOf(p))return!0;return!1}))}return M}function lM(M,z){return M?Object.keys(M).map((b=>{var p=z||b,O=M[b];return"object"==typeof O?lM(O,p):`${encodeURIComponent(p)}=${encodeURIComponent(O)}`})).join("&"):""}var LM=require("axios").default;function NM(M,z){return LM.get(encodeURI(M)+(z?(-1===M.search(/\?/)?"?":"&")+lM(z):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((M=>M.data))}function BM(M,z){var b=Object.keys(M);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(M);z&&(p=p.filter((function(z){return Object.getOwnPropertyDescriptor(M,z).enumerable}))),b.push.apply(b,p)}return b}function XM(M){for(var z=1;z<arguments.length;z++){var b=null!=arguments[z]?arguments[z]:{};z%2?BM(Object(b),!0).forEach((function(z){U(M,z,b[z])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(b)):BM(Object(b)).forEach((function(z){Object.defineProperty(M,z,Object.getOwnPropertyDescriptor(b,z))}))}return M}var hM="https://api.digitransit.fi/geocoding/v1/search";function mM(M,z,b,p,O,o,c,A){var q=M?M.trim():null;if(null==q||q.length<1||c&&!c.test(q))return Promise.resolve([]);var e=o||hM,n=XM(XM(XM({text:q},z),p),{},{lang:b});if(O&&(n=XM(XM({},n),{},{sources:O})),A){var a=A.toString();n=XM(XM({},n),{},{layers:a})}return NM(e,n).then((M=>M.features))}function gM(M,z){var b=Object.keys(M);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(M);z&&(p=p.filter((function(z){return Object.getOwnPropertyDescriptor(M,z).enumerable}))),b.push.apply(b,p)}return b}function TM(M){for(var z=1;z<arguments.length;z++){var b=null!=arguments[z]?arguments[z]:{};z%2?gM(Object(b),!0).forEach((function(z){U(M,z,b[z])})):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(b)):gM(Object(b)).forEach((function(z){Object.defineProperty(M,z,Object.getOwnPropertyDescriptor(b,z))}))}return M}function yM(M,z){if(!M||M.length<1)return Promise.resolve([]);var b="",p=M.map((M=>{var z="stop"===M.type?"stop":"station",p=`gtfs${M.gtfsId.split(":")[0].toLowerCase()}:${z}:GTFS:${M.gtfsId}`;return M.code&&(p+=`#${M.code}`),b+=`${p},`,TM(TM({},M),{},{gid:p})})).reduce((function(M,z){return M[z.gid]=z,M}),{});return NM(z,{ids:b.slice(0,-1)}).then((M=>M.features.map((M=>({type:"FavouriteStop",properties:{addendum:M.properties.addendum,gid:p[M.properties.gid].gid,code:p[M.properties.gid].code,gtfsId:p[M.properties.gid].gtfsId,lastUpdated:p[M.properties.gid].lastUpdated,favouriteId:p[M.properties.gid].favouriteId,address:M.properties.label,layer:rM(M.properties)?"favouriteStop":"favouriteStation"},geometry:M.geometry})))))}function _M(M,z,b){var p=RM(M,z,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return b&&(p=p.filter((M=>!b.includes(M.properties.layer)))),Promise.resolve(y.default(p,10).map((M=>{var z=TM(TM({},M),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete z.properties.confidence,z})))}var SM=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],vM=["venue","address","street"],kM=["carpark","bikepark"],wM=["stop","station"];var EM=g.default((function(M,z,b,p,O,o,c,A,q,e){var n=c.input,a=p.getPositions,W=p.getFavouriteLocations,t=p.getOldSearches,d=p.getFavouriteStops,i=p.parkingAreaSources,r=p.getLanguage,s=p.getStopAndStationsQuery,u=p.getFavouriteVehicleRentalStationsQuery,f=p.getFavouriteVehicleRentalStations,R=p.getFavouriteRoutesQuery,l=p.getFavouriteRoutes,L=p.getRoutesQuery,N=p.context,B=p.isPeliasLocationAware,X=p.minimalRegexp,h=p.lineRegexp,m=p.URL_PELIAS,g=p.URL_PELIAS_PLACE,_=p.feedIDs,S=p.geocodingSearchParams,v=p.geocodingSources,k=p.getFutureRoutes,w=p.cityBikeNetworks,E=!M||0===M.length,C=!z||0===z.length,D=a(N),P=[],x={type:"all",term:n,results:[]},j=r(N),I=B&&null!=e&&e.lat&&null!=e&&e.lon?{"focus.point.lat":e.lat.toFixed(3),"focus.point.lon":e.lon.toFixed(3)}:{},H=b?b.split("-")[1]:void 0;if(M.includes("CurrentPosition")&&"geolocation-not-supported"!==D.status&&P.push(function(M,z){return"string"!=typeof M||0===M.length?Promise.resolve([{type:"CurrentLocation",address:z.address,lat:z.lat,lon:z.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:z.address,lat:z.lat,lon:z.lon},geometry:{type:"Point",coordinates:[z.lon,z.lat]}}]):Promise.resolve([])}(n,D)),(E||M.includes("MapPosition"))&&P.push(function(M){return"string"!=typeof M||0===M.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([])}(n)),M.includes("FutureRoutes")){var Y=k(N);P.push(y.default(Y,3))}if(M.includes("SelectFromOwnLocations")&&function(M){var z=M.getFavouriteLocations(M.context);if((null==z?void 0:z.length)>0)return!0;var b=M.getFavouriteVehicleRentalStations(M.context);if((null==b?void 0:b.length)>0)return!0;var p=M.getFavouriteStops(M.context);return(null==p?void 0:p.length)>0}(p)&&P.push(function(M){return"string"!=typeof M||0===M.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([])}(n)),E||M.includes("Locations")){var F=S;if(z.includes("Favourite")){var U=W(N);P.push(function(M,z){return Promise.resolve(RM(M,z,["address","name"]).map((M=>({type:"FavouritePlace",properties:TM(TM({},M),{},{label:M.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[M.lon,M.lat]}}))))}(U,n)),z.includes("Back")&&P.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(C||z.includes("Datasource")){var G=["venue","address","street"];M.includes("Stations")&&G.push("station"),P.push(mM(n,F,j,I,v.join(","),m,X,G))}if(C||z.includes("History")){var V=t(N,"endpoint"),K=["bikestation"];K.push(...wM),K.push(...SM),K.push(...kM),P.push(_M(V,n,K))}}if(E||M.includes("ParkingAreas")){if(C||z.includes("Datasource")){var Q=S;o&&10!==o&&(Q.size=o);var J=i?i.join(","):null;P.push(mM(n,Q,j,I,J,m,X,["carpark","bikepark"]).then((M=>O?O(M,H):M)))}if(C||z.includes("History")){var Z=t(N),$=["bikestation"];$.push(...wM),$.push(...SM),$.push(...vM),P.push(_M(Z,n,$))}}var MM=M.includes("Stops"),zM=M.includes("Stations");if(E||MM||zM){if(z.includes("Favourite")){var bM,pM=d(N);bM=pM.every((M=>"station"===M.type))?yM(pM,g).then((M=>O?O(M,H):M)):s(pM).then((M=>yM(M,g))).then((M=>O?O(M,H):M)),P.push(function(M,z,b,p){return M.then((M=>RM(M.filter((M=>"stop"===M.type?b:p)),z,["properties.name","properties.name","properties.address"])))}(bM,n,MM,zM))}if(C||z.includes("Datasource")){var OM=[];MM&&OM.push("stop"),zM&&OM.push("station");var oM=o&&10!==o?{size:o}:{};S&&S["boundary.country"]&&(oM["boundary.country"]=S["boundary.country"]),(E||M.includes("Locations"))&&(oM.dedupestops=1);var cM=_.map((M=>`gtfs${M}`)).join(",");P.push(mM(n,oM,j,I,cM,m,X,OM).then((M=>O?O(M,H):M)))}if(C||z.includes("History")){var AM=t(N).filter((M=>!M.properties.gid||M.properties.gid.includes("GTFS:"))),qM=["bikestation"];qM.push(...SM),qM.push(...vM),qM.push(...kM),MM||qM.push("stop"),zM||qM.push("station"),b?P.push(_M(AM,n,qM).then((M=>O?O(M,H):M))):P.push(_M(AM,n,qM))}}if(E||M.includes("Routes")){if(z.includes("Favourite")){var eM=l(N);P.push(R(eM,n,H,q).then((M=>O?O(M,H,"Routes"):M)))}if(P.push(L(n,_,b,q).then((M=>O?O(M,H,"Routes"):M))),C||z.includes("History")){var nM=t(N),aM=["bikestation"];b&&aM.push(...SM.filter((M=>!(M===b)))),aM.push(...wM),aM.push(...vM),aM.push(...kM),P.push(_M(nM,n,aM).then((M=>O?O(M,H,"Routes"):M)))}}if(E||M.includes("VehicleRentalStations")){if(z.includes("Favourite")){var WM=f(N);P.push(u(WM,n))}if(C||z.includes("Datasource")){var tM=o&&10!==o?{size:o}:{};P.push(mM(n,tM,j,I,w.join(","),m,X,["bikestation"]).then((M=>O?O(M,H,"VehicleRentalStations"):M)))}if(C||z.includes("History")){var dM=t(N),iM=[...wM];iM.push(...SM),iM.push(...vM),iM.push(...kM),P.push(_M(dM,n,iM))}}Promise.all(P).then(T.default).then((M=>{x.results=M})).catch((M=>{x.error=M})).then((()=>{A(TM(TM({},x),{},{results:uM(h,x.results,n)}))}))}),300,{leading:!0}),CM=M=>M.localadmin||M.locality||M.address&&M.address.lastIndexOf(",")<M.address.length-2&&M.address.substring(M.address.lastIndexOf(",")+2)||"",DM=M=>{var z=M.id,b=M.code;return b||(void 0!==z&&void 0!==z.indexOf&&-1!==z.indexOf("#")?z.substring(z.indexOf("#")+1):void 0)},PM=C.default((function(M){var z,b,p=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(M.layer){case"currentPosition":return[M.labelId,M.address];case"selectFromMap":case"ownLocations":case"back":return[M.labelId];case"favouritePlace":return z=M.name,b=M.address,[z||b&&b.split(",")[0],"string"==typeof b?b.replace(new RegExp(`${D.default(z)}([ ,]|$)+`),""):""];case"favouriteVehicleRentalStation":case"bikestation":return[M.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!p&&M.shortName?[M.gtfsId,M.mode.toLowerCase(),M.longName]:[M.shortName,M.longName,M.agency?M.agency.name:void 0];case"venue":case"address":case"street":return[M.name,M.label.replace(new RegExp(`${D.default(M.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return p?[M.name||M.label||M.address&&M.address.split(",")[0],CM(M)]:[M.name,M.id,DM(M),CM(M)];default:return[M.name||M.label||M.address&&M.address.split(",")[0],CM(M)]}}),((M,z)=>{var b=P.default(M);return b.plain=z,b}));function xM(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function jM(M,z){return M(z={exports:{}},z.exports),z.exports}var IM,HM=jM((function(M,z){M.exports=function(){var z,b;function p(){return z.apply(null,arguments)}function O(M){z=M}function o(M){return M instanceof Array||"[object Array]"===Object.prototype.toString.call(M)}function c(M){return null!=M&&"[object Object]"===Object.prototype.toString.call(M)}function A(M,z){return Object.prototype.hasOwnProperty.call(M,z)}function q(M){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(M).length;var z;for(z in M)if(A(M,z))return!1;return!0}function e(M){return void 0===M}function n(M){return"number"==typeof M||"[object Number]"===Object.prototype.toString.call(M)}function a(M){return M instanceof Date||"[object Date]"===Object.prototype.toString.call(M)}function W(M,z){var b,p=[],O=M.length;for(b=0;b<O;++b)p.push(z(M[b],b));return p}function t(M,z){for(var b in z)A(z,b)&&(M[b]=z[b]);return A(z,"toString")&&(M.toString=z.toString),A(z,"valueOf")&&(M.valueOf=z.valueOf),M}function d(M,z,b,p){return Vb(M,z,b,p,!0).utc()}function i(){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 r(M){return null==M._pf&&(M._pf=i()),M._pf}function s(M){var z=null,p=!1,O=M._d&&!isNaN(M._d.getTime());return O&&(z=r(M),p=b.call(z.parsedDateParts,(function(M){return null!=M})),O=z.overflow<0&&!z.empty&&!z.invalidEra&&!z.invalidMonth&&!z.invalidWeekday&&!z.weekdayMismatch&&!z.nullInput&&!z.invalidFormat&&!z.userInvalidated&&(!z.meridiem||z.meridiem&&p),M._strict&&(O=O&&0===z.charsLeftOver&&0===z.unusedTokens.length&&void 0===z.bigHour)),null!=Object.isFrozen&&Object.isFrozen(M)?O:(M._isValid=O,M._isValid)}function u(M){var z=d(NaN);return null!=M?t(r(z),M):r(z).userInvalidated=!0,z}b=Array.prototype.some?Array.prototype.some:function(M){var z,b=Object(this),p=b.length>>>0;for(z=0;z<p;z++)if(z in b&&M.call(this,b[z],z,b))return!0;return!1};var f=p.momentProperties=[],R=!1;function l(M,z){var b,p,O,o=f.length;if(e(z._isAMomentObject)||(M._isAMomentObject=z._isAMomentObject),e(z._i)||(M._i=z._i),e(z._f)||(M._f=z._f),e(z._l)||(M._l=z._l),e(z._strict)||(M._strict=z._strict),e(z._tzm)||(M._tzm=z._tzm),e(z._isUTC)||(M._isUTC=z._isUTC),e(z._offset)||(M._offset=z._offset),e(z._pf)||(M._pf=r(z)),e(z._locale)||(M._locale=z._locale),o>0)for(b=0;b<o;b++)e(O=z[p=f[b]])||(M[p]=O);return M}function L(M){l(this,M),this._d=new Date(null!=M._d?M._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===R&&(R=!0,p.updateOffset(this),R=!1)}function N(M){return M instanceof L||null!=M&&null!=M._isAMomentObject}function B(M){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+M)}function X(M,z){var b=!0;return t((function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,M),b){var O,o,c,q=[],e=arguments.length;for(o=0;o<e;o++){if(O="","object"==typeof arguments[o]){for(c in O+="\n["+o+"] ",arguments[0])A(arguments[0],c)&&(O+=c+": "+arguments[0][c]+", ");O=O.slice(0,-2)}else O=arguments[o];q.push(O)}B(M+"\nArguments: "+Array.prototype.slice.call(q).join("")+"\n"+(new Error).stack),b=!1}return z.apply(this,arguments)}),z)}var h,m={};function g(M,z){null!=p.deprecationHandler&&p.deprecationHandler(M,z),m[M]||(B(z),m[M]=!0)}function T(M){return"undefined"!=typeof Function&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}function y(M){var z,b;for(b in M)A(M,b)&&(T(z=M[b])?this[b]=z:this["_"+b]=z);this._config=M,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function _(M,z){var b,p=t({},M);for(b in z)A(z,b)&&(c(M[b])&&c(z[b])?(p[b]={},t(p[b],M[b]),t(p[b],z[b])):null!=z[b]?p[b]=z[b]:delete p[b]);for(b in M)A(M,b)&&!A(z,b)&&c(M[b])&&(p[b]=t({},p[b]));return p}function S(M){null!=M&&this.set(M)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,h=Object.keys?Object.keys:function(M){var z,b=[];for(z in M)A(M,z)&&b.push(z);return b};var v={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function k(M,z,b){var p=this._calendar[M]||this._calendar.sameElse;return T(p)?p.call(z,b):p}function w(M,z,b){var p=""+Math.abs(M),O=z-p.length;return(M>=0?b?"+":"":"-")+Math.pow(10,Math.max(0,O)).toString().substr(1)+p}var E=/(\[[^\[]*\])|(\\)?([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,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},P={};function x(M,z,b,p){var O=p;"string"==typeof p&&(O=function(){return this[p]()}),M&&(P[M]=O),z&&(P[z[0]]=function(){return w(O.apply(this,arguments),z[1],z[2])}),b&&(P[b]=function(){return this.localeData().ordinal(O.apply(this,arguments),M)})}function j(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function I(M){var z,b,p=M.match(E);for(z=0,b=p.length;z<b;z++)P[p[z]]?p[z]=P[p[z]]:p[z]=j(p[z]);return function(z){var O,o="";for(O=0;O<b;O++)o+=T(p[O])?p[O].call(z,M):p[O];return o}}function H(M,z){return M.isValid()?(z=Y(z,M.localeData()),D[z]=D[z]||I(z),D[z](M)):M.localeData().invalidDate()}function Y(M,z){var b=5;function p(M){return z.longDateFormat(M)||M}for(C.lastIndex=0;b>=0&&C.test(M);)M=M.replace(C,p),C.lastIndex=0,b-=1;return M}var F={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 U(M){var z=this._longDateFormat[M],b=this._longDateFormat[M.toUpperCase()];return z||!b?z:(this._longDateFormat[M]=b.match(E).map((function(M){return"MMMM"===M||"MM"===M||"DD"===M||"dddd"===M?M.slice(1):M})).join(""),this._longDateFormat[M])}var G="Invalid date";function V(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function J(M){return this._ordinal.replace("%d",M)}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 $(M,z,b,p){var O=this._relativeTime[b];return T(O)?O(M,z,b,p):O.replace(/%d/i,M)}function MM(M,z){var b=this._relativeTime[M>0?"future":"past"];return T(b)?b(z):b.replace(/%s/i,z)}var zM={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function bM(M){return"string"==typeof M?zM[M]||zM[M.toLowerCase()]:void 0}function pM(M){var z,b,p={};for(b in M)A(M,b)&&(z=bM(b))&&(p[z]=M[b]);return p}var OM={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oM(M){var z,b=[];for(z in M)A(M,z)&&b.push({unit:z,priority:OM[z]});return b.sort((function(M,z){return M.priority-z.priority})),b}var cM,AM=/\d/,qM=/\d\d/,eM=/\d{3}/,nM=/\d{4}/,aM=/[+-]?\d{6}/,WM=/\d\d?/,tM=/\d\d\d\d?/,dM=/\d\d\d\d\d\d?/,iM=/\d{1,3}/,rM=/\d{1,4}/,sM=/[+-]?\d{1,6}/,uM=/\d+/,fM=/[+-]?\d+/,RM=/Z|[+-]\d\d:?\d\d/gi,lM=/Z|[+-]\d\d(?::?\d\d)?/gi,LM=/[+-]?\d+(\.\d{1,3})?/,NM=/[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,BM=/^[1-9]\d?/,XM=/^([1-9]\d|\d)/;function hM(M,z,b){cM[M]=T(z)?z:function(M,p){return M&&b?b:z}}function mM(M,z){return A(cM,M)?cM[M](z._strict,z._locale):new RegExp(gM(M))}function gM(M){return TM(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(M,z,b,p,O){return z||b||p||O})))}function TM(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function yM(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function _M(M){var z=+M,b=0;return 0!==z&&isFinite(z)&&(b=yM(z)),b}cM={};var SM={};function vM(M,z){var b,p,O=z;for("string"==typeof M&&(M=[M]),n(z)&&(O=function(M,b){b[z]=_M(M)}),p=M.length,b=0;b<p;b++)SM[M[b]]=O}function kM(M,z){vM(M,(function(M,b,p,O){p._w=p._w||{},z(M,p._w,p,O)}))}function wM(M,z,b){null!=z&&A(SM,M)&&SM[M](z,b._a,b,M)}function EM(M){return M%4==0&&M%100!=0||M%400==0}var CM=0,DM=1,PM=2,jM=3,IM=4,HM=5,YM=6,FM=7,UM=8;function GM(M){return EM(M)?366:365}x("Y",0,0,(function(){var M=this.year();return M<=9999?w(M,4):"+"+M})),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"),hM("Y",fM),hM("YY",WM,qM),hM("YYYY",rM,nM),hM("YYYYY",sM,aM),hM("YYYYYY",sM,aM),vM(["YYYYY","YYYYYY"],CM),vM("YYYY",(function(M,z){z[CM]=2===M.length?p.parseTwoDigitYear(M):_M(M)})),vM("YY",(function(M,z){z[CM]=p.parseTwoDigitYear(M)})),vM("Y",(function(M,z){z[CM]=parseInt(M,10)})),p.parseTwoDigitYear=function(M){return _M(M)+(_M(M)>68?1900:2e3)};var VM,KM=JM("FullYear",!0);function QM(){return EM(this.year())}function JM(M,z){return function(b){return null!=b?($M(this,M,b),p.updateOffset(this,z),this):ZM(this,M)}}function ZM(M,z){if(!M.isValid())return NaN;var b=M._d,p=M._isUTC;switch(z){case"Milliseconds":return p?b.getUTCMilliseconds():b.getMilliseconds();case"Seconds":return p?b.getUTCSeconds():b.getSeconds();case"Minutes":return p?b.getUTCMinutes():b.getMinutes();case"Hours":return p?b.getUTCHours():b.getHours();case"Date":return p?b.getUTCDate():b.getDate();case"Day":return p?b.getUTCDay():b.getDay();case"Month":return p?b.getUTCMonth():b.getMonth();case"FullYear":return p?b.getUTCFullYear():b.getFullYear();default:return NaN}}function $M(M,z,b){var p,O,o,c,A;if(M.isValid()&&!isNaN(b)){switch(p=M._d,O=M._isUTC,z){case"Milliseconds":return void(O?p.setUTCMilliseconds(b):p.setMilliseconds(b));case"Seconds":return void(O?p.setUTCSeconds(b):p.setSeconds(b));case"Minutes":return void(O?p.setUTCMinutes(b):p.setMinutes(b));case"Hours":return void(O?p.setUTCHours(b):p.setHours(b));case"Date":return void(O?p.setUTCDate(b):p.setDate(b));case"FullYear":break;default:return}o=b,c=M.month(),A=29!==(A=M.date())||1!==c||EM(o)?A:28,O?p.setUTCFullYear(o,c,A):p.setFullYear(o,c,A)}}function Mz(M){return T(this[M=bM(M)])?this[M]():this}function zz(M,z){if("object"==typeof M){var b,p=oM(M=pM(M)),O=p.length;for(b=0;b<O;b++)this[p[b].unit](M[p[b].unit])}else if(T(this[M=bM(M)]))return this[M](z);return this}function bz(M,z){return(M%z+z)%z}function pz(M,z){if(isNaN(M)||isNaN(z))return NaN;var b=bz(z,12);return M+=(z-b)/12,1===b?EM(M)?29:28:31-b%7%2}VM=Array.prototype.indexOf?Array.prototype.indexOf:function(M){var z;for(z=0;z<this.length;++z)if(this[z]===M)return z;return-1},x("M",["MM",2],"Mo",(function(){return this.month()+1})),x("MMM",0,0,(function(M){return this.localeData().monthsShort(this,M)})),x("MMMM",0,0,(function(M){return this.localeData().months(this,M)})),hM("M",WM,BM),hM("MM",WM,qM),hM("MMM",(function(M,z){return z.monthsShortRegex(M)})),hM("MMMM",(function(M,z){return z.monthsRegex(M)})),vM(["M","MM"],(function(M,z){z[DM]=_M(M)-1})),vM(["MMM","MMMM"],(function(M,z,b,p){var O=b._locale.monthsParse(M,p,b._strict);null!=O?z[DM]=O:r(b).invalidMonth=M}));var Oz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),oz="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),cz=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Az=NM,qz=NM;function ez(M,z){return M?o(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||cz).test(z)?"format":"standalone"][M.month()]:o(this._months)?this._months:this._months.standalone}function nz(M,z){return M?o(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[cz.test(z)?"format":"standalone"][M.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function az(M,z,b){var p,O,o,c=M.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],p=0;p<12;++p)o=d([2e3,p]),this._shortMonthsParse[p]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[p]=this.months(o,"").toLocaleLowerCase();return b?"MMM"===z?-1!==(O=VM.call(this._shortMonthsParse,c))?O:null:-1!==(O=VM.call(this._longMonthsParse,c))?O:null:"MMM"===z?-1!==(O=VM.call(this._shortMonthsParse,c))||-1!==(O=VM.call(this._longMonthsParse,c))?O:null:-1!==(O=VM.call(this._longMonthsParse,c))||-1!==(O=VM.call(this._shortMonthsParse,c))?O:null}function Wz(M,z,b){var p,O,o;if(this._monthsParseExact)return az.call(this,M,z,b);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),p=0;p<12;p++){if(O=d([2e3,p]),b&&!this._longMonthsParse[p]&&(this._longMonthsParse[p]=new RegExp("^"+this.months(O,"").replace(".","")+"$","i"),this._shortMonthsParse[p]=new RegExp("^"+this.monthsShort(O,"").replace(".","")+"$","i")),b||this._monthsParse[p]||(o="^"+this.months(O,"")+"|^"+this.monthsShort(O,""),this._monthsParse[p]=new RegExp(o.replace(".",""),"i")),b&&"MMMM"===z&&this._longMonthsParse[p].test(M))return p;if(b&&"MMM"===z&&this._shortMonthsParse[p].test(M))return p;if(!b&&this._monthsParse[p].test(M))return p}}function tz(M,z){if(!M.isValid())return M;if("string"==typeof z)if(/^\d+$/.test(z))z=_M(z);else if(!n(z=M.localeData().monthsParse(z)))return M;var b=z,p=M.date();return p=p<29?p:Math.min(p,pz(M.year(),b)),M._isUTC?M._d.setUTCMonth(b,p):M._d.setMonth(b,p),M}function dz(M){return null!=M?(tz(this,M),p.updateOffset(this,!0),this):ZM(this,"Month")}function iz(){return pz(this.year(),this.month())}function rz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||uz.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Az),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)}function sz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||uz.call(this),M?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=qz),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)}function uz(){function M(M,z){return z.length-M.length}var z,b,p,O,o=[],c=[],A=[];for(z=0;z<12;z++)b=d([2e3,z]),p=TM(this.monthsShort(b,"")),O=TM(this.months(b,"")),o.push(p),c.push(O),A.push(O),A.push(p);o.sort(M),c.sort(M),A.sort(M),this._monthsRegex=new RegExp("^("+A.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function fz(M,z,b,p,O,o,c){var A;return M<100&&M>=0?(A=new Date(M+400,z,b,p,O,o,c),isFinite(A.getFullYear())&&A.setFullYear(M)):A=new Date(M,z,b,p,O,o,c),A}function Rz(M){var z,b;return M<100&&M>=0?((b=Array.prototype.slice.call(arguments))[0]=M+400,z=new Date(Date.UTC.apply(null,b)),isFinite(z.getUTCFullYear())&&z.setUTCFullYear(M)):z=new Date(Date.UTC.apply(null,arguments)),z}function lz(M,z,b){var p=7+z-b;return-(7+Rz(M,0,p).getUTCDay()-z)%7+p-1}function Lz(M,z,b,p,O){var o,c,A=1+7*(z-1)+(7+b-p)%7+lz(M,p,O);return A<=0?c=GM(o=M-1)+A:A>GM(M)?(o=M+1,c=A-GM(M)):(o=M,c=A),{year:o,dayOfYear:c}}function Nz(M,z,b){var p,O,o=lz(M.year(),z,b),c=Math.floor((M.dayOfYear()-o-1)/7)+1;return c<1?p=c+Bz(O=M.year()-1,z,b):c>Bz(M.year(),z,b)?(p=c-Bz(M.year(),z,b),O=M.year()+1):(O=M.year(),p=c),{week:p,year:O}}function Bz(M,z,b){var p=lz(M,z,b),O=lz(M+1,z,b);return(GM(M)-p+O)/7}function Xz(M){return Nz(M,this._week.dow,this._week.doy).week}x("w",["ww",2],"wo","week"),x("W",["WW",2],"Wo","isoWeek"),hM("w",WM,BM),hM("ww",WM,qM),hM("W",WM,BM),hM("WW",WM,qM),kM(["w","ww","W","WW"],(function(M,z,b,p){z[p.substr(0,1)]=_M(M)}));var hz={dow:0,doy:6};function mz(){return this._week.dow}function gz(){return this._week.doy}function Tz(M){var z=this.localeData().week(this);return null==M?z:this.add(7*(M-z),"d")}function yz(M){var z=Nz(this,1,4).week;return null==M?z:this.add(7*(M-z),"d")}function _z(M,z){return"string"!=typeof M?M:isNaN(M)?"number"==typeof(M=z.weekdaysParse(M))?M:null:parseInt(M,10)}function Sz(M,z){return"string"==typeof M?z.weekdaysParse(M)%7||7:isNaN(M)?null:M}function vz(M,z){return M.slice(z,7).concat(M.slice(0,z))}x("d",0,"do","day"),x("dd",0,0,(function(M){return this.localeData().weekdaysMin(this,M)})),x("ddd",0,0,(function(M){return this.localeData().weekdaysShort(this,M)})),x("dddd",0,0,(function(M){return this.localeData().weekdays(this,M)})),x("e",0,0,"weekday"),x("E",0,0,"isoWeekday"),hM("d",WM),hM("e",WM),hM("E",WM),hM("dd",(function(M,z){return z.weekdaysMinRegex(M)})),hM("ddd",(function(M,z){return z.weekdaysShortRegex(M)})),hM("dddd",(function(M,z){return z.weekdaysRegex(M)})),kM(["dd","ddd","dddd"],(function(M,z,b,p){var O=b._locale.weekdaysParse(M,p,b._strict);null!=O?z.d=O:r(b).invalidWeekday=M})),kM(["d","e","E"],(function(M,z,b,p){z[p]=_M(M)}));var kz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wz="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ez="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cz=NM,Dz=NM,Pz=NM;function xz(M,z){var b=o(this._weekdays)?this._weekdays:this._weekdays[M&&!0!==M&&this._weekdays.isFormat.test(z)?"format":"standalone"];return!0===M?vz(b,this._week.dow):M?b[M.day()]:b}function jz(M){return!0===M?vz(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort}function Iz(M){return!0===M?vz(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin}function Hz(M,z,b){var p,O,o,c=M.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],p=0;p<7;++p)o=d([2e3,1]).day(p),this._minWeekdaysParse[p]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[p]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[p]=this.weekdays(o,"").toLocaleLowerCase();return b?"dddd"===z?-1!==(O=VM.call(this._weekdaysParse,c))?O:null:"ddd"===z?-1!==(O=VM.call(this._shortWeekdaysParse,c))?O:null:-1!==(O=VM.call(this._minWeekdaysParse,c))?O:null:"dddd"===z?-1!==(O=VM.call(this._weekdaysParse,c))||-1!==(O=VM.call(this._shortWeekdaysParse,c))||-1!==(O=VM.call(this._minWeekdaysParse,c))?O:null:"ddd"===z?-1!==(O=VM.call(this._shortWeekdaysParse,c))||-1!==(O=VM.call(this._weekdaysParse,c))||-1!==(O=VM.call(this._minWeekdaysParse,c))?O:null:-1!==(O=VM.call(this._minWeekdaysParse,c))||-1!==(O=VM.call(this._weekdaysParse,c))||-1!==(O=VM.call(this._shortWeekdaysParse,c))?O:null}function Yz(M,z,b){var p,O,o;if(this._weekdaysParseExact)return Hz.call(this,M,z,b);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),p=0;p<7;p++){if(O=d([2e3,1]).day(p),b&&!this._fullWeekdaysParse[p]&&(this._fullWeekdaysParse[p]=new RegExp("^"+this.weekdays(O,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[p]=new RegExp("^"+this.weekdaysShort(O,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[p]=new RegExp("^"+this.weekdaysMin(O,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[p]||(o="^"+this.weekdays(O,"")+"|^"+this.weekdaysShort(O,"")+"|^"+this.weekdaysMin(O,""),this._weekdaysParse[p]=new RegExp(o.replace(".",""),"i")),b&&"dddd"===z&&this._fullWeekdaysParse[p].test(M))return p;if(b&&"ddd"===z&&this._shortWeekdaysParse[p].test(M))return p;if(b&&"dd"===z&&this._minWeekdaysParse[p].test(M))return p;if(!b&&this._weekdaysParse[p].test(M))return p}}function Fz(M){if(!this.isValid())return null!=M?this:NaN;var z=ZM(this,"Day");return null!=M?(M=_z(M,this.localeData()),this.add(M-z,"d")):z}function Uz(M){if(!this.isValid())return null!=M?this:NaN;var z=(this.day()+7-this.localeData()._week.dow)%7;return null==M?z:this.add(M-z,"d")}function Gz(M){if(!this.isValid())return null!=M?this:NaN;if(null!=M){var z=Sz(M,this.localeData());return this.day(this.day()%7?z:z-7)}return this.day()||7}function Vz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=Cz),this._weekdaysStrictRegex&&M?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dz),this._weekdaysShortStrictRegex&&M?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qz(M){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||Jz.call(this),M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pz),this._weekdaysMinStrictRegex&&M?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jz(){function M(M,z){return z.length-M.length}var z,b,p,O,o,c=[],A=[],q=[],e=[];for(z=0;z<7;z++)b=d([2e3,1]).day(z),p=TM(this.weekdaysMin(b,"")),O=TM(this.weekdaysShort(b,"")),o=TM(this.weekdays(b,"")),c.push(p),A.push(O),q.push(o),e.push(p),e.push(O),e.push(o);c.sort(M),A.sort(M),q.sort(M),e.sort(M),this._weekdaysRegex=new RegExp("^("+e.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+q.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+c.join("|")+")","i")}function Zz(){return this.hours()%12||12}function $z(){return this.hours()||24}function Mb(M,z){x(M,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),z)}))}function zb(M,z){return z._meridiemParse}function bb(M){return"p"===(M+"").toLowerCase().charAt(0)}x("H",["HH",2],0,"hour"),x("h",["hh",2],0,Zz),x("k",["kk",2],0,$z),x("hmm",0,0,(function(){return""+Zz.apply(this)+w(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zz.apply(this)+w(this.minutes(),2)+w(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+w(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+w(this.minutes(),2)+w(this.seconds(),2)})),Mb("a",!0),Mb("A",!1),hM("a",zb),hM("A",zb),hM("H",WM,XM),hM("h",WM,BM),hM("k",WM,BM),hM("HH",WM,qM),hM("hh",WM,qM),hM("kk",WM,qM),hM("hmm",tM),hM("hmmss",dM),hM("Hmm",tM),hM("Hmmss",dM),vM(["H","HH"],jM),vM(["k","kk"],(function(M,z,b){var p=_M(M);z[jM]=24===p?0:p})),vM(["a","A"],(function(M,z,b){b._isPm=b._locale.isPM(M),b._meridiem=M})),vM(["h","hh"],(function(M,z,b){z[jM]=_M(M),r(b).bigHour=!0})),vM("hmm",(function(M,z,b){var p=M.length-2;z[jM]=_M(M.substr(0,p)),z[IM]=_M(M.substr(p)),r(b).bigHour=!0})),vM("hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[jM]=_M(M.substr(0,p)),z[IM]=_M(M.substr(p,2)),z[HM]=_M(M.substr(O)),r(b).bigHour=!0})),vM("Hmm",(function(M,z,b){var p=M.length-2;z[jM]=_M(M.substr(0,p)),z[IM]=_M(M.substr(p))})),vM("Hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[jM]=_M(M.substr(0,p)),z[IM]=_M(M.substr(p,2)),z[HM]=_M(M.substr(O))}));var pb=/[ap]\.?m?\.?/i,Ob=JM("Hours",!0);function ob(M,z,b){return M>11?b?"pm":"PM":b?"am":"AM"}var cb,Ab={calendar:v,longDateFormat:F,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:Oz,monthsShort:oz,week:hz,weekdays:kz,weekdaysMin:Ez,weekdaysShort:wz,meridiemParse:pb},qb={},eb={};function nb(M,z){var b,p=Math.min(M.length,z.length);for(b=0;b<p;b+=1)if(M[b]!==z[b])return b;return p}function ab(M){return M?M.toLowerCase().replace("_","-"):M}function Wb(M){for(var z,b,p,O,o=0;o<M.length;){for(z=(O=ab(M[o]).split("-")).length,b=(b=ab(M[o+1]))?b.split("-"):null;z>0;){if(p=db(O.slice(0,z).join("-")))return p;if(b&&b.length>=z&&nb(O,b)>=z-1)break;z--}o++}return cb}function tb(M){return!(!M||!M.match("^[^/\\\\]*$"))}function db(z){var b=null;if(void 0===qb[z]&&M&&M.exports&&tb(z))try{b=cb._abbr,xM(),ib(b)}catch(M){qb[z]=null}return qb[z]}function ib(M,z){var b;return M&&((b=e(z)?ub(M):rb(M,z))?cb=b:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+M+" not found. Did you forget to load it?")),cb._abbr}function rb(M,z){if(null!==z){var b,p=Ab;if(z.abbr=M,null!=qb[M])g("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."),p=qb[M]._config;else if(null!=z.parentLocale)if(null!=qb[z.parentLocale])p=qb[z.parentLocale]._config;else{if(null==(b=db(z.parentLocale)))return eb[z.parentLocale]||(eb[z.parentLocale]=[]),eb[z.parentLocale].push({name:M,config:z}),null;p=b._config}return qb[M]=new S(_(p,z)),eb[M]&&eb[M].forEach((function(M){rb(M.name,M.config)})),ib(M),qb[M]}return delete qb[M],null}function sb(M,z){if(null!=z){var b,p,O=Ab;null!=qb[M]&&null!=qb[M].parentLocale?qb[M].set(_(qb[M]._config,z)):(null!=(p=db(M))&&(O=p._config),z=_(O,z),null==p&&(z.abbr=M),(b=new S(z)).parentLocale=qb[M],qb[M]=b),ib(M)}else null!=qb[M]&&(null!=qb[M].parentLocale?(qb[M]=qb[M].parentLocale,M===ib()&&ib(M)):null!=qb[M]&&delete qb[M]);return qb[M]}function ub(M){var z;if(M&&M._locale&&M._locale._abbr&&(M=M._locale._abbr),!M)return cb;if(!o(M)){if(z=db(M))return z;M=[M]}return Wb(M)}function fb(){return h(qb)}function Rb(M){var z,b=M._a;return b&&-2===r(M).overflow&&(z=b[DM]<0||b[DM]>11?DM:b[PM]<1||b[PM]>pz(b[CM],b[DM])?PM:b[jM]<0||b[jM]>24||24===b[jM]&&(0!==b[IM]||0!==b[HM]||0!==b[YM])?jM:b[IM]<0||b[IM]>59?IM:b[HM]<0||b[HM]>59?HM:b[YM]<0||b[YM]>999?YM:-1,r(M)._overflowDayOfYear&&(z<CM||z>PM)&&(z=PM),r(M)._overflowWeeks&&-1===z&&(z=FM),r(M)._overflowWeekday&&-1===z&&(z=UM),r(M).overflow=z),M}var lb=/^\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)?)?$/,Lb=/^\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)?)?$/,Nb=/Z|[+-]\d\d(?::?\d\d)?/,Bb=[["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]],Xb=[["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/]],hb=/^\/?Date\((-?\d+)/i,mb=/^(?:(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}))$/,gb={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tb(M){var z,b,p,O,o,c,A=M._i,q=lb.exec(A)||Lb.exec(A),e=Bb.length,n=Xb.length;if(q){for(r(M).iso=!0,z=0,b=e;z<b;z++)if(Bb[z][1].exec(q[1])){O=Bb[z][0],p=!1!==Bb[z][2];break}if(null==O)return void(M._isValid=!1);if(q[3]){for(z=0,b=n;z<b;z++)if(Xb[z][1].exec(q[3])){o=(q[2]||" ")+Xb[z][0];break}if(null==o)return void(M._isValid=!1)}if(!p&&null!=o)return void(M._isValid=!1);if(q[4]){if(!Nb.exec(q[4]))return void(M._isValid=!1);c="Z"}M._f=O+(o||"")+(c||""),jb(M)}else M._isValid=!1}function yb(M,z,b,p,O,o){var c=[_b(M),oz.indexOf(z),parseInt(b,10),parseInt(p,10),parseInt(O,10)];return o&&c.push(parseInt(o,10)),c}function _b(M){var z=parseInt(M,10);return z<=49?2e3+z:z<=999?1900+z:z}function Sb(M){return M.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function vb(M,z,b){return!M||wz.indexOf(M)===new Date(z[0],z[1],z[2]).getDay()||(r(b).weekdayMismatch=!0,b._isValid=!1,!1)}function kb(M,z,b){if(M)return gb[M];if(z)return 0;var p=parseInt(b,10),O=p%100;return(p-O)/100*60+O}function wb(M){var z,b=mb.exec(Sb(M._i));if(b){if(z=yb(b[4],b[3],b[2],b[5],b[6],b[7]),!vb(b[1],z,M))return;M._a=z,M._tzm=kb(b[8],b[9],b[10]),M._d=Rz.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),r(M).rfc2822=!0}else M._isValid=!1}function Eb(M){var z=hb.exec(M._i);null===z?(Tb(M),!1===M._isValid&&(delete M._isValid,wb(M),!1===M._isValid&&(delete M._isValid,M._strict?M._isValid=!1:p.createFromInputFallback(M)))):M._d=new Date(+z[1])}function Cb(M,z,b){return null!=M?M:null!=z?z:b}function Db(M){var z=new Date(p.now());return M._useUTC?[z.getUTCFullYear(),z.getUTCMonth(),z.getUTCDate()]:[z.getFullYear(),z.getMonth(),z.getDate()]}function Pb(M){var z,b,p,O,o,c=[];if(!M._d){for(p=Db(M),M._w&&null==M._a[PM]&&null==M._a[DM]&&xb(M),null!=M._dayOfYear&&(o=Cb(M._a[CM],p[CM]),(M._dayOfYear>GM(o)||0===M._dayOfYear)&&(r(M)._overflowDayOfYear=!0),b=Rz(o,0,M._dayOfYear),M._a[DM]=b.getUTCMonth(),M._a[PM]=b.getUTCDate()),z=0;z<3&&null==M._a[z];++z)M._a[z]=c[z]=p[z];for(;z<7;z++)M._a[z]=c[z]=null==M._a[z]?2===z?1:0:M._a[z];24===M._a[jM]&&0===M._a[IM]&&0===M._a[HM]&&0===M._a[YM]&&(M._nextDay=!0,M._a[jM]=0),M._d=(M._useUTC?Rz:fz).apply(null,c),O=M._useUTC?M._d.getUTCDay():M._d.getDay(),null!=M._tzm&&M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),M._nextDay&&(M._a[jM]=24),M._w&&void 0!==M._w.d&&M._w.d!==O&&(r(M).weekdayMismatch=!0)}}function xb(M){var z,b,p,O,o,c,A,q,e;null!=(z=M._w).GG||null!=z.W||null!=z.E?(o=1,c=4,b=Cb(z.GG,M._a[CM],Nz(Kb(),1,4).year),p=Cb(z.W,1),((O=Cb(z.E,1))<1||O>7)&&(q=!0)):(o=M._locale._week.dow,c=M._locale._week.doy,e=Nz(Kb(),o,c),b=Cb(z.gg,M._a[CM],e.year),p=Cb(z.w,e.week),null!=z.d?((O=z.d)<0||O>6)&&(q=!0):null!=z.e?(O=z.e+o,(z.e<0||z.e>6)&&(q=!0)):O=o),p<1||p>Bz(b,o,c)?r(M)._overflowWeeks=!0:null!=q?r(M)._overflowWeekday=!0:(A=Lz(b,p,O,o,c),M._a[CM]=A.year,M._dayOfYear=A.dayOfYear)}function jb(M){if(M._f!==p.ISO_8601)if(M._f!==p.RFC_2822){M._a=[],r(M).empty=!0;var z,b,O,o,c,A,q,e=""+M._i,n=e.length,a=0;for(q=(O=Y(M._f,M._locale).match(E)||[]).length,z=0;z<q;z++)o=O[z],(b=(e.match(mM(o,M))||[])[0])&&((c=e.substr(0,e.indexOf(b))).length>0&&r(M).unusedInput.push(c),e=e.slice(e.indexOf(b)+b.length),a+=b.length),P[o]?(b?r(M).empty=!1:r(M).unusedTokens.push(o),wM(o,b,M)):M._strict&&!b&&r(M).unusedTokens.push(o);r(M).charsLeftOver=n-a,e.length>0&&r(M).unusedInput.push(e),M._a[jM]<=12&&!0===r(M).bigHour&&M._a[jM]>0&&(r(M).bigHour=void 0),r(M).parsedDateParts=M._a.slice(0),r(M).meridiem=M._meridiem,M._a[jM]=Ib(M._locale,M._a[jM],M._meridiem),null!==(A=r(M).era)&&(M._a[CM]=M._locale.erasConvertYear(A,M._a[CM])),Pb(M),Rb(M)}else wb(M);else Tb(M)}function Ib(M,z,b){var p;return null==b?z:null!=M.meridiemHour?M.meridiemHour(z,b):null!=M.isPM?((p=M.isPM(b))&&z<12&&(z+=12),p||12!==z||(z=0),z):z}function Hb(M){var z,b,p,O,o,c,A=!1,q=M._f.length;if(0===q)return r(M).invalidFormat=!0,void(M._d=new Date(NaN));for(O=0;O<q;O++)o=0,c=!1,z=l({},M),null!=M._useUTC&&(z._useUTC=M._useUTC),z._f=M._f[O],jb(z),s(z)&&(c=!0),o+=r(z).charsLeftOver,o+=10*r(z).unusedTokens.length,r(z).score=o,A?o<p&&(p=o,b=z):(null==p||o<p||c)&&(p=o,b=z,c&&(A=!0));t(M,b||z)}function Yb(M){if(!M._d){var z=pM(M._i),b=void 0===z.day?z.date:z.day;M._a=W([z.year,z.month,b,z.hour,z.minute,z.second,z.millisecond],(function(M){return M&&parseInt(M,10)})),Pb(M)}}function Fb(M){var z=new L(Rb(Ub(M)));return z._nextDay&&(z.add(1,"d"),z._nextDay=void 0),z}function Ub(M){var z=M._i,b=M._f;return M._locale=M._locale||ub(M._l),null===z||void 0===b&&""===z?u({nullInput:!0}):("string"==typeof z&&(M._i=z=M._locale.preparse(z)),N(z)?new L(Rb(z)):(a(z)?M._d=z:o(b)?Hb(M):b?jb(M):Gb(M),s(M)||(M._d=null),M))}function Gb(M){var z=M._i;e(z)?M._d=new Date(p.now()):a(z)?M._d=new Date(z.valueOf()):"string"==typeof z?Eb(M):o(z)?(M._a=W(z.slice(0),(function(M){return parseInt(M,10)})),Pb(M)):c(z)?Yb(M):n(z)?M._d=new Date(z):p.createFromInputFallback(M)}function Vb(M,z,b,p,O){var A={};return!0!==z&&!1!==z||(p=z,z=void 0),!0!==b&&!1!==b||(p=b,b=void 0),(c(M)&&q(M)||o(M)&&0===M.length)&&(M=void 0),A._isAMomentObject=!0,A._useUTC=A._isUTC=O,A._l=b,A._i=M,A._f=z,A._strict=p,Fb(A)}function Kb(M,z,b,p){return Vb(M,z,b,p,!1)}p.createFromInputFallback=X("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(M){M._d=new Date(M._i+(M._useUTC?" UTC":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var Qb=X("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var M=Kb.apply(null,arguments);return this.isValid()&&M.isValid()?M<this?this:M:u()})),Jb=X("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var M=Kb.apply(null,arguments);return this.isValid()&&M.isValid()?M>this?this:M:u()}));function Zb(M,z){var b,p;if(1===z.length&&o(z[0])&&(z=z[0]),!z.length)return Kb();for(b=z[0],p=1;p<z.length;++p)z[p].isValid()&&!z[p][M](b)||(b=z[p]);return b}function $b(){return Zb("isBefore",[].slice.call(arguments,0))}function Mp(){return Zb("isAfter",[].slice.call(arguments,0))}var zp=function(){return Date.now?Date.now():+new Date},bp=["year","quarter","month","week","day","hour","minute","second","millisecond"];function pp(M){var z,b,p=!1,O=bp.length;for(z in M)if(A(M,z)&&(-1===VM.call(bp,z)||null!=M[z]&&isNaN(M[z])))return!1;for(b=0;b<O;++b)if(M[bp[b]]){if(p)return!1;parseFloat(M[bp[b]])!==_M(M[bp[b]])&&(p=!0)}return!0}function Op(){return this._isValid}function op(){return gp(NaN)}function cp(M){var z=pM(M),b=z.year||0,p=z.quarter||0,O=z.month||0,o=z.week||z.isoWeek||0,c=z.day||0,A=z.hour||0,q=z.minute||0,e=z.second||0,n=z.millisecond||0;this._isValid=pp(z),this._milliseconds=+n+1e3*e+6e4*q+1e3*A*60*60,this._days=+c+7*o,this._months=+O+3*p+12*b,this._data={},this._locale=ub(),this._bubble()}function Ap(M){return M instanceof cp}function qp(M){return M<0?-1*Math.round(-1*M):Math.round(M)}function ep(M,z,b){var p,O=Math.min(M.length,z.length),o=Math.abs(M.length-z.length),c=0;for(p=0;p<O;p++)(b&&M[p]!==z[p]||!b&&_M(M[p])!==_M(z[p]))&&c++;return c+o}function np(M,z){x(M,0,0,(function(){var M=this.utcOffset(),b="+";return M<0&&(M=-M,b="-"),b+w(~~(M/60),2)+z+w(~~M%60,2)}))}np("Z",":"),np("ZZ",""),hM("Z",lM),hM("ZZ",lM),vM(["Z","ZZ"],(function(M,z,b){b._useUTC=!0,b._tzm=Wp(lM,M)}));var ap=/([\+\-]|\d\d)/gi;function Wp(M,z){var b,p,O=(z||"").match(M);return null===O?null:0===(p=60*(b=((O[O.length-1]||[])+"").match(ap)||["-",0,0])[1]+_M(b[2]))?0:"+"===b[0]?p:-p}function tp(M,z){var b,O;return z._isUTC?(b=z.clone(),O=(N(M)||a(M)?M.valueOf():Kb(M).valueOf())-b.valueOf(),b._d.setTime(b._d.valueOf()+O),p.updateOffset(b,!1),b):Kb(M).local()}function dp(M){return-Math.round(M._d.getTimezoneOffset())}function ip(M,z,b){var O,o=this._offset||0;if(!this.isValid())return null!=M?this:NaN;if(null!=M){if("string"==typeof M){if(null===(M=Wp(lM,M)))return this}else Math.abs(M)<16&&!b&&(M*=60);return!this._isUTC&&z&&(O=dp(this)),this._offset=M,this._isUTC=!0,null!=O&&this.add(O,"m"),o!==M&&(!z||this._changeInProgress?vp(this,gp(M-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:dp(this)}function rp(M,z){return null!=M?("string"!=typeof M&&(M=-M),this.utcOffset(M,z),this):-this.utcOffset()}function sp(M){return this.utcOffset(0,M)}function up(M){return this._isUTC&&(this.utcOffset(0,M),this._isUTC=!1,M&&this.subtract(dp(this),"m")),this}function fp(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var M=Wp(RM,this._i);null!=M?this.utcOffset(M):this.utcOffset(0,!0)}return this}function Rp(M){return!!this.isValid()&&(M=M?Kb(M).utcOffset():0,(this.utcOffset()-M)%60==0)}function lp(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Lp(){if(!e(this._isDSTShifted))return this._isDSTShifted;var M,z={};return l(z,this),(z=Ub(z))._a?(M=z._isUTC?d(z._a):Kb(z._a),this._isDSTShifted=this.isValid()&&ep(z._a,M.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Np(){return!!this.isValid()&&!this._isUTC}function Bp(){return!!this.isValid()&&this._isUTC}function Xp(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var hp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function gp(M,z){var b,p,O,o=M,c=null;return Ap(M)?o={ms:M._milliseconds,d:M._days,M:M._months}:n(M)||!isNaN(+M)?(o={},z?o[z]=+M:o.milliseconds=+M):(c=hp.exec(M))?(b="-"===c[1]?-1:1,o={y:0,d:_M(c[PM])*b,h:_M(c[jM])*b,m:_M(c[IM])*b,s:_M(c[HM])*b,ms:_M(qp(1e3*c[YM]))*b}):(c=mp.exec(M))?(b="-"===c[1]?-1:1,o={y:Tp(c[2],b),M:Tp(c[3],b),w:Tp(c[4],b),d:Tp(c[5],b),h:Tp(c[6],b),m:Tp(c[7],b),s:Tp(c[8],b)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(O=_p(Kb(o.from),Kb(o.to)),(o={}).ms=O.milliseconds,o.M=O.months),p=new cp(o),Ap(M)&&A(M,"_locale")&&(p._locale=M._locale),Ap(M)&&A(M,"_isValid")&&(p._isValid=M._isValid),p}function Tp(M,z){var b=M&&parseFloat(M.replace(",","."));return(isNaN(b)?0:b)*z}function yp(M,z){var b={};return b.months=z.month()-M.month()+12*(z.year()-M.year()),M.clone().add(b.months,"M").isAfter(z)&&--b.months,b.milliseconds=+z-+M.clone().add(b.months,"M"),b}function _p(M,z){var b;return M.isValid()&&z.isValid()?(z=tp(z,M),M.isBefore(z)?b=yp(M,z):((b=yp(z,M)).milliseconds=-b.milliseconds,b.months=-b.months),b):{milliseconds:0,months:0}}function Sp(M,z){return function(b,p){var O;return null===p||isNaN(+p)||(g(z,"moment()."+z+"(period, number) is deprecated. Please use moment()."+z+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),O=b,b=p,p=O),vp(this,gp(b,p),M),this}}function vp(M,z,b,O){var o=z._milliseconds,c=qp(z._days),A=qp(z._months);M.isValid()&&(O=null==O||O,A&&tz(M,ZM(M,"Month")+A*b),c&&$M(M,"Date",ZM(M,"Date")+c*b),o&&M._d.setTime(M._d.valueOf()+o*b),O&&p.updateOffset(M,c||A))}gp.fn=cp.prototype,gp.invalid=op;var kp=Sp(1,"add"),wp=Sp(-1,"subtract");function Ep(M){return"string"==typeof M||M instanceof String}function Cp(M){return N(M)||a(M)||Ep(M)||n(M)||Pp(M)||Dp(M)||null==M}function Dp(M){var z,b,p=c(M)&&!q(M),O=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],e=o.length;for(z=0;z<e;z+=1)b=o[z],O=O||A(M,b);return p&&O}function Pp(M){var z=o(M),b=!1;return z&&(b=0===M.filter((function(z){return!n(z)&&Ep(M)})).length),z&&b}function xp(M){var z,b,p=c(M)&&!q(M),O=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(z=0;z<o.length;z+=1)b=o[z],O=O||A(M,b);return p&&O}function jp(M,z){var b=M.diff(z,"days",!0);return b<-6?"sameElse":b<-1?"lastWeek":b<0?"lastDay":b<1?"sameDay":b<2?"nextDay":b<7?"nextWeek":"sameElse"}function Ip(M,z){1===arguments.length&&(arguments[0]?Cp(arguments[0])?(M=arguments[0],z=void 0):xp(arguments[0])&&(z=arguments[0],M=void 0):(M=void 0,z=void 0));var b=M||Kb(),O=tp(b,this).startOf("day"),o=p.calendarFormat(this,O)||"sameElse",c=z&&(T(z[o])?z[o].call(this,b):z[o]);return this.format(c||this.localeData().calendar(o,this,Kb(b)))}function Hp(){return new L(this)}function Yp(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=bM(z)||"millisecond")?this.valueOf()>b.valueOf():b.valueOf()<this.clone().startOf(z).valueOf())}function Fp(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=bM(z)||"millisecond")?this.valueOf()<b.valueOf():this.clone().endOf(z).valueOf()<b.valueOf())}function Up(M,z,b,p){var O=N(M)?M:Kb(M),o=N(z)?z:Kb(z);return!!(this.isValid()&&O.isValid()&&o.isValid())&&("("===(p=p||"()")[0]?this.isAfter(O,b):!this.isBefore(O,b))&&(")"===p[1]?this.isBefore(o,b):!this.isAfter(o,b))}function Gp(M,z){var b,p=N(M)?M:Kb(M);return!(!this.isValid()||!p.isValid())&&("millisecond"===(z=bM(z)||"millisecond")?this.valueOf()===p.valueOf():(b=p.valueOf(),this.clone().startOf(z).valueOf()<=b&&b<=this.clone().endOf(z).valueOf()))}function Vp(M,z){return this.isSame(M,z)||this.isAfter(M,z)}function Kp(M,z){return this.isSame(M,z)||this.isBefore(M,z)}function Qp(M,z,b){var p,O,o;if(!this.isValid())return NaN;if(!(p=tp(M,this)).isValid())return NaN;switch(O=6e4*(p.utcOffset()-this.utcOffset()),z=bM(z)){case"year":o=Jp(this,p)/12;break;case"month":o=Jp(this,p);break;case"quarter":o=Jp(this,p)/3;break;case"second":o=(this-p)/1e3;break;case"minute":o=(this-p)/6e4;break;case"hour":o=(this-p)/36e5;break;case"day":o=(this-p-O)/864e5;break;case"week":o=(this-p-O)/6048e5;break;default:o=this-p}return b?o:yM(o)}function Jp(M,z){if(M.date()<z.date())return-Jp(z,M);var b=12*(z.year()-M.year())+(z.month()-M.month()),p=M.clone().add(b,"months");return-(b+(z-p<0?(z-p)/(p-M.clone().add(b-1,"months")):(z-p)/(M.clone().add(b+1,"months")-p)))||0}function Zp(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $p(M){if(!this.isValid())return null;var z=!0!==M,b=z?this.clone().utc():this;return b.year()<0||b.year()>9999?H(b,z?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?z?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(b,"Z")):H(b,z?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function MO(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var M,z,b,p,O="moment",o="";return this.isLocal()||(O=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),M="["+O+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",b="-MM-DD[T]HH:mm:ss.SSS",p=o+'[")]',this.format(M+z+b+p)}function zO(M){M||(M=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var z=H(this,M);return this.localeData().postformat(z)}function bO(M,z){return this.isValid()&&(N(M)&&M.isValid()||Kb(M).isValid())?gp({to:this,from:M}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()}function pO(M){return this.from(Kb(),M)}function OO(M,z){return this.isValid()&&(N(M)&&M.isValid()||Kb(M).isValid())?gp({from:this,to:M}).locale(this.locale()).humanize(!z):this.localeData().invalidDate()}function oO(M){return this.to(Kb(),M)}function cO(M){var z;return void 0===M?this._locale._abbr:(null!=(z=ub(M))&&(this._locale=z),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var AO=X("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(M){return void 0===M?this.localeData():this.locale(M)}));function qO(){return this._locale}var eO=1e3,nO=60*eO,aO=60*nO,WO=3506328*aO;function tO(M,z){return(M%z+z)%z}function dO(M,z,b){return M<100&&M>=0?new Date(M+400,z,b)-WO:new Date(M,z,b).valueOf()}function iO(M,z,b){return M<100&&M>=0?Date.UTC(M+400,z,b)-WO:Date.UTC(M,z,b)}function rO(M){var z,b;if(void 0===(M=bM(M))||"millisecond"===M||!this.isValid())return this;switch(b=this._isUTC?iO:dO,M){case"year":z=b(this.year(),0,1);break;case"quarter":z=b(this.year(),this.month()-this.month()%3,1);break;case"month":z=b(this.year(),this.month(),1);break;case"week":z=b(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":z=b(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":z=b(this.year(),this.month(),this.date());break;case"hour":z=this._d.valueOf(),z-=tO(z+(this._isUTC?0:this.utcOffset()*nO),aO);break;case"minute":z=this._d.valueOf(),z-=tO(z,nO);break;case"second":z=this._d.valueOf(),z-=tO(z,eO)}return this._d.setTime(z),p.updateOffset(this,!0),this}function sO(M){var z,b;if(void 0===(M=bM(M))||"millisecond"===M||!this.isValid())return this;switch(b=this._isUTC?iO:dO,M){case"year":z=b(this.year()+1,0,1)-1;break;case"quarter":z=b(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":z=b(this.year(),this.month()+1,1)-1;break;case"week":z=b(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":z=b(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":z=b(this.year(),this.month(),this.date()+1)-1;break;case"hour":z=this._d.valueOf(),z+=aO-tO(z+(this._isUTC?0:this.utcOffset()*nO),aO)-1;break;case"minute":z=this._d.valueOf(),z+=nO-tO(z,nO)-1;break;case"second":z=this._d.valueOf(),z+=eO-tO(z,eO)-1}return this._d.setTime(z),p.updateOffset(this,!0),this}function uO(){return this._d.valueOf()-6e4*(this._offset||0)}function fO(){return Math.floor(this.valueOf()/1e3)}function RO(){return new Date(this.valueOf())}function lO(){var M=this;return[M.year(),M.month(),M.date(),M.hour(),M.minute(),M.second(),M.millisecond()]}function LO(){var M=this;return{years:M.year(),months:M.month(),date:M.date(),hours:M.hours(),minutes:M.minutes(),seconds:M.seconds(),milliseconds:M.milliseconds()}}function NO(){return this.isValid()?this.toISOString():null}function BO(){return s(this)}function XO(){return t({},r(this))}function hO(){return r(this).overflow}function mO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function gO(M,z){var b,O,o,c=this._eras||ub("en")._eras;for(b=0,O=c.length;b<O;++b)switch("string"==typeof c[b].since&&(o=p(c[b].since).startOf("day"),c[b].since=o.valueOf()),typeof c[b].until){case"undefined":c[b].until=1/0;break;case"string":o=p(c[b].until).startOf("day").valueOf(),c[b].until=o.valueOf()}return c}function TO(M,z,b){var p,O,o,c,A,q=this.eras();for(M=M.toUpperCase(),p=0,O=q.length;p<O;++p)if(o=q[p].name.toUpperCase(),c=q[p].abbr.toUpperCase(),A=q[p].narrow.toUpperCase(),b)switch(z){case"N":case"NN":case"NNN":if(c===M)return q[p];break;case"NNNN":if(o===M)return q[p];break;case"NNNNN":if(A===M)return q[p]}else if([o,c,A].indexOf(M)>=0)return q[p]}function yO(M,z){var b=M.since<=M.until?1:-1;return void 0===z?p(M.since).year():p(M.since).year()+(z-M.offset)*b}function _O(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].name;if(p[M].until<=b&&b<=p[M].since)return p[M].name}return""}function SO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].narrow;if(p[M].until<=b&&b<=p[M].since)return p[M].narrow}return""}function vO(){var M,z,b,p=this.localeData().eras();for(M=0,z=p.length;M<z;++M){if(b=this.clone().startOf("day").valueOf(),p[M].since<=b&&b<=p[M].until)return p[M].abbr;if(p[M].until<=b&&b<=p[M].since)return p[M].abbr}return""}function kO(){var M,z,b,O,o=this.localeData().eras();for(M=0,z=o.length;M<z;++M)if(b=o[M].since<=o[M].until?1:-1,O=this.clone().startOf("day").valueOf(),o[M].since<=O&&O<=o[M].until||o[M].until<=O&&O<=o[M].since)return(this.year()-p(o[M].since).year())*b+o[M].offset;return this.year()}function wO(M){return A(this,"_erasNameRegex")||IO.call(this),M?this._erasNameRegex:this._erasRegex}function EO(M){return A(this,"_erasAbbrRegex")||IO.call(this),M?this._erasAbbrRegex:this._erasRegex}function CO(M){return A(this,"_erasNarrowRegex")||IO.call(this),M?this._erasNarrowRegex:this._erasRegex}function DO(M,z){return z.erasAbbrRegex(M)}function PO(M,z){return z.erasNameRegex(M)}function xO(M,z){return z.erasNarrowRegex(M)}function jO(M,z){return z._eraYearOrdinalRegex||uM}function IO(){var M,z,b,p,O,o=[],c=[],A=[],q=[],e=this.eras();for(M=0,z=e.length;M<z;++M)b=TM(e[M].name),p=TM(e[M].abbr),O=TM(e[M].narrow),c.push(b),o.push(p),A.push(O),q.push(b),q.push(p),q.push(O);this._erasRegex=new RegExp("^("+q.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+c.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+A.join("|")+")","i")}function HO(M,z){x(0,[M,M.length],0,z)}function YO(M){return QO.call(this,M,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function FO(M){return QO.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)}function UO(){return Bz(this.year(),1,4)}function GO(){return Bz(this.isoWeekYear(),1,4)}function VO(){var M=this.localeData()._week;return Bz(this.year(),M.dow,M.doy)}function KO(){var M=this.localeData()._week;return Bz(this.weekYear(),M.dow,M.doy)}function QO(M,z,b,p,O){var o;return null==M?Nz(this,p,O).year:(z>(o=Bz(M,p,O))&&(z=o),JO.call(this,M,z,b,p,O))}function JO(M,z,b,p,O){var o=Lz(M,z,b,p,O),c=Rz(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}function ZO(M){return null==M?Math.ceil((this.month()+1)/3):this.month(3*(M-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"),hM("N",DO),hM("NN",DO),hM("NNN",DO),hM("NNNN",PO),hM("NNNNN",xO),vM(["N","NN","NNN","NNNN","NNNNN"],(function(M,z,b,p){var O=b._locale.erasParse(M,p,b._strict);O?r(b).era=O:r(b).invalidEra=M})),hM("y",uM),hM("yy",uM),hM("yyy",uM),hM("yyyy",uM),hM("yo",jO),vM(["y","yy","yyy","yyyy"],CM),vM(["yo"],(function(M,z,b,p){var O;b._locale._eraYearOrdinalRegex&&(O=M.match(b._locale._eraYearOrdinalRegex)),b._locale.eraYearOrdinalParse?z[CM]=b._locale.eraYearOrdinalParse(M,O):z[CM]=parseInt(M,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),HO("gggg","weekYear"),HO("ggggg","weekYear"),HO("GGGG","isoWeekYear"),HO("GGGGG","isoWeekYear"),hM("G",fM),hM("g",fM),hM("GG",WM,qM),hM("gg",WM,qM),hM("GGGG",rM,nM),hM("gggg",rM,nM),hM("GGGGG",sM,aM),hM("ggggg",sM,aM),kM(["gggg","ggggg","GGGG","GGGGG"],(function(M,z,b,p){z[p.substr(0,2)]=_M(M)})),kM(["gg","GG"],(function(M,z,b,O){z[O]=p.parseTwoDigitYear(M)})),x("Q",0,"Qo","quarter"),hM("Q",AM),vM("Q",(function(M,z){z[DM]=3*(_M(M)-1)})),x("D",["DD",2],"Do","date"),hM("D",WM,BM),hM("DD",WM,qM),hM("Do",(function(M,z){return M?z._dayOfMonthOrdinalParse||z._ordinalParse:z._dayOfMonthOrdinalParseLenient})),vM(["D","DD"],PM),vM("Do",(function(M,z){z[PM]=_M(M.match(WM)[0])}));var $O=JM("Date",!0);function Mo(M){var z=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==M?z:this.add(M-z,"d")}x("DDD",["DDDD",3],"DDDo","dayOfYear"),hM("DDD",iM),hM("DDDD",eM),vM(["DDD","DDDD"],(function(M,z,b){b._dayOfYear=_M(M)})),x("m",["mm",2],0,"minute"),hM("m",WM,XM),hM("mm",WM,qM),vM(["m","mm"],IM);var zo=JM("Minutes",!1);x("s",["ss",2],0,"second"),hM("s",WM,XM),hM("ss",WM,qM),vM(["s","ss"],HM);var bo,po,Oo=JM("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()})),hM("S",iM,AM),hM("SS",iM,qM),hM("SSS",iM,eM),bo="SSSS";bo.length<=9;bo+="S")hM(bo,uM);function oo(M,z){z[YM]=_M(1e3*("0."+M))}for(bo="S";bo.length<=9;bo+="S")vM(bo,oo);function co(){return this._isUTC?"UTC":""}function Ao(){return this._isUTC?"Coordinated Universal Time":""}po=JM("Milliseconds",!1),x("z",0,0,"zoneAbbr"),x("zz",0,0,"zoneName");var qo=L.prototype;function eo(M){return Kb(1e3*M)}function no(){return Kb.apply(null,arguments).parseZone()}function ao(M){return M}qo.add=kp,qo.calendar=Ip,qo.clone=Hp,qo.diff=Qp,qo.endOf=sO,qo.format=zO,qo.from=bO,qo.fromNow=pO,qo.to=OO,qo.toNow=oO,qo.get=Mz,qo.invalidAt=hO,qo.isAfter=Yp,qo.isBefore=Fp,qo.isBetween=Up,qo.isSame=Gp,qo.isSameOrAfter=Vp,qo.isSameOrBefore=Kp,qo.isValid=BO,qo.lang=AO,qo.locale=cO,qo.localeData=qO,qo.max=Jb,qo.min=Qb,qo.parsingFlags=XO,qo.set=zz,qo.startOf=rO,qo.subtract=wp,qo.toArray=lO,qo.toObject=LO,qo.toDate=RO,qo.toISOString=$p,qo.inspect=MO,"undefined"!=typeof Symbol&&null!=Symbol.for&&(qo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),qo.toJSON=NO,qo.toString=Zp,qo.unix=fO,qo.valueOf=uO,qo.creationData=mO,qo.eraName=_O,qo.eraNarrow=SO,qo.eraAbbr=vO,qo.eraYear=kO,qo.year=KM,qo.isLeapYear=QM,qo.weekYear=YO,qo.isoWeekYear=FO,qo.quarter=qo.quarters=ZO,qo.month=dz,qo.daysInMonth=iz,qo.week=qo.weeks=Tz,qo.isoWeek=qo.isoWeeks=yz,qo.weeksInYear=VO,qo.weeksInWeekYear=KO,qo.isoWeeksInYear=UO,qo.isoWeeksInISOWeekYear=GO,qo.date=$O,qo.day=qo.days=Fz,qo.weekday=Uz,qo.isoWeekday=Gz,qo.dayOfYear=Mo,qo.hour=qo.hours=Ob,qo.minute=qo.minutes=zo,qo.second=qo.seconds=Oo,qo.millisecond=qo.milliseconds=po,qo.utcOffset=ip,qo.utc=sp,qo.local=up,qo.parseZone=fp,qo.hasAlignedHourOffset=Rp,qo.isDST=lp,qo.isLocal=Np,qo.isUtcOffset=Bp,qo.isUtc=Xp,qo.isUTC=Xp,qo.zoneAbbr=co,qo.zoneName=Ao,qo.dates=X("dates accessor is deprecated. Use date instead.",$O),qo.months=X("months accessor is deprecated. Use month instead",dz),qo.years=X("years accessor is deprecated. Use year instead",KM),qo.zone=X("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rp),qo.isDSTShifted=X("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Lp);var Wo=S.prototype;function to(M,z,b,p){var O=ub(),o=d().set(p,z);return O[b](o,M)}function io(M,z,b){if(n(M)&&(z=M,M=void 0),M=M||"",null!=z)return to(M,z,b,"month");var p,O=[];for(p=0;p<12;p++)O[p]=to(M,p,b,"month");return O}function ro(M,z,b,p){"boolean"==typeof M?(n(z)&&(b=z,z=void 0),z=z||""):(b=z=M,M=!1,n(z)&&(b=z,z=void 0),z=z||"");var O,o=ub(),c=M?o._week.dow:0,A=[];if(null!=b)return to(z,(b+c)%7,p,"day");for(O=0;O<7;O++)A[O]=to(z,(O+c)%7,p,"day");return A}function so(M,z){return io(M,z,"months")}function uo(M,z){return io(M,z,"monthsShort")}function fo(M,z,b){return ro(M,z,b,"weekdays")}function Ro(M,z,b){return ro(M,z,b,"weekdaysShort")}function lo(M,z,b){return ro(M,z,b,"weekdaysMin")}Wo.calendar=k,Wo.longDateFormat=U,Wo.invalidDate=V,Wo.ordinal=J,Wo.preparse=ao,Wo.postformat=ao,Wo.relativeTime=$,Wo.pastFuture=MM,Wo.set=y,Wo.eras=gO,Wo.erasParse=TO,Wo.erasConvertYear=yO,Wo.erasAbbrRegex=EO,Wo.erasNameRegex=wO,Wo.erasNarrowRegex=CO,Wo.months=ez,Wo.monthsShort=nz,Wo.monthsParse=Wz,Wo.monthsRegex=sz,Wo.monthsShortRegex=rz,Wo.week=Xz,Wo.firstDayOfYear=gz,Wo.firstDayOfWeek=mz,Wo.weekdays=xz,Wo.weekdaysMin=Iz,Wo.weekdaysShort=jz,Wo.weekdaysParse=Yz,Wo.weekdaysRegex=Vz,Wo.weekdaysShortRegex=Kz,Wo.weekdaysMinRegex=Qz,Wo.isPM=bb,Wo.meridiem=ob,ib("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(M){var z=M%10;return M+(1===_M(M%100/10)?"th":1===z?"st":2===z?"nd":3===z?"rd":"th")}}),p.lang=X("moment.lang is deprecated. Use moment.locale instead.",ib),p.langData=X("moment.langData is deprecated. Use moment.localeData instead.",ub);var Lo=Math.abs;function No(){var M=this._data;return this._milliseconds=Lo(this._milliseconds),this._days=Lo(this._days),this._months=Lo(this._months),M.milliseconds=Lo(M.milliseconds),M.seconds=Lo(M.seconds),M.minutes=Lo(M.minutes),M.hours=Lo(M.hours),M.months=Lo(M.months),M.years=Lo(M.years),this}function Bo(M,z,b,p){var O=gp(z,b);return M._milliseconds+=p*O._milliseconds,M._days+=p*O._days,M._months+=p*O._months,M._bubble()}function Xo(M,z){return Bo(this,M,z,1)}function ho(M,z){return Bo(this,M,z,-1)}function mo(M){return M<0?Math.floor(M):Math.ceil(M)}function go(){var M,z,b,p,O,o=this._milliseconds,c=this._days,A=this._months,q=this._data;return o>=0&&c>=0&&A>=0||o<=0&&c<=0&&A<=0||(o+=864e5*mo(yo(A)+c),c=0,A=0),q.milliseconds=o%1e3,M=yM(o/1e3),q.seconds=M%60,z=yM(M/60),q.minutes=z%60,b=yM(z/60),q.hours=b%24,c+=yM(b/24),A+=O=yM(To(c)),c-=mo(yo(O)),p=yM(A/12),A%=12,q.days=c,q.months=A,q.years=p,this}function To(M){return 4800*M/146097}function yo(M){return 146097*M/4800}function _o(M){if(!this.isValid())return NaN;var z,b,p=this._milliseconds;if("month"===(M=bM(M))||"quarter"===M||"year"===M)switch(z=this._days+p/864e5,b=this._months+To(z),M){case"month":return b;case"quarter":return b/3;case"year":return b/12}else switch(z=this._days+Math.round(yo(this._months)),M){case"week":return z/7+p/6048e5;case"day":return z+p/864e5;case"hour":return 24*z+p/36e5;case"minute":return 1440*z+p/6e4;case"second":return 86400*z+p/1e3;case"millisecond":return Math.floor(864e5*z)+p;default:throw new Error("Unknown unit "+M)}}function So(M){return function(){return this.as(M)}}var vo=So("ms"),ko=So("s"),wo=So("m"),Eo=So("h"),Co=So("d"),Do=So("w"),Po=So("M"),xo=So("Q"),jo=So("y"),Io=vo;function Ho(){return gp(this)}function Yo(M){return M=bM(M),this.isValid()?this[M+"s"]():NaN}function Fo(M){return function(){return this.isValid()?this._data[M]:NaN}}var Uo=Fo("milliseconds"),Go=Fo("seconds"),Vo=Fo("minutes"),Ko=Fo("hours"),Qo=Fo("days"),Jo=Fo("months"),Zo=Fo("years");function $o(){return yM(this.days()/7)}var Mc=Math.round,zc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bc(M,z,b,p,O){return O.relativeTime(z||1,!!b,M,p)}function pc(M,z,b,p){var O=gp(M).abs(),o=Mc(O.as("s")),c=Mc(O.as("m")),A=Mc(O.as("h")),q=Mc(O.as("d")),e=Mc(O.as("M")),n=Mc(O.as("w")),a=Mc(O.as("y")),W=o<=b.ss&&["s",o]||o<b.s&&["ss",o]||c<=1&&["m"]||c<b.m&&["mm",c]||A<=1&&["h"]||A<b.h&&["hh",A]||q<=1&&["d"]||q<b.d&&["dd",q];return null!=b.w&&(W=W||n<=1&&["w"]||n<b.w&&["ww",n]),(W=W||e<=1&&["M"]||e<b.M&&["MM",e]||a<=1&&["y"]||["yy",a])[2]=z,W[3]=+M>0,W[4]=p,bc.apply(null,W)}function Oc(M){return void 0===M?Mc:"function"==typeof M&&(Mc=M,!0)}function oc(M,z){return void 0!==zc[M]&&(void 0===z?zc[M]:(zc[M]=z,"s"===M&&(zc.ss=z-1),!0))}function cc(M,z){if(!this.isValid())return this.localeData().invalidDate();var b,p,O=!1,o=zc;return"object"==typeof M&&(z=M,M=!1),"boolean"==typeof M&&(O=M),"object"==typeof z&&(o=Object.assign({},zc,z),null!=z.s&&null==z.ss&&(o.ss=z.s-1)),p=pc(this,!O,o,b=this.localeData()),O&&(p=b.pastFuture(+this,p)),b.postformat(p)}var Ac=Math.abs;function qc(M){return(M>0)-(M<0)||+M}function ec(){if(!this.isValid())return this.localeData().invalidDate();var M,z,b,p,O,o,c,A,q=Ac(this._milliseconds)/1e3,e=Ac(this._days),n=Ac(this._months),a=this.asSeconds();return a?(M=yM(q/60),z=yM(M/60),q%=60,M%=60,b=yM(n/12),n%=12,p=q?q.toFixed(3).replace(/\.?0+$/,""):"",O=a<0?"-":"",o=qc(this._months)!==qc(a)?"-":"",c=qc(this._days)!==qc(a)?"-":"",A=qc(this._milliseconds)!==qc(a)?"-":"",O+"P"+(b?o+b+"Y":"")+(n?o+n+"M":"")+(e?c+e+"D":"")+(z||M||q?"T":"")+(z?A+z+"H":"")+(M?A+M+"M":"")+(q?A+p+"S":"")):"P0D"}var nc=cp.prototype;return nc.isValid=Op,nc.abs=No,nc.add=Xo,nc.subtract=ho,nc.as=_o,nc.asMilliseconds=vo,nc.asSeconds=ko,nc.asMinutes=wo,nc.asHours=Eo,nc.asDays=Co,nc.asWeeks=Do,nc.asMonths=Po,nc.asQuarters=xo,nc.asYears=jo,nc.valueOf=Io,nc._bubble=go,nc.clone=Ho,nc.get=Yo,nc.milliseconds=Uo,nc.seconds=Go,nc.minutes=Vo,nc.hours=Ko,nc.days=Qo,nc.weeks=$o,nc.months=Jo,nc.years=Zo,nc.humanize=cc,nc.toISOString=ec,nc.toString=ec,nc.toJSON=ec,nc.locale=cO,nc.localeData=qO,nc.toIsoString=X("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ec),nc.lang=AO,x("X",0,0,"unix"),x("x",0,0,"valueOf"),hM("x",fM),hM("X",LM),vM("X",(function(M,z,b){b._d=new Date(1e3*parseFloat(M))})),vM("x",(function(M,z,b){b._d=new Date(_M(M))})),
|
|
2
2
|
//! moment.js
|
|
3
3
|
p.version="2.30.1",O(Kb),p.fn=qo,p.min=$b,p.max=Mp,p.now=zp,p.utc=d,p.unix=eo,p.months=so,p.isDate=a,p.locale=ib,p.invalid=u,p.duration=gp,p.isMoment=N,p.weekdays=fo,p.parseZone=no,p.localeData=ub,p.isDuration=Ap,p.monthsShort=uo,p.weekdaysMin=lo,p.defineLocale=rb,p.updateLocale=sb,p.locales=fb,p.weekdaysShort=Ro,p.normalizeUnits=bM,p.relativeTimeRounding=Oc,p.relativeTimeThreshold=oc,p.calendarFormat=jp,p.prototype=qo,p.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"},p}()})),YM=jM((function(M){
|
|
4
4
|
//! moment-timezone.js
|