@digitransit-component/digitransit-component-autosuggest 11.0.9 → 11.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.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("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,A,C,T,N,M,L,I,F,D,U,z,B,q=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(N)return T;N=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(C)return A;C=1;var e=Object.prototype.toString;return A=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 M;return L=1,M=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(U)return D;U=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(B)return z;B=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 z=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},z}(),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,Ae,Ce,Te,Ne,Me,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(Ne)return Te;Ne=1;var e=function(){if(Ce)return Ae;Ce=1;var e=se(),t=1/0;return Ae=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,Ue,ze=function(){if(Le)return Me;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 Me=function(n,r,o){return n&&n.length?(r=o||void 0===r?1:t(r),e(n,0,r<0?0:r)):[]}}(),Be=Q(ze);var qe,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,At,Ct,Tt,Nt,Mt,Lt,It,Ft,Dt,Ut,zt,Bt,qt,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,An,Cn,Tn,Nn,Mn,Ln,In,Fn,Dn,Un,zn,Bn,qn,Hn,Vn,$n,Wn,Gn,Kn,Jn,Yn,Xn,Qn,Zn,er,tr,nr,rr,or,ir=function(){if(Ue)return De;Ue=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 qe;return He=1,qe=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},qe}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 Mt;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(Ct)return At;Ct=1;var e=br();return At=function(t){return e(this.__data__,t)>-1}}(),o=function(){if(Nt)return Tt;Nt=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,Mt=i}function mr(){if(Ft)return It;Ft=1;var e=dr()(te(),"Map");return It=e}function vr(){if(Ht)return qt;Ht=1;var e=Bt?zt:(Bt=1,zt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return qt=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(Ut)return Dt;Ut=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(Mn)return Nn;Mn=1;var e=_r(),t=An?Pn:(An=1,Pn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Tn?Cn:(Tn=1,Cn=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,Nn=r}function Pr(){if(Dn)return Fn;return Dn=1,Fn=function(e,t){return e.has(t)}}function Ar(){if(zn)return Un;zn=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 Un=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},Un}function Cr(){if(qn)return Bn;qn=1;var e=te().Uint8Array;return Bn=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 Nr(){if(Kn)return Gn;Kn=1;var e=re(),t=Cr(),n=gr(),r=Ar(),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 Mr(){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,Ur,zr,Br,qr,Hr,Vr,$r,Wr,Gr,Kr={exports:{}};function Jr(){return Ur||(Ur=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(Br)return zr;Br=1;var e=/^(?:0|[1-9]\d*)$/;return zr=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 qr;Hr=1;return qr=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,Ao,Co,To,No,Mo,Lo,Io,Fo,Do,Uo,zo,Bo,qo,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,Ai,Ci,Ti,Ni={exports:{}};function Mi(){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}(Ni,Ni.exports)),Ni.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=Mi(),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 Ui(){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 zi(){if(ho)return po;ho=1;var e=lr(),t=Xr();return po=function(n){return null!=n&&t(n.length)&&!e(n)}}function Bi(){if(bo)return go;bo=1;var e=Ii(),t=Ui(),n=zi();return go=function(r){return n(r)?e(r):t(r)}}function qi(){if(mo)return yo;mo=1;var e=Mr(),t=Ir(),n=Bi();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(Ao)return Po;Ao=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 Co;To=1;var e=Er(),t=Ar(),n=Nr(),r=function(){if(_o)return vo;_o=1;var e=qi(),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 Co=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(Mo)return No;Mo=1;var e=$i(),t=ie();return No=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))},No}function Gi(){if(Do)return Fo;Do=1;var e=Z();return Fo=function(t){return t==t&&!e(t)}}function Ki(){if(qo)return Bo;return qo=1,Bo=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(zo)return Uo;zo=1;var e=Gi(),t=Bi();return Uo=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=Bi();return gi=function(n,r){return n&&e(n,r,t)}}(),t=function(){if(mi)return yi;mi=1;var e=zi();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(Ai)return Pi;Ai=1;var e=sr(),t=kr(),n=ea(),r=function(){if(Si)return wi;Si=1;var e=na(),t=zi();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 Ci;Ti=1;var e=oa(),t=ke();return Ci=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 Aa=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 Ca(e,t){return e&&t&&e===t}const Ta=["stop","station","favouriteStop","favouriteStation"],Na=["favouriteVehicleRentalStation","bikestation"];function Ma(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(Na.includes(n.layer)&&Na.includes(r.layer)){return(n.gid||Ma(n.labelId))===(r.gid||Ma(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&&(Ca(n.name,r.name)||Ca(n.label,r.label)||Ca(n.address,r.address)||Ca(n.address,r.label)||Ca(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),Ua="back",za="currentPosition",Ba="favouriteStop",qa="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 za:return 1;case Ua:return.9;case Ka:return.8;case Ja:return.79;case qa:case Ha:case Ba: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 Aa(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=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ds=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),ps=(e,t,n)=>e===Object.prototype||!n&&null===t,hs=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const o=us(n);if(ps(n,o,n===e))return!1;if(fs(n,t))return!0;n=o}return!1},gs=(bs=Object.create(null),e=>{const t=ss.call(e);return bs[t]||(bs[t]=t.slice(8,-1).toLowerCase())});var bs;const ys=e=>(e=e.toLowerCase(),t=>gs(t)===e),ms=e=>t=>typeof t===e,{isArray:vs}=Array,_s=ms("undefined");function ws(e){return null!==e&&!_s(e)&&null!==e.constructor&&!_s(e.constructor)&&js(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ss=ys("ArrayBuffer");const Os=ms("string"),js=ms("function"),xs=ms("number"),ks=e=>null!==e&&"object"==typeof e,Es=e=>{if(!ks(e))return!1;const t=us(e);return(null===t||t===Object.prototype||null===us(t))&&(ps(e,t,!0)||!fs(e,cs)&&!fs(e,ls))},Rs=ys("Date"),Ps=ys("File"),As=ys("Blob"),Cs=ys("FileList"),Ts=ys("Set");const Ns="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ms=void 0!==Ns.FormData?Ns.FormData:void 0,Ls=ys("URLSearchParams"),[Is,Fs,Ds,Us]=["ReadableStream","Request","Response","Headers"].map(ys);function zs(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),vs(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ws(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)}}const Bs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,qs=e=>!_s(e)&&e!==Bs;const Hs=(Vs="undefined"!=typeof Uint8Array&&us(Uint8Array),e=>Vs&&e instanceof Vs);var Vs;const $s=ys("HTMLFormElement"),{propertyIsEnumerable:Ws}=Object.prototype,Gs=ys("RegExp"),Ks=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zs(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Js=ys("AsyncFunction"),Ys=(Xs="function"==typeof setImmediate,Qs=js(Bs.postMessage),Xs?setImmediate:Qs?(Zs=`axios@${Math.random()}`,eu=[],Bs.addEventListener("message",({source:e,data:t})=>{e===Bs&&t===Zs&&eu.length&&eu.shift()()},!1),e=>{eu.push(e),Bs.postMessage(Zs,"*")}):e=>setTimeout(e));var Xs,Qs,Zs,eu;const tu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Bs):"undefined"!=typeof process&&process.nextTick||Ys,nu=e=>null!=e&&js(e[ls]);var ru={isArray:vs,isArrayBuffer:Ss,isBuffer:ws,isFormData:e=>{if(!e)return!1;if(Ms&&e instanceof Ms)return!0;const t=us(e);if(!t||t===Object.prototype)return!1;if(!js(e.append))return!1;const n=gs(e);return"formdata"===n||"object"===n&&js(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ss(e.buffer),t},isString:Os,isNumber:xs,isBoolean:e=>!0===e||!1===e,isObject:ks,isPlainObject:Es,isEmptyObject:e=>{if(!ks(e)||ws(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Is,isRequest:Fs,isResponse:Ds,isHeaders:Us,isUndefined:_s,isDate:Rs,isFile:Ps,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:As,isRegExp:Gs,isFunction:js,isStream:e=>ks(e)&&js(e.pipe),isURLSearchParams:Ls,isTypedArray:Hs,isFileList:Cs,forEach:zs,merge:function e(...t){const{caseless:n,skipUndefined:r}=qs(this)&&this||{},o={},i=n?Object.create(null):null,a=(t,n)=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;let a=n;if(i&&"string"==typeof n){const e=n.toLowerCase(),t=i[e];void 0!==t&&fs(o,t)?a=t:i[e]=n}const s=fs(o,a)?o[a]:void 0;Es(s)&&Es(t)?o[a]=e(s,t):Es(t)?o[a]=e({},t):vs(t)?o[a]=t.slice():r&&_s(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||ws(n))continue;if(zs(n,a),"object"!=typeof n||vs(n)||!Object.getOwnPropertySymbols)continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];Ws.call(n,t)&&a(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(zs(t,(t,r)=>{n&&js(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:gs,kindOfTest:ys,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(vs(e))return e;let t=e.length;if(!Number.isSafeInteger(t)||t<0||t>4294967295)return null;const n=new Set,r=new Set;let o=e;for(;null!=o&&n.size<t;){if(r.has(o))return null;r.add(o);const i=us(o);if(ps(o,i,o===e))break;Object.getOwnPropertyNames(o).forEach(e=>{const r=+e;Number.isInteger(r)&&r>=0&&r<t&&String(r)===e&&fs(o,e)&&n.add(r)}),o=i}if(n.size!==t)return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},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:$s,hasOwnProperty:fs,hasOwnProp:fs,hasOwnInPrototypeChain:hs,getSafeProp:(e,t)=>null!=e&&hs(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=us(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(ds(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const a=i===e?t:us(i);if(ps(i,a,i===e))break;const s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i));for(const t of s)ds(t)||fs(r,t)||(n[t]=e[t],r[t]=!0);i=a}return n},reduceDescriptors:Ks,freezeMethods:e=>{Ks(e,(t,n)=>{if(js(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];js(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 vs(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:function(e,t){if(ws(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},global:Bs,isContextDefined:qs,isSpecCompliantForm:function(e){return!!(e&&js(e.append)&&"FormData"===e[cs]&&e[ls])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(ks(e)){if(t.has(e))return;if(ws(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),Ts(e)){r=[];for(const t of e){const e=n(t);!_s(e)&&r.push(e)}}else r=vs(e)?[]:{},zs(e,(e,t)=>{const o=n(e);!_s(o)&&(r[t]=o)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:Js,isThenable:e=>e&&(ks(e)||js(e))&&js(e.then)&&js(e.catch),setImmediate:Ys,asap:tu,isIterable:nu,isSafeIterable:e=>null!=e&&hs(e,ls)&&nu(e)};const ou=ru.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 iu=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),au=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function su(e,t){return ru.isArray(e)?e.map(e=>su(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 uu(e){const t=Object.create(null);return ru.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>su(e,au))(e)}),t}const lu=Symbol("internals");function cu(e){return e&&String(e).trim().toLowerCase()}function fu(e){return!1===e||null==e?e:ru.isArray(e)?e.map(fu):(e=>su(e,iu))(String(e))}const du=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function pu(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)}const hu=e=>"__proto__"===e?"__Proto__":e;function gu(e,t,n,r,o){return ru.isFunction(r)?r.call(e,t,n):(o&&(t=n),ru.isString(t)?ru.isString(r)?-1!==t.indexOf(r):ru.isRegExp(r)?r.test(t):void 0:void 0)}let bu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=cu(t);if(!o)return;const i=ru.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[hu(i||t)]=fu(e))}const i=(e,t)=>ru.forEach(e,(e,n)=>o(e,n,t));if(ru.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ru.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t=Object.create(null);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();const i=ru.hasOwnProp(t,n);!n||i&&ru.hasOwnProp(ou,n)||("set-cookie"===n?i?t[n].push(r):t[n]=[r]:t[n]=i?t[n]+", "+r:r)}),t})(e),t);else if(ru.isObject(e)&&ru.isSafeIterable(e)){let n,r,o=Object.create(null);for(const t of e){if(!ru.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],ru.hasOwnProp(o,r)?(n=o[r],o[r]=ru.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=cu(e)){const n=ru.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(ru.isFunction(t))return t.call(this,e,n);if(ru.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=cu(e)){const n=ru.findKey(this,e);return!(!n||void 0===this[n]||t&&!gu(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=cu(e)){const o=ru.findKey(n,e);!o||t&&!gu(n,n[o],o,t)||(delete n[o],r=!0)}}return ru.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&&!gu(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n=Object.create(null);return ru.forEach(this,(r,o)=>{const i=ru.findKey(n,o);if(i)return t[i]=fu(r),void delete t[o];const a=hu(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]=fu(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ru.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ru.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(){const e=this.get("set-cookie");return ru.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,o=!1,i=!1;function a(e){const o=pu(n.slice(r,e)),i=o.indexOf("=");if(i<1)return;const a=pu(o.slice(0,i));if(!du.test(a))return;const s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;const u=pu(o.slice(i+1));t[s]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1,r>=t))return e;n+=e[r]}return n}(u)}for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);o?i?i=!1:92===t?i=!0:34===t&&(o=!1):34===t?o=!0:44!==t&&59!==t||(a(e),r=e+1)}return a(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[lu]=this[lu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=cu(e);t[r]||(!function(e,t){const n=ru.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 ru.isArray(e)?e.forEach(r):r(e),this}};bu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ru.reduceDescriptors(bu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ru.freezeMethods(bu);const yu="[REDACTED ****]";function mu(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(ru.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof bu&&(e=e.toJSON()),r.push(e),ru.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);ru.isUndefined(r)||(t[n]=r)});else{if(!ru.isPlainObject(e)&&function(e){if(ru.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ru.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())?yu:o(i);ru.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}function vu(e){try{return String(e)}catch(e){return""}}const _u=Symbol("causeStack");let wu=class e extends Error{static from(t,n,r,o,i,a){let s=t.message;!s&&ru.isArray(t.errors)&&t.errors.length&&(s=function(e){return e.errors.map(e=>{try{return e&&e.message?vu(e.message):vu(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(t));const u=new e(s,n||t.code,r,o,i);return Object.defineProperty(u,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),u.name=t.name,function(e,t){try{const n=t&&t.stack;if("string"!=typeof n||!n)return;const r=e.stack;if("string"!=typeof r||!r)return;const o="\nCaused by: "+n;e.stack=r+o,Object.defineProperty(e,_u,{__proto__:null,value:o})}catch(e){}}(u,t),null!=t.status&&null==u.status&&(u.status=t.status),a&&Object.assign(u,a),u}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&&ru.hasOwnProp(e,"redact")?e.redact:void 0,n=ru.isArray(t)&&t.length>0?mu(e,t):ru.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}}};wu.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",wu.ERR_BAD_OPTION="ERR_BAD_OPTION",wu.ECONNABORTED="ECONNABORTED",wu.ETIMEDOUT="ETIMEDOUT",wu.ECONNREFUSED="ECONNREFUSED",wu.ERR_NETWORK="ERR_NETWORK",wu.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",wu.ERR_DEPRECATED="ERR_DEPRECATED",wu.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",wu.ERR_BAD_REQUEST="ERR_BAD_REQUEST",wu.ERR_CANCELED="ERR_CANCELED",wu.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",wu.ERR_INVALID_URL="ERR_INVALID_URL",wu.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Su(e){return ru.isPlainObject(e)||ru.isArray(e)}function Ou(e){return ru.endsWith(e,"[]")?e.slice(0,-2):e}function ju(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ou(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const xu=ru.toFlatObject(ru,{},null,function(e){return/^is[A-Z]/.test(e)});function ku(e,t,n){if(!ru.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=ru.getSafeProp(n,e);return ru.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||h,a=r("dots",!1),s=r("indexes",!1),u=r("Blob")||"undefined"!=typeof Blob&&Blob,l=r("maxDepth",100),c=u&&ru.isSpecCompliantForm(t),f=[];if(!ru.isFunction(i))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(ru.isDate(e))return e.toISOString();if(ru.isBoolean(e))return e.toString();if(!c&&ru.isBlob(e))throw new wu("Blob is not supported. Use a Buffer instead.");if(ru.isArrayBuffer(e)||ru.isTypedArray(e)){if(c&&"function"==typeof u)return new u([e]);throw new wu("Blob is not supported. Use a Buffer instead.",wu.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new wu("Object is too deeply nested ("+e+" levels). Max depth: "+l,wu.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,r){let i=e;if(ru.isReactNative(t)&&ru.isReactNativeBlob(e))return t.append(ju(r,n,a),d(e)),!1;if(e&&!r&&"object"==typeof e)if(ru.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!ru.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}(e,1);else if(ru.isArray(e)&&function(e){return ru.isArray(e)&&!e.some(Su)}(e)||(ru.isFileList(e)||ru.endsWith(n,"[]"))&&(i=ru.toArray(e)))return n=Ou(n),i.forEach(function(e,r){!ru.isUndefined(e)&&null!==e&&t.append(!0===s?ju([n],r,a):null===s?n:n+"[]",d(e))}),!1;return!!Su(e)||(t.append(ju(r,n,a),d(e)),!1)}const g=Object.assign(xu,{defaultVisitor:h,convertValue:d,isVisitable:Su});if(!ru.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!ru.isUndefined(n)){if(p(o),-1!==f.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));f.push(n),ru.forEach(n,function(n,a){!0===(!(ru.isUndefined(n)||null===n)&&i.call(t,n,ru.isString(a)?a.trim():a,r,g))&&e(n,r?r.concat(a):[a],o+1)}),f.pop()}}(e),t}function Eu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ru(e,t){this._pairs=[],e&&ku(e,this,t)}const Pu=Ru.prototype;function Au(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Cu(e,t,n){if(!t)return e;e=e||"";const r=ru.isFunction(n)?{serialize:n}:n,o=ru.getSafeProp(r,"encode")||Au,i=ru.getSafeProp(r,"serialize");let a;if(a=i?i(t,r):ru.isURLSearchParams(t)?t.toString():new Ru(t,r).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}Pu.append=function(e,t){this._pairs.push([e,t])},Pu.toString=function(e){const t=e?t=>e.call(this,t,Eu):Eu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Tu=Symbol("internals");function Nu(e){return e?e.length:0}function Mu(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function Lu(e,t){const n=e.handlers,r=Nu(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}class Iu{constructor(){this.handlers=[],this[Tu]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[Tu];null==this.handlers&&(this.handlers=[]),Lu(this,o);const i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[Tu];Lu(this,t);const n=function(e){return"string"==typeof e&&""!==e&&String(Number(e))===e?Number(e):e}(e),r=t.handlerEntries.get(n);if(r){if(t.handlerEntries.delete(n),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(Mu(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Lu(this,this[Tu]))}forEach(e){const t=this[Tu];Lu(this,t),t.iterationDepth++;try{ru.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(Lu(this,t),Mu(this.handlers),t.handlersLength=Nu(this.handlers))}}}var Fu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},Du={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ru,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Uu="undefined"!=typeof window&&"undefined"!=typeof document,zu="object"==typeof navigator&&navigator||void 0,Bu=Uu&&(!zu||["ReactNative","NativeScript","NS"].indexOf(zu.product)<0),qu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Hu=Uu&&window.location.href||"http://localhost";var Vu={...Object.freeze({__proto__:null,hasBrowserEnv:Uu,hasStandardBrowserEnv:Bu,hasStandardBrowserWebWorkerEnv:qu,navigator:zu,origin:Hu}),...Du};function $u(e){if(e>100)throw new wu("FormData field is too deeply nested ("+e+" levels). Max depth: 100",wu.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Wu(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}function Gu(e){if(!ru.isArray(e))return e;const t=Object.keys(e);return t.length!==e.length||t.some((e,t)=>e!==String(t))?Wu(e):e}function Ku(e){function t(e,n,r,o){$u(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&ru.isArray(r)?r.length:i,s)return ru.hasOwnProp(r,i)?(r[i]=Gu(r[i]),r[i]=ru.isArray(r[i])?r[i].concat(n):[r[i],n]):r[i]=n,!a;ru.hasOwnProp(r,i)&&ru.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ru.isArray(r[i])&&(r[i]=Wu(r[i])),!a}if(ru.isFormData(e)&&ru.isFunction(e.entries)){const n={};return ru.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)$u(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),function(e){const t=[e];for(;t.length;){const e=t.pop();Object.keys(e).forEach(n=>{const r=e[n]=Gu(e[n]);(ru.isArray(r)||ru.isPlainObject(r))&&t.push(r)})}return e}(n)}return null}const Ju=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Yu=(e,t)=>null!=e&&ru.hasOwnProp(e,t)?e[t]:void 0;const Xu={transitional:Fu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ru.isObject(e);o&&ru.isHTMLForm(e)&&(e=new FormData(e));if(ru.isFormData(e))return r?JSON.stringify(Ku(e)):e;if(ru.isArrayBuffer(e)||ru.isBuffer(e)||ru.isStream(e)||ru.isFile(e)||ru.isBlob(e)||ru.isReadableStream(e))return e;if(ru.isArrayBufferView(e))return e.buffer;if(ru.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=Yu(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ku(e,new Vu.classes.URLSearchParams,{visitor:function(e,t,n,r){return Vu.isNode&&ru.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=ru.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Yu(this,"env"),r=n&&n.FormData;return ku(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ru.isString(e))try{return(t||JSON.parse)(e),ru.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Yu(this,"transitional")||Xu.transitional,n=t&&t.forcedJSONParsing,r=Yu(this,"responseType"),o="json"===r;if(ru.isResponse(e)||ru.isReadableStream(e))return e;if(e&&ru.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Yu(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw wu.from(e,wu.ERR_BAD_RESPONSE,this,null,Yu(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vu.classes.FormData,Blob:Vu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Qu(e,t){const n=this||Xu,r=t||n,o=bu.from(r.headers);let i=r.data;return ru.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Zu(e){return!(!e||!e.__CANCEL__)}ru.forEach(Ju,e=>{Xu.headers[e]={}});let el=class extends wu{constructor(e,t,n){super(null==e?"canceled":e,wu.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function tl(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new wu("Request failed with status code "+n.status,n.status>=400&&n.status<500?wu.ERR_BAD_REQUEST:wu.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const nl=/[\t\n\r]/g;function rl(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(nl,"")}function ol(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1].toLowerCase()||""}const il=e=>{try{return decodeURIComponent(e)}catch(t){return e}};var al=Vu.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ru.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ru.isString(r)&&s.push(`path=${r}`),ru.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),ru.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie;if(!t)return null;const n=t.split(";");for(let t=0;t<n.length;t++){const r=n[t].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return il(r.slice(o+1))}return null},async readAsync(e){try{const t="undefined"!=typeof window&&window.cookieStore;if(t&&ru.isFunction(t.get)){const n=await t.get(e);return n?il(n.value):null}}catch(e){}return this.read(e)},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,readAsync:async()=>null,remove(){}};const sl=(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),(...e)=>a(e)]}(n=>{if(!n||!ru.isNumber(n.loaded))return;const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,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)},ul=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ll=(e,t=ru.asap)=>(...n)=>t(()=>e(...n));var cl=Vu.hasStandardBrowserEnv?(e=>t=>(t=new URL(t,document.baseURI||Vu.origin),e.protocol===t.protocol&&e.host===t.host&&e.port===t.port))(new URL(Vu.origin)):()=>!0;const fl=/^https?:(?!\/\/)/i;function dl(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${yu}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${yu}`);return-1===n?r:`${r}#${o=t.slice(n+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${yu}`):o}`;var o}function pl(e,t){if("string"==typeof e){const n=rl(e);if(fl.test(n))throw new wu(`Invalid URL ${JSON.stringify(dl(n))}: missing "//" after protocol`,wu.ERR_INVALID_URL,t)}}function hl(e,t,n,r){pl(t,r);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===n)?(pl(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const gl=e=>e instanceof bu?{...e}:e,bl=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>{const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable})):Object.keys(e);function yl(e,t,n,r){return ru.isPlainObject(e)&&ru.isPlainObject(t)?ru.merge.call({caseless:r},e,t):ru.isPlainObject(t)?ru.merge({},t):ru.isArray(t)?t.slice():t}function ml(e,t,n,r){return ru.isUndefined(t)?ru.isUndefined(e)?void 0:yl(void 0,e,0,r):yl(e,t,0,r)}function vl(e,t){if(!ru.isUndefined(t))return yl(void 0,t)}function _l(e,t){return ru.isUndefined(t)?ru.isUndefined(e)?void 0:yl(void 0,e):yl(void 0,t)}function wl(e,t,n,r,o){return ru.hasOwnProp(o,n)?yl(e,t):ru.hasOwnProp(r,n)?yl(void 0,e):void 0}const Sl=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),Ol={url:vl,method:vl,data:vl,baseURL:_l,transformRequest:_l,transformResponse:_l,params:function(e,t){const n=[],r=new WeakMap,o={};function i(e,t){if(!ru.isPlainObject(t))return ru.isArray(t)?t.slice():t;const i=ru.isPlainObject(e)?e:o;let a=r.get(t);if(a||(a=new WeakMap,r.set(t,a)),a.has(i))return a.get(i);const s={};return a.set(i,s),n.push({base:i,source:t,result:s}),s}const a=ru.isUndefined(t)?i(void 0,e):i(e,t);for(;n.length;){const{base:e,source:t,result:r}=n.pop(),o=new Set(bl(e)),a=new Set(bl(t));new Set([...o,...a]).forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;const s=a.has(n),u=s?t[n]:void 0,l=s&&!ru.isPlainObject(u)||!o.has(n)?void 0:e[n];r[n]=s?i(l,u):i(void 0,l)})}return function(e){const t=[{value:e}],n=new WeakSet,r=new WeakSet;for(;t.length;){const{value:e,done:o}=t.pop();if(!ru.isPlainObject(e)&&!ru.isArray(e))continue;if(o){n.delete(e);continue}if(n.has(e))throw new wu("Circular reference detected in params",wu.ERR_BAD_OPTION_VALUE);if(r.has(e))continue;r.add(e),n.add(e),t.push({value:e,done:!0});const i=Object.keys(e);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(e).forEach(t=>{const n=Object.getOwnPropertyDescriptor(e,t);n&&n.enumerable&&i.push(t)}),i.forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n){const r=Object.getOwnPropertyDescriptor(e,n);r&&ru.hasOwnProp(r,"value")&&t.push({value:r.value})}else t.push({value:e[n]})})}}(a),a},paramsSerializer:_l,timeout:_l,timeoutErrorMessage:_l,withCredentials:_l,withXSRFToken:_l,adapter:_l,responseType:_l,xsrfCookieName:_l,xsrfHeaderName:_l,onUploadProgress:_l,onDownloadProgress:_l,decompress:_l,maxContentLength:_l,maxBodyLength:_l,beforeRedirect:_l,transport:_l,httpAgent:_l,httpsAgent:_l,cancelToken:_l,socketPath:_l,allowedSocketPaths:_l,responseEncoding:_l,validateStatus:wl,headers:function(e,t,n){return ml(gl(e),gl(t),0,!0)}};function jl(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",Sl);const r=bl({...e,...t});for(let o=0,i=r.length;o<i;o++){const i=r[o];if("__proto__"===i||"constructor"===i||"prototype"===i)continue;const a=ru.hasOwnProp(Ol,i)?Ol[i]:ml,s=ru.hasOwnProp(e,i)?e[i]:void 0,u=ru.hasOwnProp(t,i)?t[i]:void 0,l=a===wl?a(s,u,i,e,t):a(s,u,i);ru.isUndefined(l)&&a!==wl||(n[i]=l)}return ru.hasOwnProp(t,"validateStatus")&&ru.isUndefined(t.validateStatus)&&!1===function(e,t,n){const r=ru.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ru.isUndefined(r)){if(!ru.isPlainObject(r))return;if(ru.hasOwnProp(r,n))return r[n]}const o=ru.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ru.isPlainObject(o)&&ru.hasOwnProp(o,n))return o[n]}(e,t,"validateStatusUndefinedResolves")&&(ru.hasOwnProp(e,"validateStatus")?n.validateStatus=yl(void 0,e.validateStatus):delete n.validateStatus),n}const xl=["content-type","content-length"];const kl=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),El=e=>al.read(e);function Rl(e,t=El){const n=jl({},e),r=e=>ru.hasOwnProp(n,e)?n[e]:void 0,o=r("data");let i=r("withXSRFToken");const a=r("xsrfHeaderName"),s=r("xsrfCookieName");let u=r("headers");const l=r("auth"),c=r("baseURL"),f=r("allowAbsoluteUrls"),d=r("url");if(n.headers=u=bu.from(u),n.url=Cu(hl(c,d,f,n),r("params"),r("paramsSerializer")),l){const t=ru.getSafeProp(l,"username")||"",n=ru.getSafeProp(l,"password")||"",o=r("transitional"),i=o&&ru.hasOwnProp(o,"encodeBasicAuthUsername")&&!0===o.encodeBasicAuthUsername;try{u.set("Authorization","Basic "+btoa((i?kl(t):t)+":"+(n?kl(n):"")))}catch(t){throw wu.from(t,wu.ERR_BAD_OPTION_VALUE,e)}}if(ru.isFormData(o)){const e=ru.getSafeProp(o,"getHeaders");Vu.hasStandardBrowserEnv||Vu.hasStandardBrowserWebWorkerEnv||ru.isReactNative(o)?u.setContentType(void 0):ru.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{xl.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(u,e.call(o),r("formDataHeaderPolicy"))}if(Vu.hasStandardBrowserEnv){ru.isFunction(i)&&(i=i(n));if(!0===i||null==i&&cl(n.url)){const e=a&&s&&t(s);e&&u.set(a,e)}}return n}var Pl="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o;try{const e=Vu.hasStandardBrowserEnv&&"undefined"!=typeof window&&window.cookieStore;r=e&&ru.isFunction(e.get)}catch(e){}const i=Rl(e,r?e=>(o=e,null):void 0);let a=i.data;const s=bu.from(i.headers).normalize();let u,l,c,f,d,p,h,{responseType:g,onUploadProgress:b,onDownloadProgress:y}=i;function m(){clearTimeout(l);try{d&&d()}catch(e){setTimeout(()=>{throw e})}try{p&&p()}catch(e){setTimeout(()=>{throw e})}v&&(f&&v.removeEventListener("progress",f),v.upload&&(c&&v.upload.removeEventListener("progress",c),d&&v.upload.removeEventListener("loadend",d))),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;function _(r){if(!v)return;if(!(0!==v.status||"file"===(ol(rl(i.url))||ol(Vu.origin))||v.responseURL&&v.responseURL.startsWith("file:")))return n(new wu("Request aborted",wu.ECONNABORTED,e,v)),m(),void(v=null);try{r?h&&h(r):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!v)return;const o=bu.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());tl(function(e){t(e),m()},function(e){n(e),m()},{data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:o,config:e,request:v}),v=null}if(v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(_)},v.onabort=function(){v&&(n(new wu("Request aborted",wu.ECONNABORTED,e,v)),m(),v=null)},v.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new wu(r,wu.ERR_NETWORK,e,v);o.event=t||null,n(o),m(),v=null},v.ontimeout=function(){if(!v)return;let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Fu;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new wu(t,r.clarifyTimeoutError?wu.ETIMEDOUT:wu.ECONNABORTED,e,v)),m(),v=null},void 0===a&&s.setContentType(null),ru.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),g&&"json"!==g&&(v.responseType=i.responseType),y&&([f,p,h]=sl(y,!0),v.addEventListener("progress",f)),b&&v.upload&&([c,d]=sl(b),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",d)),i.cancelToken||i.signal){if(u=t=>{if(!v)return;n(!t||t.type?new el(null,e,v):t);const r=v;m(),v=null,r.abort()},i.cancelToken&&i.cancelToken.subscribe(u),!v)return;i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u))}if(!v)return;const w=ol(i.url);if(w&&!Vu.protocols.includes(w))return n(new wu("Unsupported protocol "+w+":",wu.ERR_BAD_REQUEST,e)),void m();const S=()=>{v&&("setRequestHeader"in v&&ru.forEach(uu(s),function(e,t){v.setRequestHeader(t,e)}),v.send(a||null))};if(o){const t="undefined"!=typeof performance&&ru.isFunction(performance.now)?()=>performance.now():Date.now,r=v.timeout>0?t()+Number(v.timeout):void 0,a=()=>{if(!v)return;const e=v;e.ontimeout(),e.abort()};if(void 0!==r){const e=()=>{const n=r-t();n>0?l=setTimeout(e,Math.min(n,2147483647)):a()};e()}al.readAsync(o).then(e=>{if(v)if(void 0!==r&&t()>=r)a();else{if(e){const t=ru.hasOwnProp(i,"xsrfHeaderName")&&i.xsrfHeaderName;s.set(t,e)}S()}}).catch(t=>{v&&(n(wu.from(t,null,e,v)),m(),v=null)})}else S()})};const Al=(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 wu?t:new el(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new wu(`timeout of ${t}ms exceeded`,wu.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{const t=ru.getSafeProp(e,"unsubscribe");ru.isFunction(t)?t.call(e,o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:s}=n;return s.unsubscribe=()=>ru.asap(a),s},Cl=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},Tl=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()}},Nl=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Tl(e))yield*Cl(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})},Ml="\r\n",Ll=e=>String(e).replace(/\r\n|\r|\n/g,Ml),Il=e=>String(e).replace(/[\r\n"]/g,e=>"\r"===e?"%0D":"\n"===e?"%0A":"%22"),Fl=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);!t||13!==o&&10!==o?o<128?n++:o<2048?n+=2:o>=55296&&o<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3:(13===o&&10===e.charCodeAt(r+1)&&r++,n+=2)}return n};class Dl extends TypeError{constructor(e,t){super(e),this.name="FormDataError",this.reason=t}}function Ul(e,t,n,r,o){if(!ru.isFunction(t))throw new wu("Blob is not supported",wu.ERR_NOT_SUPPORT);if(void 0===o)if(ru.isFunction(Vu.generateString))o="axios-"+Vu.generateString(36,"0123456789abcdef");else{const e=ru.global.crypto;if(!e||!ru.isFunction(e.getRandomValues))throw new wu("Random byte generation is not supported",wu.ERR_NOT_SUPPORT);const t=new Uint8Array(18);e.getRandomValues(t),o="axios-"+Array.from(t,e=>("0"+e.toString(16)).slice(-2)).join("")}try{return function(e,t,n,r,o){if(!ru.isFunction(t))throw new Dl("Blob is not supported","blob");if(!ru.isString(o)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(o)||/ $/.test(o))throw new Dl("Invalid multipart boundary","boundary");const i="--"+o+"--"+Ml;let a=i.length;const s=[],u=e=>{if(a+e>n)throw r()};u(0);for(const[t,n]of e){const e=ru.isString(n),r=e?Fl(n,!0):n.size;if(!Number.isFinite(r)||r<0)throw new Dl("Unsupported FormData part size","part");u(r+Fl(t,!0)+(!e&&n.name?Fl(n.name,!1):0)+(!e&&n.type?Fl(n.type,!1):0));let i="--"+o+'\r\nContent-Disposition: form-data; name="'+Il(Ll(t))+'"';e||(i+='; filename="'+Il(ru.isString(n.name)?n.name:"blob")+'"\r\nContent-Type: '+String(n.type||"application/octet-stream").replace(/[\r\n]/g,"")),i+=Ml+Ml;const l=Fl(i,!1)+r+2;u(l),a+=l,s.push({header:i,value:n,isString:e})}const l=[];for(const e of s)l.push(e.header,e.isString?Ll(e.value):e.value,Ml);return l.push(i),new t(l,{type:"multipart/form-data; boundary="+o})}(e,t,n,r,o)}catch(e){if(e instanceof Dl){const t="boundary"===e.reason?wu.ERR_BAD_OPTION_VALUE:wu.ERR_BAD_REQUEST;throw new wu(e.message,t)}throw e}}const zl=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Bl=(e,t,n)=>t+2<n&&zl(e.charCodeAt(t+1))&&zl(e.charCodeAt(t+2)),ql=e=>e<=57?e-48:(223&e)-55,Hl=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Vl=e=>9===e||10===e||12===e||13===e||32===e,$l=e=>{const t=e.length;let n=0,r=0,o=!1;for(let i=0;i<t;i++){let a=e.charCodeAt(i);37===a&&Bl(e,i,t)&&(a=16*ql(e.charCodeAt(i+1))+ql(e.charCodeAt(i+2)),i+=2),Vl(a)||(61!==a?!Hl(a)||r>0?o=!0:n++:r++)}return o||r>2||r>0&&(n+r)%4!=0||n%4==1?(e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)};function Wl(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t,n)=>{if(!e||"string"!=typeof e)return 0;if(!/^data:/i.test(e))return 0;const r=e.indexOf(",");if(r<0)return 0;const o=e.slice(5,r),i=e.slice(r+1);if(n.test(o))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){const n=i.charCodeAt(e);if(37===n&&Bl(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a})(-1===t?e:e.slice(0,t),$l,/; *base64[\t\n\f\r ]*$/i)}const Gl="1.21.0",Kl={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Jl}=ru,Yl=e=>{if(!ru.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Xl=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ql=e=>{const t=void 0!==ru.global&&null!==ru.global?ru.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ru.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);const o=ru.hasOwnProp(e,"fetch")?e.fetch:void 0,{Request:i,Response:a,Blob:s}=e,u=o?Jl(o):"function"==typeof fetch,l=Jl(i),c=Jl(a);if(!u)return!1;const f=u&&Jl(n),d=u&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const h=l&&f&&Xl(()=>{let e=!1;const t=new i(Vu.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}),g=c&&f&&Xl(()=>ru.isReadableStream(new a("").body)),b=Object.assign(Object.create(null),Kl);l&&!Xl(()=>new i(Vu.origin,b))&&(delete b.cache,Xl(()=>new i(Vu.origin,b))||(b.cache=Kl.cache));const y={stream:g&&(e=>e.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!y[e]&&(y[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new wu(`Response type '${e}' is not supported`,wu.ERR_NOT_SUPPORT,n)})});const m=async e=>null==e?0:ru.isBlob(e)?e.size:ru.isArrayBufferView(e)||ru.isArrayBuffer(e)?e.byteLength:(ru.isURLSearchParams(e)&&(e+=""),ru.isString(e)?(await d(e)).byteLength:void 0);return async e=>{let{url:t,method:n,data:u,signal:c,cancelToken:d,timeout:p,onDownloadProgress:v,onUploadProgress:_,responseType:w,headers:S,withCredentials:O="same-origin",fetchOptions:j,maxContentLength:x,maxBodyLength:k,maxRedirects:E}=Rl(e);const R=ru.isNumber(x)&&x>-1,P=ru.isNumber(k)&&k>-1,A=t=>ru.hasOwnProp(e,t)?e[t]:void 0;let C=o||fetch;w=w?(w+"").toLowerCase():"text";let T=Al([c,d&&d.toAbortSignal()],p),N=null;const M=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let L,I=null,F=null;const D=()=>new wu("Request body larger than maxBodyLength limit",wu.ERR_BAD_REQUEST,e,N);try{let o;const c=A("auth");if(c){const e=ru.getSafeProp(c,"username")||"";o={username:e,password:ru.getSafeProp(c,"password")||""}}let d;if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){if(d=new URL(t,Vu.origin),!o&&(d.username||d.password)){const e=Yl(d.username);o={username:e,password:Yl(d.password)}}(d.username||d.password)&&(d.username="",d.password="",t=d.href)}if(o&&(S.delete("authorization"),S.set("Authorization","Basic "+btoa((U=(o.username||"")+":"+(o.password||""),encodeURIComponent(U).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),R&&d&&"data:"===d.protocol){if(Wl(d.href)>x)throw new wu("maxContentLength size of "+x+" exceeded",wu.ERR_BAD_RESPONSE,e,N)}const p=ru.isSpecCompliantForm(u)&&bu.from(A("headers")).getContentType();let z;if(ru.isString(p)&&/^multipart\/form-data(?:\s*;|$)/i.test(p.trim())){const e=bu.parseParameters(p);ru.hasOwnProp(e,"boundary")&&(z=e.boundary)}if(ru.isSpecCompliantForm(u)&&"get"!==n&&"head"!==n&&(P||_&&h||void 0!==z)&&(u=Ul(u,s,P?k:1/0,D,z),S.setContentType(void 0===z?u.type:p),L=u.size),P&&"get"!==n&&"head"!==n){const e=await m(u);if("number"==typeof e&&isFinite(e)&&(L=e,e>k))throw D()}const B=P&&(ru.isReadableStream(u)||ru.isStream(u)),q=(e,t,n)=>Nl(e,65536,e=>{if(P&&e>k)throw I=D();t&&t(e)},n);if(h&&"get"!==n&&"head"!==n&&(_||B)){if(L=null==L?await(async(e,t)=>{const n=ru.toFiniteNumber(e.getContentLength());return null==n?m(t):n})(S,u):L,0!==L||B){let e,n=new i(t,{method:"POST",body:u,duplex:"half"});if(ru.isFormData(u)&&(e=n.headers.get("content-type"))&&S.setContentType(e),n.body){const[e,t]=_&&ul(L,sl(ll(_)))||[];u=q(n.body,e,t)}}}else if(B&&!l&&f&&"get"!==n&&"head"!==n)u=q(u);else if(B&&l&&!h&&"get"!==n&&"head"!==n)throw new wu("Stream request bodies are not supported by the current fetch implementation",wu.ERR_NOT_SUPPORT,e,N);ru.isString(O)||(O=O?"include":"omit");const H=l&&"credentials"in i.prototype;if(ru.isFormData(u)){const e=S.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&S.delete("content-type")}S.set("User-Agent","axios/"+Gl,!1);const V=null==j?j:Object.assign(Object.create(null),j);V&&(delete V.body,delete V.headers,delete V.method,delete V.signal,delete V.duplex,delete V.credentials);const $=Object.assign(Object.create(null),V,{signal:T,method:n.toUpperCase(),headers:uu(S.normalize()),body:u,duplex:"half",credentials:H?O:void 0});l&&(ru.forEach(b,(e,t)=>{void 0===$[t]&&($[t]=e)}),void 0===$.signal&&($.signal=null),void 0===$.body&&($.body=null)),0===E&&($.redirect="manual",V&&(V.redirect="manual")),N=l&&new i(t,$);let W=await(l?C(N,V):C(t,$));const G=bu.from(W.headers);if(R){const t=ru.toFiniteNumber(G.getContentLength());if(null!=t&&t>x)throw new wu("maxContentLength size of "+x+" exceeded",wu.ERR_BAD_RESPONSE,e,N)}const K=g&&("stream"===w||"response"===w);if(g&&W.body&&(v||R||K&&M)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=W[e]});const n=ru.toFiniteNumber(G.getContentLength()),[r,o]=v&&ul(n,sl(ll(v),!0))||[];let i=0;const s=t=>{if(R&&(i=t,i>x))throw F=new wu("maxContentLength size of "+x+" exceeded",wu.ERR_BAD_RESPONSE,e,N);r&&r(t)};W=new a(Nl(W.body,65536,s,()=>{o&&o(),M&&M()}),t)}w=w||"text";let J=await y[ru.findKey(y,w)||"text"](W,e);if(R&&!g&&!K){let t;if(null!=J&&("number"==typeof J.byteLength?t=J.byteLength:"number"==typeof J.size?t=J.size:"string"==typeof J&&(t="function"==typeof r?(new r).encode(J).byteLength:J.length)),"number"==typeof t&&t>x)throw new wu("maxContentLength size of "+x+" exceeded",wu.ERR_BAD_RESPONSE,e,N)}return!K&&M&&M(),await new Promise((t,n)=>{tl(t,n,{data:J,headers:bu.from(W.headers),status:W.status,statusText:W.statusText,config:e,request:N})})}catch(t){if(M&&M(),T&&T.aborted&&T.reason instanceof wu){const n=T.reason;throw n.config=e,N&&(n.request=N),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw N&&!I.request&&(I.request=N),I;if(F)throw F;if(t instanceof wu)throw N&&!t.request&&(t.request=N),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const n=new wu("Network Error",wu.ERR_NETWORK,e,N,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw wu.from(t,t&&t.code,e,N,t&&t.response)}var U}},Zl=new Map,ec=e=>{const t=Object.create(null),n=e&&ru.hasOwnProp(e,"env")&&e.env;["fetch","Request","Response","Blob"].forEach(e=>{n&&ru.hasOwnProp(n,e)&&(t[e]=n[e])});const{fetch:r,Request:o,Response:i,Blob:a}=t,s=[o,i,r,a];let u,l,c=s.length,f=Zl;for(;c--;)u=s[c],l=f.get(u),void 0===l&&f.set(u,l=c?new Map:Ql(t)),f=l;return l};ec();const tc={http:null,xhr:Pl,fetch:{get:ec}};ru.forEach(tc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const nc=e=>`- ${e}`,rc=e=>ru.isFunction(e)||null===e||!1===e;var oc={getAdapter:function(e,t){e=ru.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,!rc(r)&&(o=tc[(n=String(r)).toLowerCase()],void 0===o))throw new wu(`Unknown adapter '${n}'`);if(o&&(ru.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(nc).join("\n"):" "+nc(e[0]):"as no adapter specified";throw new wu("There is no suitable adapter to dispatch the request "+t,wu.ERR_NOT_SUPPORT)}return o},adapters:tc};function ic(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new el(null,e)}function ac(e){return Math.max(0,Date.now()-e)}function sc(e){const t=ru.toSafeFlatObject(e);ic(t),t.headers=bu.from(ru.getSafeProp(t,"headers")),t.data=Qu.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const n=oc.getAdapter(t.adapter||Xu.adapter,t),r=Date.now();return n(t).then(function(e){ic(t),e.duration=ac(r),t.response=e;try{e.data=Qu.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=bu.from(e.headers),e},function(e){if(!Zu(e)&&(ic(t),e&&e.response)){e.response.duration=ac(r),t.response=e.response;try{e.response.data=Qu.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=bu.from(e.response.headers)}return Promise.reject(e)})}const uc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const lc={};uc.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Gl+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new wu(r(o," has been removed"+(t?" in "+t:"")),wu.ERR_DEPRECATED);return t&&!lc[o]&&(lc[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)}},uc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var cc={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new wu("options must be an object",wu.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 wu("option "+i+" must be "+n,wu.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new wu("Unknown option "+i,wu.ERR_BAD_OPTION)}},validators:uc};const fc=cc.validators,dc=e=>{if(null==e||ru.isPlainObject(e)||e instanceof bu)return!0;try{return ru.isObject(e)&&"AxiosHeaders"===ru.getSafeProp(e,Symbol.toStringTag)&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(t=>ru.isFunction(ru.getSafeProp(e,t)))}catch(e){return!1}};let pc=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Iu,response:new Iu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack;let r="";if("string"==typeof n){const e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?r:r.slice(n+1),i=String(e.stack),a=function(e,t){const n=ru.hasOwnProp(e,_u)&&e[_u];return n&&t.endsWith(n)?t.length-n.length:-1}(e,i),s=-1===a?i:i.slice(0,a),u=-1===a?"":i.slice(a);s.endsWith(o)||(e.stack=s+"\n"+r+u)}}else e.stack=r}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=jl(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&cc.assertOptions(n,{silentJSONParsing:fc.transitional(fc.boolean),forcedJSONParsing:fc.transitional(fc.boolean),clarifyTimeoutError:fc.transitional(fc.boolean),legacyInterceptorReqResOrdering:fc.transitional(fc.boolean),advertiseZstdAcceptEncoding:fc.transitional(fc.boolean),validateStatusUndefinedResolves:fc.transitional(fc.boolean),encodeBasicAuthUsername:fc.transitional(fc.boolean)},!1),null!=r&&(ru.isFunction(r)?t.paramsSerializer={serialize:r}:cc.assertOptions(r,{encode:fc.function,serialize:fc.function},!0)),void 0!==t.allowAbsoluteUrls||(ru.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cc.assertOptions(t,{baseUrl:fc.spelling("baseURL"),withXsrfToken:fc.spelling("withXSRFToken")},!0),t.method=(ru.getSafeProp(t,"method")||ru.getSafeProp(this.defaults,"method")||"get").toLowerCase();const i=ru.getSafeProp(o,"common"),a=ru.getSafeProp(o,t.method),s=o&&ru.merge(dc(i)?i:void 0,dc(a)?a:void 0);o&&ru.forEach(Ju.concat("common"),e=>{dc(ru.getSafeProp(o,e))&&delete o[e]}),t.headers=bu.concat(s,o);const u=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||Fu;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)});const c=[];let f;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,p=0;if(!l){const e=[sc.bind(this),void 0];for(e.unshift(...u),e.push(...c),d=e.length,f=Promise.resolve(t);p<d;)f=f.then(e[p++],e[p++]);return f}d=u.length;let h=t;for(;p<d;){const e=u[p++],t=u[p++];try{h=e?e(h):h}catch(e){if(!t){f=Promise.reject(e);break}try{const n=t.call(this,e);ru.isThenable(n)&&(f=Promise.resolve(n).then(()=>sc.call(this,h)))}catch(e){f=Promise.reject(e)}break}}if(!f)try{f=sc.call(this,h)}catch(e){f=Promise.reject(e)}for(p=0,d=c.length;p<d;)f=f.then(c[p++],c[p++]);return f}getUri(e){return Cu(hl((e=jl(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};ru.forEach(["delete","get","head","options"],function(e){pc.prototype[e]=async function(t,n){return this.request(jl(n||{},{method:e,url:t,data:n&&ru.hasOwnProp(n,"data")?n.data:void 0}))}}),ru.forEach(["post","put","patch","query"],function(e){function t(t){return async function(n,r,o){return this.request(jl(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}pc.prototype[e]=t(),"query"!==e&&(pc.prototype[e+"Form"]=t(!0))});const hc={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(hc).forEach(([e,t])=>{void 0===hc[t]&&(hc[t]=e)});const gc=function e(t){const n=new pc(t),r=as(pc.prototype.request,n);return ru.extend(r,pc.prototype,n,{allOwnKeys:!0}),ru.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(jl(t,n))},r}(Xu);gc.Axios=pc,gc.CanceledError=el,gc.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 el(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}}},gc.isCancel=Zu,gc.VERSION=Gl,gc.toFormData=ku,gc.AxiosError=wu,gc.Cancel=gc.CanceledError,gc.all=function(e){return Promise.all(e)},gc.spread=function(e){return function(t){return e.apply(null,t)}},gc.isAxiosError=function(e){return ru.isObject(e)&&!0===e.isAxiosError},gc.mergeConfig=jl,gc.AxiosHeaders=bu,gc.formToJSON=e=>Ku(ru.isHTMLForm(e)?new FormData(e):e),gc.getAdapter=oc.getAdapter,gc.HttpStatusCode=hc,gc.default=gc;const{Axios:bc,AxiosError:yc,CanceledError:mc,isCancel:vc,CancelToken:_c,VERSION:wc,all:Sc,Cancel:Oc,isAxiosError:jc,spread:xc,toFormData:kc,AxiosHeaders:Ec,HttpStatusCode:Rc,formToJSON:Pc,getAdapter:Ac,mergeConfig:Cc,create:Tc}=gc;function Nc(e,t){return e?Object.keys(e).map(n=>{const r=t||n,o=e[n];return"object"==typeof o?Nc(o,r):`${encodeURIComponent(r)}=${encodeURIComponent(o)}`}).join("&"):""}function Mc(e,t){return gc.get(encodeURI(e)+(t?(-1===e.search(/\?/)?"?":"&")+Nc(t):""),{timeout:1e4,method:"GET",headers:{Accept:"application/json"}}).then(e=>e.data)}function Lc(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 Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lc(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fc(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=Ic(Ic(Ic({text:u},t),r),{},{lang:n});if(o&&(c=Ic(Ic({},c),{},{sources:o})),s){const e=s.toString();c=Ic(Ic({},c),{},{layers:e})}return Mc(l,c).then(e=>e.features)}function Dc(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 Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zc(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},`,Uc(Uc({},e),{},{gid:r})}).reduce(function(e,t){return e[t.gid]=t,e},{});return Mc(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 Bc(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(Be(r,10).map(e=>{const t=Uc(Uc({},e),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete t.properties.confidence,t}))}const qc=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],Hc=["venue","address","street"],Vc=["carpark","bikepark"],$c=["stop","station"];const Wc=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:A,getFutureRoutes:C,cityBikeNetworks:T}=r,N=!e||0===e.length,M=!t||0===t.length,L=c(S),I=[],F={type:"all",term:a,results:[]},D=g(S),U=O&&l?.lat&&l?.lon?{"focus.point.lat":l.lat.toFixed(3),"focus.point.lon":l.lon.toFixed(3)}:{},z=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)),(N||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=C(S);I.push(Be(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)),N||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:Uc(Uc({},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(M||t.includes("Datasource")){const t=["venue","address","street"];e.includes("Stations")&&t.push("station"),I.push(Fc(a,n,D,U,A.join(","),k,j,t))}if(M||t.includes("History")){const e=d("endpoint"),t=["bikestation"];t.push(...$c),t.push(...qc),t.push(...Vc),I.push(Bc(e,a,t))}}if(N||e.includes("ParkingAreas")){if(M||t.includes("Datasource")){const e=P;i&&10!==i&&(e.size=i);const t=["carpark","bikepark"],n=h?h.join(","):null;I.push(Fc(a,e,D,U,n,k,j,t).then(e=>o?o(e,z):e))}if(M||t.includes("History")){const e=d(),t=["bikestation"];t.push(...$c),t.push(...qc),t.push(...Hc),I.push(Bc(e,a,t))}}const B=e.includes("Stops"),q=e.includes("Stations");if(N||B||q){if(t.includes("Favourite")){const e=p(S);let t;t=e.every(e=>"station"===e.type)?zc(e,E).then(e=>o?o(e,z):e):b(e).then(e=>zc(e,E)).then(e=>o?o(e,z):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,B,q))}if(M||t.includes("Datasource")){const t=[];B&&t.push("stop"),q&&t.push("station");const n=i&&10!==i?{size:i}:{};P&&P["boundary.country"]&&(n["boundary.country"]=P["boundary.country"]),(N||e.includes("Locations"))&&(n.dedupestops=1);const r=R.map(e=>`gtfs${e}`).join(",");I.push(Fc(a,n,D,U,r,k,j,t).then(e=>o?o(e,z):e))}if(M||t.includes("History")){const e=d().filter(e=>!e.properties.gid||e.properties.gid.includes("GTFS:")),t=["bikestation"];t.push(...qc),t.push(...Hc),t.push(...Vc),B||t.push("stop"),q||t.push("station"),n?I.push(Bc(e,a,t).then(e=>o?o(e,z):e)):I.push(Bc(e,a,t))}}if(N||e.includes("Routes")){if(t.includes("Favourite")){const e=_(S);I.push(v(e,a,z,u).then(e=>o?o(e,z,"Routes"):e))}if(I.push(w(a,R,n,u).then(e=>o?o(e,z,"Routes"):e)),M||t.includes("History")){const e=d(),t=["bikestation"];n&&t.push(...qc.filter(e=>!(e===n))),t.push(...$c),t.push(...Hc),t.push(...Vc),I.push(Bc(e,a,t).then(e=>o?o(e,z,"Routes"):e))}}if(N||e.includes("VehicleRentalStations")){if(t.includes("Favourite")){const e=m(S);I.push(y(e,a))}if(M||t.includes("Datasource")){const e=["bikestation"],t=i&&10!==i?{size:i}:{};I.push(Fc(a,t,D,U,T.join(","),k,j,e).then(e=>o?o(e,z,"VehicleRentalStations"):e))}if(M||t.includes("History")){const e=d(),t=[...$c];t.push(...qc),t.push(...Hc),t.push(...Vc),I.push(Bc(e,a,t))}}Promise.all(I).then(Ie).then(e=>{F.results=e}).catch(e=>{F.error=e}).then(()=>{s(Uc(Uc({},F),{},{results:ns(x,F.results,a)}))})},300,{leading:!0}),Gc=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 Kc(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))}}Gc.init();var Jc,Yc,Xc={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"};Kc("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(Yc)return Jc;Yc=1;var e=Wi();Jc=function(t,n){return e(t,n)}}();var Qc,Zc,ef=Q(wr());var tf,nf,rf,of,af,sf,uf,lf,cf,ff,df,pf,hf,gf,bf,yf,mf,vf,_f,wf,Sf=function(){if(Zc)return Qc;Zc=1;var e=Or(),t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return Qc=function(r){return(r=e(r))&&n.test(r)?r.replace(t,"\\$&"):r}}(),Of=Q(Sf);function jf(){if(sf)return af;sf=1;var e=function(){if(of)return rf;of=1;var e=dr(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return rf=t}();return af=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function xf(){if(lf)return uf;lf=1;var e=jf(),t=gr(),n=Object.prototype.hasOwnProperty;return uf=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 kf(){if(ff)return cf;ff=1;var e=xf(),t=jf();return cf=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},cf}function Ef(){if(yf)return bf;yf=1;var e=Z(),t=Fi(),n=gf?hf:(gf=1,hf=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),r=Object.prototype.hasOwnProperty;return bf=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 Rf(){if(vf)return mf;vf=1;var e=Ii(),t=Ef(),n=zi();return mf=function(r){return n(r)?e(r,!0):t(r)}}var Pf,Af,Cf,Tf,Nf,Mf,Lf,If,Ff,Df,Uf,zf,Bf,qf,Hf,Vf,$f,Wf,Gf,Kf,Jf,Yf,Xf,Qf,Zf,ed,td,nd,rd,od,id,ad,sd,ud,ld,cd,fd,dd,pd,hd,gd,bd,yd,md={exports:{}};function vd(){if(Lf)return Mf;Lf=1;var e=Di()(Object.getPrototypeOf,Object);return Mf=e}function _d(){if(Ff)return If;Ff=1;var e=je(),t=vd(),n=Ir(),r=Lr(),o=Object.getOwnPropertySymbols;return If=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function wd(){if($f)return Vf;$f=1;var e=Cr();return Vf=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function Sd(){if(td)return ed;td=1;var e=wd(),t=function(){if(Gf)return Wf;Gf=1;var e=wd();return Wf=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(Jf)return Kf;Jf=1;var e=/\w*$/;return Kf=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(Xf)return Yf;Xf=1;var e=re(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return Yf=function(e){return n?Object(n.call(e)):{}}}(),o=function(){if(Zf)return Qf;Zf=1;var e=wd();return Qf=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}();return ed=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 Od(){if(id)return od;id=1;var e=function(){if(rd)return nd;rd=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 nd=n}(),t=vd(),n=Fi();return od=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function jd(){if(ld)return ud;ld=1;var e=function(){if(sd)return ad;sd=1;var e=Vi(),t=ie();return ad=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=Qr(),n=Mi(),r=n&&n.isMap,o=r?t(r):e;return ud=o}function xd(){if(pd)return dd;pd=1;var e=function(){if(fd)return cd;fd=1;var e=Vi(),t=ie();return cd=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=Qr(),n=Mi(),r=n&&n.isSet,o=r?t(r):e;return dd=o}function kd(){if(gd)return hd;gd=1;var e=Er(),t=(nf||(nf=1,tf=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),tf),n=xf(),r=function(){if(pf)return df;pf=1;var e=kf(),t=Bi();return df=function(n,r){return n&&e(r,t(r),n)}}(),o=function(){if(wf)return _f;wf=1;var e=kf(),t=Rf();return _f=function(n,r){return n&&e(r,t(r),n)}}(),i=(Pf||(Pf=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}}(md,md.exports)),md.exports),a=(Cf||(Cf=1,Af=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),Af),s=function(){if(Nf)return Tf;Nf=1;var e=kf(),t=Ir();return Tf=function(n,r){return e(n,t(n),r)}}(),u=function(){if(Uf)return Df;Uf=1;var e=kf(),t=_d();return Df=function(n,r){return e(n,t(n),r)}}(),l=qi(),c=function(){if(Bf)return zf;Bf=1;var e=Mr(),t=_d(),n=Rf();return zf=function(r){return e(r,n,t)}}(),f=Vi(),d=function(){if(Hf)return qf;Hf=1;var e=Object.prototype.hasOwnProperty;return qf=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=Sd(),h=Od(),g=ke(),b=Jr(),y=jd(),m=Z(),v=xd(),_=Bi(),w=Rf(),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,hd=function k(E,R,P,A,C,T){var N,M=1&R,L=2&R,I=4&R;if(P&&(N=C?P(E,A,C,T):P(E)),void 0!==N)return N;if(!m(E))return E;var F=g(E);if(F){if(N=d(E),!M)return a(E,N)}else{var D=f(E),U=D==O||"[object GeneratorFunction]"==D;if(b(E))return i(E,M);if(D==j||D==S||U&&!C){if(N=L||U?{}:h(E),!M)return L?u(E,o(N,E)):s(E,r(N,E))}else{if(!x[D])return C?E:{};N=p(E,D,M)}}T||(T=new e);var z=T.get(E);if(z)return z;T.set(E,N),v(E)?E.forEach(function(e){N.add(k(e,R,P,e,E,T))}):y(E)&&E.forEach(function(e,t){N.set(t,k(e,R,P,t,E,T))});var B=F?void 0:(I?L?c:l:L?w:_)(E);return t(B||E,function(e,t){B&&(e=E[t=e]),n(N,t,k(e,R,P,t,E,T))}),N},hd}var Ed=Q(function(){if(yd)return bd;yd=1;var e=kd();return bd=function(t){return e(t,5)}}());const Rd=e=>e.localadmin||e.localadmin||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||"",Pd=({id:e,code:t})=>t||(void 0!==e&&void 0!==e.indexOf&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):void 0),Ad=ef((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(`${Of(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(`${Of(e.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return t?[e.name||e.label||e.address&&e.address.split(",")[0],Rd(e)]:[e.name,e.id,Pd(e),Rd(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],Rd(e)]}var n,r},(e,t)=>{const n=Ed(e);return n.plain=t,n});const Cd=e=>e.scrollIntoView({block:"nearest"}),Td=e=>{const t=e&&(e.key||e.which||e.keyCode)||"";return!(!t||![13," ","Spacebar"].concat([32,"Enter"]).includes(t))&&(e.preventDefault(),!0)},Nd=e=>"origin"===e||"destination"===e||"via-point"===e||"origin-stop-near-you"===e,Md=(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 Ld(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]=Ad(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=Pd(e.properties),s=e.properties.addendum?.GTFS.modes,u=Md(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,Md(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 Id(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 Fd=e=>"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){const t=Ad(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),Dd=({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(Ld(e[0],n))),[...new Set(r)].join(" - ")};var Ud,zd={exports:{}};
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,A,C,T,N,M,L,I,F,D,U,z,B,q=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(N)return T;N=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(C)return A;C=1;var e=Object.prototype.toString;return A=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 M;return L=1,M=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(U)return D;U=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(B)return z;B=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 z=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},z}(),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,Ae,Ce,Te,Ne,Me,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(Ne)return Te;Ne=1;var e=function(){if(Ce)return Ae;Ce=1;var e=se(),t=1/0;return Ae=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,Ue,ze=function(){if(Le)return Me;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 Me=function(n,r,o){return n&&n.length?(r=o||void 0===r?1:t(r),e(n,0,r<0?0:r)):[]}}(),Be=Q(ze);var qe,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,At,Ct,Tt,Nt,Mt,Lt,It,Ft,Dt,Ut,zt,Bt,qt,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,An,Cn,Tn,Nn,Mn,Ln,In,Fn,Dn,Un,zn,Bn,qn,Hn,Vn,$n,Wn,Gn,Kn,Jn,Yn,Xn,Qn,Zn,er,tr,nr,rr,or,ir=function(){if(Ue)return De;Ue=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 qe;return He=1,qe=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},qe}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 Mt;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(Ct)return At;Ct=1;var e=br();return At=function(t){return e(this.__data__,t)>-1}}(),o=function(){if(Nt)return Tt;Nt=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,Mt=i}function mr(){if(Ft)return It;Ft=1;var e=dr()(te(),"Map");return It=e}function vr(){if(Ht)return qt;Ht=1;var e=Bt?zt:(Bt=1,zt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return qt=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(Ut)return Dt;Ut=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(Mn)return Nn;Mn=1;var e=_r(),t=An?Pn:(An=1,Pn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Tn?Cn:(Tn=1,Cn=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,Nn=r}function Pr(){if(Dn)return Fn;return Dn=1,Fn=function(e,t){return e.has(t)}}function Ar(){if(zn)return Un;zn=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 Un=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},Un}function Cr(){if(qn)return Bn;qn=1;var e=te().Uint8Array;return Bn=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 Nr(){if(Kn)return Gn;Kn=1;var e=re(),t=Cr(),n=gr(),r=Ar(),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 Mr(){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,Ur,zr,Br,qr,Hr,Vr,$r,Wr,Gr,Kr={exports:{}};function Jr(){return Ur||(Ur=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(Br)return zr;Br=1;var e=/^(?:0|[1-9]\d*)$/;return zr=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 qr;Hr=1;return qr=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,Ao,Co,To,No,Mo,Lo,Io,Fo,Do,Uo,zo,Bo,qo,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,Ai,Ci,Ti,Ni={exports:{}};function Mi(){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}(Ni,Ni.exports)),Ni.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=Mi(),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 Ui(){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 zi(){if(ho)return po;ho=1;var e=lr(),t=Xr();return po=function(n){return null!=n&&t(n.length)&&!e(n)}}function Bi(){if(bo)return go;bo=1;var e=Ii(),t=Ui(),n=zi();return go=function(r){return n(r)?e(r):t(r)}}function qi(){if(mo)return yo;mo=1;var e=Mr(),t=Ir(),n=Bi();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(Ao)return Po;Ao=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 Co;To=1;var e=Er(),t=Ar(),n=Nr(),r=function(){if(_o)return vo;_o=1;var e=qi(),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 Co=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(Mo)return No;Mo=1;var e=$i(),t=ie();return No=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))},No}function Gi(){if(Do)return Fo;Do=1;var e=Z();return Fo=function(t){return t==t&&!e(t)}}function Ki(){if(qo)return Bo;return qo=1,Bo=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(zo)return Uo;zo=1;var e=Gi(),t=Bi();return Uo=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=Bi();return gi=function(n,r){return n&&e(n,r,t)}}(),t=function(){if(mi)return yi;mi=1;var e=zi();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(Ai)return Pi;Ai=1;var e=sr(),t=kr(),n=ea(),r=function(){if(Si)return wi;Si=1;var e=na(),t=zi();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 Ci;Ti=1;var e=oa(),t=ke();return Ci=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 Aa=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 Ca(e,t){return e&&t&&e===t}const Ta=["stop","station","favouriteStop","favouriteStation"],Na=["favouriteVehicleRentalStation","bikestation"];function Ma(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(Na.includes(n.layer)&&Na.includes(r.layer)){return(n.gid||Ma(n.labelId))===(r.gid||Ma(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&&(Ca(n.name,r.name)||Ca(n.label,r.label)||Ca(n.address,r.address)||Ca(n.address,r.label)||Ca(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),Ua="back",za="currentPosition",Ba="favouriteStop",qa="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 za:return 1;case Ua:return.9;case Ka:return.8;case Ja:return.79;case qa:case Ha:case Ba: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 Aa(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=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ds=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),ps=(e,t,n)=>e===Object.prototype||!n&&null===t,hs=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const o=us(n);if(ps(n,o,n===e))return!1;if(fs(n,t))return!0;n=o}return!1},gs=(bs=Object.create(null),e=>{const t=ss.call(e);return bs[t]||(bs[t]=t.slice(8,-1).toLowerCase())});var bs;const ys=e=>(e=e.toLowerCase(),t=>gs(t)===e),ms=e=>t=>typeof t===e,{isArray:vs}=Array,_s=ms("undefined");function ws(e){return null!==e&&!_s(e)&&null!==e.constructor&&!_s(e.constructor)&&js(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ss=ys("ArrayBuffer");const Os=ms("string"),js=ms("function"),xs=ms("number"),ks=e=>null!==e&&"object"==typeof e,Es=e=>{if(!ks(e))return!1;const t=us(e);return(null===t||t===Object.prototype||null===us(t))&&(ps(e,t,!0)||!fs(e,cs)&&!fs(e,ls))},Rs=ys("Date"),Ps=ys("File"),As=ys("Blob"),Cs=ys("FileList"),Ts=ys("Set");const Ns="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ms=void 0!==Ns.FormData?Ns.FormData:void 0,Ls=ys("URLSearchParams"),[Is,Fs,Ds,Us]=["ReadableStream","Request","Response","Headers"].map(ys);function zs(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),vs(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ws(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)}}const Bs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,qs=e=>!_s(e)&&e!==Bs;const Hs=(Vs="undefined"!=typeof Uint8Array&&us(Uint8Array),e=>Vs&&e instanceof Vs);var Vs;const $s=ys("HTMLFormElement"),{propertyIsEnumerable:Ws}=Object.prototype,Gs=ys("RegExp"),Ks=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zs(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Js=ys("AsyncFunction"),Ys=(Xs="function"==typeof setImmediate,Qs=js(Bs.postMessage),Xs?setImmediate:Qs?(Zs=`axios@${Math.random()}`,eu=[],Bs.addEventListener("message",({source:e,data:t})=>{e===Bs&&t===Zs&&eu.length&&eu.shift()()},!1),e=>{eu.push(e),Bs.postMessage(Zs,"*")}):e=>setTimeout(e));var Xs,Qs,Zs,eu;const tu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Bs):"undefined"!=typeof process&&process.nextTick||Ys,nu=e=>null!=e&&js(e[ls]);var ru={isArray:vs,isArrayBuffer:Ss,isBuffer:ws,isFormData:e=>{if(!e)return!1;if(Ms&&e instanceof Ms)return!0;const t=us(e);if(!t||t===Object.prototype)return!1;if(!js(e.append))return!1;const n=gs(e);return"formdata"===n||"object"===n&&js(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ss(e.buffer),t},isString:Os,isNumber:xs,isBoolean:e=>!0===e||!1===e,isObject:ks,isPlainObject:Es,isEmptyObject:e=>{if(!ks(e)||ws(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Is,isRequest:Fs,isResponse:Ds,isHeaders:Us,isUndefined:_s,isDate:Rs,isFile:Ps,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:As,isRegExp:Gs,isFunction:js,isStream:e=>ks(e)&&js(e.pipe),isURLSearchParams:Ls,isTypedArray:Hs,isFileList:Cs,forEach:zs,merge:function e(...t){const{caseless:n,skipUndefined:r}=qs(this)&&this||{},o={},i=n?Object.create(null):null,a=(t,n)=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;let a=n;if(i&&"string"==typeof n){const e=n.toLowerCase(),t=i[e];void 0!==t&&fs(o,t)?a=t:i[e]=n}const s=fs(o,a)?o[a]:void 0;Es(s)&&Es(t)?o[a]=e(s,t):Es(t)?o[a]=e({},t):vs(t)?o[a]=t.slice():r&&_s(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||ws(n))continue;if(zs(n,a),"object"!=typeof n||vs(n)||!Object.getOwnPropertySymbols)continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];Ws.call(n,t)&&a(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:r}={})=>(zs(t,(t,r)=>{n&&js(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:gs,kindOfTest:ys,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(vs(e))return e;let t=e.length;if(!Number.isSafeInteger(t)||t<0||t>4294967295)return null;const n=new Set,r=new Set;let o=e;for(;null!=o&&n.size<t;){if(r.has(o))return null;r.add(o);const i=us(o);if(ps(o,i,o===e))break;Object.getOwnPropertyNames(o).forEach(e=>{const r=+e;Number.isInteger(r)&&r>=0&&r<t&&String(r)===e&&fs(o,e)&&n.add(r)}),o=i}if(n.size!==t)return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},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:$s,hasOwnProperty:fs,hasOwnProp:fs,hasOwnInPrototypeChain:hs,getSafeProp:(e,t)=>null!=e&&hs(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=us(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(ds(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const a=i===e?t:us(i);if(ps(i,a,i===e))break;const s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i));for(const t of s)ds(t)||fs(r,t)||(n[t]=e[t],r[t]=!0);i=a}return n},reduceDescriptors:Ks,freezeMethods:e=>{Ks(e,(t,n)=>{if(js(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];js(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 vs(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:function(e,t){if(ws(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},global:Bs,isContextDefined:qs,isSpecCompliantForm:function(e){return!!(e&&js(e.append)&&"FormData"===e[cs]&&e[ls])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(ks(e)){if(t.has(e))return;if(ws(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),Ts(e)){r=[];for(const t of e){const e=n(t);!_s(e)&&r.push(e)}}else r=vs(e)?[]:{},zs(e,(e,t)=>{const o=n(e);!_s(o)&&(r[t]=o)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:Js,isThenable:e=>e&&(ks(e)||js(e))&&js(e.then)&&js(e.catch),setImmediate:Ys,asap:tu,isIterable:nu,isSafeIterable:e=>null!=e&&hs(e,ls)&&nu(e)};const ou=ru.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 iu=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),au=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function su(e,t){return ru.isArray(e)?e.map(e=>su(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 uu(e){const t=Object.create(null);return ru.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>su(e,au))(e)}),t}const lu=Symbol("internals");function cu(e){return e&&String(e).trim().toLowerCase()}function fu(e){return!1===e||null==e?e:ru.isArray(e)?e.map(fu):(e=>su(e,iu))(String(e))}const du=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function pu(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)}const hu=e=>"__proto__"===e?"__Proto__":e;function gu(e,t,n,r,o){return ru.isFunction(r)?r.call(e,t,n):(o&&(t=n),ru.isString(t)?ru.isString(r)?-1!==t.indexOf(r):ru.isRegExp(r)?r.test(t):void 0:void 0)}let bu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=cu(t);if(!o)return;const i=ru.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[hu(i||t)]=fu(e))}const i=(e,t)=>ru.forEach(e,(e,n)=>o(e,n,t));if(ru.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ru.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t=Object.create(null);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();const i=ru.hasOwnProp(t,n);!n||i&&ru.hasOwnProp(ou,n)||("set-cookie"===n?i?t[n].push(r):t[n]=[r]:t[n]=i?t[n]+", "+r:r)}),t})(e),t);else if(ru.isObject(e)&&ru.isSafeIterable(e)){let n,r,o=Object.create(null);for(const t of e){if(!ru.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],ru.hasOwnProp(o,r)?(n=o[r],o[r]=ru.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=cu(e)){const n=ru.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(ru.isFunction(t))return t.call(this,e,n);if(ru.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=cu(e)){const n=ru.findKey(this,e);return!(!n||void 0===this[n]||t&&!gu(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=cu(e)){const o=ru.findKey(n,e);!o||t&&!gu(n,n[o],o,t)||(delete n[o],r=!0)}}return ru.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&&!gu(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n=Object.create(null);return ru.forEach(this,(r,o)=>{const i=ru.findKey(n,o);if(i)return t[i]=fu(r),void delete t[o];const a=hu(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]=fu(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ru.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ru.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(){const e=this.get("set-cookie");return ru.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,o=!1,i=!1;function a(e){const o=pu(n.slice(r,e)),i=o.indexOf("=");if(i<1)return;const a=pu(o.slice(0,i));if(!du.test(a))return;const s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;const u=pu(o.slice(i+1));t[s]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){const o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1,r>=t))return e;n+=e[r]}return n}(u)}for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);o?i?i=!1:92===t?i=!0:34===t&&(o=!1):34===t?o=!0:44!==t&&59!==t||(a(e),r=e+1)}return a(n.length),t}(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[lu]=this[lu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=cu(e);t[r]||(!function(e,t){const n=ru.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 ru.isArray(e)?e.forEach(r):r(e),this}};bu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ru.reduceDescriptors(bu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ru.freezeMethods(bu);const yu="[REDACTED ****]";function mu(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(ru.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof bu&&(e=e.toJSON()),r.push(e),ru.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);ru.isUndefined(r)||(t[n]=r)});else{if(!ru.isPlainObject(e)&&function(e){if(ru.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ru.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())?yu:o(i);ru.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}function vu(e){try{return String(e)}catch(e){return""}}const _u=Symbol("causeStack");let wu=class e extends Error{static from(t,n,r,o,i,a){let s=t.message;!s&&ru.isArray(t.errors)&&t.errors.length&&(s=function(e){return e.errors.map(e=>{try{return e&&e.message?vu(e.message):vu(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(t));const u=new e(s,n||t.code,r,o,i);return Object.defineProperty(u,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),u.name=t.name,function(e,t){try{const n=t&&t.stack;if("string"!=typeof n||!n)return;const r=e.stack;if("string"!=typeof r||!r)return;const o="\nCaused by: "+n;e.stack=r+o,Object.defineProperty(e,_u,{__proto__:null,value:o})}catch(e){}}(u,t),null!=t.status&&null==u.status&&(u.status=t.status),a&&Object.assign(u,a),u}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&&ru.hasOwnProp(e,"redact")?e.redact:void 0,n=ru.isArray(t)&&t.length>0?mu(e,t):ru.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}}};wu.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",wu.ERR_BAD_OPTION="ERR_BAD_OPTION",wu.ECONNABORTED="ECONNABORTED",wu.ETIMEDOUT="ETIMEDOUT",wu.ECONNREFUSED="ECONNREFUSED",wu.ERR_NETWORK="ERR_NETWORK",wu.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",wu.ERR_DEPRECATED="ERR_DEPRECATED",wu.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",wu.ERR_BAD_REQUEST="ERR_BAD_REQUEST",wu.ERR_CANCELED="ERR_CANCELED",wu.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",wu.ERR_INVALID_URL="ERR_INVALID_URL",wu.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Su(e){return ru.isPlainObject(e)||ru.isArray(e)}function Ou(e){return ru.endsWith(e,"[]")?e.slice(0,-2):e}function ju(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ou(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const xu=ru.toFlatObject(ru,{},null,function(e){return/^is[A-Z]/.test(e)});function ku(e,t,n){if(!ru.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=ru.getSafeProp(n,e);return ru.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||h,a=r("dots",!1),s=r("indexes",!1),u=r("Blob")||"undefined"!=typeof Blob&&Blob,l=r("maxDepth",100),c=u&&ru.isSpecCompliantForm(t),f=[];if(!ru.isFunction(i))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(ru.isDate(e))return e.toISOString();if(ru.isBoolean(e))return e.toString();if(!c&&ru.isBlob(e))throw new wu("Blob is not supported. Use a Buffer instead.");if(ru.isArrayBuffer(e)||ru.isTypedArray(e)){if(c&&"function"==typeof u)return new u([e]);throw new wu("Blob is not supported. Use a Buffer instead.",wu.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new wu("Object is too deeply nested ("+e+" levels). Max depth: "+l,wu.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,r){let i=e;if(ru.isReactNative(t)&&ru.isReactNativeBlob(e))return t.append(ju(r,n,a),d(e)),!1;if(e&&!r&&"object"==typeof e)if(ru.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(l===1/0)return JSON.stringify(e);const n=[];return JSON.stringify(e,function(e,r){if(!ru.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}(e,1);else if(ru.isArray(e)&&function(e){return ru.isArray(e)&&!e.some(Su)}(e)||(ru.isFileList(e)||ru.endsWith(n,"[]"))&&(i=ru.toArray(e)))return n=Ou(n),i.forEach(function(e,r){!ru.isUndefined(e)&&null!==e&&t.append(!0===s?ju([n],r,a):null===s?n:n+"[]",d(e))}),!1;return!!Su(e)||(t.append(ju(r,n,a),d(e)),!1)}const g=Object.assign(xu,{defaultVisitor:h,convertValue:d,isVisitable:Su});if(!ru.isObject(e))throw new TypeError("data must be an object");return function e(n,r,o=0){if(!ru.isUndefined(n)){if(p(o),-1!==f.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));f.push(n),ru.forEach(n,function(n,a){!0===(!(ru.isUndefined(n)||null===n)&&i.call(t,n,ru.isString(a)?a.trim():a,r,g))&&e(n,r?r.concat(a):[a],o+1)}),f.pop()}}(e),t}function Eu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ru(e,t){this._pairs=[],e&&ku(e,this,t)}const Pu=Ru.prototype;function Au(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Cu(e,t,n){if(!t)return e;e=e||"";const r=ru.isFunction(n)?{serialize:n}:n,o=ru.getSafeProp(r,"encode")||Au,i=ru.getSafeProp(r,"serialize");let a;if(a=i?i(t,r):ru.isURLSearchParams(t)?t.toString():new Ru(t,r).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}Pu.append=function(e,t){this._pairs.push([e,t])},Pu.toString=function(e){const t=e?t=>e.call(this,t,Eu):Eu;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Tu=Symbol("internals");function Nu(e){return e?e.length:0}function Mu(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function Lu(e,t){const n=e.handlers,r=Nu(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}class Iu{constructor(){this.handlers=[],this[Tu]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[Tu];null==this.handlers&&(this.handlers=[]),Lu(this,o);const i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[Tu];Lu(this,t);const n=function(e){return"string"==typeof e&&""!==e&&String(Number(e))===e?Number(e):e}(e),r=t.handlerEntries.get(n);if(r){if(t.handlerEntries.delete(n),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(Mu(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Lu(this,this[Tu]))}forEach(e){const t=this[Tu];Lu(this,t),t.iterationDepth++;try{ru.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(Lu(this,t),Mu(this.handlers),t.handlersLength=Nu(this.handlers))}}}var Fu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},Du={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ru,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Uu="undefined"!=typeof window&&"undefined"!=typeof document,zu="object"==typeof navigator&&navigator||void 0,Bu=Uu&&(!zu||["ReactNative","NativeScript","NS"].indexOf(zu.product)<0),qu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Hu=Uu&&window.location.href||"http://localhost";var Vu={...Object.freeze({__proto__:null,hasBrowserEnv:Uu,hasStandardBrowserEnv:Bu,hasStandardBrowserWebWorkerEnv:qu,navigator:zu,origin:Hu}),...Du};function $u(e){if(e>100)throw new wu("FormData field is too deeply nested ("+e+" levels). Max depth: 100",wu.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Wu(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}function Gu(e){if(!ru.isArray(e))return e;const t=Object.keys(e);return t.length!==e.length||t.some((e,t)=>e!==String(t))?Wu(e):e}function Ku(e){function t(e,n,r,o){$u(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&ru.isArray(r)?r.length:i,s)return ru.hasOwnProp(r,i)?(r[i]=Gu(r[i]),r[i]=ru.isArray(r[i])?r[i].concat(n):[r[i],n]):r[i]=n,!a;ru.hasOwnProp(r,i)&&ru.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ru.isArray(r[i])&&(r[i]=Wu(r[i])),!a}if(ru.isFormData(e)&&ru.isFunction(e.entries)){const n={};return ru.forEachEntry(e,(e,r)=>{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)$u(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),function(e){const t=[e];for(;t.length;){const e=t.pop();Object.keys(e).forEach(n=>{const r=e[n]=Gu(e[n]);(ru.isArray(r)||ru.isPlainObject(r))&&t.push(r)})}return e}(n)}return null}const Ju=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Yu=(e,t)=>null!=e&&ru.hasOwnProp(e,t)?e[t]:void 0;const Xu={transitional:Fu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ru.isObject(e);o&&ru.isHTMLForm(e)&&(e=new FormData(e));if(ru.isFormData(e))return r?JSON.stringify(Ku(e)):e;if(ru.isArrayBuffer(e)||ru.isBuffer(e)||ru.isStream(e)||ru.isFile(e)||ru.isBlob(e)||ru.isReadableStream(e))return e;if(ru.isArrayBufferView(e))return e.buffer;if(ru.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=Yu(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ku(e,new Vu.classes.URLSearchParams,{visitor:function(e,t,n,r){return Vu.isNode&&ru.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=ru.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Yu(this,"env"),r=n&&n.FormData;return ku(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ru.isString(e))try{return(t||JSON.parse)(e),ru.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Yu(this,"transitional")||Xu.transitional,n=t&&t.forcedJSONParsing,r=Yu(this,"responseType"),o="json"===r;if(ru.isResponse(e)||ru.isReadableStream(e))return e;if(e&&ru.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Yu(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw wu.from(e,wu.ERR_BAD_RESPONSE,this,null,Yu(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vu.classes.FormData,Blob:Vu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Qu(e,t){const n=this||Xu,r=t||n,o=bu.from(r.headers);let i=r.data;return ru.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Zu(e){return!(!e||!e.__CANCEL__)}ru.forEach(Ju,e=>{Xu.headers[e]={}});let el=class extends wu{constructor(e,t,n){super(null==e?"canceled":e,wu.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function tl(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new wu("Request failed with status code "+n.status,n.status>=400&&n.status<500?wu.ERR_BAD_REQUEST:wu.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const nl=/[\t\n\r]/g;function rl(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(nl,"")}function ol(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1].toLowerCase()||""}const il=e=>{try{return decodeURIComponent(e)}catch(t){return e}};var al=Vu.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ru.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ru.isString(r)&&s.push(`path=${r}`),ru.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),ru.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie;if(!t)return null;const n=t.split(";");for(let t=0;t<n.length;t++){const r=n[t].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return il(r.slice(o+1))}return null},async readAsync(e){try{const t="undefined"!=typeof window&&window.cookieStore;if(t&&ru.isFunction(t.get)){const n=await t.get(e);return n?il(n.value):null}}catch(e){}return this.read(e)},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,readAsync:async()=>null,remove(){}};const sl=(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),(...e)=>a(e)]}(n=>{if(!n||!ru.isNumber(n.loaded))return;const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,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)},ul=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ll=(e,t=ru.asap)=>(...n)=>t(()=>e(...n));var cl=Vu.hasStandardBrowserEnv?(e=>t=>(t=new URL(t,document.baseURI||Vu.origin),e.protocol===t.protocol&&e.host===t.host&&e.port===t.port))(new URL(Vu.origin)):()=>!0;const fl=/^https?:(?!\/\/)/i;function dl(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${yu}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${yu}`);return-1===n?r:`${r}#${o=t.slice(n+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${yu}`):o}`;var o}function pl(e,t){if("string"==typeof e){const n=rl(e);if(fl.test(n))throw new wu(`Invalid URL ${JSON.stringify(dl(n))}: missing "//" after protocol`,wu.ERR_INVALID_URL,t)}}function hl(e,t,n,r){pl(t,r);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===n)?(pl(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const gl=e=>e instanceof bu?{...e}:e,bl=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>{const n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable})):Object.keys(e);function yl(e,t,n,r){return ru.isPlainObject(e)&&ru.isPlainObject(t)?ru.merge.call({caseless:r},e,t):ru.isPlainObject(t)?ru.merge({},t):ru.isArray(t)?t.slice():t}function ml(e,t,n,r){return ru.isUndefined(t)?ru.isUndefined(e)?void 0:yl(void 0,e,0,r):yl(e,t,0,r)}function vl(e,t){if(!ru.isUndefined(t))return yl(void 0,t)}function _l(e,t){return ru.isUndefined(t)?ru.isUndefined(e)?void 0:yl(void 0,e):yl(void 0,t)}function wl(e,t,n,r,o){return ru.hasOwnProp(o,n)?yl(e,t):ru.hasOwnProp(r,n)?yl(void 0,e):void 0}const Sl=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),Ol={url:vl,method:vl,data:vl,baseURL:_l,transformRequest:_l,transformResponse:_l,params:function(e,t){const n=[],r=new WeakMap,o={};function i(e,t){if(!ru.isPlainObject(t))return ru.isArray(t)?t.slice():t;const i=ru.isPlainObject(e)?e:o;let a=r.get(t);if(a||(a=new WeakMap,r.set(t,a)),a.has(i))return a.get(i);const s={};return a.set(i,s),n.push({base:i,source:t,result:s}),s}const a=ru.isUndefined(t)?i(void 0,e):i(e,t);for(;n.length;){const{base:e,source:t,result:r}=n.pop(),o=new Set(bl(e)),a=new Set(bl(t));new Set([...o,...a]).forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;const s=a.has(n),u=s?t[n]:void 0,l=s&&!ru.isPlainObject(u)||!o.has(n)?void 0:e[n];r[n]=s?i(l,u):i(void 0,l)})}return function(e){const t=[{value:e}],n=new WeakSet,r=new WeakSet;for(;t.length;){const{value:e,done:o}=t.pop();if(!ru.isPlainObject(e)&&!ru.isArray(e))continue;if(o){n.delete(e);continue}if(n.has(e))throw new wu("Circular reference detected in params",wu.ERR_BAD_OPTION_VALUE);if(r.has(e))continue;r.add(e),n.add(e),t.push({value:e,done:!0});const i=Object.keys(e);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(e).forEach(t=>{const n=Object.getOwnPropertyDescriptor(e,t);n&&n.enumerable&&i.push(t)}),i.forEach(n=>{if("__proto__"===n||"constructor"===n||"prototype"===n){const r=Object.getOwnPropertyDescriptor(e,n);r&&ru.hasOwnProp(r,"value")&&t.push({value:r.value})}else t.push({value:e[n]})})}}(a),a},paramsSerializer:_l,timeout:_l,timeoutErrorMessage:_l,withCredentials:_l,withXSRFToken:_l,adapter:_l,responseType:_l,xsrfCookieName:_l,xsrfHeaderName:_l,onUploadProgress:_l,onDownloadProgress:_l,decompress:_l,maxContentLength:_l,maxBodyLength:_l,beforeRedirect:_l,transport:_l,httpAgent:_l,httpsAgent:_l,cancelToken:_l,socketPath:_l,allowedSocketPaths:_l,responseEncoding:_l,validateStatus:wl,headers:function(e,t,n){return ml(gl(e),gl(t),0,!0)}};function jl(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",Sl);const r=bl({...e,...t});for(let o=0,i=r.length;o<i;o++){const i=r[o];if("__proto__"===i||"constructor"===i||"prototype"===i)continue;const a=ru.hasOwnProp(Ol,i)?Ol[i]:ml,s=ru.hasOwnProp(e,i)?e[i]:void 0,u=ru.hasOwnProp(t,i)?t[i]:void 0,l=a===wl?a(s,u,i,e,t):a(s,u,i);ru.isUndefined(l)&&a!==wl||(n[i]=l)}return ru.hasOwnProp(t,"validateStatus")&&ru.isUndefined(t.validateStatus)&&!1===function(e,t,n){const r=ru.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ru.isUndefined(r)){if(!ru.isPlainObject(r))return;if(ru.hasOwnProp(r,n))return r[n]}const o=ru.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ru.isPlainObject(o)&&ru.hasOwnProp(o,n))return o[n]}(e,t,"validateStatusUndefinedResolves")&&(ru.hasOwnProp(e,"validateStatus")?n.validateStatus=yl(void 0,e.validateStatus):delete n.validateStatus),n}const xl=["content-type","content-length"];const kl=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),El=e=>al.read(e);function Rl(e,t=El){const n=jl({},e),r=e=>ru.hasOwnProp(n,e)?n[e]:void 0,o=r("data");let i=r("withXSRFToken");const a=r("xsrfHeaderName"),s=r("xsrfCookieName");let u=r("headers");const l=r("auth"),c=r("baseURL"),f=r("allowAbsoluteUrls"),d=r("url");if(n.headers=u=bu.from(u),n.url=Cu(hl(c,d,f,n),r("params"),r("paramsSerializer")),l){const t=ru.getSafeProp(l,"username")||"",n=ru.getSafeProp(l,"password")||"",o=r("transitional"),i=o&&ru.hasOwnProp(o,"encodeBasicAuthUsername")&&!0===o.encodeBasicAuthUsername;try{u.set("Authorization","Basic "+btoa((i?kl(t):t)+":"+(n?kl(n):"")))}catch(t){throw wu.from(t,wu.ERR_BAD_OPTION_VALUE,e)}}if(ru.isFormData(o)){const e=ru.getSafeProp(o,"getHeaders");Vu.hasStandardBrowserEnv||Vu.hasStandardBrowserWebWorkerEnv||ru.isReactNative(o)?u.setContentType(void 0):ru.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{xl.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(u,e.call(o),r("formDataHeaderPolicy"))}if(Vu.hasStandardBrowserEnv){ru.isFunction(i)&&(i=i(n));if(!0===i||null==i&&cl(n.url)){const e=a&&s&&t(s);e&&u.set(a,e)}}return n}var Pl="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o;try{const e=Vu.hasStandardBrowserEnv&&"undefined"!=typeof window&&window.cookieStore;r=e&&ru.isFunction(e.get)}catch(e){}const i=Rl(e,r?e=>(o=e,null):void 0);let a=i.data;const s=bu.from(i.headers).normalize();let u,l,c,f,d,p,h,{responseType:g,onUploadProgress:b,onDownloadProgress:y}=i;function m(){clearTimeout(l);try{d&&d()}catch(e){setTimeout(()=>{throw e})}try{p&&p()}catch(e){setTimeout(()=>{throw e})}v&&(f&&v.removeEventListener("progress",f),v.upload&&(c&&v.upload.removeEventListener("progress",c),d&&v.upload.removeEventListener("loadend",d))),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;function _(r){if(!v)return;if(!(0!==v.status||"file"===(ol(rl(i.url))||ol(Vu.origin))||v.responseURL&&v.responseURL.startsWith("file:")))return n(new wu("Request aborted",wu.ECONNABORTED,e,v)),m(),void(v=null);try{r?h&&h(r):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!v)return;const o=bu.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());tl(function(e){t(e),m()},function(e){n(e),m()},{data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:o,config:e,request:v}),v=null}if(v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(_)},v.onabort=function(){v&&(n(new wu("Request aborted",wu.ECONNABORTED,e,v)),m(),v=null)},v.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new wu(r,wu.ERR_NETWORK,e,v);o.event=t||null,n(o),m(),v=null},v.ontimeout=function(){if(!v)return;let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Fu;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new wu(t,r.clarifyTimeoutError?wu.ETIMEDOUT:wu.ECONNABORTED,e,v)),m(),v=null},void 0===a&&s.setContentType(null),ru.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),g&&"json"!==g&&(v.responseType=i.responseType),y&&([f,p,h]=sl(y,!0),v.addEventListener("progress",f)),b&&v.upload&&([c,d]=sl(b),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",d)),i.cancelToken||i.signal){if(u=t=>{if(!v)return;n(!t||t.type?new el(null,e,v):t);const r=v;m(),v=null,r.abort()},i.cancelToken&&i.cancelToken.subscribe(u),!v)return;i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u))}if(!v)return;const w=ol(i.url);if(w&&!Vu.protocols.includes(w))return n(new wu("Unsupported protocol "+w+":",wu.ERR_BAD_REQUEST,e)),void m();const S=()=>{v&&("setRequestHeader"in v&&ru.forEach(uu(s),function(e,t){v.setRequestHeader(t,e)}),v.send(a||null))};if(o){const t="undefined"!=typeof performance&&ru.isFunction(performance.now)?()=>performance.now():Date.now,r=v.timeout>0?t()+Number(v.timeout):void 0,a=()=>{if(!v)return;const e=v;e.ontimeout(),e.abort()};if(void 0!==r){const e=()=>{const n=r-t();n>0?l=setTimeout(e,Math.min(n,2147483647)):a()};e()}al.readAsync(o).then(e=>{if(v)if(void 0!==r&&t()>=r)a();else{if(e){const t=ru.hasOwnProp(i,"xsrfHeaderName")&&i.xsrfHeaderName;s.set(t,e)}S()}}).catch(t=>{v&&(n(wu.from(t,null,e,v)),m(),v=null)})}else S()})};const Al=(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 wu?t:new el(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new wu(`timeout of ${t}ms exceeded`,wu.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{const t=ru.getSafeProp(e,"unsubscribe");ru.isFunction(t)?t.call(e,o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:s}=n;return s.unsubscribe=()=>ru.asap(a),s},Cl=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},Tl=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()}},Nl=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Tl(e))yield*Cl(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})},Ml="\r\n",Ll=e=>String(e).replace(/\r\n|\r|\n/g,Ml),Il=e=>String(e).replace(/[\r\n"]/g,e=>"\r"===e?"%0D":"\n"===e?"%0A":"%22"),Fl=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);!t||13!==o&&10!==o?o<128?n++:o<2048?n+=2:o>=55296&&o<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3:(13===o&&10===e.charCodeAt(r+1)&&r++,n+=2)}return n};class Dl extends TypeError{constructor(e,t){super(e),this.name="FormDataError",this.reason=t}}function Ul(e,t,n,r,o){if(!ru.isFunction(t))throw new wu("Blob is not supported",wu.ERR_NOT_SUPPORT);if(void 0===o)if(ru.isFunction(Vu.generateString))o="axios-"+Vu.generateString(36,"0123456789abcdef");else{const e=ru.global.crypto;if(!e||!ru.isFunction(e.getRandomValues))throw new wu("Random byte generation is not supported",wu.ERR_NOT_SUPPORT);const t=new Uint8Array(18);e.getRandomValues(t),o="axios-"+Array.from(t,e=>("0"+e.toString(16)).slice(-2)).join("")}try{return function(e,t,n,r,o){if(!ru.isFunction(t))throw new Dl("Blob is not supported","blob");if(!ru.isString(o)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(o)||/ $/.test(o))throw new Dl("Invalid multipart boundary","boundary");const i="--"+o+"--"+Ml;let a=i.length;const s=[],u=e=>{if(a+e>n)throw r()};u(0);for(const[t,n]of e){const e=ru.isString(n),r=e?Fl(n,!0):n.size;if(!Number.isFinite(r)||r<0)throw new Dl("Unsupported FormData part size","part");u(r+Fl(t,!0)+(!e&&n.name?Fl(n.name,!1):0)+(!e&&n.type?Fl(n.type,!1):0));let i="--"+o+'\r\nContent-Disposition: form-data; name="'+Il(Ll(t))+'"';e||(i+='; filename="'+Il(ru.isString(n.name)?n.name:"blob")+'"\r\nContent-Type: '+String(n.type||"application/octet-stream").replace(/[\r\n]/g,"")),i+=Ml+Ml;const l=Fl(i,!1)+r+2;u(l),a+=l,s.push({header:i,value:n,isString:e})}const l=[];for(const e of s)l.push(e.header,e.isString?Ll(e.value):e.value,Ml);return l.push(i),new t(l,{type:"multipart/form-data; boundary="+o})}(e,t,n,r,o)}catch(e){if(e instanceof Dl){const t="boundary"===e.reason?wu.ERR_BAD_OPTION_VALUE:wu.ERR_BAD_REQUEST;throw new wu(e.message,t)}throw e}}const zl=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Bl=(e,t,n)=>t+2<n&&zl(e.charCodeAt(t+1))&&zl(e.charCodeAt(t+2)),ql=e=>e<=57?e-48:(223&e)-55,Hl=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Vl=e=>9===e||10===e||12===e||13===e||32===e,$l=e=>{const t=e.length;let n=0,r=0,o=!1;for(let i=0;i<t;i++){let a=e.charCodeAt(i);37===a&&Bl(e,i,t)&&(a=16*ql(e.charCodeAt(i+1))+ql(e.charCodeAt(i+2)),i+=2),Vl(a)||(61!==a?!Hl(a)||r>0?o=!0:n++:r++)}return o||r>2||r>0&&(n+r)%4!=0||n%4==1?(e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)};function Wl(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t,n)=>{if(!e||"string"!=typeof e)return 0;if(!/^data:/i.test(e))return 0;const r=e.indexOf(",");if(r<0)return 0;const o=e.slice(5,r),i=e.slice(r+1);if(n.test(o))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){const n=i.charCodeAt(e);if(37===n&&Bl(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a})(-1===t?e:e.slice(0,t),$l,/; *base64[\t\n\f\r ]*$/i)}const Gl="1.21.0",Kl={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Jl}=ru,Yl=e=>{if(!ru.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Xl=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ql=e=>{const t=void 0!==ru.global&&null!==ru.global?ru.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ru.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);const o=ru.hasOwnProp(e,"fetch")?e.fetch:void 0,{Request:i,Response:a,Blob:s}=e,u=o?Jl(o):"function"==typeof fetch,l=Jl(i),c=Jl(a);if(!u)return!1;const f=u&&Jl(n),d=u&&("function"==typeof r?(p=new r,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const h=l&&f&&Xl(()=>{let e=!1;const t=new i(Vu.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}),g=c&&f&&Xl(()=>ru.isReadableStream(new a("").body)),b=Object.assign(Object.create(null),Kl);l&&!Xl(()=>new i(Vu.origin,b))&&(delete b.cache,Xl(()=>new i(Vu.origin,b))||(b.cache=Kl.cache));const y={stream:g&&(e=>e.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!y[e]&&(y[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new wu(`Response type '${e}' is not supported`,wu.ERR_NOT_SUPPORT,n)})});const m=async e=>null==e?0:ru.isBlob(e)?e.size:ru.isArrayBufferView(e)||ru.isArrayBuffer(e)?e.byteLength:(ru.isURLSearchParams(e)&&(e+=""),ru.isString(e)?(await d(e)).byteLength:void 0);return async e=>{let{url:t,method:n,data:u,signal:c,cancelToken:d,timeout:p,onDownloadProgress:v,onUploadProgress:_,responseType:w,headers:S,withCredentials:O="same-origin",fetchOptions:j,maxContentLength:x,maxBodyLength:k,maxRedirects:E}=Rl(e);const R=ru.isNumber(x)&&x>-1,P=ru.isNumber(k)&&k>-1,A=t=>ru.hasOwnProp(e,t)?e[t]:void 0;let C=o||fetch;w=w?(w+"").toLowerCase():"text";let T=Al([c,d&&d.toAbortSignal()],p),N=null;const M=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let L,I=null,F=null;const D=()=>new wu("Request body larger than maxBodyLength limit",wu.ERR_BAD_REQUEST,e,N);try{let o;const c=A("auth");if(c){const e=ru.getSafeProp(c,"username")||"";o={username:e,password:ru.getSafeProp(c,"password")||""}}let d;if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){if(d=new URL(t,Vu.origin),!o&&(d.username||d.password)){const e=Yl(d.username);o={username:e,password:Yl(d.password)}}(d.username||d.password)&&(d.username="",d.password="",t=d.href)}if(o&&(S.delete("authorization"),S.set("Authorization","Basic "+btoa((U=(o.username||"")+":"+(o.password||""),encodeURIComponent(U).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),R&&d&&"data:"===d.protocol){if(Wl(d.href)>x)throw new wu("maxContentLength size of "+x+" exceeded",wu.ERR_BAD_RESPONSE,e,N)}const p=ru.isSpecCompliantForm(u)&&bu.from(A("headers")).getContentType();let z;if(ru.isString(p)&&/^multipart\/form-data(?:\s*;|$)/i.test(p.trim())){const e=bu.parseParameters(p);ru.hasOwnProp(e,"boundary")&&(z=e.boundary)}if(ru.isSpecCompliantForm(u)&&"get"!==n&&"head"!==n&&(P||_&&h||void 0!==z)&&(u=Ul(u,s,P?k:1/0,D,z),S.setContentType(void 0===z?u.type:p),L=u.size),P&&"get"!==n&&"head"!==n){const e=await m(u);if("number"==typeof e&&isFinite(e)&&(L=e,e>k))throw D()}const B=P&&(ru.isReadableStream(u)||ru.isStream(u)),q=(e,t,n)=>Nl(e,65536,e=>{if(P&&e>k)throw I=D();t&&t(e)},n);if(h&&"get"!==n&&"head"!==n&&(_||B)){if(L=null==L?await(async(e,t)=>{const n=ru.toFiniteNumber(e.getContentLength());return null==n?m(t):n})(S,u):L,0!==L||B){let e,n=new i(t,{method:"POST",body:u,duplex:"half"});if(ru.isFormData(u)&&(e=n.headers.get("content-type"))&&S.setContentType(e),n.body){const[e,t]=_&&ul(L,sl(ll(_)))||[];u=q(n.body,e,t)}}}else if(B&&!l&&f&&"get"!==n&&"head"!==n)u=q(u);else if(B&&l&&!h&&"get"!==n&&"head"!==n)throw new wu("Stream request bodies are not supported by the current fetch implementation",wu.ERR_NOT_SUPPORT,e,N);ru.isString(O)||(O=O?"include":"omit");const H=l&&"credentials"in i.prototype;if(ru.isFormData(u)){const e=S.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&S.delete("content-type")}S.set("User-Agent","axios/"+Gl,!1);const V=null==j?j:Object.assign(Object.create(null),j);V&&(delete V.body,delete V.headers,delete V.method,delete V.signal,delete V.duplex,delete V.credentials);const $=Object.assign(Object.create(null),V,{signal:T,method:n.toUpperCase(),headers:uu(S.normalize()),body:u,duplex:"half",credentials:H?O:void 0});l&&(ru.forEach(b,(e,t)=>{void 0===$[t]&&($[t]=e)}),void 0===$.signal&&($.signal=null),void 0===$.body&&($.body=null)),0===E&&($.redirect="manual",V&&(V.redirect="manual")),N=l&&new i(t,$);let W=await(l?C(N,V):C(t,$));const G=bu.from(W.headers);if(R){const t=ru.toFiniteNumber(G.getContentLength());if(null!=t&&t>x)throw new wu("maxContentLength size of "+x+" exceeded",wu.ERR_BAD_RESPONSE,e,N)}const K=g&&("stream"===w||"response"===w);if(g&&W.body&&(v||R||K&&M)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=W[e]});const n=ru.toFiniteNumber(G.getContentLength()),[r,o]=v&&ul(n,sl(ll(v),!0))||[];let i=0;const s=t=>{if(R&&(i=t,i>x))throw F=new wu("maxContentLength size of "+x+" exceeded",wu.ERR_BAD_RESPONSE,e,N);r&&r(t)};W=new a(Nl(W.body,65536,s,()=>{o&&o(),M&&M()}),t)}w=w||"text";let J=await y[ru.findKey(y,w)||"text"](W,e);if(R&&!g&&!K){let t;if(null!=J&&("number"==typeof J.byteLength?t=J.byteLength:"number"==typeof J.size?t=J.size:"string"==typeof J&&(t="function"==typeof r?(new r).encode(J).byteLength:J.length)),"number"==typeof t&&t>x)throw new wu("maxContentLength size of "+x+" exceeded",wu.ERR_BAD_RESPONSE,e,N)}return!K&&M&&M(),await new Promise((t,n)=>{tl(t,n,{data:J,headers:bu.from(W.headers),status:W.status,statusText:W.statusText,config:e,request:N})})}catch(t){if(M&&M(),T&&T.aborted&&T.reason instanceof wu){const n=T.reason;throw n.config=e,N&&(n.request=N),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw N&&!I.request&&(I.request=N),I;if(F)throw F;if(t instanceof wu)throw N&&!t.request&&(t.request=N),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const n=new wu("Network Error",wu.ERR_NETWORK,e,N,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw wu.from(t,t&&t.code,e,N,t&&t.response)}var U}},Zl=new Map,ec=e=>{const t=Object.create(null),n=e&&ru.hasOwnProp(e,"env")&&e.env;["fetch","Request","Response","Blob"].forEach(e=>{n&&ru.hasOwnProp(n,e)&&(t[e]=n[e])});const{fetch:r,Request:o,Response:i,Blob:a}=t,s=[o,i,r,a];let u,l,c=s.length,f=Zl;for(;c--;)u=s[c],l=f.get(u),void 0===l&&f.set(u,l=c?new Map:Ql(t)),f=l;return l};ec();const tc={http:null,xhr:Pl,fetch:{get:ec}};ru.forEach(tc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const nc=e=>`- ${e}`,rc=e=>ru.isFunction(e)||null===e||!1===e;var oc={getAdapter:function(e,t){e=ru.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,!rc(r)&&(o=tc[(n=String(r)).toLowerCase()],void 0===o))throw new wu(`Unknown adapter '${n}'`);if(o&&(ru.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(nc).join("\n"):" "+nc(e[0]):"as no adapter specified";throw new wu("There is no suitable adapter to dispatch the request "+t,wu.ERR_NOT_SUPPORT)}return o},adapters:tc};function ic(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new el(null,e)}function ac(e){return Math.max(0,Date.now()-e)}function sc(e){const t=ru.toSafeFlatObject(e);ic(t),t.headers=bu.from(ru.getSafeProp(t,"headers")),t.data=Qu.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const n=oc.getAdapter(t.adapter||Xu.adapter,t),r=Date.now();return n(t).then(function(e){ic(t),e.duration=ac(r),t.response=e;try{e.data=Qu.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=bu.from(e.headers),e},function(e){if(!Zu(e)&&(ic(t),e&&e.response)){e.response.duration=ac(r),t.response=e.response;try{e.response.data=Qu.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=bu.from(e.response.headers)}return Promise.reject(e)})}const uc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const lc={};uc.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Gl+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new wu(r(o," has been removed"+(t?" in "+t:"")),wu.ERR_DEPRECATED);return t&&!lc[o]&&(lc[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)}},uc.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var cc={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new wu("options must be an object",wu.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 wu("option "+i+" must be "+n,wu.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new wu("Unknown option "+i,wu.ERR_BAD_OPTION)}},validators:uc};const fc=cc.validators,dc=e=>{if(null==e||ru.isPlainObject(e)||e instanceof bu)return!0;try{return ru.isObject(e)&&"AxiosHeaders"===ru.getSafeProp(e,Symbol.toStringTag)&&["toJSON","set","get","has","delete","clear","normalize","concat","toString",Symbol.iterator].every(t=>ru.isFunction(ru.getSafeProp(e,t)))}catch(e){return!1}};let pc=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Iu,response:new Iu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack;let r="";if("string"==typeof n){const e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?r:r.slice(n+1),i=String(e.stack),a=function(e,t){const n=ru.hasOwnProp(e,_u)&&e[_u];return n&&t.endsWith(n)?t.length-n.length:-1}(e,i),s=-1===a?i:i.slice(0,a),u=-1===a?"":i.slice(a);s.endsWith(o)||(e.stack=s+"\n"+r+u)}}else e.stack=r}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=jl(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&cc.assertOptions(n,{silentJSONParsing:fc.transitional(fc.boolean),forcedJSONParsing:fc.transitional(fc.boolean),clarifyTimeoutError:fc.transitional(fc.boolean),legacyInterceptorReqResOrdering:fc.transitional(fc.boolean),advertiseZstdAcceptEncoding:fc.transitional(fc.boolean),validateStatusUndefinedResolves:fc.transitional(fc.boolean),encodeBasicAuthUsername:fc.transitional(fc.boolean)},!1),null!=r&&(ru.isFunction(r)?t.paramsSerializer={serialize:r}:cc.assertOptions(r,{encode:fc.function,serialize:fc.function},!0)),void 0!==t.allowAbsoluteUrls||(ru.hasOwnProp(this.defaults,"allowAbsoluteUrls")&&void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cc.assertOptions(t,{baseUrl:fc.spelling("baseURL"),withXsrfToken:fc.spelling("withXSRFToken")},!0),t.method=(ru.getSafeProp(t,"method")||ru.getSafeProp(this.defaults,"method")||"get").toLowerCase();const i=ru.getSafeProp(o,"common"),a=ru.getSafeProp(o,t.method),s=o&&ru.merge(dc(i)?i:void 0,dc(a)?a:void 0);o&&ru.forEach(Ju.concat("common"),e=>{dc(ru.getSafeProp(o,e))&&delete o[e]}),t.headers=bu.concat(s,o);const u=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||Fu;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)});const c=[];let f;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,p=0;if(!l){const e=[sc.bind(this),void 0];for(e.unshift(...u),e.push(...c),d=e.length,f=Promise.resolve(t);p<d;)f=f.then(e[p++],e[p++]);return f}d=u.length;let h=t;for(;p<d;){const e=u[p++],t=u[p++];try{h=e?e(h):h}catch(e){if(!t){f=Promise.reject(e);break}try{const n=t.call(this,e);ru.isThenable(n)&&(f=Promise.resolve(n).then(()=>sc.call(this,h)))}catch(e){f=Promise.reject(e)}break}}if(!f)try{f=sc.call(this,h)}catch(e){f=Promise.reject(e)}for(p=0,d=c.length;p<d;)f=f.then(c[p++],c[p++]);return f}getUri(e){return Cu(hl((e=jl(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};ru.forEach(["delete","get","head","options"],function(e){pc.prototype[e]=async function(t,n){return this.request(jl(n||{},{method:e,url:t,data:n&&ru.hasOwnProp(n,"data")?n.data:void 0}))}}),ru.forEach(["post","put","patch","query"],function(e){function t(t){return async function(n,r,o){return this.request(jl(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}pc.prototype[e]=t(),"query"!==e&&(pc.prototype[e+"Form"]=t(!0))});const hc={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(hc).forEach(([e,t])=>{void 0===hc[t]&&(hc[t]=e)});const gc=function e(t){const n=new pc(t),r=as(pc.prototype.request,n);return ru.extend(r,pc.prototype,n,{allOwnKeys:!0}),ru.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(jl(t,n))},r}(Xu);gc.Axios=pc,gc.CanceledError=el,gc.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 el(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}}},gc.isCancel=Zu,gc.VERSION=Gl,gc.toFormData=ku,gc.AxiosError=wu,gc.Cancel=gc.CanceledError,gc.all=function(e){return Promise.all(e)},gc.spread=function(e){return function(t){return e.apply(null,t)}},gc.isAxiosError=function(e){return ru.isObject(e)&&!0===e.isAxiosError},gc.mergeConfig=jl,gc.AxiosHeaders=bu,gc.formToJSON=e=>Ku(ru.isHTMLForm(e)?new FormData(e):e),gc.getAdapter=oc.getAdapter,gc.HttpStatusCode=hc,gc.default=gc;const{Axios:bc,AxiosError:yc,CanceledError:mc,isCancel:vc,CancelToken:_c,VERSION:wc,all:Sc,Cancel:Oc,isAxiosError:jc,spread:xc,toFormData:kc,AxiosHeaders:Ec,HttpStatusCode:Rc,formToJSON:Pc,getAdapter:Ac,mergeConfig:Cc,create:Tc}=gc;function Nc(e,t){return e?Object.keys(e).map(n=>{const r=t||n,o=e[n];return"object"==typeof o?Nc(o,r):`${encodeURIComponent(r)}=${encodeURIComponent(o)}`}).join("&"):""}function Mc(e,t){return gc.get(encodeURI(e)+(t?(-1===e.search(/\?/)?"?":"&")+Nc(t):""),{timeout:1e4,method:"GET",responseType:"json",transitional:{silentJSONParsing:!1},headers:{Accept:"application/json"}}).then(e=>e.data)}function Lc(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 Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lc(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fc(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=Ic(Ic(Ic({text:u},t),r),{},{lang:n});if(o&&(c=Ic(Ic({},c),{},{sources:o})),s){const e=s.toString();c=Ic(Ic({},c),{},{layers:e})}return Mc(l,c).then(e=>e.features)}function Dc(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 Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zc(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},`,Uc(Uc({},e),{},{gid:r})}).reduce(function(e,t){return e[t.gid]=t,e},{});return Mc(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 Bc(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(Be(r,10).map(e=>{const t=Uc(Uc({},e),{},{type:"OldSearch",timetableClicked:!1,arrowClicked:!1});return delete t.properties.confidence,t}))}const qc=["route-TRAM","route-BUS","route-RAIL","route-FERRY","route-SUBWAY","route-AIRPLANE","route-FUNICULAR"],Hc=["venue","address","street"],Vc=["carpark","bikepark"],$c=["stop","station"];const Wc=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:A,getFutureRoutes:C,cityBikeNetworks:T}=r,N=!e||0===e.length,M=!t||0===t.length,L=c(S),I=[],F={type:"all",term:a,results:[]},D=g(S),U=O&&l?.lat&&l?.lon?{"focus.point.lat":l.lat.toFixed(3),"focus.point.lon":l.lon.toFixed(3)}:{},z=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)),(N||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=C(S);I.push(Be(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)),N||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:Uc(Uc({},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(M||t.includes("Datasource")){const t=["venue","address","street"];e.includes("Stations")&&t.push("station"),I.push(Fc(a,n,D,U,A.join(","),k,j,t))}if(M||t.includes("History")){const e=d("endpoint"),t=["bikestation"];t.push(...$c),t.push(...qc),t.push(...Vc),I.push(Bc(e,a,t))}}if(N||e.includes("ParkingAreas")){if(M||t.includes("Datasource")){const e=P;i&&10!==i&&(e.size=i);const t=["carpark","bikepark"],n=h?h.join(","):null;I.push(Fc(a,e,D,U,n,k,j,t).then(e=>o?o(e,z):e))}if(M||t.includes("History")){const e=d(),t=["bikestation"];t.push(...$c),t.push(...qc),t.push(...Hc),I.push(Bc(e,a,t))}}const B=e.includes("Stops"),q=e.includes("Stations");if(N||B||q){if(t.includes("Favourite")){const e=p(S);let t;t=e.every(e=>"station"===e.type)?zc(e,E).then(e=>o?o(e,z):e):b(e).then(e=>zc(e,E)).then(e=>o?o(e,z):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,B,q))}if(M||t.includes("Datasource")){const t=[];B&&t.push("stop"),q&&t.push("station");const n=i&&10!==i?{size:i}:{};P&&P["boundary.country"]&&(n["boundary.country"]=P["boundary.country"]),(N||e.includes("Locations"))&&(n.dedupestops=1);const r=R.map(e=>`gtfs${e}`).join(",");I.push(Fc(a,n,D,U,r,k,j,t).then(e=>o?o(e,z):e))}if(M||t.includes("History")){const e=d().filter(e=>!e.properties.gid||e.properties.gid.includes("GTFS:")),t=["bikestation"];t.push(...qc),t.push(...Hc),t.push(...Vc),B||t.push("stop"),q||t.push("station"),n?I.push(Bc(e,a,t).then(e=>o?o(e,z):e)):I.push(Bc(e,a,t))}}if(N||e.includes("Routes")){if(t.includes("Favourite")){const e=_(S);I.push(v(e,a,z,u).then(e=>o?o(e,z,"Routes"):e))}if(I.push(w(a,R,n,u).then(e=>o?o(e,z,"Routes"):e)),M||t.includes("History")){const e=d(),t=["bikestation"];n&&t.push(...qc.filter(e=>!(e===n))),t.push(...$c),t.push(...Hc),t.push(...Vc),I.push(Bc(e,a,t).then(e=>o?o(e,z,"Routes"):e))}}if(N||e.includes("VehicleRentalStations")){if(t.includes("Favourite")){const e=m(S);I.push(y(e,a))}if(M||t.includes("Datasource")){const e=["bikestation"],t=i&&10!==i?{size:i}:{};I.push(Fc(a,t,D,U,T.join(","),k,j,e).then(e=>o?o(e,z,"VehicleRentalStations"):e))}if(M||t.includes("History")){const e=d(),t=[...$c];t.push(...qc),t.push(...Hc),t.push(...Vc),I.push(Bc(e,a,t))}}Promise.all(I).then(Ie).then(e=>{F.results=e}).catch(e=>{F.error=e}).then(()=>{s(Uc(Uc({},F),{},{results:ns(x,F.results,a)}))})},300,{leading:!0}),Gc=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 Kc(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))}}Gc.init();var Jc,Yc,Xc={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"};Kc("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(Yc)return Jc;Yc=1;var e=Wi();Jc=function(t,n){return e(t,n)}}();var Qc,Zc,ef=Q(wr());var tf,nf,rf,of,af,sf,uf,lf,cf,ff,df,pf,hf,gf,bf,yf,mf,vf,_f,wf,Sf=function(){if(Zc)return Qc;Zc=1;var e=Or(),t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return Qc=function(r){return(r=e(r))&&n.test(r)?r.replace(t,"\\$&"):r}}(),Of=Q(Sf);function jf(){if(sf)return af;sf=1;var e=function(){if(of)return rf;of=1;var e=dr(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return rf=t}();return af=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function xf(){if(lf)return uf;lf=1;var e=jf(),t=gr(),n=Object.prototype.hasOwnProperty;return uf=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 kf(){if(ff)return cf;ff=1;var e=xf(),t=jf();return cf=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},cf}function Ef(){if(yf)return bf;yf=1;var e=Z(),t=Fi(),n=gf?hf:(gf=1,hf=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),r=Object.prototype.hasOwnProperty;return bf=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 Rf(){if(vf)return mf;vf=1;var e=Ii(),t=Ef(),n=zi();return mf=function(r){return n(r)?e(r,!0):t(r)}}var Pf,Af,Cf,Tf,Nf,Mf,Lf,If,Ff,Df,Uf,zf,Bf,qf,Hf,Vf,$f,Wf,Gf,Kf,Jf,Yf,Xf,Qf,Zf,ed,td,nd,rd,od,id,ad,sd,ud,ld,cd,fd,dd,pd,hd,gd,bd,yd,md={exports:{}};function vd(){if(Lf)return Mf;Lf=1;var e=Di()(Object.getPrototypeOf,Object);return Mf=e}function _d(){if(Ff)return If;Ff=1;var e=je(),t=vd(),n=Ir(),r=Lr(),o=Object.getOwnPropertySymbols;return If=o?function(r){for(var o=[];r;)e(o,n(r)),r=t(r);return o}:r}function wd(){if($f)return Vf;$f=1;var e=Cr();return Vf=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function Sd(){if(td)return ed;td=1;var e=wd(),t=function(){if(Gf)return Wf;Gf=1;var e=wd();return Wf=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(Jf)return Kf;Jf=1;var e=/\w*$/;return Kf=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(Xf)return Yf;Xf=1;var e=re(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return Yf=function(e){return n?Object(n.call(e)):{}}}(),o=function(){if(Zf)return Qf;Zf=1;var e=wd();return Qf=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}();return ed=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 Od(){if(id)return od;id=1;var e=function(){if(rd)return nd;rd=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 nd=n}(),t=vd(),n=Fi();return od=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}function jd(){if(ld)return ud;ld=1;var e=function(){if(sd)return ad;sd=1;var e=Vi(),t=ie();return ad=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=Qr(),n=Mi(),r=n&&n.isMap,o=r?t(r):e;return ud=o}function xd(){if(pd)return dd;pd=1;var e=function(){if(fd)return cd;fd=1;var e=Vi(),t=ie();return cd=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=Qr(),n=Mi(),r=n&&n.isSet,o=r?t(r):e;return dd=o}function kd(){if(gd)return hd;gd=1;var e=Er(),t=(nf||(nf=1,tf=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),tf),n=xf(),r=function(){if(pf)return df;pf=1;var e=kf(),t=Bi();return df=function(n,r){return n&&e(r,t(r),n)}}(),o=function(){if(wf)return _f;wf=1;var e=kf(),t=Rf();return _f=function(n,r){return n&&e(r,t(r),n)}}(),i=(Pf||(Pf=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}}(md,md.exports)),md.exports),a=(Cf||(Cf=1,Af=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),Af),s=function(){if(Nf)return Tf;Nf=1;var e=kf(),t=Ir();return Tf=function(n,r){return e(n,t(n),r)}}(),u=function(){if(Uf)return Df;Uf=1;var e=kf(),t=_d();return Df=function(n,r){return e(n,t(n),r)}}(),l=qi(),c=function(){if(Bf)return zf;Bf=1;var e=Mr(),t=_d(),n=Rf();return zf=function(r){return e(r,n,t)}}(),f=Vi(),d=function(){if(Hf)return qf;Hf=1;var e=Object.prototype.hasOwnProperty;return qf=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=Sd(),h=Od(),g=ke(),b=Jr(),y=jd(),m=Z(),v=xd(),_=Bi(),w=Rf(),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,hd=function k(E,R,P,A,C,T){var N,M=1&R,L=2&R,I=4&R;if(P&&(N=C?P(E,A,C,T):P(E)),void 0!==N)return N;if(!m(E))return E;var F=g(E);if(F){if(N=d(E),!M)return a(E,N)}else{var D=f(E),U=D==O||"[object GeneratorFunction]"==D;if(b(E))return i(E,M);if(D==j||D==S||U&&!C){if(N=L||U?{}:h(E),!M)return L?u(E,o(N,E)):s(E,r(N,E))}else{if(!x[D])return C?E:{};N=p(E,D,M)}}T||(T=new e);var z=T.get(E);if(z)return z;T.set(E,N),v(E)?E.forEach(function(e){N.add(k(e,R,P,e,E,T))}):y(E)&&E.forEach(function(e,t){N.set(t,k(e,R,P,t,E,T))});var B=F?void 0:(I?L?c:l:L?w:_)(E);return t(B||E,function(e,t){B&&(e=E[t=e]),n(N,t,k(e,R,P,t,E,T))}),N},hd}var Ed=Q(function(){if(yd)return bd;yd=1;var e=kd();return bd=function(t){return e(t,5)}}());const Rd=e=>e.localadmin||e.localadmin||e.address&&e.address.lastIndexOf(",")<e.address.length-2&&e.address.substring(e.address.lastIndexOf(",")+2)||"",Pd=({id:e,code:t})=>t||(void 0!==e&&void 0!==e.indexOf&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")+1):void 0),Ad=ef((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(`${Of(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(`${Of(e.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return t?[e.name||e.label||e.address&&e.address.split(",")[0],Rd(e)]:[e.name,e.id,Pd(e),Rd(e)];default:return[e.name||e.label||e.address&&e.address.split(",")[0],Rd(e)]}var n,r},(e,t)=>{const n=Ed(e);return n.plain=t,n});const Cd=e=>e.scrollIntoView({block:"nearest"}),Td=e=>{const t=e&&(e.key||e.which||e.keyCode)||"";return!(!t||![13," ","Spacebar"].concat([32,"Enter"]).includes(t))&&(e.preventDefault(),!0)},Nd=e=>"origin"===e||"destination"===e||"via-point"===e||"origin-stop-near-you"===e,Md=(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 Ld(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]=Ad(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=Pd(e.properties),s=e.properties.addendum?.GTFS.modes,u=Md(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,Md(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 Id(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 Fd=e=>"SelectFromOwnLocations"===e.type||"back"===e.type?"":function(e){const t=Ad(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),Dd=({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(Ld(e[0],n))),[...new Set(r)].join(" - ")};var Ud,zd={exports:{}};
2
2
  /*! For license information please see index.js.LICENSE.txt */var Bd=(Ud||(Ud=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)}())}(zd)),zd.exports),qd=Q(Bd),Hd={"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"};Kc("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 Vd={"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 $d(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}Kc("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 Wd=["item","lng","getItemProps","highlightedIndex","itemIndex","styles"],Gd=["suggestions","getMenuProps","getItemProps","lng","styles","hidden","renderClearHistoryButton","handleClearHistory"];function Kd(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 Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Yd=n.memo(function(e){let{item:t,lng:n,getItemProps:o,highlightedIndex:i,itemIndex:a,styles:s}=e,u=$d(e,Wd);const[l]=r.useTranslation(),c="FutureRoute"===t.type?Jd(Jd({},t),{},{translatedText:Id(t,n,l)}):t,f=Ld(t,n,l);return d.jsx("li",Jd(Jd({className:V.default(s.suggestion,i===a&&s.suggestionHighlighted)},o({index:a})),{},{children:d.jsx(K.default,Jd({item:c,content:f,lng:n},u))}))}),Xd="production"!==process.env.NODE_ENV?q.default.shape({name:q.default.string,type:q.default.string,address:q.default.string,selectedIconId:q.default.string,iconColor:q.default.string,translatedText:q.default.string,properties:q.default.shape({layer:q.default.string,color:q.default.string,localadmin:q.default.string,mode:q.default.string,id:q.default.string,source:q.default.string,arrowClicked:q.default.bool,destination:q.default.shape({name:q.default.string,localadmin:q.default.string}),origin:q.default.shape({name:q.default.string,localadmin:q.default.string})})}):{};"production"!==process.env.NODE_ENV&&(Yd.propTypes={item:Xd.isRequired,lng:q.default.string.isRequired,getItemProps:q.default.func.isRequired,highlightedIndex:q.default.number.isRequired,itemIndex:q.default.number.isRequired,styles:q.default.objectOf(q.default.string).isRequired});const Qd=n.memo(function(e){let{suggestions:t,getMenuProps:n,getItemProps:o,lng:i,styles:a,hidden:s,renderClearHistoryButton:u=!1,handleClearHistory:l=()=>{}}=e,c=$d(e,Gd);const[f]=r.useTranslation();return d.jsx("div",{className:V.default(a.suggestionsContainerOpen,a.suggestionsContainer,s&&a.hidden),children:d.jsxs("ul",Jd(Jd({className:a.suggestionsList},n()),{},{children:[t.map((e,t)=>d.jsx(Yd,Jd({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&&(Qd.propTypes={suggestions:q.default.arrayOf(Xd).isRequired,getMenuProps:q.default.func.isRequired,getItemProps:q.default.func.isRequired,lng:q.default.string.isRequired,styles:q.default.objectOf(q.default.string).isRequired,hidden:q.default.bool.isRequired,renderClearHistoryButton:q.default.bool,handleClearHistory:q.default.func});const Zd=({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 ep(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 tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function np({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",tp(tp({},a({className:c["sr-only"],htmlFor:e})),{},{children:u})),d.jsx("input",tp({"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(Zd,{lng:t,clearInput:()=>s(l),styles:c,color:b,onKeyDown:e=>Td(e)&&s(l)})]})}function rp(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 op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ip({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}=qd.useScrollLock(),x=y?Hd:Vd,k=`${t}-input`,E=`${t}-label`,[R,P]=n.useState(!1),A=n.useRef();n.useEffect(()=>{W.default.setAppElement(e)},[]),n.useEffect(()=>{m.renderMobile?O():j()},[m.renderMobile]);const{highlightedIndex:C,getLabelProps:T,getMenuProps:N,getInputProps:M,getItemProps:L,setHighlightedIndex:I}=i.useCombobox({items:m.suggestions,inputValue:p,isOpen:!0,scrollIntoView:Cd,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?op(op({},t),{},{selectedItem:m.suggestions[0]}):t;case i.useCombobox.stateChangeTypes.InputBlur:return e;default:return t}},itemToString:e=>e?Fd(e):""});N({},{suppressRefError:!0}),M({},{suppressRefError:!0});const F=n.useCallback(e=>m.renderMobile&&v({type:"INPUT_CHANGE",value:e}),[m.renderMobile,v]),D=n.useCallback(()=>P(!0),[]),{ariaRequiredText:U,SearchBarId:z,ariaCurrentSuggestion:B}=f,q=U.concat(" ").concat(z).concat(" ").concat(B);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=>{Td(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",op(op({className:x["combobox-label"],id:E},T()),{},{children:b})),d.jsx(np,{placeholder:Nd(t)?S("address-place-or-business",{lng:c}):o,id:t,lng:c,value:p,getInputProps:M,getLabelProps:T,clearInput:()=>a(A),ariaLabel:q,inputRef:A,styles:x,renderLabel:!1,clearButtonColor:w.primary,autoFocus:!0,inputClassName:h,required:g,isMobile:!0,onValueChange:F}),d.jsx(Qd,op({suggestions:m.suggestions,getMenuProps:N,getItemProps:L,highlightedIndex:C,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 ap(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 sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ap(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}"production"!==process.env.NODE_ENV&&(Zd.propTypes={color:q.default.string.isRequired,lng:q.default.string.isRequired,clearInput:q.default.func.isRequired,onKeyDown:q.default.func.isRequired,styles:q.default.objectOf(q.default.string).isRequired}),"production"!==process.env.NODE_ENV&&(np.propTypes={id:q.default.string.isRequired,lng:q.default.string.isRequired,placeholder:q.default.string.isRequired,required:q.default.bool.isRequired,value:q.default.string.isRequired,getInputProps:q.default.func.isRequired,getLabelProps:q.default.func.isRequired,clearInput:q.default.func.isRequired,ariaLabel:q.default.string.isRequired,inputRef:q.default.shape({current:q.default.oneOfType([q.default.string,q.default.object])}).isRequired,styles:q.default.objectOf(q.default.string).isRequired,renderLabel:q.default.bool,isMobile:q.default.bool.isRequired,inputClassName:q.default.string.isRequired,transportMode:q.default.string,clearButtonColor:q.default.string.isRequired,autoFocus:q.default.bool,inputOnBlur:q.default.func,onValueChange:q.default.func.isRequired}),"production"!==process.env.NODE_ENV&&(ip.propTypes={appElement:q.default.string.isRequired,id:q.default.string.isRequired,clearInput:q.default.func.isRequired,clearOldSearches:q.default.func.isRequired,onSelectedItemChange:q.default.func.isRequired,value:q.default.string.isRequired,colors:q.default.objectOf(q.default.string).isRequired,suggestionProps:q.default.shape({}).isRequired,ariaProps:q.default.shape({ariaRequiredText:q.default.string.isRequired,SearchBarId:q.default.string.isRequired,ariaCurrentSuggestion:q.default.string.isRequired}).isRequired,inputClassName:q.default.string.isRequired,placeholder:q.default.string.isRequired,mobileLabel:q.default.string.isRequired,required:q.default.bool.isRequired,showScroll:q.default.bool.isRequired,lng:q.default.string.isRequired,state:q.default.shape({suggestions:q.default.arrayOf(q.default.shape({})).isRequired,renderMobile:q.default.bool.isRequired,loading:q.default.bool.isRequired}).isRequired,dispatch:q.default.func.isRequired,pendingEnterRef:q.default.shape({current:q.default.bool}).isRequired});const up=(e,t)=>{switch(t.type){case"INPUT_CHANGE":return sp(sp({},e),{},{value:t.value});case"FETCH_SUGGESTIONS":return t.loading!==e.loading||t.suggestions?sp(sp({},e),{},{loading:t.loading,suggestions:t.suggestions||e.suggestions}):e;case"CLEAR_SUGGESTIONS":return sp(sp({},e),{},{suggestions:[]});case"RESET_SOURCES":return sp(sp({},e),{},{sources:t.sources});case"SET_SOURCES":return sp(sp({},e),{},{showOwnPlaces:t.showOwnPlaces,sources:t.sources,pendingSelection:t.pendingSelection});case"CLEAR":return sp(sp({},e),{},{value:"",isCleared:!0,suggestions:[]});case"INPUT_BLUR":return sp(sp({},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?sp(sp({},e),{},{renderMobile:!1,isCleared:!1}):sp(sp({},e),{},{renderMobile:!0,value:e.isCleared?"":e.value}):sp(sp({},e),{},{isMenuOpen:!e.isMenuOpen,renderMobile:t.isMobile&&!e.renderMobile});default:return e}};function lp(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 cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const fp=[],dp={routesPrefix:"linjat",stopsPrefix:"pysakit"},pp={},hp=["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 gp({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=fp,geocodingSize:A,filterResults:C,searchContext:T,pathOpts:N=dp,refPoint:M=pp}){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(up,I);n.useEffect(()=>D({type:"RESET",initialState:I}),[l]),n.useEffect(()=>D({type:"RESET_SOURCES",sources:P}),[P]);const U=n.useRef(t),z=n.useRef(!1),B=n.useRef(0);n.useEffect(()=>{b&&b(U.current)},[U.current]);const q=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;B.current+=1;const r=B.current;((e,t,n,r,o,i,a,s,u,l)=>{s(null),Wc(e,t,n,r,o,i,a,s,u,l)})(t,n,E,T,C,A,{input:F.value||""},e=>{if(r!==B.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=cp({},e);return t.properties.labelId=L(e.properties.labelId,{lng:f}),t}return e});D({type:"FETCH_SUGGESTIONS",loading:!1,suggestions:t})},N,M)},[F.value,F.sources,F.showOwnPlaces,R,E,T,C,A,y,f,N,M,t]),H=n.useCallback((e,n)=>{e&&(h?h(e,n):s(e,t),!g||y&&!k||g(),U.current&&U.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:Cd,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?(z.current=!0,e):n.selectedItem&&("SelectFromOwnLocations"===n.selectedItem.type||"back"===n.selectedItem.type)?cp(cp({},n),{},{isOpen:!0}):n;case i.useCombobox.stateChangeTypes.InputClick:return hp.includes(l)?cp(cp({},n),{},{inputValue:"",isOpen:!0}):cp(cp({},n),{},{isOpen:!0});case i.useCombobox.stateChangeTypes.InputBlur:return n.selectedItem?cp(cp({},n),{},{selectedItem:e.selectedItem,inputValue:e.inputValue}):n;case i.useCombobox.stateChangeTypes.InputKeyDownEscape:return cp(cp({},n),{},{inputValue:""});default:return n}},[F.loading,l,y]),items:F.suggestions,itemToString:e=>e?Fd(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&&hp.includes(l)||q(F.value)},[G,F.renderMobile,F.value,q]),n.useEffect(()=>{z.current&&!F.loading&&(z.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:Dd({suggestions:i,t:r,lng:n})||a?r("search-current-suggestion",{lng:n,selection:Dd({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});n.useEffect(()=>{F.renderMobile||G||D({type:"RESET",initialState:I})},[F.renderMobile,G]);const le=y||K>=F.suggestions.length;return d.jsxs(d.Fragment,{children:[y&&d.jsx(ip,{placeholder:L(o,{lng:f}),clearOldSearches:()=>{const{clearOldSearches:e,clearFutureRoutes:t}=T;e&&(e(),t&&t(),q(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:z}),d.jsxs("div",{className:V.default(Xc["autosuggest-input-container"],Xc[t],F.renderMobile&&"hidden"),style:{"--color":O.primary,"--hover-color":O.hover},children:[u&&d.jsx("div",{className:V.default(Xc["autosuggest-input-icon"],Xc[t],v&&Xc[`${v}-input-icon`]),"aria-hidden":"true",children:d.jsx($.default,{img:`${u}`})}),d.jsx(np,{inputClassName:v,ariaLabel:ie.concat(" ").concat(ae).concat(" ").concat(se).concat(" ").concat(L("search-autosuggest-label",{lng:f})).concat(" ").concat(ue),id:t,lng:f,getInputProps:e=>X(cp(cp({},e),le&&{"aria-activedescendant":void 0})),getLabelProps:J,selectItem:Z,value:F.value,clearInput:ne,inputRef:U,styles:Xc,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(Qd,cp({hidden:!G||!F.suggestions.length||y,highlightedIndex:K,getItemProps:Q,getMenuProps:Y,suggestions:F.suggestions,lng:f,styles:Xc},oe))]})]})}"production"!==process.env.NODE_ENV&&(gp.propTypes={appElement:q.default.string.isRequired,icon:q.default.string,id:q.default.string.isRequired,placeholder:q.default.string.isRequired,translatedPlaceholder:q.default.string,value:q.default.string,transportMode:q.default.string,geocodingSize:q.default.number,filterResults:q.default.func,searchContext:q.default.shape({URL_PELIAS:q.default.string,context:q.default.object,clearOldSearches:q.default.func,clearFutureRoutes:q.default.func,showStopStatusMarkers:q.default.bool}).isRequired,sources:q.default.arrayOf(q.default.string),targets:q.default.arrayOf(q.default.string),ariaLabel:q.default.string,onSelect:q.default.func.isRequired,onClear:q.default.func,storeRef:q.default.func,handleViaPoints:q.default.func,focusChange:q.default.func,lang:q.default.string,isMobile:q.default.bool,pathOpts:q.default.shape({routesPrefix:q.default.string,stopsPrefix:q.default.string}),mobileLabel:q.default.string,refPoint:q.default.shape({address:q.default.string,lat:q.default.number,lon:q.default.number}),inputClassName:q.default.string,colors:q.default.objectOf(q.default.string),getAutoSuggestIcons:q.default.objectOf(q.default.func),required:q.default.bool,modeSet:q.default.string,showScroll:q.default.bool,isEmbedded:q.default.bool});e.default=e=>d.jsx(r.I18nextProvider,{i18n:Gc,children:d.jsx(gp,cp({},e))}),Object.defineProperty(e,"__esModule",{value:!0})});
3
3
  //# sourceMappingURL=index.cjs.map