@digitransit-component/digitransit-component-autosuggest 2.0.2 → 2.0.4
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 +3 -3
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +4 -4
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,W,a,t,d,i,r,s,u,R,f,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),_=L(q),y=L(e),S=L(n),v=L(W),k=L(a),E=L(t),w=L(d),C=L(i),D=L(r),P=L(s),x=L(u),I=L(R),H=L(f),F=L(l);function Y(){return Y=Object.assign?Object.assign.bind():function(M){for(var z=1;z<arguments.length;z++){var b=arguments[z];for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(M[p]=b[p])}return M},Y.apply(this,arguments)}function U(M,z){return M&&z&&M===z}const j=["stop","station","favouriteStop","favouriteStation"],G=["favouriteVehicleRentalStation","bikestation"];function V(M){if(!M)return"";const z=M.split(":");return 0===z.length?"":`citybikes${z[0]}:bikestation:${z[1]}`}function K(M,z){const b=M.properties,p=z.properties;if("FutureRoute"===M.type&&"FutureRoute"===z.type){const M=b.origin,z=b.destination,O=p.origin,o=p.destination;return`${M.name}//${M.locality}//${z.name}//${z.locality}`===`${O.name}//${O.locality}//${o.name}//${o.locality}`}if("FutureRoute"===M.type||"FutureRoute"===z.type)return!1;if(G.includes(b.layer)&&G.includes(p.layer)){return(b.gid||V(b.labelId))===(p.gid||V(p.labelId))}if(b.gtfsId&&p.gtfsId)return b.gtfsId===p.gtfsId;if(j.includes(b.layer)&&j.includes(p.layer)&&b.gid&&p.gid)return b.gid===p.gid;const O=M&&M.geometry?M.geometry.coordinates:void 0,o=z&&z.geometry?z.geometry.coordinates:void 0;return!!(O&&o&&Math.abs(O[0]-o[0])<1e-6&&Math.abs(O[1]-o[1])<1e-6&&(U(b.name,p.name)||U(b.label,p.label)||U(b.address,p.address)||U(b.address,p.label)||U(b.label,p.address)))}const Q=M=>y.default(M)?M.toLowerCase():"",J="back",Z="currentPosition",$="favouriteStop",MM="favouriteStation",zM="favouritePlace",bM="favouriteRoute",pM="favouriteVehicleRentalStation",OM="futureRoute",oM="station",cM="selectFromMap",AM="ownLocations",qM="stop",eM="bikestation",nM="carpark",WM="bikepark",aM=({layer:M,type:z})=>"stop"===M||"favouriteStop"===M||"stop"===z||"favouriteStop"===z,tM=(M,z)=>{switch(M){case Z:return 1;case J:return.9;case cM:return.8;case AM:return.79;case MM:case zM:case $:case bM:case pM:return.45;case OM:return.44;case oM:return y.default(z)&&0===z.indexOf("gtfs")?.43:.42;default:return.41;case nM:case WM:case eM:return.38;case qM:return.36}},dM=(M,z,b="")=>{if(!Array.isArray(z))return z;const p=z=>y.default(z)&&M&&M.test(z),O=Q(b),o=p(O),c=S.default(z,[M=>o&&p(Q(M.properties.shortName))&&0===Q(M.properties.shortName).indexOf(O)?1:0,M=>{const{confidence:z,layer:b,source:p}=M.properties;if(0===O.length)return tM(b,p);if(!z)return tM(b,p)+((M,z)=>y.default(M)&&0!==M.length?["name","label","address","shortName"].map((M=>z[M])).filter((M=>y.default(M)&&M.length>0)).map((z=>{const b=Q(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(b){case oM:return z+(0===p.indexOf("gtfs")?.02:.01);case qM:case nM:case WM:return z-.05;case eM:return z-.04;default:return z}}],["desc","desc"]);return v.default(c,K)},iM=(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){const p=z.toLowerCase().trim(),O=p.includes(" ")||p.includes(",");return M.filter((M=>{let z=[];b.forEach((b=>{let p=k.default(M,b);O||"properties.label"!==b&&"address"!==b||!p||(p=p.split(","),p.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(let M=0;M<z.length;M++)if(0===z[M].indexOf(p))return!0;return!1}))}return M}function sM(M,z){return M?Object.keys(M).map((b=>{const p=z||b,O=M[b];return"object"==typeof O?sM(O,p):`${encodeURIComponent(p)}=${encodeURIComponent(O)}`})).join("&"):""}const uM=require("axios").default;function RM(M,z){return uM.get(encodeURI(M)+(z?(-1===M.search(/\?/)?"?":"&")+sM(z):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((M=>M.data))}const fM="https://api.digitransit.fi/geocoding/v1/search";function lM(M,z,b,p,O,o,c,A){const q=M?M.trim():null;if(null==q||q.length<1||c&&!c.test(q))return Promise.resolve([]);const e=o||fM;let n=Y({text:q},z,p,{lang:b});if(O&&(n=Y({},n,{sources:O})),A){n=Y({},n,{layers:A.toString()})}return RM(e,n).then((M=>M.features))}function LM(M,z){if(!M||M.length<1)return Promise.resolve([]);let b="";const p=M.map((M=>{const z="stop"===M.type?"stop":"station";let p=`gtfs${M.gtfsId.split(":")[0].toLowerCase()}:${z}:GTFS:${M.gtfsId}`;return M.code&&(p+=`#${M.code}`),b+=`${p},`,Y({},M,{gid:p})})).reduce((function(M,z){return M[z.gid]=z,M}),{});return RM(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:aM(M.properties)?"favouriteStop":"favouriteStation"},geometry:M.geometry})))))}function NM(M,z,b){let 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(_.default(p,10).map((M=>{const z=Y({},M,{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete z.properties.confidence,z})))}const BM=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE"],XM=["favouritePlace","venue","address","street"],hM=["carpark","bikepark"];const mM=g.default((function(M,z,b,p,O,o,{input:c},A,q,e){const{getPositions:n,getFavouriteLocations:W,getOldSearches:a,getFavouriteStops:t,parkingAreaSources:d,getLanguage:i,getStopAndStationsQuery:r,getFavouriteVehicleRentalStationsQuery:s,getFavouriteVehicleRentalStations:u,getFavouriteRoutesQuery:R,getFavouriteRoutes:f,getRoutesQuery:l,context:L,isPeliasLocationAware:N,minimalRegexp:B,lineRegexp:X,URL_PELIAS:h,URL_PELIAS_PLACE:m,feedIDs:g,geocodingSearchParams:y,geocodingSources:S,getFutureRoutes:v,cityBikeNetworks:k}=p,E=!M||0===M.length,w=!z||0===z.length,C=n(L),D=[],P={type:"all",term:c,results:[]},x=i(L),I=N&&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"!==C.status&&D.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([])}(c,C)),(E||M.includes("MapPosition"))&&D.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([])}(c)),M.includes("FutureRoutes")){const M=v(L);D.push(_.default(M,3))}if(M.includes("SelectFromOwnLocations")&&function(M){const z=M.getFavouriteLocations(M.context);if((null==z?void 0:z.length)>0)return!0;const b=M.getFavouriteStops(M.context);return(null==b?void 0:b.length)>0}(p)&&D.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([])}(c)),E||M.includes("Locations")){const M=y;if(z.includes("Favourite")){const M=W(L);D.push(function(M,z){return Promise.resolve(rM(M,z,["address","name"]).map((M=>({type:"FavouritePlace",properties:Y({},M,{label:M.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[M.lon,M.lat]}}))))}(M,c)),z.includes("Back")&&D.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(w||z.includes("Datasource")){const z=["station","venue","address","street"],b=g.map((M=>`gtfs${M}`)),p=S.concat(b).join(",");D.push(lM(c,M,x,I,p,h,B,z))}if(w||z.includes("History")){const M=a(L,"endpoint"),z=["currentPosition","selectFromMap","futureRoute","ownLocations","vehicleRentalStation","bikepark","carpark","stop","back"];z.push(...BM),D.push(NM(M,c,z))}}if(E||M.includes("ParkingAreas")){if(w||z.includes("Datasource")){const M=y;o&&10!==o&&(M.size=o);const z=["carpark","bikepark"],b=d?d.join(","):null;D.push(lM(c,M,x,I,b,h,B,z).then((M=>O?O(M,H):M)))}if(w||z.includes("History")){const M=a(L),z=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikestation","vehicleRentalStation","back","stop","station"];z.push(...BM),z.push(...XM),D.push(NM(M,c,z))}}if(E||M.includes("Stops")){if(z.includes("Favourite")){const M=t(L);let z;z=M.every((M=>"station"===M.type))?LM(M,m).then((M=>O?O(M,H):M)):r(M).then((M=>LM(M,m))).then((M=>O?O(M,H):M)),D.push(function(M,z){return M.then((M=>rM(M,z,["properties.name","properties.name","properties.address"])))}(z,c))}if(w||z.includes("Datasource")){const z=["stop","station"],b=o&&10!==o?{size:o}:{};y&&y["boundary.country"]&&(b["boundary.country"]=y["boundary.country"]),(E||M.includes("Locations"))&&(b.dedupestops=1);const p=g.map((M=>`gtfs${M}`)).join(",");D.push(lM(c,b,x,I,p,h,B,z).then((M=>O?O(M,H):M)))}if(w||z.includes("History")){const M=a(L).filter((M=>!M.properties.gid||M.properties.gid.includes("GTFS:"))),z=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","vehicleRentalStation","back"];z.push(...BM),z.push(...XM),z.push(...hM),b?("route-CITYBIKE"!==b&&(z.push("vehicleRentalStation"),z.push("bikestation")),D.push(NM(M,c,z).then((M=>O?O(M,H):M)))):D.push(NM(M,c,z))}}if(E||M.includes("Routes")){if(z.includes("Favourite")){const M=f(L);D.push(R(M,c,H,q).then((M=>O?O(M,H,"Routes"):M)))}if(D.push(l(c,g,b,q).then((M=>O?O(M,H,"Routes"):M))),w||z.includes("History")){const M=a(L),z=["currentPosition","selectFromMap","futureRoute","favouritePlace","stop","station","bikepark","carpark","ownLocations","back"];b&&("route-CITYBIKE"!==b&&(z.push("vehicleRentalStation"),z.push("bikestation")),z.push(...BM.filter((M=>!(M===b))))),z.push(...XM),D.push(NM(M,c,z).then((M=>O?O(M,H,"Routes"):M)))}}if(E||M.includes("VehicleRentalStations")){if(z.includes("Favourite")){const M=u(L);D.push(s(M,c))}if(w||z.includes("Datasource")){const M=["bikestation"],z=o&&10!==o?{size:o}:{};D.push(lM(c,z,x,I,k.join(","),h,B,M).then((M=>O?O(M,H,"VehicleRentalStations"):M)))}}Promise.all(D).then(T.default).then((M=>{P.results=M})).catch((M=>{P.error=M})).then((()=>{A(Y({},P,{results:dM(X,P.results,c)}))}))}),300,{leading:!0}),gM=M=>M.localadmin||M.locality||M.address&&M.address.lastIndexOf(",")<M.address.length-2&&M.address.substring(M.address.lastIndexOf(",")+2)||"",TM=({id:M,code:z})=>z||(void 0!==M&&void 0!==M.indexOf&&-1!==M.indexOf("#")?M.substring(M.indexOf("#")+1):void 0),_M=C.default(((M,z=!1)=>{switch(M.layer){case"currentPosition":return[M.labelId,M.address];case"selectFromMap":case"ownLocations":case"back":return[M.labelId];case"favouritePlace":return b=M.name,p=M.address,[b||p&&p.split(",")[0],"string"==typeof p?p.replace(new RegExp(`${D.default(b)}([ ,]|$)+`),""):""];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!z&&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 z?[M.name||M.label||M.address&&M.address.split(",")[0],gM(M)]:[M.name,M.id,TM(M),gM(M)];default:return[M.name||M.label||M.address&&M.address.split(",")[0],gM(M)]}var b,p}),((M,z)=>{const b=P.default(M);return b.plain=z,b}));function yM(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function SM(M,z){return M(z={exports:{}},z.exports),z.exports}var vM,kM=SM((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 W(M){return M instanceof Date||"[object Date]"===Object.prototype.toString.call(M)}function a(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){if(null==M._isValid){var z=r(M),p=b.call(z.parsedDateParts,(function(M){return null!=M})),O=!isNaN(M._d.getTime())&&z.overflow<0&&!z.empty&&!z.invalidEra&&!z.invalidMonth&&!z.invalidWeekday&&!z.weekdayMismatch&&!z.nullInput&&!z.invalidFormat&&!z.userInvalidated&&(!z.meridiem||z.meridiem&&p);if(M._strict&&(O=O&&0===z.charsLeftOver&&0===z.unusedTokens.length&&void 0===z.bigHour),null!=Object.isFrozen&&Object.isFrozen(M))return O;M._isValid=O}return 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 R=p.momentProperties=[],f=!1;function l(M,z){var b,p,O,o=R.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=R[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===f&&(f=!0,p.updateOffset(this),f=!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 _(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 y(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 E(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 w=/(\[[^\[]*\])|(\\)?([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 E(O.apply(this,arguments),z[1],z[2])}),b&&(P[b]=function(){return this.localeData().ordinal(O.apply(this,arguments),M)})}function I(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function H(M){var z,b,p=M.match(w);for(z=0,b=p.length;z<b;z++)P[p[z]]?p[z]=P[p[z]]:p[z]=I(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 F(M,z){return M.isValid()?(z=Y(z,M.localeData()),D[z]=D[z]||H(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 U={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function j(M){var z=this._longDateFormat[M],b=this._longDateFormat[M.toUpperCase()];return z||!b?z:(this._longDateFormat[M]=b.match(w).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={};function bM(M,z){var b=M.toLowerCase();zM[b]=zM[b+"s"]=zM[z]=M}function pM(M){return"string"==typeof M?zM[M]||zM[M.toLowerCase()]:void 0}function OM(M){var z,b,p={};for(b in M)A(M,b)&&(z=pM(b))&&(p[z]=M[b]);return p}var oM={};function cM(M,z){oM[M]=z}function AM(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}function qM(M){return M%4==0&&M%100!=0||M%400==0}function eM(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function nM(M){var z=+M,b=0;return 0!==z&&isFinite(z)&&(b=eM(z)),b}function WM(M,z){return function(b){return null!=b?(tM(this,M,b),p.updateOffset(this,z),this):aM(this,M)}}function aM(M,z){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+z]():NaN}function tM(M,z,b){M.isValid()&&!isNaN(b)&&("FullYear"===z&&qM(M.year())&&1===M.month()&&29===M.date()?(b=nM(b),M._d["set"+(M._isUTC?"UTC":"")+z](b,M.month(),Mz(b,M.month()))):M._d["set"+(M._isUTC?"UTC":"")+z](b))}function dM(M){return T(this[M=pM(M)])?this[M]():this}function iM(M,z){if("object"==typeof M){var b,p=AM(M=OM(M)),O=p.length;for(b=0;b<O;b++)this[p[b].unit](M[p[b].unit])}else if(T(this[M=pM(M)]))return this[M](z);return this}var rM,sM=/\d/,uM=/\d\d/,RM=/\d{3}/,fM=/\d{4}/,lM=/[+-]?\d{6}/,LM=/\d\d?/,NM=/\d\d\d\d?/,BM=/\d\d\d\d\d\d?/,XM=/\d{1,3}/,hM=/\d{1,4}/,mM=/[+-]?\d{1,6}/,gM=/\d+/,TM=/[+-]?\d+/,_M=/Z|[+-]\d\d:?\d\d/gi,SM=/Z|[+-]\d\d(?::?\d\d)?/gi,vM=/[+-]?\d+(\.\d{1,3})?/,kM=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function EM(M,z,b){rM[M]=T(z)?z:function(M,p){return M&&b?b:z}}function wM(M,z){return A(rM,M)?rM[M](z._strict,z._locale):new RegExp(CM(M))}function CM(M){return DM(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(M,z,b,p,O){return z||b||p||O})))}function DM(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}rM={};var PM={};function xM(M,z){var b,p,O=z;for("string"==typeof M&&(M=[M]),n(z)&&(O=function(M,b){b[z]=nM(M)}),p=M.length,b=0;b<p;b++)PM[M[b]]=O}function IM(M,z){xM(M,(function(M,b,p,O){p._w=p._w||{},z(M,p._w,p,O)}))}function HM(M,z,b){null!=z&&A(PM,M)&&PM[M](z,b._a,b,M)}var FM,YM=0,UM=1,jM=2,GM=3,VM=4,KM=5,QM=6,JM=7,ZM=8;function $M(M,z){return(M%z+z)%z}function Mz(M,z){if(isNaN(M)||isNaN(z))return NaN;var b=$M(z,12);return M+=(z-b)/12,1===b?qM(M)?29:28:31-b%7%2}FM=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)})),bM("month","M"),cM("month",8),EM("M",LM),EM("MM",LM,uM),EM("MMM",(function(M,z){return z.monthsShortRegex(M)})),EM("MMMM",(function(M,z){return z.monthsRegex(M)})),xM(["M","MM"],(function(M,z){z[UM]=nM(M)-1})),xM(["MMM","MMMM"],(function(M,z,b,p){var O=b._locale.monthsParse(M,p,b._strict);null!=O?z[UM]=O:r(b).invalidMonth=M}));var zz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),bz="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),pz=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oz=kM,oz=kM;function cz(M,z){return M?o(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||pz).test(z)?"format":"standalone"][M.month()]:o(this._months)?this._months:this._months.standalone}function Az(M,z){return M?o(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[pz.test(z)?"format":"standalone"][M.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qz(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=FM.call(this._shortMonthsParse,c))?O:null:-1!==(O=FM.call(this._longMonthsParse,c))?O:null:"MMM"===z?-1!==(O=FM.call(this._shortMonthsParse,c))||-1!==(O=FM.call(this._longMonthsParse,c))?O:null:-1!==(O=FM.call(this._longMonthsParse,c))||-1!==(O=FM.call(this._shortMonthsParse,c))?O:null}function ez(M,z,b){var p,O,o;if(this._monthsParseExact)return qz.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 nz(M,z){var b;if(!M.isValid())return M;if("string"==typeof z)if(/^\d+$/.test(z))z=nM(z);else if(!n(z=M.localeData().monthsParse(z)))return M;return b=Math.min(M.date(),Mz(M.year(),z)),M._d["set"+(M._isUTC?"UTC":"")+"Month"](z,b),M}function Wz(M){return null!=M?(nz(this,M),p.updateOffset(this,!0),this):aM(this,"Month")}function az(){return Mz(this.year(),this.month())}function tz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||iz.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Oz),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)}function dz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||iz.call(this),M?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=oz),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)}function iz(){function M(M,z){return z.length-M.length}var z,b,p=[],O=[],o=[];for(z=0;z<12;z++)b=d([2e3,z]),p.push(this.monthsShort(b,"")),O.push(this.months(b,"")),o.push(this.months(b,"")),o.push(this.monthsShort(b,""));for(p.sort(M),O.sort(M),o.sort(M),z=0;z<12;z++)p[z]=DM(p[z]),O[z]=DM(O[z]);for(z=0;z<24;z++)o[z]=DM(o[z]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}function rz(M){return qM(M)?366:365}x("Y",0,0,(function(){var M=this.year();return M<=9999?E(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"),bM("year","y"),cM("year",1),EM("Y",TM),EM("YY",LM,uM),EM("YYYY",hM,fM),EM("YYYYY",mM,lM),EM("YYYYYY",mM,lM),xM(["YYYYY","YYYYYY"],YM),xM("YYYY",(function(M,z){z[YM]=2===M.length?p.parseTwoDigitYear(M):nM(M)})),xM("YY",(function(M,z){z[YM]=p.parseTwoDigitYear(M)})),xM("Y",(function(M,z){z[YM]=parseInt(M,10)})),p.parseTwoDigitYear=function(M){return nM(M)+(nM(M)>68?1900:2e3)};var sz=WM("FullYear",!0);function uz(){return qM(this.year())}function Rz(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 fz(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+fz(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=rz(o=M-1)+A:A>rz(M)?(o=M+1,c=A-rz(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(rz(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"),bM("week","w"),bM("isoWeek","W"),cM("week",5),cM("isoWeek",5),EM("w",LM),EM("ww",LM,uM),EM("W",LM),EM("WW",LM,uM),IM(["w","ww","W","WW"],(function(M,z,b,p){z[p.substr(0,1)]=nM(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 _z(M){var z=Nz(this,1,4).week;return null==M?z:this.add(7*(M-z),"d")}function yz(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"),bM("day","d"),bM("weekday","e"),bM("isoWeekday","E"),cM("day",11),cM("weekday",11),cM("isoWeekday",11),EM("d",LM),EM("e",LM),EM("E",LM),EM("dd",(function(M,z){return z.weekdaysMinRegex(M)})),EM("ddd",(function(M,z){return z.weekdaysShortRegex(M)})),EM("dddd",(function(M,z){return z.weekdaysRegex(M)})),IM(["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})),IM(["d","e","E"],(function(M,z,b,p){z[p]=nM(M)}));var kz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ez="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wz="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cz=kM,Dz=kM,Pz=kM;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 Iz(M){return!0===M?vz(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort}function Hz(M){return!0===M?vz(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin}function Fz(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=FM.call(this._weekdaysParse,c))?O:null:"ddd"===z?-1!==(O=FM.call(this._shortWeekdaysParse,c))?O:null:-1!==(O=FM.call(this._minWeekdaysParse,c))?O:null:"dddd"===z?-1!==(O=FM.call(this._weekdaysParse,c))||-1!==(O=FM.call(this._shortWeekdaysParse,c))||-1!==(O=FM.call(this._minWeekdaysParse,c))?O:null:"ddd"===z?-1!==(O=FM.call(this._shortWeekdaysParse,c))||-1!==(O=FM.call(this._weekdaysParse,c))||-1!==(O=FM.call(this._minWeekdaysParse,c))?O:null:-1!==(O=FM.call(this._minWeekdaysParse,c))||-1!==(O=FM.call(this._weekdaysParse,c))||-1!==(O=FM.call(this._shortWeekdaysParse,c))?O:null}function Yz(M,z,b){var p,O,o;if(this._weekdaysParseExact)return Fz.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 Uz(M){if(!this.isValid())return null!=M?this:NaN;var z=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=M?(M=yz(M,this.localeData()),this.add(M-z,"d")):z}function jz(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=DM(this.weekdaysMin(b,"")),O=DM(this.weekdaysShort(b,"")),o=DM(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)+E(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zz.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),Mb("a",!0),Mb("A",!1),bM("hour","h"),cM("hour",13),EM("a",zb),EM("A",zb),EM("H",LM),EM("h",LM),EM("k",LM),EM("HH",LM,uM),EM("hh",LM,uM),EM("kk",LM,uM),EM("hmm",NM),EM("hmmss",BM),EM("Hmm",NM),EM("Hmmss",BM),xM(["H","HH"],GM),xM(["k","kk"],(function(M,z,b){var p=nM(M);z[GM]=24===p?0:p})),xM(["a","A"],(function(M,z,b){b._isPm=b._locale.isPM(M),b._meridiem=M})),xM(["h","hh"],(function(M,z,b){z[GM]=nM(M),r(b).bigHour=!0})),xM("hmm",(function(M,z,b){var p=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p)),r(b).bigHour=!0})),xM("hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p,2)),z[KM]=nM(M.substr(O)),r(b).bigHour=!0})),xM("Hmm",(function(M,z,b){var p=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p))})),xM("Hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p,2)),z[KM]=nM(M.substr(O))}));var pb=/[ap]\.?m?\.?/i,Ob=WM("Hours",!0);function ob(M,z,b){return M>11?b?"pm":"PM":b?"am":"AM"}var cb,Ab={calendar:v,longDateFormat:U,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:zz,monthsShort:bz,week:hz,weekdays:kz,weekdaysMin:wz,weekdaysShort:Ez,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 Wb(M){return M?M.toLowerCase().replace("_","-"):M}function ab(M){for(var z,b,p,O,o=0;o<M.length;){for(z=(O=Wb(M[o]).split("-")).length,b=(b=Wb(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 null!=M.match("^[^/\\\\]*$")}function db(z){var b=null;if(void 0===qb[z]&&M&&M.exports&&tb(z))try{b=cb._abbr,yM(),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(y(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(y(qb[M]._config,z)):(null!=(p=db(M))&&(O=p._config),z=y(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 ab(M)}function Rb(){return h(qb)}function fb(M){var z,b=M._a;return b&&-2===r(M).overflow&&(z=b[UM]<0||b[UM]>11?UM:b[jM]<1||b[jM]>Mz(b[YM],b[UM])?jM:b[GM]<0||b[GM]>24||24===b[GM]&&(0!==b[VM]||0!==b[KM]||0!==b[QM])?GM:b[VM]<0||b[VM]>59?VM:b[KM]<0||b[KM]>59?KM:b[QM]<0||b[QM]>999?QM:-1,r(M)._overflowDayOfYear&&(z<YM||z>jM)&&(z=jM),r(M)._overflowWeeks&&-1===z&&(z=JM),r(M)._overflowWeekday&&-1===z&&(z=ZM),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||""),Ib(M)}else M._isValid=!1}function _b(M,z,b,p,O,o){var c=[yb(M),bz.indexOf(z),parseInt(b,10),parseInt(p,10),parseInt(O,10)];return o&&c.push(parseInt(o,10)),c}function yb(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||Ez.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 Eb(M){var z,b=mb.exec(Sb(M._i));if(b){if(z=_b(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=fz.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),r(M).rfc2822=!0}else M._isValid=!1}function wb(M){var z=hb.exec(M._i);null===z?(Tb(M),!1===M._isValid&&(delete M._isValid,Eb(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[jM]&&null==M._a[UM]&&xb(M),null!=M._dayOfYear&&(o=Cb(M._a[YM],p[YM]),(M._dayOfYear>rz(o)||0===M._dayOfYear)&&(r(M)._overflowDayOfYear=!0),b=fz(o,0,M._dayOfYear),M._a[UM]=b.getUTCMonth(),M._a[jM]=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[GM]&&0===M._a[VM]&&0===M._a[KM]&&0===M._a[QM]&&(M._nextDay=!0,M._a[GM]=0),M._d=(M._useUTC?fz:Rz).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[GM]=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[YM],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[YM],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[YM]=A.year,M._dayOfYear=A.dayOfYear)}function Ib(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,W=0;for(q=(O=Y(M._f,M._locale).match(w)||[]).length,z=0;z<q;z++)o=O[z],(b=(e.match(wM(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),W+=b.length),P[o]?(b?r(M).empty=!1:r(M).unusedTokens.push(o),HM(o,b,M)):M._strict&&!b&&r(M).unusedTokens.push(o);r(M).charsLeftOver=n-W,e.length>0&&r(M).unusedInput.push(e),M._a[GM]<=12&&!0===r(M).bigHour&&M._a[GM]>0&&(r(M).bigHour=void 0),r(M).parsedDateParts=M._a.slice(0),r(M).meridiem=M._meridiem,M._a[GM]=Hb(M._locale,M._a[GM],M._meridiem),null!==(A=r(M).era)&&(M._a[YM]=M._locale.erasConvertYear(A,M._a[YM])),Pb(M),fb(M)}else Eb(M);else Tb(M)}function Hb(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 Fb(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],Ib(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=OM(M._i),b=void 0===z.day?z.date:z.day;M._a=a([z.year,z.month,b,z.hour,z.minute,z.second,z.millisecond],(function(M){return M&&parseInt(M,10)})),Pb(M)}}function Ub(M){var z=new L(fb(jb(M)));return z._nextDay&&(z.add(1,"d"),z._nextDay=void 0),z}function jb(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(fb(z)):(W(z)?M._d=z:o(b)?Fb(M):b?Ib(M):Gb(M),s(M)||(M._d=null),M))}function Gb(M){var z=M._i;e(z)?M._d=new Date(p.now()):W(z)?M._d=new Date(z.valueOf()):"string"==typeof z?wb(M):o(z)?(M._a=a(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,Ub(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===FM.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]])!==nM(M[bp[b]])&&(p=!0)}return!0}function Op(){return this._isValid}function op(){return gp(NaN)}function cp(M){var z=OM(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&&nM(M[p])!==nM(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+E(~~(M/60),2)+z+E(~~M%60,2)}))}np("Z",":"),np("ZZ",""),EM("Z",SM),EM("ZZ",SM),xM(["Z","ZZ"],(function(M,z,b){b._useUTC=!0,b._tzm=ap(SM,M)}));var Wp=/([\+\-]|\d\d)/gi;function ap(M,z){var b,p,O=(z||"").match(M);return null===O?null:0===(p=60*(b=((O[O.length-1]||[])+"").match(Wp)||["-",0,0])[1]+nM(b[2]))?0:"+"===b[0]?p:-p}function tp(M,z){var b,O;return z._isUTC?(b=z.clone(),O=(N(M)||W(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=ap(SM,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 Rp(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var M=ap(_M,this._i);null!=M?this.utcOffset(M):this.utcOffset(0,!0)}return this}function fp(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=jb(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:nM(c[jM])*b,h:nM(c[GM])*b,m:nM(c[VM])*b,s:nM(c[KM])*b,ms:nM(qp(1e3*c[QM]))*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=yp(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 _p(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 yp(M,z){var b;return M.isValid()&&z.isValid()?(z=tp(z,M),M.isBefore(z)?b=_p(M,z):((b=_p(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&&nz(M,aM(M,"Month")+A*b),c&&tM(M,"Date",aM(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"),Ep=Sp(-1,"subtract");function wp(M){return"string"==typeof M||M instanceof String}function Cp(M){return N(M)||W(M)||wp(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)&&wp(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 Ip(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 Hp(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 Fp(){return new L(this)}function Yp(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()>b.valueOf():b.valueOf()<this.clone().startOf(z).valueOf())}function Up(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()<b.valueOf():this.clone().endOf(z).valueOf()<b.valueOf())}function jp(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=pM(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=pM(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:eM(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?F(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",F(b,"Z")):F(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=F(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,WO=60*nO,aO=3506328*WO;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)-aO:new Date(M,z,b).valueOf()}function iO(M,z,b){return M<100&&M>=0?Date.UTC(M+400,z,b)-aO:Date.UTC(M,z,b)}function rO(M){var z,b;if(void 0===(M=pM(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),WO);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=pM(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+=WO-tO(z+(this._isUTC?0:this.utcOffset()*nO),WO)-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 RO(){return Math.floor(this.valueOf()/1e3)}function fO(){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 _O(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 yO(){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 EO(M){return A(this,"_erasNameRegex")||HO.call(this),M?this._erasNameRegex:this._erasRegex}function wO(M){return A(this,"_erasAbbrRegex")||HO.call(this),M?this._erasAbbrRegex:this._erasRegex}function CO(M){return A(this,"_erasNarrowRegex")||HO.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 IO(M,z){return z._eraYearOrdinalRegex||gM}function HO(){var M,z,b=[],p=[],O=[],o=[],c=this.eras();for(M=0,z=c.length;M<z;++M)p.push(DM(c[M].name)),b.push(DM(c[M].abbr)),O.push(DM(c[M].narrow)),o.push(DM(c[M].name)),o.push(DM(c[M].abbr)),o.push(DM(c[M].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+p.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+b.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+O.join("|")+")","i")}function FO(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.doy)}function UO(M){return QO.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)}function jO(){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=fz(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"),EM("N",DO),EM("NN",DO),EM("NNN",DO),EM("NNNN",PO),EM("NNNNN",xO),xM(["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})),EM("y",gM),EM("yy",gM),EM("yyy",gM),EM("yyyy",gM),EM("yo",IO),xM(["y","yy","yyy","yyyy"],YM),xM(["yo"],(function(M,z,b,p){var O;b._locale._eraYearOrdinalRegex&&(O=M.match(b._locale._eraYearOrdinalRegex)),b._locale.eraYearOrdinalParse?z[YM]=b._locale.eraYearOrdinalParse(M,O):z[YM]=parseInt(M,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),FO("gggg","weekYear"),FO("ggggg","weekYear"),FO("GGGG","isoWeekYear"),FO("GGGGG","isoWeekYear"),bM("weekYear","gg"),bM("isoWeekYear","GG"),cM("weekYear",1),cM("isoWeekYear",1),EM("G",TM),EM("g",TM),EM("GG",LM,uM),EM("gg",LM,uM),EM("GGGG",hM,fM),EM("gggg",hM,fM),EM("GGGGG",mM,lM),EM("ggggg",mM,lM),IM(["gggg","ggggg","GGGG","GGGGG"],(function(M,z,b,p){z[p.substr(0,2)]=nM(M)})),IM(["gg","GG"],(function(M,z,b,O){z[O]=p.parseTwoDigitYear(M)})),x("Q",0,"Qo","quarter"),bM("quarter","Q"),cM("quarter",7),EM("Q",sM),xM("Q",(function(M,z){z[UM]=3*(nM(M)-1)})),x("D",["DD",2],"Do","date"),bM("date","D"),cM("date",9),EM("D",LM),EM("DD",LM,uM),EM("Do",(function(M,z){return M?z._dayOfMonthOrdinalParse||z._ordinalParse:z._dayOfMonthOrdinalParseLenient})),xM(["D","DD"],jM),xM("Do",(function(M,z){z[jM]=nM(M.match(LM)[0])}));var $O=WM("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"),bM("dayOfYear","DDD"),cM("dayOfYear",4),EM("DDD",XM),EM("DDDD",RM),xM(["DDD","DDDD"],(function(M,z,b){b._dayOfYear=nM(M)})),x("m",["mm",2],0,"minute"),bM("minute","m"),cM("minute",14),EM("m",LM),EM("mm",LM,uM),xM(["m","mm"],VM);var zo=WM("Minutes",!1);x("s",["ss",2],0,"second"),bM("second","s"),cM("second",15),EM("s",LM),EM("ss",LM,uM),xM(["s","ss"],KM);var bo,po,Oo=WM("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()})),bM("millisecond","ms"),cM("millisecond",16),EM("S",XM,sM),EM("SS",XM,uM),EM("SSS",XM,RM),bo="SSSS";bo.length<=9;bo+="S")EM(bo,gM);function oo(M,z){z[QM]=nM(1e3*("0."+M))}for(bo="S";bo.length<=9;bo+="S")xM(bo,oo);function co(){return this._isUTC?"UTC":""}function Ao(){return this._isUTC?"Coordinated Universal Time":""}po=WM("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 Wo(M){return M}qo.add=kp,qo.calendar=Hp,qo.clone=Fp,qo.diff=Qp,qo.endOf=sO,qo.format=zO,qo.from=bO,qo.fromNow=pO,qo.to=OO,qo.toNow=oO,qo.get=dM,qo.invalidAt=hO,qo.isAfter=Yp,qo.isBefore=Up,qo.isBetween=jp,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=iM,qo.startOf=rO,qo.subtract=Ep,qo.toArray=lO,qo.toObject=LO,qo.toDate=fO,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=RO,qo.valueOf=uO,qo.creationData=mO,qo.eraName=yO,qo.eraNarrow=SO,qo.eraAbbr=vO,qo.eraYear=kO,qo.year=sz,qo.isLeapYear=uz,qo.weekYear=YO,qo.isoWeekYear=UO,qo.quarter=qo.quarters=ZO,qo.month=Wz,qo.daysInMonth=az,qo.week=qo.weeks=Tz,qo.isoWeek=qo.isoWeeks=_z,qo.weeksInYear=VO,qo.weeksInWeekYear=KO,qo.isoWeeksInYear=jO,qo.isoWeeksInISOWeekYear=GO,qo.date=$O,qo.day=qo.days=Uz,qo.weekday=jz,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=Rp,qo.hasAlignedHourOffset=fp,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",Wz),qo.years=X("years accessor is deprecated. Use year instead",sz),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 ao=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 Ro(M,z,b){return ro(M,z,b,"weekdays")}function fo(M,z,b){return ro(M,z,b,"weekdaysShort")}function lo(M,z,b){return ro(M,z,b,"weekdaysMin")}ao.calendar=k,ao.longDateFormat=j,ao.invalidDate=V,ao.ordinal=J,ao.preparse=Wo,ao.postformat=Wo,ao.relativeTime=$,ao.pastFuture=MM,ao.set=_,ao.eras=gO,ao.erasParse=TO,ao.erasConvertYear=_O,ao.erasAbbrRegex=wO,ao.erasNameRegex=EO,ao.erasNarrowRegex=CO,ao.months=cz,ao.monthsShort=Az,ao.monthsParse=ez,ao.monthsRegex=dz,ao.monthsShortRegex=tz,ao.week=Xz,ao.firstDayOfYear=gz,ao.firstDayOfWeek=mz,ao.weekdays=xz,ao.weekdaysMin=Hz,ao.weekdaysShort=Iz,ao.weekdaysParse=Yz,ao.weekdaysRegex=Vz,ao.weekdaysShortRegex=Kz,ao.weekdaysMinRegex=Qz,ao.isPM=bb,ao.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===nM(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(_o(A)+c),c=0,A=0),q.milliseconds=o%1e3,M=eM(o/1e3),q.seconds=M%60,z=eM(M/60),q.minutes=z%60,b=eM(z/60),q.hours=b%24,c+=eM(b/24),A+=O=eM(To(c)),c-=mo(_o(O)),p=eM(A/12),A%=12,q.days=c,q.months=A,q.years=p,this}function To(M){return 4800*M/146097}function _o(M){return 146097*M/4800}function yo(M){if(!this.isValid())return NaN;var z,b,p=this._milliseconds;if("month"===(M=pM(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(_o(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(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*nM(this._months/12):NaN}function vo(M){return function(){return this.as(M)}}var ko=vo("ms"),Eo=vo("s"),wo=vo("m"),Co=vo("h"),Do=vo("d"),Po=vo("w"),xo=vo("M"),Io=vo("Q"),Ho=vo("y");function Fo(){return gp(this)}function Yo(M){return M=pM(M),this.isValid()?this[M+"s"]():NaN}function Uo(M){return function(){return this.isValid()?this._data[M]:NaN}}var jo=Uo("milliseconds"),Go=Uo("seconds"),Vo=Uo("minutes"),Ko=Uo("hours"),Qo=Uo("days"),Jo=Uo("months"),Zo=Uo("years");function $o(){return eM(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")),W=Mc(O.as("y")),a=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&&(a=a||n<=1&&["w"]||n<b.w&&["ww",n]),(a=a||e<=1&&["M"]||e<b.M&&["MM",e]||W<=1&&["y"]||["yy",W])[2]=z,a[3]=+M>0,a[4]=p,bc.apply(null,a)}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),W=this.asSeconds();return W?(M=eM(q/60),z=eM(M/60),q%=60,M%=60,b=eM(n/12),n%=12,p=q?q.toFixed(3).replace(/\.?0+$/,""):"",O=W<0?"-":"",o=qc(this._months)!==qc(W)?"-":"",c=qc(this._days)!==qc(W)?"-":"",A=qc(this._milliseconds)!==qc(W)?"-":"",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=yo,nc.asMilliseconds=ko,nc.asSeconds=Eo,nc.asMinutes=wo,nc.asHours=Co,nc.asDays=Do,nc.asWeeks=Po,nc.asMonths=xo,nc.asQuarters=Io,nc.asYears=Ho,nc.valueOf=So,nc._bubble=go,nc.clone=Fo,nc.get=Yo,nc.milliseconds=jo,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"),EM("x",TM),EM("X",vM),xM("X",(function(M,z,b){b._d=new Date(1e3*parseFloat(M))})),xM("x",(function(M,z,b){b._d=new Date(nM(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,W,a,t,d,i,r,s,u,R,f,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),_=L(q),y=L(e),S=L(n),v=L(W),k=L(a),E=L(t),w=L(d),C=L(i),D=L(r),P=L(s),x=L(u),I=L(R),H=L(f),Y=L(l);function F(){return F=Object.assign?Object.assign.bind():function(M){for(var z=1;z<arguments.length;z++){var b=arguments[z];for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(M[p]=b[p])}return M},F.apply(this,arguments)}function U(M,z){return M&&z&&M===z}const j=["stop","station","favouriteStop","favouriteStation"],G=["favouriteVehicleRentalStation","bikestation"];function V(M){if(!M)return"";const z=M.split(":");return 0===z.length?"":`citybikes${z[0]}:bikestation:${z[1]}`}function K(M,z){const b=M.properties,p=z.properties;if("FutureRoute"===M.type&&"FutureRoute"===z.type){const M=b.origin,z=b.destination,O=p.origin,o=p.destination;return`${M.name}//${M.locality}//${z.name}//${z.locality}`===`${O.name}//${O.locality}//${o.name}//${o.locality}`}if("FutureRoute"===M.type||"FutureRoute"===z.type)return!1;if(G.includes(b.layer)&&G.includes(p.layer)){return(b.gid||V(b.labelId))===(p.gid||V(p.labelId))}if(b.gtfsId&&p.gtfsId)return b.gtfsId===p.gtfsId;if(j.includes(b.layer)&&j.includes(p.layer)&&b.gid&&p.gid)return b.gid===p.gid;const O=M&&M.geometry?M.geometry.coordinates:void 0,o=z&&z.geometry?z.geometry.coordinates:void 0;return!!(O&&o&&Math.abs(O[0]-o[0])<1e-6&&Math.abs(O[1]-o[1])<1e-6&&(U(b.name,p.name)||U(b.label,p.label)||U(b.address,p.address)||U(b.address,p.label)||U(b.label,p.address)))}const Q=M=>y.default(M)?M.toLowerCase():"",J="back",Z="currentPosition",$="favouriteStop",MM="favouriteStation",zM="favouritePlace",bM="favouriteRoute",pM="favouriteVehicleRentalStation",OM="futureRoute",oM="station",cM="selectFromMap",AM="ownLocations",qM="stop",eM="bikestation",nM="carpark",WM="bikepark",aM=({layer:M,type:z})=>"stop"===M||"favouriteStop"===M||"stop"===z||"favouriteStop"===z,tM=(M,z)=>{switch(M){case Z:return 1;case J:return.9;case cM:return.8;case AM:return.79;case MM:case zM:case $:case bM:case pM:return.45;case OM:return.44;case oM:return y.default(z)&&0===z.indexOf("gtfs")?.43:.42;case nM:case WM:case eM:return.38;case qM:return.36;default:return.41}},dM=(M,z,b="")=>{if(!Array.isArray(z))return z;const p=z=>y.default(z)&&M&&M.test(z),O=Q(b),o=p(O),c=S.default(z,[M=>o&&p(Q(M.properties.shortName))&&0===Q(M.properties.shortName).indexOf(O)?1:0,M=>{const{confidence:z,layer:b,source:p}=M.properties;if(0===O.length)return tM(b,p);if(!z)return tM(b,p)+((M,z)=>y.default(M)&&0!==M.length?["name","label","address","shortName"].map((M=>z[M])).filter((M=>y.default(M)&&M.length>0)).map((z=>{const b=Q(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(b){case oM:return z+(0===p.indexOf("gtfs")?.02:.01);case qM:case nM:case WM:return z-.05;case eM:return z-.04;default:return z}}],["desc","desc"]);return v.default(c,K)},iM=(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){const p=z.toLowerCase().trim(),O=p.includes(" ")||p.includes(",");return M.filter((M=>{let z=[];b.forEach((b=>{let p=k.default(M,b);O||"properties.label"!==b&&"address"!==b||!p||(p=p.split(","),p.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(let M=0;M<z.length;M++)if(0===z[M].indexOf(p))return!0;return!1}))}return M}function sM(M,z){return M?Object.keys(M).map((b=>{const p=z||b,O=M[b];return"object"==typeof O?sM(O,p):`${encodeURIComponent(p)}=${encodeURIComponent(O)}`})).join("&"):""}const uM=require("axios").default;function RM(M,z){return uM.get(encodeURI(M)+(z?(-1===M.search(/\?/)?"?":"&")+sM(z):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then((M=>M.data))}const fM="https://api.digitransit.fi/geocoding/v1/search";function lM(M,z,b,p,O,o,c,A){const q=M?M.trim():null;if(null==q||q.length<1||c&&!c.test(q))return Promise.resolve([]);const e=o||fM;let n=F({text:q},z,p,{lang:b});if(O&&(n=F({},n,{sources:O})),A){n=F({},n,{layers:A.toString()})}return RM(e,n).then((M=>M.features))}function LM(M,z){if(!M||M.length<1)return Promise.resolve([]);let b="";const p=M.map((M=>{const z="stop"===M.type?"stop":"station";let p=`gtfs${M.gtfsId.split(":")[0].toLowerCase()}:${z}:GTFS:${M.gtfsId}`;return M.code&&(p+=`#${M.code}`),b+=`${p},`,F({},M,{gid:p})})).reduce((function(M,z){return M[z.gid]=z,M}),{});return RM(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:aM(M.properties)?"favouriteStop":"favouriteStation"},geometry:M.geometry})))))}function NM(M,z,b){let 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(_.default(p,10).map((M=>{const z=F({},M,{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete z.properties.confidence,z})))}const BM=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE"],XM=["favouritePlace","venue","address","street"],hM=["carpark","bikepark"];const mM=g.default((function(M,z,b,p,O,o,{input:c},A,q,e){const{getPositions:n,getFavouriteLocations:W,getOldSearches:a,getFavouriteStops:t,parkingAreaSources:d,getLanguage:i,getStopAndStationsQuery:r,getFavouriteVehicleRentalStationsQuery:s,getFavouriteVehicleRentalStations:u,getFavouriteRoutesQuery:R,getFavouriteRoutes:f,getRoutesQuery:l,context:L,isPeliasLocationAware:N,minimalRegexp:B,lineRegexp:X,URL_PELIAS:h,URL_PELIAS_PLACE:m,feedIDs:g,geocodingSearchParams:y,geocodingSources:S,getFutureRoutes:v,cityBikeNetworks:k}=p,E=!M||0===M.length,w=!z||0===z.length,C=n(L),D=[],P={type:"all",term:c,results:[]},x=i(L),I=N&&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"!==C.status&&D.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([])}(c,C)),(E||M.includes("MapPosition"))&&D.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([])}(c)),M.includes("FutureRoutes")){const M=v(L);D.push(_.default(M,3))}if(M.includes("SelectFromOwnLocations")&&function(M){const z=M.getFavouriteLocations(M.context);if((null==z?void 0:z.length)>0)return!0;const b=M.getFavouriteVehicleRentalStations(M.context);if((null==b?void 0:b.length)>0)return!0;const p=M.getFavouriteStops(M.context);return(null==p?void 0:p.length)>0}(p)&&D.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([])}(c)),E||M.includes("Locations")){const M=y;if(z.includes("Favourite")){const M=W(L);D.push(function(M,z){return Promise.resolve(rM(M,z,["address","name"]).map((M=>({type:"FavouritePlace",properties:F({},M,{label:M.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[M.lon,M.lat]}}))))}(M,c)),z.includes("Back")&&D.push(Promise.resolve([{type:"back",address:"back",lat:null,lon:null,properties:{labelId:"back",layer:"back",address:"back",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]))}if(w||z.includes("Datasource")){const z=["station","venue","address","street"],b=g.map((M=>`gtfs${M}`)),p=S.concat(b).join(",");D.push(lM(c,M,x,I,p,h,B,z))}if(w||z.includes("History")){const M=a(L,"endpoint"),z=["currentPosition","selectFromMap","futureRoute","ownLocations","vehicleRentalStation","bikepark","carpark","stop","back"];z.push(...BM),D.push(NM(M,c,z))}}if(E||M.includes("ParkingAreas")){if(w||z.includes("Datasource")){const M=y;o&&10!==o&&(M.size=o);const z=["carpark","bikepark"],b=d?d.join(","):null;D.push(lM(c,M,x,I,b,h,B,z).then((M=>O?O(M,H):M)))}if(w||z.includes("History")){const M=a(L),z=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","bikestation","vehicleRentalStation","back","stop","station"];z.push(...BM),z.push(...XM),D.push(NM(M,c,z))}}if(E||M.includes("Stops")){if(z.includes("Favourite")){const M=t(L);let z;z=M.every((M=>"station"===M.type))?LM(M,m).then((M=>O?O(M,H):M)):r(M).then((M=>LM(M,m))).then((M=>O?O(M,H):M)),D.push(function(M,z){return M.then((M=>rM(M,z,["properties.name","properties.name","properties.address"])))}(z,c))}if(w||z.includes("Datasource")){const z=["stop","station"],b=o&&10!==o?{size:o}:{};y&&y["boundary.country"]&&(b["boundary.country"]=y["boundary.country"]),(E||M.includes("Locations"))&&(b.dedupestops=1);const p=g.map((M=>`gtfs${M}`)).join(",");D.push(lM(c,b,x,I,p,h,B,z).then((M=>O?O(M,H):M)))}if(w||z.includes("History")){const M=a(L).filter((M=>!M.properties.gid||M.properties.gid.includes("GTFS:"))),z=["currentPosition","selectFromMap","futureRoute","ownLocations","favouritePlace","vehicleRentalStation","back"];z.push(...BM),z.push(...XM),z.push(...hM),b?("route-CITYBIKE"!==b&&(z.push("vehicleRentalStation"),z.push("bikestation")),D.push(NM(M,c,z).then((M=>O?O(M,H):M)))):D.push(NM(M,c,z))}}if(E||M.includes("Routes")){if(z.includes("Favourite")){const M=f(L);D.push(R(M,c,H,q).then((M=>O?O(M,H,"Routes"):M)))}if(D.push(l(c,g,b,q).then((M=>O?O(M,H,"Routes"):M))),w||z.includes("History")){const M=a(L),z=["currentPosition","selectFromMap","futureRoute","favouritePlace","stop","station","bikepark","carpark","ownLocations","back"];b&&("route-CITYBIKE"!==b&&(z.push("vehicleRentalStation"),z.push("bikestation")),z.push(...BM.filter((M=>!(M===b))))),z.push(...XM),D.push(NM(M,c,z).then((M=>O?O(M,H,"Routes"):M)))}}if(E||M.includes("VehicleRentalStations")){if(z.includes("Favourite")){const M=u(L);D.push(s(M,c))}if(w||z.includes("Datasource")){const M=["bikestation"],z=o&&10!==o?{size:o}:{};D.push(lM(c,z,x,I,k.join(","),h,B,M).then((M=>O?O(M,H,"VehicleRentalStations"):M)))}}Promise.all(D).then(T.default).then((M=>{P.results=M})).catch((M=>{P.error=M})).then((()=>{A(F({},P,{results:dM(X,P.results,c)}))}))}),300,{leading:!0}),gM=M=>M.localadmin||M.locality||M.address&&M.address.lastIndexOf(",")<M.address.length-2&&M.address.substring(M.address.lastIndexOf(",")+2)||"",TM=({id:M,code:z})=>z||(void 0!==M&&void 0!==M.indexOf&&-1!==M.indexOf("#")?M.substring(M.indexOf("#")+1):void 0),_M=C.default(((M,z=!1)=>{switch(M.layer){case"currentPosition":return[M.labelId,M.address];case"selectFromMap":case"ownLocations":case"back":return[M.labelId];case"favouritePlace":return b=M.name,p=M.address,[b||p&&p.split(",")[0],"string"==typeof p?p.replace(new RegExp(`${D.default(b)}([ ,]|$)+`),""):""];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!z&&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 z?[M.name||M.label||M.address&&M.address.split(",")[0],gM(M)]:[M.name,M.id,TM(M),gM(M)];default:return[M.name||M.label||M.address&&M.address.split(",")[0],gM(M)]}var b,p}),((M,z)=>{const b=P.default(M);return b.plain=z,b}));function yM(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function SM(M,z){return M(z={exports:{}},z.exports),z.exports}var vM,kM=SM((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 W(M){return M instanceof Date||"[object Date]"===Object.prototype.toString.call(M)}function a(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){if(null==M._isValid){var z=r(M),p=b.call(z.parsedDateParts,(function(M){return null!=M})),O=!isNaN(M._d.getTime())&&z.overflow<0&&!z.empty&&!z.invalidEra&&!z.invalidMonth&&!z.invalidWeekday&&!z.weekdayMismatch&&!z.nullInput&&!z.invalidFormat&&!z.userInvalidated&&(!z.meridiem||z.meridiem&&p);if(M._strict&&(O=O&&0===z.charsLeftOver&&0===z.unusedTokens.length&&void 0===z.bigHour),null!=Object.isFrozen&&Object.isFrozen(M))return O;M._isValid=O}return 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 R=p.momentProperties=[],f=!1;function l(M,z){var b,p,O,o=R.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=R[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===f&&(f=!0,p.updateOffset(this),f=!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 _(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 y(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 E(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 w=/(\[[^\[]*\])|(\\)?([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 E(O.apply(this,arguments),z[1],z[2])}),b&&(P[b]=function(){return this.localeData().ordinal(O.apply(this,arguments),M)})}function I(M){return M.match(/\[[\s\S]/)?M.replace(/^\[|\]$/g,""):M.replace(/\\/g,"")}function H(M){var z,b,p=M.match(w);for(z=0,b=p.length;z<b;z++)P[p[z]]?p[z]=P[p[z]]:p[z]=I(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 Y(M,z){return M.isValid()?(z=F(z,M.localeData()),D[z]=D[z]||H(z),D[z](M)):M.localeData().invalidDate()}function F(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 U={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function j(M){var z=this._longDateFormat[M],b=this._longDateFormat[M.toUpperCase()];return z||!b?z:(this._longDateFormat[M]=b.match(w).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={};function bM(M,z){var b=M.toLowerCase();zM[b]=zM[b+"s"]=zM[z]=M}function pM(M){return"string"==typeof M?zM[M]||zM[M.toLowerCase()]:void 0}function OM(M){var z,b,p={};for(b in M)A(M,b)&&(z=pM(b))&&(p[z]=M[b]);return p}var oM={};function cM(M,z){oM[M]=z}function AM(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}function qM(M){return M%4==0&&M%100!=0||M%400==0}function eM(M){return M<0?Math.ceil(M)||0:Math.floor(M)}function nM(M){var z=+M,b=0;return 0!==z&&isFinite(z)&&(b=eM(z)),b}function WM(M,z){return function(b){return null!=b?(tM(this,M,b),p.updateOffset(this,z),this):aM(this,M)}}function aM(M,z){return M.isValid()?M._d["get"+(M._isUTC?"UTC":"")+z]():NaN}function tM(M,z,b){M.isValid()&&!isNaN(b)&&("FullYear"===z&&qM(M.year())&&1===M.month()&&29===M.date()?(b=nM(b),M._d["set"+(M._isUTC?"UTC":"")+z](b,M.month(),Mz(b,M.month()))):M._d["set"+(M._isUTC?"UTC":"")+z](b))}function dM(M){return T(this[M=pM(M)])?this[M]():this}function iM(M,z){if("object"==typeof M){var b,p=AM(M=OM(M)),O=p.length;for(b=0;b<O;b++)this[p[b].unit](M[p[b].unit])}else if(T(this[M=pM(M)]))return this[M](z);return this}var rM,sM=/\d/,uM=/\d\d/,RM=/\d{3}/,fM=/\d{4}/,lM=/[+-]?\d{6}/,LM=/\d\d?/,NM=/\d\d\d\d?/,BM=/\d\d\d\d\d\d?/,XM=/\d{1,3}/,hM=/\d{1,4}/,mM=/[+-]?\d{1,6}/,gM=/\d+/,TM=/[+-]?\d+/,_M=/Z|[+-]\d\d:?\d\d/gi,SM=/Z|[+-]\d\d(?::?\d\d)?/gi,vM=/[+-]?\d+(\.\d{1,3})?/,kM=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function EM(M,z,b){rM[M]=T(z)?z:function(M,p){return M&&b?b:z}}function wM(M,z){return A(rM,M)?rM[M](z._strict,z._locale):new RegExp(CM(M))}function CM(M){return DM(M.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(M,z,b,p,O){return z||b||p||O})))}function DM(M){return M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}rM={};var PM={};function xM(M,z){var b,p,O=z;for("string"==typeof M&&(M=[M]),n(z)&&(O=function(M,b){b[z]=nM(M)}),p=M.length,b=0;b<p;b++)PM[M[b]]=O}function IM(M,z){xM(M,(function(M,b,p,O){p._w=p._w||{},z(M,p._w,p,O)}))}function HM(M,z,b){null!=z&&A(PM,M)&&PM[M](z,b._a,b,M)}var YM,FM=0,UM=1,jM=2,GM=3,VM=4,KM=5,QM=6,JM=7,ZM=8;function $M(M,z){return(M%z+z)%z}function Mz(M,z){if(isNaN(M)||isNaN(z))return NaN;var b=$M(z,12);return M+=(z-b)/12,1===b?qM(M)?29:28:31-b%7%2}YM=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)})),bM("month","M"),cM("month",8),EM("M",LM),EM("MM",LM,uM),EM("MMM",(function(M,z){return z.monthsShortRegex(M)})),EM("MMMM",(function(M,z){return z.monthsRegex(M)})),xM(["M","MM"],(function(M,z){z[UM]=nM(M)-1})),xM(["MMM","MMMM"],(function(M,z,b,p){var O=b._locale.monthsParse(M,p,b._strict);null!=O?z[UM]=O:r(b).invalidMonth=M}));var zz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),bz="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),pz=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oz=kM,oz=kM;function cz(M,z){return M?o(this._months)?this._months[M.month()]:this._months[(this._months.isFormat||pz).test(z)?"format":"standalone"][M.month()]:o(this._months)?this._months:this._months.standalone}function Az(M,z){return M?o(this._monthsShort)?this._monthsShort[M.month()]:this._monthsShort[pz.test(z)?"format":"standalone"][M.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function qz(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=YM.call(this._shortMonthsParse,c))?O:null:-1!==(O=YM.call(this._longMonthsParse,c))?O:null:"MMM"===z?-1!==(O=YM.call(this._shortMonthsParse,c))||-1!==(O=YM.call(this._longMonthsParse,c))?O:null:-1!==(O=YM.call(this._longMonthsParse,c))||-1!==(O=YM.call(this._shortMonthsParse,c))?O:null}function ez(M,z,b){var p,O,o;if(this._monthsParseExact)return qz.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 nz(M,z){var b;if(!M.isValid())return M;if("string"==typeof z)if(/^\d+$/.test(z))z=nM(z);else if(!n(z=M.localeData().monthsParse(z)))return M;return b=Math.min(M.date(),Mz(M.year(),z)),M._d["set"+(M._isUTC?"UTC":"")+"Month"](z,b),M}function Wz(M){return null!=M?(nz(this,M),p.updateOffset(this,!0),this):aM(this,"Month")}function az(){return Mz(this.year(),this.month())}function tz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||iz.call(this),M?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Oz),this._monthsShortStrictRegex&&M?this._monthsShortStrictRegex:this._monthsShortRegex)}function dz(M){return this._monthsParseExact?(A(this,"_monthsRegex")||iz.call(this),M?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=oz),this._monthsStrictRegex&&M?this._monthsStrictRegex:this._monthsRegex)}function iz(){function M(M,z){return z.length-M.length}var z,b,p=[],O=[],o=[];for(z=0;z<12;z++)b=d([2e3,z]),p.push(this.monthsShort(b,"")),O.push(this.months(b,"")),o.push(this.months(b,"")),o.push(this.monthsShort(b,""));for(p.sort(M),O.sort(M),o.sort(M),z=0;z<12;z++)p[z]=DM(p[z]),O[z]=DM(O[z]);for(z=0;z<24;z++)o[z]=DM(o[z]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+p.join("|")+")","i")}function rz(M){return qM(M)?366:365}x("Y",0,0,(function(){var M=this.year();return M<=9999?E(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"),bM("year","y"),cM("year",1),EM("Y",TM),EM("YY",LM,uM),EM("YYYY",hM,fM),EM("YYYYY",mM,lM),EM("YYYYYY",mM,lM),xM(["YYYYY","YYYYYY"],FM),xM("YYYY",(function(M,z){z[FM]=2===M.length?p.parseTwoDigitYear(M):nM(M)})),xM("YY",(function(M,z){z[FM]=p.parseTwoDigitYear(M)})),xM("Y",(function(M,z){z[FM]=parseInt(M,10)})),p.parseTwoDigitYear=function(M){return nM(M)+(nM(M)>68?1900:2e3)};var sz=WM("FullYear",!0);function uz(){return qM(this.year())}function Rz(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 fz(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+fz(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=rz(o=M-1)+A:A>rz(M)?(o=M+1,c=A-rz(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(rz(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"),bM("week","w"),bM("isoWeek","W"),cM("week",5),cM("isoWeek",5),EM("w",LM),EM("ww",LM,uM),EM("W",LM),EM("WW",LM,uM),IM(["w","ww","W","WW"],(function(M,z,b,p){z[p.substr(0,1)]=nM(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 _z(M){var z=Nz(this,1,4).week;return null==M?z:this.add(7*(M-z),"d")}function yz(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"),bM("day","d"),bM("weekday","e"),bM("isoWeekday","E"),cM("day",11),cM("weekday",11),cM("isoWeekday",11),EM("d",LM),EM("e",LM),EM("E",LM),EM("dd",(function(M,z){return z.weekdaysMinRegex(M)})),EM("ddd",(function(M,z){return z.weekdaysShortRegex(M)})),EM("dddd",(function(M,z){return z.weekdaysRegex(M)})),IM(["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})),IM(["d","e","E"],(function(M,z,b,p){z[p]=nM(M)}));var kz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ez="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wz="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Cz=kM,Dz=kM,Pz=kM;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 Iz(M){return!0===M?vz(this._weekdaysShort,this._week.dow):M?this._weekdaysShort[M.day()]:this._weekdaysShort}function Hz(M){return!0===M?vz(this._weekdaysMin,this._week.dow):M?this._weekdaysMin[M.day()]:this._weekdaysMin}function Yz(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=YM.call(this._weekdaysParse,c))?O:null:"ddd"===z?-1!==(O=YM.call(this._shortWeekdaysParse,c))?O:null:-1!==(O=YM.call(this._minWeekdaysParse,c))?O:null:"dddd"===z?-1!==(O=YM.call(this._weekdaysParse,c))||-1!==(O=YM.call(this._shortWeekdaysParse,c))||-1!==(O=YM.call(this._minWeekdaysParse,c))?O:null:"ddd"===z?-1!==(O=YM.call(this._shortWeekdaysParse,c))||-1!==(O=YM.call(this._weekdaysParse,c))||-1!==(O=YM.call(this._minWeekdaysParse,c))?O:null:-1!==(O=YM.call(this._minWeekdaysParse,c))||-1!==(O=YM.call(this._weekdaysParse,c))||-1!==(O=YM.call(this._shortWeekdaysParse,c))?O:null}function Fz(M,z,b){var p,O,o;if(this._weekdaysParseExact)return Yz.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 Uz(M){if(!this.isValid())return null!=M?this:NaN;var z=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=M?(M=yz(M,this.localeData()),this.add(M-z,"d")):z}function jz(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=DM(this.weekdaysMin(b,"")),O=DM(this.weekdaysShort(b,"")),o=DM(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)+E(this.minutes(),2)})),x("hmmss",0,0,(function(){return""+Zz.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),x("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),x("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),Mb("a",!0),Mb("A",!1),bM("hour","h"),cM("hour",13),EM("a",zb),EM("A",zb),EM("H",LM),EM("h",LM),EM("k",LM),EM("HH",LM,uM),EM("hh",LM,uM),EM("kk",LM,uM),EM("hmm",NM),EM("hmmss",BM),EM("Hmm",NM),EM("Hmmss",BM),xM(["H","HH"],GM),xM(["k","kk"],(function(M,z,b){var p=nM(M);z[GM]=24===p?0:p})),xM(["a","A"],(function(M,z,b){b._isPm=b._locale.isPM(M),b._meridiem=M})),xM(["h","hh"],(function(M,z,b){z[GM]=nM(M),r(b).bigHour=!0})),xM("hmm",(function(M,z,b){var p=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p)),r(b).bigHour=!0})),xM("hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p,2)),z[KM]=nM(M.substr(O)),r(b).bigHour=!0})),xM("Hmm",(function(M,z,b){var p=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p))})),xM("Hmmss",(function(M,z,b){var p=M.length-4,O=M.length-2;z[GM]=nM(M.substr(0,p)),z[VM]=nM(M.substr(p,2)),z[KM]=nM(M.substr(O))}));var pb=/[ap]\.?m?\.?/i,Ob=WM("Hours",!0);function ob(M,z,b){return M>11?b?"pm":"PM":b?"am":"AM"}var cb,Ab={calendar:v,longDateFormat:U,invalidDate:G,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:zz,monthsShort:bz,week:hz,weekdays:kz,weekdaysMin:wz,weekdaysShort:Ez,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 Wb(M){return M?M.toLowerCase().replace("_","-"):M}function ab(M){for(var z,b,p,O,o=0;o<M.length;){for(z=(O=Wb(M[o]).split("-")).length,b=(b=Wb(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 null!=M.match("^[^/\\\\]*$")}function db(z){var b=null;if(void 0===qb[z]&&M&&M.exports&&tb(z))try{b=cb._abbr,yM(),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(y(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(y(qb[M]._config,z)):(null!=(p=db(M))&&(O=p._config),z=y(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 ab(M)}function Rb(){return h(qb)}function fb(M){var z,b=M._a;return b&&-2===r(M).overflow&&(z=b[UM]<0||b[UM]>11?UM:b[jM]<1||b[jM]>Mz(b[FM],b[UM])?jM:b[GM]<0||b[GM]>24||24===b[GM]&&(0!==b[VM]||0!==b[KM]||0!==b[QM])?GM:b[VM]<0||b[VM]>59?VM:b[KM]<0||b[KM]>59?KM:b[QM]<0||b[QM]>999?QM:-1,r(M)._overflowDayOfYear&&(z<FM||z>jM)&&(z=jM),r(M)._overflowWeeks&&-1===z&&(z=JM),r(M)._overflowWeekday&&-1===z&&(z=ZM),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||""),Ib(M)}else M._isValid=!1}function _b(M,z,b,p,O,o){var c=[yb(M),bz.indexOf(z),parseInt(b,10),parseInt(p,10),parseInt(O,10)];return o&&c.push(parseInt(o,10)),c}function yb(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||Ez.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 Eb(M){var z,b=mb.exec(Sb(M._i));if(b){if(z=_b(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=fz.apply(null,M._a),M._d.setUTCMinutes(M._d.getUTCMinutes()-M._tzm),r(M).rfc2822=!0}else M._isValid=!1}function wb(M){var z=hb.exec(M._i);null===z?(Tb(M),!1===M._isValid&&(delete M._isValid,Eb(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[jM]&&null==M._a[UM]&&xb(M),null!=M._dayOfYear&&(o=Cb(M._a[FM],p[FM]),(M._dayOfYear>rz(o)||0===M._dayOfYear)&&(r(M)._overflowDayOfYear=!0),b=fz(o,0,M._dayOfYear),M._a[UM]=b.getUTCMonth(),M._a[jM]=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[GM]&&0===M._a[VM]&&0===M._a[KM]&&0===M._a[QM]&&(M._nextDay=!0,M._a[GM]=0),M._d=(M._useUTC?fz:Rz).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[GM]=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[FM],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[FM],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[FM]=A.year,M._dayOfYear=A.dayOfYear)}function Ib(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,W=0;for(q=(O=F(M._f,M._locale).match(w)||[]).length,z=0;z<q;z++)o=O[z],(b=(e.match(wM(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),W+=b.length),P[o]?(b?r(M).empty=!1:r(M).unusedTokens.push(o),HM(o,b,M)):M._strict&&!b&&r(M).unusedTokens.push(o);r(M).charsLeftOver=n-W,e.length>0&&r(M).unusedInput.push(e),M._a[GM]<=12&&!0===r(M).bigHour&&M._a[GM]>0&&(r(M).bigHour=void 0),r(M).parsedDateParts=M._a.slice(0),r(M).meridiem=M._meridiem,M._a[GM]=Hb(M._locale,M._a[GM],M._meridiem),null!==(A=r(M).era)&&(M._a[FM]=M._locale.erasConvertYear(A,M._a[FM])),Pb(M),fb(M)}else Eb(M);else Tb(M)}function Hb(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 Yb(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],Ib(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 Fb(M){if(!M._d){var z=OM(M._i),b=void 0===z.day?z.date:z.day;M._a=a([z.year,z.month,b,z.hour,z.minute,z.second,z.millisecond],(function(M){return M&&parseInt(M,10)})),Pb(M)}}function Ub(M){var z=new L(fb(jb(M)));return z._nextDay&&(z.add(1,"d"),z._nextDay=void 0),z}function jb(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(fb(z)):(W(z)?M._d=z:o(b)?Yb(M):b?Ib(M):Gb(M),s(M)||(M._d=null),M))}function Gb(M){var z=M._i;e(z)?M._d=new Date(p.now()):W(z)?M._d=new Date(z.valueOf()):"string"==typeof z?wb(M):o(z)?(M._a=a(z.slice(0),(function(M){return parseInt(M,10)})),Pb(M)):c(z)?Fb(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,Ub(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===YM.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]])!==nM(M[bp[b]])&&(p=!0)}return!0}function Op(){return this._isValid}function op(){return gp(NaN)}function cp(M){var z=OM(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&&nM(M[p])!==nM(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+E(~~(M/60),2)+z+E(~~M%60,2)}))}np("Z",":"),np("ZZ",""),EM("Z",SM),EM("ZZ",SM),xM(["Z","ZZ"],(function(M,z,b){b._useUTC=!0,b._tzm=ap(SM,M)}));var Wp=/([\+\-]|\d\d)/gi;function ap(M,z){var b,p,O=(z||"").match(M);return null===O?null:0===(p=60*(b=((O[O.length-1]||[])+"").match(Wp)||["-",0,0])[1]+nM(b[2]))?0:"+"===b[0]?p:-p}function tp(M,z){var b,O;return z._isUTC?(b=z.clone(),O=(N(M)||W(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=ap(SM,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 Rp(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var M=ap(_M,this._i);null!=M?this.utcOffset(M):this.utcOffset(0,!0)}return this}function fp(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=jb(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:nM(c[jM])*b,h:nM(c[GM])*b,m:nM(c[VM])*b,s:nM(c[KM])*b,ms:nM(qp(1e3*c[QM]))*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=yp(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 _p(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 yp(M,z){var b;return M.isValid()&&z.isValid()?(z=tp(z,M),M.isBefore(z)?b=_p(M,z):((b=_p(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&&nz(M,aM(M,"Month")+A*b),c&&tM(M,"Date",aM(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"),Ep=Sp(-1,"subtract");function wp(M){return"string"==typeof M||M instanceof String}function Cp(M){return N(M)||W(M)||wp(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)&&wp(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 Ip(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 Hp(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 Yp(){return new L(this)}function Fp(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()>b.valueOf():b.valueOf()<this.clone().startOf(z).valueOf())}function Up(M,z){var b=N(M)?M:Kb(M);return!(!this.isValid()||!b.isValid())&&("millisecond"===(z=pM(z)||"millisecond")?this.valueOf()<b.valueOf():this.clone().endOf(z).valueOf()<b.valueOf())}function jp(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=pM(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=pM(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:eM(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?Y(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",Y(b,"Z")):Y(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=Y(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,WO=60*nO,aO=3506328*WO;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)-aO:new Date(M,z,b).valueOf()}function iO(M,z,b){return M<100&&M>=0?Date.UTC(M+400,z,b)-aO:Date.UTC(M,z,b)}function rO(M){var z,b;if(void 0===(M=pM(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),WO);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=pM(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+=WO-tO(z+(this._isUTC?0:this.utcOffset()*nO),WO)-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 RO(){return Math.floor(this.valueOf()/1e3)}function fO(){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 _O(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 yO(){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 EO(M){return A(this,"_erasNameRegex")||HO.call(this),M?this._erasNameRegex:this._erasRegex}function wO(M){return A(this,"_erasAbbrRegex")||HO.call(this),M?this._erasAbbrRegex:this._erasRegex}function CO(M){return A(this,"_erasNarrowRegex")||HO.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 IO(M,z){return z._eraYearOrdinalRegex||gM}function HO(){var M,z,b=[],p=[],O=[],o=[],c=this.eras();for(M=0,z=c.length;M<z;++M)p.push(DM(c[M].name)),b.push(DM(c[M].abbr)),O.push(DM(c[M].narrow)),o.push(DM(c[M].name)),o.push(DM(c[M].abbr)),o.push(DM(c[M].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+p.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+b.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+O.join("|")+")","i")}function YO(M,z){x(0,[M,M.length],0,z)}function FO(M){return QO.call(this,M,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function UO(M){return QO.call(this,M,this.isoWeek(),this.isoWeekday(),1,4)}function jO(){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=fz(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"),EM("N",DO),EM("NN",DO),EM("NNN",DO),EM("NNNN",PO),EM("NNNNN",xO),xM(["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})),EM("y",gM),EM("yy",gM),EM("yyy",gM),EM("yyyy",gM),EM("yo",IO),xM(["y","yy","yyy","yyyy"],FM),xM(["yo"],(function(M,z,b,p){var O;b._locale._eraYearOrdinalRegex&&(O=M.match(b._locale._eraYearOrdinalRegex)),b._locale.eraYearOrdinalParse?z[FM]=b._locale.eraYearOrdinalParse(M,O):z[FM]=parseInt(M,10)})),x(0,["gg",2],0,(function(){return this.weekYear()%100})),x(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),YO("gggg","weekYear"),YO("ggggg","weekYear"),YO("GGGG","isoWeekYear"),YO("GGGGG","isoWeekYear"),bM("weekYear","gg"),bM("isoWeekYear","GG"),cM("weekYear",1),cM("isoWeekYear",1),EM("G",TM),EM("g",TM),EM("GG",LM,uM),EM("gg",LM,uM),EM("GGGG",hM,fM),EM("gggg",hM,fM),EM("GGGGG",mM,lM),EM("ggggg",mM,lM),IM(["gggg","ggggg","GGGG","GGGGG"],(function(M,z,b,p){z[p.substr(0,2)]=nM(M)})),IM(["gg","GG"],(function(M,z,b,O){z[O]=p.parseTwoDigitYear(M)})),x("Q",0,"Qo","quarter"),bM("quarter","Q"),cM("quarter",7),EM("Q",sM),xM("Q",(function(M,z){z[UM]=3*(nM(M)-1)})),x("D",["DD",2],"Do","date"),bM("date","D"),cM("date",9),EM("D",LM),EM("DD",LM,uM),EM("Do",(function(M,z){return M?z._dayOfMonthOrdinalParse||z._ordinalParse:z._dayOfMonthOrdinalParseLenient})),xM(["D","DD"],jM),xM("Do",(function(M,z){z[jM]=nM(M.match(LM)[0])}));var $O=WM("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"),bM("dayOfYear","DDD"),cM("dayOfYear",4),EM("DDD",XM),EM("DDDD",RM),xM(["DDD","DDDD"],(function(M,z,b){b._dayOfYear=nM(M)})),x("m",["mm",2],0,"minute"),bM("minute","m"),cM("minute",14),EM("m",LM),EM("mm",LM,uM),xM(["m","mm"],VM);var zo=WM("Minutes",!1);x("s",["ss",2],0,"second"),bM("second","s"),cM("second",15),EM("s",LM),EM("ss",LM,uM),xM(["s","ss"],KM);var bo,po,Oo=WM("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()})),bM("millisecond","ms"),cM("millisecond",16),EM("S",XM,sM),EM("SS",XM,uM),EM("SSS",XM,RM),bo="SSSS";bo.length<=9;bo+="S")EM(bo,gM);function oo(M,z){z[QM]=nM(1e3*("0."+M))}for(bo="S";bo.length<=9;bo+="S")xM(bo,oo);function co(){return this._isUTC?"UTC":""}function Ao(){return this._isUTC?"Coordinated Universal Time":""}po=WM("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 Wo(M){return M}qo.add=kp,qo.calendar=Hp,qo.clone=Yp,qo.diff=Qp,qo.endOf=sO,qo.format=zO,qo.from=bO,qo.fromNow=pO,qo.to=OO,qo.toNow=oO,qo.get=dM,qo.invalidAt=hO,qo.isAfter=Fp,qo.isBefore=Up,qo.isBetween=jp,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=iM,qo.startOf=rO,qo.subtract=Ep,qo.toArray=lO,qo.toObject=LO,qo.toDate=fO,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=RO,qo.valueOf=uO,qo.creationData=mO,qo.eraName=yO,qo.eraNarrow=SO,qo.eraAbbr=vO,qo.eraYear=kO,qo.year=sz,qo.isLeapYear=uz,qo.weekYear=FO,qo.isoWeekYear=UO,qo.quarter=qo.quarters=ZO,qo.month=Wz,qo.daysInMonth=az,qo.week=qo.weeks=Tz,qo.isoWeek=qo.isoWeeks=_z,qo.weeksInYear=VO,qo.weeksInWeekYear=KO,qo.isoWeeksInYear=jO,qo.isoWeeksInISOWeekYear=GO,qo.date=$O,qo.day=qo.days=Uz,qo.weekday=jz,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=Rp,qo.hasAlignedHourOffset=fp,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",Wz),qo.years=X("years accessor is deprecated. Use year instead",sz),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 ao=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 Ro(M,z,b){return ro(M,z,b,"weekdays")}function fo(M,z,b){return ro(M,z,b,"weekdaysShort")}function lo(M,z,b){return ro(M,z,b,"weekdaysMin")}ao.calendar=k,ao.longDateFormat=j,ao.invalidDate=V,ao.ordinal=J,ao.preparse=Wo,ao.postformat=Wo,ao.relativeTime=$,ao.pastFuture=MM,ao.set=_,ao.eras=gO,ao.erasParse=TO,ao.erasConvertYear=_O,ao.erasAbbrRegex=wO,ao.erasNameRegex=EO,ao.erasNarrowRegex=CO,ao.months=cz,ao.monthsShort=Az,ao.monthsParse=ez,ao.monthsRegex=dz,ao.monthsShortRegex=tz,ao.week=Xz,ao.firstDayOfYear=gz,ao.firstDayOfWeek=mz,ao.weekdays=xz,ao.weekdaysMin=Hz,ao.weekdaysShort=Iz,ao.weekdaysParse=Fz,ao.weekdaysRegex=Vz,ao.weekdaysShortRegex=Kz,ao.weekdaysMinRegex=Qz,ao.isPM=bb,ao.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===nM(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(_o(A)+c),c=0,A=0),q.milliseconds=o%1e3,M=eM(o/1e3),q.seconds=M%60,z=eM(M/60),q.minutes=z%60,b=eM(z/60),q.hours=b%24,c+=eM(b/24),A+=O=eM(To(c)),c-=mo(_o(O)),p=eM(A/12),A%=12,q.days=c,q.months=A,q.years=p,this}function To(M){return 4800*M/146097}function _o(M){return 146097*M/4800}function yo(M){if(!this.isValid())return NaN;var z,b,p=this._milliseconds;if("month"===(M=pM(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(_o(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(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*nM(this._months/12):NaN}function vo(M){return function(){return this.as(M)}}var ko=vo("ms"),Eo=vo("s"),wo=vo("m"),Co=vo("h"),Do=vo("d"),Po=vo("w"),xo=vo("M"),Io=vo("Q"),Ho=vo("y");function Yo(){return gp(this)}function Fo(M){return M=pM(M),this.isValid()?this[M+"s"]():NaN}function Uo(M){return function(){return this.isValid()?this._data[M]:NaN}}var jo=Uo("milliseconds"),Go=Uo("seconds"),Vo=Uo("minutes"),Ko=Uo("hours"),Qo=Uo("days"),Jo=Uo("months"),Zo=Uo("years");function $o(){return eM(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")),W=Mc(O.as("y")),a=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&&(a=a||n<=1&&["w"]||n<b.w&&["ww",n]),(a=a||e<=1&&["M"]||e<b.M&&["MM",e]||W<=1&&["y"]||["yy",W])[2]=z,a[3]=+M>0,a[4]=p,bc.apply(null,a)}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),W=this.asSeconds();return W?(M=eM(q/60),z=eM(M/60),q%=60,M%=60,b=eM(n/12),n%=12,p=q?q.toFixed(3).replace(/\.?0+$/,""):"",O=W<0?"-":"",o=qc(this._months)!==qc(W)?"-":"",c=qc(this._days)!==qc(W)?"-":"",A=qc(this._milliseconds)!==qc(W)?"-":"",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=yo,nc.asMilliseconds=ko,nc.asSeconds=Eo,nc.asMinutes=wo,nc.asHours=Co,nc.asDays=Do,nc.asWeeks=Po,nc.asMonths=xo,nc.asQuarters=Io,nc.asYears=Ho,nc.valueOf=So,nc._bubble=go,nc.clone=Yo,nc.get=Fo,nc.milliseconds=jo,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"),EM("x",TM),EM("X",vM),xM("X",(function(M,z,b){b._d=new Date(1e3*parseFloat(M))})),xM("x",(function(M,z,b){b._d=new Date(nM(M))})),
|
|
2
2
|
//! moment.js
|
|
3
3
|
p.version="2.29.4",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=W,p.locale=ib,p.invalid=u,p.duration=gp,p.isMoment=N,p.weekdays=Ro,p.parseZone=no,p.localeData=ub,p.isDuration=Ap,p.monthsShort=uo,p.weekdaysMin=lo,p.defineLocale=rb,p.updateLocale=sb,p.locales=Rb,p.weekdaysShort=fo,p.normalizeUnits=pM,p.relativeTimeRounding=Oc,p.relativeTimeThreshold=oc,p.calendarFormat=Ip,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}()})),EM=SM((function(M){
|
|
4
4
|
//! moment-timezone.js
|
|
@@ -10,5 +10,5 @@ var z,b;z=this,b=function(M){void 0===M.version&&M.default&&(M=M.default);var z,
|
|
|
10
10
|
//! moment.js locale configuration
|
|
11
11
|
var z="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),b=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",z[7],z[8],z[9]];function p(M,p,O,o){var c="";switch(O){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":c=o?"sekunnin":"sekuntia";break;case"m":return o?"minuutin":"minuutti";case"mm":c=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":c=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":c=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":c=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":c=o?"vuoden":"vuotta"}return c=function(M,p){return M<10?p?b[M]:z[M]:M}(M,o)+" "+c,c}return M.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:p,ss:p,m:p,mm:p,h:p,hh:p,d:p,dd:p,M:p,MM:p,y:p,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},b(kM)})),SM((function(M,z){var b;b=function(M){return M.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(M){var z=M%10;return M+(1==~~(M%100/10)?":e":1===z||2===z?":a":":e")},week:{dow:1,doy:4}})},b(kM)})),SM((function(M,z){var b;b=function(M){
|
|
12
12
|
//! moment.js locale configuration
|
|
13
|
-
function z(M,z,b,p){var O={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return z?O[b][0]:O[b][1]}return M.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:z,mm:"%d Minuten",h:z,hh:"%d Stunden",d:z,dd:z,w:z,ww:"%d Wochen",M:z,MM:z,y:z,yy:z},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},b(kM)}));const FM={de:{address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft","add-via-button-label":"Füge Zwischenziel hinzu","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flug",arrival:"Ankunft",back:"Zurück",bikerentalstation:"Leihrad-Station",bus:"Bus",cancel:"Abbrechen","clear-button-label":"Löschen","clear-search-history":"Suchhistorie löschen",currentposition:"Aktuelle Position",delete:"Löschen","delete-old-searches-header":"Wollen Sie die Such-Historie löschen?",departure:"Abfahrt",destination:"Ziel","give-origin":"Start eingeben.","give-destination":"Ziel eingeben.",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",loading:"Laden...","minute-short":"min",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","search-button-label":"Suche","search-destination":"Suche Zielort, Linie or Haltestelle","search-destination-index":"Zielort eingeben","search-destination-results-but-no-search":"Ergebnisse in “Zielort”-Reiter anzeigen","search-no-results":"Kein Ort gefunden.","search-origin":"Suche Startort, Linie oder Haltestelle","search-origin-index":"Startort eingeben","search-position":"Standort ermitteln","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Aktuelle Auswahl: {{selection}}",street:"Straße",subway:"U-Bahn",station:"Station",stop:"Haltestelle","stop-near-you":"Suche Haltestellen und Linien in der Nähe","stop-near-you-bus":"Suche Buslinien or Haltestellen","stop-near-you-citybike":"Suche Leihrad-Stationen","stop-near-you-rail":"Suche Zugverbindungen oder Bahnhöfe","stop-near-you-subway":"Suche U-Bahn-Linien oder Haltestellen","stop-near-you-tram":"Suche Stadtbahn-Haltestellen-Suche","today-at":"Heute um","tomorrow-at":"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?",place:"Ort"},en:{address:"Address","address-place-or-business":"Address, place or business","add-via-button-label":"Add via point","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flight",arrival:"Arrival",back:"Back",bikepark:"Park & Ride for bikes",bikerentalstation:"Bike station",bus:"bus",cancel:"Cancel",carpark:"Park & Ride","clear-button-label":"Clear","clear-search-history":"Clear search history",currentposition:"Current position",delete:"Delete","delete-old-searches-header":"Do you want to clear the search history?",departure:"Departure",destination:"Destination","give-origin":"Enter your origin.","give-destination":"Enter your destination",favourite:"Favourite",ferry:"Ferry","future-route":"Future route",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",loading:"Loading...","minute-short":"m",platform:"Platform",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","search-button-label":"Search","search-destination":"Search destination, route or stop","search-destination-index":"Enter destination","search-destination-results-but-no-search":"View results in the adjacent “Destination” tab","search-no-results":"No location","search-origin":"Search origin, route or stop","search-origin-index":"Enter origin","search-position":"Detect location","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Current selection: {{selection}}",street:"Street",subway:"Metro",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bus":"Search bus routes or stops","stop-near-you-citybike":"Search city bike stations","stop-near-you-rail":"Search train routes or stations","stop-near-you-subway":"Search metro routes or stations ","stop-near-you-tram":"Search tram routes or stops","stop-route-station":"Bus and stop search","today-at":"today at","tomorrow-at":"tomorrow at",tram:"Tram",track:"Track","use-own-position":"Use current location","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",venue:"Venue","via-point":"Via point",where:"Where to?",place:"Location"},fi:{address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys","add-via-button-label":"Lisää välipiste","add-via-duration-button-label":"Aseta välipisteelle {{index}} pysähdyksen kesto","add-via-duration-button-label-close":"Avaa välipisteen {{index}} pysähdyksen kesto valitsin","add-via-duration-button-label-open":"Sulje välipisteen {{index}} pysähdyksen kesto valitsin",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",vehiclerentalstation:"Pyöräasema",bikepark:"Liityntäpyöräparkki",bus:"bussi",cancel:"Peruuta",carpark:"Liityntäpysäkointi","clear-button-label":"Tyhjennä","clear-search-history":"Tyhjennä hakuhistoria",currentposition:"Tämänhetkinen sijainti",delete:"Poista","delete-old-searches-header":"Haluatko tyhjentää hakuhistorian?",departure:"Lähtöaika",destination:"Määränpää",favourite:"Suosikki",ferry:"Lautta","future-route":"Tuleva reitti","give-origin":"Lähtöpaikka","give-destination":"Määränpää",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",loading:"Ladataan...","minute-short":"min",platform:"Laituri",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","search-button-label":"Hae","search-destination":"Hae määränpäätä, linjaa tai pysäkkiä","search-destination-index":"Syötä määränpää","search-destination-results-but-no-search":"Katso tulokset viereiseltä Määränpää-välilehdeltä","search-no-results":"Ei tuloksia","search-origin":"Hae lähtöpaikkaa, linjaa tai pysäkkiä","search-origin-index":"Syötä lähtöpaikka","search-autosuggest-label":"Paikka, linja ja pysäkkihaku.","search-autosuggest-label-instructions-desktop":"Navigoi listassa nuolinäppäimillä ja valitse enterillä.","search-autosuggest-label-instructions-mobile":"Syötä sijainti ja navigoi listassa pyyhkäisemällä.","search-autosuggest-label-move-to-destination":"Valittuasi lähtöpaikan siirrytään suoraan määränpää-kenttään.","search-autosuggest-len":" Löydettiin {{count}} ehdotus","search-autosuggest-len_plural":" Löydettiin {{count}} ehdotusta","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","search-position":"Paikanna",street:"Katu",subway:"Metro",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-citybike":"Hae kaupunkipyöräasemaa","stop-near-you-rail":"Hae lähijunaa tai asemaa","stop-near-you-subway":"Hae metrolinjaa tai asemaa","stop-near-you-tram":"Hae raitiolinjaa tai pysäkkiä","stop-route-station":"Linja- ja pysäkkihaku","today-at":"tänään klo","tomorrow-at":"huomenna klo",tram:"Raitiovaunu",track:"Raide","use-own-position":"Käytä nykyistä sijaintia","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?",place:"Paikka"},sv:{address:"Adress","address-place-or-business":"Adress, plats eller företag","add-via-button-label":"Lägg till viapunkt","add-via-duration-button-label":"Ställ in varaktighet för viapunkten {{index}}","add-via-duration-button-label-close":"Stäng väljaren för varaktighet vid via-punkten {{index}}","add-via-duration-button-label-open":"Öppna väljaren för varaktighet vid via-punkten {{index}}",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikerentalstation:"Stadscykelstation",bikepark:"Anslutningsparkering för cyklar",bus:"Bussi",cancel:"Avbryt",carpark:"Infartsparkering","clear-button-label":"Töm","clear-search-history":"Töm sökhistoriken",currentposition:"Nuvarande position",delete:"Ta bort","delete-old-searches-header":"Vill du tömma sökhistoriken?",departure:"Avgångstid",destination:"Destination",favourite:"Favorit",ferry:"Färja","future-route":"Framtida rutt","give-destination":"Skriv in din destination","give-origin":"Skriv in din avfärdsplats",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",loading:"Laddar...","minute-short":"min",platform:"Plattform",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","search-button-label":"Sök","search-destination":"Sök destination, linje eller hållplats","search-destination-index":"Skriv destination","search-destination-results-but-no-search":"Se resultaten under fliken Destination","search-no-results":"Inga sökresultat","search-origin":"Sök avfärdsplats, linje eller hållplats","search-origin-index":"Skriv avfärdsplats","search-position":"Sök position","search-autosuggest-label":"Plats, linje och hållplatssökning.","search-autosuggest-label-instructions-desktop":"Navigera listan med piltangenterna och välj med Enter-tangeten.","search-autosuggest-label-instructions-mobile":"Ange platsen och navigera i listan genom att svepa.","search-autosuggest-label-move-to-destination":"Efter att du valt avgångsplatsen tas du direkt till Destination-fältet.","search-autosuggest-len":"Hittade {{count}} förslag","search-current-suggestion":"Nuvarande val: {{selection}}",street:"Gata",subway:"Metro",station:"Station",stop:"Hållplats","stop-near-you":"Sök hållplatser eller linjer","stop-near-you-airplane":"Sök flyg eller flygplatser","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-citybike":"Sök stadscykelstationer","stop-near-you-rail":"Sök närtåger eller stationer","stop-near-you-subway":"Sök metrolinjer eller stationer","stop-near-you-tram":"Sök spårvagnlinjer eller hållplatser","stop-route-station":"Buss och stopp sökningen","today-at":"i dag kl","tomorrow-at":"i morgon",tram:"Spårvagn",track:"Spår","use-own-position":"Använd min position","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?",place:"Plats"}};function YM(M,z){void 0===z&&(z={});var b=z.insertAt;if(M&&"undefined"!=typeof document){var p=document.head||document.getElementsByTagName("head")[0],O=document.createElement("style");O.type="text/css","top"===b&&p.firstChild?p.insertBefore(O,p.firstChild):p.appendChild(O),O.styleSheet?O.styleSheet.cssText=M:O.appendChild(document.createTextNode(M))}}var UM={container:"styles_container__KXfyb",input:"styles_input__XmNBn",favourite:"styles_favourite__sjGcX",thin:"styles_thin__y3lnY",hasValue:"styles_hasValue__tzCTr",suggestionsContainerOpen:"styles_suggestionsContainerOpen__4AZDX",suggestionsContainer:"styles_suggestionsContainer__3dsEd",suggestionsList:"styles_suggestionsList__esTtR",suggestion:"styles_suggestion__7itfO",suggestionHighlighted:"styles_suggestionHighlighted__XUxvC","autosuggest-input-container":"styles_autosuggest-input-container__ZkKGO",origin:"styles_origin__ivlHi",destination:"styles_destination__y39VH","stop-route-station":"styles_stop-route-station__FneXd","autosuggest-input-icon":"styles_autosuggest-input-icon__uhYGQ","origin-stop-near-you":"styles_origin-stop-near-you__Ekwp-","clear-input":"styles_clear-input__Vx7B4","sr-only":"styles_sr-only__ZOrQT"};YM("/* stylelint-disable */\ninput[type='text'] {\n margin: 0; }\n\n.styles_container__KXfyb {\n display: flex;\n width: 100%; }\n .styles_container__KXfyb .styles_input__XmNBn {\n font-size: 16px;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n display: flex;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n border: solid 1px #888888;\n background-color: #ffffff;\n padding-left: 50px;\n padding-right: 44px;\n line-height: 1.2;\n letter-spacing: -0.5px;\n color: #333;\n box-sizing: border-box;\n -webkit-appearance: none;\n appearance: none; }\n .styles_container__KXfyb .styles_input__XmNBn.styles_favourite__sjGcX {\n padding-left: 47px; }\n .styles_container__KXfyb .styles_input__XmNBn.styles_thin__y3lnY {\n height: 34px; }\n .styles_container__KXfyb .styles_input__XmNBn:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: none;\n box-shadow: 0px 0px 2px 1px var(--hover-color); }\n @media screen and (min-width: 768px) {\n .styles_container__KXfyb .styles_input__XmNBn {\n font-size: 15px;\n height: 44px;\n padding-left: 49px; } }\n .styles_container__KXfyb .styles_input__XmNBn::placeholder {\n color: #666666;\n opacity: 1;\n font-size: 15px; }\n\n.styles_hasValue__tzCTr {\n color: #333333; }\n\n.styles_suggestionsContainerOpen__4AZDX {\n width: 100%;\n max-height: 44vh;\n border-radius: 5px;\n box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);\n border: solid 1px rgba(0, 0, 0, 0.1);\n overflow-x: hidden;\n overflow-y: scroll;\n position: absolute;\n background-color: white;\n top: calc(3 * 0.875rem + 9px);\n z-index: 20; }\n\n.styles_suggestionsContainer__3dsEd {\n background-color: white;\n z-index: 20; }\n .styles_suggestionsContainer__3dsEd .styles_suggestionsList__esTtR {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white; }\n .styles_suggestionsContainer__3dsEd .styles_suggestionsList__esTtR li:hover {\n background: #F4F4F5; }\n\n.styles_suggestion__7itfO {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n cursor: pointer;\n list-style: none;\n display: block;\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap; }\n\n.styles_suggestionHighlighted__XUxvC {\n background-color: #F4F4F5; }\n\n.styles_autosuggest-input-container__ZkKGO {\n position: relative;\n width: 100%; }\n .styles_autosuggest-input-container__ZkKGO.styles_origin__ivlHi {\n z-index: 16; }\n .styles_autosuggest-input-container__ZkKGO.styles_destination__y39VH {\n z-index: 10; }\n .styles_autosuggest-input-container__ZkKGO.styles_stop-route-station__FneXd {\n z-index: 9; }\n\n.styles_autosuggest-input-icon__uhYGQ {\n display: flex;\n position: absolute;\n align-items: center;\n width: 16px;\n height: 100%;\n margin-top: 0;\n margin-left: 19px; }\n .styles_autosuggest-input-icon__uhYGQ svg {\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_origin__ivlHi svg {\n fill: #4ea700;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_destination__y39VH svg {\n fill: #ec5188;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_stop-route-station__FneXd svg, .styles_autosuggest-input-icon__uhYGQ.styles_favourite__sjGcX svg {\n fill: #888888;\n width: 16px;\n height: 16px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_origin-stop-near-you__Ekwp- svg {\n fill: #888888;\n width: 16px;\n height: 16px; }\n\nbutton.styles_clear-input__Vx7B4 {\n display: flex;\n position: absolute;\n padding: 14px 0;\n right: 0px;\n width: 44px;\n height: 100%;\n color: var(--color);\n outline: none;\n border: 0px;\n margin: 0px;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0px;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.styles_clear-input__Vx7B4 svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.styles_clear-input__Vx7B4:focus {\n background-color: transparent;\n color: inherit;\n /* First apply outline that is used in Edge and Firefox */\n outline: 1px dotted #212121;\n /* Then override outline for webkit browsers like Chrome, this has no effect on other browsers */\n outline: 5px auto -webkit-focus-ring-color; }\n button.styles_clear-input__Vx7B4:active {\n background-color: transparent;\n color: inherit; }\n button.styles_clear-input__Vx7B4:hover {\n background-color: transparent;\n color: inherit; }\n\n.styles_sr-only__ZOrQT:not(:focus):not(:active) {\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px; }\n");var jM={"fullscreen-root":"MobileSearch_fullscreen-root__WkMna","combobox-container":"MobileSearch_combobox-container__sRkYS","right-column":"MobileSearch_right-column__erBFe","combobox-icon":"MobileSearch_combobox-icon__xd0iZ","combobox-label":"MobileSearch_combobox-label__OqGpe",container:"MobileSearch_container__k-UVq",input:"MobileSearch_input__HbTUj","clear-input":"MobileSearch_clear-input__ILVwN",hasValue:"MobileSearch_hasValue__NYhZy",suggestion:"MobileSearch_suggestion__UBz5O",suggestionHighlighted:"MobileSearch_suggestionHighlighted__7ef5G",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__g7zkI",suggestionsList:"MobileSearch_suggestionsList__3pEzf","clear-search-history":"MobileSearch_clear-search-history__wblhz","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__f6Rl7","mobile-modal":"MobileSearch_mobile-modal__hNdM6","mobile-modal-content":"MobileSearch_mobile-modal-content__Yzz-V"};YM("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileSearch_fullscreen-root__WkMna {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileSearch_combobox-container__sRkYS {\n margin: 15px 10px 0;\n border: solid #888888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between; }\n .MobileSearch_combobox-container__sRkYS .MobileSearch_right-column__erBFe {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileSearch_combobox-icon__xd0iZ {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none; }\n .MobileSearch_combobox-icon__xd0iZ svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileSearch_combobox-label__OqGpe {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333333; }\n\n.MobileSearch_container__k-UVq {\n display: flex;\n align-items: center;\n width: 100%; }\n .MobileSearch_container__k-UVq .MobileSearch_input__HbTUj {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666666;\n -webkit-appearance: none;\n appearance: none; }\n .MobileSearch_container__k-UVq .MobileSearch_input__HbTUj:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileSearch_clear-input__ILVwN {\n display: flex;\n align-items: center;\n right: 0px;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0px;\n margin: 0px;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0px;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileSearch_clear-input__ILVwN svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileSearch_clear-input__ILVwN:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__ILVwN:active {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__ILVwN:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileSearch_hasValue__NYhZy {\n color: #333333; }\n\n.MobileSearch_suggestion__UBz5O {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileSearch_suggestionHighlighted__7ef5G {\n background-color: #F4F4F5; }\n\n.MobileSearch_suggestionsContainerOpen__g7zkI {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll; }\n .MobileSearch_suggestionsContainerOpen__g7zkI .MobileSearch_suggestionsList__3pEzf {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f4f4f5; }\n\n.MobileSearch_clear-search-history__wblhz {\n display: flex;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f4f4f5;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd; }\n\n.MobileSearch_mobile-modal-overlay__f6Rl7 {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileSearch_mobile-modal__hNdM6 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n /* stylelint-disable-next-line */\n /* stylelint-disable-next-line */ }\n .MobileSearch_mobile-modal__hNdM6.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileSearch_mobile-modal__hNdM6.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileSearch_mobile-modal-content__Yzz-V {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #ffffff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n");var GM={"fullscreen-root":"MobileNoScroll_fullscreen-root__zQN50","combobox-container":"MobileNoScroll_combobox-container__RDEiT","right-column":"MobileNoScroll_right-column__0P3qe","combobox-icon":"MobileNoScroll_combobox-icon__LA0rD","combobox-label":"MobileNoScroll_combobox-label__-rYsj",container:"MobileNoScroll_container__CaIIv",input:"MobileNoScroll_input__Opft5","clear-input":"MobileNoScroll_clear-input__-4SQO",hasValue:"MobileNoScroll_hasValue__jR1iW",suggestion:"MobileNoScroll_suggestion__NAWcY",suggestionHighlighted:"MobileNoScroll_suggestionHighlighted__V0GuG",suggestionsContainerOpen:"MobileNoScroll_suggestionsContainerOpen__MRa5Y",suggestionsList:"MobileNoScroll_suggestionsList__NUpJE","clear-search-history":"MobileNoScroll_clear-search-history__Cjj-1","mobile-modal-overlay":"MobileNoScroll_mobile-modal-overlay__LbLie","mobile-modal":"MobileNoScroll_mobile-modal__-Rx-A","mobile-modal-content":"MobileNoScroll_mobile-modal-content__nfrCI"};YM("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileNoScroll_fullscreen-root__zQN50 {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileNoScroll_combobox-container__RDEiT {\n margin: 15px 10px 0;\n border: solid #888888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between; }\n .MobileNoScroll_combobox-container__RDEiT .MobileNoScroll_right-column__0P3qe {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileNoScroll_combobox-icon__LA0rD {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none; }\n .MobileNoScroll_combobox-icon__LA0rD svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileNoScroll_combobox-label__-rYsj {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333333; }\n\n.MobileNoScroll_container__CaIIv {\n display: flex;\n align-items: center;\n width: 100%; }\n .MobileNoScroll_container__CaIIv .MobileNoScroll_input__Opft5 {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666666;\n -webkit-appearance: none;\n appearance: none; }\n .MobileNoScroll_container__CaIIv .MobileNoScroll_input__Opft5:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileNoScroll_clear-input__-4SQO {\n display: flex;\n align-items: center;\n right: 0px;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0px;\n margin: 0px;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0px;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileNoScroll_clear-input__-4SQO svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileNoScroll_clear-input__-4SQO:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileNoScroll_clear-input__-4SQO:active {\n background-color: transparent;\n color: inherit; }\n button.MobileNoScroll_clear-input__-4SQO:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileNoScroll_hasValue__jR1iW {\n color: #333333; }\n\n.MobileNoScroll_suggestion__NAWcY {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileNoScroll_suggestionHighlighted__V0GuG {\n background-color: #F4F4F5; }\n\n.MobileNoScroll_suggestionsContainerOpen__MRa5Y {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll; }\n .MobileNoScroll_suggestionsContainerOpen__MRa5Y .MobileNoScroll_suggestionsList__NUpJE {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f4f4f5; }\n\n.MobileNoScroll_clear-search-history__Cjj-1 {\n display: flex;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', 'Roboto', Arial, Georgia, Serif;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f4f4f5;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd; }\n\n.MobileNoScroll_mobile-modal-overlay__LbLie {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileNoScroll_mobile-modal__-Rx-A {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n /* stylelint-disable-next-line */\n /* stylelint-disable-next-line */ }\n .MobileNoScroll_mobile-modal__-Rx-A.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileNoScroll_mobile-modal__-Rx-A.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileNoScroll_mobile-modal-content__nfrCI {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #ffffff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n\n.MobileNoScroll_suggestionsContainerOpen__MRa5Y {\n -ms-overflow-style: none;\n /* Internet Explorer 10+ */\n scrollbar-width: none;\n /* Firefox */ }\n .MobileNoScroll_suggestionsContainerOpen__MRa5Y::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */ }\n");class VM extends m.default{constructor(M){super(M);const z=this;z.onSuggestionTouchMove=()=>{z.justSelectedSuggestion=!1,z.pressedSuggestion=null}}}const KM=({appElement:M,id:z,closeHandle:p,clearInput:O,value:o,suggestions:c,inputProps:A,fetchFunction:q,renderSuggestion:e,getSuggestionValue:n,ariaLabel:W,label:a,onSuggestionSelected:t,clearOldSearches:d,dialogHeaderText:i,dialogPrimaryButtonText:r,dialogSecondaryButtonText:s,clearInputButtonText:u,focusInput:R,color:f,hoverColor:l,accessiblePrimaryColor:L,searchOpen:N,fontWeights:X,showScroll:h})=>{var m;const g=h?jM:GM,T=`${z}-input`,_=`${z}-label`,[y,S]=b.useState(!1),v=B.default.useRef();b.useEffect((()=>{H.default.setAppElement(M)}),[]);const k=b.useCallback((()=>{p()})),E=(M,z)=>{"clear-search-history"===z.suggestion.type?S(!0):z.suggestion.properties.arrowClicked||t(M,z)},w=M=>{const z=M&&(M.key||M.which||M.keyCode)||"";return!(!z||![13," ","Spacebar"].concat([32,"Enter"]).includes(z))&&(M.preventDefault(),!0)},C=M=>"clear-search-history"===M.type?"":n(M),D=M=>"clear-search-history"===M.type?B.default.createElement("button",{type:"button",className:g["clear-search-history"]},M.labelId):e(M);return R&&null!==(m=v.current)&&void 0!==m&&m.input&&v.current.input.focus(),B.default.createElement(H.default,{isOpen:N,className:g["mobile-modal"],overlayClassName:g["mobile-modal-overlay"],onAfterClose:k,shouldCloseOnEsc:!0},B.default.createElement("div",{className:g["mobile-modal-content"],style:{"--color":`${f}`,"--accessible-primary-color":L,"--hover-color":`${l}`,"--font-weight-medium":X.medium}},B.default.createElement("div",{className:g["combobox-container"],htmlFor:T},B.default.createElement("button",{type:"button",className:g["combobox-icon"],onClick:()=>k(),onKeyDown:M=>w(M)&&k(),"aria-label":s,tabIndex:0},B.default.createElement(x.default,{img:"arrow"})),B.default.createElement("span",{className:g["right-column"]},B.default.createElement("span",{className:g["combobox-label"],id:_},a),B.default.createElement(VM,{alwaysRenderSuggestions:!0,id:z,suggestions:c,onSuggestionsFetchRequested:q,getSuggestionValue:C,renderSuggestion:D,focusInputOnSuggestionClick:!0,shouldRenderSuggestions:()=>!0,inputProps:Y({},A,{className:`${g.input} ${g[z]||""} ${A.value?g.hasValue:""}`,autoFocus:!0}),renderInputComponent:M=>B.default.createElement(B.default.Fragment,null,B.default.createElement("input",Object.assign({"aria-label":W,id:z},M)),o&&B.default.createElement("button",{type:"button",className:g["clear-input"],onClick:O,onKeyDown:M=>w(M)&&O(),"aria-label":u},B.default.createElement(x.default,{img:"close",color:f}))),theme:g,onSuggestionSelected:E,ref:v}))),B.default.createElement(F.default,{appElement:M,isModalOpen:y,handleClose:()=>S(!1),headerText:i,primaryButtonText:r,secondaryButtonText:s,primaryButtonOnClick:()=>{d(),S(!1)},secondaryButtonOnClick:()=>S(!1),color:f,hoverColor:l,fontWeights:X})))};"production"!==process.env.NODE_ENV&&(KM.propTypes={appElement:N.default.string.isRequired,id:N.default.string.isRequired,closeHandle:N.default.func.isRequired,clearInput:N.default.func.isRequired,value:N.default.string,clearInputButtonText:N.default.string.isRequired,suggestions:N.default.array.isRequired,inputProps:N.default.shape({onChange:N.default.func.isRequired,onBlur:N.default.func.isRequired,value:N.default.string.isRequired,placeholder:N.default.string.isRequired,className:N.default.string.isRequired}).isRequired,fetchFunction:N.default.func.isRequired,getSuggestionValue:N.default.func.isRequired,renderSuggestion:N.default.func.isRequired,onSuggestionSelected:N.default.func.isRequired,label:N.default.string.isRequired,clearOldSearches:N.default.func.isRequired,ariaLabel:N.default.string,dialogHeaderText:N.default.string,dialogPrimaryButtonText:N.default.string,dialogSecondaryButtonText:N.default.string,focusInput:N.default.bool,color:N.default.string,hoverColor:N.default.string,accessiblePrimaryColor:N.default.string.isRequired,searchOpen:N.default.bool.isRequired,fontWeights:N.default.shape({medium:N.default.number.isRequired}).isRequired,showScroll:N.default.bool});var QM,JM=SM((function(M,z){var b;"undefined"!=typeof self&&self,M.exports=(b=B.default,function(){var M={888:function(M,z,b){var p,O;O=void 0!==b.g?b.g:"undefined"!=typeof window?window:this,p=function(){return function(M){var z={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},b=function(){var M={};return Array.prototype.forEach.call(arguments,(function(z){for(var b in z){if(!z.hasOwnProperty(b))return;M[b]=z[b]}})),M},p=function(M){"#"===M.charAt(0)&&(M=M.substr(1));for(var z,b=String(M),p=b.length,O=-1,o="",c=b.charCodeAt(0);++O<p;){if(0===(z=b.charCodeAt(O)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");o+=z>=1&&z<=31||127==z||0===O&&z>=48&&z<=57||1===O&&z>=48&&z<=57&&45===c?"\\"+z.toString(16)+" ":z>=128||45===z||95===z||z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122?b.charAt(O):"\\"+b.charAt(O)}return"#"+o},O=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},o=function(z){return z?(b=z,parseInt(M.getComputedStyle(b).height,10)+z.offsetTop):0;var b},c=function(z,b,p){0===z&&document.body.focus(),p||(z.focus(),document.activeElement!==z&&(z.setAttribute("tabindex","-1"),z.focus(),z.style.outline="none"),M.scrollTo(0,b))},A=function(z,b,p,O){if(b.emitEvents&&"function"==typeof M.CustomEvent){var o=new CustomEvent(z,{bubbles:!0,detail:{anchor:p,toggle:O}});document.dispatchEvent(o)}};return function(q,e){var n,W,a,t,d={cancelScroll:function(M){cancelAnimationFrame(t),t=null,M||A("scrollCancel",n)},animateScroll:function(p,q,e){d.cancelScroll();var W=b(n||z,e||{}),i="[object Number]"===Object.prototype.toString.call(p),r=i||!p.tagName?null:p;if(i||r){var s=M.pageYOffset;W.header&&!a&&(a=document.querySelector(W.header));var u,R,f,l=o(a),L=i?p:function(z,b,p,o){var c=0;if(z.offsetParent)do{c+=z.offsetTop,z=z.offsetParent}while(z);return c=Math.max(c-b-p,0),o&&(c=Math.min(c,O()-M.innerHeight)),c}(r,l,parseInt("function"==typeof W.offset?W.offset(p,q):W.offset,10),W.clip),N=L-s,B=O(),X=0,h=function(M,z){var b=z.speedAsDuration?z.speed:Math.abs(M/1e3*z.speed);return z.durationMax&&b>z.durationMax?z.durationMax:z.durationMin&&b<z.durationMin?z.durationMin:parseInt(b,10)}(N,W),m=function(z){u||(u=z),X+=z-u,f=s+N*function(M,z){var b;return"easeInQuad"===M.easing&&(b=z*z),"easeOutQuad"===M.easing&&(b=z*(2-z)),"easeInOutQuad"===M.easing&&(b=z<.5?2*z*z:(4-2*z)*z-1),"easeInCubic"===M.easing&&(b=z*z*z),"easeOutCubic"===M.easing&&(b=--z*z*z+1),"easeInOutCubic"===M.easing&&(b=z<.5?4*z*z*z:(z-1)*(2*z-2)*(2*z-2)+1),"easeInQuart"===M.easing&&(b=z*z*z*z),"easeOutQuart"===M.easing&&(b=1- --z*z*z*z),"easeInOutQuart"===M.easing&&(b=z<.5?8*z*z*z*z:1-8*--z*z*z*z),"easeInQuint"===M.easing&&(b=z*z*z*z*z),"easeOutQuint"===M.easing&&(b=1+--z*z*z*z*z),"easeInOutQuint"===M.easing&&(b=z<.5?16*z*z*z*z*z:1+16*--z*z*z*z*z),M.customEasing&&(b=M.customEasing(z)),b||z}(W,R=(R=0===h?0:X/h)>1?1:R),M.scrollTo(0,Math.floor(f)),function(z,b){var O=M.pageYOffset;if(z==b||O==b||(s<b&&M.innerHeight+O)>=B)return d.cancelScroll(!0),c(p,b,i),A("scrollStop",W,p,q),u=null,t=null,!0}(f,L)||(t=M.requestAnimationFrame(m),u=z)};0===M.pageYOffset&&M.scrollTo(0,0),function(M,z,b){z||history.pushState&&b.updateURL&&history.pushState({smoothScroll:JSON.stringify(b),anchor:M.id},document.title,M===document.documentElement?"#top":"#"+M.id)}(p,i,W),"matchMedia"in M&&M.matchMedia("(prefers-reduced-motion)").matches?c(p,Math.floor(L),!1):(A("scrollStart",W,p,q),d.cancelScroll(!0),M.requestAnimationFrame(m))}}},i=function(z){if(!z.defaultPrevented&&!(0!==z.button||z.metaKey||z.ctrlKey||z.shiftKey)&&"closest"in z.target&&(W=z.target.closest(q))&&"a"===W.tagName.toLowerCase()&&!z.target.closest(n.ignore)&&W.hostname===M.location.hostname&&W.pathname===M.location.pathname&&/#/.test(W.href)){var b,O;try{b=p(decodeURIComponent(W.hash))}catch(M){b=p(W.hash)}if("#"===b){if(!n.topOnEmptyHash)return;O=document.documentElement}else O=document.querySelector(b);(O=O||"#top"!==b?O:document.documentElement)&&(z.preventDefault(),function(z){if(history.replaceState&&z.updateURL&&!history.state){var b=M.location.hash;b=b||"",history.replaceState({smoothScroll:JSON.stringify(z),anchor:b||M.pageYOffset},document.title,b||M.location.href)}}(n),d.animateScroll(O,W))}},r=function(M){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(n)){var z=history.state.anchor;"string"==typeof z&&z&&!(z=document.querySelector(p(history.state.anchor)))||d.animateScroll(z,null,{updateURL:!1})}};return d.destroy=function(){n&&(document.removeEventListener("click",i,!1),M.removeEventListener("popstate",r,!1),d.cancelScroll(),n=null,W=null,a=null,t=null)},function(){if(!("querySelector"in document&&"addEventListener"in M&&"requestAnimationFrame"in M&&"closest"in M.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";d.destroy(),n=b(z,e||{}),a=n.header?document.querySelector(n.header):null,document.addEventListener("click",i,!1),n.updateURL&&n.popstate&&M.addEventListener("popstate",r,!1)}(),d}}(O)}.apply(z,[]),void 0===p||(M.exports=p)},253:function(M,z,b){var p=this&&this.__createBinding||(Object.create?function(M,z,b,p){void 0===p&&(p=b),Object.defineProperty(M,p,{enumerable:!0,get:function(){return z[b]}})}:function(M,z,b,p){void 0===p&&(p=b),M[p]=z[b]}),O=this&&this.__exportStar||function(M,z){for(var b in M)"default"===b||Object.prototype.hasOwnProperty.call(z,b)||p(z,M,b)};Object.defineProperty(z,"__esModule",{value:!0}),O(b(720),z),O(b(646),z),O(b(87),z),O(b(641),z),O(b(91),z),O(b(183),z),O(b(376),z),O(b(45),z),O(b(840),z),O(b(586),z),O(b(219),z),O(b(510),z),O(b(333),z),O(b(23),z),O(b(348),z),O(b(197),z)},87:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useArrowNavigation=void 0;var p=b(156);z.useArrowNavigation=function(M){var z=M.listItems,b=M.onArrowUpOrDown,O=(0,p.useState)(0),o=O[0],c=O[1],A=(0,p.useCallback)((function(M){c(M)}),[z]),q=function(M){var p=M.key;if(null==z?void 0:z.length)if("ArrowUp"===p)b&&b(),M.preventDefault(),A(o>0?o-1:z.length-1);else{if("ArrowDown"!==p)return;b&&b(),M.preventDefault(),o<z.length-1?A(o+1):A(0)}};return(0,p.useEffect)((function(){return window.addEventListener("keydown",q),function(){return window.removeEventListener("keydown",q)}})),(0,p.useEffect)((function(){A(0)}),[z]),{selectedIndex:o}}},333:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useDebounce=void 0;var p=b(156);z.useDebounce=function(M,z){void 0===z&&(z=300);var b=(0,p.useState)(M),O=b[0],o=b[1];return(0,p.useEffect)((function(){var b=setTimeout((function(){o(M)}),z);return function(){clearTimeout(b)}}),[M,z]),O}},23:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useElementSize=void 0;var p=b(156);z.useElementSize=function(){var M,z,b=(0,p.useRef)(null);return[b,{width:null===(M=null==b?void 0:b.current)||void 0===M?void 0:M.clientWidth,height:null===(z=null==b?void 0:b.current)||void 0===z?void 0:z.clientHeight}]},z.default=z.useElementSize},641:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIntersectionObserver=void 0;var p=b(156);z.useIntersectionObserver=function(M){var z=(0,p.useRef)(null),b=(0,p.useState)(!1),O=b[0],o=b[1],c=function(M){var z=M[0];o(z.isIntersecting)};return(0,p.useEffect)((function(){if(window&&window.IntersectionObserver){var b=new IntersectionObserver(c,M),p=z.current;return z.current&&b.observe(z.current),function(){p&&b.unobserve(p)}}o(!1)}),[z,M]),{containerRef:z,isVisible:O}},z.default=z.useIntersectionObserver},91:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIsBreakpoint=void 0;var p=b(156),O=b(253),o={xs:1,mobileSmall:320,mobile:375,tablet:768,tabletLarge:920,desktopSmall:1024,desktop:1260,desktopLarge:1440};z.useIsBreakpoint=function(M){var z="string"==typeof M?o[M]:M,b=(0,p.useState)(null),c=b[0],A=b[1],q=(0,p.useCallback)((function(){A(window.innerWidth)}),[]);return(0,p.useEffect)((function(){q()}),[]),(0,O.useOnResize)(q),c>=z},z.default=z.useIsBreakpoint},45:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0});var p=b(156),O={"crazy-egg":"crazyegg.com",youtube:"youtube.com"},o={PrivacyManagerAPI:{action:"getConsentDecision",timestamp:(new Date).getTime(),self:"hsl.fi"}};z.default=function(M){var z=(0,p.useState)(!1),b=z[0],c=z[1],A=function(){var z,b=null===(z=window.truste)||void 0===z?void 0:z.cma;if(b){var p=b.callApi("getConsent","hsl.fi",O[M],"hsl.fi");c("approved"===(null==p?void 0:p.consent))}else console.error("TrustArc api not found, returning isCookieEnabled as false")},q=function(M){if("string"==typeof(null==M?void 0:M.origin)&&M.origin.includes("trustarc")&&"string"==typeof(null==M?void 0:M.data))try{var z=JSON.parse(null==M?void 0:M.data);"submit_preferences"===(null==z?void 0:z.message)&&A()}catch(M){return}};return(0,p.useEffect)((function(){A()}),[M]),(0,p.useEffect)((function(){setTimeout(A,0),setTimeout(A,100),setTimeout(A,1e3)}),[]),(0,p.useEffect)((function(){return window.top.postMessage(JSON.stringify(o),"*"),window.addEventListener("message",q,!1),function(){return window.removeEventListener("message",q)}}),[]),b}},376:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIsLoadingAfterError=void 0;var p=b(156);z.useIsLoadingAfterError=function(M,z){var b=(0,p.useState)(z),O=b[0],o=b[1];return(0,p.useEffect)((function(){M||o(z)}),[M,z]),M&&O}},348:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIsMobile=void 0;var p=b(91);z.useIsMobile=function(){return!(0,p.useIsBreakpoint)("tablet")},z.default=z.useIsMobile},183:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIsomorphicLayoutEffect=void 0;var p=b(156);z.useIsomorphicLayoutEffect="undefined"!=typeof window?p.useLayoutEffect:p.useEffect,z.default=z.useIsomorphicLayoutEffect},586:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useOnLoseFocusWithin=void 0;var p=b(156);z.useOnLoseFocusWithin=function(M){var z=M.ref,b=M.callback,O=M.watch;(0,p.useEffect)((function(){var M=function(){var M;if(O)return(null===(M=z.current)||void 0===M?void 0:M.matches(":focus-within"))?void 0:b()};return document.addEventListener("keyup",M),function(){return document.removeEventListener("keyup",M)}}),[b,z,O])},z.default=z.useOnLoseFocusWithin},197:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useOnResize=void 0;var p=b(156);z.useOnResize=function(M){(0,p.useEffect)((function(){var z=function(){M(window.innerWidth)};return window.addEventListener("resize",z,{passive:!0}),function(){return window.removeEventListener("resize",z)}}),[])},z.default=z.useOnResize},510:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useOnWindowFocus=void 0;var p=b(156);z.useOnWindowFocus=function(M){(0,p.useEffect)((function(){var z=function(){M&&"visible"===document.visibilityState&&M()};return window.addEventListener("visibilitychange",z,!1),function(){return window.removeEventListener("visibilitychange",z)}}),[M])}},720:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useOutsideReacter=void 0;var p=b(156);z.useOutsideReacter=function(M,z){function b(b){M.current&&!M.current.contains(b.target)&&z()}(0,p.useEffect)((function(){return document.addEventListener("mousedown",b),function(){document.removeEventListener("mousedown",b)}}))}},219:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0});var p=b(156);z.default=function(){var M=(0,p.useRef)(null);return(0,p.useEffect)((function(){M.current&&(M.current(),M.current=null)})),function(z){M.current=z}}},646:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useScrollLock=void 0;var p=b(156);z.useScrollLock=function(){return{lock:(0,p.useCallback)((function(){var M=window.scrollY+"px",z=document.body;z.style.position="fixed",z.style.top="-"+M}),[]),unlock:(0,p.useCallback)((function(){var M=document.body,z=M.style.top,b=-1*parseInt(z||"0");M.style.position="",M.style.top="",b&&window.scrollTo(0,-1*parseInt(z||"0"))}),[])}}},840:function(M,z,b){var p=this&&this.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(z,"__esModule",{value:!0}),z.useSmoothScroll=void 0;var O=b(156),o=p(b(888));z.useSmoothScroll=function(M){var z=(0,O.useRef)(null),b=M.ref,p=M.offset,c=void 0===p?0:p,A=M.speed,q=void 0===A?500:A;return(0,O.useEffect)((function(){z.current=new o.default(null,{speed:q,speedAsDuration:!0})}),[]),(0,O.useCallback)((function(){b&&z.current&&z.current.animateScroll(b.current,null,{offset:function(){return c},updateURL:!1})}),[c,b])}},156:function(M){M.exports=b}},z={};function p(b){var O=z[b];if(void 0!==O)return O.exports;var o=z[b]={exports:{}};return M[b].call(o.exports,o,o.exports,p),o.exports}return p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(M){if("object"==typeof window)return window}}(),p(253)}())})),ZM=(QM=JM)&&QM.__esModule&&Object.prototype.hasOwnProperty.call(QM,"default")?QM.default:QM;HM.locale("en"),X.default.init({fallbackLng:"fi",defaultNS:"translation",interpolation:{escapeValue:!1}});"production"!==process.env.NODE_ENV&&N.default.node;const $M=M=>{if(!M||!M.GTFS.platform)return;const{modes:z,platform:b}=M.GTFS;return[z&&"RAIL"===z[0]?X.default.t("track"):X.default.t("platform"),b]};function Mz(M){if("FutureRoute"!==M.type){if("SelectFromMap"===M.type)return["",X.default.t("select-from-map")];if("CurrentLocation"===M.type)return["",X.default.t("use-own-position")];if("SelectFromOwnLocations"===M.type)return["",X.default.t("select-from-own-locations")];let b,[p,O]=_M(M.properties,!0);if(M.properties.layer.toLowerCase().includes("bikerental")||M.properties.layer.toLowerCase().includes("bikestation")){b=X.default.t("vehiclerentalstation");return[b,p,void 0,M.properties.labelId]}if("bikepark"===M.properties.layer)return b=X.default.t("bikepark"),[b,p,void 0,void 0];if("carpark"===M.properties.layer)return b=X.default.t("carpark"),[b,p,void 0,void 0];if(M.properties.mode)b=X.default.t(M.properties.mode.toLowerCase().replace("favourite",""));else{const z=M.properties.layer.replace("route-","").toLowerCase().replace("favourite","");b=X.default.t(z)}if(M.properties.id&&("stop"===M.properties.layer||"station"===M.properties.layer)){var z;const o=TM(M.properties),c=null===(z=M.properties.addendum)||void 0===z?void 0:z.GTFS.modes,A=$M(M.properties.addendum);return[b,iM(p,o),O,o,c,A]}if("favouriteStop"===M.properties.layer||"favouriteStation"===M.properties.layer){const{address:z,code:o}=M.properties;return[b,z?iM(z.split(",")[0],o):p,O,o,void 0,$M(M.properties.addendum)]}return[b,p,O]}const{origin:b,destination:p}=M.properties,O=b.locality?`, ${b.locality} foobar`:"",o=p.locality?`, ${p.locality}`:"",c=b.name,A=p.name;return[X.default.t("future-route"),`${X.default.t("origin")} ${c}${O} ${X.default.t("destination")} ${A}${o}`,M.translatedText]}function zz(M){const z=HM.unix(M.properties.time);let b=M.properties.arriveBy?X.default.t("arrival"):X.default.t("departure");return b=z.isSame(HM(),"day")?`${b} ${X.default.t("today-at")}`:z.isSame(HM().add(1,"day"),"day")?`${b} ${X.default.t("tomorrow-at")}`:`${b} ${z.format("dd D.M.")}`,b=`${b} ${HM(z).format("HH:mm")}`,b}class bz extends B.default.Component{constructor(M){super(M),this.componentDidUpdate=()=>{X.default.language!==this.props.lang&&X.default.changeLanguage(this.props.lang)},this.UNSAFE_componentWillReceiveProps=M=>{M.value===this.state.value||this.state.editing||this.setState({value:M.value})},this.onChange=(M,{newValue:z,method:b})=>{const p={value:this.fInput||z||"",renderMobileSearch:this.props.isMobile};if(this.fInput=null,this.state.editing){if("enter"!==b||this.state.valid){if(this.state.typingTimer&&clearTimeout(this.state.typingTimer),"type"===b){const M=setTimeout((()=>{this.setState({typing:!1})}),1e3);p.typingTimer=M,p.typing=!0}this.setState(p)}}else p.editing=!0,this.setState(p,(()=>this.fetchFunction({value:z||""})))},this.onBlur=()=>{this.state.renderMobileSearch||(this.state.editing&&this.input.focus(),this.setState({editing:!1,renderMobileSearch:!1,value:this.props.value}))},this.onSelected=(M,z)=>{if(this.state.valid){if("SelectFromOwnLocations"===z.suggestion.type)return void this.setState({sources:["Favourite","Back"],ownPlaces:!0,pendingSelection:z.suggestion.type,value:""},(()=>{this.fetchFunction({value:""})}));if("back"===z.suggestion.type||"FutureRoute"===z.suggestion.type)return void this.setState({sources:this.props.sources,ownPlaces:!1,pendingSelection:z.suggestion.type,suggestionIndex:z.suggestionIndex},(()=>{this.fetchFunction({value:""})}));this.selectionDone=!0,this.setState({editing:!1,value:z.suggestionValue},(()=>{this.input.blur(),this.props.handleViaPoints?this.props.handleViaPoints(z.suggestion,z.suggestionIndex):this.props.onSelect(z.suggestion,this.props.id),this.setState({renderMobileSearch:!1,sources:this.props.sources,ownPlaces:!1,suggestions:[]},(()=>{this.selectionDone=!1})),!this.props.focusChange||this.props.isMobile&&!this.props.isEmbedded||this.props.focusChange(),this.props.isMobile&&this.closeMobileSearch()}))}else this.setState((M=>({pendingSelection:M.value})),(()=>this.checkPendingSelection()))},this.onSuggestionsClearRequested=()=>{this.setState({suggestions:[],sources:this.props.sources,ownPlaces:!1,editing:!1})},this.getSuggestionValue=M=>"SelectFromOwnLocations"===M.type||"back"===M.type?"":function(M){const z=_M(M,!0);switch(M.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return z[1]||z[0];case"favouriteVehicleRentalStation":case"favouritePlace":return z[0];default:return z.length>1&&""!==z[1]?z.join(", "):z[1]||z[0]}}(M.properties),this.checkPendingSelection=()=>{"SelectFromOwnLocations"!==this.state.pendingSelection&&"back"!==this.state.pendingSelection||!this.state.valid?this.state.pendingSelection&&this.state.valid&&this.setState({pendingSelection:null,editing:!1},(()=>{this.state.suggestions.length&&(this.input.blur(),this.props.onSelect(this.state.suggestions[this.state.suggestionIndex],this.props.id),this.props.isMobile&&this.closeMobileSearch(),!this.props.focusChange||this.props.isMobile&&!this.props.isEmbedded||this.props.focusChange())})):this.setState({pendingSelection:null,editing:!0},(()=>{this.input.focus()}))},this.clearButton=()=>B.default.createElement("button",{type:"button",className:UM["clear-input"],onClick:this.clearInput,"aria-label":X.default.t("clear-button-label")},B.default.createElement(x.default,{img:"close",color:this.props.color})),this.fetchFunction=({value:M,cleanExecuted:z})=>this.setState({valid:!1,cleanExecuted:z||!1},(()=>{if(this.selectionDone)return;const z=I.default(this.props.targets)||this.props.targets.includes("Locations");let b;this.state.ownPlaces?(b=["Locations"],(I.default(this.props.targets)||this.props.targets.includes("Stops"))&&b.push("Stops"),(I.default(this.props.targets)||this.props.targets.includes("VehicleRentalStations"))&&b.push("VehicleRentalStations")):I.default(this.props.targets)||(b=[...this.props.targets],z&&!this.props.isMobile&&(I.default(this.props.sources)||this.props.sources.includes("Favourite"))&&b.push("SelectFromOwnLocations"));((M,z,b,p,O,o,c,A,q,e)=>{A(null),mM(M,z,b,p,O,o,c,A,q,e)})(b,this.state.sources&&this.state.sources.filter((M=>!(z&&"Favourite"===M&&!this.state.ownPlaces&&!this.props.isMobile))),this.props.transportMode,this.props.searchContext,this.props.filterResults,this.props.geocodingSize,{input:M||""},(z=>{if(null==z)return;const b=(z.results||[]).filter((M=>"FutureRoute"!==M.type||"FutureRoute"===M.type&&M.properties.time>HM().unix())).map((M=>{if("CurrentLocation"===M.type||"SelectFromMap"===M.type||"SelectFromOwnLocations"===M.type||"back"===M.type){const z=Y({},M);return z.properties.labelId=X.default.t(M.properties.labelId),z}return M}));M!==this.state.value&&M!==this.state.pendingSelection&&"SelectFromOwnLocations"!==this.state.pendingSelection&&"back"!==this.state.pendingSelection&&"FutureRoute"!==this.state.pendingSelection||this.setState({valid:!0,suggestions:b},(()=>this.checkPendingSelection()))}),this.props.pathOpts,this.props.refPoint)})),this.clearInput=()=>{const M={editing:!0,value:"",sources:this.props.sources,ownPlaces:!1,renderMobileSearch:this.props.isMobile};this.setState(M,(()=>this.fetchFunction({value:"",cleanExecuted:!0}))),this.props.onClear&&this.props.onClear(this.props.id),this.input.focus()},this.inputClicked=M=>{if(this.input.focus(),this.clearLocationText(),this.props.isMobile&&this.props.lock(),this.state.editing)this.props.isMobile&&!this.state.renderMobileSearch&&this.setState({renderMobileSearch:!0});else{const z={editing:!0,pendingSelection:null,renderMobileSearch:this.props.isMobile},b={editing:!0,pendingSelection:null,value:M};this.state.suggestions.length?(this.fetchFunction({value:this.state.value}),this.setState(z)):"object"!=typeof M&&M?this.setState(b,(()=>this.fetchFunction({value:M}))):this.setState(z,(()=>this.fetchFunction({value:this.state.value})))}},this.storeInputReference=M=>{null!==M&&(this.input=M.input,this.props.storeRef&&this.props.storeRef(M.input))},this.fillInput=M=>{this.fInput=M.properties.name;const z={editing:!0,value:M.properties.name,checkPendingSelection:M,valid:!0};this.setState(z),this.fetchFunction({value:M.properties.name}),this.input.focus()},this.renderItem=M=>{const z="FutureRoute"===M.type?Y({},M,{translatedText:zz(M)}):M,b=Mz(M);return B.default.createElement(E.default,{item:z,content:b,loading:!this.state.valid,isMobile:this.props.isMobile,ariaFavouriteString:X.default.t("favourite"),color:this.props.color,accessiblePrimaryColor:this.props.accessiblePrimaryColor,fillInput:this.fillInput,fontWeights:this.props.fontWeights,getAutoSuggestIcons:this.props.getAutoSuggestIcons,modeIconColors:this.props.modeIconColors,modeSet:this.props.modeSet})},this.closeMobileSearch=()=>{this.props.unlock(),this.setState({renderMobileSearch:!1,value:this.props.value},(()=>{window.scrollTo(0,this.state.scrollY),this.onSuggestionsClearRequested()}))},this.keyDown=M=>{if(this.selectionDone)return;const z=M.key;if("Escape"===z&&this.setState({editing:!1}),this.state.editing)return"Enter"===z&&""!==this.state.value&&this.setState({pendingSelection:!0},(()=>{this.fetchFunction({value:this.state.value})})),void this.inputClicked();if("Enter"!==z&&"ArrowDown"!==z||""!==this.state.value){if("ArrowDown"===z&&""!==this.state.value){const M={editing:!0,value:this.state.value};this.setState(M,(()=>this.fetchFunction({value:this.state.value})))}this.state.editing||this.setState({editing:!0}),"Tab"===z&&this.onBlur()}else this.clearInput()},this.suggestionAsAriaContent=()=>{let M=[];const z=this.state.suggestions[0];return z&&(z.type&&z.type.includes("Favourite")&&M.push(X.default.t("favourite")),M=M.concat(Mz(this.state.suggestions[0]))),[...new Set(M)].join(" - ")},this.clearOldSearches=()=>{const{context:M,clearOldSearches:z,clearFutureRoutes:b}=this.props.searchContext;M&&z&&(z(M),b&&b(M),this.fetchFunction({value:this.state.value}))},this.isOriginDestinationOrViapoint=()=>"origin"===this.props.id||"destination"===this.props.id||"via-point"===this.props.id||"origin-stop-near-you"===this.props.id,this.clearLocationText=()=>{["Valittu sijainti","Nykyinen sijaintisi","Current position","Selected location","Vald position","Använd min position","Min position","Käytä nykyistä sijaintia","Use current location","Your current location"].includes(this.state.value)&&this.clearInput()},this.onFocus=()=>{this.clearLocationText();const M=window.pageYOffset;return this.setState({scrollY:M})},HM.tz.setDefault(M.timeZone),HM.locale(M.lang),this.state={value:M.value,suggestions:[],editing:!1,valid:!0,renderMobileSearch:!1,sources:M.sources,ownPlaces:!1,typingTimer:null,typing:!1,pendingSelection:null,suggestionIndex:0,cleanExecuted:!1,scrollY:0},Object.keys(FM).forEach((M=>{X.default.addResourceBundle(M,"translation",FM[M])}))}shouldComponentUpdate(M,z){return!w.default(z,this.state)||!w.default(M,this.props)}render(){X.default.language!==this.props.lang&&X.default.changeLanguage(this.props.lang);const{value:M,suggestions:z,renderMobileSearch:b,cleanExecuted:p}=this.state,O={placeholder:this.props.translatedPlaceholder?this.props.translatedPlaceholder:X.default.t(this.props.placeholder),value:M,onChange:this.onChange,onBlur:this.onBlur,className:`${UM.input} ${this.props.isMobile&&this.props.transportMode?UM.thin:""} ${UM[this.props.id]||""} ${this.state.value?UM.hasValue:""} ${this.props.inputClassName}`,onKeyDown:this.keyDown,required:this.props.required},o=this.props.id.replace("searchfield-","");let c=this.props.ariaLabel||X.default.t(o);c=c.replace("searchfield-","").concat(".");const A=this.props.required?`${X.default.t("required")}.`:"",q=this.props.isMobile?X.default.t("search-autosuggest-label-instructions-mobile"):X.default.t("search-autosuggest-label-instructions-desktop"),e="origin"===this.props.id?X.default.t("search-autosuggest-label-move-to-destination"):"",n=q.concat(" ").concat(e),W=X.default.t("search-autosuggest-len",{count:z.length}),a=()=>this.suggestionAsAriaContent()||this.props.value?X.default.t("search-current-suggestion",{selection:this.suggestionAsAriaContent()||this.props.value}):"";return B.default.createElement(B.default.Fragment,null,B.default.createElement("span",{className:UM["sr-only"],role:"alert"},!this.state.typing&&this.state.editing&&`${W} ${a()}`),this.props.isMobile&&B.default.createElement(KM,{searchOpen:b,appElement:this.props.appElement,clearOldSearches:this.clearOldSearches,id:this.props.id,clearInput:this.clearInput,value:this.state.value,suggestions:[...z,{type:"clear-search-history",labelId:X.default.t("clear-search-history")}],inputProps:Y({},O,{placeholder:this.isOriginDestinationOrViapoint()?X.default.t("address-place-or-business"):O.placeholder}),fetchFunction:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:this.getSuggestionValue,renderSuggestion:this.renderItem,closeHandle:this.closeMobileSearch,ariaLabel:A.concat(" ").concat(c).concat(" ").concat(a()),label:this.props.mobileLabel?this.props.mobileLabel:X.default.t(this.props.id),onSuggestionSelected:this.onSelected,dialogHeaderText:X.default.t("delete-old-searches-header"),dialogPrimaryButtonText:X.default.t("delete"),dialogSecondaryButtonText:X.default.t("cancel"),clearInputButtonText:X.default.t("clear-button-label"),focusInput:p,color:this.props.color,hoverColor:this.props.hoverColor,accessiblePrimaryColor:this.props.accessiblePrimaryColor,fontWeights:this.props.fontWeights,showScroll:this.props.showScroll}),!b&&B.default.createElement("div",{className:h.default(UM["autosuggest-input-container"],UM[this.props.id]),style:{"--color":`${this.props.color}`,"--hover-color":`${this.props.hoverColor}`}},this.props.icon&&B.default.createElement("div",{className:h.default(UM["autosuggest-input-icon"],UM[this.props.id],this.props.inputClassName&&`${this.props.inputClassName}-input-icon`),"aria-label":A.concat(" ").concat(c).concat(" ").concat(X.default.t("search-autosuggest-label"))},B.default.createElement(x.default,{img:`${this.props.icon}`})),B.default.createElement(m.default,{alwaysRenderSuggestions:this.state.editing,id:this.props.id,suggestions:z,onSuggestionsFetchRequested:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:this.getSuggestionValue,renderSuggestion:this.renderItem,inputProps:Y({},O,{onFocus:this.onFocus}),focusInputOnSuggestionClick:!0,shouldRenderSuggestions:()=>this.state.editing,highlightFirstSuggestion:!this.state.ownPlaces,theme:UM,renderInputComponent:M=>B.default.createElement(B.default.Fragment,null,B.default.createElement("label",{className:UM["sr-only"],htmlFor:this.props.id},a().concat(" ").concat(A).concat(" ").concat(c).concat(" ").concat(n)),B.default.createElement("input",Object.assign({"aria-label":a().concat(" ").concat(A).concat(" ").concat(c).concat(" ").concat(n),id:this.props.id,onClick:this.inputClicked,onKeyDown:this.keyDown},M)),this.state.value&&this.clearButton()),onSuggestionSelected:this.onSelected,ref:this.storeInputReference})))}}bz.defaultProps={autoFocus:!1,className:"",icon:void 0,value:"",transportMode:void 0,lang:"fi",sources:[],isMobile:!1,color:"#007ac9",hoverColor:"#0062a1",accessiblePrimaryColor:"#0074be",timeZone:"Europe/Helsinki",pathOpts:{routesPrefix:"linjat",stopsPrefix:"pysakit"},mobileLabel:void 0,inputClassName:"",translatedPlaceholder:void 0,fontWeights:{medium:500},modeIconColors:{"mode-bus":"#007ac9","mode-rail":"#8c4799","mode-tram":"#008151","mode-metro":"#ed8c00","mode-ferry":"#007A97","mode-citybike":"#f2b62d","mode-funicular":"#ff00ff"},required:!1,modeSet:void 0,showScroll:!1,refPoint:{}},"production"!==process.env.NODE_ENV&&(bz.propTypes={appElement:N.default.string.isRequired,autoFocus:N.default.bool,className:N.default.string,icon:N.default.string,id:N.default.string.isRequired,placeholder:N.default.string.isRequired,translatedPlaceholder:N.default.string,value:N.default.string,searchContext:N.default.any.isRequired,ariaLabel:N.default.string,onSelect:N.default.func,transportMode:N.default.string,filterResults:N.default.func,geocodingSize:N.default.number,onClear:N.default.func,storeRef:N.default.func,handleViaPoints:N.default.func,focusChange:N.default.func,lang:N.default.string,sources:N.default.arrayOf(N.default.string),targets:N.default.arrayOf(N.default.string),isMobile:N.default.bool,color:N.default.string,hoverColor:N.default.string,accessiblePrimaryColor:N.default.string,timeZone:N.default.string,pathOpts:N.default.shape({routesPrefix:N.default.string,stopsPrefix:N.default.string}),mobileLabel:N.default.string,lock:N.default.func.isRequired,unlock:N.default.func.isRequired,refPoint:N.default.shape({address:N.default.string,lat:N.default.number,lon:N.default.number}),inputClassName:N.default.string,fontWeights:N.default.shape({medium:N.default.number}),modeIconColors:N.default.object,getAutoSuggestIcons:N.default.object,required:N.default.bool,modeSet:N.default.string,showScroll:N.default.bool,isEmbedded:N.default.bool});const pz=(Oz=bz,M=>{const{lock:z,unlock:b}=ZM.useScrollLock();return B.default.createElement(Oz,Object.assign({lock:z,unlock:b},M))});var Oz;M.default=pz,Object.defineProperty(M,"__esModule",{value:!0})}));
|
|
13
|
+
function z(M,z,b,p){var O={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return z?O[b][0]:O[b][1]}return M.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:z,mm:"%d Minuten",h:z,hh:"%d Stunden",d:z,dd:z,w:z,ww:"%d Wochen",M:z,MM:z,y:z,yy:z},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},b(kM)}));const YM={de:{address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft","add-via-button-label":"Füge Zwischenziel hinzu","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flug",arrival:"Ankunft",back:"Zurück",bikerentalstation:"Leihrad-Station",bus:"Bus",cancel:"Abbrechen","clear-button-label":"Löschen","clear-search-history":"Suchhistorie löschen",currentposition:"Aktuelle Position",delete:"Löschen","delete-old-searches-header":"Wollen Sie die Such-Historie löschen?",departure:"Abfahrt",destination:"Ziel","give-origin":"Start eingeben.","give-destination":"Ziel eingeben.",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",loading:"Laden...","minute-short":"min",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","search-button-label":"Suche","search-destination":"Suche Zielort, Linie or Haltestelle","search-destination-index":"Zielort eingeben","search-destination-results-but-no-search":"Ergebnisse in “Zielort”-Reiter anzeigen","search-no-results":"Kein Ort gefunden.","search-origin":"Suche Startort, Linie oder Haltestelle","search-origin-index":"Startort eingeben","search-position":"Standort ermitteln","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Aktuelle Auswahl: {{selection}}",street:"Straße",subway:"U-Bahn",station:"Station",stop:"Haltestelle","stop-near-you":"Suche Haltestellen und Linien in der Nähe","stop-near-you-bus":"Suche Buslinien or Haltestellen","stop-near-you-citybike":"Suche Leihrad-Stationen","stop-near-you-rail":"Suche Zugverbindungen oder Bahnhöfe","stop-near-you-subway":"Suche U-Bahn-Linien oder Haltestellen","stop-near-you-tram":"Suche Stadtbahn-Haltestellen-Suche","today-at":"Heute um","tomorrow-at":"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?",place:"Ort"},en:{address:"Address","address-place-or-business":"Address, place or business","add-via-button-label":"Add via point","add-via-duration-button-label":"Set stop duration at via point {{index}}","add-via-duration-button-label-close":"Close stop duration selector at via point {{index}}","add-via-duration-button-label-open":"Open stop duration selector at via point {{index}}",airplane:"Flight",arrival:"Arrival",back:"Back",bikepark:"Park & Ride for bikes",bikerentalstation:"Bike station",bus:"bus",cancel:"Cancel",carpark:"Park & Ride","clear-button-label":"Clear","clear-search-history":"Clear search history",currentposition:"Current position",delete:"Delete","delete-old-searches-header":"Do you want to clear the search history?",departure:"Departure",destination:"Destination","give-origin":"Enter your origin.","give-destination":"Enter your destination",favourite:"Favourite",ferry:"Ferry","future-route":"Future route",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",loading:"Loading...","minute-short":"m",platform:"Platform",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","search-button-label":"Search","search-destination":"Search destination, route or stop","search-destination-index":"Enter destination","search-destination-results-but-no-search":"View results in the adjacent “Destination” tab","search-no-results":"No location","search-origin":"Search origin, route or stop","search-origin-index":"Enter origin","search-position":"Detect location","search-autosuggest-label":"Venue, place and stopsearch.","search-autosuggest-label-instructions-desktop":"Navigate list with arrow keys and select with enter key.","search-autosuggest-label-instructions-mobile":"Enter the location and navigate in the list by swiping.","search-autosuggest-label-move-to-destination":"After selecting the starting location you are automatically moved to the destination field.","search-autosuggest-len":"There is {{count}} suggestion available","search-autosuggest-len_plural":"There are {{count}} suggestions available","search-current-suggestion":"Current selection: {{selection}}",street:"Street",subway:"Metro",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bus":"Search bus routes or stops","stop-near-you-citybike":"Search city bike stations","stop-near-you-rail":"Search train routes or stations","stop-near-you-subway":"Search metro routes or stations ","stop-near-you-tram":"Search tram routes or stops","stop-route-station":"Bus and stop search","today-at":"today at","tomorrow-at":"tomorrow at",tram:"Tram",track:"Track","use-own-position":"Use current location","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",venue:"Venue","via-point":"Via point",where:"Where to?",place:"Location"},fi:{address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys","add-via-button-label":"Lisää välipiste","add-via-duration-button-label":"Aseta välipisteelle {{index}} pysähdyksen kesto","add-via-duration-button-label-close":"Avaa välipisteen {{index}} pysähdyksen kesto valitsin","add-via-duration-button-label-open":"Sulje välipisteen {{index}} pysähdyksen kesto valitsin",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",vehiclerentalstation:"Pyöräasema",bikepark:"Liityntäpyöräparkki",bus:"bussi",cancel:"Peruuta",carpark:"Liityntäpysäkointi","clear-button-label":"Tyhjennä","clear-search-history":"Tyhjennä hakuhistoria",currentposition:"Tämänhetkinen sijainti",delete:"Poista","delete-old-searches-header":"Haluatko tyhjentää hakuhistorian?",departure:"Lähtöaika",destination:"Määränpää",favourite:"Suosikki",ferry:"Lautta","future-route":"Tuleva reitti","give-origin":"Lähtöpaikka","give-destination":"Määränpää",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",loading:"Ladataan...","minute-short":"min",platform:"Laituri",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","search-button-label":"Hae","search-destination":"Hae määränpäätä, linjaa tai pysäkkiä","search-destination-index":"Syötä määränpää","search-destination-results-but-no-search":"Katso tulokset viereiseltä Määränpää-välilehdeltä","search-no-results":"Ei tuloksia","search-origin":"Hae lähtöpaikkaa, linjaa tai pysäkkiä","search-origin-index":"Syötä lähtöpaikka","search-autosuggest-label":"Paikka, linja ja pysäkkihaku.","search-autosuggest-label-instructions-desktop":"Navigoi listassa nuolinäppäimillä ja valitse enterillä.","search-autosuggest-label-instructions-mobile":"Syötä sijainti ja navigoi listassa pyyhkäisemällä.","search-autosuggest-label-move-to-destination":"Valittuasi lähtöpaikan siirrytään suoraan määränpää-kenttään.","search-autosuggest-len":" Löydettiin {{count}} ehdotus","search-autosuggest-len_plural":" Löydettiin {{count}} ehdotusta","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","search-position":"Paikanna",street:"Katu",subway:"Metro",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-citybike":"Hae kaupunkipyöräasemaa","stop-near-you-rail":"Hae lähijunaa tai asemaa","stop-near-you-subway":"Hae metrolinjaa tai asemaa","stop-near-you-tram":"Hae raitiolinjaa tai pysäkkiä","stop-route-station":"Linja- ja pysäkkihaku","today-at":"tänään klo","tomorrow-at":"huomenna klo",tram:"Raitiovaunu",track:"Raide","use-own-position":"Käytä nykyistä sijaintia","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?",place:"Paikka"},sv:{address:"Adress","address-place-or-business":"Adress, plats eller företag","add-via-button-label":"Lägg till viapunkt","add-via-duration-button-label":"Ställ in varaktighet för viapunkten {{index}}","add-via-duration-button-label-close":"Stäng väljaren för varaktighet vid via-punkten {{index}}","add-via-duration-button-label-open":"Öppna väljaren för varaktighet vid via-punkten {{index}}",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikerentalstation:"Stadscykelstation",bikepark:"Anslutningsparkering för cyklar",bus:"Bussi",cancel:"Avbryt",carpark:"Infartsparkering","clear-button-label":"Töm","clear-search-history":"Töm sökhistoriken",currentposition:"Nuvarande position",delete:"Ta bort","delete-old-searches-header":"Vill du tömma sökhistoriken?",departure:"Avgångstid",destination:"Destination",favourite:"Favorit",ferry:"Färja","future-route":"Framtida rutt","give-destination":"Skriv in din destination","give-origin":"Skriv in din avfärdsplats",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",loading:"Laddar...","minute-short":"min",platform:"Plattform",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","search-button-label":"Sök","search-destination":"Sök destination, linje eller hållplats","search-destination-index":"Skriv destination","search-destination-results-but-no-search":"Se resultaten under fliken Destination","search-no-results":"Inga sökresultat","search-origin":"Sök avfärdsplats, linje eller hållplats","search-origin-index":"Skriv avfärdsplats","search-position":"Sök position","search-autosuggest-label":"Plats, linje och hållplatssökning.","search-autosuggest-label-instructions-desktop":"Navigera listan med piltangenterna och välj med Enter-tangeten.","search-autosuggest-label-instructions-mobile":"Ange platsen och navigera i listan genom att svepa.","search-autosuggest-label-move-to-destination":"Efter att du valt avgångsplatsen tas du direkt till Destination-fältet.","search-autosuggest-len":"Hittade {{count}} förslag","search-current-suggestion":"Nuvarande val: {{selection}}",street:"Gata",subway:"Metro",station:"Station",stop:"Hållplats","stop-near-you":"Sök hållplatser eller linjer","stop-near-you-airplane":"Sök flyg eller flygplatser","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-citybike":"Sök stadscykelstationer","stop-near-you-rail":"Sök närtåger eller stationer","stop-near-you-subway":"Sök metrolinjer eller stationer","stop-near-you-tram":"Sök spårvagnlinjer eller hållplatser","stop-route-station":"Buss och stopp sökningen","today-at":"i dag kl","tomorrow-at":"i morgon",tram:"Spårvagn",track:"Spår","use-own-position":"Använd min position","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?",place:"Plats"}};function FM(M,z){void 0===z&&(z={});var b=z.insertAt;if(M&&"undefined"!=typeof document){var p=document.head||document.getElementsByTagName("head")[0],O=document.createElement("style");O.type="text/css","top"===b&&p.firstChild?p.insertBefore(O,p.firstChild):p.appendChild(O),O.styleSheet?O.styleSheet.cssText=M:O.appendChild(document.createTextNode(M))}}var UM={container:"styles_container__KXfyb",input:"styles_input__XmNBn",favourite:"styles_favourite__sjGcX",thin:"styles_thin__y3lnY",hasValue:"styles_hasValue__tzCTr",suggestionsContainerOpen:"styles_suggestionsContainerOpen__4AZDX",suggestionsContainer:"styles_suggestionsContainer__3dsEd",suggestionsList:"styles_suggestionsList__esTtR",suggestion:"styles_suggestion__7itfO",suggestionHighlighted:"styles_suggestionHighlighted__XUxvC","autosuggest-input-container":"styles_autosuggest-input-container__ZkKGO",origin:"styles_origin__ivlHi",destination:"styles_destination__y39VH","stop-route-station":"styles_stop-route-station__FneXd","autosuggest-input-icon":"styles_autosuggest-input-icon__uhYGQ","origin-stop-near-you":"styles_origin-stop-near-you__Ekwp-","clear-input":"styles_clear-input__Vx7B4","sr-only":"styles_sr-only__ZOrQT"};FM("input[type='text'] {\n margin: 0; }\n\n.styles_container__KXfyb {\n display: flex;\n width: 100%; }\n .styles_container__KXfyb .styles_input__XmNBn {\n font-size: 16px;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n display: flex;\n width: 100%;\n height: 44px;\n border-radius: 5px;\n border: solid 1px #888;\n background-color: #fff;\n padding-left: 50px;\n padding-right: 44px;\n line-height: 1.2;\n letter-spacing: -0.5px;\n color: #333;\n box-sizing: border-box;\n -webkit-appearance: none;\n appearance: none; }\n .styles_container__KXfyb .styles_input__XmNBn.styles_favourite__sjGcX {\n padding-left: 47px; }\n .styles_container__KXfyb .styles_input__XmNBn.styles_thin__y3lnY {\n height: 34px; }\n .styles_container__KXfyb .styles_input__XmNBn:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: 0 0 2px 1px var(--hover-color); }\n @media screen and (min-width: 768px) {\n .styles_container__KXfyb .styles_input__XmNBn {\n font-size: 15px;\n height: 44px;\n padding-left: 49px; } }\n .styles_container__KXfyb .styles_input__XmNBn::placeholder {\n color: #666;\n opacity: 1;\n font-size: 15px; }\n\n.styles_hasValue__tzCTr {\n color: #333; }\n\n.styles_suggestionsContainerOpen__4AZDX {\n width: 100%;\n max-height: 44vh;\n border-radius: 5px;\n box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);\n border: solid 1px rgba(0, 0, 0, 0.1);\n overflow-x: hidden;\n overflow-y: scroll;\n position: absolute;\n background-color: white;\n top: calc(3 * 0.875rem + 9px);\n z-index: 20; }\n\n.styles_suggestionsContainer__3dsEd {\n background-color: white;\n z-index: 20; }\n .styles_suggestionsContainer__3dsEd .styles_suggestionsList__esTtR {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white; }\n .styles_suggestionsContainer__3dsEd .styles_suggestionsList__esTtR li:hover {\n background: #f4f4f5; }\n\n.styles_suggestion__7itfO {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n cursor: pointer;\n list-style: none;\n display: block;\n overflow-x: hidden;\n overflow-y: hidden;\n white-space: nowrap; }\n\n.styles_suggestionHighlighted__XUxvC {\n background-color: #f4f4f5; }\n\n.styles_autosuggest-input-container__ZkKGO {\n position: relative;\n width: 100%; }\n .styles_autosuggest-input-container__ZkKGO.styles_origin__ivlHi {\n z-index: 16; }\n .styles_autosuggest-input-container__ZkKGO.styles_destination__y39VH {\n z-index: 10; }\n .styles_autosuggest-input-container__ZkKGO.styles_stop-route-station__FneXd {\n z-index: 9; }\n\n.styles_autosuggest-input-icon__uhYGQ {\n display: flex;\n position: absolute;\n align-items: center;\n width: 16px;\n height: 100%;\n margin-top: 0;\n margin-left: 19px; }\n .styles_autosuggest-input-icon__uhYGQ svg {\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_origin__ivlHi svg {\n fill: #4ea700;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_destination__y39VH svg {\n fill: #ec5188;\n width: 16px;\n height: 24px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_stop-route-station__FneXd svg, .styles_autosuggest-input-icon__uhYGQ.styles_favourite__sjGcX svg {\n fill: #888;\n width: 16px;\n height: 16px; }\n .styles_autosuggest-input-icon__uhYGQ.styles_origin-stop-near-you__Ekwp- svg {\n fill: #888;\n width: 16px;\n height: 16px; }\n\nbutton.styles_clear-input__Vx7B4 {\n display: flex;\n position: absolute;\n padding: 14px 0;\n right: 0;\n width: 44px;\n height: 100%;\n color: var(--color);\n outline: none;\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.styles_clear-input__Vx7B4 svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.styles_clear-input__Vx7B4:focus {\n background-color: transparent;\n color: inherit;\n /* First apply outline that is used in Edge and Firefox */\n /* Then override outline for webkit browsers like Chrome, this has no effect on other browsers */\n outline: 5px auto -webkit-focus-ring-color; }\n button.styles_clear-input__Vx7B4:active {\n background-color: transparent;\n color: inherit; }\n button.styles_clear-input__Vx7B4:hover {\n background-color: transparent;\n color: inherit; }\n\n.styles_sr-only__ZOrQT:not(:focus, :active) {\n clip: rect(0 0 0 0);\n -webkit-clip-path: inset(50%);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px; }\n");var jM={"fullscreen-root":"MobileSearch_fullscreen-root__WkMna","combobox-container":"MobileSearch_combobox-container__sRkYS","right-column":"MobileSearch_right-column__erBFe","combobox-icon":"MobileSearch_combobox-icon__xd0iZ","combobox-label":"MobileSearch_combobox-label__OqGpe",container:"MobileSearch_container__k-UVq",input:"MobileSearch_input__HbTUj","clear-input":"MobileSearch_clear-input__ILVwN",hasValue:"MobileSearch_hasValue__NYhZy",suggestion:"MobileSearch_suggestion__UBz5O",suggestionHighlighted:"MobileSearch_suggestionHighlighted__7ef5G",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__g7zkI",suggestionsList:"MobileSearch_suggestionsList__3pEzf","clear-search-history":"MobileSearch_clear-search-history__wblhz","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__f6Rl7","mobile-modal":"MobileSearch_mobile-modal__hNdM6","mobile-modal-content":"MobileSearch_mobile-modal-content__Yzz-V"};FM("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileSearch_fullscreen-root__WkMna {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileSearch_combobox-container__sRkYS {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between; }\n .MobileSearch_combobox-container__sRkYS .MobileSearch_right-column__erBFe {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileSearch_combobox-icon__xd0iZ {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none; }\n .MobileSearch_combobox-icon__xd0iZ svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileSearch_combobox-label__OqGpe {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333; }\n\n.MobileSearch_container__k-UVq {\n display: flex;\n align-items: center;\n width: 100%; }\n .MobileSearch_container__k-UVq .MobileSearch_input__HbTUj {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -webkit-appearance: none;\n appearance: none; }\n .MobileSearch_container__k-UVq .MobileSearch_input__HbTUj:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileSearch_clear-input__ILVwN {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileSearch_clear-input__ILVwN svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileSearch_clear-input__ILVwN:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__ILVwN:active {\n background-color: transparent;\n color: inherit; }\n button.MobileSearch_clear-input__ILVwN:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileSearch_hasValue__NYhZy {\n color: #333; }\n\n.MobileSearch_suggestion__UBz5O {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileSearch_suggestionHighlighted__7ef5G {\n background-color: #f4f4f5; }\n\n.MobileSearch_suggestionsContainerOpen__g7zkI {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll; }\n .MobileSearch_suggestionsContainerOpen__g7zkI .MobileSearch_suggestionsList__3pEzf {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f4f4f5; }\n\n.MobileSearch_clear-search-history__wblhz {\n display: flex;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f4f4f5;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd; }\n\n.MobileSearch_mobile-modal-overlay__f6Rl7 {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileSearch_mobile-modal__hNdM6 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n .MobileSearch_mobile-modal__hNdM6.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileSearch_mobile-modal__hNdM6.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileSearch_mobile-modal-content__Yzz-V {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n");var GM={"fullscreen-root":"MobileNoScroll_fullscreen-root__zQN50","combobox-container":"MobileNoScroll_combobox-container__RDEiT","right-column":"MobileNoScroll_right-column__0P3qe","combobox-icon":"MobileNoScroll_combobox-icon__LA0rD","combobox-label":"MobileNoScroll_combobox-label__-rYsj",container:"MobileNoScroll_container__CaIIv",input:"MobileNoScroll_input__Opft5","clear-input":"MobileNoScroll_clear-input__-4SQO",hasValue:"MobileNoScroll_hasValue__jR1iW",suggestion:"MobileNoScroll_suggestion__NAWcY",suggestionHighlighted:"MobileNoScroll_suggestionHighlighted__V0GuG",suggestionsContainerOpen:"MobileNoScroll_suggestionsContainerOpen__MRa5Y",suggestionsList:"MobileNoScroll_suggestionsList__NUpJE","clear-search-history":"MobileNoScroll_clear-search-history__Cjj-1","mobile-modal-overlay":"MobileNoScroll_mobile-modal-overlay__LbLie","mobile-modal":"MobileNoScroll_mobile-modal__-Rx-A","mobile-modal-content":"MobileNoScroll_mobile-modal-content__nfrCI"};FM("input[type='text'] {\n margin: 0;\n padding: 0; }\n\n.MobileNoScroll_fullscreen-root__zQN50 {\n display: flex;\n flex-direction: column;\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000; }\n\n.MobileNoScroll_combobox-container__RDEiT {\n margin: 15px 10px 0;\n border: solid #888 1px;\n display: flex;\n align-items: center;\n border-radius: 5px;\n height: 60px;\n justify-content: space-between; }\n .MobileNoScroll_combobox-container__RDEiT .MobileNoScroll_right-column__0P3qe {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px; }\n\n.MobileNoScroll_combobox-icon__LA0rD {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none; }\n .MobileNoScroll_combobox-icon__LA0rD svg {\n fill: #007ac9;\n width: 14px;\n height: 21px;\n transform: rotate(-180deg); }\n\n.MobileNoScroll_combobox-label__-rYsj {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.2px;\n color: #333; }\n\n.MobileNoScroll_container__CaIIv {\n display: flex;\n align-items: center;\n width: 100%; }\n .MobileNoScroll_container__CaIIv .MobileNoScroll_input__Opft5 {\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n width: 100%;\n position: relative;\n padding-bottom: 7px;\n top: 2px;\n border: none;\n height: 26px;\n font-weight: normal;\n box-shadow: none;\n font-size: 16px;\n letter-spacing: -0.5px;\n color: #666;\n -webkit-appearance: none;\n appearance: none; }\n .MobileNoScroll_container__CaIIv .MobileNoScroll_input__Opft5:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff; }\n\nbutton.MobileNoScroll_clear-input__-4SQO {\n display: flex;\n align-items: center;\n right: 0;\n padding: 0 15px 7px 0;\n height: 26px;\n color: var(--color);\n border: 0;\n margin: 0;\n justify-content: center;\n text-align: left;\n background: none;\n border-style: none;\n border-width: 0;\n cursor: pointer;\n font-family: inherit;\n background-color: transparent;\n transition: none; }\n button.MobileNoScroll_clear-input__-4SQO svg {\n fill: var(--color);\n width: 16px;\n height: 16px; }\n button.MobileNoScroll_clear-input__-4SQO:focus {\n background-color: transparent;\n color: inherit; }\n button.MobileNoScroll_clear-input__-4SQO:active {\n background-color: transparent;\n color: inherit; }\n button.MobileNoScroll_clear-input__-4SQO:hover {\n background-color: transparent;\n color: inherit; }\n\n.MobileNoScroll_hasValue__jR1iW {\n color: #333; }\n\n.MobileNoScroll_suggestion__NAWcY {\n font-size: 15px;\n min-height: 50px;\n letter-spacing: -0.6px;\n color: #333;\n font-weight: 500;\n background: #fff;\n margin: 0;\n padding: 0; }\n\n.MobileNoScroll_suggestionHighlighted__V0GuG {\n background-color: #f4f4f5; }\n\n.MobileNoScroll_suggestionsContainerOpen__MRa5Y {\n display: flex;\n position: absolute;\n margin-bottom: auto;\n z-index: 20;\n width: 100vw;\n max-height: calc(100% - 75px);\n height: 100%;\n top: 75px;\n left: 0;\n overflow-x: hidden;\n overflow-y: scroll; }\n .MobileNoScroll_suggestionsContainerOpen__MRa5Y .MobileNoScroll_suggestionsList__NUpJE {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f4f4f5; }\n\n.MobileNoScroll_clear-search-history__Cjj-1 {\n display: flex;\n font-family: 'Gotham Rounded A', 'Gotham Rounded B', Roboto, Arial, Georgia, serif;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f4f4f5;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd; }\n\n.MobileNoScroll_mobile-modal-overlay__LbLie {\n z-index: 9999;\n top: 0;\n left: 0;\n right: unset;\n bottom: unset;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background-color: white;\n position: fixed; }\n\n.MobileNoScroll_mobile-modal__-Rx-A {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n .MobileNoScroll_mobile-modal__-Rx-A.ReactModal__Content--after-open > div {\n transform: translateY(0); }\n .MobileNoScroll_mobile-modal__-Rx-A.ReactModal__Content--before-close > div {\n transform: translateY(10%); }\n\n.MobileNoScroll_mobile-modal-content__nfrCI {\n position: fixed;\n width: 100%;\n height: 100%;\n outline: none;\n background-color: #fff;\n transition: transform 0.25s;\n transform: translateY(10%); }\n\n.MobileNoScroll_suggestionsContainerOpen__MRa5Y {\n -ms-overflow-style: none;\n /* Internet Explorer 10+ */\n scrollbar-width: none;\n /* Firefox */ }\n .MobileNoScroll_suggestionsContainerOpen__MRa5Y::-webkit-scrollbar {\n display: none;\n /* Safari and Chrome */ }\n");class VM extends m.default{constructor(M){super(M);const z=this;z.onSuggestionTouchMove=()=>{z.justSelectedSuggestion=!1,z.pressedSuggestion=null}}}const KM=({appElement:M,id:z,closeHandle:p,clearInput:O,value:o,suggestions:c,inputProps:A,fetchFunction:q,renderSuggestion:e,getSuggestionValue:n,ariaLabel:W,label:a,onSuggestionSelected:t,clearOldSearches:d,dialogHeaderText:i,dialogPrimaryButtonText:r,dialogSecondaryButtonText:s,clearInputButtonText:u,focusInput:R,color:f,hoverColor:l,accessiblePrimaryColor:L,searchOpen:N,fontWeights:X,showScroll:h})=>{var m;const g=h?jM:GM,T=`${z}-input`,_=`${z}-label`,[y,S]=b.useState(!1),v=B.default.useRef();b.useEffect((()=>{H.default.setAppElement(M)}),[]);const k=b.useCallback((()=>{p()})),E=(M,z)=>{"clear-search-history"===z.suggestion.type?S(!0):z.suggestion.properties.arrowClicked||t(M,z)},w=M=>{const z=M&&(M.key||M.which||M.keyCode)||"";return!(!z||![13," ","Spacebar"].concat([32,"Enter"]).includes(z))&&(M.preventDefault(),!0)},C=M=>"clear-search-history"===M.type?"":n(M),D=M=>"clear-search-history"===M.type?B.default.createElement("button",{type:"button",className:g["clear-search-history"]},M.labelId):e(M);return R&&null!==(m=v.current)&&void 0!==m&&m.input&&v.current.input.focus(),B.default.createElement(H.default,{isOpen:N,className:g["mobile-modal"],overlayClassName:g["mobile-modal-overlay"],onAfterClose:k,shouldCloseOnEsc:!0},B.default.createElement("div",{className:g["mobile-modal-content"],style:{"--color":`${f}`,"--accessible-primary-color":L,"--hover-color":`${l}`,"--font-weight-medium":X.medium}},B.default.createElement("div",{className:g["combobox-container"],htmlFor:T},B.default.createElement("button",{type:"button",className:g["combobox-icon"],onClick:()=>k(),onKeyDown:M=>w(M)&&k(),"aria-label":s,tabIndex:0},B.default.createElement(x.default,{img:"arrow"})),B.default.createElement("span",{className:g["right-column"]},B.default.createElement("span",{className:g["combobox-label"],id:_},a),B.default.createElement(VM,{alwaysRenderSuggestions:!0,id:z,suggestions:c,onSuggestionsFetchRequested:q,getSuggestionValue:C,renderSuggestion:D,focusInputOnSuggestionClick:!0,shouldRenderSuggestions:()=>!0,inputProps:F({},A,{className:`${g.input} ${g[z]||""} ${A.value?g.hasValue:""}`,autoFocus:!0}),renderInputComponent:M=>B.default.createElement(B.default.Fragment,null,B.default.createElement("input",Object.assign({"aria-label":W,id:z},M)),o&&B.default.createElement("button",{type:"button",className:g["clear-input"],onClick:O,onKeyDown:M=>w(M)&&O(),"aria-label":u},B.default.createElement(x.default,{img:"close",color:f}))),theme:g,onSuggestionSelected:E,ref:v}))),B.default.createElement(Y.default,{appElement:M,isModalOpen:y,handleClose:()=>S(!1),headerText:i,primaryButtonText:r,secondaryButtonText:s,primaryButtonOnClick:()=>{d(),S(!1)},secondaryButtonOnClick:()=>S(!1),color:f,hoverColor:l,fontWeights:X})))};"production"!==process.env.NODE_ENV&&(KM.propTypes={appElement:N.default.string.isRequired,id:N.default.string.isRequired,closeHandle:N.default.func.isRequired,clearInput:N.default.func.isRequired,value:N.default.string,clearInputButtonText:N.default.string.isRequired,suggestions:N.default.array.isRequired,inputProps:N.default.shape({onChange:N.default.func.isRequired,onBlur:N.default.func.isRequired,value:N.default.string.isRequired,placeholder:N.default.string.isRequired,className:N.default.string.isRequired}).isRequired,fetchFunction:N.default.func.isRequired,getSuggestionValue:N.default.func.isRequired,renderSuggestion:N.default.func.isRequired,onSuggestionSelected:N.default.func.isRequired,label:N.default.string.isRequired,clearOldSearches:N.default.func.isRequired,ariaLabel:N.default.string,dialogHeaderText:N.default.string,dialogPrimaryButtonText:N.default.string,dialogSecondaryButtonText:N.default.string,focusInput:N.default.bool,color:N.default.string,hoverColor:N.default.string,accessiblePrimaryColor:N.default.string.isRequired,searchOpen:N.default.bool.isRequired,fontWeights:N.default.shape({medium:N.default.number.isRequired}).isRequired,showScroll:N.default.bool});var QM,JM=SM((function(M,z){var b;"undefined"!=typeof self&&self,M.exports=(b=B.default,function(){var M={888:function(M,z,b){var p,O;O=void 0!==b.g?b.g:"undefined"!=typeof window?window:this,p=function(){return function(M){var z={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},b=function(){var M={};return Array.prototype.forEach.call(arguments,(function(z){for(var b in z){if(!z.hasOwnProperty(b))return;M[b]=z[b]}})),M},p=function(M){"#"===M.charAt(0)&&(M=M.substr(1));for(var z,b=String(M),p=b.length,O=-1,o="",c=b.charCodeAt(0);++O<p;){if(0===(z=b.charCodeAt(O)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");o+=z>=1&&z<=31||127==z||0===O&&z>=48&&z<=57||1===O&&z>=48&&z<=57&&45===c?"\\"+z.toString(16)+" ":z>=128||45===z||95===z||z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122?b.charAt(O):"\\"+b.charAt(O)}return"#"+o},O=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},o=function(z){return z?(b=z,parseInt(M.getComputedStyle(b).height,10)+z.offsetTop):0;var b},c=function(z,b,p){0===z&&document.body.focus(),p||(z.focus(),document.activeElement!==z&&(z.setAttribute("tabindex","-1"),z.focus(),z.style.outline="none"),M.scrollTo(0,b))},A=function(z,b,p,O){if(b.emitEvents&&"function"==typeof M.CustomEvent){var o=new CustomEvent(z,{bubbles:!0,detail:{anchor:p,toggle:O}});document.dispatchEvent(o)}};return function(q,e){var n,W,a,t,d={cancelScroll:function(M){cancelAnimationFrame(t),t=null,M||A("scrollCancel",n)},animateScroll:function(p,q,e){d.cancelScroll();var W=b(n||z,e||{}),i="[object Number]"===Object.prototype.toString.call(p),r=i||!p.tagName?null:p;if(i||r){var s=M.pageYOffset;W.header&&!a&&(a=document.querySelector(W.header));var u,R,f,l=o(a),L=i?p:function(z,b,p,o){var c=0;if(z.offsetParent)do{c+=z.offsetTop,z=z.offsetParent}while(z);return c=Math.max(c-b-p,0),o&&(c=Math.min(c,O()-M.innerHeight)),c}(r,l,parseInt("function"==typeof W.offset?W.offset(p,q):W.offset,10),W.clip),N=L-s,B=O(),X=0,h=function(M,z){var b=z.speedAsDuration?z.speed:Math.abs(M/1e3*z.speed);return z.durationMax&&b>z.durationMax?z.durationMax:z.durationMin&&b<z.durationMin?z.durationMin:parseInt(b,10)}(N,W),m=function(z){u||(u=z),X+=z-u,f=s+N*function(M,z){var b;return"easeInQuad"===M.easing&&(b=z*z),"easeOutQuad"===M.easing&&(b=z*(2-z)),"easeInOutQuad"===M.easing&&(b=z<.5?2*z*z:(4-2*z)*z-1),"easeInCubic"===M.easing&&(b=z*z*z),"easeOutCubic"===M.easing&&(b=--z*z*z+1),"easeInOutCubic"===M.easing&&(b=z<.5?4*z*z*z:(z-1)*(2*z-2)*(2*z-2)+1),"easeInQuart"===M.easing&&(b=z*z*z*z),"easeOutQuart"===M.easing&&(b=1- --z*z*z*z),"easeInOutQuart"===M.easing&&(b=z<.5?8*z*z*z*z:1-8*--z*z*z*z),"easeInQuint"===M.easing&&(b=z*z*z*z*z),"easeOutQuint"===M.easing&&(b=1+--z*z*z*z*z),"easeInOutQuint"===M.easing&&(b=z<.5?16*z*z*z*z*z:1+16*--z*z*z*z*z),M.customEasing&&(b=M.customEasing(z)),b||z}(W,R=(R=0===h?0:X/h)>1?1:R),M.scrollTo(0,Math.floor(f)),function(z,b){var O=M.pageYOffset;if(z==b||O==b||(s<b&&M.innerHeight+O)>=B)return d.cancelScroll(!0),c(p,b,i),A("scrollStop",W,p,q),u=null,t=null,!0}(f,L)||(t=M.requestAnimationFrame(m),u=z)};0===M.pageYOffset&&M.scrollTo(0,0),function(M,z,b){z||history.pushState&&b.updateURL&&history.pushState({smoothScroll:JSON.stringify(b),anchor:M.id},document.title,M===document.documentElement?"#top":"#"+M.id)}(p,i,W),"matchMedia"in M&&M.matchMedia("(prefers-reduced-motion)").matches?c(p,Math.floor(L),!1):(A("scrollStart",W,p,q),d.cancelScroll(!0),M.requestAnimationFrame(m))}}},i=function(z){if(!z.defaultPrevented&&!(0!==z.button||z.metaKey||z.ctrlKey||z.shiftKey)&&"closest"in z.target&&(W=z.target.closest(q))&&"a"===W.tagName.toLowerCase()&&!z.target.closest(n.ignore)&&W.hostname===M.location.hostname&&W.pathname===M.location.pathname&&/#/.test(W.href)){var b,O;try{b=p(decodeURIComponent(W.hash))}catch(M){b=p(W.hash)}if("#"===b){if(!n.topOnEmptyHash)return;O=document.documentElement}else O=document.querySelector(b);(O=O||"#top"!==b?O:document.documentElement)&&(z.preventDefault(),function(z){if(history.replaceState&&z.updateURL&&!history.state){var b=M.location.hash;b=b||"",history.replaceState({smoothScroll:JSON.stringify(z),anchor:b||M.pageYOffset},document.title,b||M.location.href)}}(n),d.animateScroll(O,W))}},r=function(M){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(n)){var z=history.state.anchor;"string"==typeof z&&z&&!(z=document.querySelector(p(history.state.anchor)))||d.animateScroll(z,null,{updateURL:!1})}};return d.destroy=function(){n&&(document.removeEventListener("click",i,!1),M.removeEventListener("popstate",r,!1),d.cancelScroll(),n=null,W=null,a=null,t=null)},function(){if(!("querySelector"in document&&"addEventListener"in M&&"requestAnimationFrame"in M&&"closest"in M.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";d.destroy(),n=b(z,e||{}),a=n.header?document.querySelector(n.header):null,document.addEventListener("click",i,!1),n.updateURL&&n.popstate&&M.addEventListener("popstate",r,!1)}(),d}}(O)}.apply(z,[]),void 0===p||(M.exports=p)},253:function(M,z,b){var p=this&&this.__createBinding||(Object.create?function(M,z,b,p){void 0===p&&(p=b),Object.defineProperty(M,p,{enumerable:!0,get:function(){return z[b]}})}:function(M,z,b,p){void 0===p&&(p=b),M[p]=z[b]}),O=this&&this.__exportStar||function(M,z){for(var b in M)"default"===b||Object.prototype.hasOwnProperty.call(z,b)||p(z,M,b)};Object.defineProperty(z,"__esModule",{value:!0}),O(b(720),z),O(b(646),z),O(b(87),z),O(b(641),z),O(b(91),z),O(b(183),z),O(b(376),z),O(b(45),z),O(b(840),z),O(b(586),z),O(b(219),z),O(b(510),z),O(b(333),z),O(b(23),z),O(b(348),z),O(b(197),z)},87:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useArrowNavigation=void 0;var p=b(156);z.useArrowNavigation=function(M){var z=M.listItems,b=M.onArrowUpOrDown,O=(0,p.useState)(0),o=O[0],c=O[1],A=(0,p.useCallback)((function(M){c(M)}),[z]),q=function(M){var p=M.key;if(null==z?void 0:z.length)if("ArrowUp"===p)b&&b(),M.preventDefault(),A(o>0?o-1:z.length-1);else{if("ArrowDown"!==p)return;b&&b(),M.preventDefault(),o<z.length-1?A(o+1):A(0)}};return(0,p.useEffect)((function(){return window.addEventListener("keydown",q),function(){return window.removeEventListener("keydown",q)}})),(0,p.useEffect)((function(){A(0)}),[z]),{selectedIndex:o}}},333:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useDebounce=void 0;var p=b(156);z.useDebounce=function(M,z){void 0===z&&(z=300);var b=(0,p.useState)(M),O=b[0],o=b[1];return(0,p.useEffect)((function(){var b=setTimeout((function(){o(M)}),z);return function(){clearTimeout(b)}}),[M,z]),O}},23:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useElementSize=void 0;var p=b(156);z.useElementSize=function(){var M,z,b=(0,p.useRef)(null);return[b,{width:null===(M=null==b?void 0:b.current)||void 0===M?void 0:M.clientWidth,height:null===(z=null==b?void 0:b.current)||void 0===z?void 0:z.clientHeight}]},z.default=z.useElementSize},641:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIntersectionObserver=void 0;var p=b(156);z.useIntersectionObserver=function(M){var z=(0,p.useRef)(null),b=(0,p.useState)(!1),O=b[0],o=b[1],c=function(M){var z=M[0];o(z.isIntersecting)};return(0,p.useEffect)((function(){if(window&&window.IntersectionObserver){var b=new IntersectionObserver(c,M),p=z.current;return z.current&&b.observe(z.current),function(){p&&b.unobserve(p)}}o(!1)}),[z,M]),{containerRef:z,isVisible:O}},z.default=z.useIntersectionObserver},91:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIsBreakpoint=void 0;var p=b(156),O=b(253),o={xs:1,mobileSmall:320,mobile:375,tablet:768,tabletLarge:920,desktopSmall:1024,desktop:1260,desktopLarge:1440};z.useIsBreakpoint=function(M){var z="string"==typeof M?o[M]:M,b=(0,p.useState)(null),c=b[0],A=b[1],q=(0,p.useCallback)((function(){A(window.innerWidth)}),[]);return(0,p.useEffect)((function(){q()}),[]),(0,O.useOnResize)(q),c>=z},z.default=z.useIsBreakpoint},45:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0});var p=b(156),O={"crazy-egg":"crazyegg.com",youtube:"youtube.com"},o={PrivacyManagerAPI:{action:"getConsentDecision",timestamp:(new Date).getTime(),self:"hsl.fi"}};z.default=function(M){var z=(0,p.useState)(!1),b=z[0],c=z[1],A=function(){var z,b=null===(z=window.truste)||void 0===z?void 0:z.cma;if(b){var p=b.callApi("getConsent","hsl.fi",O[M],"hsl.fi");c("approved"===(null==p?void 0:p.consent))}else console.error("TrustArc api not found, returning isCookieEnabled as false")},q=function(M){if("string"==typeof(null==M?void 0:M.origin)&&M.origin.includes("trustarc")&&"string"==typeof(null==M?void 0:M.data))try{var z=JSON.parse(null==M?void 0:M.data);"submit_preferences"===(null==z?void 0:z.message)&&A()}catch(M){return}};return(0,p.useEffect)((function(){A()}),[M]),(0,p.useEffect)((function(){setTimeout(A,0),setTimeout(A,100),setTimeout(A,1e3)}),[]),(0,p.useEffect)((function(){return window.top.postMessage(JSON.stringify(o),"*"),window.addEventListener("message",q,!1),function(){return window.removeEventListener("message",q)}}),[]),b}},376:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIsLoadingAfterError=void 0;var p=b(156);z.useIsLoadingAfterError=function(M,z){var b=(0,p.useState)(z),O=b[0],o=b[1];return(0,p.useEffect)((function(){M||o(z)}),[M,z]),M&&O}},348:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIsMobile=void 0;var p=b(91);z.useIsMobile=function(){return!(0,p.useIsBreakpoint)("tablet")},z.default=z.useIsMobile},183:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useIsomorphicLayoutEffect=void 0;var p=b(156);z.useIsomorphicLayoutEffect="undefined"!=typeof window?p.useLayoutEffect:p.useEffect,z.default=z.useIsomorphicLayoutEffect},586:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useOnLoseFocusWithin=void 0;var p=b(156);z.useOnLoseFocusWithin=function(M){var z=M.ref,b=M.callback,O=M.watch;(0,p.useEffect)((function(){var M=function(){var M;if(O)return(null===(M=z.current)||void 0===M?void 0:M.matches(":focus-within"))?void 0:b()};return document.addEventListener("keyup",M),function(){return document.removeEventListener("keyup",M)}}),[b,z,O])},z.default=z.useOnLoseFocusWithin},197:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useOnResize=void 0;var p=b(156);z.useOnResize=function(M){(0,p.useEffect)((function(){var z=function(){M(window.innerWidth)};return window.addEventListener("resize",z,{passive:!0}),function(){return window.removeEventListener("resize",z)}}),[])},z.default=z.useOnResize},510:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useOnWindowFocus=void 0;var p=b(156);z.useOnWindowFocus=function(M){(0,p.useEffect)((function(){var z=function(){M&&"visible"===document.visibilityState&&M()};return window.addEventListener("visibilitychange",z,!1),function(){return window.removeEventListener("visibilitychange",z)}}),[M])}},720:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useOutsideReacter=void 0;var p=b(156);z.useOutsideReacter=function(M,z){function b(b){M.current&&!M.current.contains(b.target)&&z()}(0,p.useEffect)((function(){return document.addEventListener("mousedown",b),function(){document.removeEventListener("mousedown",b)}}))}},219:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0});var p=b(156);z.default=function(){var M=(0,p.useRef)(null);return(0,p.useEffect)((function(){M.current&&(M.current(),M.current=null)})),function(z){M.current=z}}},646:function(M,z,b){Object.defineProperty(z,"__esModule",{value:!0}),z.useScrollLock=void 0;var p=b(156);z.useScrollLock=function(){return{lock:(0,p.useCallback)((function(){var M=window.scrollY+"px",z=document.body;z.style.position="fixed",z.style.top="-"+M}),[]),unlock:(0,p.useCallback)((function(){var M=document.body,z=M.style.top,b=-1*parseInt(z||"0");M.style.position="",M.style.top="",b&&window.scrollTo(0,-1*parseInt(z||"0"))}),[])}}},840:function(M,z,b){var p=this&&this.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(z,"__esModule",{value:!0}),z.useSmoothScroll=void 0;var O=b(156),o=p(b(888));z.useSmoothScroll=function(M){var z=(0,O.useRef)(null),b=M.ref,p=M.offset,c=void 0===p?0:p,A=M.speed,q=void 0===A?500:A;return(0,O.useEffect)((function(){z.current=new o.default(null,{speed:q,speedAsDuration:!0})}),[]),(0,O.useCallback)((function(){b&&z.current&&z.current.animateScroll(b.current,null,{offset:function(){return c},updateURL:!1})}),[c,b])}},156:function(M){M.exports=b}},z={};function p(b){var O=z[b];if(void 0!==O)return O.exports;var o=z[b]={exports:{}};return M[b].call(o.exports,o,o.exports,p),o.exports}return p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(M){if("object"==typeof window)return window}}(),p(253)}())})),ZM=(QM=JM)&&QM.__esModule&&Object.prototype.hasOwnProperty.call(QM,"default")?QM.default:QM;HM.locale("en"),X.default.init({fallbackLng:"fi",defaultNS:"translation",interpolation:{escapeValue:!1}});"production"!==process.env.NODE_ENV&&N.default.node;const $M=M=>{if(!M||!M.GTFS.platform)return;const{modes:z,platform:b}=M.GTFS;return[z&&"RAIL"===z[0]?X.default.t("track"):X.default.t("platform"),b]};function Mz(M){if("FutureRoute"!==M.type){if("SelectFromMap"===M.type)return["",X.default.t("select-from-map")];if("CurrentLocation"===M.type)return["",X.default.t("use-own-position")];if("SelectFromOwnLocations"===M.type)return["",X.default.t("select-from-own-locations")];let b,[p,O]=_M(M.properties,!0);if(M.properties.layer.toLowerCase().includes("bikerental")||M.properties.layer.toLowerCase().includes("bikestation")){b=X.default.t("vehiclerentalstation");return[b,p,void 0,M.properties.labelId]}if("bikepark"===M.properties.layer)return b=X.default.t("bikepark"),[b,p,void 0,void 0];if("carpark"===M.properties.layer)return b=X.default.t("carpark"),[b,p,void 0,void 0];if(M.properties.mode)b=X.default.t(M.properties.mode.toLowerCase().replace("favourite",""));else{const z=M.properties.layer.replace("route-","").toLowerCase().replace("favourite","");b=X.default.t(z)}if(M.properties.id&&("stop"===M.properties.layer||"station"===M.properties.layer)){var z;const o=TM(M.properties),c=null===(z=M.properties.addendum)||void 0===z?void 0:z.GTFS.modes,A=$M(M.properties.addendum);return[b,iM(p,o),O,o,c,A]}if("favouriteStop"===M.properties.layer||"favouriteStation"===M.properties.layer){const{address:z,code:o}=M.properties;return[b,z?iM(z.split(",")[0],o):p,O,o,void 0,$M(M.properties.addendum)]}return[b,p,O]}const{origin:b,destination:p}=M.properties,O=b.locality?`, ${b.locality} foobar`:"",o=p.locality?`, ${p.locality}`:"",c=b.name,A=p.name;return[X.default.t("future-route"),`${X.default.t("origin")} ${c}${O} ${X.default.t("destination")} ${A}${o}`,M.translatedText]}function zz(M){const z=HM.unix(M.properties.time);let b=M.properties.arriveBy?X.default.t("arrival"):X.default.t("departure");return b=z.isSame(HM(),"day")?`${b} ${X.default.t("today-at")}`:z.isSame(HM().add(1,"day"),"day")?`${b} ${X.default.t("tomorrow-at")}`:`${b} ${z.format("dd D.M.")}`,b=`${b} ${HM(z).format("HH:mm")}`,b}const bz=M=>"SelectFromOwnLocations"===M.type||"back"===M.type?"":function(M){const z=_M(M,!0);switch(M.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return z[1]||z[0];case"favouriteVehicleRentalStation":case"favouritePlace":return z[0];default:return z.length>1&&""!==z[1]?z.join(", "):z[1]||z[0]}}(M.properties);class pz extends B.default.Component{constructor(M){super(M),this.onChange=(M,{newValue:z,method:b})=>{const p={value:this.fInput||z||"",renderMobileSearch:this.props.isMobile};if(this.fInput=null,this.state.editing){if("enter"!==b||this.state.valid){if(this.state.typingTimer&&clearTimeout(this.state.typingTimer),"type"===b){const M=setTimeout((()=>{this.setState({typing:!1})}),1e3);p.typingTimer=M,p.typing=!0}this.setState(p)}}else p.editing=!0,this.setState(p,(()=>this.fetchFunction({value:z||""})))},this.onBlur=()=>{this.state.renderMobileSearch||(this.state.editing&&this.input.focus(),this.setState({editing:!1,renderMobileSearch:!1,value:this.props.value}))},this.onSelected=(M,z)=>{if(this.state.valid){if("SelectFromOwnLocations"===z.suggestion.type)return void this.setState({sources:["Favourite","Back"],ownPlaces:!0,pendingSelection:z.suggestion.type,value:""},(()=>{this.fetchFunction({value:""})}));if("back"===z.suggestion.type||"FutureRoute"===z.suggestion.type)return void this.setState({sources:this.props.sources,ownPlaces:!1,pendingSelection:z.suggestion.type,suggestionIndex:z.suggestionIndex},(()=>{this.fetchFunction({value:""})}));this.selectionDone=!0,this.setState({editing:!1,value:z.suggestionValue},(()=>{this.input.blur(),this.props.handleViaPoints?this.props.handleViaPoints(z.suggestion,z.suggestionIndex):this.props.onSelect(z.suggestion,this.props.id),this.setState({renderMobileSearch:!1,sources:this.props.sources,ownPlaces:!1,suggestions:[]},(()=>{this.selectionDone=!1})),!this.props.focusChange||this.props.isMobile&&!this.props.isEmbedded||this.props.focusChange(),this.props.isMobile&&this.closeMobileSearch()}))}else this.setState((M=>({pendingSelection:M.value})),(()=>this.checkPendingSelection()))},this.onSuggestionsClearRequested=()=>{this.setState({suggestions:[],sources:this.props.sources,ownPlaces:!1,editing:!1})},this.checkPendingSelection=()=>{"SelectFromOwnLocations"!==this.state.pendingSelection&&"back"!==this.state.pendingSelection||!this.state.valid?this.state.pendingSelection&&this.state.valid&&this.setState({pendingSelection:null,editing:!1},(()=>{this.state.suggestions.length&&(this.input.blur(),this.props.onSelect(this.state.suggestions[this.state.suggestionIndex],this.props.id),this.props.isMobile&&this.closeMobileSearch(),!this.props.focusChange||this.props.isMobile&&!this.props.isEmbedded||this.props.focusChange())})):this.setState({pendingSelection:null,editing:!0},(()=>{this.input.focus()}))},this.clearButton=()=>B.default.createElement("button",{type:"button",className:UM["clear-input"],onClick:this.clearInput,"aria-label":X.default.t("clear-button-label")},B.default.createElement(x.default,{img:"close",color:this.props.color})),this.fetchFunction=({value:M,cleanExecuted:z})=>this.setState({valid:!1,cleanExecuted:z||!1},(()=>{if(this.selectionDone)return;const z=I.default(this.props.targets)||this.props.targets.includes("Locations");let b;this.state.ownPlaces?(b=["Locations"],(I.default(this.props.targets)||this.props.targets.includes("Stops"))&&b.push("Stops"),(I.default(this.props.targets)||this.props.targets.includes("VehicleRentalStations"))&&b.push("VehicleRentalStations")):I.default(this.props.targets)||(b=[...this.props.targets],z&&!this.props.isMobile&&(I.default(this.props.sources)||this.props.sources.includes("Favourite"))&&b.push("SelectFromOwnLocations"));((M,z,b,p,O,o,c,A,q,e)=>{A(null),mM(M,z,b,p,O,o,c,A,q,e)})(b,this.state.sources&&this.state.sources.filter((M=>!(z&&"Favourite"===M&&!this.state.ownPlaces&&!this.props.isMobile))),this.props.transportMode,this.props.searchContext,this.props.filterResults,this.props.geocodingSize,{input:M||""},(z=>{if(null==z)return;const b=(z.results||[]).filter((M=>"FutureRoute"!==M.type||"FutureRoute"===M.type&&M.properties.time>HM().unix())).map((M=>{if("CurrentLocation"===M.type||"SelectFromMap"===M.type||"SelectFromOwnLocations"===M.type||"back"===M.type){const z=F({},M);return z.properties.labelId=X.default.t(M.properties.labelId),z}return M}));M!==this.state.value&&M!==this.state.pendingSelection&&"SelectFromOwnLocations"!==this.state.pendingSelection&&"back"!==this.state.pendingSelection&&"FutureRoute"!==this.state.pendingSelection||this.setState({valid:!0,suggestions:b},(()=>this.checkPendingSelection()))}),this.props.pathOpts,this.props.refPoint)})),this.clearInput=()=>{const M={editing:!0,value:"",sources:this.props.sources,ownPlaces:!1,renderMobileSearch:this.props.isMobile};this.setState(M,(()=>this.fetchFunction({value:"",cleanExecuted:!0}))),this.props.onClear&&this.props.onClear(this.props.id),this.input.focus()},this.inputClicked=M=>{if(this.input.focus(),this.clearLocationText(),this.props.isMobile&&this.props.lock(),this.state.editing)this.props.isMobile&&!this.state.renderMobileSearch&&this.setState({renderMobileSearch:!0});else{const z={editing:!0,pendingSelection:null,renderMobileSearch:this.props.isMobile},b={editing:!0,pendingSelection:null,value:M};this.state.suggestions.length?(this.fetchFunction({value:this.state.value}),this.setState(z)):"object"!=typeof M&&M?this.setState(b,(()=>this.fetchFunction({value:M}))):this.setState(z,(()=>this.fetchFunction({value:this.state.value})))}},this.storeInputReference=M=>{null!==M&&(this.input=M.input,this.props.storeRef&&this.props.storeRef(M.input))},this.fillInput=M=>{this.fInput=M.properties.name;const z={editing:!0,value:M.properties.name,checkPendingSelection:M,valid:!0};this.setState(z),this.fetchFunction({value:M.properties.name}),this.input.focus()},this.renderItem=M=>{const z="FutureRoute"===M.type?F({},M,{translatedText:zz(M)}):M,b=Mz(M);return B.default.createElement(E.default,{item:z,content:b,loading:!this.state.valid,isMobile:this.props.isMobile,ariaFavouriteString:X.default.t("favourite"),color:this.props.color,accessiblePrimaryColor:this.props.accessiblePrimaryColor,fillInput:this.fillInput,fontWeights:this.props.fontWeights,getAutoSuggestIcons:this.props.getAutoSuggestIcons,modeIconColors:this.props.modeIconColors,modeSet:this.props.modeSet})},this.closeMobileSearch=()=>{this.props.unlock(),this.setState({renderMobileSearch:!1,value:this.props.value},(()=>{window.scrollTo(0,this.state.scrollY),this.onSuggestionsClearRequested()}))},this.keyDown=M=>{if(this.selectionDone)return;const z=M.key;if("Escape"===z&&this.setState({editing:!1}),this.state.editing)return"Enter"===z&&""!==this.state.value&&this.setState({pendingSelection:!0},(()=>{this.fetchFunction({value:this.state.value})})),void this.inputClicked();if("Enter"!==z&&"ArrowDown"!==z||""!==this.state.value){if("ArrowDown"===z&&""!==this.state.value){const M={editing:!0,value:this.state.value};this.setState(M,(()=>this.fetchFunction({value:this.state.value})))}this.state.editing||this.setState({editing:!0}),"Tab"===z&&this.onBlur()}else this.clearInput()},this.suggestionAsAriaContent=()=>{let M=[];const z=this.state.suggestions[0];return z&&(z.type&&z.type.includes("Favourite")&&M.push(X.default.t("favourite")),M=M.concat(Mz(this.state.suggestions[0]))),[...new Set(M)].join(" - ")},this.clearOldSearches=()=>{const{context:M,clearOldSearches:z,clearFutureRoutes:b}=this.props.searchContext;M&&z&&(z(M),b&&b(M),this.fetchFunction({value:this.state.value}))},this.isOriginDestinationOrViapoint=()=>"origin"===this.props.id||"destination"===this.props.id||"via-point"===this.props.id||"origin-stop-near-you"===this.props.id,this.clearLocationText=()=>{["Valittu sijainti","Nykyinen sijaintisi","Current position","Selected location","Vald position","Använd min position","Min position","Käytä nykyistä sijaintia","Use current location","Your current location"].includes(this.state.value)&&this.clearInput()},this.onFocus=()=>{this.clearLocationText();const M=window.pageYOffset;return this.setState({scrollY:M})},HM.tz.setDefault(M.timeZone),HM.locale(M.lang),this.state={value:M.value,suggestions:[],editing:!1,valid:!0,renderMobileSearch:!1,sources:M.sources,ownPlaces:!1,typingTimer:null,typing:!1,pendingSelection:null,suggestionIndex:0,cleanExecuted:!1,scrollY:0},Object.keys(YM).forEach((M=>{X.default.addResourceBundle(M,"translation",YM[M])}))}shouldComponentUpdate(M,z){return!w.default(z,this.state)||!w.default(M,this.props)}componentDidUpdate(){X.default.language!==this.props.lang&&X.default.changeLanguage(this.props.lang)}UNSAFE_componentWillReceiveProps(M){M.value===this.state.value||this.state.editing||this.setState({value:M.value})}render(){X.default.language!==this.props.lang&&X.default.changeLanguage(this.props.lang);const{value:M,suggestions:z,renderMobileSearch:b,cleanExecuted:p}=this.state,O={placeholder:this.props.translatedPlaceholder?this.props.translatedPlaceholder:X.default.t(this.props.placeholder),value:M,onChange:this.onChange,onBlur:this.onBlur,className:`${UM.input} ${this.props.isMobile&&this.props.transportMode?UM.thin:""} ${UM[this.props.id]||""} ${this.state.value?UM.hasValue:""} ${this.props.inputClassName}`,onKeyDown:this.keyDown,required:this.props.required},o=this.props.id.replace("searchfield-","");let c=this.props.ariaLabel||X.default.t(o);c=c.replace("searchfield-","").concat(".");const A=this.props.required?`${X.default.t("required")}.`:"",q=this.props.isMobile?X.default.t("search-autosuggest-label-instructions-mobile"):X.default.t("search-autosuggest-label-instructions-desktop"),e="origin"===this.props.id?X.default.t("search-autosuggest-label-move-to-destination"):"",n=q.concat(" ").concat(e),W=X.default.t("search-autosuggest-len",{count:z.length}),a=()=>this.suggestionAsAriaContent()||this.props.value?X.default.t("search-current-suggestion",{selection:this.suggestionAsAriaContent().toLowerCase()||this.props.value}):"";return B.default.createElement(B.default.Fragment,null,B.default.createElement("span",{className:UM["sr-only"],role:"alert"},!this.state.typing&&this.state.editing&&`${W} ${a()}`),this.props.isMobile&&B.default.createElement(KM,{searchOpen:b,appElement:this.props.appElement,clearOldSearches:this.clearOldSearches,id:this.props.id,clearInput:this.clearInput,value:this.state.value,suggestions:[...z,{type:"clear-search-history",labelId:X.default.t("clear-search-history")}],inputProps:F({},O,{placeholder:this.isOriginDestinationOrViapoint()?X.default.t("address-place-or-business"):O.placeholder}),fetchFunction:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:bz,renderSuggestion:this.renderItem,closeHandle:this.closeMobileSearch,ariaLabel:A.concat(" ").concat(c).concat(" ").concat(a()),label:this.props.mobileLabel?this.props.mobileLabel:X.default.t(this.props.id),onSuggestionSelected:this.onSelected,dialogHeaderText:X.default.t("delete-old-searches-header"),dialogPrimaryButtonText:X.default.t("delete"),dialogSecondaryButtonText:X.default.t("cancel"),clearInputButtonText:X.default.t("clear-button-label"),focusInput:p,color:this.props.color,hoverColor:this.props.hoverColor,accessiblePrimaryColor:this.props.accessiblePrimaryColor,fontWeights:this.props.fontWeights,showScroll:this.props.showScroll}),!b&&B.default.createElement("div",{className:h.default(UM["autosuggest-input-container"],UM[this.props.id]),style:{"--color":`${this.props.color}`,"--hover-color":`${this.props.hoverColor}`}},this.props.icon&&B.default.createElement("div",{className:h.default(UM["autosuggest-input-icon"],UM[this.props.id],this.props.inputClassName&&`${this.props.inputClassName}-input-icon`),"aria-label":A.concat(" ").concat(c).concat(" ").concat(X.default.t("search-autosuggest-label"))},B.default.createElement(x.default,{img:`${this.props.icon}`})),B.default.createElement(m.default,{alwaysRenderSuggestions:this.state.editing,id:this.props.id,suggestions:z,onSuggestionsFetchRequested:this.fetchFunction,onSuggestionsClearRequested:this.onSuggestionsClearRequested,getSuggestionValue:bz,renderSuggestion:this.renderItem,inputProps:F({},O,{onFocus:this.onFocus}),focusInputOnSuggestionClick:!0,shouldRenderSuggestions:()=>this.state.editing,highlightFirstSuggestion:!this.state.ownPlaces,theme:UM,renderInputComponent:M=>B.default.createElement(B.default.Fragment,null,B.default.createElement("label",{className:UM["sr-only"],htmlFor:this.props.id},a().concat(" ").concat(A).concat(" ").concat(c).concat(" ").concat(n)),B.default.createElement("input",Object.assign({"aria-label":a().concat(" ").concat(A).concat(" ").concat(c).concat(" ").concat(n),id:this.props.id,onClick:this.inputClicked,onKeyDown:this.keyDown},M)),this.state.value&&this.clearButton()),onSuggestionSelected:this.onSelected,ref:this.storeInputReference})))}}pz.defaultProps={autoFocus:!1,className:"",icon:void 0,value:"",transportMode:void 0,lang:"fi",sources:[],isMobile:!1,color:"#007ac9",hoverColor:"#0062a1",accessiblePrimaryColor:"#0074be",timeZone:"Europe/Helsinki",pathOpts:{routesPrefix:"linjat",stopsPrefix:"pysakit"},mobileLabel:void 0,inputClassName:"",translatedPlaceholder:void 0,fontWeights:{medium:500},modeIconColors:{"mode-bus":"#007ac9","mode-rail":"#8c4799","mode-tram":"#008151","mode-metro":"#ed8c00","mode-ferry":"#007A97","mode-citybike":"#f2b62d","mode-funicular":"#ff00ff"},required:!1,modeSet:void 0,showScroll:!1,refPoint:{}},"production"!==process.env.NODE_ENV&&(pz.propTypes={appElement:N.default.string.isRequired,autoFocus:N.default.bool,className:N.default.string,icon:N.default.string,id:N.default.string.isRequired,placeholder:N.default.string.isRequired,translatedPlaceholder:N.default.string,value:N.default.string,searchContext:N.default.any.isRequired,ariaLabel:N.default.string,onSelect:N.default.func,transportMode:N.default.string,filterResults:N.default.func,geocodingSize:N.default.number,onClear:N.default.func,storeRef:N.default.func,handleViaPoints:N.default.func,focusChange:N.default.func,lang:N.default.string,sources:N.default.arrayOf(N.default.string),targets:N.default.arrayOf(N.default.string),isMobile:N.default.bool,color:N.default.string,hoverColor:N.default.string,accessiblePrimaryColor:N.default.string,timeZone:N.default.string,pathOpts:N.default.shape({routesPrefix:N.default.string,stopsPrefix:N.default.string}),mobileLabel:N.default.string,lock:N.default.func.isRequired,unlock:N.default.func.isRequired,refPoint:N.default.shape({address:N.default.string,lat:N.default.number,lon:N.default.number}),inputClassName:N.default.string,fontWeights:N.default.shape({medium:N.default.number}),modeIconColors:N.default.object,getAutoSuggestIcons:N.default.object,required:N.default.bool,modeSet:N.default.string,showScroll:N.default.bool,isEmbedded:N.default.bool});const Oz=(oz=pz,M=>{const{lock:z,unlock:b}=ZM.useScrollLock();return B.default.createElement(oz,Object.assign({lock:z,unlock:b},M))});var oz;M.default=Oz,Object.defineProperty(M,"__esModule",{value:!0})}));
|
|
14
14
|
//# sourceMappingURL=index.js.map
|