@digitransit-component/digitransit-component-autosuggest 10.0.0 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -6
- package/lib/index.cjs +2 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.development.cjs +6888 -43
- package/lib/index.js +6867 -23
- package/lib/index.js.map +1 -1
- package/package.json +17 -24
package/lib/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react"),require("react-i18next"),require("classnames"),require("lodash/debounce"),require("lodash/flatten"),require("lodash/take"),require("lodash/isString"),require("lodash/orderBy"),require("lodash/uniqWith"),require("lodash/get"),require("downshift"),require("@digitransit-component/digitransit-component-icon"),require("i18next"),require("lodash/isEqual"),require("lodash/memoize"),require("lodash/escapeRegExp"),require("lodash/cloneDeep"),require("luxon"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal"),require("@digitransit-component/digitransit-component-suggestion-item"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","react-i18next","classnames","lodash/debounce","lodash/flatten","lodash/take","lodash/isString","lodash/orderBy","lodash/uniqWith","lodash/get","downshift","@digitransit-component/digitransit-component-icon","i18next","lodash/isEqual","lodash/memoize","lodash/escapeRegExp","lodash/cloneDeep","luxon","react-modal","@digitransit-component/digitransit-component-dialog-modal","@digitransit-component/digitransit-component-suggestion-item","react/jsx-runtime"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.PropTypes,e.React,e.reactI18next,e.cx,e.debounce,e.flatten,e.take,e.isString,e.orderBy,e.uniqWith,e.get,e.downshift,e.Icon,e.i18next,e.isEqual,e.memoize,e.escapeRegExp,e.cloneDeep,e.luxon,e.ReactModal,e.DialogModal,e.SuggestionItem,e.jsxRuntime)}(this,function(e,t,n,o,r,i,s,a,l,u,c,d,p,f,h,g,b,m,y,_,v,w,S,O){"use strict";function x(e){return e&&e.__esModule?e:{default:e}}var k=x(t),E=x(n),R=x(r),j=x(i),P=x(s),C=x(a),N=x(l),M=x(u),T=x(c),A=x(d),L=x(f),I=x(b),F=x(m),D=x(y),q=x(v),U=x(w),z=x(S);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function H(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=B(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B(t)?t:t+""}function V(e,t,n){return(t=H(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){return e&&t&&e===t}const $=["stop","station","favouriteStop","favouriteStation"],G=["favouriteVehicleRentalStation","bikestation"];function K(e){if(!e)return"";const t=e.split(":");return 0===t.length?"":`citybikes${t[0]}:bikestation:${t[1]}`}function J(e,t){const n=e.properties,o=t.properties;if("FutureRoute"===e.type&&"FutureRoute"===t.type){const e=n.origin,t=n.destination,r=o.origin,i=o.destination;return`${e.name}//${e.localadmin}//${t.name}//${t.localadmin}`===`${r.name}//${r.localadmin}//${i.name}//${i.localadmin}`}if("FutureRoute"===e.type||"FutureRoute"===t.type)return!1;if(G.includes(n.layer)&&G.includes(o.layer)){return(n.gid||K(n.labelId))===(o.gid||K(o.labelId))}if(n.gtfsId&&o.gtfsId)return n.gtfsId===o.gtfsId;if($.includes(n.layer)&&$.includes(o.layer)&&n.gid&&o.gid)return n.gid===o.gid;const r=e&&e.geometry?e.geometry.coordinates:void 0,i=t&&t.geometry?t.geometry.coordinates:void 0;return!!(r&&i&&Math.abs(r[0]-i[0])<1e-6&&Math.abs(r[1]-i[1])<1e-6&&(W(n.name,o.name)||W(n.label,o.label)||W(n.address,o.address)||W(n.address,o.label)||W(n.label,o.address)))}const Y=e=>N.default(e)?e.toLowerCase():"",X=e=>e.split(/(\p{L}+)/u),Q=e=>/^[0-9]+\p{L}+$/u.test(e),Z="back",ee="currentPosition",te="favouriteStop",ne="favouriteStation",oe="favouritePlace",re="favouriteRoute",ie="favouriteVehicleRentalStation",se="futureRoute",ae="station",le="selectFromMap",ue="ownLocations",ce="stop",de="bikestation",pe="carpark",fe="bikepark",he=({layer:e,type:t})=>"stop"===e||"favouriteStop"===e||"stop"===t||"favouriteStop"===t,ge=(e,t)=>{switch(e){case ee:return 1;case Z:return.9;case le:return.8;case ue:return.79;case ne:case oe:case te:case re:case ie:return.45;case se:return.44;case ae:return N.default(t)&&0===t.indexOf("gtfs")?.43:.42;case pe:case fe:case de:return.38;case ce:return.36;default:return.41}},be=(e,t,n="")=>{if(!Array.isArray(t)||!t.length)return t;const o=t=>N.default(t)&&e&&e.test(t),r=Y(n),i=o(r),s=M.default(t.filter(e=>e),[e=>i&&o(Y(e.properties.shortName))&&0===Y(e.properties.shortName).indexOf(r)?1:0,e=>{const{confidence:t,layer:n,source:o}=e.properties;if(0===r.length)return ge(n,o);if(!t)return ge(n,o)+((e,t)=>N.default(e)&&0!==e.length?["name","label","address","shortName"].map(e=>({name:e,value:t[e]})).filter(e=>N.default(e.value)&&e.value.length>0).map(t=>{let n=Y(t.value);return 0===n.indexOf(e)?("shortName"===t.name&&Q(n)&&([n]=X(n)),.5+e.length/n.length):.5*e.length/(e.length+1)}).reduce((e,t)=>t>e?t:e,0):0)(r,e.properties);switch(n){case ae:return t+(0===o.indexOf("gtfs")?.02:.01);case ce:case pe:case fe:return t-.05;case de:return t-.04;default:return t}},e=>{if(e.properties.shortName)return Q(e.properties.shortName)?X(e.properties.shortName)[0]:e.properties.shortName},e=>{if(e.properties.shortName)return Q(e.properties.shortName)?X(e.properties.shortName)[1]:e.properties.shortName},"properties.longName"],["desc","desc","asc","asc","asc"]);return T.default(s,J)},me=(e,t)=>null!=t&&-1!==e.lastIndexOf(t)?e.substring(0,e.lastIndexOf(t)-1):e;function ye(e,t,n){if("string"==typeof t&&t.length>0){const o=t.toLowerCase().trim(),r=o.includes(" ")||o.includes(",");return e.filter(e=>{let t=[];n.forEach(n=>{let o=A.default(e,n);r||"properties.label"!==n&&"address"!==n||!o||(o=o.split(","),o.length>2?o.splice(o.length-2,2):o.length>1&&o.splice(o.length-1,1),o=o.join(",")),o&&(t=r?t.concat(o.toLowerCase()):t.concat(o.toLowerCase().replace(/,/g," ").split(" ")))});for(let e=0;e<t.length;e++)if(0===t[e].indexOf(o))return!0;return!1})}return e}function _e(e,t){return function(){return e.apply(t,arguments)}}const{toString:ve}=Object.prototype,{getPrototypeOf:we}=Object,{iterator:Se,toStringTag:Oe}=Symbol,xe=(ke=Object.create(null),e=>{const t=ve.call(e);return ke[t]||(ke[t]=t.slice(8,-1).toLowerCase())});var ke;const Ee=e=>(e=e.toLowerCase(),t=>xe(t)===e),Re=e=>t=>typeof t===e,{isArray:je}=Array,Pe=Re("undefined");function Ce(e){return null!==e&&!Pe(e)&&null!==e.constructor&&!Pe(e.constructor)&&Te(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ne=Ee("ArrayBuffer");const Me=Re("string"),Te=Re("function"),Ae=Re("number"),Le=e=>null!==e&&"object"==typeof e,Ie=e=>{if("object"!==xe(e))return!1;const t=we(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Oe in e||Se in e)},Fe=Ee("Date"),De=Ee("File"),qe=Ee("Blob"),Ue=Ee("FileList");const ze="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Be=void 0!==ze.FormData?ze.FormData:void 0,He=Ee("URLSearchParams"),[Ve,We,$e,Ge]=["ReadableStream","Request","Response","Headers"].map(Ee);function Ke(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,r;if("object"!=typeof e&&(e=[e]),je(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{if(Ce(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let s;for(o=0;o<i;o++)s=r[o],t.call(null,e[s],s,e)}}function Je(e,t){if(Ce(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Xe=e=>!Pe(e)&&e!==Ye;const Qe=(Ze="undefined"!=typeof Uint8Array&&we(Uint8Array),e=>Ze&&e instanceof Ze);var Ze;const et=Ee("HTMLFormElement"),tt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:nt}=Object.prototype,ot=Ee("RegExp"),rt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ke(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)};const it=Ee("AsyncFunction"),st=(at="function"==typeof setImmediate,lt=Te(Ye.postMessage),at?setImmediate:lt?(ut=`axios@${Math.random()}`,ct=[],Ye.addEventListener("message",({source:e,data:t})=>{e===Ye&&t===ut&&ct.length&&ct.shift()()},!1),e=>{ct.push(e),Ye.postMessage(ut,"*")}):e=>setTimeout(e));var at,lt,ut,ct;const dt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ye):"undefined"!=typeof process&&process.nextTick||st;var pt={isArray:je,isArrayBuffer:Ne,isBuffer:Ce,isFormData:e=>{if(!e)return!1;if(Be&&e instanceof Be)return!0;const t=we(e);if(!t||t===Object.prototype)return!1;if(!Te(e.append))return!1;const n=xe(e);return"formdata"===n||"object"===n&&Te(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ne(e.buffer),t},isString:Me,isNumber:Ae,isBoolean:e=>!0===e||!1===e,isObject:Le,isPlainObject:Ie,isEmptyObject:e=>{if(!Le(e)||Ce(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ve,isRequest:We,isResponse:$e,isHeaders:Ge,isUndefined:Pe,isDate:Fe,isFile:De,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:qe,isRegExp:ot,isFunction:Te,isStream:e=>Le(e)&&Te(e.pipe),isURLSearchParams:He,isTypedArray:Qe,isFileList:Ue,forEach:Ke,merge:function e(...t){const{caseless:n,skipUndefined:o}=Xe(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=n&&"string"==typeof i&&Je(r,i)||i,a=tt(r,s)?r[s]:void 0;Ie(a)&&Ie(t)?r[s]=e(a,t):Ie(t)?r[s]=e({},t):je(t)?r[s]=t.slice():o&&Pe(t)||(r[s]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||Ce(n))continue;if(Ke(n,i),"object"!=typeof n||je(n))continue;const o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){const t=o[e];nt.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(Ke(t,(t,o)=>{n&&Te(t)?Object.defineProperty(e,o,{__proto__:null,value:_e(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,s;const a={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],o&&!o(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&we(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:xe,kindOfTest:Ee,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(je(e))return e;let t=e.length;if(!Ae(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Se]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:et,hasOwnProperty:tt,hasOwnProp:tt,reduceDescriptors:rt,freezeMethods:e=>{rt(e,(t,n)=>{if(Te(e)&&["arguments","caller","callee"].includes(n))return!1;const o=e[n];Te(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach(e=>{n[e]=!0})};return je(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Je,global:Ye,isContextDefined:Xe,isSpecCompliantForm:function(e){return!!(e&&Te(e.append)&&"FormData"===e[Oe]&&e[Se])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(Le(e)){if(t.has(e))return;if(Ce(e))return e;if(!("toJSON"in e)){t.add(e);const o=je(e)?[]:{};return Ke(e,(e,t)=>{const r=n(e);!Pe(r)&&(o[t]=r)}),t.delete(e),o}}return e};return n(e)},isAsyncFn:it,isThenable:e=>e&&(Le(e)||Te(e))&&Te(e.then)&&Te(e.catch),setImmediate:st,asap:dt,isIterable:e=>null!=e&&Te(e[Se])};const ft=pt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ht=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),gt=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function bt(e,t){return pt.isArray(e)?e.map(e=>bt(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function mt(e){const t=Object.create(null);return pt.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>bt(e,gt))(e)}),t}const yt=Symbol("internals");function _t(e){return e&&String(e).trim().toLowerCase()}function vt(e){return!1===e||null==e?e:pt.isArray(e)?e.map(vt):(e=>bt(e,ht))(String(e))}function wt(e,t,n,o,r){return pt.isFunction(o)?o.call(this,t,n):(r&&(t=n),pt.isString(t)?pt.isString(o)?-1!==t.indexOf(o):pt.isRegExp(o)?o.test(t):void 0:void 0)}let St=class{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=_t(t);if(!r)return;const i=pt.findKey(o,r);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=vt(e))}const i=(e,t)=>pt.forEach(e,(e,n)=>r(e,n,t));if(pt.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(pt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,o,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&ft[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(pt.isObject(e)&&pt.isIterable(e)){let n,o,r={};for(const t of e){if(!pt.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?pt.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=_t(e)){const n=pt.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(pt.isFunction(t))return t.call(this,e,n);if(pt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=_t(e)){const n=pt.findKey(this,e);return!(!n||void 0===this[n]||t&&!wt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function r(e){if(e=_t(e)){const r=pt.findKey(n,e);!r||t&&!wt(0,n[r],r,t)||(delete n[r],o=!0)}}return pt.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!wt(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return pt.forEach(this,(o,r)=>{const i=pt.findKey(n,r);if(i)return t[i]=vt(o),void delete t[r];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();s!==r&&delete t[r],t[s]=vt(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return pt.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&pt.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[yt]=this[yt]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=_t(e);t[o]||(!function(e,t){const n=pt.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{__proto__:null,value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[o]=!0)}return pt.isArray(e)?e.forEach(o):o(e),this}};St.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pt.reduceDescriptors(St.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),pt.freezeMethods(St);function Ot(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),o=[],r=e=>{if(null===e||"object"!=typeof e)return e;if(pt.isBuffer(e))return e;if(-1!==o.indexOf(e))return;let t;if(e instanceof St&&(e=e.toJSON()),o.push(e),pt.isArray(e))t=[],e.forEach((e,n)=>{const o=r(e);pt.isUndefined(o)||(t[n]=o)});else{if(!pt.isPlainObject(e)&&function(e){if(pt.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(pt.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return o.pop(),e;t=Object.create(null);for(const[o,i]of Object.entries(e)){const e=n.has(o.toLowerCase())?"[REDACTED ****]":r(i);pt.isUndefined(e)||(t[o]=e)}}return o.pop(),t};return r(e)}let xt=class e extends Error{static from(t,n,o,r,i,s){const a=new e(t.message,n||t.code,o,r,i);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){const e=this.config,t=e&&pt.hasOwnProp(e,"redact")?e.redact:void 0,n=pt.isArray(t)&&t.length>0?Ot(e,t):pt.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};xt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",xt.ERR_BAD_OPTION="ERR_BAD_OPTION",xt.ECONNABORTED="ECONNABORTED",xt.ETIMEDOUT="ETIMEDOUT",xt.ECONNREFUSED="ECONNREFUSED",xt.ERR_NETWORK="ERR_NETWORK",xt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",xt.ERR_DEPRECATED="ERR_DEPRECATED",xt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",xt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",xt.ERR_CANCELED="ERR_CANCELED",xt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",xt.ERR_INVALID_URL="ERR_INVALID_URL",xt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function kt(e){return pt.isPlainObject(e)||pt.isArray(e)}function Et(e){return pt.endsWith(e,"[]")?e.slice(0,-2):e}function Rt(e,t,n){return e?e.concat(t).map(function(e,t){return e=Et(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const jt=pt.toFlatObject(pt,{},null,function(e){return/^is[A-Z]/.test(e)});function Pt(e,t,n){if(!pt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=pt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!pt.isUndefined(t[e])})).metaTokens,r=n.visitor||d,i=n.dots,s=n.indexes,a=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,u=a&&pt.isSpecCompliantForm(t);if(!pt.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(pt.isDate(e))return e.toISOString();if(pt.isBoolean(e))return e.toString();if(!u&&pt.isBlob(e))throw new xt("Blob is not supported. Use a Buffer instead.");return pt.isArrayBuffer(e)||pt.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,n,r){let a=e;if(pt.isReactNative(t)&&pt.isReactNativeBlob(e))return t.append(Rt(r,n,i),c(e)),!1;if(e&&!r&&"object"==typeof e)if(pt.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(pt.isArray(e)&&function(e){return pt.isArray(e)&&!e.some(kt)}(e)||(pt.isFileList(e)||pt.endsWith(n,"[]"))&&(a=pt.toArray(e)))return n=Et(n),a.forEach(function(e,o){!pt.isUndefined(e)&&null!==e&&t.append(!0===s?Rt([n],o,i):null===s?n:n+"[]",c(e))}),!1;return!!kt(e)||(t.append(Rt(r,n,i),c(e)),!1)}const p=[],f=Object.assign(jt,{defaultVisitor:d,convertValue:c,isVisitable:kt});if(!pt.isObject(e))throw new TypeError("data must be an object");return function e(n,o,i=0){if(!pt.isUndefined(n)){if(i>l)throw new xt("Object is too deeply nested ("+i+" levels). Max depth: "+l,xt.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(n))throw new Error("Circular reference detected in "+o.join("."));p.push(n),pt.forEach(n,function(n,s){!0===(!(pt.isUndefined(n)||null===n)&&r.call(t,n,pt.isString(s)?s.trim():s,o,f))&&e(n,o?o.concat(s):[s],i+1)}),p.pop()}}(e),t}function Ct(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Nt(e,t){this._pairs=[],e&&Pt(e,this,t)}const Mt=Nt.prototype;function Tt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function At(e,t,n){if(!t)return e;const o=n&&n.encode||Tt,r=pt.isFunction(n)?{serialize:n}:n,i=r&&r.serialize;let s;if(s=i?i(t,r):pt.isURLSearchParams(t)?t.toString():new Nt(t,r).toString(o),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Mt.append=function(e,t){this._pairs.push([e,t])},Mt.toString=function(e){const t=e?function(t){return e.call(this,t,Ct)}:Ct;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Lt{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pt.forEach(this.handlers,function(t){null!==t&&e(t)})}}var It={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},Ft={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Nt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Dt="undefined"!=typeof window&&"undefined"!=typeof document,qt="object"==typeof navigator&&navigator||void 0,Ut=Dt&&(!qt||["ReactNative","NativeScript","NS"].indexOf(qt.product)<0),zt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Bt=Dt&&window.location.href||"http://localhost";var Ht={...Object.freeze({__proto__:null,hasBrowserEnv:Dt,hasStandardBrowserEnv:Ut,hasStandardBrowserWebWorkerEnv:zt,navigator:qt,origin:Bt}),...Ft};function Vt(e){function t(e,n,o,r){let i=e[r++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=r>=e.length;if(i=!i&&pt.isArray(o)?o.length:i,a)return pt.hasOwnProp(o,i)?o[i]=pt.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n,!s;pt.hasOwnProp(o,i)&&pt.isObject(o[i])||(o[i]=[]);return t(e,n,o[i],r)&&pt.isArray(o[i])&&(o[i]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++)i=n[o],t[i]=e[i];return t}(o[i])),!s}if(pt.isFormData(e)&&pt.isFunction(e.entries)){const n={};return pt.forEachEntry(e,(e,o)=>{t(function(e){return pt.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}const Wt=(e,t)=>null!=e&&pt.hasOwnProp(e,t)?e[t]:void 0;const $t={transitional:It,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=pt.isObject(e);r&&pt.isHTMLForm(e)&&(e=new FormData(e));if(pt.isFormData(e))return o?JSON.stringify(Vt(e)):e;if(pt.isArrayBuffer(e)||pt.isBuffer(e)||pt.isStream(e)||pt.isFile(e)||pt.isBlob(e)||pt.isReadableStream(e))return e;if(pt.isArrayBufferView(e))return e.buffer;if(pt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(r){const t=Wt(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Pt(e,new Ht.classes.URLSearchParams,{visitor:function(e,t,n,o){return Ht.isNode&&pt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=pt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Wt(this,"env"),o=n&&n.FormData;return Pt(i?{"files[]":e}:e,o&&new o,t)}}return r||o?(t.setContentType("application/json",!1),function(e,t,n){if(pt.isString(e))try{return(t||JSON.parse)(e),pt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Wt(this,"transitional")||$t.transitional,n=t&&t.forcedJSONParsing,o=Wt(this,"responseType"),r="json"===o;if(pt.isResponse(e)||pt.isReadableStream(e))return e;if(e&&pt.isString(e)&&(n&&!o||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,Wt(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw xt.from(e,xt.ERR_BAD_RESPONSE,this,null,Wt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Gt(e,t){const n=this||$t,o=t||n,r=St.from(o.headers);let i=o.data;return pt.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Kt(e){return!(!e||!e.__CANCEL__)}pt.forEach(["delete","get","head","post","put","patch","query"],e=>{$t.headers[e]={}});let Jt=class extends xt{constructor(e,t,n){super(null==e?"canceled":e,xt.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Yt(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new xt("Request failed with status code "+n.status,n.status>=400&&n.status<500?xt.ERR_BAD_REQUEST:xt.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Xt=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=o[s];r||(r=l),n[i]=a,o[i]=l;let c=s,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-r<t)return;const p=u&&l-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,o,r=0,i=1e3/t;const s=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-r;a>=i?s(e,t):(n=e,o||(o=setTimeout(()=>{o=null,s(n)},i-a)))},()=>n&&s(n)]}(n=>{if(!n||"number"!=typeof n.loaded)return;const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=null!=s?Math.min(i,s):i,l=Math.max(0,a-o),u=r(l);o=Math.max(o,a);e({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s?(s-a)/u:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},Qt=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Zt=e=>(...t)=>pt.asap(()=>e(...t));var en=Ht.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ht.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ht.origin),Ht.navigator&&/(msie|trident)/i.test(Ht.navigator.userAgent)):()=>!0,tn=Ht.hasStandardBrowserEnv?{write(e,t,n,o,r,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];pt.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),pt.isString(o)&&a.push(`path=${o}`),pt.isString(r)&&a.push(`domain=${r}`),!0===i&&a.push("secure"),pt.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)return decodeURIComponent(o.slice(r+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function nn(e,t,n){let o=!("string"==typeof(r=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));var r;return e&&(o||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const on=e=>e instanceof St?{...e}:e;function rn(e,t){t=t||{};const n=Object.create(null);function o(e,t,n,o){return pt.isPlainObject(e)&&pt.isPlainObject(t)?pt.merge.call({caseless:o},e,t):pt.isPlainObject(t)?pt.merge({},t):pt.isArray(t)?t.slice():t}function r(e,t,n,r){return pt.isUndefined(t)?pt.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function i(e,t){if(!pt.isUndefined(t))return o(void 0,t)}function s(e,t){return pt.isUndefined(t)?pt.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function a(n,r,i){return pt.hasOwnProp(t,i)?o(n,r):pt.hasOwnProp(e,i)?o(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>r(on(e),on(t),0,!0)};return pt.forEach(Object.keys({...e,...t}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;const i=pt.hasOwnProp(l,o)?l[o]:r,s=i(pt.hasOwnProp(e,o)?e[o]:void 0,pt.hasOwnProp(t,o)?t[o]:void 0,o);pt.isUndefined(s)&&i!==a||(n[o]=s)}),n}const sn=["content-type","content-length"];function an(e){const t=rn({},e),n=e=>pt.hasOwnProp(t,e)?t[e]:void 0,o=n("data");let r=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");var p;if(t.headers=a=St.from(a),t.url=At(nn(u,d,c),n("params"),n("paramsSerializer")),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?(p=l.password,encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),pt.isFormData(o)&&(Ht.hasStandardBrowserEnv||Ht.hasStandardBrowserWebWorkerEnv||pt.isReactNative(o)?a.setContentType(void 0):pt.isFunction(o.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{sn.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(a,o.getHeaders(),n("formDataHeaderPolicy"))),Ht.hasStandardBrowserEnv){pt.isFunction(r)&&(r=r(t));if(!0===r||null==r&&en(t.url)){const e=i&&s&&tn.read(s);e&&a.set(i,e)}}return t}var ln="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const o=an(e);let r=o.data;const i=St.from(o.headers).normalize();let s,a,l,u,c,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=o;function h(){u&&u(),c&&c(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function b(){if(!g)return;const o=St.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Yt(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:o,config:e,request:g}),g=null}g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout,"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(b)},g.onabort=function(){g&&(n(new xt("Request aborted",xt.ECONNABORTED,e,g)),h(),g=null)},g.onerror=function(t){const o=t&&t.message?t.message:"Network Error",r=new xt(o,xt.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||It;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new xt(t,r.clarifyTimeoutError?xt.ETIMEDOUT:xt.ECONNABORTED,e,g)),h(),g=null},void 0===r&&i.setContentType(null),"setRequestHeader"in g&&pt.forEach(mt(i),function(e,t){g.setRequestHeader(t,e)}),pt.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),d&&"json"!==d&&(g.responseType=o.responseType),f&&([l,c]=Xt(f,!0),g.addEventListener("progress",l)),p&&g.upload&&([a,u]=Xt(p),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(o.cancelToken||o.signal)&&(s=t=>{g&&(n(!t||t.type?new Jt(null,e,g):t),g.abort(),h(),g=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const m=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(o.url);!m||Ht.protocols.includes(m)?g.send(r||null):n(new xt("Unsupported protocol "+m+":",xt.ERR_BAD_REQUEST,e))})};const un=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let o=!1;const r=function(e){if(!o){o=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof xt?t:new Jt(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,r(new xt(`timeout of ${t}ms exceeded`,xt.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:a}=n;return a.unsubscribe=()=>pt.asap(s),a},cn=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},dn=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},pn=(e,t,n,o)=>{const r=async function*(e,t){for await(const n of dn(e))yield*cn(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return a(),void e.close();let i=o.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw a(e),e}},cancel:e=>(a(e),r.return())},{highWaterMark:2})};const fn="1.17.0",{isFunction:hn}=pt,gn=e=>{if(!pt.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},bn=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},mn=e=>{const t=void 0!==pt.global&&null!==pt.global?pt.global:globalThis,{ReadableStream:n,TextEncoder:o}=t;e=pt.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:i,Response:s}=e,a=r?hn(r):"function"==typeof fetch,l=hn(i),u=hn(s);if(!a)return!1;const c=a&&hn(n),d=a&&("function"==typeof o?(p=new o,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const f=l&&c&&bn(()=>{let e=!1;const t=new i(Ht.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),h=u&&c&&bn(()=>pt.isReadableStream(new s("").body)),g={stream:h&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new xt(`Response type '${e}' is not supported`,xt.ERR_NOT_SUPPORT,n)})});const b=async(e,t)=>{const n=pt.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(pt.isBlob(e))return e.size;if(pt.isSpecCompliantForm(e)){const t=new i(Ht.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return pt.isArrayBufferView(e)||pt.isArrayBuffer(e)?e.byteLength:(pt.isURLSearchParams(e)&&(e+=""),pt.isString(e)?(await d(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:a,signal:u,cancelToken:c,timeout:d,onDownloadProgress:p,onUploadProgress:m,responseType:y,headers:_,withCredentials:v="same-origin",fetchOptions:w,maxContentLength:S,maxBodyLength:O}=an(e);const x=pt.isNumber(S)&&S>-1,k=pt.isNumber(O)&&O>-1;let E=r||fetch;y=y?(y+"").toLowerCase():"text";let R=un([u,c&&c.toAbortSignal()],d),j=null;const P=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let C;try{let r;const u=(M="auth",pt.hasOwnProp(e,M)?e[M]:void 0);if(u){const e=u.username||"";r={username:e,password:u.password||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){const e=new URL(t,Ht.origin);if(!r&&(e.username||e.password)){const t=gn(e.username);r={username:t,password:gn(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(r&&(_.delete("authorization"),_.set("Authorization","Basic "+btoa((N=(r.username||"")+":"+(r.password||""),encodeURIComponent(N).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),x&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length;const t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){const t=o.charCodeAt(n+1),r=o.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102)&&(e-=2,n+=2)}let n=0,r=t-1;const i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));r>=0&&(61===o.charCodeAt(r)?(n++,r--):i(r)&&(n++,r-=3)),1===n&&r>=0&&(61===o.charCodeAt(r)||i(r))&&n++;const s=3*Math.floor(e/4)-(n||0);return s>0?s:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(o,"utf8");let r=0;for(let e=0,t=o.length;e<t;e++){const n=o.charCodeAt(e);if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=o.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(t);if(n>S)throw new xt("maxContentLength size of "+S+" exceeded",xt.ERR_BAD_RESPONSE,e,j)}if(k&&"get"!==n&&"head"!==n){const t=await b(_,a);if("number"==typeof t&&isFinite(t)&&t>O)throw new xt("Request body larger than maxBodyLength limit",xt.ERR_BAD_REQUEST,e,j)}if(m&&f&&"get"!==n&&"head"!==n&&0!==(C=await b(_,a))){let e,n=new i(t,{method:"POST",body:a,duplex:"half"});if(pt.isFormData(a)&&(e=n.headers.get("content-type"))&&_.setContentType(e),n.body){const[e,t]=Qt(C,Xt(Zt(m)));a=pn(n.body,65536,e,t)}}pt.isString(v)||(v=v?"include":"omit");const c=l&&"credentials"in i.prototype;if(pt.isFormData(a)){const e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/"+fn,!1);const d={...w,signal:R,method:n.toUpperCase(),headers:mt(_.normalize()),body:a,duplex:"half",credentials:c?v:void 0};j=l&&new i(t,d);let T=await(l?E(j,w):E(t,d));if(x){const t=pt.toFiniteNumber(T.headers.get("content-length"));if(null!=t&&t>S)throw new xt("maxContentLength size of "+S+" exceeded",xt.ERR_BAD_RESPONSE,e,j)}const A=h&&("stream"===y||"response"===y);if(h&&T.body&&(p||x||A&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=T[e]});const n=pt.toFiniteNumber(T.headers.get("content-length")),[o,r]=p&&Qt(n,Xt(Zt(p),!0))||[];let i=0;const a=t=>{if(x&&(i=t,i>S))throw new xt("maxContentLength size of "+S+" exceeded",xt.ERR_BAD_RESPONSE,e,j);o&&o(t)};T=new s(pn(T.body,65536,a,()=>{r&&r(),P&&P()}),t)}y=y||"text";let L=await g[pt.findKey(g,y)||"text"](T,e);if(x&&!h&&!A){let t;if(null!=L&&("number"==typeof L.byteLength?t=L.byteLength:"number"==typeof L.size?t=L.size:"string"==typeof L&&(t="function"==typeof o?(new o).encode(L).byteLength:L.length)),"number"==typeof t&&t>S)throw new xt("maxContentLength size of "+S+" exceeded",xt.ERR_BAD_RESPONSE,e,j)}return!A&&P&&P(),await new Promise((t,n)=>{Yt(t,n,{data:L,headers:St.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:j})})}catch(t){if(P&&P(),R&&R.aborted&&R.reason instanceof xt){const n=R.reason;throw n.config=e,j&&(n.request=j),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new xt("Network Error",xt.ERR_NETWORK,e,j,t&&t.response),{cause:t.cause||t});throw xt.from(t,t&&t.code,e,j,t&&t.response)}var N,M}},yn=new Map,_n=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:r}=t,i=[o,r,n];let s,a,l=i.length,u=yn;for(;l--;)s=i[l],a=u.get(s),void 0===a&&u.set(s,a=l?new Map:mn(t)),u=a;return a};_n();const vn={http:null,xhr:ln,fetch:{get:_n}};pt.forEach(vn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const wn=e=>`- ${e}`,Sn=e=>pt.isFunction(e)||null===e||!1===e;var On={getAdapter:function(e,t){e=pt.isArray(e)?e:[e];const{length:n}=e;let o,r;const i={};for(let s=0;s<n;s++){let n;if(o=e[s],r=o,!Sn(o)&&(r=vn[(n=String(o)).toLowerCase()],void 0===r))throw new xt(`Unknown adapter '${n}'`);if(r&&(pt.isFunction(r)||(r=r.get(t))))break;i[n||"#"+s]=r}if(!r){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(wn).join("\n"):" "+wn(e[0]):"as no adapter specified";throw new xt("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:vn};function xn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Jt(null,e)}function kn(e){xn(e),e.headers=St.from(e.headers),e.data=Gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return On.getAdapter(e.adapter||$t.adapter,e)(e).then(function(t){xn(e),e.response=t;try{t.data=Gt.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=St.from(t.headers),t},function(t){if(!Kt(t)&&(xn(e),t&&t.response)){e.response=t.response;try{t.response.data=Gt.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=St.from(t.response.headers)}return Promise.reject(t)})}const En={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{En[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Rn={};En.transitional=function(e,t,n){function o(e,t){return"[Axios v"+fn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new xt(o(r," has been removed"+(t?" in "+t:"")),xt.ERR_DEPRECATED);return t&&!Rn[r]&&(Rn[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},En.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var jn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new xt("options must be an object",xt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new xt("option "+i+" must be "+n,xt.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new xt("Unknown option "+i,xt.ERR_BAD_OPTION)}},validators:En};const Pn=jn.validators;let Cn=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Lt,response:new Lt}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),o=-1===t?-1:n.indexOf("\n",t+1),r=-1===o?"":n.slice(o+1);String(e.stack).endsWith(r)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=rn(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&jn.assertOptions(n,{silentJSONParsing:Pn.transitional(Pn.boolean),forcedJSONParsing:Pn.transitional(Pn.boolean),clarifyTimeoutError:Pn.transitional(Pn.boolean),legacyInterceptorReqResOrdering:Pn.transitional(Pn.boolean),advertiseZstdAcceptEncoding:Pn.transitional(Pn.boolean)},!1),null!=o&&(pt.isFunction(o)?t.paramsSerializer={serialize:o}:jn.assertOptions(o,{encode:Pn.function,serialize:Pn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),jn.assertOptions(t,{baseUrl:Pn.spelling("baseURL"),withXsrfToken:Pn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&pt.merge(r.common,r[t.method]);r&&pt.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete r[e]}),t.headers=St.concat(i,r);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||It;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!a){const e=[kn.bind(this),void 0];for(e.unshift(...s),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=s.length;let p=t;for(;d<c;){const e=s[d++],t=s[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=kn.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return At(nn((e=rn(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};pt.forEach(["delete","get","head","options"],function(e){Cn.prototype[e]=function(t,n){return this.request(rn(n||{},{method:e,url:t,data:(n||{}).data}))}}),pt.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(rn(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Cn.prototype[e]=t(),"query"!==e&&(Cn.prototype[e+"Form"]=t(!0))});const Nn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Nn).forEach(([e,t])=>{Nn[t]=e});const Mn=function e(t){const n=new Cn(t),o=_e(Cn.prototype.request,n);return pt.extend(o,Cn.prototype,n,{allOwnKeys:!0}),pt.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(rn(t,n))},o}($t);Mn.Axios=Cn,Mn.CanceledError=Jt,Mn.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new Jt(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Mn.isCancel=Kt,Mn.VERSION=fn,Mn.toFormData=Pt,Mn.AxiosError=xt,Mn.Cancel=Mn.CanceledError,Mn.all=function(e){return Promise.all(e)},Mn.spread=function(e){return function(t){return e.apply(null,t)}},Mn.isAxiosError=function(e){return pt.isObject(e)&&!0===e.isAxiosError},Mn.mergeConfig=rn,Mn.AxiosHeaders=St,Mn.formToJSON=e=>Vt(pt.isHTMLForm(e)?new FormData(e):e),Mn.getAdapter=On.getAdapter,Mn.HttpStatusCode=Nn,Mn.default=Mn;const{Axios:Tn,AxiosError:An,CanceledError:Ln,isCancel:In,CancelToken:Fn,VERSION:Dn,all:qn,Cancel:Un,isAxiosError:zn,spread:Bn,toFormData:Hn,AxiosHeaders:Vn,HttpStatusCode:Wn,formToJSON:$n,getAdapter:Gn,mergeConfig:Kn,create:Jn}=Mn;function Yn(e,t){return e?Object.keys(e).map(n=>{const o=t||n,r=e[n];return"object"==typeof r?Yn(r,o):`${encodeURIComponent(o)}=${encodeURIComponent(r)}`}).join("&"):""}function Xn(e,t){return Mn.get(encodeURI(e)+(t?(-1===e.search(/\?/)?"?":"&")+Yn(t):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then(e=>e.data)}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eo(e,t,n,o,r,i,s,a){const l=e?e.trim():null;if(null==l||l.length<1||s&&!s.test(l))return Promise.resolve([]);const u=i||"https://api.digitransit.fi/geocoding/v1/search";let c=Zn(Zn(Zn({text:l},t),o),{},{lang:n});if(r&&(c=Zn(Zn({},c),{},{sources:r})),a){const e=a.toString();c=Zn(Zn({},c),{},{layers:e})}return Xn(u,c).then(e=>e.features)}function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oo(e,t){if(!e||e.length<1)return Promise.resolve([]);let n="";const o=e.map(e=>{const t="stop"===e.type?"stop":"station";let o=`gtfs${e.gtfsId.split(":")[0].toLowerCase()}:${t}:GTFS:${e.gtfsId}`;return e.code&&(o+=`#${e.code}`),n+=`${o},`,no(no({},e),{},{gid:o})}).reduce(function(e,t){return e[t.gid]=t,e},{});return Xn(t,{ids:n.slice(0,-1)}).then(e=>e.features.map(e=>({type:"FavouriteStop",properties:{addendum:e.properties.addendum,gid:o[e.properties.gid].gid,code:o[e.properties.gid].code,gtfsId:o[e.properties.gid].gtfsId,lastUpdated:o[e.properties.gid].lastUpdated,favouriteId:o[e.properties.gid].favouriteId,address:e.properties.label,layer:he(e.properties)?"favouriteStop":"favouriteStation"},geometry:e.geometry})))}function ro(e,t,n){let o=ye(e,t,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(o=o.filter(e=>!n.includes(e.properties.layer))),Promise.resolve(C.default(o,10).map(e=>{const t=no(no({},e),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete t.properties.confidence,t}))}const io=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],so=["venue","address","street"],ao=["carpark","bikepark"],lo=["stop","station"];const uo=j.default(function(e,t,n,o,r,i,{input:s},a,l,u){const{getPositions:c,getFavouriteLocations:d,getOldSearches:p,getFavouriteStops:f,parkingAreaSources:h,getLanguage:g,getStopAndStationsQuery:b,getFavouriteVehicleRentalStationsQuery:m,getFavouriteVehicleRentalStations:y,getFavouriteRoutesQuery:_,getFavouriteRoutes:v,getRoutesQuery:w,context:S,isPeliasLocationAware:O,minimalRegexp:x,lineRegexp:k,URL_PELIAS:E,URL_PELIAS_PLACE:R,feedIDs:j,geocodingSearchParams:N,geocodingSources:M,getFutureRoutes:T,cityBikeNetworks:A}=o,L=!e||0===e.length,I=!t||0===t.length,F=c(S),D=[],q={type:"all",term:s,results:[]},U=g(S),z=O&&u?.lat&&u?.lon?{"focus.point.lat":u.lat.toFixed(3),"focus.point.lon":u.lon.toFixed(3)}:{},B=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==F.status&&D.push(function(e,t){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:t.address,lat:t.lat,lon:t.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:t.address,lat:t.lat,lon:t.lon},geometry:{type:"Point",coordinates:[t.lon,t.lat]}}]):Promise.resolve([])}(s,F)),(L||e.includes("MapPosition"))&&D.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(s)),e.includes("FutureRoutes")){const e=T(S);D.push(C.default(e,3))}if(e.includes("SelectFromOwnLocations")&&function(e){const t=e.getFavouriteLocations(e.context);if(t?.length>0)return!0;if("function"==typeof e.getHasOtpLocationFavourites)return!!e.getHasOtpLocationFavourites(e.context);const n=e.getFavouriteVehicleRentalStations(e.context);if(n?.length>0)return!0;const o=e.getFavouriteStops(e.context);return o?.length>0}(o)&&D.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(s)),L||e.includes("Locations")){const n=N;if(t.includes("Favourite")){const e=d(S);D.push(function(e,t){return Promise.resolve(ye(e,t,["address","name"]).map(e=>({type:"FavouritePlace",properties:no(no({},e),{},{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}})))}(e,s)),t.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(I||t.includes("Datasource")){const t=["venue","address","street"];e.includes("Stations")&&t.push("station"),D.push(eo(s,n,U,z,M.join(","),E,x,t))}if(I||t.includes("History")){const e=p("endpoint"),t=["bikestation"];t.push(...lo),t.push(...io),t.push(...ao),D.push(ro(e,s,t))}}if(L||e.includes("ParkingAreas")){if(I||t.includes("Datasource")){const e=N;i&&10!==i&&(e.size=i);const t=["carpark","bikepark"],n=h?h.join(","):null;D.push(eo(s,e,U,z,n,E,x,t).then(e=>r?r(e,B):e))}if(I||t.includes("History")){const e=p(),t=["bikestation"];t.push(...lo),t.push(...io),t.push(...so),D.push(ro(e,s,t))}}const H=e.includes("Stops"),V=e.includes("Stations");if(L||H||V){if(t.includes("Favourite")){const e=f(S);let t;t=e.every(e=>"station"===e.type)?oo(e,R).then(e=>r?r(e,B):e):b(e).then(e=>oo(e,R)).then(e=>r?r(e,B):e),D.push(function(e,t,n,o){return e.then(e=>ye(e.filter(e=>"stop"===e.type?n:o),t,["properties.name","properties.name","properties.address"]))}(t,s,H,V))}if(I||t.includes("Datasource")){const t=[];H&&t.push("stop"),V&&t.push("station");const n=i&&10!==i?{size:i}:{};N&&N["boundary.country"]&&(n["boundary.country"]=N["boundary.country"]),(L||e.includes("Locations"))&&(n.dedupestops=1);const o=j.map(e=>`gtfs${e}`).join(",");D.push(eo(s,n,U,z,o,E,x,t).then(e=>r?r(e,B):e))}if(I||t.includes("History")){const e=p().filter(e=>!e.properties.gid||e.properties.gid.includes("GTFS:")),t=["bikestation"];t.push(...io),t.push(...so),t.push(...ao),H||t.push("stop"),V||t.push("station"),n?D.push(ro(e,s,t).then(e=>r?r(e,B):e)):D.push(ro(e,s,t))}}if(L||e.includes("Routes")){if(t.includes("Favourite")){const e=v(S);D.push(_(e,s,B,l).then(e=>r?r(e,B,"Routes"):e))}if(D.push(w(s,j,n,l).then(e=>r?r(e,B,"Routes"):e)),I||t.includes("History")){const e=p(),t=["bikestation"];n&&t.push(...io.filter(e=>!(e===n))),t.push(...lo),t.push(...so),t.push(...ao),D.push(ro(e,s,t).then(e=>r?r(e,B,"Routes"):e))}}if(L||e.includes("VehicleRentalStations")){if(t.includes("Favourite")){const e=y(S);D.push(m(e,s))}if(I||t.includes("Datasource")){const e=["bikestation"],t=i&&10!==i?{size:i}:{};D.push(eo(s,t,U,z,A.join(","),E,x,e).then(e=>r?r(e,B,"VehicleRentalStations"):e))}if(I||t.includes("History")){const e=p(),t=[...lo];t.push(...io),t.push(...so),t.push(...ao),D.push(ro(e,s,t))}}Promise.all(D).then(P.default).then(e=>{q.results=e}).catch(e=>{q.error=e}).then(()=>{a(no(no({},q),{},{results:be(k,q.results,s)}))})},300,{leading:!0}),co=h.createInstance({fallbackLng:"fi",resources:{de:{translation:{"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}}",address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft",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",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung","give-destination":"Ziel eingeben.","give-origin":"Start eingeben.",loading:"Laden...","minute-short":"min",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",place:"Ort",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","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-button-label":"Suche","search-current-suggestion":"Aktuelle Auswahl: {{selection}}","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","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",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",street:"Straße",subway:"U-Bahn","today-at":"Heute um","tomorrow-at":"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?"}},en:{translation:{"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}}",address:"Address","address-place-or-business":"Address, place or business",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",favourite:"Favourite",ferry:"Ferry","future-route":"Future route","give-destination":"Enter your destination","give-origin":"Enter your origin.",loading:"Loading...","minute-short":"m",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",place:"Location",platform:"Platform",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","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-button-label":"Search","search-current-suggestion":"Current selection: {{selection}}","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","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bikepark":"Search bike parks","stop-near-you-bus":"Search bus routes or stops","stop-near-you-carpark":"Search car parks","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",street:"Street",subway:"Metro","today-at":"today at","tomorrow-at":"tomorrow at",track:"Track",tram:"Tram","use-own-position":"Use current location",venue:"Venue","via-point":"Via point",where:"Where to?"}},fi:{translation:{"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",address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",bikepark:"Liityntäpysäköinti",bikerentalstation:"Pyöräasema",bus:"bussi",cancel:"Peruuta",carpark:"Liityntäpysäköinti","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-destination":"Määränpää","give-origin":"Lähtöpaikka",loading:"Ladataan...","minute-short":"min",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",place:"Paikka",platform:"Laituri",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","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-button-label":"Hae","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","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-position":"Paikanna","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bikepark":"Hae pyöräparkkia","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-carpark":"Hae autoparkkia","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",street:"Katu",subway:"Metro","today-at":"tänään klo","tomorrow-at":"huomenna klo",track:"Raide",tram:"Raitiovaunu","use-own-position":"Käytä nykyistä sijaintia",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?"}},pl:{translation:{"add-via-button-label":"Dodaj punkt pośredni","add-via-duration-button-label":"Wybierz czas postoju dla punktu {{index}}","add-via-duration-button-label-close":"Zamknij wybornik czasu postoju w punkcie {{index}}","add-via-duration-button-label-open":"Otwórz wybornik czasu postoju w punkcie {{index}}",address:"Adres","address-place-or-business":"Adres, miejsce lub firma",airplane:"Lot",arrival:"Przyjazd",back:"Wróć",bikepark:"Parkuj i Jedź dla rowerów",bikerentalstation:"Stacja rowerowa",bus:"autobus",cancel:"Anuluj",carpark:"Parkuj i Jedź","clear-button-label":"Wyczyść","clear-search-history":"Wyczyść historię wyszukiwania",currentposition:"Obecne położenie",delete:"Usuń","delete-old-searches-header":"Czy na pewno chcesz wyczyścić historię wyszukiwania?",departure:"Odjazd",destination:"Cel",favourite:"Ulubione",ferry:"Prom","future-route":"Przyszła trasa","give-destination":"Wprowadź swój cel","give-origin":"Wprowadź swój punkt początkowy.",loading:"Ładowanie…","minute-short":"min.",origin:"Początek","origin-stop-near-you":"Początek",ownlocations:"Własne miejsca",place:"Miejsce",platform:"Peron",rail:"Pociąg",required:"wymagane pole",search:"Szukaj","search-address-or-place":"Szukaj po adresie lub nazwie miejsca","search-autosuggest-label":"Miejsce, lokalizacja i przystanek.","search-autosuggest-label-instructions-desktop":"Nawiguj po liście używając strzałek i wybieraj klawiszem Enter.","search-autosuggest-label-instructions-mobile":"Wprowadź lokalizację i nawiguj po liście gestami przesuwania.","search-autosuggest-label-move-to-destination":"Po wybraniu lokalizacji początkowej, automatycznie przejdziesz do pola miejsca docelowego.","search-autosuggest-len":"Dostępna jest {{count}} propozycja","search-autosuggest-len_few":"Dostępne są {{count}} propozycje","search-autosuggest-len_other":"Dostępne jest {{count}} propozycji","search-button-label":"Szukaj","search-current-suggestion":"Obecny wybór: {{selection}}","search-destination":"Szukaj celu, trasy lub przystanku","search-destination-index":"Wprowadź punkt docelowy","search-destination-results-but-no-search":"Wyświetl wyniki w sąsiedniej karcie „Cel”","search-no-results":"Brak lokalizacji","search-origin":"Wyszukaj początek, koniec lub punkt pośredni","search-origin-index":"Wprowadź punkt początkowy","search-position":"Wykryj lokalizację","select-from-map":"Wybierz miejsce na mapie","select-from-own-locations":"Wybierz z własnych miejsc",station:"Stacja",stop:"Przystanek","stop-near-you":"Szukaj przystanków i tras","stop-near-you-airplane":"Szukaj lotów i lotnisk","stop-near-you-bus":"Szukaj tras autobusowych i przystanków","stop-near-you-citybike":"Szukaj stacji rowerów miejskich","stop-near-you-rail":"Szukaj tras kolejowych i przystanków","stop-near-you-subway":"Szukaj tras metra i przystanków ","stop-near-you-tram":"Szukaj tras tramwajowych i przystanków","stop-route-station":"Wyszukiwanie autobusów i przystanków",street:"Ulica",subway:"Metro","today-at":"dziś o","tomorrow-at":"jutro o",track:"Tor",tram:"Tramwaj","use-own-position":"Użyj obecnej lokalizacji",venue:"Miejsce","via-point":"Przez punkt",where:"Dokąd?"}},sv:{translation:{"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}}",address:"Adress","address-place-or-business":"Adress, plats eller företag",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikepark:"Anslutningsparkering för cyklar",bikerentalstation:"Stadscykelstation",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",loading:"Laddar...","minute-short":"min",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",place:"Plats",platform:"Plattform",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","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-autosuggest-len_plural":"Hittade {{count}} förslag","search-button-label":"Sök","search-current-suggestion":"Nuvarande val: {{selection}}","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","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",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-bikepark":"Sök cykelparkering","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-carpark":"Sök anslutningsparkering","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",street:"Gata",subway:"Metro","today-at":"i dag kl","tomorrow-at":"i morgon",track:"Spår",tram:"Spårvagn","use-own-position":"Använd min position",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?"}}},defaultNS:"translation",react:{useSuspense:!0}});function po(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}co.init();var fo={container:"styles_container__YKW96",input:"styles_input__--GRS",favourite:"styles_favourite__VJm6c",thin:"styles_thin__dDVH9",hasValue:"styles_hasValue__JCbDo",suggestionsContainerOpen:"styles_suggestionsContainerOpen__ARBAD",suggestionsContainer:"styles_suggestionsContainer__FCLTy",suggestionsList:"styles_suggestionsList__uyd8R",suggestion:"styles_suggestion__yZzst",suggestionHighlighted:"styles_suggestionHighlighted__4-yqj","autosuggest-input-container":"styles_autosuggest-input-container__d7zo4",origin:"styles_origin__3BSEn",destination:"styles_destination__VSQ-a","stop-route-station":"styles_stop-route-station__Gcetf","autosuggest-input-icon":"styles_autosuggest-input-icon__4ww0f","origin-stop-near-you":"styles_origin-stop-near-you__NhZ-N","clear-input":"styles_clear-input__CYTYl","sr-only":"styles_sr-only__N8Ha-",hidden:"styles_hidden__iNw4s"};po("input[type=text] {\n margin: 0;\n}\n\n.styles_container__YKW96 {\n display: flex;\n width: 100%;\n}\n.styles_container__YKW96 .styles_input__--GRS.styles_favourite__VJm6c {\n padding-left: 47px;\n}\n.styles_container__YKW96 .styles_input__--GRS.styles_thin__dDVH9 {\n height: 34px;\n}\n.styles_container__YKW96 .styles_input__--GRS {\n font-size: 16px;\n font-family: inherit;\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}\n.styles_container__YKW96 .styles_input__--GRS:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: 0 0 2px 1px var(--hover-color);\n}\n@media screen and (min-width: 768px) {\n .styles_container__YKW96 .styles_input__--GRS {\n font-size: 15px;\n height: 44px;\n padding-left: 49px;\n }\n}\n.styles_container__YKW96 .styles_input__--GRS::placeholder {\n color: #666;\n opacity: 1;\n font-size: 15px;\n}\n\n.styles_hasValue__JCbDo {\n color: #333;\n}\n\n.styles_suggestionsContainerOpen__ARBAD {\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(2.625rem + 9px);\n z-index: 20;\n}\n\n.styles_suggestionsContainer__FCLTy {\n background-color: white;\n z-index: 20;\n}\n.styles_suggestionsContainer__FCLTy .styles_suggestionsList__uyd8R {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white;\n}\n.styles_suggestionsContainer__FCLTy .styles_suggestionsList__uyd8R li:hover {\n background: #f2f5f7;\n}\n\n.styles_suggestion__yZzst {\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 z-index: 20;\n}\n\n.styles_suggestionHighlighted__4-yqj {\n background-color: #f2f5f7;\n}\n\n.styles_autosuggest-input-container__d7zo4 {\n position: relative;\n width: 100%;\n}\n.styles_autosuggest-input-container__d7zo4.styles_origin__3BSEn {\n z-index: 16;\n}\n.styles_autosuggest-input-container__d7zo4.styles_destination__VSQ-a {\n z-index: 10;\n}\n.styles_autosuggest-input-container__d7zo4.styles_stop-route-station__Gcetf {\n z-index: 9;\n}\n\n.styles_autosuggest-input-icon__4ww0f {\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}\n.styles_autosuggest-input-icon__4ww0f svg {\n width: 16px;\n height: 24px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_origin__3BSEn svg {\n color: #4ea700;\n fill: #4ea700;\n width: 16px;\n height: 16px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_destination__VSQ-a svg {\n fill: #ec5188;\n width: 16px;\n height: 24px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_stop-route-station__Gcetf svg, .styles_autosuggest-input-icon__4ww0f.styles_favourite__VJm6c svg {\n fill: #888;\n width: 16px;\n height: 16px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_origin-stop-near-you__NhZ-N svg {\n fill: #888;\n width: 16px;\n height: 16px;\n}\n\nbutton.styles_clear-input__CYTYl {\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}\nbutton.styles_clear-input__CYTYl svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.styles_clear-input__CYTYl: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}\nbutton.styles_clear-input__CYTYl:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.styles_clear-input__CYTYl:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.styles_sr-only__N8Ha-:not(:focus, :active) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.styles_hidden__iNw4s {\n visibility: hidden;\n}");const ho=e=>e.localadmin||e.localadmin||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||"",go=({id:e,code:t})=>t||(void 0!==e&&void 0!==e.indexOf&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):void 0),bo=I.default((e,t=!1)=>{switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return n=e.name,o=e.address,[n||o&&o.split(",")[0],"string"==typeof o?o.replace(new RegExp(`${F.default(n)}([ ,]|$)+`),""):""];case"favouriteVehicleRentalStation":case"bikestation":return[e.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!t&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp(`${F.default(e.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return t?[e.name||e.label||e.address&&e.address.split(",")[0],ho(e)]:[e.name,e.id,go(e),ho(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],ho(e)]}var n,o},(e,t)=>{const n=D.default(e);return n.plain=t,n});const mo=e=>e.scrollIntoView({block:"nearest"}),yo=e=>{const t=e&&(e.key||e.which||e.keyCode)||"";return!(!t||![13," ","Spacebar"].concat([32,"Enter"]).includes(t))&&(e.preventDefault(),!0)},_o=e=>"origin"===e||"destination"===e||"via-point"===e||"origin-stop-near-you"===e,vo=(e,t,n)=>{if(!n)return;if(!e||!e.GTFS.platform)return;const{modes:o,platform:r}=e.GTFS;return[o&&"RAIL"===o[0]?n("track",{lng:t}):n("platform",{lng:t}),r]};function wo(e,t,n){if(!n)return;if("FutureRoute"!==e.type){if("SelectFromMap"===e.type)return["",n("select-from-map",{lng:t})];if("CurrentLocation"===e.type)return["",n("use-own-position",{lng:t})];if("SelectFromOwnLocations"===e.type)return["",n("select-from-own-locations",{lng:t})];let o,[r,i]=bo(e.properties,!0);if(e.properties.layer.toLowerCase().includes("bikerental")||e.properties.layer.toLowerCase().includes("bikestation")){o=n("bikerentalstation",{lng:t});return[o,r,void 0,e.properties.labelId]}if("bikepark"===e.properties.layer)return o=n("bikepark",{lng:t}),[o,r,void 0,void 0];if("carpark"===e.properties.layer)return o=n("carpark",{lng:t}),[o,r,void 0,void 0];if(e.properties.mode)o=n(e.properties.mode.toLowerCase().replace("favourite",""),{lng:t});else{o=n(e.properties.layer.replace("route-","").toLowerCase().replace("favourite",""),{lng:t})}if(e.properties.id&&("stop"===e.properties.layer||"station"===e.properties.layer)){const s=go(e.properties),a=e.properties.addendum?.GTFS.modes,l=vo(e.properties.addendum,t,n);return[o,me(r,s),i,s,a,l]}if("favouriteStop"===e.properties.layer||"favouriteStation"===e.properties.layer){const{address:n,code:s}=e.properties;return[o,n?me(n.split(",")[0],s):r,i,s,void 0,vo(e.properties.addendum,t)]}return[o,r,i]}const{origin:o,destination:r}=e.properties,i=o.locality?`, ${o.locality} foobar`:"",s=r.locality?`, ${r.locality}`:"",a=o.name,l=r.name;return[n("future-route",{lng:t}),`${n("origin",{lng:t})} ${a}${i} ${n("destination",{lng:t})} ${l}${s}`,e.translatedText]}function So(e,t,n){if(!n)return;const o=_.DateTime.fromSeconds(Number(e.properties.time)),r=_.DateTime.now();let i=e.properties.arriveBy?n("arrival",{lng:t}):n("departure",{lng:t});return i=o.hasSame(r,"day")?`${i} ${n("today-at")}`:o.hasSame(r.plus({days:1}),"day")?`${i} ${n("tomorrow-at",{lng:t})}`:`${i} ${o.toFormat("ccc d.L.")}`,i=`${i} ${o.toFormat("HH:mm")}`,i}const Oo=e=>"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){const t=bo(e,!0);switch(e.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return t[1]||t[0];case"favouriteVehicleRentalStation":case"favouritePlace":return t[0];default:return t.length>1&&""!==t[1]?t.join(", "):t[1]||t[0]}}(e.properties),xo=({suggestions:e,t:t,lng:n})=>{let o=[];const r=e[0];return r&&(r.type&&r.type.includes("Favourite")&&o.push(t("favourite",{lng:n})),o=o.concat(wo(e[0],n))),[...new Set(o)].join(" - ")};function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eo,Ro={exports:{}};
|
|
2
|
-
/*! For license information please see index.js.LICENSE.txt */var jo=(Eo||(Eo=1,function(e){var t;"undefined"!=typeof self&&self,e.exports=(t=E.default,function(){var e={888:function(e,t,n){var o,r;r=void 0!==n.g?n.g:"undefined"!=typeof window?window:this,o=function(){return function(e){var t={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},n=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e},o=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,r=-1,i="",s=n.charCodeAt(0);++r<o;){if(0===(t=n.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");i+=t>=1&&t<=31||127==t||0===r&&t>=48&&t<=57||1===r&&t>=48&&t<=57&&45===s?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+i},r=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n},s=function(t,n,o){0===t&&document.body.focus(),o||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))},a=function(t,n,o,r){if(n.emitEvents&&"function"==typeof e.CustomEvent){var i=new CustomEvent(t,{bubbles:!0,detail:{anchor:o,toggle:r}});document.dispatchEvent(i)}};return function(l,u){var c,d,p,f,h={cancelScroll:function(e){cancelAnimationFrame(f),f=null,e||a("scrollCancel",c)},animateScroll:function(o,l,u){h.cancelScroll();var d=n(c||t,u||{}),g="[object Number]"===Object.prototype.toString.call(o),b=g||!o.tagName?null:o;if(g||b){var m=e.pageYOffset;d.header&&!p&&(p=document.querySelector(d.header));var y,_,v,w=i(p),S=g?o:function(t,n,o,i){var s=0;if(t.offsetParent)do{s+=t.offsetTop,t=t.offsetParent}while(t);return s=Math.max(s-n-o,0),i&&(s=Math.min(s,r()-e.innerHeight)),s}(b,w,parseInt("function"==typeof d.offset?d.offset(o,l):d.offset,10),d.clip),O=S-m,x=r(),k=0,E=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n<t.durationMin?t.durationMin:parseInt(n,10)}(O,d),R=function(t){y||(y=t),k+=t-y,v=m+O*function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t}(d,_=(_=0===E?0:k/E)>1?1:_),e.scrollTo(0,Math.floor(v)),function(t,n){var r=e.pageYOffset;if(t==n||r==n||(m<n&&e.innerHeight+r)>=x)return h.cancelScroll(!0),s(o,n,g),a("scrollStop",d,o,l),y=null,f=null,!0}(v,S)||(f=e.requestAnimationFrame(R),y=t)};0===e.pageYOffset&&e.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(o,g,d),"matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches?s(o,Math.floor(S),!1):(a("scrollStart",d,o,l),h.cancelScroll(!0),e.requestAnimationFrame(R))}}},g=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(d=t.target.closest(l))&&"a"===d.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&d.hostname===e.location.hostname&&d.pathname===e.location.pathname&&/#/.test(d.href)){var n,r;try{n=o(decodeURIComponent(d.hash))}catch(e){n=o(d.hash)}if("#"===n){if(!c.topOnEmptyHash)return;r=document.documentElement}else r=document.querySelector(n);(r=r||"#top"!==n?r:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),h.animateScroll(r,d))}},b=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(o(history.state.anchor)))||h.animateScroll(t,null,{updateURL:!1})}};return h.destroy=function(){c&&(document.removeEventListener("click",g,!1),e.removeEventListener("popstate",b,!1),h.cancelScroll(),c=null,d=null,p=null,f=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";h.destroy(),c=n(t,u||{}),p=c.header?document.querySelector(c.header):null,document.addEventListener("click",g,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",b,!1)}(),h}}(r)}.apply(t,[]),void 0===o||(e.exports=o)},432:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(47),t),r(n(926),t),r(n(349),t),r(n(137),t),r(n(729),t),r(n(383),t),r(n(450),t),r(n(358),t),r(n(753),t),r(n(869),t),r(n(352),t),r(n(446),t),r(n(164),t),r(n(305),t),r(n(502),t)},349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowNavigation=void 0;var o=n(156);t.useArrowNavigation=function(e){var t=e.listItems,n=e.onArrowUpOrDown,r=(0,o.useState)(0),i=r[0],s=r[1],a=(0,o.useCallback)(function(e){s(e)},[t]),l=function(e){var o=e.key;if(null==t?void 0:t.length)if("ArrowUp"===o)n&&n(),e.preventDefault(),a(i>0?i-1:t.length-1);else{if("ArrowDown"!==o)return;n&&n(),e.preventDefault(),i<t.length-1?a(i+1):a(0)}};return(0,o.useEffect)(function(){return window.addEventListener("keydown",l),function(){return window.removeEventListener("keydown",l)}}),(0,o.useEffect)(function(){a(0)},[t]),{selectedIndex:i}}},446:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var o=n(156);t.useDebounce=function(e,t){void 0===t&&(t=300);var n=(0,o.useState)(e),r=n[0],i=n[1];return(0,o.useEffect)(function(){var n=setTimeout(function(){i(e)},t);return function(){clearTimeout(n)}},[e,t]),r}},164:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementSize=void 0;var o=n(156);t.useElementSize=function(){var e,t,n=(0,o.useRef)(null);return[n,{width:null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.clientWidth,height:null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.clientHeight}]},t.default=t.useElementSize},137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersectionObserver=void 0;var o=n(156);t.useIntersectionObserver=function(e){var t=(0,o.useRef)(null),n=(0,o.useState)(!1),r=n[0],i=n[1],s=function(e){var t=e[0];i(t.isIntersecting)};return(0,o.useEffect)(function(){if(window&&window.IntersectionObserver){var n=new IntersectionObserver(s,e),o=t.current;return t.current&&n.observe(t.current),function(){o&&n.unobserve(o)}}i(!1)},[t,e]),{containerRef:t,isVisible:r}},t.default=t.useIntersectionObserver},729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsBreakpoint=void 0;var o=n(156),r=n(432),i={xs:1,mobileSmall:320,mobile:375,tablet:768,tabletLarge:920,desktopSmall:1024,desktop:1260,desktopLarge:1440};t.useIsBreakpoint=function(e){var t="string"==typeof e?i[e]:e,n=(0,o.useState)(null),s=n[0],a=n[1],l=(0,o.useCallback)(function(){a(window.innerWidth)},[]);return(0,o.useEffect)(function(){l()},[]),(0,r.useOnResize)(l),s>=t},t.default=t.useIsBreakpoint},450:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoadingAfterError=void 0;var o=n(156);t.useIsLoadingAfterError=function(e,t){var n=(0,o.useState)(t),r=n[0],i=n[1];return(0,o.useEffect)(function(){e||i(t)},[e,t]),e&&r}},305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;var o=n(729);t.useIsMobile=function(){return!(0,o.useIsBreakpoint)("tablet")},t.default=t.useIsMobile},383:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;var o=n(156);t.useIsomorphicLayoutEffect="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,t.default=t.useIsomorphicLayoutEffect},753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnLoseFocusWithin=void 0;var o=n(156);t.useOnLoseFocusWithin=function(e){var t=e.ref,n=e.callback,r=e.watch;(0,o.useEffect)(function(){var e=function(){var e;if(r)return(null===(e=t.current)||void 0===e?void 0:e.matches(":focus-within"))?void 0:n()};return document.addEventListener("keyup",e),function(){return document.removeEventListener("keyup",e)}},[n,t,r])},t.default=t.useOnLoseFocusWithin},502:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnResize=void 0;var o=n(156);t.useOnResize=function(e){(0,o.useEffect)(function(){var t=function(){e(window.innerWidth)};return window.addEventListener("resize",t,{passive:!0}),function(){return window.removeEventListener("resize",t)}},[])},t.default=t.useOnResize},352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnWindowFocus=void 0;var o=n(156);t.useOnWindowFocus=function(e){(0,o.useEffect)(function(){var t=function(){e&&"visible"===document.visibilityState&&e()};return window.addEventListener("visibilitychange",t,!1),function(){return window.removeEventListener("visibilitychange",t)}},[e])}},47:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOutsideReacter=void 0;var o=n(156);t.useOutsideReacter=function(e,t){function n(n){e.current&&!e.current.contains(n.target)&&t()}(0,o.useEffect)(function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}})}},869:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRunAfterUpdate=void 0;var o=n(156);t.useRunAfterUpdate=function(){var e=(0,o.useRef)(null);return(0,o.useEffect)(function(){e.current&&(e.current(),e.current=null)}),function(t){e.current=t}},t.default=t.useRunAfterUpdate},926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollLock=void 0;var o=n(156);t.useScrollLock=function(){return{lock:(0,o.useCallback)(function(){var e=window.scrollY+"px",t=document.body;t.style.position="fixed",t.style.top="-"+e},[]),unlock:(0,o.useCallback)(function(){var e=document.body,t=e.style.top,n=-1*parseInt(t||"0");e.style.position="",e.style.top="",n&&window.scrollTo(0,-1*parseInt(t||"0"))},[])}}},358:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSmoothScroll=void 0;var r=n(156),i=o(n(888));t.useSmoothScroll=function(e){var t=(0,r.useRef)(null),n=e.ref,o=e.offset,s=void 0===o?0:o,a=e.speed,l=void 0===a?500:a;return(0,r.useEffect)(function(){t.current=new i.default(null,{speed:l,speedAsDuration:!0})},[]),(0,r.useCallback)(function(){n&&t.current&&t.current.animateScroll(n.current,null,{offset:function(){return s},updateURL:!1})},[s,n])}},156:function(e){e.exports=t}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,o),i.exports}return o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o(432)}())}(Ro)),Ro.exports),Po=ko(jo),Co={"fullscreen-root":"MobileSearch_fullscreen-root__-fKuG","combobox-container":"MobileSearch_combobox-container__UApoj","right-column":"MobileSearch_right-column__n9ied","combobox-icon":"MobileSearch_combobox-icon__91hHs","combobox-label":"MobileSearch_combobox-label__TVrz1",container:"MobileSearch_container__fxGZ7",input:"MobileSearch_input__bUFhg","clear-input":"MobileSearch_clear-input__AaH3X",hasValue:"MobileSearch_hasValue__1Txox",suggestion:"MobileSearch_suggestion__v2-T8",suggestionHighlighted:"MobileSearch_suggestionHighlighted__laMbA",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__-ZF8G",suggestionsList:"MobileSearch_suggestionsList__zRJY4","clear-search-history":"MobileSearch_clear-search-history__XpFfN","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__BDcbD","mobile-modal":"MobileSearch_mobile-modal__-gEAQ","mobile-modal-content":"MobileSearch_mobile-modal-content__mUUFh"};po("input[type=text] {\n margin: 0;\n padding: 0;\n}\n\n.MobileSearch_fullscreen-root__-fKuG {\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\n.MobileSearch_combobox-container__UApoj {\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}\n.MobileSearch_combobox-container__UApoj .MobileSearch_right-column__n9ied {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px;\n}\n\n.MobileSearch_combobox-icon__91hHs {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none;\n}\n.MobileSearch_combobox-icon__91hHs svg {\n width: 14px;\n height: 21px;\n transform: rotate(-180deg);\n}\n\n.MobileSearch_combobox-label__TVrz1 {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.2px;\n color: #333;\n}\n\n.MobileSearch_container__fxGZ7 {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.MobileSearch_container__fxGZ7 .MobileSearch_input__bUFhg {\n font-family: inherit;\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}\n.MobileSearch_container__fxGZ7 .MobileSearch_input__bUFhg:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff;\n}\n\nbutton.MobileSearch_clear-input__AaH3X {\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}\nbutton.MobileSearch_clear-input__AaH3X svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.MobileSearch_clear-input__AaH3X:focus {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileSearch_clear-input__AaH3X:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileSearch_clear-input__AaH3X:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileSearch_hasValue__1Txox {\n color: #333;\n}\n\n.MobileSearch_suggestion__v2-T8 {\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\n.MobileSearch_suggestionHighlighted__laMbA {\n background-color: #f2f5f7;\n}\n\n.MobileSearch_suggestionsContainerOpen__-ZF8G {\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}\n.MobileSearch_suggestionsContainerOpen__-ZF8G .MobileSearch_suggestionsList__zRJY4 {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7;\n}\n\n.MobileSearch_clear-search-history__XpFfN {\n display: flex;\n font-family: inherit;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd;\n}\n.MobileSearch_suggestionHighlighted__laMbA .MobileSearch_clear-search-history__XpFfN {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileSearch_mobile-modal-overlay__BDcbD {\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\n.MobileSearch_mobile-modal__-gEAQ {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.MobileSearch_mobile-modal__-gEAQ.ReactModal__Content--after-open > div {\n transform: translateY(0);\n}\n.MobileSearch_mobile-modal__-gEAQ.ReactModal__Content--before-close > div {\n transform: translateY(10%);\n}\n\n.MobileSearch_mobile-modal-content__mUUFh {\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 No={"fullscreen-root":"MobileNoScroll_fullscreen-root__z0ny4","combobox-container":"MobileNoScroll_combobox-container__TTtSg","right-column":"MobileNoScroll_right-column__TS4N7","combobox-icon":"MobileNoScroll_combobox-icon__-r8Qf","combobox-label":"MobileNoScroll_combobox-label__rQ8p-",container:"MobileNoScroll_container__XXfFb",input:"MobileNoScroll_input__Xaj1-","clear-input":"MobileNoScroll_clear-input__Jz4Xv",hasValue:"MobileNoScroll_hasValue__ftyO6",suggestion:"MobileNoScroll_suggestion__7L2kI",suggestionHighlighted:"MobileNoScroll_suggestionHighlighted__IKy2t",suggestionsContainerOpen:"MobileNoScroll_suggestionsContainerOpen__ePksf",suggestionsList:"MobileNoScroll_suggestionsList__aeQlJ","clear-search-history":"MobileNoScroll_clear-search-history__WrE0K","mobile-modal-overlay":"MobileNoScroll_mobile-modal-overlay__k1JdU","mobile-modal":"MobileNoScroll_mobile-modal__x5kKM","mobile-modal-content":"MobileNoScroll_mobile-modal-content__os7v8"};function Mo(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}po("input[type=text] {\n margin: 0;\n padding: 0;\n}\n\n.MobileNoScroll_fullscreen-root__z0ny4 {\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\n.MobileNoScroll_combobox-container__TTtSg {\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}\n.MobileNoScroll_combobox-container__TTtSg .MobileNoScroll_right-column__TS4N7 {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px;\n}\n\n.MobileNoScroll_combobox-icon__-r8Qf {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none;\n}\n.MobileNoScroll_combobox-icon__-r8Qf svg {\n width: 14px;\n height: 21px;\n transform: rotate(-180deg);\n}\n\n.MobileNoScroll_combobox-label__rQ8p- {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.2px;\n color: #333;\n}\n\n.MobileNoScroll_container__XXfFb {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.MobileNoScroll_container__XXfFb .MobileNoScroll_input__Xaj1- {\n font-family: inherit;\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}\n.MobileNoScroll_container__XXfFb .MobileNoScroll_input__Xaj1-:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff;\n}\n\nbutton.MobileNoScroll_clear-input__Jz4Xv {\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}\nbutton.MobileNoScroll_clear-input__Jz4Xv svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:focus {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileNoScroll_hasValue__ftyO6 {\n color: #333;\n}\n\n.MobileNoScroll_suggestion__7L2kI {\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\n.MobileNoScroll_suggestionHighlighted__IKy2t {\n background-color: #f2f5f7;\n}\n\n.MobileNoScroll_suggestionsContainerOpen__ePksf {\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}\n.MobileNoScroll_suggestionsContainerOpen__ePksf .MobileNoScroll_suggestionsList__aeQlJ {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7;\n}\n\n.MobileNoScroll_clear-search-history__WrE0K {\n display: flex;\n font-family: inherit;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd;\n}\n.MobileNoScroll_suggestionHighlighted__IKy2t .MobileNoScroll_clear-search-history__WrE0K {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileNoScroll_mobile-modal-overlay__k1JdU {\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\n.MobileNoScroll_mobile-modal__x5kKM {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.MobileNoScroll_mobile-modal__x5kKM.ReactModal__Content--after-open > div {\n transform: translateY(0);\n}\n.MobileNoScroll_mobile-modal__x5kKM.ReactModal__Content--before-close > div {\n transform: translateY(10%);\n}\n\n.MobileNoScroll_mobile-modal-content__os7v8 {\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\n.MobileNoScroll_suggestionsContainerOpen__ePksf {\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n scrollbar-width: none; /* Firefox */\n}\n.MobileNoScroll_suggestionsContainerOpen__ePksf::-webkit-scrollbar {\n display: none; /* Safari and Chrome */\n}");const To=["item","lng","getItemProps","highlightedIndex","itemIndex","styles"],Ao=["suggestions","getMenuProps","getItemProps","lng","styles","hidden","renderClearHistoryButton","handleClearHistory"];function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Fo=n.memo(function(e){let{item:t,lng:n,getItemProps:r,highlightedIndex:i,itemIndex:s,styles:a}=e,l=Mo(e,To);const[u]=o.useTranslation(),c="FutureRoute"===t.type?Io(Io({},t),{},{translatedText:So(t,n,u)}):t,d=wo(t,n,u);return O.jsx("li",Io(Io({className:R.default(a.suggestion,i===s&&a.suggestionHighlighted)},r({index:s})),{},{children:O.jsx(z.default,Io({item:c,content:d,lng:n},l))}))}),Do="production"!==process.env.NODE_ENV?k.default.shape({name:k.default.string,type:k.default.string,address:k.default.string,selectedIconId:k.default.string,iconColor:k.default.string,translatedText:k.default.string,properties:k.default.shape({layer:k.default.string,color:k.default.string,localadmin:k.default.string,mode:k.default.string,id:k.default.string,source:k.default.string,arrowClicked:k.default.bool,destination:k.default.shape({name:k.default.string,localadmin:k.default.string}),origin:k.default.shape({name:k.default.string,localadmin:k.default.string})})}):{};"production"!==process.env.NODE_ENV&&(Fo.propTypes={item:Do.isRequired,lng:k.default.string.isRequired,getItemProps:k.default.func.isRequired,highlightedIndex:k.default.number.isRequired,itemIndex:k.default.number.isRequired,styles:k.default.objectOf(k.default.string).isRequired});const qo=n.memo(function(e){let{suggestions:t,getMenuProps:n,getItemProps:r,lng:i,styles:s,hidden:a,renderClearHistoryButton:l=!1,handleClearHistory:u=()=>{}}=e,c=Mo(e,Ao);const[d]=o.useTranslation();return O.jsx("div",{className:R.default(s.suggestionsContainerOpen,s.suggestionsContainer,a&&s.hidden),children:O.jsxs("ul",Io(Io({className:s.suggestionsList},n()),{},{children:[t.map((e,t)=>O.jsx(Fo,Io({getItemProps:r,itemIndex:t,item:e,lng:i,styles:s},c),`${e.type}-${e.properties.gid||e.properties.gtfsId||JSON.stringify(e.properties)}`)),l&&O.jsx("li",{children:O.jsx("button",{onClick:u,type:"button",className:s["clear-search-history"],children:d("clear-search-history",{lng:i})})})]}))})});"production"!==process.env.NODE_ENV&&(qo.propTypes={suggestions:k.default.arrayOf(Do).isRequired,getMenuProps:k.default.func.isRequired,getItemProps:k.default.func.isRequired,lng:k.default.string.isRequired,styles:k.default.objectOf(k.default.string).isRequired,hidden:k.default.bool.isRequired,renderClearHistoryButton:k.default.bool,handleClearHistory:k.default.func});const Uo=({color:e,lng:t,clearInput:n,onKeyDown:r,styles:i})=>{const[s]=o.useTranslation();return O.jsx("button",{type:"button",className:i["clear-input"],onClick:n,"aria-label":s("clear-button-label",{lng:t}),onKeyDown:r,children:O.jsx(L.default,{img:"close",color:e})})};function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ho({id:e,lng:t,value:n,placeholder:o,required:r,getInputProps:i,getLabelProps:s,clearInput:a,ariaLabel:l,inputRef:u,styles:c,renderLabel:d=!1,isMobile:p,inputClassName:f,transportMode:h,clearButtonColor:g,autoFocus:b=!1,inputOnBlur:m=()=>{},onValueChange:y}){return O.jsxs("div",{className:c.container,children:[d&&O.jsx("label",Bo(Bo({},s({className:c["sr-only"],htmlFor:e})),{},{children:l})),O.jsx("input",Bo({"aria-label":l,autoFocus:b,placeholder:o,required:r,type:"text",className:R.default(c.input,c[e],f,p&&h&&c.thin,n&&c.hasValue),id:e},i({ref:u,onBlur:m,onChange:e=>{y(e.target.value)}}))),n&&O.jsx(Uo,{lng:t,clearInput:()=>a(u),styles:c,color:g,onKeyDown:e=>yo(e)&&a(u)})]})}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}"production"!==process.env.NODE_ENV&&(Uo.propTypes={color:k.default.string.isRequired,lng:k.default.string.isRequired,clearInput:k.default.func.isRequired,onKeyDown:k.default.func.isRequired,styles:k.default.objectOf(k.default.string).isRequired}),"production"!==process.env.NODE_ENV&&(Ho.propTypes={id:k.default.string.isRequired,lng:k.default.string.isRequired,placeholder:k.default.string.isRequired,required:k.default.bool.isRequired,value:k.default.string.isRequired,getInputProps:k.default.func.isRequired,getLabelProps:k.default.func.isRequired,clearInput:k.default.func.isRequired,ariaLabel:k.default.string.isRequired,inputRef:k.default.shape({current:k.default.oneOfType([k.default.string,k.default.object])}).isRequired,styles:k.default.objectOf(k.default.string).isRequired,renderLabel:k.default.bool,isMobile:k.default.bool.isRequired,inputClassName:k.default.string.isRequired,transportMode:k.default.string,clearButtonColor:k.default.string.isRequired,autoFocus:k.default.bool,inputOnBlur:k.default.func,onValueChange:k.default.func.isRequired});const $o=({appElement:e,id:t,placeholder:r,clearInput:i,onSelectedItemChange:s,clearOldSearches:a,suggestionProps:l,lng:u,ariaProps:c,value:d,inputClassName:f,required:h,mobileLabel:g,showScroll:b,state:m,dispatch:y,pendingEnterRef:_,colors:v})=>{const[w]=o.useTranslation(),{lock:S,unlock:x}=Po.useScrollLock(),k=b?Co:No,R=`${t}-input`,j=`${t}-label`,[P,C]=n.useState(!1),N=E.default.useRef();n.useEffect(()=>{q.default.setAppElement(e)},[]),n.useEffect(()=>{m.renderMobile?S():x()},[m.renderMobile]);const{highlightedIndex:M,getLabelProps:T,getMenuProps:A,getInputProps:I,getItemProps:F,setHighlightedIndex:D}=p.useCombobox({items:m.suggestions,inputValue:d,isOpen:!0,scrollIntoView:mo,onSelectedItemChange:e=>{s(e),y({type:"TOGGLE_MENU",isMobile:!0})},inputId:R,labelId:j,selectedItem:null,defaultHighlightedIndex:-1,onInputValueChange:({inputValue:e,type:t})=>m.renderMobile&&t!==p.useCombobox.stateChangeTypes.InputChange&&y({type:"INPUT_CHANGE",value:e}),stateReducer:(e,{changes:t,type:n})=>{switch(n){case p.useCombobox.stateChangeTypes.InputKeyDownEscape:return D(-1),y({type:"TOGGLE_MENU",isMobile:!0}),e;case p.useCombobox.stateChangeTypes.InputKeyDownEnter:return m.loading?(_.current=!0,e):-1===e.highlightedIndex?Wo(Wo({},t),{},{selectedItem:m.suggestions[0]}):t;case p.useCombobox.stateChangeTypes.InputBlur:return e;default:return t}},itemToString:e=>e?Oo(e):""});A({},{suppressRefError:!0}),I({},{suppressRefError:!0});const z=n.useCallback(e=>m.renderMobile&&y({type:"INPUT_CHANGE",value:e}),[m.renderMobile,y]),B=n.useCallback(()=>C(!0),[]),{ariaRequiredText:H,SearchBarId:V,ariaCurrentSuggestion:W}=c,$=H.concat(" ").concat(V).concat(" ").concat(W);return O.jsx(q.default,{isOpen:m.renderMobile,className:k["mobile-modal"],overlayClassName:k["mobile-modal-overlay"],shouldReturnFocusAfterClose:!1,shouldCloseOnEsc:!0,children:O.jsxs("div",{className:k["mobile-modal-content"],style:{"--color":v.primary,"--accessible-primary-color":v.accessiblePrimary,"--hover-color":v.hover},children:[O.jsxs("div",{className:k["combobox-container"],htmlFor:R,children:[O.jsx("button",{type:"button",className:k["combobox-icon"],onClick:()=>{D(-1),y({type:"TOGGLE_MENU",isMobile:!0})},onKeyDown:e=>{yo(e)&&(D(-1),y({type:"TOGGLE_MENU",isMobile:!0}))},"aria-label":w("cancel",{lng:u}),tabIndex:0,children:O.jsx(L.default,{img:"arrow",color:v.primary})}),O.jsxs("span",{className:k["right-column"],children:[O.jsx("span",Wo(Wo({className:k["combobox-label"],id:j},T()),{},{children:g})),O.jsx(Ho,{placeholder:_o(t)?w("address-place-or-business",{lng:u}):r,id:t,lng:u,value:d,getInputProps:I,getLabelProps:T,clearInput:()=>i(N),ariaLabel:$,inputRef:N,styles:k,renderLabel:!1,clearButtonColor:v.primary,autoFocus:!0,inputClassName:f,required:h,isMobile:!0,onValueChange:z}),O.jsx(qo,Wo({suggestions:m.suggestions,getMenuProps:A,getItemProps:F,highlightedIndex:M,isOpen:!0,hidden:!1,lng:u,styles:k,renderClearHistoryButton:!0,handleClearHistory:B},l))]})]}),O.jsx(U.default,{isModalOpen:P,handleClose:()=>C(!1),headerText:w("delete-old-searches-header",{lng:u}),primaryButtonText:w("delete",{lng:u}),secondaryButtonText:w("cancel",{lng:u}),primaryButtonOnClick:()=>{a(),C(!1)},secondaryButtonOnClick:()=>C(!1),lang:u})]})})};function Go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}"production"!==process.env.NODE_ENV&&($o.propTypes={appElement:k.default.string.isRequired,id:k.default.string.isRequired,clearInput:k.default.func.isRequired,clearOldSearches:k.default.func.isRequired,onSelectedItemChange:k.default.func.isRequired,value:k.default.string.isRequired,colors:k.default.objectOf(k.default.string).isRequired,suggestionProps:k.default.shape({}).isRequired,ariaProps:k.default.shape({ariaRequiredText:k.default.string.isRequired,SearchBarId:k.default.string.isRequired,ariaCurrentSuggestion:k.default.string.isRequired}).isRequired,inputClassName:k.default.string.isRequired,placeholder:k.default.string.isRequired,mobileLabel:k.default.string.isRequired,required:k.default.bool.isRequired,showScroll:k.default.bool.isRequired,lng:k.default.string.isRequired,state:k.default.shape({suggestions:k.default.arrayOf(k.default.shape({})).isRequired,renderMobile:k.default.bool.isRequired,loading:k.default.bool.isRequired}).isRequired,dispatch:k.default.func.isRequired,pendingEnterRef:k.default.shape({current:k.default.bool}).isRequired});const Jo=(e,t)=>{switch(t.type){case"INPUT_CHANGE":return Ko(Ko({},e),{},{value:t.value});case"FETCH_SUGGESTIONS":return t.loading!==e.loading||t.suggestions?Ko(Ko({},e),{},{loading:t.loading,suggestions:t.suggestions||e.suggestions}):e;case"CLEAR_SUGGESTIONS":return Ko(Ko({},e),{},{suggestions:[]});case"RESET_SOURCES":return Ko(Ko({},e),{},{sources:t.sources});case"SET_SOURCES":return Ko(Ko({},e),{},{showOwnPlaces:t.showOwnPlaces,sources:t.sources,pendingSelection:t.pendingSelection});case"CLEAR":return Ko(Ko({},e),{},{value:"",isCleared:!0,suggestions:[]});case"INPUT_BLUR":return Ko(Ko({},e),{},{value:t.value||e.value,isCleared:!t.isMobile&&e.isCleared,pendingSelection:null,showOwnPlaces:!1});case"RESET":return t.initialState;case"TOGGLE_MENU":return t.isMobile?e.renderMobile?Ko(Ko({},e),{},{renderMobile:!1,isCleared:!1}):Ko(Ko({},e),{},{renderMobile:!0,value:e.isCleared?"":e.value}):Ko(Ko({},e),{},{isMenuOpen:!e.isMenuOpen,renderMobile:t.isMobile&&!e.renderMobile});default:return e}};function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Qo=[],Zo={routesPrefix:"linjat",stopsPrefix:"pysakit"},er={},tr=["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","Wybrane miejsce"];function nr({appElement:e,id:t,placeholder:r,onSelect:i,icon:s,value:a="",onClear:l,lang:u="fi",getAutoSuggestIcons:c,handleViaPoints:d,focusChange:h,storeRef:g,isMobile:b=!1,mobileLabel:m,inputClassName:y="",translatedPlaceholder:_,required:v=!1,ariaLabel:w,colors:S=f.defaultColors,modeSet:x,showScroll:k=!1,isEmbedded:E=!1,transportMode:j,targets:P,sources:C=Qo,geocodingSize:N,filterResults:M,searchContext:T,pathOpts:A=Zo,refPoint:I=er}){const[F]=o.useTranslation(),D={suggestions:[],loading:!1,sources:C,showOwnPlaces:!1,pendingSelection:null,isCleared:!1,renderMobile:!1,value:a,isMenuOpen:!1},[q,U]=n.useReducer(Jo,D);n.useEffect(()=>U({type:"RESET",initialState:D}),[a]),n.useEffect(()=>U({type:"RESET_SOURCES",sources:C}),[C]);const z=n.useRef(t),B=n.useRef(!1),H=n.useRef(0);n.useEffect(()=>{g&&g(z.current)},[z.current]);const V=n.useCallback(()=>{const e=!P?.length||P.includes("Locations"),t=(({targets:e,isLocationSearch:t,isMobile:n,ownPlaces:o,sources:r})=>{const i=!e?.length;let s=e;return o?(s=["Locations"],(i||e.includes("Stops"))&&s.push("Stops"),(i||e.includes("Stations"))&&s.push("Stations"),(i||e.includes("VehicleRentalStations"))&&s.push("VehicleRentalStations")):i||(s=[...e],!t||n||r.length&&!r.includes("Favourite")||s.push("SelectFromOwnLocations")),s})({targets:P,isLocationSearch:e,isMobile:b,ownPlaces:q.showOwnPlaces,sources:q.sources}),n=q.sources?q.sources.filter(t=>!e||"Favourite"===!t||q.showOwnPlaces||b):q.sources;H.current+=1;const o=H.current;((e,t,n,o,r,i,s,a,l,u)=>{a(null),uo(e,t,n,o,r,i,s,a,l,u)})(t,n,j,T,M,N,{input:q.value||""},e=>{if(o!==H.current)return;if(null==e)return void U({type:"FETCH_SUGGESTIONS",loading:!0});const t=(e.results||[]).filter(e=>"FutureRoute"!==e.type||"FutureRoute"===e.type&&e.properties.time>Date.now()/1e3).map(e=>{if("CurrentLocation"===e.type||"SelectFromMap"===e.type||"SelectFromOwnLocations"===e.type||"back"===e.type){const t=Xo({},e);return t.properties.labelId=F(e.properties.labelId,{lng:u}),t}return e});U({type:"FETCH_SUGGESTIONS",loading:!1,suggestions:t})},A,I)},[q.value,q.sources,q.showOwnPlaces,P,j,T,M,N,b,u,A,I,t]),W=n.useCallback((e,n)=>{e&&(d?d(e,n):i(e,t),!h||b&&!E||h(),z.current&&z.current.blur())},[b]),$=e=>{const{selectedItem:t}=e;t&&("SelectFromOwnLocations"!==t.type?"back"!==t.type?W(t,e.highlightedIndex):U({type:"SET_SOURCES",sources:C,showOwnPlaces:!1,pendingSelection:null}):U({type:"SET_SOURCES",sources:["Favourite","Back"],showOwnPlaces:!0,pendingSelection:t.type}))},{isOpen:G,highlightedIndex:K,getLabelProps:J,getMenuProps:Y,getInputProps:X,getItemProps:Q,selectItem:Z,openMenu:ee,closeMenu:te}=p.useCombobox({inputId:t,inputValue:q.value,scrollIntoView:mo,defaultHighlightedIndex:0,onInputValueChange:({inputValue:e,type:t})=>t!==p.useCombobox.stateChangeTypes.InputChange&&U({type:"INPUT_CHANGE",value:e}),stateReducer:n.useCallback((e,{type:t,changes:n})=>{switch(t){case p.useCombobox.stateChangeTypes.ItemClick:case p.useCombobox.stateChangeTypes.InputKeyDownEnter:return q.loading?(B.current=!0,e):n.selectedItem&&("SelectFromOwnLocations"===n.selectedItem.type||"back"===n.selectedItem.type)?Xo(Xo({},n),{},{isOpen:!0}):n;case p.useCombobox.stateChangeTypes.InputClick:return tr.includes(a)?Xo(Xo({},n),{},{inputValue:"",isOpen:!0}):Xo(Xo({},n),{},{isOpen:!0});case p.useCombobox.stateChangeTypes.InputBlur:return n.selectedItem?Xo(Xo({},n),{},{selectedItem:e.selectedItem,inputValue:e.inputValue}):n;case p.useCombobox.stateChangeTypes.InputKeyDownEscape:return Xo(Xo({},n),{},{inputValue:""});default:return n}},[q.loading,a,b]),items:q.suggestions,itemToString:e=>e?Oo(e):"",onSelectedItemChange:$,onIsOpenChange:e=>{e.isOpen&&!q.renderMobile&&U({type:"TOGGLE_MENU",isMobile:b})}}),ne=e=>{U({type:"CLEAR"}),l&&l(t),e.current&&e.current.focus(),ee()},oe=n.useCallback(e=>U({type:"INPUT_CHANGE",value:e}),[]);n.useEffect(()=>{!G&&!q.renderMobile||q.value===a&&tr.includes(a)||V(q.value)},[G,q.renderMobile,q.value,V]),n.useEffect(()=>{B.current&&!q.loading&&(B.current=!1,W(q.suggestions[0],0),te())},[q.loading,q.suggestions]);const re=n.useMemo(()=>({loading:q.loading,isMobile:b,ariaFavouriteString:F("favourite",{lng:u}),getAutoSuggestIcons:c,colors:S,modeSet:x,showStopStatusMarkers:!!T.showStopStatusMarkers}),[q.loading,b,F,u,c,S,x,T.showStopStatusMarkers]),{ariaCurrentSuggestion:ie,ariaRequiredText:se,SearchBarId:ae,ariaLabelText:le}=(({id:e,ariaLabel:t,lng:n,t:o,isMobile:r,suggestions:i,value:s,required:a})=>{const l=e.replace("searchfield-",""),u=t||o(l,{lng:n}).replace("searchfield-","").concat("."),c=a?`${o("required",{lng:n})}.`:"",d=o(r?"search-autosuggest-label-instructions-mobile":"search-autosuggest-label-instructions-desktop",{lng:n}),p="origin"===e?o("search-autosuggest-label-move-to-destination",{lng:n}):"";return{SearchBarId:u,ariaRequiredText:c,ariaLabelText:d.concat(" ").concat(p),ariaSuggestionLen:o("search-autosuggest-len",{count:i.length,lng:n}),ariaCurrentSuggestion:xo({suggestions:i,t:o,lng:n})||s?o("search-current-suggestion",{lng:n,selection:xo({suggestions:i,t:o,lng:n}).toLowerCase()||s}):""}})({id:t,lng:u,t:F,isMobile:b,ariaLabel:w,suggestions:q.suggestions,value:q.value,required:v});return n.useEffect(()=>{q.renderMobile||G||U({type:"RESET",initialState:D})},[q.renderMobile,G]),O.jsxs(O.Fragment,{children:[b&&O.jsx($o,{placeholder:F(r,{lng:u}),clearOldSearches:()=>{const{clearOldSearches:e,clearFutureRoutes:t}=T;e&&(e(),t&&t(),V(q.value))},appElement:e,mobileLabel:m||F(t,{lng:u}),ariaProps:{ariaCurrentSuggestion:ie,SearchBarId:ae,ariaRequiredText:se},id:t,lng:u,onSelectedItemChange:$,value:q.value,clearInput:ne,suggestionProps:re,showScroll:!!k,colors:S,inputClassName:y,required:v,state:q,dispatch:U,pendingEnterRef:B}),O.jsxs("div",{className:R.default(fo["autosuggest-input-container"],fo[t],q.renderMobile&&"hidden"),style:{"--color":S.primary,"--hover-color":S.hover},children:[s&&O.jsx("div",{className:R.default(fo["autosuggest-input-icon"],fo[t],y&&fo[`${y}-input-icon`]),"aria-label":se.concat(" ").concat(ae).concat(" ").concat(F("search-autosuggest-label",{lng:u})),children:O.jsx(L.default,{img:`${s}`})}),O.jsx(Ho,{inputClassName:y,ariaLabel:ie.concat(" ").concat(se).concat(" ").concat(ae).concat(" ").concat(le),id:t,lng:u,getInputProps:X,getLabelProps:J,selectItem:Z,value:q.value,clearInput:ne,inputRef:z,styles:fo,clearButtonColor:S.primary,placeholder:_||F(r,{lng:u}),required:v,transportMode:j,isMobile:b,inputOnBlur:()=>{U({isMobile:b,value:!b&&a,type:"INPUT_BLUR"}),b||U({type:"RESET",initialState:D})},onValueChange:oe}),O.jsx(qo,Xo({hidden:!G||!q.suggestions.length||b,highlightedIndex:K,getItemProps:Q,getMenuProps:Y,suggestions:q.suggestions,lng:u,styles:fo},re))]})]})}"production"!==process.env.NODE_ENV&&(nr.propTypes={appElement:k.default.string.isRequired,icon:k.default.string,id:k.default.string.isRequired,placeholder:k.default.string.isRequired,translatedPlaceholder:k.default.string,value:k.default.string,transportMode:k.default.string,geocodingSize:k.default.number,filterResults:k.default.func,searchContext:k.default.shape({URL_PELIAS:k.default.string,context:k.default.object,clearOldSearches:k.default.func,clearFutureRoutes:k.default.func,showStopStatusMarkers:k.default.bool}).isRequired,sources:k.default.arrayOf(k.default.string),targets:k.default.arrayOf(k.default.string),ariaLabel:k.default.string,onSelect:k.default.func.isRequired,onClear:k.default.func,storeRef:k.default.func,handleViaPoints:k.default.func,focusChange:k.default.func,lang:k.default.string,isMobile:k.default.bool,pathOpts:k.default.shape({routesPrefix:k.default.string,stopsPrefix:k.default.string}),mobileLabel:k.default.string,refPoint:k.default.shape({address:k.default.string,lat:k.default.number,lon:k.default.number}),inputClassName:k.default.string,colors:k.default.objectOf(k.default.string),getAutoSuggestIcons:k.default.objectOf(k.default.func),required:k.default.bool,modeSet:k.default.string,showScroll:k.default.bool,isEmbedded:k.default.bool});e.default=e=>O.jsx(o.I18nextProvider,{i18n:co,children:O.jsx(nr,Xo({},e))}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react"),require("react-i18next"),require("classnames"),require("downshift"),require("@digitransit-component/digitransit-component-icon"),require("i18next"),require("luxon"),require("react-modal"),require("@digitransit-component/digitransit-component-dialog-modal"),require("@digitransit-component/digitransit-component-suggestion-item"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","react-i18next","classnames","downshift","@digitransit-component/digitransit-component-icon","i18next","luxon","react-modal","@digitransit-component/digitransit-component-dialog-modal","@digitransit-component/digitransit-component-suggestion-item","react/jsx-runtime"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DTAutosuggest={},e.PropTypes,e.React,e.reactI18next,e.cx,e.downshift,e.Icon,e.i18next,e.luxon,e.ReactModal,e.DialogModal,e.SuggestionItem,e.jsxRuntime)}(this,function(e,t,n,r,o,i,a,s,u,l,c,f,d){"use strict";function p(e){return e&&e.__esModule?e:{default:e}}var h,g,b,y,m,v,_,w,S,O,j,x,k,E,R,P,C,A,T,M,N,L,I,F,D,z,U,q,B=p(t),H=p(n),V=p(o),$=p(a),W=p(l),G=p(c),K=p(f);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Y(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}function X(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(){if(g)return h;return g=1,h=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function ee(){if(y)return b;y=1;var e="object"==typeof global&&global&&global.Object===Object&&global;return b=e}function te(){if(v)return m;v=1;var e=ee(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return m=n}function ne(){if(x)return j;x=1;var e=function(){if(O)return S;O=1;var e=/\s/;return S=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n},S}(),t=/^\s+/;return j=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function re(){if(E)return k;E=1;var e=te().Symbol;return k=e}function oe(){if(M)return T;M=1;var e=re(),t=function(){if(P)return R;P=1;var e=re(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return R=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch(e){}var s=r.call(e);return a&&(t?e[o]=i:delete e[o]),s}}(),n=function(){if(A)return C;A=1;var e=Object.prototype.toString;return C=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function ie(){if(L)return N;return L=1,N=function(e){return null!=e&&"object"==typeof e}}function ae(){if(F)return I;F=1;var e=oe(),t=ie();return I=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function se(){if(z)return D;z=1;var e=ne(),t=Z(),n=ae(),r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return D=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var u="function"==typeof s.valueOf?s.valueOf():s;s=t(u)?u+"":u}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var l=o.test(s);return l||i.test(s)?a(s.slice(2),l?2:8):r.test(s)?NaN:+s}}var ue,le,ce,fe,de,pe,he,ge,be,ye,me,ve,_e,we,Se=function(){if(q)return U;q=1;var e=Z(),t=function(){if(w)return _;w=1;var e=te();return _=function(){return e.Date.now()}}(),n=se(),r=Math.max,o=Math.min;return U=function(i,a,s){var u,l,c,f,d,p,h=0,g=!1,b=!1,y=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function m(e){var t=u,n=l;return u=l=void 0,h=e,f=i.apply(n,t)}function v(e){var t=e-p;return void 0===p||t>=a||t<0||b&&e-h>=c}function _(){var e=t();if(v(e))return w(e);d=setTimeout(_,function(e){var t=a-(e-p);return b?o(t,c-(e-h)):t}(e))}function w(e){return d=void 0,y&&u?m(e):(u=l=void 0,f)}function S(){var e=t(),n=v(e);if(u=arguments,l=this,p=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(_,a),g?m(e):f}(p);if(b)return clearTimeout(d),d=setTimeout(_,a),m(p)}return void 0===d&&(d=setTimeout(_,a)),f}return a=n(a)||0,e(s)&&(g=!!s.leading,c=(b="maxWait"in s)?r(n(s.maxWait)||0,a):c,y="trailing"in s?!!s.trailing:y),S.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=l=d=void 0},S.flush=function(){return void 0===d?f:w(t())},S},U}(),Oe=Q(Se);function je(){if(le)return ue;return le=1,ue=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},ue}function xe(){if(pe)return de;pe=1;var e=function(){if(fe)return ce;fe=1;var e=oe(),t=ie();return ce=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=ie(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!o.call(e,"callee")};return de=i}function ke(){if(ge)return he;ge=1;var e=Array.isArray;return he=e}function Ee(){if(ve)return me;ve=1;var e=je(),t=function(){if(ye)return be;ye=1;var e=re(),t=xe(),n=ke(),r=e?e.isConcatSpreadable:void 0;return be=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return me=function n(r,o,i,a,s){var u=-1,l=r.length;for(i||(i=t),s||(s=[]);++u<l;){var c=r[u];o>0&&i(c)?o>1?n(c,o-1,i,a,s):e(s,c):a||(s[s.length]=c)}return s},me}var Re,Pe,Ce,Ae,Te,Me,Ne,Le,Ie=Q(function(){if(we)return _e;we=1;var e=Ee();return _e=function(t){return(null==t?0:t.length)?e(t,1):[]}}());function Fe(){if(Me)return Te;Me=1;var e=function(){if(Ae)return Ce;Ae=1;var e=se(),t=1/0;return Ce=function(n){return n?(n=e(n))===t||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}}();return Te=function(t){var n=e(t),r=n%1;return n==n?r?n-r:n:0}}var De,ze,Ue=function(){if(Le)return Ne;Le=1;var e=(Pe||(Pe=1,Re=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}),Re),t=Fe();return Ne=function(n,r,o){return n&&n.length?(r=o||void 0===r?1:t(r),e(n,0,r<0?0:r)):[]}}(),qe=Q(Ue);var Be,He,Ve,$e,We,Ge,Ke,Je,Ye,Xe,Qe,Ze,et,tt,nt,rt,ot,it,at,st,ut,lt,ct,ft,dt,pt,ht,gt,bt,yt,mt,vt,_t,wt,St,Ot,jt,xt,kt,Et,Rt,Pt,Ct,At,Tt,Mt,Nt,Lt,It,Ft,Dt,zt,Ut,qt,Bt,Ht,Vt,$t,Wt,Gt,Kt,Jt,Yt,Xt,Qt,Zt,en,tn,nn,rn,on,an,sn,un,ln,cn,fn,dn,pn,hn,gn,bn,yn,mn,vn,_n,wn,Sn,On,jn,xn,kn,En,Rn,Pn,Cn,An,Tn,Mn,Nn,Ln,In,Fn,Dn,zn,Un,qn,Bn,Hn,Vn,$n,Wn,Gn,Kn,Jn,Yn,Xn,Qn,Zn,er,tr,nr,rr,or,ir=function(){if(ze)return De;ze=1;var e=oe(),t=ke(),n=ie();return De=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),ar=Q(ir);function sr(){if(He)return Be;return He=1,Be=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Be}function ur(){if($e)return Ve;$e=1;var e=ke(),t=ae(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Ve=function(o,i){if(e(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!t(o))||(r.test(o)||!n.test(o)||null!=i&&o in Object(i))}}function lr(){if(Ge)return We;Ge=1;var e=oe(),t=Z();return We=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function cr(){if(Xe)return Ye;Xe=1;var e,t=function(){if(Je)return Ke;Je=1;var e=te()["__core-js_shared__"];return Ke=e}(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return Ye=function(e){return!!n&&n in e}}function fr(){if(Ze)return Qe;Ze=1;var e=Function.prototype.toString;return Qe=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function dr(){if(it)return ot;it=1;var e=function(){if(tt)return et;tt=1;var e=lr(),t=cr(),n=Z(),r=fr(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,s=i.toString,u=a.hasOwnProperty,l=RegExp("^"+s.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return et=function(i){return!(!n(i)||t(i))&&(e(i)?l:o).test(r(i))}}(),t=rt?nt:(rt=1,nt=function(e,t){return null==e?void 0:e[t]});return ot=function(n,r){var o=t(n,r);return e(o)?o:void 0}}function pr(){if(st)return at;st=1;var e=dr()(Object,"create");return at=e}function hr(){if(vt)return mt;vt=1;var e=function(){if(lt)return ut;lt=1;var e=pr();return ut=function(){this.__data__=e?e(null):{},this.size=0}}(),t=ft?ct:(ft=1,ct=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(pt)return dt;pt=1;var e=pr(),t=Object.prototype.hasOwnProperty;return dt=function(n){var r=this.__data__;if(e){var o=r[n];return"__lodash_hash_undefined__"===o?void 0:o}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(gt)return ht;gt=1;var e=pr(),t=Object.prototype.hasOwnProperty;return ht=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),o=function(){if(yt)return bt;yt=1;var e=pr();return bt=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,mt=i}function gr(){if(Ot)return St;return Ot=1,St=function(e,t){return e===t||e!=e&&t!=t}}function br(){if(xt)return jt;xt=1;var e=gr();return jt=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function yr(){if(Lt)return Nt;Lt=1;var e=wt?_t:(wt=1,_t=function(){this.__data__=[],this.size=0}),t=function(){if(Et)return kt;Et=1;var e=br(),t=Array.prototype.splice;return kt=function(n){var r=this.__data__,o=e(r,n);return!(o<0||(o==r.length-1?r.pop():t.call(r,o,1),--this.size,0))},kt}(),n=function(){if(Pt)return Rt;Pt=1;var e=br();return Rt=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},Rt}(),r=function(){if(At)return Ct;At=1;var e=br();return Ct=function(t){return e(this.__data__,t)>-1}}(),o=function(){if(Mt)return Tt;Mt=1;var e=br();return Tt=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this},Tt}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Nt=i}function mr(){if(Ft)return It;Ft=1;var e=dr()(te(),"Map");return It=e}function vr(){if(Ht)return Bt;Ht=1;var e=qt?Ut:(qt=1,Ut=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return Bt=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function _r(){if(Zt)return Qt;Zt=1;var e=function(){if(zt)return Dt;zt=1;var e=hr(),t=yr(),n=mr();return Dt=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if($t)return Vt;$t=1;var e=vr();return Vt=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Gt)return Wt;Gt=1;var e=vr();return Wt=function(t){return e(this,t).get(t)}}(),r=function(){if(Jt)return Kt;Jt=1;var e=vr();return Kt=function(t){return e(this,t).has(t)}}(),o=function(){if(Xt)return Yt;Xt=1;var e=vr();return Yt=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}}();function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Qt=i}function wr(){if(tn)return en;tn=1;var e=_r();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],i=o.cache;if(i.has(t))return i.get(t);var a=n.apply(this,e);return o.cache=i.set(t,a)||i,a};return o.cache=new(t.Cache||e),o}return t.Cache=e,en=t}function Sr(){if(an)return on;an=1;var e=function(){if(rn)return nn;rn=1;var e=wr();return nn=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n}}(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,o,i){r.push(o?i.replace(n,"$1"):t||e)}),r});return on=r}function Or(){if(cn)return ln;cn=1;var e=function(){if(un)return sn;un=1;var e=re(),t=sr(),n=ke(),r=ae(),o=e?e.prototype:void 0,i=o?o.toString:void 0;return sn=function e(o){if("string"==typeof o)return o;if(n(o))return t(o,e)+"";if(r(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},sn}();return ln=function(t){return null==t?"":e(t)}}function jr(){if(dn)return fn;dn=1;var e=ke(),t=ur(),n=Sr(),r=Or();return fn=function(o,i){return e(o)?o:t(o,i)?[o]:n(r(o))}}function xr(){if(hn)return pn;hn=1;var e=ae();return pn=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function kr(){if(bn)return gn;bn=1;var e=jr(),t=xr();return gn=function(n,r){for(var o=0,i=(r=e(r,n)).length;null!=n&&o<i;)n=n[t(r[o++])];return o&&o==i?n:void 0},gn}function Er(){if(Rn)return En;Rn=1;var e=yr(),t=function(){if(mn)return yn;mn=1;var e=yr();return yn=function(){this.__data__=new e,this.size=0}}(),n=_n?vn:(_n=1,vn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=Sn?wn:(Sn=1,wn=function(e){return this.__data__.get(e)}),o=jn?On:(jn=1,On=function(e){return this.__data__.has(e)}),i=function(){if(kn)return xn;kn=1;var e=yr(),t=mr(),n=_r();return xn=function(r,o){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([r,o]),this.size=++i.size,this;i=this.__data__=new n(a)}return i.set(r,o),this.size=i.size,this}}();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,En=a}function Rr(){if(Nn)return Mn;Nn=1;var e=_r(),t=Cn?Pn:(Cn=1,Pn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Tn?An:(Tn=1,An=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Mn=r}function Pr(){if(Dn)return Fn;return Dn=1,Fn=function(e,t){return e.has(t)}}function Cr(){if(Un)return zn;Un=1;var e=Rr(),t=(In||(In=1,Ln=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),Ln),n=Pr();return zn=function(r,o,i,a,s,u){var l=1&i,c=r.length,f=o.length;if(c!=f&&!(l&&f>c))return!1;var d=u.get(r),p=u.get(o);if(d&&p)return d==o&&p==r;var h=-1,g=!0,b=2&i?new e:void 0;for(u.set(r,o),u.set(o,r);++h<c;){var y=r[h],m=o[h];if(a)var v=l?a(m,y,h,o,r,u):a(y,m,h,r,o,u);if(void 0!==v){if(v)continue;g=!1;break}if(b){if(!t(o,function(e,t){if(!n(b,t)&&(y===e||s(y,e,i,a,u)))return b.push(t)})){g=!1;break}}else if(y!==m&&!s(y,m,i,a,u)){g=!1;break}}return u.delete(r),u.delete(o),g},zn}function Ar(){if(Bn)return qn;Bn=1;var e=te().Uint8Array;return qn=e}function Tr(){if(Wn)return $n;return Wn=1,$n=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},$n}function Mr(){if(Kn)return Gn;Kn=1;var e=re(),t=Ar(),n=gr(),r=Cr(),o=(Vn||(Vn=1,Hn=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}),Hn),i=Tr(),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;return Gn=function(e,a,u,l,c,f,d){switch(u){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!f(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var p=o;case"[object Set]":var h=1&l;if(p||(p=i),e.size!=a.size&&!h)return!1;var g=d.get(e);if(g)return g==a;l|=2,d.set(e,a);var b=r(p(e),p(a),l,c,f,d);return d.delete(e),b;case"[object Symbol]":if(s)return s.call(e)==s.call(a)}return!1}}function Nr(){if(Yn)return Jn;Yn=1;var e=je(),t=ke();return Jn=function(n,r,o){var i=r(n);return t(n)?i:e(i,o(n))}}function Lr(){if(er)return Zn;return er=1,Zn=function(){return[]}}function Ir(){if(nr)return tr;nr=1;var e=(Qn||(Qn=1,Xn=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}),Xn),t=Lr(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return tr=r?function(t){return null==t?[]:(t=Object(t),e(r(t),function(e){return n.call(t,e)}))}:t}var Fr,Dr,zr,Ur,qr,Br,Hr,Vr,$r,Wr,Gr,Kr={exports:{}};function Jr(){return zr||(zr=1,function(e,t){var n=te(),r=Dr?Fr:(Dr=1,Fr=function(){return!1}),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(Kr,Kr.exports)),Kr.exports}function Yr(){if(qr)return Ur;qr=1;var e=/^(?:0|[1-9]\d*)$/;return Ur=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function Xr(){if(Hr)return Br;Hr=1;return Br=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function Qr(){if(Gr)return Wr;return Gr=1,Wr=function(e){return function(t){return e(t)}}}var Zr,eo,to,no,ro,oo,io,ao,so,uo,lo,co,fo,po,ho,go,bo,yo,mo,vo,_o,wo,So,Oo,jo,xo,ko,Eo,Ro,Po,Co,Ao,To,Mo,No,Lo,Io,Fo,Do,zo,Uo,qo,Bo,Ho,Vo,$o,Wo,Go,Ko,Jo,Yo,Xo,Qo,Zo,ei,ti,ni,ri,oi,ii,ai,si,ui,li,ci,fi,di,pi,hi,gi,bi,yi,mi,vi,_i,wi,Si,Oi,ji,xi,ki,Ei,Ri,Pi,Ci,Ai,Ti,Mi={exports:{}};function Ni(){return Zr||(Zr=1,function(e,t){var n=ee(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Mi,Mi.exports)),Mi.exports}function Li(){if(to)return eo;to=1;var e=function(){if($r)return Vr;$r=1;var e=oe(),t=Xr(),n=ie(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,Vr=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}(),t=Qr(),n=Ni(),r=n&&n.isTypedArray,o=r?t(r):e;return eo=o}function Ii(){if(ro)return no;ro=1;var e=(or||(or=1,rr=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),rr),t=xe(),n=ke(),r=Jr(),o=Yr(),i=Li(),a=Object.prototype.hasOwnProperty;return no=function(s,u){var l=n(s),c=!l&&t(s),f=!l&&!c&&r(s),d=!l&&!c&&!f&&i(s),p=l||c||f||d,h=p?e(s.length,String):[],g=h.length;for(var b in s)!u&&!a.call(s,b)||p&&("length"==b||f&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||o(b,g))||h.push(b);return h}}function Fi(){if(io)return oo;io=1;var e=Object.prototype;return oo=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function Di(){if(so)return ao;return so=1,ao=function(e,t){return function(n){return e(t(n))}}}function zi(){if(fo)return co;fo=1;var e=Fi(),t=function(){if(lo)return uo;lo=1;var e=Di()(Object.keys,Object);return uo=e}(),n=Object.prototype.hasOwnProperty;return co=function(r){if(!e(r))return t(r);var o=[];for(var i in Object(r))n.call(r,i)&&"constructor"!=i&&o.push(i);return o}}function Ui(){if(ho)return po;ho=1;var e=lr(),t=Xr();return po=function(n){return null!=n&&t(n.length)&&!e(n)}}function qi(){if(bo)return go;bo=1;var e=Ii(),t=zi(),n=Ui();return go=function(r){return n(r)?e(r):t(r)}}function Bi(){if(mo)return yo;mo=1;var e=Nr(),t=Ir(),n=qi();return yo=function(r){return e(r,n,t)}}function Hi(){if(ko)return xo;ko=1;var e=dr()(te(),"Set");return xo=e}function Vi(){if(Co)return Po;Co=1;var e=function(){if(So)return wo;So=1;var e=dr()(te(),"DataView");return wo=e}(),t=mr(),n=function(){if(jo)return Oo;jo=1;var e=dr()(te(),"Promise");return Oo=e}(),r=Hi(),o=function(){if(Ro)return Eo;Ro=1;var e=dr()(te(),"WeakMap");return Eo=e}(),i=oe(),a=fr(),s="[object Map]",u="[object Promise]",l="[object Set]",c="[object WeakMap]",f="[object DataView]",d=a(e),p=a(t),h=a(n),g=a(r),b=a(o),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=f||t&&y(new t)!=s||n&&y(n.resolve())!=u||r&&y(new r)!=l||o&&y(new o)!=c)&&(y=function(e){var t=i(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case d:return f;case p:return s;case h:return u;case g:return l;case b:return c}return t}),Po=y}function $i(){if(To)return Ao;To=1;var e=Er(),t=Cr(),n=Mr(),r=function(){if(_o)return vo;_o=1;var e=Bi(),t=Object.prototype.hasOwnProperty;return vo=function(n,r,o,i,a,s){var u=1&o,l=e(n),c=l.length;if(c!=e(r).length&&!u)return!1;for(var f=c;f--;){var d=l[f];if(!(u?d in r:t.call(r,d)))return!1}var p=s.get(n),h=s.get(r);if(p&&h)return p==r&&h==n;var g=!0;s.set(n,r),s.set(r,n);for(var b=u;++f<c;){var y=n[d=l[f]],m=r[d];if(i)var v=u?i(m,y,d,r,n,s):i(y,m,d,n,r,s);if(!(void 0===v?y===m||a(y,m,o,i,s):v)){g=!1;break}b||(b="constructor"==d)}if(g&&!b){var _=n.constructor,w=r.constructor;_==w||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(n),s.delete(r),g},vo}(),o=Vi(),i=ke(),a=Jr(),s=Li(),u="[object Arguments]",l="[object Array]",c="[object Object]",f=Object.prototype.hasOwnProperty;return Ao=function(d,p,h,g,b,y){var m=i(d),v=i(p),_=m?l:o(d),w=v?l:o(p),S=(_=_==u?c:_)==c,O=(w=w==u?c:w)==c,j=_==w;if(j&&a(d)){if(!a(p))return!1;m=!0,S=!1}if(j&&!S)return y||(y=new e),m||s(d)?t(d,p,h,g,b,y):n(d,p,_,h,g,b,y);if(!(1&h)){var x=S&&f.call(d,"__wrapped__"),k=O&&f.call(p,"__wrapped__");if(x||k){var E=x?d.value():d,R=k?p.value():p;return y||(y=new e),b(E,R,h,g,y)}}return!!j&&(y||(y=new e),r(d,p,h,g,b,y))}}function Wi(){if(No)return Mo;No=1;var e=$i(),t=ie();return Mo=function n(r,o,i,a,s){return r===o||(null==r||null==o||!t(r)&&!t(o)?r!=r&&o!=o:e(r,o,i,a,n,s))},Mo}function Gi(){if(Do)return Fo;Do=1;var e=Z();return Fo=function(t){return t==t&&!e(t)}}function Ki(){if(Bo)return qo;return Bo=1,qo=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}function Ji(){if(Vo)return Ho;Vo=1;var e=function(){if(Io)return Lo;Io=1;var e=Er(),t=Wi();return Lo=function(n,r,o,i){var a=o.length,s=a,u=!i;if(null==n)return!s;for(n=Object(n);a--;){var l=o[a];if(u&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++a<s;){var c=(l=o[a])[0],f=n[c],d=l[1];if(u&&l[2]){if(void 0===f&&!(c in n))return!1}else{var p=new e;if(i)var h=i(f,d,c,n,r,p);if(!(void 0===h?t(d,f,3,i,p):h))return!1}}return!0},Lo}(),t=function(){if(Uo)return zo;Uo=1;var e=Gi(),t=qi();return zo=function(n){for(var r=t(n),o=r.length;o--;){var i=r[o],a=n[i];r[o]=[i,a,e(a)]}return r}}(),n=Ki();return Ho=function(r){var o=t(r);return 1==o.length&&o[0][2]?n(o[0][0],o[0][1]):function(t){return t===r||e(t,r,o)}}}function Yi(){if(Wo)return $o;Wo=1;var e=kr();return $o=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}}function Xi(){if(Qo)return Xo;Qo=1;var e=Ko?Go:(Ko=1,Go=function(e,t){return null!=e&&t in Object(e)}),t=function(){if(Yo)return Jo;Yo=1;var e=jr(),t=xe(),n=ke(),r=Yr(),o=Xr(),i=xr();return Jo=function(a,s,u){for(var l=-1,c=(s=e(s,a)).length,f=!1;++l<c;){var d=i(s[l]);if(!(f=null!=a&&u(a,d)))break;a=a[d]}return f||++l!=c?f:!!(c=null==a?0:a.length)&&o(c)&&r(d,c)&&(n(a)||t(a))},Jo}();return Xo=function(n,r){return null!=n&&t(n,r,e)}}function Qi(){if(ni)return ti;return ni=1,ti=function(e){return e}}function Zi(){if(ui)return si;ui=1;var e=oi?ri:(oi=1,ri=function(e){return function(t){return null==t?void 0:t[e]}}),t=function(){if(ai)return ii;ai=1;var e=kr();return ii=function(t){return function(n){return e(n,t)}}}(),n=ur(),r=xr();return si=function(o){return n(o)?e(r(o)):t(o)}}function ea(){if(ci)return li;ci=1;var e=Ji(),t=function(){if(ei)return Zo;ei=1;var e=Wi(),t=Yi(),n=Xi(),r=ur(),o=Gi(),i=Ki(),a=xr();return Zo=function(s,u){return r(s)&&o(u)?i(a(s),u):function(r){var o=t(r,s);return void 0===o&&o===u?n(r,s):e(u,o,3)}}}(),n=Qi(),r=ke(),o=Zi();return li=function(i){return"function"==typeof i?i:null==i?n:"object"==typeof i?r(i)?t(i[0],i[1]):e(i):o(i)}}function ta(){if(hi)return pi;hi=1;var e=(di||(di=1,fi=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}),fi),t=e();return pi=t}function na(){if(_i)return vi;_i=1;var e=function(){if(bi)return gi;bi=1;var e=ta(),t=qi();return gi=function(n,r){return n&&e(n,r,t)}}(),t=function(){if(mi)return yi;mi=1;var e=Ui();return yi=function(t,n){return function(r,o){if(null==r)return r;if(!e(r))return t(r,o);for(var i=r.length,a=n?i:-1,s=Object(r);(n?a--:++a<i)&&!1!==o(s[a],a,s););return r}},yi}(),n=t(e);return vi=n}function ra(){if(Ri)return Ei;Ri=1;var e=function(){if(ki)return xi;ki=1;var e=ae();return xi=function(t,n){if(t!==n){var r=void 0!==t,o=null===t,i=t==t,a=e(t),s=void 0!==n,u=null===n,l=n==n,c=e(n);if(!u&&!c&&!a&&t>n||a&&s&&l&&!u&&!c||o&&s&&l||!r&&l||!i)return 1;if(!o&&!a&&!c&&t<n||c&&r&&i&&!o&&!a||u&&r&&i||!s&&i||!l)return-1}return 0}}();return Ei=function(t,n,r){for(var o=-1,i=t.criteria,a=n.criteria,s=i.length,u=r.length;++o<s;){var l=e(i[o],a[o]);if(l)return o>=u?l:l*("desc"==r[o]?-1:1)}return t.index-n.index},Ei}function oa(){if(Ci)return Pi;Ci=1;var e=sr(),t=kr(),n=ea(),r=function(){if(Si)return wi;Si=1;var e=na(),t=Ui();return wi=function(n,r){var o=-1,i=t(n)?Array(n.length):[];return e(n,function(e,t,n){i[++o]=r(e,t,n)}),i},wi}(),o=ji?Oi:(ji=1,Oi=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}),i=Qr(),a=ra(),s=Qi(),u=ke();return Pi=function(l,c,f){c=c.length?e(c,function(e){return u(e)?function(n){return t(n,1===e.length?e[0]:e)}:e}):[s];var d=-1;c=e(c,i(n));var p=r(l,function(t,n,r){return{criteria:e(c,function(e){return e(t)}),index:++d,value:t}});return o(p,function(e,t){return a(e,t,f)})},Pi}var ia,aa,sa,ua,la,ca,fa,da,pa,ha,ga,ba,ya,ma,va,_a,wa,Sa,Oa,ja,xa=function(){if(Ti)return Ai;Ti=1;var e=oa(),t=ke();return Ai=function(n,r,o,i){return null==n?[]:(t(r)||(r=null==r?[]:[r]),t(o=i?void 0:o)||(o=null==o?[]:[o]),e(n,r,o))}}(),ka=Q(xa);function Ea(){if(da)return fa;da=1;var e=(aa||(aa=1,ia=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}),ia),t=ua?sa:(ua=1,sa=function(e){return e!=e}),n=(ca||(ca=1,la=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}),la);return fa=function(r,o,i){return o==o?n(r,o,i):e(r,t,i)}}function Ra(){if(_a)return va;_a=1;var e=Hi(),t=ma?ya:(ma=1,ya=function(){}),n=Tr(),r=e&&1/n(new e([,-0]))[1]==1/0?function(t){return new e(t)}:t;return va=r}function Pa(){if(Sa)return wa;Sa=1;var e=Rr(),t=function(){if(ha)return pa;ha=1;var e=Ea();return pa=function(t,n){return!(null==t||!t.length)&&e(t,n,0)>-1}}(),n=(ba||(ba=1,ga=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}),ga),r=Pr(),o=Ra(),i=Tr();return wa=function(a,s,u){var l=-1,c=t,f=a.length,d=!0,p=[],h=p;if(u)d=!1,c=n;else if(f>=200){var g=s?null:o(a);if(g)return i(g);d=!1,c=r,h=new e}else h=s?[]:p;e:for(;++l<f;){var b=a[l],y=s?s(b):b;if(b=u||0!==b?b:0,d&&y==y){for(var m=h.length;m--;)if(h[m]===y)continue e;s&&h.push(y),p.push(b)}else c(h,y,u)||(h!==p&&h.push(y),p.push(b))}return p},wa}var Ca=Q(function(){if(ja)return Oa;ja=1;var e=Pa();return Oa=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?e(t,void 0,n):[]}}());function Aa(e,t){return e&&t&&e===t}const Ta=["stop","station","favouriteStop","favouriteStation"],Ma=["favouriteVehicleRentalStation","bikestation"];function Na(e){if(!e)return"";const t=e.split(":");return 0===t.length?"":`citybikes${t[0]}:bikestation:${t[1]}`}function La(e,t){const n=e.properties,r=t.properties;if("FutureRoute"===e.type&&"FutureRoute"===t.type){const e=n.origin,t=n.destination,o=r.origin,i=r.destination;return`${e.name}//${e.localadmin}//${t.name}//${t.localadmin}`===`${o.name}//${o.localadmin}//${i.name}//${i.localadmin}`}if("FutureRoute"===e.type||"FutureRoute"===t.type)return!1;if(Ma.includes(n.layer)&&Ma.includes(r.layer)){return(n.gid||Na(n.labelId))===(r.gid||Na(r.labelId))}if(n.gtfsId&&r.gtfsId)return n.gtfsId===r.gtfsId;if(Ta.includes(n.layer)&&Ta.includes(r.layer)&&n.gid&&r.gid)return n.gid===r.gid;const o=e&&e.geometry?e.geometry.coordinates:void 0,i=t&&t.geometry?t.geometry.coordinates:void 0;return!!(o&&i&&Math.abs(o[0]-i[0])<1e-6&&Math.abs(o[1]-i[1])<1e-6&&(Aa(n.name,r.name)||Aa(n.label,r.label)||Aa(n.address,r.address)||Aa(n.address,r.label)||Aa(n.label,r.address)))}const Ia=e=>ar(e)?e.toLowerCase():"",Fa=e=>e.split(/(\p{L}+)/u),Da=e=>/^[0-9]+\p{L}+$/u.test(e),za="back",Ua="currentPosition",qa="favouriteStop",Ba="favouriteStation",Ha="favouritePlace",Va="favouriteRoute",$a="favouriteVehicleRentalStation",Wa="futureRoute",Ga="station",Ka="selectFromMap",Ja="ownLocations",Ya="stop",Xa="bikestation",Qa="carpark",Za="bikepark",es=({layer:e,type:t})=>"stop"===e||"favouriteStop"===e||"stop"===t||"favouriteStop"===t,ts=(e,t)=>{switch(e){case Ua:return 1;case za:return.9;case Ka:return.8;case Ja:return.79;case Ba:case Ha:case qa:case Va:case $a:return.45;case Wa:return.44;case Ga:return ar(t)&&0===t.indexOf("gtfs")?.43:.42;case Qa:case Za:case Xa:return.38;case Ya:return.36;default:return.41}},ns=(e,t,n="")=>{if(!Array.isArray(t)||!t.length)return t;const r=t=>ar(t)&&e&&e.test(t),o=Ia(n),i=r(o),a=ka(t.filter(e=>e),[e=>i&&r(Ia(e.properties.shortName))&&0===Ia(e.properties.shortName).indexOf(o)?1:0,e=>{const{confidence:t,layer:n,source:r}=e.properties;if(0===o.length)return ts(n,r);if(!t)return ts(n,r)+((e,t)=>ar(e)&&0!==e.length?["name","label","address","shortName"].map(e=>({name:e,value:t[e]})).filter(e=>ar(e.value)&&e.value.length>0).map(t=>{let n=Ia(t.value);return 0===n.indexOf(e)?("shortName"===t.name&&Da(n)&&([n]=Fa(n)),.5+e.length/n.length):.5*e.length/(e.length+1)}).reduce((e,t)=>t>e?t:e,0):0)(o,e.properties);switch(n){case Ga:return t+(0===r.indexOf("gtfs")?.02:.01);case Ya:case Qa:case Za:return t-.05;case Xa:return t-.04;default:return t}},e=>{if(e.properties.shortName)return Da(e.properties.shortName)?Fa(e.properties.shortName)[0]:e.properties.shortName},e=>{if(e.properties.shortName)return Da(e.properties.shortName)?Fa(e.properties.shortName)[1]:e.properties.shortName},"properties.longName"],["desc","desc","asc","asc","asc"]);return Ca(a,La)},rs=(e,t)=>null!=t&&-1!==e.lastIndexOf(t)?e.substring(0,e.lastIndexOf(t)-1):e;var os=Q(Yi());function is(e,t,n){if("string"==typeof t&&t.length>0){const r=t.toLowerCase().trim(),o=r.includes(" ")||r.includes(",");return e.filter(e=>{let t=[];n.forEach(n=>{let r=os(e,n);o||"properties.label"!==n&&"address"!==n||!r||(r=r.split(","),r.length>2?r.splice(r.length-2,2):r.length>1&&r.splice(r.length-1,1),r=r.join(",")),r&&(t=o?t.concat(r.toLowerCase()):t.concat(r.toLowerCase().replace(/,/g," ").split(" ")))});for(let e=0;e<t.length;e++)if(0===t[e].indexOf(r))return!0;return!1})}return e}function as(e,t){return function(){return e.apply(t,arguments)}}const{toString:ss}=Object.prototype,{getPrototypeOf:us}=Object,{iterator:ls,toStringTag:cs}=Symbol,fs=(ds=Object.create(null),e=>{const t=ss.call(e);return ds[t]||(ds[t]=t.slice(8,-1).toLowerCase())});var ds;const ps=e=>(e=e.toLowerCase(),t=>fs(t)===e),hs=e=>t=>typeof t===e,{isArray:gs}=Array,bs=hs("undefined");function ys(e){return null!==e&&!bs(e)&&null!==e.constructor&&!bs(e.constructor)&&_s(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ms=ps("ArrayBuffer");const vs=hs("string"),_s=hs("function"),ws=hs("number"),Ss=e=>null!==e&&"object"==typeof e,Os=e=>{if("object"!==fs(e))return!1;const t=us(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||cs in e||ls in e)},js=ps("Date"),xs=ps("File"),ks=ps("Blob"),Es=ps("FileList");const Rs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ps=void 0!==Rs.FormData?Rs.FormData:void 0,Cs=ps("URLSearchParams"),[As,Ts,Ms,Ns]=["ReadableStream","Request","Response","Headers"].map(ps);function Ls(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),gs(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ys(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Is(e,t){if(ys(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Fs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ds=e=>!bs(e)&&e!==Fs;const zs=(Us="undefined"!=typeof Uint8Array&&us(Uint8Array),e=>Us&&e instanceof Us);var Us;const qs=ps("HTMLFormElement"),Bs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:Hs}=Object.prototype,Vs=ps("RegExp"),$s=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ls(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Ws=ps("AsyncFunction"),Gs=(Ks="function"==typeof setImmediate,Js=_s(Fs.postMessage),Ks?setImmediate:Js?(Ys=`axios@${Math.random()}`,Xs=[],Fs.addEventListener("message",({source:e,data:t})=>{e===Fs&&t===Ys&&Xs.length&&Xs.shift()()},!1),e=>{Xs.push(e),Fs.postMessage(Ys,"*")}):e=>setTimeout(e));var Ks,Js,Ys,Xs;const Qs="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Fs):"undefined"!=typeof process&&process.nextTick||Gs;var Zs={isArray:gs,isArrayBuffer:ms,isBuffer:ys,isFormData:e=>{if(!e)return!1;if(Ps&&e instanceof Ps)return!0;const t=us(e);if(!t||t===Object.prototype)return!1;if(!_s(e.append))return!1;const n=fs(e);return"formdata"===n||"object"===n&&_s(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ms(e.buffer),t},isString:vs,isNumber:ws,isBoolean:e=>!0===e||!1===e,isObject:Ss,isPlainObject:Os,isEmptyObject:e=>{if(!Ss(e)||ys(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:As,isRequest:Ts,isResponse:Ms,isHeaders:Ns,isUndefined:bs,isDate:js,isFile:xs,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:ks,isRegExp:Vs,isFunction:_s,isStream:e=>Ss(e)&&_s(e.pipe),isURLSearchParams:Cs,isTypedArray:zs,isFileList:Es,forEach:Ls,merge:function e(...t){const{caseless:n,skipUndefined:r}=Ds(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=n&&"string"==typeof i&&Is(o,i)||i,s=Bs(o,a)?o[a]:void 0;Os(s)&&Os(t)?o[a]=e(s,t):Os(t)?o[a]=e({},t):gs(t)?o[a]=t.slice():r&&bs(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||ys(n))continue;if(Ls(n,i),"object"!=typeof n||gs(n))continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];Hs.call(n,t)&&i(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(Ls(t,(t,r)=>{n&&_s(t)?Object.defineProperty(e,r,{__proto__:null,value:as(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&us(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:fs,kindOfTest:ps,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(gs(e))return e;let t=e.length;if(!ws(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ls]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:qs,hasOwnProperty:Bs,hasOwnProp:Bs,reduceDescriptors:$s,freezeMethods:e=>{$s(e,(t,n)=>{if(_s(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];_s(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return gs(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Is,global:Fs,isContextDefined:Ds,isSpecCompliantForm:function(e){return!!(e&&_s(e.append)&&"FormData"===e[cs]&&e[ls])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(Ss(e)){if(t.has(e))return;if(ys(e))return e;if(!("toJSON"in e)){t.add(e);const r=gs(e)?[]:{};return Ls(e,(e,t)=>{const o=n(e);!bs(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:Ws,isThenable:e=>e&&(Ss(e)||_s(e))&&_s(e.then)&&_s(e.catch),setImmediate:Gs,asap:Qs,isIterable:e=>null!=e&&_s(e[ls])};const eu=Zs.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const tu=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),nu=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ru(e,t){return Zs.isArray(e)?e.map(e=>ru(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ou(e){const t=Object.create(null);return Zs.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>ru(e,nu))(e)}),t}const iu=Symbol("internals");function au(e){return e&&String(e).trim().toLowerCase()}function su(e){return!1===e||null==e?e:Zs.isArray(e)?e.map(su):(e=>ru(e,tu))(String(e))}function uu(e,t,n,r,o){return Zs.isFunction(r)?r.call(this,t,n):(o&&(t=n),Zs.isString(t)?Zs.isString(r)?-1!==t.indexOf(r):Zs.isRegExp(r)?r.test(t):void 0:void 0)}let lu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=au(t);if(!o)return;const i=Zs.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=su(e))}const i=(e,t)=>Zs.forEach(e,(e,n)=>o(e,n,t));if(Zs.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Zs.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&eu[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(Zs.isObject(e)&&Zs.isIterable(e)){let n,r,o={};for(const t of e){if(!Zs.isArray(t))throw new TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Zs.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=au(e)){const n=Zs.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Zs.isFunction(t))return t.call(this,e,n);if(Zs.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=au(e)){const n=Zs.findKey(this,e);return!(!n||void 0===this[n]||t&&!uu(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=au(e)){const o=Zs.findKey(n,e);!o||t&&!uu(0,n[o],o,t)||(delete n[o],r=!0)}}return Zs.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!uu(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Zs.forEach(this,(r,o)=>{const i=Zs.findKey(n,o);if(i)return t[i]=su(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=su(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Zs.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Zs.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[iu]=this[iu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=au(e);t[r]||(!function(e,t){const n=Zs.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Zs.isArray(e)?e.forEach(r):r(e),this}};lu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Zs.reduceDescriptors(lu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Zs.freezeMethods(lu);function cu(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Zs.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof lu&&(e=e.toJSON()),r.push(e),Zs.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);Zs.isUndefined(r)||(t[n]=r)});else{if(!Zs.isPlainObject(e)&&function(e){if(Zs.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Zs.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(i);Zs.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}let fu=class e extends Error{static from(t,n,r,o,i,a){const s=new e(t.message,n||t.code,r,o,i);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Zs.hasOwnProp(e,"redact")?e.redact:void 0,n=Zs.isArray(t)&&t.length>0?cu(e,t):Zs.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};fu.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",fu.ERR_BAD_OPTION="ERR_BAD_OPTION",fu.ECONNABORTED="ECONNABORTED",fu.ETIMEDOUT="ETIMEDOUT",fu.ECONNREFUSED="ECONNREFUSED",fu.ERR_NETWORK="ERR_NETWORK",fu.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",fu.ERR_DEPRECATED="ERR_DEPRECATED",fu.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",fu.ERR_BAD_REQUEST="ERR_BAD_REQUEST",fu.ERR_CANCELED="ERR_CANCELED",fu.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",fu.ERR_INVALID_URL="ERR_INVALID_URL",fu.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function du(e){return Zs.isPlainObject(e)||Zs.isArray(e)}function pu(e){return Zs.endsWith(e,"[]")?e.slice(0,-2):e}function hu(e,t,n){return e?e.concat(t).map(function(e,t){return e=pu(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const gu=Zs.toFlatObject(Zs,{},null,function(e){return/^is[A-Z]/.test(e)});function bu(e,t,n){if(!Zs.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Zs.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Zs.isUndefined(t[e])})).metaTokens,o=n.visitor||f,i=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===n.maxDepth?100:n.maxDepth,l=s&&Zs.isSpecCompliantForm(t);if(!Zs.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Zs.isDate(e))return e.toISOString();if(Zs.isBoolean(e))return e.toString();if(!l&&Zs.isBlob(e))throw new fu("Blob is not supported. Use a Buffer instead.");return Zs.isArrayBuffer(e)||Zs.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,n,o){let s=e;if(Zs.isReactNative(t)&&Zs.isReactNativeBlob(e))return t.append(hu(o,n,i),c(e)),!1;if(e&&!o&&"object"==typeof e)if(Zs.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Zs.isArray(e)&&function(e){return Zs.isArray(e)&&!e.some(du)}(e)||(Zs.isFileList(e)||Zs.endsWith(n,"[]"))&&(s=Zs.toArray(e)))return n=pu(n),s.forEach(function(e,r){!Zs.isUndefined(e)&&null!==e&&t.append(!0===a?hu([n],r,i):null===a?n:n+"[]",c(e))}),!1;return!!du(e)||(t.append(hu(o,n,i),c(e)),!1)}const d=[],p=Object.assign(gu,{defaultVisitor:f,convertValue:c,isVisitable:du});if(!Zs.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!Zs.isUndefined(n)){if(i>u)throw new fu("Object is too deeply nested ("+i+" levels). Max depth: "+u,fu.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),Zs.forEach(n,function(n,a){!0===(!(Zs.isUndefined(n)||null===n)&&o.call(t,n,Zs.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a],i+1)}),d.pop()}}(e),t}function yu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function mu(e,t){this._pairs=[],e&&bu(e,this,t)}const vu=mu.prototype;function _u(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function wu(e,t,n){if(!t)return e;const r=n&&n.encode||_u,o=Zs.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(t,o):Zs.isURLSearchParams(t)?t.toString():new mu(t,o).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}vu.append=function(e,t){this._pairs.push([e,t])},vu.toString=function(e){const t=e?function(t){return e.call(this,t,yu)}:yu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Su{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Zs.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Ou={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},ju={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:mu,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const xu="undefined"!=typeof window&&"undefined"!=typeof document,ku="object"==typeof navigator&&navigator||void 0,Eu=xu&&(!ku||["ReactNative","NativeScript","NS"].indexOf(ku.product)<0),Ru="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Pu=xu&&window.location.href||"http://localhost";var Cu={...Object.freeze({__proto__:null,hasBrowserEnv:xu,hasStandardBrowserEnv:Eu,hasStandardBrowserWebWorkerEnv:Ru,navigator:ku,origin:Pu}),...ju};function Au(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Zs.isArray(r)?r.length:i,s)return Zs.hasOwnProp(r,i)?r[i]=Zs.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a;Zs.hasOwnProp(r,i)&&Zs.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Zs.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Zs.isFormData(e)&&Zs.isFunction(e.entries)){const n={};return Zs.forEachEntry(e,(e,r)=>{t(function(e){return Zs.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Tu=(e,t)=>null!=e&&Zs.hasOwnProp(e,t)?e[t]:void 0;const Mu={transitional:Ou,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Zs.isObject(e);o&&Zs.isHTMLForm(e)&&(e=new FormData(e));if(Zs.isFormData(e))return r?JSON.stringify(Au(e)):e;if(Zs.isArrayBuffer(e)||Zs.isBuffer(e)||Zs.isStream(e)||Zs.isFile(e)||Zs.isBlob(e)||Zs.isReadableStream(e))return e;if(Zs.isArrayBufferView(e))return e.buffer;if(Zs.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=Tu(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return bu(e,new Cu.classes.URLSearchParams,{visitor:function(e,t,n,r){return Cu.isNode&&Zs.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Zs.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Tu(this,"env"),r=n&&n.FormData;return bu(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Zs.isString(e))try{return(t||JSON.parse)(e),Zs.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Tu(this,"transitional")||Mu.transitional,n=t&&t.forcedJSONParsing,r=Tu(this,"responseType"),o="json"===r;if(Zs.isResponse(e)||Zs.isReadableStream(e))return e;if(e&&Zs.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Tu(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw fu.from(e,fu.ERR_BAD_RESPONSE,this,null,Tu(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cu.classes.FormData,Blob:Cu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Nu(e,t){const n=this||Mu,r=t||n,o=lu.from(r.headers);let i=r.data;return Zs.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Lu(e){return!(!e||!e.__CANCEL__)}Zs.forEach(["delete","get","head","post","put","patch","query"],e=>{Mu.headers[e]={}});let Iu=class extends fu{constructor(e,t,n){super(null==e?"canceled":e,fu.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Fu(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new fu("Request failed with status code "+n.status,n.status>=400&&n.status<500?fu.ERR_BAD_REQUEST:fu.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Du=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),l=r[a];o||(o=u),n[i]=s,r[i]=u;let c=a,f=0;for(;c!==i;)f+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=l&&u-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{if(!n||"number"!=typeof n.loaded)return;const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,u=Math.max(0,s-r),l=o(u);r=Math.max(r,s);e({loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},zu=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Uu=e=>(...t)=>Zs.asap(()=>e(...t));var qu=Cu.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Cu.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Cu.origin),Cu.navigator&&/(msie|trident)/i.test(Cu.navigator.userAgent)):()=>!0,Bu=Cu.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Zs.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Zs.isString(r)&&s.push(`path=${r}`),Zs.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Zs.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Hu(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Vu=e=>e instanceof lu?{...e}:e;function $u(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return Zs.isPlainObject(e)&&Zs.isPlainObject(t)?Zs.merge.call({caseless:r},e,t):Zs.isPlainObject(t)?Zs.merge({},t):Zs.isArray(t)?t.slice():t}function o(e,t,n,o){return Zs.isUndefined(t)?Zs.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Zs.isUndefined(t))return r(void 0,t)}function a(e,t){return Zs.isUndefined(t)?Zs.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return Zs.hasOwnProp(t,i)?r(n,o):Zs.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Vu(e),Vu(t),0,!0)};return Zs.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=Zs.hasOwnProp(u,r)?u[r]:o,a=i(Zs.hasOwnProp(e,r)?e[r]:void 0,Zs.hasOwnProp(t,r)?t[r]:void 0,r);Zs.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Wu=["content-type","content-length"];function Gu(e){const t=$u({},e),n=e=>Zs.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),a=n("xsrfCookieName");let s=n("headers");const u=n("auth"),l=n("baseURL"),c=n("allowAbsoluteUrls"),f=n("url");var d;if(t.headers=s=lu.from(s),t.url=wu(Hu(l,f,c),n("params"),n("paramsSerializer")),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?(d=u.password,encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),Zs.isFormData(r)&&(Cu.hasStandardBrowserEnv||Cu.hasStandardBrowserWebWorkerEnv||Zs.isReactNative(r)?s.setContentType(void 0):Zs.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{Wu.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),Cu.hasStandardBrowserEnv){Zs.isFunction(o)&&(o=o(t));if(!0===o||null==o&&qu(t.url)){const e=i&&a&&Bu.read(a);e&&s.set(i,e)}}return t}var Ku="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Gu(e);let o=r.data;const i=lu.from(r.headers).normalize();let a,s,u,l,c,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function b(){if(!g)return;const r=lu.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Fu(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(b)},g.onabort=function(){g&&(n(new fu("Request aborted",fu.ECONNABORTED,e,g)),h(),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new fu(r,fu.ERR_NETWORK,e,g);o.event=t||null,n(o),h(),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ou;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new fu(t,o.clarifyTimeoutError?fu.ETIMEDOUT:fu.ECONNABORTED,e,g)),h(),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&Zs.forEach(ou(i),function(e,t){g.setRequestHeader(t,e)}),Zs.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),f&&"json"!==f&&(g.responseType=r.responseType),p&&([u,c]=Du(p,!0),g.addEventListener("progress",u)),d&&g.upload&&([s,l]=Du(d),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new Iu(null,e,g):t),g.abort(),h(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!y||Cu.protocols.includes(y)?g.send(o||null):n(new fu("Unsupported protocol "+y+":",fu.ERR_BAD_REQUEST,e))})};const Ju=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof fu?t:new Iu(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new fu(`timeout of ${t}ms exceeded`,fu.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>Zs.asap(a),s},Yu=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Xu=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Qu=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Xu(e))yield*Yu(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})};const Zu="1.17.0",{isFunction:el}=Zs,tl=e=>{if(!Zs.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},nl=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},rl=e=>{const t=void 0!==Zs.global&&null!==Zs.global?Zs.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Zs.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?el(o):"function"==typeof fetch,u=el(i),l=el(a);if(!s)return!1;const c=s&&el(n),f=s&&("function"==typeof r?(d=new r,e=>d.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var d;const p=u&&c&&nl(()=>{let e=!1;const t=new i(Cu.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),h=l&&c&&nl(()=>Zs.isReadableStream(new a("").body)),g={stream:h&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new fu(`Response type '${e}' is not supported`,fu.ERR_NOT_SUPPORT,n)})});const b=async(e,t)=>{const n=Zs.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Zs.isBlob(e))return e.size;if(Zs.isSpecCompliantForm(e)){const t=new i(Cu.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Zs.isArrayBufferView(e)||Zs.isArrayBuffer(e)?e.byteLength:(Zs.isURLSearchParams(e)&&(e+=""),Zs.isString(e)?(await f(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:c,timeout:f,onDownloadProgress:d,onUploadProgress:y,responseType:m,headers:v,withCredentials:_="same-origin",fetchOptions:w,maxContentLength:S,maxBodyLength:O}=Gu(e);const j=Zs.isNumber(S)&&S>-1,x=Zs.isNumber(O)&&O>-1;let k=o||fetch;m=m?(m+"").toLowerCase():"text";let E=Ju([l,c&&c.toAbortSignal()],f),R=null;const P=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let C;try{let o;const l=(T="auth",Zs.hasOwnProp(e,T)?e[T]:void 0);if(l){const e=l.username||"";o={username:e,password:l.password||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){const e=new URL(t,Cu.origin);if(!o&&(e.username||e.password)){const t=tl(e.username);o={username:t,password:tl(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(v.delete("authorization"),v.set("Authorization","Basic "+btoa((A=(o.username||"")+":"+(o.password||""),encodeURIComponent(A).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),j&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),o=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||i(o))&&n++;const a=3*Math.floor(e/4)-(n||0);return a>0?a:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=r.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(n>S)throw new fu("maxContentLength size of "+S+" exceeded",fu.ERR_BAD_RESPONSE,e,R)}if(x&&"get"!==n&&"head"!==n){const t=await b(v,s);if("number"==typeof t&&isFinite(t)&&t>O)throw new fu("Request body larger than maxBodyLength limit",fu.ERR_BAD_REQUEST,e,R)}if(y&&p&&"get"!==n&&"head"!==n&&0!==(C=await b(v,s))){let e,n=new i(t,{method:"POST",body:s,duplex:"half"});if(Zs.isFormData(s)&&(e=n.headers.get("content-type"))&&v.setContentType(e),n.body){const[e,t]=zu(C,Du(Uu(y)));s=Qu(n.body,65536,e,t)}}Zs.isString(_)||(_=_?"include":"omit");const c=u&&"credentials"in i.prototype;if(Zs.isFormData(s)){const e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}v.set("User-Agent","axios/"+Zu,!1);const f={...w,signal:E,method:n.toUpperCase(),headers:ou(v.normalize()),body:s,duplex:"half",credentials:c?_:void 0};R=u&&new i(t,f);let M=await(u?k(R,w):k(t,f));if(j){const t=Zs.toFiniteNumber(M.headers.get("content-length"));if(null!=t&&t>S)throw new fu("maxContentLength size of "+S+" exceeded",fu.ERR_BAD_RESPONSE,e,R)}const N=h&&("stream"===m||"response"===m);if(h&&M.body&&(d||j||N&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const n=Zs.toFiniteNumber(M.headers.get("content-length")),[r,o]=d&&zu(n,Du(Uu(d),!0))||[];let i=0;const s=t=>{if(j&&(i=t,i>S))throw new fu("maxContentLength size of "+S+" exceeded",fu.ERR_BAD_RESPONSE,e,R);r&&r(t)};M=new a(Qu(M.body,65536,s,()=>{o&&o(),P&&P()}),t)}m=m||"text";let L=await g[Zs.findKey(g,m)||"text"](M,e);if(j&&!h&&!N){let t;if(null!=L&&("number"==typeof L.byteLength?t=L.byteLength:"number"==typeof L.size?t=L.size:"string"==typeof L&&(t="function"==typeof r?(new r).encode(L).byteLength:L.length)),"number"==typeof t&&t>S)throw new fu("maxContentLength size of "+S+" exceeded",fu.ERR_BAD_RESPONSE,e,R)}return!N&&P&&P(),await new Promise((t,n)=>{Fu(t,n,{data:L,headers:lu.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:R})})}catch(t){if(P&&P(),E&&E.aborted&&E.reason instanceof fu){const n=E.reason;throw n.config=e,R&&(n.request=R),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new fu("Network Error",fu.ERR_NETWORK,e,R,t&&t.response),{cause:t.cause||t});throw fu.from(t,t&&t.code,e,R,t&&t.response)}var A,T}},ol=new Map,il=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,u=i.length,l=ol;for(;u--;)a=i[u],s=l.get(a),void 0===s&&l.set(a,s=u?new Map:rl(t)),l=s;return s};il();const al={http:null,xhr:Ku,fetch:{get:il}};Zs.forEach(al,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const sl=e=>`- ${e}`,ul=e=>Zs.isFunction(e)||null===e||!1===e;var ll={getAdapter:function(e,t){e=Zs.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!ul(r)&&(o=al[(n=String(r)).toLowerCase()],void 0===o))throw new fu(`Unknown adapter '${n}'`);if(o&&(Zs.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(sl).join("\n"):" "+sl(e[0]):"as no adapter specified";throw new fu("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:al};function cl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Iu(null,e)}function fl(e){cl(e),e.headers=lu.from(e.headers),e.data=Nu.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ll.getAdapter(e.adapter||Mu.adapter,e)(e).then(function(t){cl(e),e.response=t;try{t.data=Nu.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=lu.from(t.headers),t},function(t){if(!Lu(t)&&(cl(e),t&&t.response)){e.response=t.response;try{t.response.data=Nu.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=lu.from(t.response.headers)}return Promise.reject(t)})}const dl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dl[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const pl={};dl.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Zu+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new fu(r(o," has been removed"+(t?" in "+t:"")),fu.ERR_DEPRECATED);return t&&!pl[o]&&(pl[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},dl.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var hl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new fu("options must be an object",fu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new fu("option "+i+" must be "+n,fu.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new fu("Unknown option "+i,fu.ERR_BAD_OPTION)}},validators:dl};const gl=hl.validators;let bl=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Su,response:new Su}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$u(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&hl.assertOptions(n,{silentJSONParsing:gl.transitional(gl.boolean),forcedJSONParsing:gl.transitional(gl.boolean),clarifyTimeoutError:gl.transitional(gl.boolean),legacyInterceptorReqResOrdering:gl.transitional(gl.boolean),advertiseZstdAcceptEncoding:gl.transitional(gl.boolean)},!1),null!=r&&(Zs.isFunction(r)?t.paramsSerializer={serialize:r}:hl.assertOptions(r,{encode:gl.function,serialize:gl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),hl.assertOptions(t,{baseUrl:gl.spelling("baseURL"),withXsrfToken:gl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Zs.merge(o.common,o[t.method]);o&&Zs.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=lu.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Ou;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const u=[];let l;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let c,f=0;if(!s){const e=[fl.bind(this),void 0];for(e.unshift(...a),e.push(...u),c=e.length,l=Promise.resolve(t);f<c;)l=l.then(e[f++],e[f++]);return l}c=a.length;let d=t;for(;f<c;){const e=a[f++],t=a[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=fl.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,c=u.length;f<c;)l=l.then(u[f++],u[f++]);return l}getUri(e){return wu(Hu((e=$u(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Zs.forEach(["delete","get","head","options"],function(e){bl.prototype[e]=function(t,n){return this.request($u(n||{},{method:e,url:t,data:(n||{}).data}))}}),Zs.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request($u(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}bl.prototype[e]=t(),"query"!==e&&(bl.prototype[e+"Form"]=t(!0))});const yl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yl).forEach(([e,t])=>{yl[t]=e});const ml=function e(t){const n=new bl(t),r=as(bl.prototype.request,n);return Zs.extend(r,bl.prototype,n,{allOwnKeys:!0}),Zs.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e($u(t,n))},r}(Mu);ml.Axios=bl,ml.CanceledError=Iu,ml.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Iu(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},ml.isCancel=Lu,ml.VERSION=Zu,ml.toFormData=bu,ml.AxiosError=fu,ml.Cancel=ml.CanceledError,ml.all=function(e){return Promise.all(e)},ml.spread=function(e){return function(t){return e.apply(null,t)}},ml.isAxiosError=function(e){return Zs.isObject(e)&&!0===e.isAxiosError},ml.mergeConfig=$u,ml.AxiosHeaders=lu,ml.formToJSON=e=>Au(Zs.isHTMLForm(e)?new FormData(e):e),ml.getAdapter=ll.getAdapter,ml.HttpStatusCode=yl,ml.default=ml;const{Axios:vl,AxiosError:_l,CanceledError:wl,isCancel:Sl,CancelToken:Ol,VERSION:jl,all:xl,Cancel:kl,isAxiosError:El,spread:Rl,toFormData:Pl,AxiosHeaders:Cl,HttpStatusCode:Al,formToJSON:Tl,getAdapter:Ml,mergeConfig:Nl,create:Ll}=ml;function Il(e,t){return e?Object.keys(e).map(n=>{const r=t||n,o=e[n];return"object"==typeof o?Il(o,r):`${encodeURIComponent(r)}=${encodeURIComponent(o)}`}).join("&"):""}function Fl(e,t){return ml.get(encodeURI(e)+(t?(-1===e.search(/\?/)?"?":"&")+Il(t):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then(e=>e.data)}function Dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ul(e,t,n,r,o,i,a,s){const u=e?e.trim():null;if(null==u||u.length<1||a&&!a.test(u))return Promise.resolve([]);const l=i||"https://api.digitransit.fi/geocoding/v1/search";let c=zl(zl(zl({text:u},t),r),{},{lang:n});if(o&&(c=zl(zl({},c),{},{sources:o})),s){const e=s.toString();c=zl(zl({},c),{},{layers:e})}return Fl(l,c).then(e=>e.features)}function ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hl(e,t){if(!e||e.length<1)return Promise.resolve([]);let n="";const r=e.map(e=>{const t="stop"===e.type?"stop":"station";let r=`gtfs${e.gtfsId.split(":")[0].toLowerCase()}:${t}:GTFS:${e.gtfsId}`;return e.code&&(r+=`#${e.code}`),n+=`${r},`,Bl(Bl({},e),{},{gid:r})}).reduce(function(e,t){return e[t.gid]=t,e},{});return Fl(t,{ids:n.slice(0,-1)}).then(e=>e.features.map(e=>({type:"FavouriteStop",properties:{addendum:e.properties.addendum,gid:r[e.properties.gid].gid,code:r[e.properties.gid].code,gtfsId:r[e.properties.gid].gtfsId,lastUpdated:r[e.properties.gid].lastUpdated,favouriteId:r[e.properties.gid].favouriteId,address:e.properties.label,layer:es(e.properties)?"favouriteStop":"favouriteStation"},geometry:e.geometry})))}function Vl(e,t,n){let r=is(e,t,["properties.name","properties.label","properties.address","properties.shortName","properties.longName"]);return n&&(r=r.filter(e=>!n.includes(e.properties.layer))),Promise.resolve(qe(r,10).map(e=>{const t=Bl(Bl({},e),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete t.properties.confidence,t}))}const $l=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],Wl=["venue","address","street"],Gl=["carpark","bikepark"],Kl=["stop","station"];const Jl=Oe(function(e,t,n,r,o,i,{input:a},s,u,l){const{getPositions:c,getFavouriteLocations:f,getOldSearches:d,getFavouriteStops:p,parkingAreaSources:h,getLanguage:g,getStopAndStationsQuery:b,getFavouriteVehicleRentalStationsQuery:y,getFavouriteVehicleRentalStations:m,getFavouriteRoutesQuery:v,getFavouriteRoutes:_,getRoutesQuery:w,context:S,isPeliasLocationAware:O,minimalRegexp:j,lineRegexp:x,URL_PELIAS:k,URL_PELIAS_PLACE:E,feedIDs:R,geocodingSearchParams:P,geocodingSources:C,getFutureRoutes:A,cityBikeNetworks:T}=r,M=!e||0===e.length,N=!t||0===t.length,L=c(S),I=[],F={type:"all",term:a,results:[]},D=g(S),z=O&&l?.lat&&l?.lon?{"focus.point.lat":l.lat.toFixed(3),"focus.point.lon":l.lon.toFixed(3)}:{},U=n?n.split("-")[1]:void 0;if(e.includes("CurrentPosition")&&"geolocation-not-supported"!==L.status&&I.push(function(e,t){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"CurrentLocation",address:t.address,lat:t.lat,lon:t.lon,properties:{labelId:"use-own-position",layer:"currentPosition",address:t.address,lat:t.lat,lon:t.lon},geometry:{type:"Point",coordinates:[t.lon,t.lat]}}]):Promise.resolve([])}(a,L)),(M||e.includes("MapPosition"))&&I.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromMap",address:"SelectFromMap",lat:null,lon:null,properties:{labelId:"select-from-map",layer:"selectFromMap",address:"SelectFromMap",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(a)),e.includes("FutureRoutes")){const e=A(S);I.push(qe(e,3))}if(e.includes("SelectFromOwnLocations")&&function(e){const t=e.getFavouriteLocations(e.context);if(t?.length>0)return!0;if("function"==typeof e.getHasOtpLocationFavourites)return!!e.getHasOtpLocationFavourites(e.context);const n=e.getFavouriteVehicleRentalStations(e.context);if(n?.length>0)return!0;const r=e.getFavouriteStops(e.context);return r?.length>0}(r)&&I.push(function(e){return"string"!=typeof e||0===e.length?Promise.resolve([{type:"SelectFromOwnLocations",address:"SelectFromOwnLocations",lat:null,lon:null,properties:{labelId:"select-from-own-locations",layer:"ownLocations",address:"selectFromOwnLocations",lat:null,lon:null},geometry:{type:"Point",coordinates:[]}}]):Promise.resolve([])}(a)),M||e.includes("Locations")){const n=P;if(t.includes("Favourite")){const e=f(S);I.push(function(e,t){return Promise.resolve(is(e,t,["address","name"]).map(e=>({type:"FavouritePlace",properties:Bl(Bl({},e),{},{label:e.name,layer:"favouritePlace"}),geometry:{type:"Point",coordinates:[e.lon,e.lat]}})))}(e,a)),t.includes("Back")&&I.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(N||t.includes("Datasource")){const t=["venue","address","street"];e.includes("Stations")&&t.push("station"),I.push(Ul(a,n,D,z,C.join(","),k,j,t))}if(N||t.includes("History")){const e=d("endpoint"),t=["bikestation"];t.push(...Kl),t.push(...$l),t.push(...Gl),I.push(Vl(e,a,t))}}if(M||e.includes("ParkingAreas")){if(N||t.includes("Datasource")){const e=P;i&&10!==i&&(e.size=i);const t=["carpark","bikepark"],n=h?h.join(","):null;I.push(Ul(a,e,D,z,n,k,j,t).then(e=>o?o(e,U):e))}if(N||t.includes("History")){const e=d(),t=["bikestation"];t.push(...Kl),t.push(...$l),t.push(...Wl),I.push(Vl(e,a,t))}}const q=e.includes("Stops"),B=e.includes("Stations");if(M||q||B){if(t.includes("Favourite")){const e=p(S);let t;t=e.every(e=>"station"===e.type)?Hl(e,E).then(e=>o?o(e,U):e):b(e).then(e=>Hl(e,E)).then(e=>o?o(e,U):e),I.push(function(e,t,n,r){return e.then(e=>is(e.filter(e=>"stop"===e.type?n:r),t,["properties.name","properties.name","properties.address"]))}(t,a,q,B))}if(N||t.includes("Datasource")){const t=[];q&&t.push("stop"),B&&t.push("station");const n=i&&10!==i?{size:i}:{};P&&P["boundary.country"]&&(n["boundary.country"]=P["boundary.country"]),(M||e.includes("Locations"))&&(n.dedupestops=1);const r=R.map(e=>`gtfs${e}`).join(",");I.push(Ul(a,n,D,z,r,k,j,t).then(e=>o?o(e,U):e))}if(N||t.includes("History")){const e=d().filter(e=>!e.properties.gid||e.properties.gid.includes("GTFS:")),t=["bikestation"];t.push(...$l),t.push(...Wl),t.push(...Gl),q||t.push("stop"),B||t.push("station"),n?I.push(Vl(e,a,t).then(e=>o?o(e,U):e)):I.push(Vl(e,a,t))}}if(M||e.includes("Routes")){if(t.includes("Favourite")){const e=_(S);I.push(v(e,a,U,u).then(e=>o?o(e,U,"Routes"):e))}if(I.push(w(a,R,n,u).then(e=>o?o(e,U,"Routes"):e)),N||t.includes("History")){const e=d(),t=["bikestation"];n&&t.push(...$l.filter(e=>!(e===n))),t.push(...Kl),t.push(...Wl),t.push(...Gl),I.push(Vl(e,a,t).then(e=>o?o(e,U,"Routes"):e))}}if(M||e.includes("VehicleRentalStations")){if(t.includes("Favourite")){const e=m(S);I.push(y(e,a))}if(N||t.includes("Datasource")){const e=["bikestation"],t=i&&10!==i?{size:i}:{};I.push(Ul(a,t,D,z,T.join(","),k,j,e).then(e=>o?o(e,U,"VehicleRentalStations"):e))}if(N||t.includes("History")){const e=d(),t=[...Kl];t.push(...$l),t.push(...Wl),t.push(...Gl),I.push(Vl(e,a,t))}}Promise.all(I).then(Ie).then(e=>{F.results=e}).catch(e=>{F.error=e}).then(()=>{s(Bl(Bl({},F),{},{results:ns(x,F.results,a)}))})},300,{leading:!0}),Yl=s.createInstance({fallbackLng:"fi",resources:{de:{translation:{"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}}",address:"Adresse","address-place-or-business":"Adress, Ort or Geschäft",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",favourite:"Favoriten",ferry:"Fähre","future-route":"Zukünftige Verbindung","give-destination":"Ziel eingeben.","give-origin":"Start eingeben.",loading:"Laden...","minute-short":"min",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Eigene Favoriten",place:"Ort",rail:"Zug",search:"Suche","search-address-or-place":"Suche anhand von Adresse oder Ortsangabe","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-button-label":"Suche","search-current-suggestion":"Aktuelle Auswahl: {{selection}}","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","select-from-map":"Wähle Position anhand Karte","select-from-own-locations":"Aus eigenen Favoriten auswählen",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",street:"Straße",subway:"U-Bahn","today-at":"Heute um","tomorrow-at":"Morgen um",tram:"Straßenbahn","use-own-position":"Benutze aktuellen Standort",venue:"Venue","via-point":"Zwischenziel",where:"Wohin?"}},en:{translation:{"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}}",address:"Address","address-place-or-business":"Address, place or business",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",favourite:"Favourite",ferry:"Ferry","future-route":"Future route","give-destination":"Enter your destination","give-origin":"Enter your origin.",loading:"Loading...","minute-short":"m",origin:"Start","origin-stop-near-you":"Start",ownlocations:"Own locations",place:"Location",platform:"Platform",rail:"Train",required:"required field",search:"Search","search-address-or-place":"Search by address or place name","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-button-label":"Search","search-current-suggestion":"Current selection: {{selection}}","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","select-from-map":"Select position from map","select-from-own-locations":"Select from own locations",station:"Station",stop:"Stop","stop-near-you":"Search stops and routes","stop-near-you-airplane":"Search flights or airports","stop-near-you-bikepark":"Search bike parks","stop-near-you-bus":"Search bus routes or stops","stop-near-you-carpark":"Search car parks","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",street:"Street",subway:"Metro","today-at":"today at","tomorrow-at":"tomorrow at",track:"Track",tram:"Tram","use-own-position":"Use current location",venue:"Venue","via-point":"Via point",where:"Where to?"}},fi:{translation:{"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",address:"Osoite","address-place-or-business":"Osoite, paikka tai yritys",airplane:"Lentokone",arrival:"Perillä",back:"Takaisin",bikepark:"Liityntäpysäköinti",bikerentalstation:"Pyöräasema",bus:"bussi",cancel:"Peruuta",carpark:"Liityntäpysäköinti","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-destination":"Määränpää","give-origin":"Lähtöpaikka",loading:"Ladataan...","minute-short":"min",origin:"Lähtöpaikka","origin-stop-near-you":"Lähtöpaikka",ownlocations:"Omat paikat",place:"Paikka",platform:"Laituri",rail:"Juna",required:"pakollinen kenttä",search:"Etsi","search-address-or-place":"Hae osoitteella tai paikan nimellä","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-button-label":"Hae","search-current-suggestion":"Tämänhetkinen valinta: {{selection}}","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-position":"Paikanna","select-from-map":"Valitse sijainti kartalta","select-from-own-locations":"Valitse omista paikoista",station:"Asema",stop:"Pysäkki","stop-near-you":"Linja, pysäkki tai asema","stop-near-you-airplane":"Hae lentoja tai lentoasemaa","stop-near-you-bikepark":"Hae pyöräparkkia","stop-near-you-bus":"Hae bussilinjaa tai pysäkkiä","stop-near-you-carpark":"Hae autoparkkia","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",street:"Katu",subway:"Metro","today-at":"tänään klo","tomorrow-at":"huomenna klo",track:"Raide",tram:"Raitiovaunu","use-own-position":"Käytä nykyistä sijaintia",venue:"Paikka","via-point":"Välipiste",where:"Minne mennään?"}},pl:{translation:{"add-via-button-label":"Dodaj punkt pośredni","add-via-duration-button-label":"Wybierz czas postoju dla punktu {{index}}","add-via-duration-button-label-close":"Zamknij wybornik czasu postoju w punkcie {{index}}","add-via-duration-button-label-open":"Otwórz wybornik czasu postoju w punkcie {{index}}",address:"Adres","address-place-or-business":"Adres, miejsce lub firma",airplane:"Lot",arrival:"Przyjazd",back:"Wróć",bikepark:"Parkuj i Jedź dla rowerów",bikerentalstation:"Stacja rowerowa",bus:"autobus",cancel:"Anuluj",carpark:"Parkuj i Jedź","clear-button-label":"Wyczyść","clear-search-history":"Wyczyść historię wyszukiwania",currentposition:"Obecne położenie",delete:"Usuń","delete-old-searches-header":"Czy na pewno chcesz wyczyścić historię wyszukiwania?",departure:"Odjazd",destination:"Cel",favourite:"Ulubione",ferry:"Prom","future-route":"Przyszła trasa","give-destination":"Wprowadź swój cel","give-origin":"Wprowadź swój punkt początkowy.",loading:"Ładowanie…","minute-short":"min.",origin:"Początek","origin-stop-near-you":"Początek",ownlocations:"Własne miejsca",place:"Miejsce",platform:"Peron",rail:"Pociąg",required:"wymagane pole",search:"Szukaj","search-address-or-place":"Szukaj po adresie lub nazwie miejsca","search-autosuggest-label":"Miejsce, lokalizacja i przystanek.","search-autosuggest-label-instructions-desktop":"Nawiguj po liście używając strzałek i wybieraj klawiszem Enter.","search-autosuggest-label-instructions-mobile":"Wprowadź lokalizację i nawiguj po liście gestami przesuwania.","search-autosuggest-label-move-to-destination":"Po wybraniu lokalizacji początkowej, automatycznie przejdziesz do pola miejsca docelowego.","search-autosuggest-len":"Dostępna jest {{count}} propozycja","search-autosuggest-len_few":"Dostępne są {{count}} propozycje","search-autosuggest-len_other":"Dostępne jest {{count}} propozycji","search-button-label":"Szukaj","search-current-suggestion":"Obecny wybór: {{selection}}","search-destination":"Szukaj celu, trasy lub przystanku","search-destination-index":"Wprowadź punkt docelowy","search-destination-results-but-no-search":"Wyświetl wyniki w sąsiedniej karcie „Cel”","search-no-results":"Brak lokalizacji","search-origin":"Wyszukaj początek, koniec lub punkt pośredni","search-origin-index":"Wprowadź punkt początkowy","search-position":"Wykryj lokalizację","select-from-map":"Wybierz miejsce na mapie","select-from-own-locations":"Wybierz z własnych miejsc",station:"Stacja",stop:"Przystanek","stop-near-you":"Szukaj przystanków i tras","stop-near-you-airplane":"Szukaj lotów i lotnisk","stop-near-you-bus":"Szukaj tras autobusowych i przystanków","stop-near-you-citybike":"Szukaj stacji rowerów miejskich","stop-near-you-rail":"Szukaj tras kolejowych i przystanków","stop-near-you-subway":"Szukaj tras metra i przystanków ","stop-near-you-tram":"Szukaj tras tramwajowych i przystanków","stop-route-station":"Wyszukiwanie autobusów i przystanków",street:"Ulica",subway:"Metro","today-at":"dziś o","tomorrow-at":"jutro o",track:"Tor",tram:"Tramwaj","use-own-position":"Użyj obecnej lokalizacji",venue:"Miejsce","via-point":"Przez punkt",where:"Dokąd?"}},sv:{translation:{"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}}",address:"Adress","address-place-or-business":"Adress, plats eller företag",airplane:"Flyg",arrival:"Anländer",back:"Tillbaka",bikepark:"Anslutningsparkering för cyklar",bikerentalstation:"Stadscykelstation",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",loading:"Laddar...","minute-short":"min",origin:"Avfärdsplats","origin-stop-near-you":"Avfärdsplats",ownlocations:"Egna platser",place:"Plats",platform:"Plattform",rail:"Tåg",required:"obligatoriskt fält",search:"Sök","search-address-or-place":"Sök med adressen eller platsens namn","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-autosuggest-len_plural":"Hittade {{count}} förslag","search-button-label":"Sök","search-current-suggestion":"Nuvarande val: {{selection}}","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","select-from-map":"Välj position från kartan","select-from-own-locations":"Välj från egna platser",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-bikepark":"Sök cykelparkering","stop-near-you-bus":"Sök busslinjer eller hållplatser","stop-near-you-carpark":"Sök anslutningsparkering","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",street:"Gata",subway:"Metro","today-at":"i dag kl","tomorrow-at":"i morgon",track:"Spår",tram:"Spårvagn","use-own-position":"Använd min position",venue:"Mötesplats","via-point":"Via punkt",where:"Vart vill du åka?"}}},defaultNS:"translation",react:{useSuspense:!0}});function Xl(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Yl.init();var Ql,Zl,ec={container:"styles_container__YKW96",input:"styles_input__--GRS",favourite:"styles_favourite__VJm6c",thin:"styles_thin__dDVH9",hasValue:"styles_hasValue__JCbDo",suggestionsContainerOpen:"styles_suggestionsContainerOpen__ARBAD",suggestionsContainer:"styles_suggestionsContainer__FCLTy",suggestionsList:"styles_suggestionsList__uyd8R",suggestion:"styles_suggestion__yZzst",suggestionHighlighted:"styles_suggestionHighlighted__4-yqj","autosuggest-input-container":"styles_autosuggest-input-container__d7zo4",origin:"styles_origin__3BSEn",destination:"styles_destination__VSQ-a","stop-route-station":"styles_stop-route-station__Gcetf","autosuggest-input-icon":"styles_autosuggest-input-icon__4ww0f","origin-stop-near-you":"styles_origin-stop-near-you__NhZ-N","clear-input":"styles_clear-input__CYTYl","sr-only":"styles_sr-only__N8Ha-",hidden:"styles_hidden__iNw4s"};Xl("input[type=text] {\n margin: 0;\n}\n\n.styles_container__YKW96 {\n display: flex;\n width: 100%;\n}\n.styles_container__YKW96 .styles_input__--GRS.styles_favourite__VJm6c {\n padding-left: 47px;\n}\n.styles_container__YKW96 .styles_input__--GRS.styles_thin__dDVH9 {\n height: 34px;\n}\n.styles_container__YKW96 .styles_input__--GRS {\n font-size: 16px;\n font-family: inherit;\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}\n.styles_container__YKW96 .styles_input__--GRS:focus {\n background: #fff;\n outline: none;\n border: solid 1px var(--color);\n box-shadow: 0 0 2px 1px var(--hover-color);\n}\n@media screen and (min-width: 768px) {\n .styles_container__YKW96 .styles_input__--GRS {\n font-size: 15px;\n height: 44px;\n padding-left: 49px;\n }\n}\n.styles_container__YKW96 .styles_input__--GRS::placeholder {\n color: #666;\n opacity: 1;\n font-size: 15px;\n}\n\n.styles_hasValue__JCbDo {\n color: #333;\n}\n\n.styles_suggestionsContainerOpen__ARBAD {\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(2.625rem + 9px);\n z-index: 20;\n}\n\n.styles_suggestionsContainer__FCLTy {\n background-color: white;\n z-index: 20;\n}\n.styles_suggestionsContainer__FCLTy .styles_suggestionsList__uyd8R {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background: white;\n}\n.styles_suggestionsContainer__FCLTy .styles_suggestionsList__uyd8R li:hover {\n background: #f2f5f7;\n}\n\n.styles_suggestion__yZzst {\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 z-index: 20;\n}\n\n.styles_suggestionHighlighted__4-yqj {\n background-color: #f2f5f7;\n}\n\n.styles_autosuggest-input-container__d7zo4 {\n position: relative;\n width: 100%;\n}\n.styles_autosuggest-input-container__d7zo4.styles_origin__3BSEn {\n z-index: 16;\n}\n.styles_autosuggest-input-container__d7zo4.styles_destination__VSQ-a {\n z-index: 10;\n}\n.styles_autosuggest-input-container__d7zo4.styles_stop-route-station__Gcetf {\n z-index: 9;\n}\n\n.styles_autosuggest-input-icon__4ww0f {\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}\n.styles_autosuggest-input-icon__4ww0f svg {\n width: 16px;\n height: 24px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_origin__3BSEn svg {\n color: #4ea700;\n fill: #4ea700;\n width: 16px;\n height: 16px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_destination__VSQ-a svg {\n fill: #ec5188;\n width: 16px;\n height: 24px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_stop-route-station__Gcetf svg, .styles_autosuggest-input-icon__4ww0f.styles_favourite__VJm6c svg {\n fill: #888;\n width: 16px;\n height: 16px;\n}\n.styles_autosuggest-input-icon__4ww0f.styles_origin-stop-near-you__NhZ-N svg {\n fill: #888;\n width: 16px;\n height: 16px;\n}\n\nbutton.styles_clear-input__CYTYl {\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}\nbutton.styles_clear-input__CYTYl svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.styles_clear-input__CYTYl: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}\nbutton.styles_clear-input__CYTYl:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.styles_clear-input__CYTYl:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.styles_sr-only__N8Ha-:not(:focus, :active) {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n.styles_hidden__iNw4s {\n visibility: hidden;\n}"),function(){if(Zl)return Ql;Zl=1;var e=Wi();Ql=function(t,n){return e(t,n)}}();var tc,nc,rc=Q(wr());var oc,ic,ac,sc,uc,lc,cc,fc,dc,pc,hc,gc,bc,yc,mc,vc,_c,wc,Sc,Oc,jc=function(){if(nc)return tc;nc=1;var e=Or(),t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return tc=function(r){return(r=e(r))&&n.test(r)?r.replace(t,"\\$&"):r}}(),xc=Q(jc);function kc(){if(lc)return uc;lc=1;var e=function(){if(sc)return ac;sc=1;var e=dr(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return ac=t}();return uc=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function Ec(){if(fc)return cc;fc=1;var e=kc(),t=gr(),n=Object.prototype.hasOwnProperty;return cc=function(r,o,i){var a=r[o];n.call(r,o)&&t(a,i)&&(void 0!==i||o in r)||e(r,o,i)}}function Rc(){if(pc)return dc;pc=1;var e=Ec(),t=kc();return dc=function(n,r,o,i){var a=!o;o||(o={});for(var s=-1,u=r.length;++s<u;){var l=r[s],c=i?i(o[l],n[l],l,o,n):void 0;void 0===c&&(c=n[l]),a?t(o,l,c):e(o,l,c)}return o},dc}function Pc(){if(vc)return mc;vc=1;var e=Z(),t=Fi(),n=yc?bc:(yc=1,bc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),r=Object.prototype.hasOwnProperty;return mc=function(o){if(!e(o))return n(o);var i=t(o),a=[];for(var s in o)("constructor"!=s||!i&&r.call(o,s))&&a.push(s);return a}}function Cc(){if(wc)return _c;wc=1;var e=Ii(),t=Pc(),n=Ui();return _c=function(r){return n(r)?e(r,!0):t(r)}}var Ac,Tc,Mc,Nc,Lc,Ic,Fc,Dc,zc,Uc,qc,Bc,Hc,Vc,$c,Wc,Gc,Kc,Jc,Yc,Xc,Qc,Zc,ef,tf,nf,rf,of,af,sf,uf,lf,cf,ff,df,pf,hf,gf,bf,yf,mf,vf,_f,wf={exports:{}};function Sf(){if(Fc)return Ic;Fc=1;var e=Di()(Object.getPrototypeOf,Object);return Ic=e}function Of(){if(zc)return Dc;zc=1;var e=je(),t=Sf(),n=Ir(),r=Lr(),o=Object.getOwnPropertySymbols;return Dc=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function jf(){if(Gc)return Wc;Gc=1;var e=Ar();return Wc=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function xf(){if(rf)return nf;rf=1;var e=jf(),t=function(){if(Jc)return Kc;Jc=1;var e=jf();return Kc=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(Xc)return Yc;Xc=1;var e=/\w*$/;return Yc=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(Zc)return Qc;Zc=1;var e=re(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return Qc=function(e){return n?Object(n.call(e)):{}}}(),o=function(){if(tf)return ef;tf=1;var e=jf();return ef=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}();return nf=function(i,a,s){var u=i.constructor;switch(a){case"[object ArrayBuffer]":return e(i);case"[object Boolean]":case"[object Date]":return new u(+i);case"[object DataView]":return t(i,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(i,s);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(i);case"[object RegExp]":return n(i);case"[object Symbol]":return r(i)}}}function kf(){if(uf)return sf;uf=1;var e=function(){if(af)return of;af=1;var e=Z(),t=Object.create,n=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var o=new n;return n.prototype=void 0,o}}();return of=n}(),t=Sf(),n=Fi();return sf=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function Ef(){if(df)return ff;df=1;var e=function(){if(cf)return lf;cf=1;var e=Vi(),t=ie();return lf=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=Qr(),n=Ni(),r=n&&n.isMap,o=r?t(r):e;return ff=o}function Rf(){if(bf)return gf;bf=1;var e=function(){if(hf)return pf;hf=1;var e=Vi(),t=ie();return pf=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=Qr(),n=Ni(),r=n&&n.isSet,o=r?t(r):e;return gf=o}function Pf(){if(mf)return yf;mf=1;var e=Er(),t=(ic||(ic=1,oc=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),oc),n=Ec(),r=function(){if(gc)return hc;gc=1;var e=Rc(),t=qi();return hc=function(n,r){return n&&e(r,t(r),n)}}(),o=function(){if(Oc)return Sc;Oc=1;var e=Rc(),t=Cc();return Sc=function(n,r){return n&&e(r,t(r),n)}}(),i=(Ac||(Ac=1,function(e,t){var n=te(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(wf,wf.exports)),wf.exports),a=(Mc||(Mc=1,Tc=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),Tc),s=function(){if(Lc)return Nc;Lc=1;var e=Rc(),t=Ir();return Nc=function(n,r){return e(n,t(n),r)}}(),u=function(){if(qc)return Uc;qc=1;var e=Rc(),t=Of();return Uc=function(n,r){return e(n,t(n),r)}}(),l=Bi(),c=function(){if(Hc)return Bc;Hc=1;var e=Nr(),t=Of(),n=Cc();return Bc=function(r){return e(r,n,t)}}(),f=Vi(),d=function(){if($c)return Vc;$c=1;var e=Object.prototype.hasOwnProperty;return Vc=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}(),p=xf(),h=kf(),g=ke(),b=Jr(),y=Ef(),m=Z(),v=Rf(),_=qi(),w=Cc(),S="[object Arguments]",O="[object Function]",j="[object Object]",x={};return x[S]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x[j]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x[O]=x["[object WeakMap]"]=!1,yf=function k(E,R,P,C,A,T){var M,N=1&R,L=2&R,I=4&R;if(P&&(M=A?P(E,C,A,T):P(E)),void 0!==M)return M;if(!m(E))return E;var F=g(E);if(F){if(M=d(E),!N)return a(E,M)}else{var D=f(E),z=D==O||"[object GeneratorFunction]"==D;if(b(E))return i(E,N);if(D==j||D==S||z&&!A){if(M=L||z?{}:h(E),!N)return L?u(E,o(M,E)):s(E,r(M,E))}else{if(!x[D])return A?E:{};M=p(E,D,N)}}T||(T=new e);var U=T.get(E);if(U)return U;T.set(E,M),v(E)?E.forEach(function(e){M.add(k(e,R,P,e,E,T))}):y(E)&&E.forEach(function(e,t){M.set(t,k(e,R,P,t,E,T))});var q=F?void 0:(I?L?c:l:L?w:_)(E);return t(q||E,function(e,t){q&&(e=E[t=e]),n(M,t,k(e,R,P,t,E,T))}),M},yf}var Cf=Q(function(){if(_f)return vf;_f=1;var e=Pf();return vf=function(t){return e(t,5)}}());const Af=e=>e.localadmin||e.localadmin||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||"",Tf=({id:e,code:t})=>t||(void 0!==e&&void 0!==e.indexOf&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):void 0),Mf=rc((e,t=!1)=>{switch(e.layer){case"currentPosition":return[e.labelId,e.address];case"selectFromMap":case"ownLocations":case"back":return[e.labelId];case"favouritePlace":return n=e.name,r=e.address,[n||r&&r.split(",")[0],"string"==typeof r?r.replace(new RegExp(`${xc(n)}([ ,]|$)+`),""):""];case"favouriteVehicleRentalStation":case"bikestation":return[e.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!t&&e.shortName?[e.gtfsId,e.mode.toLowerCase(),e.longName]:[e.shortName,e.longName,e.agency?e.agency.name:void 0];case"venue":case"address":case"street":return[e.name,e.label.replace(new RegExp(`${xc(e.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return t?[e.name||e.label||e.address&&e.address.split(",")[0],Af(e)]:[e.name,e.id,Tf(e),Af(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],Af(e)]}var n,r},(e,t)=>{const n=Cf(e);return n.plain=t,n});const Nf=e=>e.scrollIntoView({block:"nearest"}),Lf=e=>{const t=e&&(e.key||e.which||e.keyCode)||"";return!(!t||![13," ","Spacebar"].concat([32,"Enter"]).includes(t))&&(e.preventDefault(),!0)},If=e=>"origin"===e||"destination"===e||"via-point"===e||"origin-stop-near-you"===e,Ff=(e,t,n)=>{if(!n)return;if(!e||!e.GTFS.platform)return;const{modes:r,platform:o}=e.GTFS;return[r&&"RAIL"===r[0]?n("track",{lng:t}):n("platform",{lng:t}),o]};function Df(e,t,n){if(!n)return;if("FutureRoute"!==e.type){if("SelectFromMap"===e.type)return["",n("select-from-map",{lng:t})];if("CurrentLocation"===e.type)return["",n("use-own-position",{lng:t})];if("SelectFromOwnLocations"===e.type)return["",n("select-from-own-locations",{lng:t})];let r,[o,i]=Mf(e.properties,!0);if(e.properties.layer.toLowerCase().includes("bikerental")||e.properties.layer.toLowerCase().includes("bikestation")){r=n("bikerentalstation",{lng:t});return[r,o,void 0,e.properties.labelId]}if("bikepark"===e.properties.layer)return r=n("bikepark",{lng:t}),[r,o,void 0,void 0];if("carpark"===e.properties.layer)return r=n("carpark",{lng:t}),[r,o,void 0,void 0];if(e.properties.mode)r=n(e.properties.mode.toLowerCase().replace("favourite",""),{lng:t});else{r=n(e.properties.layer.replace("route-","").toLowerCase().replace("favourite",""),{lng:t})}if(e.properties.id&&("stop"===e.properties.layer||"station"===e.properties.layer)){const a=Tf(e.properties),s=e.properties.addendum?.GTFS.modes,u=Ff(e.properties.addendum,t,n);return[r,rs(o,a),i,a,s,u]}if("favouriteStop"===e.properties.layer||"favouriteStation"===e.properties.layer){const{address:n,code:a}=e.properties;return[r,n?rs(n.split(",")[0],a):o,i,a,void 0,Ff(e.properties.addendum,t)]}return[r,o,i]}const{origin:r,destination:o}=e.properties,i=r.locality?`, ${r.locality} foobar`:"",a=o.locality?`, ${o.locality}`:"",s=r.name,u=o.name;return[n("future-route",{lng:t}),`${n("origin",{lng:t})} ${s}${i} ${n("destination",{lng:t})} ${u}${a}`,e.translatedText]}function zf(e,t,n){if(!n)return;const r=u.DateTime.fromSeconds(Number(e.properties.time)),o=u.DateTime.now();let i=e.properties.arriveBy?n("arrival",{lng:t}):n("departure",{lng:t});return i=r.hasSame(o,"day")?`${i} ${n("today-at")}`:r.hasSame(o.plus({days:1}),"day")?`${i} ${n("tomorrow-at",{lng:t})}`:`${i} ${r.toFormat("ccc d.L.")}`,i=`${i} ${r.toFormat("HH:mm")}`,i}const Uf=e=>"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){const t=Mf(e,!0);switch(e.layer){case"selectFromMap":case"currentPosition":case"ownLocations":case"back":return t[1]||t[0];case"favouriteVehicleRentalStation":case"favouritePlace":return t[0];default:return t.length>1&&""!==t[1]?t.join(", "):t[1]||t[0]}}(e.properties),qf=({suggestions:e,t:t,lng:n})=>{let r=[];const o=e[0];return o&&(o.type&&o.type.includes("Favourite")&&r.push(t("favourite",{lng:n})),r=r.concat(Df(e[0],n))),[...new Set(r)].join(" - ")};var Bf,Hf={exports:{}};
|
|
2
|
+
/*! For license information please see index.js.LICENSE.txt */var Vf=(Bf||(Bf=1,function(e){var t;"undefined"!=typeof self&&self,e.exports=(t=H.default,function(){var e={888:function(e,t,n){var r,o;o=void 0!==n.g?n.g:"undefined"!=typeof window?window:this,r=function(){return function(e){var t={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},n=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e},r=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),r=n.length,o=-1,i="",a=n.charCodeAt(0);++o<r;){if(0===(t=n.charCodeAt(o)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");i+=t>=1&&t<=31||127==t||0===o&&t>=48&&t<=57||1===o&&t>=48&&t<=57&&45===a?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(o):"\\"+n.charAt(o)}return"#"+i},o=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n},a=function(t,n,r){0===t&&document.body.focus(),r||(t.focus(),document.activeElement!==t&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))},s=function(t,n,r,o){if(n.emitEvents&&"function"==typeof e.CustomEvent){var i=new CustomEvent(t,{bubbles:!0,detail:{anchor:r,toggle:o}});document.dispatchEvent(i)}};return function(u,l){var c,f,d,p,h={cancelScroll:function(e){cancelAnimationFrame(p),p=null,e||s("scrollCancel",c)},animateScroll:function(r,u,l){h.cancelScroll();var f=n(c||t,l||{}),g="[object Number]"===Object.prototype.toString.call(r),b=g||!r.tagName?null:r;if(g||b){var y=e.pageYOffset;f.header&&!d&&(d=document.querySelector(f.header));var m,v,_,w=i(d),S=g?r:function(t,n,r,i){var a=0;if(t.offsetParent)do{a+=t.offsetTop,t=t.offsetParent}while(t);return a=Math.max(a-n-r,0),i&&(a=Math.min(a,o()-e.innerHeight)),a}(b,w,parseInt("function"==typeof f.offset?f.offset(r,u):f.offset,10),f.clip),O=S-y,j=o(),x=0,k=function(e,t){var n=t.speedAsDuration?t.speed:Math.abs(e/1e3*t.speed);return t.durationMax&&n>t.durationMax?t.durationMax:t.durationMin&&n<t.durationMin?t.durationMin:parseInt(n,10)}(O,f),E=function(t){m||(m=t),x+=t-m,_=y+O*function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t}(f,v=(v=0===k?0:x/k)>1?1:v),e.scrollTo(0,Math.floor(_)),function(t,n){var o=e.pageYOffset;if(t==n||o==n||(y<n&&e.innerHeight+o)>=j)return h.cancelScroll(!0),a(r,n,g),s("scrollStop",f,r,u),m=null,p=null,!0}(_,S)||(p=e.requestAnimationFrame(E),m=t)};0===e.pageYOffset&&e.scrollTo(0,0),function(e,t,n){t||history.pushState&&n.updateURL&&history.pushState({smoothScroll:JSON.stringify(n),anchor:e.id},document.title,e===document.documentElement?"#top":"#"+e.id)}(r,g,f),"matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches?a(r,Math.floor(S),!1):(s("scrollStart",f,r,u),h.cancelScroll(!0),e.requestAnimationFrame(E))}}},g=function(t){if(!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(f=t.target.closest(u))&&"a"===f.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&f.hostname===e.location.hostname&&f.pathname===e.location.pathname&&/#/.test(f.href)){var n,o;try{n=r(decodeURIComponent(f.hash))}catch(e){n=r(f.hash)}if("#"===n){if(!c.topOnEmptyHash)return;o=document.documentElement}else o=document.querySelector(n);(o=o||"#top"!==n?o:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),h.animateScroll(o,f))}},b=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(r(history.state.anchor)))||h.animateScroll(t,null,{updateURL:!1})}};return h.destroy=function(){c&&(document.removeEventListener("click",g,!1),e.removeEventListener("popstate",b,!1),h.cancelScroll(),c=null,f=null,d=null,p=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";h.destroy(),c=n(t,l||{}),d=c.header?document.querySelector(c.header):null,document.addEventListener("click",g,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",b,!1)}(),h}}(o)}.apply(t,[]),void 0===r||(e.exports=r)},432:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(47),t),o(n(926),t),o(n(349),t),o(n(137),t),o(n(729),t),o(n(383),t),o(n(450),t),o(n(358),t),o(n(753),t),o(n(869),t),o(n(352),t),o(n(446),t),o(n(164),t),o(n(305),t),o(n(502),t)},349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowNavigation=void 0;var r=n(156);t.useArrowNavigation=function(e){var t=e.listItems,n=e.onArrowUpOrDown,o=(0,r.useState)(0),i=o[0],a=o[1],s=(0,r.useCallback)(function(e){a(e)},[t]),u=function(e){var r=e.key;if(null==t?void 0:t.length)if("ArrowUp"===r)n&&n(),e.preventDefault(),s(i>0?i-1:t.length-1);else{if("ArrowDown"!==r)return;n&&n(),e.preventDefault(),i<t.length-1?s(i+1):s(0)}};return(0,r.useEffect)(function(){return window.addEventListener("keydown",u),function(){return window.removeEventListener("keydown",u)}}),(0,r.useEffect)(function(){s(0)},[t]),{selectedIndex:i}}},446:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useDebounce=void 0;var r=n(156);t.useDebounce=function(e,t){void 0===t&&(t=300);var n=(0,r.useState)(e),o=n[0],i=n[1];return(0,r.useEffect)(function(){var n=setTimeout(function(){i(e)},t);return function(){clearTimeout(n)}},[e,t]),o}},164:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementSize=void 0;var r=n(156);t.useElementSize=function(){var e,t,n=(0,r.useRef)(null);return[n,{width:null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.clientWidth,height:null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.clientHeight}]},t.default=t.useElementSize},137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersectionObserver=void 0;var r=n(156);t.useIntersectionObserver=function(e){var t=(0,r.useRef)(null),n=(0,r.useState)(!1),o=n[0],i=n[1],a=function(e){var t=e[0];i(t.isIntersecting)};return(0,r.useEffect)(function(){if(window&&window.IntersectionObserver){var n=new IntersectionObserver(a,e),r=t.current;return t.current&&n.observe(t.current),function(){r&&n.unobserve(r)}}i(!1)},[t,e]),{containerRef:t,isVisible:o}},t.default=t.useIntersectionObserver},729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsBreakpoint=void 0;var r=n(156),o=n(432),i={xs:1,mobileSmall:320,mobile:375,tablet:768,tabletLarge:920,desktopSmall:1024,desktop:1260,desktopLarge:1440};t.useIsBreakpoint=function(e){var t="string"==typeof e?i[e]:e,n=(0,r.useState)(null),a=n[0],s=n[1],u=(0,r.useCallback)(function(){s(window.innerWidth)},[]);return(0,r.useEffect)(function(){u()},[]),(0,o.useOnResize)(u),a>=t},t.default=t.useIsBreakpoint},450:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoadingAfterError=void 0;var r=n(156);t.useIsLoadingAfterError=function(e,t){var n=(0,r.useState)(t),o=n[0],i=n[1];return(0,r.useEffect)(function(){e||i(t)},[e,t]),e&&o}},305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;var r=n(729);t.useIsMobile=function(){return!(0,r.useIsBreakpoint)("tablet")},t.default=t.useIsMobile},383:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;var r=n(156);t.useIsomorphicLayoutEffect="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,t.default=t.useIsomorphicLayoutEffect},753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnLoseFocusWithin=void 0;var r=n(156);t.useOnLoseFocusWithin=function(e){var t=e.ref,n=e.callback,o=e.watch;(0,r.useEffect)(function(){var e=function(){var e;if(o)return(null===(e=t.current)||void 0===e?void 0:e.matches(":focus-within"))?void 0:n()};return document.addEventListener("keyup",e),function(){return document.removeEventListener("keyup",e)}},[n,t,o])},t.default=t.useOnLoseFocusWithin},502:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnResize=void 0;var r=n(156);t.useOnResize=function(e){(0,r.useEffect)(function(){var t=function(){e(window.innerWidth)};return window.addEventListener("resize",t,{passive:!0}),function(){return window.removeEventListener("resize",t)}},[])},t.default=t.useOnResize},352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOnWindowFocus=void 0;var r=n(156);t.useOnWindowFocus=function(e){(0,r.useEffect)(function(){var t=function(){e&&"visible"===document.visibilityState&&e()};return window.addEventListener("visibilitychange",t,!1),function(){return window.removeEventListener("visibilitychange",t)}},[e])}},47:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useOutsideReacter=void 0;var r=n(156);t.useOutsideReacter=function(e,t){function n(n){e.current&&!e.current.contains(n.target)&&t()}(0,r.useEffect)(function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}})}},869:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useRunAfterUpdate=void 0;var r=n(156);t.useRunAfterUpdate=function(){var e=(0,r.useRef)(null);return(0,r.useEffect)(function(){e.current&&(e.current(),e.current=null)}),function(t){e.current=t}},t.default=t.useRunAfterUpdate},926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollLock=void 0;var r=n(156);t.useScrollLock=function(){return{lock:(0,r.useCallback)(function(){var e=window.scrollY+"px",t=document.body;t.style.position="fixed",t.style.top="-"+e},[]),unlock:(0,r.useCallback)(function(){var e=document.body,t=e.style.top,n=-1*parseInt(t||"0");e.style.position="",e.style.top="",n&&window.scrollTo(0,-1*parseInt(t||"0"))},[])}}},358:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSmoothScroll=void 0;var o=n(156),i=r(n(888));t.useSmoothScroll=function(e){var t=(0,o.useRef)(null),n=e.ref,r=e.offset,a=void 0===r?0:r,s=e.speed,u=void 0===s?500:s;return(0,o.useEffect)(function(){t.current=new i.default(null,{speed:u,speedAsDuration:!0})},[]),(0,o.useCallback)(function(){n&&t.current&&t.current.animateScroll(n.current,null,{offset:function(){return a},updateURL:!1})},[a,n])}},156:function(e){e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(432)}())}(Hf)),Hf.exports),$f=Q(Vf),Wf={"fullscreen-root":"MobileSearch_fullscreen-root__-fKuG","combobox-container":"MobileSearch_combobox-container__UApoj","right-column":"MobileSearch_right-column__n9ied","combobox-icon":"MobileSearch_combobox-icon__91hHs","combobox-label":"MobileSearch_combobox-label__TVrz1",container:"MobileSearch_container__fxGZ7",input:"MobileSearch_input__bUFhg","clear-input":"MobileSearch_clear-input__AaH3X",hasValue:"MobileSearch_hasValue__1Txox",suggestion:"MobileSearch_suggestion__v2-T8",suggestionHighlighted:"MobileSearch_suggestionHighlighted__laMbA",suggestionsContainerOpen:"MobileSearch_suggestionsContainerOpen__-ZF8G",suggestionsList:"MobileSearch_suggestionsList__zRJY4","clear-search-history":"MobileSearch_clear-search-history__XpFfN","mobile-modal-overlay":"MobileSearch_mobile-modal-overlay__BDcbD","mobile-modal":"MobileSearch_mobile-modal__-gEAQ","mobile-modal-content":"MobileSearch_mobile-modal-content__mUUFh"};Xl("input[type=text] {\n margin: 0;\n padding: 0;\n}\n\n.MobileSearch_fullscreen-root__-fKuG {\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\n.MobileSearch_combobox-container__UApoj {\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}\n.MobileSearch_combobox-container__UApoj .MobileSearch_right-column__n9ied {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px;\n}\n\n.MobileSearch_combobox-icon__91hHs {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none;\n}\n.MobileSearch_combobox-icon__91hHs svg {\n width: 14px;\n height: 21px;\n transform: rotate(-180deg);\n}\n\n.MobileSearch_combobox-label__TVrz1 {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.2px;\n color: #333;\n}\n\n.MobileSearch_container__fxGZ7 {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.MobileSearch_container__fxGZ7 .MobileSearch_input__bUFhg {\n font-family: inherit;\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}\n.MobileSearch_container__fxGZ7 .MobileSearch_input__bUFhg:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff;\n}\n\nbutton.MobileSearch_clear-input__AaH3X {\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}\nbutton.MobileSearch_clear-input__AaH3X svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.MobileSearch_clear-input__AaH3X:focus {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileSearch_clear-input__AaH3X:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileSearch_clear-input__AaH3X:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileSearch_hasValue__1Txox {\n color: #333;\n}\n\n.MobileSearch_suggestion__v2-T8 {\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\n.MobileSearch_suggestionHighlighted__laMbA {\n background-color: #f2f5f7;\n}\n\n.MobileSearch_suggestionsContainerOpen__-ZF8G {\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}\n.MobileSearch_suggestionsContainerOpen__-ZF8G .MobileSearch_suggestionsList__zRJY4 {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7;\n}\n\n.MobileSearch_clear-search-history__XpFfN {\n display: flex;\n font-family: inherit;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd;\n}\n.MobileSearch_suggestionHighlighted__laMbA .MobileSearch_clear-search-history__XpFfN {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileSearch_mobile-modal-overlay__BDcbD {\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\n.MobileSearch_mobile-modal__-gEAQ {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.MobileSearch_mobile-modal__-gEAQ.ReactModal__Content--after-open > div {\n transform: translateY(0);\n}\n.MobileSearch_mobile-modal__-gEAQ.ReactModal__Content--before-close > div {\n transform: translateY(10%);\n}\n\n.MobileSearch_mobile-modal-content__mUUFh {\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 Gf={"fullscreen-root":"MobileNoScroll_fullscreen-root__z0ny4","combobox-container":"MobileNoScroll_combobox-container__TTtSg","right-column":"MobileNoScroll_right-column__TS4N7","combobox-icon":"MobileNoScroll_combobox-icon__-r8Qf","combobox-label":"MobileNoScroll_combobox-label__rQ8p-",container:"MobileNoScroll_container__XXfFb",input:"MobileNoScroll_input__Xaj1-","clear-input":"MobileNoScroll_clear-input__Jz4Xv",hasValue:"MobileNoScroll_hasValue__ftyO6",suggestion:"MobileNoScroll_suggestion__7L2kI",suggestionHighlighted:"MobileNoScroll_suggestionHighlighted__IKy2t",suggestionsContainerOpen:"MobileNoScroll_suggestionsContainerOpen__ePksf",suggestionsList:"MobileNoScroll_suggestionsList__aeQlJ","clear-search-history":"MobileNoScroll_clear-search-history__WrE0K","mobile-modal-overlay":"MobileNoScroll_mobile-modal-overlay__k1JdU","mobile-modal":"MobileNoScroll_mobile-modal__x5kKM","mobile-modal-content":"MobileNoScroll_mobile-modal-content__os7v8"};function Kf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Xl("input[type=text] {\n margin: 0;\n padding: 0;\n}\n\n.MobileNoScroll_fullscreen-root__z0ny4 {\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\n.MobileNoScroll_combobox-container__TTtSg {\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}\n.MobileNoScroll_combobox-container__TTtSg .MobileNoScroll_right-column__TS4N7 {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding-top: 9px;\n}\n\n.MobileNoScroll_combobox-icon__-r8Qf {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 52px;\n border: 0;\n background: none;\n}\n.MobileNoScroll_combobox-icon__-r8Qf svg {\n width: 14px;\n height: 21px;\n transform: rotate(-180deg);\n}\n\n.MobileNoScroll_combobox-label__rQ8p- {\n position: relative;\n top: -2px;\n font-size: 12px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.2px;\n color: #333;\n}\n\n.MobileNoScroll_container__XXfFb {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.MobileNoScroll_container__XXfFb .MobileNoScroll_input__Xaj1- {\n font-family: inherit;\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}\n.MobileNoScroll_container__XXfFb .MobileNoScroll_input__Xaj1-:focus {\n outline: none;\n border: none;\n box-shadow: none;\n background: #fff;\n}\n\nbutton.MobileNoScroll_clear-input__Jz4Xv {\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}\nbutton.MobileNoScroll_clear-input__Jz4Xv svg {\n fill: var(--color);\n width: 16px;\n height: 16px;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:focus {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:active {\n background-color: transparent;\n color: inherit;\n}\nbutton.MobileNoScroll_clear-input__Jz4Xv:hover {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileNoScroll_hasValue__ftyO6 {\n color: #333;\n}\n\n.MobileNoScroll_suggestion__7L2kI {\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\n.MobileNoScroll_suggestionHighlighted__IKy2t {\n background-color: #f2f5f7;\n}\n\n.MobileNoScroll_suggestionsContainerOpen__ePksf {\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}\n.MobileNoScroll_suggestionsContainerOpen__ePksf .MobileNoScroll_suggestionsList__aeQlJ {\n width: 100vw;\n list-style: none;\n padding-left: 0;\n margin: 0;\n background: #f2f5f7;\n}\n\n.MobileNoScroll_clear-search-history__WrE0K {\n display: flex;\n font-family: inherit;\n margin-top: auto;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 62px;\n background: #f2f5f7;\n color: var(--accessible-primary-color);\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.42px;\n border: none;\n border-top: 1px solid #ddd;\n}\n.MobileNoScroll_suggestionHighlighted__IKy2t .MobileNoScroll_clear-search-history__WrE0K {\n background-color: transparent;\n color: inherit;\n}\n\n.MobileNoScroll_mobile-modal-overlay__k1JdU {\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\n.MobileNoScroll_mobile-modal__x5kKM {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.MobileNoScroll_mobile-modal__x5kKM.ReactModal__Content--after-open > div {\n transform: translateY(0);\n}\n.MobileNoScroll_mobile-modal__x5kKM.ReactModal__Content--before-close > div {\n transform: translateY(10%);\n}\n\n.MobileNoScroll_mobile-modal-content__os7v8 {\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\n.MobileNoScroll_suggestionsContainerOpen__ePksf {\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n scrollbar-width: none; /* Firefox */\n}\n.MobileNoScroll_suggestionsContainerOpen__ePksf::-webkit-scrollbar {\n display: none; /* Safari and Chrome */\n}");const Jf=["item","lng","getItemProps","highlightedIndex","itemIndex","styles"],Yf=["suggestions","getMenuProps","getItemProps","lng","styles","hidden","renderClearHistoryButton","handleClearHistory"];function Xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Zf=n.memo(function(e){let{item:t,lng:n,getItemProps:o,highlightedIndex:i,itemIndex:a,styles:s}=e,u=Kf(e,Jf);const[l]=r.useTranslation(),c="FutureRoute"===t.type?Qf(Qf({},t),{},{translatedText:zf(t,n,l)}):t,f=Df(t,n,l);return d.jsx("li",Qf(Qf({className:V.default(s.suggestion,i===a&&s.suggestionHighlighted)},o({index:a})),{},{children:d.jsx(K.default,Qf({item:c,content:f,lng:n},u))}))}),ed="production"!==process.env.NODE_ENV?B.default.shape({name:B.default.string,type:B.default.string,address:B.default.string,selectedIconId:B.default.string,iconColor:B.default.string,translatedText:B.default.string,properties:B.default.shape({layer:B.default.string,color:B.default.string,localadmin:B.default.string,mode:B.default.string,id:B.default.string,source:B.default.string,arrowClicked:B.default.bool,destination:B.default.shape({name:B.default.string,localadmin:B.default.string}),origin:B.default.shape({name:B.default.string,localadmin:B.default.string})})}):{};"production"!==process.env.NODE_ENV&&(Zf.propTypes={item:ed.isRequired,lng:B.default.string.isRequired,getItemProps:B.default.func.isRequired,highlightedIndex:B.default.number.isRequired,itemIndex:B.default.number.isRequired,styles:B.default.objectOf(B.default.string).isRequired});const td=n.memo(function(e){let{suggestions:t,getMenuProps:n,getItemProps:o,lng:i,styles:a,hidden:s,renderClearHistoryButton:u=!1,handleClearHistory:l=()=>{}}=e,c=Kf(e,Yf);const[f]=r.useTranslation();return d.jsx("div",{className:V.default(a.suggestionsContainerOpen,a.suggestionsContainer,s&&a.hidden),children:d.jsxs("ul",Qf(Qf({className:a.suggestionsList},n()),{},{children:[t.map((e,t)=>d.jsx(Zf,Qf({getItemProps:o,itemIndex:t,item:e,lng:i,styles:a},c),`${e.type}-${e.properties.gid||e.properties.gtfsId||JSON.stringify(e.properties)}`)),u&&d.jsx("li",{children:d.jsx("button",{onClick:l,type:"button",className:a["clear-search-history"],children:f("clear-search-history",{lng:i})})})]}))})});"production"!==process.env.NODE_ENV&&(td.propTypes={suggestions:B.default.arrayOf(ed).isRequired,getMenuProps:B.default.func.isRequired,getItemProps:B.default.func.isRequired,lng:B.default.string.isRequired,styles:B.default.objectOf(B.default.string).isRequired,hidden:B.default.bool.isRequired,renderClearHistoryButton:B.default.bool,handleClearHistory:B.default.func});const nd=({color:e,lng:t,clearInput:n,onKeyDown:o,styles:i})=>{const[a]=r.useTranslation();return d.jsx("button",{type:"button",className:i["clear-input"],onClick:n,"aria-label":a("clear-button-label",{lng:t}),onKeyDown:o,children:d.jsx($.default,{img:"close",color:e})})};function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function id({id:e,lng:t,value:n,placeholder:r,required:o,getInputProps:i,getLabelProps:a,clearInput:s,ariaLabel:u,inputRef:l,styles:c,renderLabel:f=!1,isMobile:p,inputClassName:h,transportMode:g,clearButtonColor:b,autoFocus:y=!1,inputOnBlur:m=()=>{},onValueChange:v}){return d.jsxs("div",{className:c.container,children:[f&&d.jsx("label",od(od({},a({className:c["sr-only"],htmlFor:e})),{},{children:u})),d.jsx("input",od({"aria-label":u,autoFocus:y,placeholder:r,required:o,type:"text",className:V.default(c.input,c[e],h,p&&g&&c.thin,n&&c.hasValue),id:e},i({ref:l,onBlur:m,onChange:e=>{v(e.target.value)}}))),n&&d.jsx(nd,{lng:t,clearInput:()=>s(l),styles:c,color:b,onKeyDown:e=>Lf(e)&&s(l)})]})}function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}"production"!==process.env.NODE_ENV&&(nd.propTypes={color:B.default.string.isRequired,lng:B.default.string.isRequired,clearInput:B.default.func.isRequired,onKeyDown:B.default.func.isRequired,styles:B.default.objectOf(B.default.string).isRequired}),"production"!==process.env.NODE_ENV&&(id.propTypes={id:B.default.string.isRequired,lng:B.default.string.isRequired,placeholder:B.default.string.isRequired,required:B.default.bool.isRequired,value:B.default.string.isRequired,getInputProps:B.default.func.isRequired,getLabelProps:B.default.func.isRequired,clearInput:B.default.func.isRequired,ariaLabel:B.default.string.isRequired,inputRef:B.default.shape({current:B.default.oneOfType([B.default.string,B.default.object])}).isRequired,styles:B.default.objectOf(B.default.string).isRequired,renderLabel:B.default.bool,isMobile:B.default.bool.isRequired,inputClassName:B.default.string.isRequired,transportMode:B.default.string,clearButtonColor:B.default.string.isRequired,autoFocus:B.default.bool,inputOnBlur:B.default.func,onValueChange:B.default.func.isRequired});const ud=({appElement:e,id:t,placeholder:o,clearInput:a,onSelectedItemChange:s,clearOldSearches:u,suggestionProps:l,lng:c,ariaProps:f,value:p,inputClassName:h,required:g,mobileLabel:b,showScroll:y,state:m,dispatch:v,pendingEnterRef:_,colors:w})=>{const[S]=r.useTranslation(),{lock:O,unlock:j}=$f.useScrollLock(),x=y?Wf:Gf,k=`${t}-input`,E=`${t}-label`,[R,P]=n.useState(!1),C=H.default.useRef();n.useEffect(()=>{W.default.setAppElement(e)},[]),n.useEffect(()=>{m.renderMobile?O():j()},[m.renderMobile]);const{highlightedIndex:A,getLabelProps:T,getMenuProps:M,getInputProps:N,getItemProps:L,setHighlightedIndex:I}=i.useCombobox({items:m.suggestions,inputValue:p,isOpen:!0,scrollIntoView:Nf,onSelectedItemChange:e=>{s(e),v({type:"TOGGLE_MENU",isMobile:!0})},inputId:k,labelId:E,selectedItem:null,defaultHighlightedIndex:-1,onInputValueChange:({inputValue:e,type:t})=>m.renderMobile&&t!==i.useCombobox.stateChangeTypes.InputChange&&v({type:"INPUT_CHANGE",value:e}),stateReducer:(e,{changes:t,type:n})=>{switch(n){case i.useCombobox.stateChangeTypes.InputKeyDownEscape:return I(-1),v({type:"TOGGLE_MENU",isMobile:!0}),e;case i.useCombobox.stateChangeTypes.InputKeyDownEnter:return m.loading?(_.current=!0,e):-1===e.highlightedIndex?sd(sd({},t),{},{selectedItem:m.suggestions[0]}):t;case i.useCombobox.stateChangeTypes.InputBlur:return e;default:return t}},itemToString:e=>e?Uf(e):""});M({},{suppressRefError:!0}),N({},{suppressRefError:!0});const F=n.useCallback(e=>m.renderMobile&&v({type:"INPUT_CHANGE",value:e}),[m.renderMobile,v]),D=n.useCallback(()=>P(!0),[]),{ariaRequiredText:z,SearchBarId:U,ariaCurrentSuggestion:q}=f,B=z.concat(" ").concat(U).concat(" ").concat(q);return d.jsx(W.default,{isOpen:m.renderMobile,className:x["mobile-modal"],overlayClassName:x["mobile-modal-overlay"],shouldReturnFocusAfterClose:!1,shouldCloseOnEsc:!0,children:d.jsxs("div",{className:x["mobile-modal-content"],style:{"--color":w.primary,"--accessible-primary-color":w.accessiblePrimary,"--hover-color":w.hover},children:[d.jsxs("div",{className:x["combobox-container"],htmlFor:k,children:[d.jsx("button",{type:"button",className:x["combobox-icon"],onClick:()=>{I(-1),v({type:"TOGGLE_MENU",isMobile:!0})},onKeyDown:e=>{Lf(e)&&(I(-1),v({type:"TOGGLE_MENU",isMobile:!0}))},"aria-label":S("cancel",{lng:c}),tabIndex:0,children:d.jsx($.default,{img:"arrow",color:w.primary})}),d.jsxs("span",{className:x["right-column"],children:[d.jsx("span",sd(sd({className:x["combobox-label"],id:E},T()),{},{children:b})),d.jsx(id,{placeholder:If(t)?S("address-place-or-business",{lng:c}):o,id:t,lng:c,value:p,getInputProps:N,getLabelProps:T,clearInput:()=>a(C),ariaLabel:B,inputRef:C,styles:x,renderLabel:!1,clearButtonColor:w.primary,autoFocus:!0,inputClassName:h,required:g,isMobile:!0,onValueChange:F}),d.jsx(td,sd({suggestions:m.suggestions,getMenuProps:M,getItemProps:L,highlightedIndex:A,isOpen:!0,hidden:!1,lng:c,styles:x,renderClearHistoryButton:!0,handleClearHistory:D},l))]})]}),d.jsx(G.default,{isModalOpen:R,handleClose:()=>P(!1),headerText:S("delete-old-searches-header",{lng:c}),primaryButtonText:S("delete",{lng:c}),secondaryButtonText:S("cancel",{lng:c}),primaryButtonOnClick:()=>{u(),P(!1)},secondaryButtonOnClick:()=>P(!1),lang:c})]})})};function ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ld(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}"production"!==process.env.NODE_ENV&&(ud.propTypes={appElement:B.default.string.isRequired,id:B.default.string.isRequired,clearInput:B.default.func.isRequired,clearOldSearches:B.default.func.isRequired,onSelectedItemChange:B.default.func.isRequired,value:B.default.string.isRequired,colors:B.default.objectOf(B.default.string).isRequired,suggestionProps:B.default.shape({}).isRequired,ariaProps:B.default.shape({ariaRequiredText:B.default.string.isRequired,SearchBarId:B.default.string.isRequired,ariaCurrentSuggestion:B.default.string.isRequired}).isRequired,inputClassName:B.default.string.isRequired,placeholder:B.default.string.isRequired,mobileLabel:B.default.string.isRequired,required:B.default.bool.isRequired,showScroll:B.default.bool.isRequired,lng:B.default.string.isRequired,state:B.default.shape({suggestions:B.default.arrayOf(B.default.shape({})).isRequired,renderMobile:B.default.bool.isRequired,loading:B.default.bool.isRequired}).isRequired,dispatch:B.default.func.isRequired,pendingEnterRef:B.default.shape({current:B.default.bool}).isRequired});const fd=(e,t)=>{switch(t.type){case"INPUT_CHANGE":return cd(cd({},e),{},{value:t.value});case"FETCH_SUGGESTIONS":return t.loading!==e.loading||t.suggestions?cd(cd({},e),{},{loading:t.loading,suggestions:t.suggestions||e.suggestions}):e;case"CLEAR_SUGGESTIONS":return cd(cd({},e),{},{suggestions:[]});case"RESET_SOURCES":return cd(cd({},e),{},{sources:t.sources});case"SET_SOURCES":return cd(cd({},e),{},{showOwnPlaces:t.showOwnPlaces,sources:t.sources,pendingSelection:t.pendingSelection});case"CLEAR":return cd(cd({},e),{},{value:"",isCleared:!0,suggestions:[]});case"INPUT_BLUR":return cd(cd({},e),{},{value:t.value||e.value,isCleared:!t.isMobile&&e.isCleared,pendingSelection:null,showOwnPlaces:!1});case"RESET":return t.initialState;case"TOGGLE_MENU":return t.isMobile?e.renderMobile?cd(cd({},e),{},{renderMobile:!1,isCleared:!1}):cd(cd({},e),{},{renderMobile:!0,value:e.isCleared?"":e.value}):cd(cd({},e),{},{isMenuOpen:!e.isMenuOpen,renderMobile:t.isMobile&&!e.renderMobile});default:return e}};function dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const hd=[],gd={routesPrefix:"linjat",stopsPrefix:"pysakit"},bd={},yd=["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","Wybrane miejsce"];function md({appElement:e,id:t,placeholder:o,onSelect:s,icon:u,value:l="",onClear:c,lang:f="fi",getAutoSuggestIcons:p,handleViaPoints:h,focusChange:g,storeRef:b,isMobile:y=!1,mobileLabel:m,inputClassName:v="",translatedPlaceholder:_,required:w=!1,ariaLabel:S,colors:O=a.defaultColors,modeSet:j,showScroll:x=!1,isEmbedded:k=!1,transportMode:E,targets:R,sources:P=hd,geocodingSize:C,filterResults:A,searchContext:T,pathOpts:M=gd,refPoint:N=bd}){const[L]=r.useTranslation(),I={suggestions:[],loading:!1,sources:P,showOwnPlaces:!1,pendingSelection:null,isCleared:!1,renderMobile:!1,value:l,isMenuOpen:!1},[F,D]=n.useReducer(fd,I);n.useEffect(()=>D({type:"RESET",initialState:I}),[l]),n.useEffect(()=>D({type:"RESET_SOURCES",sources:P}),[P]);const z=n.useRef(t),U=n.useRef(!1),q=n.useRef(0);n.useEffect(()=>{b&&b(z.current)},[z.current]);const B=n.useCallback(()=>{const e=!R?.length||R.includes("Locations"),t=(({targets:e,isLocationSearch:t,isMobile:n,ownPlaces:r,sources:o})=>{const i=!e?.length;let a=e;return r?(a=["Locations"],(i||e.includes("Stops"))&&a.push("Stops"),(i||e.includes("Stations"))&&a.push("Stations"),(i||e.includes("VehicleRentalStations"))&&a.push("VehicleRentalStations")):i||(a=[...e],!t||n||o.length&&!o.includes("Favourite")||a.push("SelectFromOwnLocations")),a})({targets:R,isLocationSearch:e,isMobile:y,ownPlaces:F.showOwnPlaces,sources:F.sources}),n=F.sources?F.sources.filter(t=>!e||"Favourite"===!t||F.showOwnPlaces||y):F.sources;q.current+=1;const r=q.current;((e,t,n,r,o,i,a,s,u,l)=>{s(null),Jl(e,t,n,r,o,i,a,s,u,l)})(t,n,E,T,A,C,{input:F.value||""},e=>{if(r!==q.current)return;if(null==e)return void D({type:"FETCH_SUGGESTIONS",loading:!0});const t=(e.results||[]).filter(e=>"FutureRoute"!==e.type||"FutureRoute"===e.type&&e.properties.time>Date.now()/1e3).map(e=>{if("CurrentLocation"===e.type||"SelectFromMap"===e.type||"SelectFromOwnLocations"===e.type||"back"===e.type){const t=pd({},e);return t.properties.labelId=L(e.properties.labelId,{lng:f}),t}return e});D({type:"FETCH_SUGGESTIONS",loading:!1,suggestions:t})},M,N)},[F.value,F.sources,F.showOwnPlaces,R,E,T,A,C,y,f,M,N,t]),H=n.useCallback((e,n)=>{e&&(h?h(e,n):s(e,t),!g||y&&!k||g(),z.current&&z.current.blur())},[y]),W=e=>{const{selectedItem:t}=e;t&&("SelectFromOwnLocations"!==t.type?"back"!==t.type?H(t,e.highlightedIndex):D({type:"SET_SOURCES",sources:P,showOwnPlaces:!1,pendingSelection:null}):D({type:"SET_SOURCES",sources:["Favourite","Back"],showOwnPlaces:!0,pendingSelection:t.type}))},{isOpen:G,highlightedIndex:K,getLabelProps:J,getMenuProps:Y,getInputProps:X,getItemProps:Q,selectItem:Z,openMenu:ee,closeMenu:te}=i.useCombobox({inputId:t,inputValue:F.value,scrollIntoView:Nf,defaultHighlightedIndex:0,onInputValueChange:({inputValue:e,type:t})=>t!==i.useCombobox.stateChangeTypes.InputChange&&D({type:"INPUT_CHANGE",value:e}),stateReducer:n.useCallback((e,{type:t,changes:n})=>{switch(t){case i.useCombobox.stateChangeTypes.ItemClick:case i.useCombobox.stateChangeTypes.InputKeyDownEnter:return F.loading?(U.current=!0,e):n.selectedItem&&("SelectFromOwnLocations"===n.selectedItem.type||"back"===n.selectedItem.type)?pd(pd({},n),{},{isOpen:!0}):n;case i.useCombobox.stateChangeTypes.InputClick:return yd.includes(l)?pd(pd({},n),{},{inputValue:"",isOpen:!0}):pd(pd({},n),{},{isOpen:!0});case i.useCombobox.stateChangeTypes.InputBlur:return n.selectedItem?pd(pd({},n),{},{selectedItem:e.selectedItem,inputValue:e.inputValue}):n;case i.useCombobox.stateChangeTypes.InputKeyDownEscape:return pd(pd({},n),{},{inputValue:""});default:return n}},[F.loading,l,y]),items:F.suggestions,itemToString:e=>e?Uf(e):"",onSelectedItemChange:W,onIsOpenChange:e=>{e.isOpen&&!F.renderMobile&&D({type:"TOGGLE_MENU",isMobile:y})}}),ne=e=>{D({type:"CLEAR"}),c&&c(t),e.current&&e.current.focus(),ee()},re=n.useCallback(e=>D({type:"INPUT_CHANGE",value:e}),[]);n.useEffect(()=>{!G&&!F.renderMobile||F.value===l&&yd.includes(l)||B(F.value)},[G,F.renderMobile,F.value,B]),n.useEffect(()=>{U.current&&!F.loading&&(U.current=!1,H(F.suggestions[0],0),te())},[F.loading,F.suggestions]);const oe=n.useMemo(()=>({loading:F.loading,isMobile:y,ariaFavouriteString:L("favourite",{lng:f}),getAutoSuggestIcons:p,colors:O,modeSet:j,showStopStatusMarkers:!!T.showStopStatusMarkers}),[F.loading,y,L,f,p,O,j,T.showStopStatusMarkers]),{ariaCurrentSuggestion:ie,ariaRequiredText:ae,SearchBarId:se,ariaLabelText:ue}=(({id:e,ariaLabel:t,lng:n,t:r,isMobile:o,suggestions:i,value:a,required:s})=>{const u=e.replace("searchfield-",""),l=t||r(u,{lng:n}).replace("searchfield-","").concat("."),c=s?`${r("required",{lng:n})}.`:"",f=r(o?"search-autosuggest-label-instructions-mobile":"search-autosuggest-label-instructions-desktop",{lng:n}),d="origin"===e?r("search-autosuggest-label-move-to-destination",{lng:n}):"";return{SearchBarId:l,ariaRequiredText:c,ariaLabelText:f.concat(" ").concat(d),ariaSuggestionLen:r("search-autosuggest-len",{count:i.length,lng:n}),ariaCurrentSuggestion:qf({suggestions:i,t:r,lng:n})||a?r("search-current-suggestion",{lng:n,selection:qf({suggestions:i,t:r,lng:n}).toLowerCase()||a}):""}})({id:t,lng:f,t:L,isMobile:y,ariaLabel:S,suggestions:F.suggestions,value:F.value,required:w});return n.useEffect(()=>{F.renderMobile||G||D({type:"RESET",initialState:I})},[F.renderMobile,G]),d.jsxs(d.Fragment,{children:[y&&d.jsx(ud,{placeholder:L(o,{lng:f}),clearOldSearches:()=>{const{clearOldSearches:e,clearFutureRoutes:t}=T;e&&(e(),t&&t(),B(F.value))},appElement:e,mobileLabel:m||L(t,{lng:f}),ariaProps:{ariaCurrentSuggestion:ie,SearchBarId:se,ariaRequiredText:ae},id:t,lng:f,onSelectedItemChange:W,value:F.value,clearInput:ne,suggestionProps:oe,showScroll:!!x,colors:O,inputClassName:v,required:w,state:F,dispatch:D,pendingEnterRef:U}),d.jsxs("div",{className:V.default(ec["autosuggest-input-container"],ec[t],F.renderMobile&&"hidden"),style:{"--color":O.primary,"--hover-color":O.hover},children:[u&&d.jsx("div",{className:V.default(ec["autosuggest-input-icon"],ec[t],v&&ec[`${v}-input-icon`]),"aria-label":ae.concat(" ").concat(se).concat(" ").concat(L("search-autosuggest-label",{lng:f})),children:d.jsx($.default,{img:`${u}`})}),d.jsx(id,{inputClassName:v,ariaLabel:ie.concat(" ").concat(ae).concat(" ").concat(se).concat(" ").concat(ue),id:t,lng:f,getInputProps:X,getLabelProps:J,selectItem:Z,value:F.value,clearInput:ne,inputRef:z,styles:ec,clearButtonColor:O.primary,placeholder:_||L(o,{lng:f}),required:w,transportMode:E,isMobile:y,inputOnBlur:()=>{D({isMobile:y,value:!y&&l,type:"INPUT_BLUR"}),y||D({type:"RESET",initialState:I})},onValueChange:re}),d.jsx(td,pd({hidden:!G||!F.suggestions.length||y,highlightedIndex:K,getItemProps:Q,getMenuProps:Y,suggestions:F.suggestions,lng:f,styles:ec},oe))]})]})}"production"!==process.env.NODE_ENV&&(md.propTypes={appElement:B.default.string.isRequired,icon:B.default.string,id:B.default.string.isRequired,placeholder:B.default.string.isRequired,translatedPlaceholder:B.default.string,value:B.default.string,transportMode:B.default.string,geocodingSize:B.default.number,filterResults:B.default.func,searchContext:B.default.shape({URL_PELIAS:B.default.string,context:B.default.object,clearOldSearches:B.default.func,clearFutureRoutes:B.default.func,showStopStatusMarkers:B.default.bool}).isRequired,sources:B.default.arrayOf(B.default.string),targets:B.default.arrayOf(B.default.string),ariaLabel:B.default.string,onSelect:B.default.func.isRequired,onClear:B.default.func,storeRef:B.default.func,handleViaPoints:B.default.func,focusChange:B.default.func,lang:B.default.string,isMobile:B.default.bool,pathOpts:B.default.shape({routesPrefix:B.default.string,stopsPrefix:B.default.string}),mobileLabel:B.default.string,refPoint:B.default.shape({address:B.default.string,lat:B.default.number,lon:B.default.number}),inputClassName:B.default.string,colors:B.default.objectOf(B.default.string),getAutoSuggestIcons:B.default.objectOf(B.default.func),required:B.default.bool,modeSet:B.default.string,showScroll:B.default.bool,isEmbedded:B.default.bool});e.default=e=>d.jsx(r.I18nextProvider,{i18n:Yl,children:d.jsx(md,pd({},e))}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
3
3
|
//# sourceMappingURL=index.cjs.map
|