PageSourceSearch

https://westbahn.de/build/HomepageJourney.890637aed803424c4e00.js?disable-minify=true&version=4701

js westbahn.de collected 2026-09-26 09:14:32 UTC 236,387 bytes, 3 lines download raw bytes

1/*! For license information please see HomepageJourney.890637aed803424c4e00.js.LICENSE.txt */
2var ticketshopHomepageJourney;(self.webpackChunkticketshop=self.webpackChunkticketshop||[]).push([[6970],{12599:function(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}var a;r.d(t,{Ep:function(){return f},Gn:function(){return _},J0:function(){return s},LX:function(){return A},OF:function(){return z},PP:function(){return i},RQ:function(){return U},WK:function(){return $},WS:function(){return g},X3:function(){return W},Zn:function(){return M},aU:function(){return a},cP:function(){return p},cm:function(){return j},fp:function(){return y},lX:function(){return l},p7:function(){return ae},pC:function(){return F}}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const o="popstate";function i(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:o=!1}=e;t=r.map((e,t)=>m(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=c(null==n?t.length-1:n),l=a.Pop,s=null;function c(e){return Math.min(Math.max(e,0),t.length-1)}function h(){return t[i]}function m(e,r,n){void 0===r&&(r=null);let a=d(t?h().pathname:"/",e,r,n);return u("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function v(e){return"string"==typeof e?e:f(e)}return{get index(){return i},get action(){return l},get location(){return h()},createHref:v,createURL(e){return new URL(v(e),"http://localhost")},encodeLocation(e){let t="string"==typeof e?p(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){l=a.Push;let n=m(e,r);i+=1,t.splice(i,t.length,n),o&&s&&s({action:l,location:n,delta:1})},replace(e,r){l=a.Replace;let n=m(e,r);t[i]=n,o&&s&&s({action:l,location:n,delta:0})},go(e){l=a.Pop;let r=c(i+e),n=t[r];i=r,s&&s({action:l,location:n,delta:e})},listen(e){return s=e,()=>{s=null}}}}function l(e){return void 0===e&&(e={}),function(e,t,r,i){void 0===i&&(i={});let{window:l=document.defaultView,v5Compat:u=!1}=i,p=l.history,h=a.Pop,m=null,v=y();function y(){return(p.state||{idx:null}).idx}function b(){h=a.Pop;let e=y(),t=null==e?null:e-v;v=e,m&&m({action:h,location:w.location,delta:t})}function g(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,r="string"==typeof e?e:f(e);return r=r.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,p.replaceState(n({},p.state,{idx:v}),""));let w={get action(){return h},get location(){return e(l,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(o,b),m=e,()=>{l.removeEventListener(o,b),m=null}},createHref(e){return t(l,e)},createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let n=d(w.location,e,t);r&&r(n,e),v=y()+1;let o=c(n,v),i=w.createHref(n);try{p.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(i)}u&&m&&m({action:h,location:w.location,delta:1})},replace:function(e,t){h=a.Replace;let n=d(w.location,e,t);r&&r(n,e),v=y();let o=c(n,v),i=w.createHref(n);p.replaceState(o,"",i),u&&m&&m({action:h,location:w.location,delta:0})},go(e){return p.go(e)}};return w}(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return d("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:f(t)},null,e)}function s(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,r,a){return void 0===r&&(r=null),n({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?p(t):t,{state:r,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function p(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));
vendor: 2,950 bytes, line 2
2const m=new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,r,a){return void 0===r&&(r=[]),void 0===a&&(a={}),e.map((e,o)=>{let i=[...r,String(o)],l="string"==typeof e.id?e.id:i.join("-");if(s(!0!==e.index||!e.children,"Cannot specify children on an index route"),s(!a[l],'Found a route id collision on id "'+l+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=n({},e,t(e),{id:l});return a[l]=r,r}{let r=n({},e,t(e),{id:l,children:void 0});return a[l]=r,e.children&&(r.children=v(e.children,t,i,a)),r}})}function y(e,t,r){return void 0===r&&(r="/"),b(e,t,r,!1)}function b(e,t,r,n){let a=M(("string"==typeof t?p(t):t).pathname||"/",r);if(null==a)return null;let o=w(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=L(a);i=R(o[e],t,n)}return i}function g(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function w(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(s(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let l=U([n,i.relativePath]),u=r.concat(i);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),w(e.children,t,u,l)),(null!=e.path||e.index)&&t.push({path:l,score:D(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of S(e.path))a(e,t,r);else a(e,t)}),t}function S(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=S(n.join("/")),l=[];return l.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&l.push(...i),l.map(t=>e.startsWith("/")&&""===t?"/":t)}const E=/^:[\w-]+$/,N=3,T=2,x=1,C=10,k=-2,O=e=>"*"===e;function D(e,t){let r=e.split("/"),n=r.length;return r.some(O)&&(n+=k),t&&(n+=T),r.filter(e=>!O(e)).reduce((e,t)=>e+(E.test(t)?N:""===t?x:C),n)}function R(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=A({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=A({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;
2Object.assign(a,c.params),i.push({params:a,pathname:U([o,c.pathname]),pathnameBase:B(U([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=U([o,c.pathnameBase]))}return i}function _(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(u(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];return s("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function A(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),u("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[r];return e[n]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function L(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function P(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function I(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function j(e,t){let r=I(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function F(e,t,r,a){let o;void 0===a&&(a=!1),"string"==typeof e?o=p(e):(o=n({},e),s(!o.pathname||!o.pathname.includes("?"),P("?","pathname","search",o)),s(!o.pathname||!o.pathname.includes("#"),P("#","pathname","hash",o)),s(!o.search||!o.search.includes("#"),P("#","search","hash",o)));let i,l=""===e||""===o.pathname,u=l?"/":o.pathname;if(null==u)i=r;else{let e=t.length-1;if(!a&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?p(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:H(n),hash:Z(a)}}(o,i),d=u&&"/"!==u&&u.endsWith("/"),f=(l||"."===u)&&r.endsWith("/");return c.pathname.endsWith("/")||!d&&!f||(c.pathname+="/"),c}const U=e=>e.join("/").replace(/\/\/+/g,"/"),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";
vendor: 33,927 bytes, line 2
2class W extends Error{}class z{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function $(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const G=["post","put","patch","delete"],V=new Set(G),q=["get",...G],K=new Set(q),Y=new Set([301,302,303,307,308]),J=new Set([307,308]),X={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Q={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},te=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,re=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ne="remix-router-transitions";function ae(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,o=!r;let i;if(s(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=re;let l,c,f,p={},w=v(e.routes,i,void 0,p),S=e.basename||"/",E=e.dataStrategy||he,N=e.patchRoutesOnNavigation,T=n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),x=null,C=new Set,k=null,O=null,D=null,R=null!=e.hydrationData,_=y(w,e.history.location,S),A=!1,L=null;if(null==_&&!N){let t=Ce(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=xe(w);_=r,L={[n.id]:t}}if(_&&!e.hydrationData&&ct(_,w,e.history.location.pathname).active&&(_=null),_)if(_.some(e=>e.route.lazy))c=!1;else if(_.some(e=>e.route.loader))if(T.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=_.findIndex(e=>void 0!==r[e.route.id]);c=_.slice(0,e+1).every(e=>!ue(e.route,t,r))}else c=_.every(e=>!ue(e.route,t,r))}else c=null!=e.hydrationData;else c=!0;else if(c=!1,_=[],T.v7_partialHydration){let t=ct(null,w,e.history.location.pathname);t.active&&t.matches&&(A=!0,_=t.matches)}let P,I,j={historyAction:e.history.action,location:e.history.location,matches:_,initialized:c,navigation:X,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||L,fetchers:new Map,blockers:new Map},F=a.Pop,U=!1,B=!1,H=new Map,Z=null,W=!1,z=!1,G=[],V=new Set,q=new Map,K=0,Y=-1,ae=new Map,le=new Set,ce=new Map,de=new Map,pe=new Set,ge=new Map,we=new Map;function Oe(e,t){void 0===t&&(t={}),j=n({},j,e);let r=[],a=[];T.v7_fetcherPersist&&j.fetchers.forEach((e,t)=>{"idle"===e.state&&(pe.has(t)?a.push(t):r.push(t))}),pe.forEach(e=>{j.fetchers.has(e)||q.has(e)||a.push(e)}),[...C].forEach(e=>e(j,{deletedFetchers:a,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),T.v7_fetcherPersist?(r.forEach(e=>j.fetchers.delete(e)),a.forEach(e=>Xe(e))):a.forEach(e=>pe.delete(e))}function Le(t,r,o){var i,s;let u,{flushSync:c}=void 0===o?{}:o,d=null!=j.actionData&&null!=j.navigation.formMethod&&Pe(j.navigation.formMethod)&&"loading"===j.navigation.state&&!0!==(null==(i=t.state)?void 0:i._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?j.actionData:null;let f=r.loaderData?Ee(j.loaderData,r.loaderData,r.matches||[],r.errors):j.loaderData,p=j.blockers;p.size>0&&(p=new Map(p),p.forEach((e,t)=>p.set(t,ee)));let h,m=!0===U||null!=j.navigation.formMethod&&Pe(j.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(l&&(w=l,l=void 0),W||F===a.Pop||(F===a.Push?e.history.push(t,t.state):F===a.Replace&&e.history.replace(t,t.state)),F===a.Pop){let e=H.get(j.location.pathname);e&&e.has(t.pathname)?h={currentLocation:j.location,nextLocation:t}:H.has(t.pathname)&&(h={currentLocation:t,nextLocation:j.location})}else if(B){let e=H.get(j.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),H.set(j.location.pathname,e)),h={currentLocation:j.location,nextLocation:t}}Oe(n({},r,{actionData:u,loaderData:f,historyAction:F,location:t,initialized:!0,navigation:X,revalidation:"idle",restoreScrollPosition:ut(t,r.matches||j.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:h,flushSync:!0===c}),F=a.Pop,U=!1,B=!1,W=!1,z=!1,G=[]}async function Me(t,r,o){P&&P.abort(),P=null,F=t,W=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(k&&D){let r=st(e,t);k[r]=D()}}(j.location,j.matches),U=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let i=l||w,s=o&&o.overrideNavigation,u=null!=o&&o.initialHydration&&j.matches&&j.matches.length>0&&!A?j.matches:y(i,r,S),c=!0===(o&&o.flushSync);if(u&&j.initialized&&!z&&(d=j.location,f=r,d.pathname===f.pathname&&d.search===f.search&&(""===d.hash?""!==f.hash:d.hash===f.hash||""!==f.hash))&&!(o&&o.submission&&Pe(o.submission.formMethod)))return void Le(r,{matches:u},{flushSync:c});var d,f;let p=ct(u,i,r.pathname);if(p.active&&p.matches&&(u=p.matches),!u){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return void Le(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}P=new AbortController;let m,v=be(e.history,r,P.signal,o&&o.submission);if(o&&o.pendingError)m=[Te(u).route.id,{type:h.error,error:o.pendingError}];else if(o&&o.submission&&Pe(o.submission.formMethod)){let t=await async function(e,t,r,n,o,i){void 0===i&&(i={}),qe();let l,s=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,r);if(Oe({navigation:s},{flushSync:!0===i.flushSync}),o){let r=await dt(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let e=Te(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[e,{type:h.error,error:r.error}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=it(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:h.error,error:r}]}}n=r.matches}let u=Be(n,t);if(u.route.action||u.route.lazy){if(l=(await Ge("action",j,e,[u],n,null))[u.route.id],e.signal.aborted)return{shortCircuited:!0}}else l={type:h.error,error:Ce(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(Ae(l)){let t;return t=i&&null!=i.replace?i.replace:ye(l.response.headers.get("Location"),new URL(e.url),S)===j.location.pathname+j.location.search,await $e(e,l,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(Re(l))throw Ce(400,{type:"defer-action"});if(_e(l)){let e=Te(n,u.route.id);return!0!==(i&&i.replace)&&(F=a.Push),{matches:n,pendingActionResult:[e.route.id,l]}}return{matches:n,pendingActionResult:[u.route.id,l]}}(v,r,o.submission,u,p.active,{replace:o.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(_e(n)&&$(n.error)&&404===n.error.status)return P=null,void Le(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}u=t.matches||u,m=t.pendingActionResult,s=Ze(r,o.submission),c=!1,p.active=!1,v=be(e.history,v.url,v.signal)}let{shortCircuited:b,matches:g,loaderData:E,errors:N}=await async function(t,r,a,o,i,s,u,c,d,f,p){let h=i||Ze(r,s),m=s||u||He(h),v=!(W||T.v7_partialHydration&&d);if(o){if(v){let e=Ue(p);Oe(n({navigation:h},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await dt(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Te(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}a=e.matches}let y=l||w,[b,g]=se(e.history,j,a,m,r,T.v7_partialHydration&&!0===d,T.v7_skipActionErrorRevalidation,z,G,V,pe,ce,le,y,S,p);if(lt(e=>!(a&&a.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),Y=++K,0===b.length&&0===g.length){let e=tt();return Le(r,n({matches:a,loaderData:{},errors:p&&_e(p[1])?{[p[0]]:p[1].error}:null},Ne(p),e?{fetchers:new Map(j.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(v){let e={};if(!o){e.navigation=h;let t=Ue(p);void 0!==t&&(e.actionData=t)}g.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=j.fetchers.get(e.key),r=We(void 0,t?t.data:void 0);j.fetchers.set(e.key,r)}),new Map(j.fetchers)}(g)),Oe(e,{flushSync:f})}g.forEach(e=>{Qe(e.key),e.controller&&q.set(e.key,e.controller)});let E=()=>g.forEach(e=>Qe(e.key));P&&P.signal.addEventListener("abort",E);let{loaderResults:N,fetcherResults:x}=await Ve(j,a,b,g,t);if(t.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",E),g.forEach(e=>q.delete(e.key));let C=ke(N);if(C)return await $e(t,C.result,!0,{replace:c}),{shortCircuited:!0};if(C=ke(x),C)return le.add(C.key),await $e(t,C.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:k,errors:O}=Se(j,a,N,p,g,x,ge);ge.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ge.delete(t)})}),T.v7_partialHydration&&d&&j.errors&&(O=n({},j.errors,O));let D=tt(),R=rt(Y),_=D||R||g.length>0;return n({matches:a,loaderData:k,errors:O},_?{fetchers:new Map(j.fetchers)}:{})}(v,r,u,p.active,s,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,c,m);b||(P=null,Le(r,n({matches:g||u},Ne(m),{loaderData:E,errors:N})))}function Ue(e){return e&&!_e(e[1])?{[e[0]]:e[1].data}:j.actionData?0===Object.keys(j.actionData).length?null:j.actionData:void 0}async function $e(o,i,l,u){let{submission:c,fetcherSubmission:f,preventScrollReset:p,replace:h}=void 0===u?{}:u;i.response.headers.has("X-Remix-Revalidate")&&(z=!0);let m=i.response.headers.get("Location");s(m,"Expected a Location header on the redirect Response"),m=ye(m,new URL(o.url),S);let v=d(j.location,m,{_isRedirect:!0});if(r){let r=!1;if(i.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(te.test(m)){const n=e.history.createURL(m);r=n.origin!==t.location.origin||null==M(n.pathname,S)}if(r)return void(h?t.location.replace(m):t.location.assign(m))}P=null;let y=!0===h||i.response.headers.has("X-Remix-Replace")?a.Replace:a.Push,{formMethod:b,formAction:g,formEncType:w}=j.navigation;!c&&!f&&b&&g&&w&&(c=He(j.navigation));let E=c||f;if(J.has(i.response.status)&&E&&Pe(E.formMethod))await Me(y,v,{submission:n({},E,{formAction:m}),preventScrollReset:p||U,enableViewTransition:l?B:void 0});else{let e=Ze(v,c);await Me(y,v,{overrideNavigation:e,fetcherSubmission:f,preventScrollReset:p||U,enableViewTransition:l?B:void 0})}}async function Ge(e,t,r,a,o,l){let c,d={};try{c=await async function(e,t,r,a,o,i,l,c,d,f){let p=i.map(e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let o=r[e.id];s(o,"No route found in manifest");let i={};for(let e in a){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;u(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||m.has(e)||(i[e]=a[e])}Object.assign(o,i),Object.assign(o,n({},t(o),{lazy:void 0}))}(e.route,d,c):void 0),v=i.map((e,r)=>{let i=p[r],l=o.some(t=>t.route.id===e.route.id);return n({},e,{shouldLoad:l,resolve:async r=>(r&&"GET"===a.method&&(e.route.lazy||e.route.loader)&&(l=!0),l?async function(e,t,r,n,a,o){let i,l,u=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]),c=(async()=>{try{return{type:"data",result:await(a?a(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([c,s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([u(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else{if(await n,a=r.route[e],!a){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Ce(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:h.data,result:void 0}}i=await u(a)}else{if(!a){let e=new URL(t.url);throw Ce(404,{pathname:e.pathname+e.search})}i=await u(a)}s(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:h.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}(t,a,e,i,r,f):Promise.resolve({type:h.data,result:void 0}))})}),y=await e({matches:v,request:a,params:i[0].params,fetcherKey:l,context:f});try{await Promise.all(p)}catch(e){}return y}(E,e,0,r,a,o,l,p,i)}catch(e){return a.forEach(t=>{d[t.route.id]={type:h.error,error:e}}),d}for(let[e,t]of Object.entries(c))if(De(t)){let n=t.result;d[e]={type:h.redirect,response:ve(n,r,e,o,S,T.v7_relativeSplatPath)}}else d[e]=await me(t);return d}async function Ve(t,r,n,a,o){let i=t.matches,l=Ge("loader",0,o,n,r,null),s=Promise.all(a.map(async t=>{if(t.matches&&t.match&&t.controller){let r=(await Ge("loader",0,be(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:r}}return Promise.resolve({[t.key]:{type:h.error,error:Ce(404,{pathname:t.path})}})})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Ie(r,u,o.signal,i,t.loaderData),je(r,c,a)]),{loaderResults:u,fetcherResults:c}}function qe(){z=!0,G.push(...lt()),ce.forEach((e,t)=>{q.has(t)&&V.add(t),Qe(t)})}function Ke(e,t,r){void 0===r&&(r={}),j.fetchers.set(e,t),Oe({fetchers:new Map(j.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ye(e,t,r,n){void 0===n&&(n={});let a=Te(j.matches,t);Xe(e),Oe({errors:{[a.route.id]:r},fetchers:new Map(j.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Je(e){return de.set(e,(de.get(e)||0)+1),pe.has(e)&&pe.delete(e),j.fetchers.get(e)||Q}function Xe(e){let t=j.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&ae.has(e)||Qe(e),ce.delete(e),ae.delete(e),le.delete(e),T.v7_fetcherPersist&&pe.delete(e),V.delete(e),j.fetchers.delete(e)}function Qe(e){let t=q.get(e);t&&(t.abort(),q.delete(e))}function et(e){for(let t of e){let e=ze(Je(t).data);j.fetchers.set(t,e)}}function tt(){let e=[],t=!1;for(let r of le){let n=j.fetchers.get(r);s(n,"Expected fetcher: "+r),"loading"===n.state&&(le.delete(r),e.push(r),t=!0)}return et(e),t}function rt(e){let t=[];for(let[r,n]of ae)if(n<e){let e=j.fetchers.get(r);s(e,"Expected fetcher: "+r),"loading"===e.state&&(Qe(r),ae.delete(r),t.push(r))}return et(t),t.length>0}function nt(e){j.blockers.delete(e),we.delete(e)}function at(e,t){let r=j.blockers.get(e)||ee;s("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(j.blockers);n.set(e,t),Oe({blockers:n})}function ot(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===we.size)return;we.size>1&&u(!1,"A router only supports one blocker at a time");let a=Array.from(we.entries()),[o,i]=a[a.length-1],l=j.blockers.get(o);return l&&"proceeding"===l.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function it(e){let t=Ce(404,{pathname:e}),r=l||w,{matches:n,route:a}=xe(r);return lt(),{notFoundMatches:n,route:a,error:t}}function lt(e){let t=[];return ge.forEach((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),ge.delete(n))}),t}function st(e,t){return O&&O(e,t.map(e=>g(e,j.loaderData)))||e.key}function ut(e,t){if(k){let r=st(e,t),n=k[r];if("number"==typeof n)return n}return null}function ct(e,t,r){if(N){if(!e)return{active:!0,matches:b(t,r,S,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:b(t,r,S,!0)}}return{active:!1,matches:null}}async function dt(e,t,r,n){if(!N)return{type:"success",matches:e};let a=e;for(;;){let e=null==l,o=l||w,s=p;try{await N({signal:r,path:t,matches:a,fetcherKey:n,patch:(e,t)=>{r.aborted||fe(e,t,o,s,i)}})}catch(e){return{type:"error",error:e,partialMatches:a}}finally{e&&!r.aborted&&(w=[...w])}if(r.aborted)return{type:"aborted"};let u=y(o,t,S);if(u)return{type:"success",matches:u};let c=b(o,t,S,!0);if(!c||a.length===c.length&&a.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};a=c}}return f={get basename(){return S},get future(){return T},get state(){return j},get routes(){return w},get window(){return t},initialize:function(){if(x=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(I)return I(),void(I=void 0);u(0===we.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=ot({currentLocation:j.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{I=e});return e.history.go(-1*a),void at(o,{state:"blocked",location:n,proceed(){at(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(j.blockers);e.set(o,ee),Oe({blockers:e})}})}return Me(r,n)}),r){!function(e,t){try{let r=e.sessionStorage.getItem(ne);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,H);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ne,JSON.stringify(r))}catch(e){u(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,H);t.addEventListener("pagehide",e),Z=()=>t.removeEventListener("pagehide",e)}return j.initialized||Me(a.Pop,j.location,{initialHydration:!0}),f},subscribe:function(e){return C.add(e),()=>C.delete(e)},enableScrollRestoration:function(e,t,r){if(k=e,D=t,O=r||null,!R&&j.navigation===X){R=!0;let e=ut(j.location,j.matches);null!=e&&Oe({restoreScrollPosition:e})}return()=>{k=null,D=null,O=null}},navigate:async function t(r,o){if("number"==typeof r)return void e.history.go(r);let i=oe(j.location,j.matches,S,T.v7_prependBasename,r,T.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:l,submission:s,error:u}=ie(T.v7_normalizeFormMethod,!1,i,o),c=j.location,f=d(j.location,l,o&&o.state);f=n({},f,e.history.encodeLocation(f));let p=o&&null!=o.replace?o.replace:void 0,h=a.Push;!0===p?h=a.Replace:!1===p||null!=s&&Pe(s.formMethod)&&s.formAction===j.location.pathname+j.location.search&&(h=a.Replace);let m=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,v=!0===(o&&o.flushSync),y=ot({currentLocation:c,nextLocation:f,historyAction:h});if(!y)return await Me(h,f,{submission:s,pendingError:u,preventScrollReset:m,replace:o&&o.replace,enableViewTransition:o&&o.viewTransition,flushSync:v});at(y,{state:"blocked",location:f,proceed(){at(y,{state:"proceeding",proceed:void 0,reset:void 0,location:f}),t(r,o)},reset(){let e=new Map(j.blockers);e.set(y,ee),Oe({blockers:e})}})},fetch:function(t,r,n,a){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Qe(t);let i=!0===(a&&a.flushSync),u=l||w,c=oe(j.location,j.matches,S,T.v7_prependBasename,n,T.v7_relativeSplatPath,r,null==a?void 0:a.relative),d=y(u,c,S),f=ct(d,u,c);if(f.active&&f.matches&&(d=f.matches),!d)return void Ye(t,r,Ce(404,{pathname:c}),{flushSync:i});let{path:p,submission:h,error:m}=ie(T.v7_normalizeFormMethod,!0,c,a);if(m)return void Ye(t,r,m,{flushSync:i});let v=Be(d,p),b=!0===(a&&a.preventScrollReset);h&&Pe(h.formMethod)?async function(t,r,n,a,o,i,u,c,d){function f(e){if(!e.route.action&&!e.route.lazy){let e=Ce(405,{method:d.formMethod,pathname:n,routeId:r});return Ye(t,r,e,{flushSync:u}),!0}return!1}if(qe(),ce.delete(t),!i&&f(a))return;let p=j.fetchers.get(t);Ke(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(d,p),{flushSync:u});let h=new AbortController,m=be(e.history,n,h.signal,d);if(i){let e=await dt(o,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ye(t,r,e.error,{flushSync:u});if(!e.matches)return void Ye(t,r,Ce(404,{pathname:n}),{flushSync:u});if(f(a=Be(o=e.matches,n)))return}q.set(t,h);let v=K,b=(await Ge("action",0,m,[a],o,t))[a.route.id];if(m.signal.aborted)return void(q.get(t)===h&&q.delete(t));if(T.v7_fetcherPersist&&pe.has(t)){if(Ae(b)||_e(b))return void Ke(t,ze(void 0))}else{if(Ae(b))return q.delete(t),Y>v?void Ke(t,ze(void 0)):(le.add(t),Ke(t,We(d)),$e(m,b,!1,{fetcherSubmission:d,preventScrollReset:c}));if(_e(b))return void Ye(t,r,b.error)}if(Re(b))throw Ce(400,{type:"defer-action"});let g=j.navigation.location||j.location,E=be(e.history,g,h.signal),N=l||w,x="idle"!==j.navigation.state?y(N,j.navigation.location,S):j.matches;s(x,"Didn't find any matches after fetcher action");let C=++K;ae.set(t,C);let k=We(d,b.data);j.fetchers.set(t,k);let[O,D]=se(e.history,j,x,d,g,!1,T.v7_skipActionErrorRevalidation,z,G,V,pe,ce,le,N,S,[a.route.id,b]);D.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=j.fetchers.get(t),n=We(void 0,r?r.data:void 0);j.fetchers.set(t,n),Qe(t),e.controller&&q.set(t,e.controller)}),Oe({fetchers:new Map(j.fetchers)});let R=()=>D.forEach(e=>Qe(e.key));h.signal.addEventListener("abort",R);let{loaderResults:_,fetcherResults:A}=await Ve(j,x,O,D,E);if(h.signal.aborted)return;h.signal.removeEventListener("abort",R),ae.delete(t),q.delete(t),D.forEach(e=>q.delete(e.key));let L=ke(_);if(L)return $e(E,L.result,!1,{preventScrollReset:c});if(L=ke(A),L)return le.add(L.key),$e(E,L.result,!1,{preventScrollReset:c});let{loaderData:M,errors:I}=Se(j,x,_,void 0,D,A,ge);if(j.fetchers.has(t)){let e=ze(b.data);j.fetchers.set(t,e)}rt(C),"loading"===j.navigation.state&&C>Y?(s(F,"Expected pending action"),P&&P.abort(),Le(j.navigation.location,{matches:x,loaderData:M,errors:I,fetchers:new Map(j.fetchers)})):(Oe({errors:I,loaderData:Ee(j.loaderData,M,x,I),fetchers:new Map(j.fetchers)}),z=!1)}(t,r,p,v,d,f.active,i,b,h):(ce.set(t,{routeId:r,path:p}),async function(t,r,n,a,o,i,l,u,c){let d=j.fetchers.get(t);Ke(t,We(c,d?d.data:void 0),{flushSync:l});let f=new AbortController,p=be(e.history,n,f.signal);if(i){let e=await dt(o,new URL(p.url).pathname,p.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ye(t,r,e.error,{flushSync:l});if(!e.matches)return void Ye(t,r,Ce(404,{pathname:n}),{flushSync:l});a=Be(o=e.matches,n)}q.set(t,f);let h=K,m=(await Ge("loader",0,p,[a],o,t))[a.route.id];if(Re(m)&&(m=await Fe(m,p.signal,!0)||m),q.get(t)===f&&q.delete(t),!p.signal.aborted){if(!pe.has(t))return Ae(m)?Y>h?void Ke(t,ze(void 0)):(le.add(t),void await $e(p,m,!1,{preventScrollReset:u})):void(_e(m)?Ye(t,r,m.error):(s(!Re(m),"Unhandled fetcher deferred data"),Ke(t,ze(m.data))));Ke(t,ze(void 0))}}(t,r,p,v,d,f.active,i,b,h))},revalidate:function(){qe(),Oe({revalidation:"loading"}),"submitting"!==j.navigation.state&&("idle"!==j.navigation.state?Me(F||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:!0===B}):Me(j.historyAction,j.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Je,deleteFetcher:function(e){let t=(de.get(e)||0)-1;t<=0?(de.delete(e),pe.add(e),T.v7_fetcherPersist||Xe(e)):de.set(e,t),Oe({fetchers:new Map(j.fetchers)})},dispose:function(){x&&x(),Z&&Z(),C.clear(),P&&P.abort(),j.fetchers.forEach((e,t)=>Xe(t)),j.blockers.forEach((e,t)=>nt(t))},getBlocker:function(e,t){let r=j.blockers.get(e)||ee;return we.get(e)!==t&&we.set(e,t),r},deleteBlocker:nt,patchRoutes:function(e,t){let r=null==l;fe(e,t,l||w,p,i),r&&(w=[...w],Oe({}))},_internalFetchControllers:q,_internalActiveDeferreds:ge,_internalSetRoutes:function(e){p={},l=v(e,i,void 0,p)}},f}function oe(e,t,r,n,a,o,i,l){let s,u;if(i){s=[];for(let e of t)if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=F(a||".",j(s,o),M(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=Ue(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:U([r,c.pathname])),f(c)}function ie(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!K.has(a.toLowerCase())))return{path:r,error:Ce(405,{method:n.formMethod})};var a;let o,i,l=()=>({path:r,error:Ce(400,{type:"invalid-body"})}),u=n.formMethod||"get",c=e?u.toUpperCase():u.toLowerCase(),d=Oe(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Pe(c))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:c,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Pe(c))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:c,formAction:d,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(s("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ge(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ge(n.body),i=n.body;else if(n.body instanceof URLSearchParams)o=n.body,i=we(o);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=we(o)}catch(e){return l()}let h={formMethod:c,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(Pe(h.formMethod))return{path:r,submission:h};let m=p(r);return t&&m.search&&Ue(m.search)&&o.append("index",""),m.search="?"+o,{path:f(m),submission:h}}function le(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function se(e,t,r,a,o,i,l,s,u,c,d,f,p,h,m,v){let b=v?_e(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),w=e.createURL(o),S=r;i&&t.errors?S=le(r,Object.keys(t.errors)[0],!0):v&&_e(v[1])&&(S=le(r,v[0]));let E=v?v[1].statusCode:void 0,N=l&&E&&E>=400,T=S.filter((e,r)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return ue(o,t.loaderData,t.errors);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||u.some(t=>t===e.route.id))return!0;let l=t.matches[r],c=e;return de(e,n({currentUrl:g,currentParams:l.params,nextUrl:w,nextParams:c.params},a,{actionResult:b,actionStatus:E,defaultShouldRevalidate:!N&&(s||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||ce(l,c))}))}),x=[];return f.forEach((e,o)=>{if(i||!r.some(t=>t.route.id===e.routeId)||d.has(o))return;let l=y(h,e.path,m);if(!l)return void x.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(o),f=Be(l,e.path),v=!1;p.has(o)?v=!1:c.has(o)?(c.delete(o),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?s:de(f,n({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},a,{actionResult:b,actionStatus:E,defaultShouldRevalidate:!N&&s})),v&&x.push({key:o,routeId:e.routeId,path:e.path,matches:l,match:f,controller:new AbortController})}),[T,x]}function ue(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return!(!n&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ce(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function de(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function fe(e,t,r,n,a){var o;let i;if(e){let t=n[e];s(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=v(t.filter(e=>!i.some(t=>pe(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}function pe(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,r)=>{var n;return null==(n=t.children)?void 0:n.some(t=>pe(e,t))}))}async function he(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function me(e){let{result:t,type:r}=e;if(Me(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:h.error,error:e}}return r===h.error?{type:h.error,error:new z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:h.data,data:e,statusCode:t.status,headers:t.headers}}var n,a,o,i,l,s,u,c;return r===h.error?Le(t)?t.data instanceof Error?{type:h.error,error:t.data,statusCode:null==(o=t.init)?void 0:o.status,headers:null!=(i=t.init)&&i.headers?new Headers(t.init.headers):void 0}:{type:h.error,error:new z((null==(n=t.init)?void 0:n.status)||500,void 0,t.data),statusCode:$(t)?t.status:void 0,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:h.error,error:t,statusCode:$(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:h.deferred,deferredData:t,statusCode:null==(l=t.init)?void 0:l.status,headers:(null==(s=t.init)?void 0:s.headers)&&new Headers(t.init.headers)}:Le(t)?{type:h.data,data:t.data,statusCode:null==(u=t.init)?void 0:u.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:h.data,data:t}}function ve(e,t,r,n,a,o){let i=e.headers.get("Location");if(s(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!te.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=oe(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}function ye(e,t,r){if(te.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=M(a.pathname,r);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function be(e,t,r,n){let a=e.createURL(Oe(t)).toString(),o={signal:r};if(n&&Pe(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=ge(n.formData):o.body=n.formData}return new Request(a,o)}function ge(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function we(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Se(e,t,r,a,o,i,l){let{loaderData:u,errors:c}=function(e,t,r,n,a){let o,i={},l=null,u=!1,c={},d=r&&_e(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let f=r.route.id,p=t[f];if(s(!Ae(p),"Cannot handle redirect results in processLoaderData"),_e(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),l=l||{},a)l[f]=t;else{let r=Te(e,f);null==l[r.route.id]&&(l[r.route.id]=t)}i[f]=void 0,u||(u=!0,o=$(p.error)?p.error.status:500),p.headers&&(c[f]=p.headers)}else Re(p)?(n.set(f,p.deferredData),i[f]=p.deferredData.data,null==p.statusCode||200===p.statusCode||u||(o=p.statusCode),p.headers&&(c[f]=p.headers)):(i[f]=p.data,p.statusCode&&200!==p.statusCode&&!u&&(o=p.statusCode),p.headers&&(c[f]=p.headers))}),void 0!==d&&r&&(l={[r[0]]:d},i[r[0]]=void 0),{loaderData:i,errors:l,statusCode:o||200,loaderHeaders:c}}(t,r,a,l,!1);return o.forEach(t=>{let{key:r,match:a,controller:o}=t,l=i[r];if(s(l,"Did not find corresponding fetcher result"),!o||!o.signal.aborted)if(_e(l)){let t=Te(e.matches,null==a?void 0:a.route.id);c&&c[t.route.id]||(c=n({},c,{[t.route.id]:l.error})),e.fetchers.delete(r)}else if(Ae(l))s(!1,"Unhandled fetcher revalidation redirect");else if(Re(l))s(!1,"Unhandled fetcher deferred data");else{let t=ze(l.data);e.fetchers.set(r,t)}}),{loaderData:u,errors:c}}function Ee(e,t,r,a){let o=n({},t);for(let n of r){let r=n.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(o[r]=t[r]):void 0!==e[r]&&n.route.loader&&(o[r]=e[r]),a&&a.hasOwnProperty(r))break}return o}function Ne(e){return e?_e(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Te(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function xe(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ce(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";
2return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new z(e||500,l,new Error(s),!0)}function ke(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(Ae(n))return{key:r,result:n}}}function Oe(e){return f(n({},"string"==typeof e?p(e):e,{hash:""}))}function De(e){return Me(e.result)&&Y.has(e.result.status)}function Re(e){return e.type===h.deferred}function _e(e){return e.type===h.error}function Ae(e){return(e&&e.type)===h.redirect}function Le(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Me(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Pe(e){return V.has(e.toLowerCase())}async function Ie(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!ce(c,u)&&void 0!==(a&&a[u.route.id]);Re(s)&&d&&await Fe(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function je(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&Re(l)&&(s(i,"Expected an AbortController for revalidating fetcher deferred result"),await Fe(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function Fe(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:h.data,data:e.deferredData.unwrappedData}}catch(e){return{type:h.error,error:e}}return{type:h.data,data:e.deferredData.data}}}function Ue(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Be(e,t){let r="string"==typeof t?p(t).search:t.search;if(e[e.length-1].route.index&&Ue(r||""))return e[e.length-1];let n=I(e);return n[n.length-1]}function He(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function Ze(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function We(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ze(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},20773:function(e,t,r){var n,a="__lodash_hash_undefined__",o=/^\[object .+?Constructor\]$/,i="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,s=i||l||Function("return this")(),u=Array.prototype,c=Function.prototype,d=Object.prototype,f=s["__core-js_shared__"],p=(n=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",h=c.toString,m=d.hasOwnProperty,v=d.toString,y=RegExp("^"+h.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=u.splice,g=C(s,"Map"),w=C(Object,"create");function S(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function E(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function N(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function T(e,t){for(var r=e.length;r--;)if(O(e[r][0],t))return r;return-1}function x(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function C(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!D(e)||p&&p in e)return!1;var t=function(e){var t=D(e)?v.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?y:o;return t.test(function(e){if(null!=e){try{return h.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}function k(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(k.Cache||N),r}function O(e,t){return e===t||e!=e&&t!=t}function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}S.prototype.clear=function(){this.__data__=w?w(null):{}},S.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},S.prototype.get=function(e){var t=this.__data__;if(w){var r=t[e];return r===a?void 0:r}return m.call(t,e)?t[e]:void 0},S.prototype.has=function(e){var t=this.__data__;return w?void 0!==t[e]:m.call(t,e)},S.prototype.set=function(e,t){return this.__data__[e]=w&&void 0===t?a:t,this},E.prototype.clear=function(){this.__data__=[]},E.prototype.delete=function(e){var t=this.__data__,r=T(t,e);return!(r<0||(r==t.length-1?t.pop():b.call(t,r,1),0))},E.prototype.get=function(e){var t=this.__data__,r=T(t,e);return r<0?void 0:t[r][1]},E.prototype.has=function(e){return T(this.__data__,e)>-1},E.prototype.set=function(e,t){var r=this.__data__,n=T(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},N.prototype.clear=function(){this.__data__={hash:new S,map:new(g||E),string:new S}},N.prototype.delete=function(e){return x(this,e).delete(e)},N.prototype.get=function(e){return x(this,e).get(e)},N.prototype.has=function(e){return x(this,e).has(e)},N.prototype.set=function(e,t){return x(this,e).set(e,t),this},k.Cache=N,e.exports=k},55475:function(e,t){"use strict";t.Z={container:"west-ui-traveller-modal--container",row:"west-ui-traveller-modal--row",traveller:"west-ui-traveller-modal--traveller",adults:"west-ui-traveller-modal--adults",noBorder:"west-ui-traveller-modal--no-border",withBorder:"west-ui-traveller-modal--with-border",toggleItem:"west-ui-traveller-modal--toggle-item",label:"west-ui-traveller-modal--label",groupContainer:"west-ui-traveller-modal--group-container",groupButton:"west-ui-traveller-modal--group-button"}},79655:function(e,t,r){"use strict";var n,a;r.d(t,{GI:function(){return R},OL:function(){return D},aj:function(){return h},fW:function(){return d},lr:function(){return M},pG:function(){return N},rU:function(){return O}});var o=r(67294),i=r(73935),l=r(89250),s=r(12599);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const f=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],p=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}function h(e,t){return(0,s.p7)({basename:null==t?void 0:t.basename,future:u({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,s.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||m(),routes:e,mapRouteProperties:l.us,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function m(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=u({},t,{errors:v(t.errors)})),t}function v(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new s.OF(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const y=o.createContext({isTransitioning:!1}),b=o.createContext(new Map),g=(n||(n=r.t(o,2))).startTransition,w=(a||(a=r.t(i,2))).flushSync;function S(e){w?w(e):e()}(n||(n=r.t(o,2))).useId;class E{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function N(e){let{fallbackElement:t,router:r,future:n}=e,[a,i]=o.useState(r.state),[s,u]=o.useState(),[c,d]=o.useState({isTransitioning:!1}
2),[f,p]=o.useState(),[h,m]=o.useState(),[v,w]=o.useState(),N=o.useRef(new Map),{v7_startTransition:x}=n||{},C=o.useCallback(e=>{x?function(e){g?g(e):e()}(e):e()},[x]),k=o.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:o}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&N.current.set(t,e.data)}),n.forEach(e=>N.current.delete(e));let l=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(o&&!l){if(a){S(()=>{h&&(f&&f.resolve(),h.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=r.window.document.startViewTransition(()=>{S(()=>i(e))});return t.finished.finally(()=>{S(()=>{p(void 0),m(void 0),u(void 0),d({isTransitioning:!1})})}),void S(()=>m(t))}h?(f&&f.resolve(),h.skipTransition(),w({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(u(e),d({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?S(()=>i(e)):C(()=>i(e))},[r.window,h,f,N,C]);o.useLayoutEffect(()=>r.subscribe(k),[r,k]),o.useEffect(()=>{c.isTransitioning&&!c.flushSync&&p(new E)},[c]),o.useEffect(()=>{if(f&&s&&r.window){let e=s,t=f.promise,n=r.window.document.startViewTransition(async()=>{C(()=>i(e)),await t});n.finished.finally(()=>{p(void 0),m(void 0),u(void 0),d({isTransitioning:!1})}),m(n)}},[C,s,f,r.window]),o.useEffect(()=>{f&&s&&a.location.key===s.location.key&&f.resolve()},[f,h,a.location,s]),o.useEffect(()=>{!c.isTransitioning&&v&&(u(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),w(void 0))},[c.isTransitioning,v]),o.useEffect(()=>{},[]);let O=o.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),D=r.basename||"/",R=o.useMemo(()=>({router:r,navigator:O,static:!1,basename:D}),[r,O,D]),_=o.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return o.useEffect(()=>(0,l.$A)(n,r.future),[n,r.future]),o.createElement(o.Fragment,null,o.createElement(l.w3.Provider,{value:R},o.createElement(l.FR.Provider,{value:a},o.createElement(b.Provider,{value:N.current},o.createElement(y.Provider,{value:c}
2,o.createElement(l.F0,{basename:D,location:a.location,navigationType:a.historyAction,navigator:O,future:_},a.initialized||r.future.v7_partialHydration?o.createElement(T,{routes:r.routes,future:r.future,state:a}):t))))),null)}const T=o.memo(x);function x(e){let{routes:t,future:r,state:n}=e;return(0,l.DY)(t,void 0,n,r)}const C="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,k=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O=o.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:i,replace:d,state:p,target:h,to:m,preventScrollReset:v,viewTransition:y}=e,b=c(e,f),{basename:g}=o.useContext(l.Us),w=!1;if("string"==typeof m&&k.test(m)&&(r=m,C))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),r=(0,s.Zn)(t.pathname,g);t.origin===e.origin&&null!=r?m=r+t.search+t.hash:w=!0}catch(e){}let S=(0,l.oQ)(m,{relative:a}),E=function(e,t){let{target:r,replace:n,state:a,preventScrollReset:i,relative:u,viewTransition:c}=void 0===t?{}:t,d=(0,l.s0)(),f=(0,l.TH)(),p=(0,l.WU)(e,{relative:u});return o.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==n?n:(0,s.Ep)(f)===(0,s.Ep)(p);d(e,{replace:r,state:a,preventScrollReset:i,relative:u,viewTransition:c})}},[f,d,p,n,a,r,e,i,u,c])}(m,{replace:d,state:p,target:h,preventScrollReset:v,relative:a,viewTransition:y});return o.createElement("a",u({},b,{href:r||S,onClick:w||i?n:function(e){n&&n(e),e.defaultPrevented||E(e)},ref:t,target:h}))}),D=o.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:a="",end:i=!1,style:d,to:f,viewTransition:h,children:m}=e,v=c(e,p),b=(0,l.WU)(f,{relative:v.relative}),g=(0,l.TH)(),w=o.useContext(l.FR),{navigator:S,basename:E}=o.useContext(l.Us),N=null!=w&&function(e,t){void 0===t&&(t={});let r=o.useContext(y);null==r&&(0,s.J0)(!1);let{basename:n}=L(_.useViewTransitionState),a=(0,l.WU)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=(0,s.Zn)(r.currentLocation.pathname,n)||r.currentLocation.pathname,u=(0,s.Zn)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,s.LX)(a.pathname,u)||null!=(0,s.LX)(a.pathname,i)}(b)&&!0===h,T=S.encodeLocation?S.encodeLocation(b).pathname:b.pathname,x=g.pathname,C=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(x=x.toLowerCase(),C=C?C.toLowerCase():null,T=T.toLowerCase()),C&&E&&(C=(0,s.Zn)(C,E)||C);const k="/"!==T&&T.endsWith("/")?T.length-1:T.length;let D,R=x===T||!i&&x.startsWith(T)&&"/"===x.charAt(k),A=null!=C&&(C===T||!i&&C.startsWith(T)&&"/"===C.charAt(T.length)),M={isActive:R,isPending:A,isTransitioning:N},P=R?r:void 0;D="function"==typeof a?a(M):[a,R?"active":null,A?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let I="function"==typeof d?d(M):d;return o.createElement(O,u({},v,{"aria-current":P,className:D,ref:t,style:I,to:f,viewTransition:h}),"function"==typeof m?m(M):m)});function R(e){let{getKey:t,storageKey:r}=e;return function(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=L(_.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:i}=function(){let e=o.useContext(l.FR);return e||(0,s.J0)(!1),e}(A.UseScrollRestoration),{basename:c}=o.useContext(l.Us),d=(0,l.TH)(),f=(0,l.SN)(),p=(0,l.HJ)();o.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};o.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(o.useCallback(()=>{if("idle"===p.state){let e=(t?t(d,f):null)||d.key;I[e]=window.scrollY}try{sessionStorage.setItem(r||P,JSON.stringify(I))}catch(e){}window.history.scrollRestoration="auto"},[r,t,p.state,d,f])),"undefined"!=typeof document&&(o.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||P);e&&(I=JSON.parse(e))}catch(e){}},[r]),o.useLayoutEffect(()=>{let e=t&&"/"!==c?(e,r)=>t(u({},e,{pathname:(0,s.Zn)(e.pathname,c)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(I,()=>window.scrollY,e);return()=>r&&r()},[n,c,t]),o.useLayoutEffect(()=>{if(!1!==a)if("number"!=typeof a){if(d.hash){let e=document.getElementById(decodeURIComponent(d.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==i&&window.scrollTo(0,0)}else window.scrollTo(0,a)},[d,a,i]))}({getKey:t,storageKey:r}),null}var _,A;function L(e){let t=o.useContext(l.w3);return t||(0,s.J0)(!1),t}function M(e){let t=o.useRef(d(e)),r=o.useRef(!1),n=(0,l.TH)(),a=o.useMemo(()=>function(e,t){let r=d(e);return t&&t.forEach((e,n)=>
2{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),i=(0,l.s0)(),s=o.useCallback((e,t)=>{const n=d("function"==typeof e?e(a):e);r.current=!0,i("?"+n,t)},[i,a]);return[a,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_||(_={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(A||(A={}));const P="react-router-scroll-positions";let I={}},89250:function(e,t,r){"use strict";var n;r.d(t,{$A:function(){return P},DY:function(){return S},F0:function(){return F},FR:function(){return s},Fg:function(){return I},HJ:function(){return R},SN:function(){return _},TH:function(){return m},UO:function(){return g},Us:function(){return u},WU:function(){return w},bi:function(){return B},j3:function(){return j},lk:function(){return A},oQ:function(){return p},s0:function(){return y},us:function(){return U},w3:function(){return l}});var a=r(67294),o=r(12599);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const l=a.createContext(null),s=a.createContext(null),u=a.createContext(null),c=a.createContext(null),d=a.createContext({outlet:null,matches:[],isDataRoute:!1}),f=a.createContext(null);function p(e,t){let{relative:r}=void 0===t?{}:t;h()||(0,o.J0)(!1);let{basename:n,navigator:i}=a.useContext(u),{hash:l,pathname:s,search:c}=w(e,{relative:r}),d=s;return"/"!==n&&(d="/"===s?n:(0,o.RQ)([n,s])),i.createHref({pathname:d,search:c,hash:l})}function h(){return null!=a.useContext(c)}function m(){return h()||(0,o.J0)(!1),a.useContext(c).location}function v(e){a.useContext(u).static||a.useLayoutEffect(e)}function y(){let{isDataRoute:e}=a.useContext(d);return e?function(){let{router:e}=function(){let e=a.useContext(l);return e||(0,o.J0)(!1),e}(C.UseNavigateStable),t=D(k.UseNavigateStable),r=a.useRef(!1);return v(()=>{r.current=!0}),a.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,i({fromRouteId:t},a)))},[e,t])}():function(){h()||(0,o.J0)(!1);let e=a.useContext(l),{basename:t,future:r,navigator:n}=a.useContext(u),{matches:i}=a.useContext(d),{pathname:s}=m(),c=JSON.stringify((0,o.cm)(i,r.v7_relativeSplatPath)),f=a.useRef(!1);return v(()=>{f.current=!0}),a.useCallback(function(r,a){if(void 0===a&&(a={}),!f.current)return;if("number"==typeof r)return void n.go(r);let i=(0,o.pC)(r,JSON.parse(c),s,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,o.RQ)([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,c,s,e])}()}const b=a.createContext(null);function g(){let{matches:e}=a.useContext(d),t=e[e.length-1];return t?t.params:{}}function w(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=a.useContext(u),{matches:i}=a.useContext(d),{pathname:l}=m(),s=JSON.stringify((0,o.cm)(i,n.v7_relativeSplatPath));return a.useMemo(()=>(0,o.pC)(e,JSON.parse(s),l,"path"===r),[e,s,l,r])}function S(e,t,r,n){h()||(0,o.J0)(!1);let{navigator:l}=a.useContext(u),{matches:s}=a.useContext(d),f=s[s.length-1],p=f?f.params:{},v=(f&&f.pathname,f?f.pathnameBase:"/");f&&f.route;let y,b=m();if(t){var g;let e="string"==typeof t?(0,o.cP)(t):t;"/"===v||(null==(g=e.pathname)?void 0:g.startsWith(v))||(0,o.J0)(!1),y=e}else y=b;let w=y.pathname||"/",S=w;if("/"!==v){let e=v.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let E=(0,o.fp)(e,{pathname:S}),C=function(e,t,r,n){var i;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var l;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(l=n)&&l.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let s=e,u=null==(i=r)?void 0:i.errors;if(null!=u){let e=s.findIndex(e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id]));e>=0||(0,o.J0)(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((e,n,o)=>{let i,l=!1,f=null,p=null;var h;r&&(i=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||N,c&&(d<0&&0===o?(L[h="route-fallback"]||(L[h]=!0),l=!0,p=null):d===o&&(l=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,o+1)),v=()=>{let t;return t=i?f:l?p:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(x,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(T,{location:r.location,revalidation:r.revalidation,component:f,error:i,children:v(),routeC
2ontext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}(E&&E.map(e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,o.RQ)([v,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,o.RQ)([v,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,r,n);return t&&C?a.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:o.aU.Pop}},C):C}function E(){let e=A(),t=(0,o.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:n},r):null,null)}const N=a.createElement(E,null);class T extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(d.Provider,{value:this.props.routeContext},a.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function x(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(l);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(d.Provider,{value:t},n)}var C=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(C||{}),k=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(k||{});function O(e){let t=a.useContext(s);return t||(0,o.J0)(!1),t}function D(e){let t=function(){let e=a.useContext(d);return e||(0,o.J0)(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||(0,o.J0)(!1),r.route.id}function R(){return O(k.UseNavigation).navigation}function _(){let{matches:e,loaderData:t}=O(k.UseMatches);return a.useMemo(()=>e.map(e=>(0,o.WS)(e,t)),[e,t])}function A(){var e;let t=a.useContext(f),r=O(k.UseRouteError),n=D(k.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}const L={},M=(e,t,r)=>{};function P(e,t){void 0===(null==e?void 0:e.v7_startTransition)&&M("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&void 0!==t.v7_relativeSplatPath||M("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&M("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&M("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&M("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&M("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function I(e){let{to:t,replace:r,state:n,relative:i}=e;h()||(0,o.J0)(!1);let{future:l,static:s}=a.useContext(u),{matches:c}=a.useContext(d),{pathname:f}=m(),p=y(),v=(0,o.pC)(t,(0,o.cm)(c,l.v7_relativeSplatPath),f,"path"===i),b=JSON.stringify(v);return a.useEffect(()=>p(JSON.parse(b),{replace:r,state:n,relative:i}),[p,b,i,r,n]),null}function j(e){return function(e){let t=a.useContext(d).outlet;return t?a.createElement(b.Provider,{value:e},t):t}(e.context)}function F(e){let{basename:t="/",children:r=null,location:n,navigationType:l=o.aU.Pop,navigator:s,static:d=!1,future:f}=e;h()&&(0,o.J0)(!1);let p=t.replace(/^\/*/,"/"),m=a.useMemo(()=>({basename:p,navigator:s,static:d,future:i({v7_relativeSplatPath:!1},f)}),[p,f,s,d]);"string"==typeof n&&(n=(0,o.cP)(n));let{pathname:v="/",search:y="",hash:b="",state:g=null,key:w="default"}=n,S=a.useMemo(()=>{let e=(0,o.Zn)(v,p);return null==e?null:{location:{pathname:e,search:y,hash:b,state:g,key:w},navigationType:l}},[p,v,y,b,g,w,l]);return null==S?null:a.createElement(u.Provider,{value:m},a.createElement(c.Provider,{children:r,value:S}))}function U(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function B(e,t){return(0,o.p7)({basename:null==t?void 0:t.basename,future:i({}
2,null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,o.PP)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:U,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}(n||(n=r.t(a,2))).startTransition,new Promise(()=>{}),a.Component},80631:function(e,t){"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(e,t,n){var a=null;if(void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),"key"in t)for(var o in n={},t)"key"!==o&&(n[o]=t[o]);else n=t;return t=n.ref,{$$typeof:r,type:e,key:a,ref:void 0!==t?t:null,props:n}}t.Fragment=n,t.jsx=a,t.jsxs=a},85893:function(e,t,r){"use strict";e.exports=r(80631)},95766:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var n,a=r(38585),o=r(67294),i=r(53991),l=r(75743),s=r(81382),u=r(93061),c=r(24143),d=r(23518),f=r(21093),p=r(81437),h=r(31033),m=r(28108),v=r(94184),y=r.n(v),b=r(5008),g=r(52504),w=r(3864),S=r(58221),E=r(29922),N="west-ui-traveller-edit-field--overflow",T=({onClick:e,value:t,label:r,className:n,...a})=>{const{t:i}=(0,E.$)(),l={ariaLabels:{edit:i("west-ui.journey-widget.traveller-edit-field.aria-label.edit-travellers")}},s=o.createElement("span",{className:"west-ui-traveller-edit-field--value"},t);return o.createElement("div",{className:y()("west-ui-traveller-edit-field--container",N),onClick:e,...a},o.createElement(S.Z,{className:y()("west-ui-traveller-edit-field--content",n),label:r,value:s,contentClassName:N,onClick:e,icon:{icon:"sliders","aria-label":l.ariaLabels.edit,variant:"text",color:"black",style:"regular",iconClassName:"west-ui-traveller-edit-field--button"}}))},x=r(92609),C=r(34620),k=r(72429),O=r(43109),D=r(31567),R=r(85266),_="west-ui-journey-widget--expanded",A="west-ui-journey-widget--with-return";!function(e){e.OneWay="one-way",e.RoundTrip="round-trip"}(n||(n={}));var L=({fromList:e,toList:t,from:r,to:a,className:i,formClassName:l,dateOutward:s,dateReturn:u,travellers:c,formErrors:d,onFromChange:f,onToChange:p,onDateChange:h,onSearch:m,onStationsSwap:v,onTravellerChange:S,minDate:N=new Date,maxDate:L=new Date((0,b.C7)()),validDates:M,expanded:P=!1,showButton:I=!0,disableButton:j=!1,...F})=>{var U;const{t:B}=(0,E.$)(),H=u instanceof Date,[Z,W]=(0,o.useState)(H),[z,$]=(0,o.useState)(P),[G,V]=(0,o.useState)(!1),[q,K]=(0,o.useState)(c),Y={label:B("west-ui.journey-widget.one-way"),"data-testid":"trip-single"},J={label:B("west-ui.journey-widget.round-trip"),"data-testid":"trip-return"};(0,o.useEffect)(()=>{K(c)},[c]),(0,o.useEffect)(()=>{W(H)},[H]);const X=()=>{W(!1),null==h||h(null!=s?s:null,void 0)},Q=()=>{W(!0)},ee=()=>{V(!1),null==S||S(q)},te=[(null==q?void 0:q.adults)?`${q.adults} ${B("west-ui.journey-widget.value.adult",{count:q.adults})}`:null,(null==q?void 0:q.children)?`${q.children} ${B("west-ui.journey-widget.value.child",{count:q.children})}`:null,(null==q?void 0:q.carers)?`${q.carers} ${B("west-ui.journey-widget.value.carer",{count:q.carers})}`:null,(null==q?void 0:q.wheelchairs)?`${q.wheelchairs} ${B("west-ui.journey-widget.value.wheelchair",{count:q.wheelchairs})}`:null,(null==q?void 0:q.bikes)?`${q.bikes} ${B("west-ui.journey-widget.value.bike",{count:q.bikes})}`:null,(null==q?void 0:q.pets)?`${q.pets} ${B("west-ui.journey-widget.value.pet",{count:q.pets})}`:null].filter(Boolean).join(", "),re="journey-widget";return o.createElement("div",{...F,className:y()("west-ui-journey-widget--wrapper",i)},o.createElement("div",{className:y()("west-ui-journey-widget--container",{[_]:z,[A]:Z},l),"data-testid":re,id:re},o.createElement(O.Z,{preselected:Z?1:0,className:"west-ui-journey-widget--directions-tabbar",tabs:[{...Y,onClick:X},{...J,onClick:Q}]}),o.createElement(C.Z,{name:"journey",legend:B("west-ui.journey-widget.aria-label.select-journey-type"),className:"west-ui-journey-widget--directions-radio",value:Z?n.RoundTrip:n.OneWay,inline:!0,onChange:e=>{e.target.value===n.RoundTrip?Q():X()}},o.createElement(x.Z,{...Y,value:n.OneWay}),o.createElement(x.Z,{...J,value:n.RoundTrip})),o.createElement(k.Z,{className:"west-ui-journey-widget--stations-selector",from:r,to:a,fromList:e,toList:t,formErrors:d,onFromChange:f,onToChange:p,onStationsSwap:v,onExpand:()=>{$(!0)}}),o.createElement(w.Z,{dates:s,minDate:N,maxDate:L,validDates:M,onChange:e=>{null==h||h(e,u)},className:"west-ui-journey-widget--date-outward",alignCalendar:Z?"left":"right",borderless:!0,showChevron:!1,label:B("west-ui.journey-widget.label.outward-date"),error:!(s instanceof Date),"data-testid":"select-date"}),Z&&o.createElement(w.Z,{dates:u,referenceStartDate:s,defaultActiveStartDate:null!=u?u:s,minDate:new Date(Math.max(null!==(U=null==s?void 0:s.getTime())&&void 0!==U?U:0,N.getTime())),maxDate:L,validDates:M,onChange:e=>{null==h||h(s,e)},className:"west-ui-journey-widget--date-return",alignCalendar:"right",borderless:!0,showChevron:!1,label:B("west-ui.journey-widget.label.return-date"),"data-testid":"select-date-return"}),o.createElement(T,{label:B("west-ui.journey-widget.label.travellers"),value:te,onClick:()=>{V(!0)},className:"west-ui-journey-widget--travellers","data-testid":"travellers-options"}),!!I&&o.createElement(g.Z,{className:"west-ui-journey-widget--button",onClick:m,disabled:j,fit:!0,label:B("west-ui.journey-widget.button.label.search")})),o.createElement(R.Z,{show:G,onClose:ee,keepChildrenMounted:!0},o.createElement(D.Z,{onClose:ee,onChange:e=>{K({...q,...e})},...q,"data-testid":"journey-widget-modal"})))}
2,M=r(2639),P=r(55475),I=(0,a.Pi)(({expanded:e=!0,startJourney:t=!1,showGroupTicket:r=!0,widget:n=L,onSearch:a,typeableFields:v=!1,notesSection:y,minAdults:b,getMaxAdults:g,minChildren:w,minPets:S,minBikes:E,minWheelchairs:N,minCarers:T,maxAdults:x,maxChildren:C,maxPets:k,maxBikes:O,maxWheelchairs:D,maxCarers:R,content:_,labels:A={},...I})=>{const{t:j}=(0,p.$)(),{formStore:F}=(0,i.mZ)(),U=(0,o.useCallback)(({children:e,pets:t},n)=>{if(!1===r)return null;const a=(0,m.bW)((0,d.Qg)(F,6,e,t)).toString();return o.createElement("div",{className:P.Z.groupContainer},o.createElement("p",null,j("client.containers.journey-container.for-6-or-more-travellers-please-book-a-group-ticket")),o.createElement(M.Z,{ref:n,className:P.Z.groupButton,href:`${h.u.generateUrl("groupTicket")}?${a}`,label:j("client.containers.journey-container.book-group-ticket"),variant:"secondary",size:"small","data-testid":"book-group"}))},[F,j,r]),B=(0,o.useCallback)(()=>{const{stations:e}=F;e.virtual.resolutions.length&&(0,s.sT)(e.virtual.resolutions.map(({virtualStationId:t,resolvedStationId:r})=>{var n,a;return{virtualName:(0,u.s9)(null!==(n=e.getStationName(t))&&void 0!==n?n:"",e.virtual.suffix),resolvedName:null!==(a=e.getStationName(r))&&void 0!==a?a:""}}));const t=(0,m.bW)((0,d.C3)(F)).toString();(0,m.ju)((0,f.Gs)(`${f.Hb.timetable}?${t}`))},[F]),H=!(!F.stations.from||!F.stations.to);return o.createElement(n,{fromList:F.stations.virtual.fromList,toList:F.stations.virtual.toList,from:F.stations.from,to:F.stations.to,dateOutward:F.outward.date,dateReturn:F.return.date,onFromChange:F.stations.setStationFrom,onToChange:F.stations.setStationTo,onDateChange:F.setDates,onStationsSwap:F.stations.swapStations,expanded:e||H,showButton:t,disableButton:!(0,c.qF)({formStore:F}),onSearch:null!=a?a:B,travellers:{adults:F.outward.quantityAdults,children:F.outward.quantityChildren,wheelchairs:F.outward.quantityPRM,pets:F.outward.quantityPets,bikes:F.outward.quantityBikes,carers:F.outward.quantityCarers,groupTicket:U,notesSection:y,minAdults:b,getMaxAdults:g,minChildren:w,minPets:S,minBikes:E,minWheelchairs:N,minCarers:T,maxAdults:x,maxChildren:C,maxPets:k,maxBikes:O,maxWheelchairs:D,maxCarers:R,typeableFields:v,content:_,labels:{...A.travellersTitle?{title:A.travellersTitle}:{}}},onTravellerChange:e=>{var t,r,n,a,o,i,s,u,c,d,f,p;const h=[],m=[];for(let n=0;n<e.adults;n++){const e=null!==(t=F.outward.adults[n])&&void 0!==t?t:new l.gp("adult");h.push(e);const a=null!==(r=F.return.adults[n])&&void 0!==r?r:new l.gp("adult");m.push(a)}for(let t=0;t<e.children;t++){const e=null!==(n=F.outward.children[t])&&void 0!==n?n:new l.gp("child");h.push(e);const r=null!==(a=F.return.children[t])&&void 0!==a?a:new l.gp("child");m.push(r)}for(let t=0;t<e.pets;t++){const e=null!==(o=F.outward.pets[t])&&void 0!==o?o:new l.gp("pet");h.push(e);const r=null!==(i=F.return.pets[t])&&void 0!==i?i:new l.gp("pet");m.push(r)}for(let t=0;t<e.bikes;t++){const e=null!==(s=F.outward.bikes[t])&&void 0!==s?s:new l.gp("bike");h.push(e);const r=null!==(u=F.return.bikes[t])&&void 0!==u?u:new l.gp("bike");m.push(r)}for(let t=0;t<e.wheelchairs;t++){const e=null!==(c=F.outward.prm[t])&&void 0!==c?c:new l.gp("prm");h.push(e);const r=null!==(d=F.return.prm[t])&&void 0!==d?d:new l.gp("prm");m.push(r)}for(let t=0;t<e.carers;t++){const e=null!==(f=F.outward.carers[t])&&void 0!==f?f:new l.gp("carer");h.push(e);const r=null!==(p=F.return.carers[t])&&void 0!==p?p:new l.gp("carer");m.push(r)}F.outward.setTravellers(...h),F.return.setTravellers(...m)},minDate:F.outward.minDate,maxDate:F.outward.maxDate,validDates:F.outward.validDates,formErrors:F.stations.connectionFormErrors,...I})})},1579:function(e,t,r){"use strict";r.r(t),r.d(t,{STORE_CONTEXT:function(){return I},init:function(){return F},useRootStores:function(){return j}});var n=r(38585),a=r(67294),o=r(20745),i=r(25296),l=r(53991),s=r(19910),u=r(14846),c=r(95766),d=r(94184),f=r.n(d);const p={heroSlides:{items:[]},quickLinks:{items:[]}},h=(0,a.createContext)(p);var m=r(21731),v=r(42791),y=r(2639),b=({buttons:e,className:t,...r})=>a.createElement("div",{...r,className:f()("west-ui-quick-actions--container",t)},e.map(({label:e,...t},r)=>a.createElement(y.Z,{label:a.createElement(v.Z,{text:e}),...t,key:r,className:f()("west-ui-quick-actions--button",t.className),size:"small"}))),g=()=>{const{quickLinks:e}=(0,a.useContext)(h),t=e.items.map(e=>({label:e.title,icon:e.icon,href:e.link})),r=e.content;return a.createElement("div",{className:f()("client-quick-actions-container--container--dyq-la")},a.createElement("div",{className:"client-quick-actions-container--content-container--g-nsd-j"},!!r&&a.createElement(a.Fragment,null,a.createElement(m.Z,{tag:"h2",size:"xxl"},r.title),a.createElement("div",{className:"client-quick-actions-container--content--br3b-k",dangerouslySetInnerHTML:{__html:r.content}}))),!!t.length&&a.createElement(b,{className:"client-quick-actions-container--actions-container--4q-u-k",buttons:t}))},w=r(81437),S=r(74228),E=r(24162),N=r(44423);const T=(0,a.forwardRef)(({image:e,title:t,subtitle:r,button:n,className:o,...i},l)=>{const s={...e};return s.placeholder||(s.placeholder=s.default),s.mobile||(s.mobile=s.default),a.createElement("div",{...i,ref:l,className:f()("west-ui-hero--container",o),style:{backgroundImage:`url(${s.placeholder})`}},a.createElement("picture",null,a.createElement("source",{media:`(max-width: ${N.w-1}px)`,srcSet:s.mobile}),a.createElement("source",{media:`(min-width: ${N.w}px)`,srcSet:s.default}),a.createElement("img",{alt:t,src:s.placeholder,onLoad:e=>{e.currentTarget.style.opacity="1"}})),t&&a.createElement("h2",null,t),r&&a.createElement("h3",null,r),n&&a.createElement(y.Z,{...n,className:"west-ui-hero--button",variant:"secondary",size:"medium",color:"white"}))});T.displayName="Hero";var x=T,C=r(37058),k="west-ui-hero-slider--navigation",O="west-ui-hero-slider--active",D=({slides:e,autoPlay:t,className:r,...n})=>{const[o,i]=a.useState(0),l=a.useRef(0),s=a.useRef([]),u=(0,a.useRef)(null),c="number"==typeof t?t:7e3,d=(0,E.Z)("--white-100-50"),p=(0,E.Z)("--primary-white");(0,a.useEffect)(()=>{let r=null;return t&&(r=setTimeout(()=>{h(o===e.length-1?0:o+1)},c)),()=>{r&&clearTimeout(r)}},[o,t]);const h=e=>{i(e),l.current=e};return a.createElement("div",{...n,className:f()("west-ui-hero-slider--container",r)},a.createElement("div",{className:"west-ui-hero-slider--slides",onTouchStart:e=>{u.current=e.changedTouches[0].clientX},onTouchEnd:t=>{u.current>t.changedTouches[0].clientX+50&&h(o===e.length-1?0:o+1),u.current<t.changedTouches[0].clientX-50&&h(0===o?e.length-1:o-1)}},a.createElement("div",{className:"west-ui-hero-slider--slides-container",style:{transform:`translate3D(-${100*o}%, 0, 0)`}}
2,e.map(({navLabel:e,...t},r)=>a.createElement(x,{key:r,ref:e=>{s.current[r]=e},className:"west-ui-hero-slider--slide",id:`slide-${r}`,...t})))),a.createElement("div",{className:f()(k,"west-ui-hero-slider--desktop")},e.map((e,t)=>a.createElement("a",{key:t,className:f()("west-ui-hero-slider--link",{[O]:t===o}),onClick:()=>{h(t)}},a.createElement(C.Z,{className:"west-ui-hero-slider--progress-bar",backgroundColor:d,barColor:p,autoPlayDuration:t===o?c:0}),a.createElement("span",null,e.navLabel||e.subtitle)))),a.createElement("div",{className:f()(k,"west-ui-hero-slider--mobile")},a.createElement("div",{className:"west-ui-hero-slider--pagination"},e.map((e,t)=>a.createElement("i",{key:t,className:f()("west-ui-hero-slider--item",{[O]:t===o})})))))},R=()=>{const{heroSlides:e}=(0,a.useContext)(h),{t:t}=(0,w.$)(),r=e.items.map(e=>({title:e.title,subtitle:e.content,navLabel:e.subtitle,image:e.image,button:e.link?{label:e.linkLabel||e.title,href:e.link}:void 0}));return a.createElement("div",{className:"client-homepage--container--3rxh-k"},a.createElement(m.Z,{tag:"h1",className:S.Z.srOnly},t("client.homepage.title")),a.createElement("div",{className:"column-content"},a.createElement(c.Z,{className:"client-homepage--journey--ef-zp-l",expanded:!1,startJourney:!0})),!!r.length&&a.createElement(D,{className:"client-homepage--hero--rvko-y",autoPlay:!u.default.snapshotMode,slides:r}),a.createElement(g,null))},_=r(67600),A=r(77591),L=r(17261),M=r(39917),P=r(97914);const I="homepage-journey",j=()=>(0,l.mZ)(I);function F(e){var t;(0,A.Ov)(e.app);const r=new _.Z(e),u={uiStore:s.default,formStore:r};(0,l.bW)(u,I),(0,i.R)(u),r.init();const c=null!==(t=e.pageContent)&&void 0!==t?t:p;(0,o.createRoot)(document.getElementById("ticketshop-widget")).render(a.createElement(a.StrictMode,null,a.createElement(n.zt,{...u},a.createElement(l.ZH,{value:I},a.createElement(M.N,null,a.createElement(L.h,{root:(0,P.K)(),top:"#header"}),a.createElement(h.Provider,{value:c},a.createElement(R,null)))))))}},67600:function(e,t,r){"use strict";r.d(t,{G:function(){return c},Z:function(){return d}});var n=r(68949),a=r(29981),o=r(97638),i=r(23036),l=r(5008),s=r(88467),u=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i};const c="journey-widget";class d{constructor(e,{stations:t,memberships:r=new a.Z}={}){var s;this.disposers=[],this.setStationFrom=e=>this.stations.setStationFrom(e),this.setStationTo=e=>this.stations.setStationTo(e),this.setDateOutward=e=>this.outward.setDate(e),this.setDateReturn=e=>this.return.setDate(e),this.setDates=(e,t)=>{this.outward.setDate(e),this.return.setDate(t)},(0,n.makeObservable)(this),this.stations=t||new i.Z({stations:e.stations,from:e.station_from,to:e.station_to,connectionMap:e.connectionMap,redirectStations:e.redirectStations,metaStationProhibited:!!e.metaStationProhibited,metaStationRequired:!!e.metaStationRequired,virtualStations:e.virtualStations,resolveVirtualOnSelection:!1}),this.memberships=r,this.outward=new o.Z({date:null!==(s=e.dateOutward)&&void 0!==s?s:(0,l.zO)(),maxDate:(0,l.sG)(e.maxDate)}),this.return=new o.Z({maxDate:(0,l.sG)(e.maxDate)}),this.setData(e)}destroy(){this.disposers.forEach(e=>e())}
2async init(){}get stid1(){return this.stations.from}get stid2(){return this.stations.to}setData(e){(0,s.HH)(null==e?void 0:e.preferred_membership)&&(this.memberships.setPreferredMembership(e.preferred_membership),this.memberships.setPreferredOverride(!0))}}u([n.computed],d.prototype,"stid1",null),u([n.computed],d.prototype,"stid2",null)},24143:function(e,t,r){"use strict";r.d(t,{$N:function(){return _},$Q:function(){return R},AU:function(){return l},Aw:function(){return D},Cg:function(){return i},DB:function(){return y},Dz:function(){return k},FM:function(){return E},FV:function(){return h},Ox:function(){return o},R$:function(){return N},T$:function(){return u},Tb:function(){return s},cN:function(){return p},dp:function(){return T},fs:function(){return m},h_:function(){return g},hc:function(){return S},hl:function(){return v},j2:function(){return a},mw:function(){return b},qF:function(){return f},sB:function(){return c},vV:function(){return x}});var n=r(34139);const a=(0,n.xD)(({basketStore:e})=>e.clearedOnError,({basketStore:e})=>e.isLoading),o=(0,n.xD)(({formStore:e})=>!!e.stations.from,({formStore:e})=>!!e.stations.to),i=(0,n.xD)(o,({formStore:e})=>!e.stations.hasAnyError),l=({formStore:e})=>e.outward.date instanceof Date,s=({formStore:e})=>e.return.date instanceof Date,u=({formStore:e})=>{var t;return!!e.outward.trid&&!!(null===(t=e.trainOutward)||void 0===t?void 0:t.departure)&&!!e.outward.coachClass},c=({formStore:e})=>{var t;return!!e.return.trid&&!!(null===(t=e.trainReturn)||void 0===t?void 0:t.departure)&&!!e.return.coachClass},d=(0,n.or)(({formStore:e})=>e.outward.quantityAdults>0,({formStore:e})=>e.outward.quantityChildren>0,({formStore:e})=>e.outward.quantityPets>0),f=(0,n.xD)(o,({formStore:e})=>!e.stations.virtual.hasUnresolvableSelection,l,d),p=({formStore:e})=>{var t;return!(null===(t=e.trainOutward)||void 0===t?void 0:t.sev)||e.trainOutwardReservableTariffs.length>0},h=({formStore:e})=>{var t;return!(null===(t=e.trainReturn)||void 0===t?void 0:t.sev)||e.trainReturnReservableTariffs.length>0},m=(0,n.xD)(i,u,l,({formStore:e})=>void 0!==e.outward.coachClass,d,({formStore:e})=>e.outward.validTravellers.length>0),v=(0,n.or)(({trainsOutward:e})=>!!(null==e?void 0:e.isLoading),({trainsReturn:e})=>!!(null==e?void 0:e.isLoading)),y=(0,n.xD)(({formStore:e})=>e.outward.allTravellersHaveTariffSelected),b=(0,n.xD)(({formStore:e})=>e.return.allTravellersHaveTariffSelected),g=y,w=["standard","comfort","first"],S=e=>w.includes(e),E=(0,n.xD)(({formStore:e})=>e.outward.allTravellersHaveTariffSelected,(0,n.or)(({formStore:e})=>e.trainOutwardReservableTariffs.includes("standard"),({formStore:e})=>e.trainOutwardReservableTariffs.includes("ktoe"),({formStore:e})=>e.trainOutwardReservableTariffs.includes("superpreis"),({formStore:e})=>e.trainOutwardReservableTariffs.includes("rsv"))),N=(0,n.xD)(({formStore:e})=>e.trainOutwardTariffs.length>0||e.partiallySupportedOutwardTariffsList.length>0),T=(0,n.xD)(({formStore:e})=>e.return.allTravellersHaveTariffSelected,(0,n.or)(({formStore:e})=>e.trainReturnReservableTariffs.includes("standard"),({formStore:e})=>e.trainReturnReservableTariffs.includes("ktoe"),({formStore:e})=>e.trainReturnReservableTariffs.includes("superpreis"),({formStore:e})=>e.trainReturnReservableTariffs.includes("rsv"))),x=(0,n.xD)(({formStore:e})=>e.trainReturnTariffs.length>0||e.partiallySupportedReturnTariffsList.length>0),C=({formStore:e})=>{var t;return!!(null===(t=e.trainOutward)||void 0===t?void 0:t.lmr)},k=({formStore:e})=>C({formStore:e})&&"standard"===e.outward.coachClass&&(e.outward.lmrAccepted||e.outward.lmrForced),O=({formStore:e})=>{var t;return!!(null===(t=e.trainReturn)||void 0===t?void 0:t.lmr)},D=({formStore:e})=>O({formStore:e})&&"standard"===e.return.coachClass&&(e.return.lmrAccepted||e.return.lmrForced),R=(0,n.xD)(E,({formStore:e})=>!!e.outward.trid,(0,n.or)(({formStore:e})=>!C({formStore:e}),({formStore:e})=>{var t;return!!(null===(t=e.trainOutward)||void 0===t?void 0:t.lmr)&&"standard"!==e.outward.coachClass},k,({formStore:e})=>e.outward.hasKtoeTariffOnly)),_=(0,n.xD)(T,({formStore:e})=>!!e.return.trid,(0,n.or)(({formStore:e})=>!O({formStore:e}),({formStore:e})=>{var t;return!!(null===(t=e.trainReturn)||void 0===t?void 0:t.lmr)&&"standard"!==e.return.coachClass},D,({formStore:e})=>e.return.hasKtoeTariffOnly))},97638:function(e,t,r){"use strict";var n=r(68949),a=r(55836),o=r(75743),i=r(74663),l=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i};const s={maxAdults:void 0,maxChildren:void 0,maxPets:void 0,maxBikes:void 0,maxWheelchairs:void 0,maxCarers:void 0,minAdults:void 0,minChildren:void 0,minPets:void 0,minBikes:void 0,minWheelchairs:void 0,minCarers:void 0};class u{constructor(e,t=new o.gp("adult")){this.trid=void 0,this.coachClass=void 0,this.date=void 0,this.minDate=void 0,this.maxDate=void 0,this.validDates=void 0,this.price=void 0,this.lmrAccepted=!1,this.lmrForced=!1,this.travellerSettings=(0,n.observable)(s),this.travellers=n.observable.array(),this.alwaysSupportedTariffs=n.observable.array(["child","infant","carer"]),this.setCoachClass=e
2=>this.setOptions({coachClass:e}),this.setDate=e=>this.setOptions({date:e,trid:void 0,lmrAccepted:!1}),this.setTrid=e=>this.setOptions({trid:e,lmrAccepted:!1}),this.setLmrAccepted=e=>this.setOptions({lmrAccepted:e}),this.setLmrForced=e=>this.setOptions({lmrForced:e}),this.setOptions(e||{}),t&&this.addTravellers(t),(0,n.makeObservable)(this)}setOptions(e){void 0!==e.travellerSettings&&(this.setTravellerSettings(e.travellerSettings),delete e.travellerSettings),void 0!==e.alwaysSupportedTariffs&&this.setAlwaysSupportedTariffs(e.alwaysSupportedTariffs);for(const[t,r]of Object.entries(e))this[t]=r}setTravellerSettings(e){for(const t of Object.keys(this.travellerSettings))void 0!==e[t]&&(this.travellerSettings[t]=e[t])}addTravellers(...e){this.travellers.push(...e)}addTravellersByType(e,t){this.travellers.push(...Array.from({length:t},()=>new o.gp(e)))}addEmptyTraveller(){const e=[...this.travellers.values()][0];this.travellers.push(new o.gp((null==e?void 0:e.type)||"adult"))}clearTravellers(){this.travellers.clear()}removeTravellers(...e){for(const t of e)this.travellers.remove(t)}setTravellers(...e){this.travellers.replace(e)}clearTrain(){this.trid=void 0}clearTrainOptions(){this.clearTrain(),this.coachClass=void 0;for(const e of this.travellers)e.clearOptions()}clearTravellersKlimatickets(){this.travellers.forEach(e=>e.clearKtoe())}get adults(){return this.travellers.filter(e=>e.isAdult)}get children(){return this.travellers.filter(e=>e.isChild)}get pets(){return this.travellers.filter(e=>e.isPet)}get prm(){return this.travellers.filter(e=>e.isPRM)}get bikes(){return this.travellers.filter(e=>e.isBike)}get carers(){return this.travellers.filter(e=>e.isCarer)}get childrenBookable(){return this.children.filter(e=>e.isBookable)}get bookableTravellers(){return this.travellers.filter(e=>e.isBookable)}get validTravellers(){return this.bookableTravellers.filter(e=>void 0!==e.tariff)}get invalidTravellers(){return this.travellers.filter(e=>!e.isValid)}get allTravellersHaveTariffSelected(){return 0===this.invalidTravellers.length}get firstInvalidTraveller(){return this.invalidTravellers.slice(0,1).shift()}get quantityAdults(){return this.adults.length}get quantityChildren(){return this.children.length}get quantityPets(){return this.pets.length}get quantityPRM(){return this.prm.length}get quantityBikes(){return this.bikes.length}get quantityCarers(){return this.carers.length}get mainTraveller(){return[...this.adults,...this.children,...this.pets,...this.bikes,...this.prm].shift()}get selectedMemberships(){return this.travellers.filter(e=>void 0!==e.membership&&e.membershipTermsAccepted).map(e=>e.membership)}supportedChildTariffs(e){if(!this.quantityChildren)return[];const t=[...e.filter(i.m7),...this.alwaysSupportedTariffs.filter(i.m7)];return this.selectedMemberships.includes("family")&&t.push("childFamily"),this.quantityAdults||t.pu
2sh("childNoAdult"),[...new Set(t)]}get hasKtoeTariffOnly(){return this.travellers.every(e=>(0,a.m)(e.tariff))}get hasBabyTariff(){return this.travellers.some(e=>"baby"===e.tariff)}setAlwaysSupportedTariffs(e){this.alwaysSupportedTariffs.replace(e)}}u.InvalidTariffs=["vor","steiermark","childSteiermark",void 0],l([n.observable],u.prototype,"trid",void 0),l([n.observable],u.prototype,"coachClass",void 0),l([n.observable],u.prototype,"date",void 0),l([n.observable],u.prototype,"minDate",void 0),l([n.observable],u.prototype,"maxDate",void 0),l([n.observable],u.prototype,"validDates",void 0),l([n.observable],u.prototype,"price",void 0),l([n.observable],u.prototype,"lmrAccepted",void 0),l([n.observable],u.prototype,"lmrForced",void 0),l([n.observable],u.prototype,"travellerSettings",void 0),l([n.observable],u.prototype,"travellers",void 0),l([n.observable],u.prototype,"alwaysSupportedTariffs",void 0),l([n.action],u.prototype,"setOptions",null),l([n.action],u.prototype,"setTravellerSettings",null),l([n.action],u.prototype,"addTravellers",null),l([n.action],u.prototype,"addTravellersByType",null),l([n.action],u.prototype,"addEmptyTraveller",null),l([n.action],u.prototype,"clearTravellers",null),l([n.action],u.prototype,"removeTravellers",null),l([n.action],u.prototype,"setTravellers",null),l([n.action.bound],u.prototype,"clearTrain",null),l([n.action.bound],u.prototype,"clearTrainOptions",null),l([n.action.bound],u.prototype,"clearTravellersKlimatickets",null),l([n.c
2omputed],u.prototype,"adults",null),l([n.computed],u.prototype,"children",null),l([n.computed],u.prototype,"pets",null),l([n.computed],u.prototype,"prm",null),l([n.computed],u.prototype,"bikes",null),l([n.computed],u.prototype,"carers",null),l([n.computed],u.prototype,"childrenBookable",null),l([n.computed],u.prototype,"bookableTravellers",null),l([n.computed],u.prototype,"validTravellers",null),l([n.computed],u.prototype,"invalidTravellers",null),l([n.computed],u.prototype,"allTravellersHaveTariffSelected",null),l([n.computed],u.prototype,"firstInvalidTraveller",null),l([n.computed],u.prototype,"quantityAdults",null),l([n.computed],u.prototype,"quantityChildren",null),l([n.computed],u.prototype,"quantityPets",null),l([n.computed],u.prototype,"quantityPRM",null),l([n.computed],u.prototype,"quantityBikes",null),l([n.computed],u.prototype,"quantityCarers",null),l([n.computed],u.prototype,"mainTraveller",null),l([n.computed],u.prototype,"selectedMemberships",null),l([n.computed],u.prototype,"hasKtoeTariffOnly",null),l([n.c
2omputed],u.prototype,"hasBabyTariff",null),t.Z=u},23036:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(68949),a=r(93061),o=r(81437),i=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i};class l{constructor(e){this.parent=e,this.configs=[],this.stationChangesToAnnounce=n.observable.array([]),(0,n.makeObservable)(this)}setConfigs(e){this.configs=e}recordNotice(e){this.stationChangesToAnnounce.replace(e.map(({virtualStationId:e,resolvedStationId:t})=>{var r,n;return{virtualName:(0,a.s9)(null!==(r=this.parent.getStationName(e))&&void 0!==r?r:"",this.suffix),resolvedName:null!==(n=this.parent.getStationName(t))&&void 0!==n?n:""}}))}clearNotice(){this.stationChangesToAnnounce.clear()}isVirtualStation(e){return this.configs.some(t=>t.id===e)}get hasVirtualStationSelected(){return this.isVirtualStation(this.parent.from)||this.isVirtualStation(this.parent.to)}get resolutions(){return(0,a.Uk)({from:this.parent.from,to:this.parent.to,virtualStations:this.configs})}get resolvedFrom(){return this.getResolvedStation("from",this.parent.from)}get resolvedTo(){return this.getResolvedStation("to",this.parent.to)}get resolvedFromSymbol(){return this.getConcreteSymbol(this.resolvedFrom)}get resolvedToSymbol(){return this.getConcreteSymbol(this.resolvedTo)}get hasUnresolvableSelection(){return this.isVirtualStation(this.resolvedFrom)||this.isVirtualStation(this.resolvedTo)}get fromList(){return this.decorateList(this.parent.fromListWithSupportedConnections,"from")}get toList(){return this.decorateList(this.parent.toListWithSupportedConnections,"to")}get suffix(){return(0,o.t)("client.containers.journey-container.virtual-stations.suffix")}decorateList(e,t){return(0,a.ld)(e,{virtualStations:this.configs,from:this.parent.from,to:this.parent.to},t,this.suffix)}getResolvedStation(e,t){var r;const n=this.resolutions.find(t=>t.direction===e);return null!==(r=null==n?void 0:n.resolvedStationId)&&void 0!==r?r:t}getConcreteSymbol(e){var t,r;return!e||this.isVirtualStation(e)?"":null!==(r=null===(t=this.parent.stations.get(e))||void 0===t?void 0:t.symbol)&&void 0!==r?r:""}}i([n.observable],l.prototype,"configs",void 0),i([n.observable],l.prototype,"stationChangesToAnnounce",void 0),i([n.action.bound],l.prototype,"setConfigs",null),i([n.action],l.prototype,"recordNotice",null),i([n.action.bound],l.prototype,"clearNotice",null),i([n.computed],l.prototype,"hasVirtualStationSelected",null),i([n.computed],l.prototype,"resolutions",null),i([n.computed],l.prototype,"resolvedFrom",null),i([n.computed],l.prototype,"resolvedTo",null),i([n.computed],l.prototype,"resolvedFromSymbol",null),i([n.computed],l.prototype,"resolvedToSymbol",null),i([n.computed],l.prototype,"hasUnresolvableSelection",null),i([n.computed],l.prototype,"fromList",null),i([n.computed],l.prototype,"toList",null);var s,u=l,c=r(3030),d=r(24818),f=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i};!function(e){e.COMBINATION_NOT_IN_CONNECTION_MAP="COMBINATION_NOT_IN_CONNECTION_MAP"}(s||(s={}));class p{constructor(e){this.from=0,this.to=0,this.stations=n.observable.map(),this.connectionMap={},this.redirectStations={},this.metaStationProhibited=!1,this.metaStationRequired=!1,this.virtual=new u(this),this.resolveVirtualOnSelection=!0,(0,n.makeObservable)(this),e&&this.setData(e)}get fromList(){return this.getStationsStructured(this.getStationsMap(this.to))}get toList(){return this.getStationsStructured(this.getStationsMap(this.from))}get validList(){return this.getStationsStructured(this.stationsActive)}get valid(){return!!this.from&&!!this.to}get isGermanySelected(){var e,t;return Boolean((null===(e=this.fromStation)||void 0===e?void 0:e.isGerman)||(null===(t=this.toStation)||void 0===t?void 0:t.isGerman))}
2get stationsActive(){return this.getStationsPresentInConnectionMap()}get fromListWithAllConnections(){return this.getStationsStructured(new Map([...this.stationsActive].filter(([,e])=>e.id!==this.to)))}get fromListWithSupportedConnections(){var e,t;const r=null!==(t=null===(e=this.connectionMap)||void 0===e?void 0:e[this.to])&&void 0!==t?t:[];return this.getStationsStructured(new Map([...this.stationsActive].map(([e,t])=>[e,{...t,invalid:this.to&&!r.includes(e),skip:e===this.to||t.skip}])))}get toListWithAllConnections(){return this.getStationsStructured(new Map([...this.stationsActive].filter(([,e])=>e.id!==this.from)))}get toListWithSupportedConnections(){var e,t;const r=null!==(t=null===(e=this.connectionMap)||void 0===e?void 0:e[this.from])&&void 0!==t?t:[];return this.getStationsStructured(new Map([...this.stationsActive].map(([e,t])=>[e,{...t,invalid:this.from&&!r.includes(e),skip:e===this.from||t.skip}])))}get selectionErrors(){const e=[];return this.from&&this.to&&(this.areStationsSupported(this.from,this.to)||e.push(s.COMBINATION_NOT_IN_CONNECTION_MAP)),e}get hasAnyError(){return this.selectionErrors.length>0}get connectionFormErrors(){if(!this.hasError(s.COMBINATION_NOT_IN_CONNECTION_MAP))return{};const e=(0,o.t)("client.stations-store.connection-combination-error");return(0,d.Jb)(this.from,this.to)||(0,d.vr)(this.from,this.to)?{from:e}:{to:e}}getStationBySymbol(e){const t=[...this.stations].find(([,t])=>t.symbol===e);return t?t[1]:void 0}getStationsMap(e=0){return new Map([...this.stationsActive].map(([t,r])=>[t,{...r,skip:e===t||r.skip}]))}getStationsPresentInConnectionMap(){return new Map([...this.stations].map(([e,t])=>[e,{...t,skip:!this.isStationInConnectionMap(e)}]))}isStationInConnectionMap(e){return!!this.connectionMap[e]||Object.values(this.connectionMap).some(t=>t.includes(e))}getStationsStructured(e){const t=new Map,r={};for(const[n,a]of e)a.children=new Map,r[n]=a,t.set(n,a);for(const[,e]of t){if(e.parentId&&void 0===r[e.parentId])throw Error("Missing parentId from connection map: "+e.parentId);!e.skip&&e.parentId&&r[e.parentId].skip&&(r[e.parentId].skip=!1,r[e.parentId].disabled=!0)}for(const[e,n]of t)if(n.skip)t.delete(e);else if(this.isMetaStationSelectable(n)||(n.disabled=!0),n.parentId){if(void 0===r[n.parentId])throw Error("Missing parentId: "+n.parentId);r[n.parentId].children.set(e,n),t.delete(e)}return t}areStationsSupported(e,t){return!!this.connectionMap[e]&&this.connectionMap[e].includes(t)}hasError(e){return this.selectionErrors.includes(e)}get fromName(){var e,t;return this.from&&null!==(t=null===(e=this.stations.get(this.from))||void 0===e?void 0:e.name)&&void 0!==t?t:""}get fromSymbol(){var e,t;return this.from&&null!==(t=null===(e=this.stations.get(this.from))||void 0===e?void 0:e.symbol)&&void 0!==t?t:""}get toName(){var e,t;return this.to&&null!==(t=null===(e=this.stations.get(this.to))||void 0===e?void 0:e.name)&&void 0!==t?t:""}get toSymbol(){var e,t;return this.to&&null!==(t=null===(e=this.stations.get(this.to))||void 0===e?void 0:e.symbol)&&void 0!==t?t:""}get fromStation(){var e;return this.from&&null!==(e=this.stations.get(this.from))&&void 0!==e?e:null}get toStation(){var e;return this.to&&null!==(e=this.stations.get(this.to))&&void 0!==e?e:null}get areSelectedStationsValid(){const e=this.stations.get(this.from),t=this.stations.get(this.to);return!(!e||!t||this.virtual.hasVirtualStationSelected||!this.isMetaStationSelectable(e)||!this.isMetaStationSelectable(t)||!this.areStationsSupported(this.from,this.to))}get areSelectedStationsSupported(){return this.areStationsSupported(this.from,this.to)}setData(e){void 0!==e.resolveVirtualOnSelection&&(this.resolveVirtualOnSelection=e.resolveVirtualOnSelection),(null==e?void 0:e.stations)&&this.setStations(null==e?void 0:e.stations),(null==e?void 0:e.connectionMap)&&this.setConnectionMap(null==e?void 0:e.connectionMap),(null==e?void 0:e.redirectStations)&&this.setRedirectStations(null==e?void 0:e.redirectStations),(null==e?void 0:e.metaStationProhibited)&&this.setMetaStationProhibited(e.metaStationProhibited),e.metaStationRequired&&this.setMetaStationRequired(e.metaStationRequired),e.virtualStations&&this.virtual.setConfigs(e.virtualStations),e.from&&this.setStationFrom(e.from),e.to&&this.setStationTo(e.to)}setStations(e){this.stations.clear();for(const t of e){const e=new c.Z(t);this.stations.set(e.id,e)}}setConnectionMap(e){this.connectionMap=e}setRedirectStations(e){this.redirectStations=e}swapStations(){const e=this.from;this.from=this.to,this.to=e}setStationFrom(e){const t=parseInt(`${e||0}`,10);return!this.checkRedirect(t,"from")&&(this.from=t,this.resolveVirtualSelection(),!0)}setFromStationSymbol(e){const t=this.getStationBySymbol(e);
2return!!t&&this.setStationFrom(t.id)}setStationTo(e){const t=parseInt(`${e||0}`,10);return!this.checkRedirect(t,"from")&&(this.to=t,this.resolveVirtualSelection(),!0)}resolveVirtualSelection(){if(!this.resolveVirtualOnSelection)return;const e=this.virtual.resolutions;if(e.length){this.virtual.recordNotice(e);for(const t of e)"from"===t.direction&&(this.from=t.resolvedStationId),"to"===t.direction&&(this.to=t.resolvedStationId)}}setToStationSymbol(e){const t=this.getStationBySymbol(e);return!!t&&this.setStationTo(t.id)}setMetaStationProhibited(e){this.metaStationProhibited=e}setMetaStationRequired(e){this.metaStationRequired=e}checkRedirect(e,t){return!!(0,n.has)(this.redirectStations,e.toString())&&(location.href=this.redirectStations[e]+t+"/"+e,!0)}isMetaStationSelectable(e){return!(this.metaStationProhibited&&!e.isSpecific||this.metaStationRequired&&e.isSpecific&&e.parentId)}getShortname(e){var t;return null===(t=this.stations.get(e))||void 0===t?void 0:t.shortname}getStationName(e){var t;return null===(t=this.stations.get(e))||void 0===t?void 0:t.name}getStationCoordinates(e){var t;const r=void 0===e||null===(t=this.stations.get(e))||void 0===t?void 0:t.location;if((null==r?void 0:r.latitude)&&r.longitude)return[r.latitude,r.longitude]}get isFromStationSubstation(){return!!this.fromStation&&!!this.fromStation.parentId}get isToStationSubstation(){return!!this.toStation&&!!this.toStation.parentId}clearMetaStations(){this.fromStation&&!this.fromStation.isSpecific&&this.setStationFrom(null),this.toStation&&!this.toStation.isSpecific&&this.setStationTo(null)}}f([n.observable],p.prototype,"from",void 0),f([n.observable],p.prototype,"to",void 0),f([n.observable],p.prototype,"stations",void 0),f([n.observable],p.prototype,"connectionMap",void 0),f([n.observable],p.prototype,"redirectStations",void 0),f([n.observable],p.prototype,"metaStationProhibited",void 0),f([n.observable],p.prototype,"metaStationRequired",void 0),f([n.computed],p.prototype,"fromList",null),f([n.computed],p.prototype,"toList",null),f([n.computed],p.prototype,"validList",null),f([n.computed],p.prototype,"valid",null),f([n.computed],p.prototype,"isGermanySelected",null),f([n.computed],p.prototype,"stationsActive",null),f([n.computed],p.prototype,"fromListWithAllConnections",null),f([n.computed],p.prototype,"fromListWithSupportedConnections",null),f([n.computed],p.prototype,"toListWithAllConnections",null),f([n.computed],p.prototype,"toListWithSupportedConnections",null),f([n.computed],p.prototype,"selectionErrors",null),f([n.computed],p.prototype,"hasAnyError",null),f([n.computed],p.prototype,"connectionFormErrors",null),f([n.computed],p.prototype,"fromName",null),f([n.computed],p.prototype,"fromSymbol",null),f([n.computed],p.prototype,"toName",null),f([n.computed],p.prototype,"toSymbol",null),f([n.computed],p.prototype,"fromStation",null),f([n.computed],p.prototype,"toStation",null),f([n.computed],p.prototype,"areSelectedStationsValid",null),f([n.computed],p.prototype,"areSelectedStationsSupported",null),f([n.action.bound],p.prototype,"setData",null),f([n.action.bound],p.prototype,"setStations",null),f([n.action.bound],p.prototype,"setConnectionMap",null),f([n.action.bound],p.prototype,"setRedirectStations",null),f([n.action.bound],p.prototype,"swapStations",null),f([n.action.bound],p.prototype,"setStationFrom",null),f([n.action.bound],p.prototype,"setFromStationSymbol",null),f([n.action.bound],p.prototype,"setStationTo",null),f([n.action],p.prototype,"resolveVirtualSelection",null),f([n.action.bound],p.prototype,"setToStationSymbol",null),f([n.action.bound],p.prototype,"setMetaStationProhibited",null),f([n.action.bound],p.prototype,"setMetaStationRequired",null),f([n.computed],p.prototype,"isFromStationSubstation",null),f([n.computed],p.prototype,"isToStationSubstation",null),f([n.action.bound],p.prototype,"clearMetaStations",null);var h=p},55836:function(e,t,r){"use strict";function n(e){switch(e){case"ktoe":case"childKtoe":return!0;default:return!1}}r.d(t,{m:function(){return n}})},29981:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(68949),a=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i};class o{constructor(){this.disposers=[],this.memberships=n.observable.map(),this.disabledMemberships=n.observable.array(),this.disabledVorMemberships=n.observable.array(),this.preferred=void 0,this.isPreferredOverride=!1,this.loading=!1,this.setMemberships=(0,n.action)(e=>{this.memberships.replace(e.map(e=>[e.id,e]))}),this.abortController=new AbortController,(0,n.makeObservable)(this)}get list(){return[...this.memberships.values()]}get preferredMembership(){if(!this.disabledMemberships.includes(this.preferred)&&!this.disabledVorMemberships.includes(this.preferred))return this.preferred}get preferredMembershipDetails(){return this.preferredMembership?this.memberships.get(this.preferredMembership):void 0}get isLoading(){return this.loading}
2destroy(){this.disposers.forEach(e=>e()),this.abortController.abort()}setLoading(e){this.loading=e}setPreferredMembership(e){this.preferred=e}setPreferredOverride(e){this.isPreferredOverride=e}setDisabledMemberships(e){this.disabledMemberships.replace(e||[])}setDisabledVorMemberships(e){this.disabledVorMemberships.replace(e||[])}isSupported(e){return this.list.some(t=>t.id===e)}}a([n.observable],o.prototype,"memberships",void 0),a([n.observable],o.prototype,"disabledMemberships",void 0),a([n.observable],o.prototype,"disabledVorMemberships",void 0),a([n.observable],o.prototype,"preferred",void 0),a([n.observable],o.prototype,"isPreferredOverride",void 0),a([n.observable],o.prototype,"loading",void 0),a([n.computed],o.prototype,"list",null),a([n.computed],o.prototype,"preferredMembership",null),a([n.computed],o.prototype,"preferredMembershipDetails",null),a([n.computed],o.prototype,"isLoading",null),a([n.action],o.prototype,"setLoading",null),a([n.action],o.prototype,"setPreferredMembership",null),a([n.action],o.prototype,"setPreferredOverride",null),a([n.action],o.prototype,"setDisabledMemberships",null),a([n.action],o.prototype,"setDisabledVorMemberships",null)},75743:function(e,t,r){"use strict";r.d(t,{gp:function(){return u},vB:function(){return l},yj:function(){return s}});var n=r(68949),a=r(88594),o=r(43113),i=function(e,t,r,n){var a,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i};const l={child:"c",adult:"a",pet:"p",bike:"b",prm:"r",carer:"e"},s=Object.fromEntries(Object.entries(l).map(e=>e.reverse()));class u{constructor(e){this.id=(0,a.D)(),this.tariff=void 0,this.membership=void 0,this.membershipTermsAccepted=!1,this.setMembership=e=>this.setOptions({membership:e,membershipTermsAccepted:!1,tariff:e?void 0:"standard"}),this.setTariff=e=>this.canSwitchTariff(e)?this.setOptions({tariff:e,membershipTermsAccepted:!1}):this,this.canSwitchTariff=e=>this.tariff!==e,this.setMembershipTermsAccepted=e=>this.setOptions({membershipTermsAccepted:e,tariff:e?"standard":void 0}),this.setKtoe=e=>(e?this.setOptions({ktoe:e,membershipTermsAccepted:!1}):this.clearKtoe(),this),this.clearKtoe=()=>this.setOptions({tariff:this.isAdult||this.isChild?void 0:this.tariff,ktoe:void 0}),this.clearOptions=()=>{this.setOptions({tariff:void 0,membershipTermsAccepted:!1})},(0,n.makeObservable)(this),this.setOptions(this.getDefaultOptionsForType(e))}getDefaultOptionsForType(e){switch(e){case"pet":return{type:e,tariff:"pet"};case"prm":return{type:e,tariff:"prm"};case"bike":return{type:e,tariff:"bike"};case"carer":return{type:e,tariff:"carer"};default:return{type:e}}}setOptions(e){if(this.tariff&&u.nonEditableTypes.includes(this.type))return this;for(const[t,r]of Object.entries(e))this[t]=r;return this}get isAdult(){return"adult"===this.type}get isChild(){return"child"===this.type}get isPet(){return"pet"===this.type}get isPRM(){return"prm"===this.type}get isBike(){return"bike"===this.type}get isCarer(){return"carer"===this.type}get isBookable(){return(!this.tariff||!u.virtualTariffs.includes(this.tariff))&&Boolean(this.tariff&&u.bookableTariffs.includes(this.tariff))}get isValid(){switch(this.tariff){case"superpreis":case"childSuperpreis":case"child":case"childNoAdult":case"childFamily":case"pet":case"bike":case"prm":case"infant":case"rsv":case"baby":return!0;case"standard":return!this.membership||this.membershipTermsAccepted;case"ktoe":case"childKtoe":return void 0!==this.ktoe;case"carer":return!0;case"vor":case"steiermark":case"childSteiermark":case void 0:return!1;default:return(0,o.Y)(this.tariff)}}}u.bookableTariffs=["standard","ktoe","superpreis","childSuperpreis","child","childNoAdult","childFamily","childKtoe","pet","bike","prm","infant"],u.virtualTariffs=["vor","baby","carer","steiermark","childSteiermark"],u.nonEditableTypes=["carer"],i([n.observable],u.prototype,"tariff",void 0),i([n.observable],u.prototype,"membership",void 0),i([n.observable],u.prototype,"membershipTermsAccepted",void 0),i([n.observable],u.prototype,"type",void 0),i([n.observable],u.prototype,"ktoe",void 0),i([n.action.bound],u.prototype,"setOptions",null),i([n.computed],u.prototype,"isAdult",null),i([n.computed],u.prototype,"isChild",null),i([n.computed],u.prototype,"isPet",null),i([n.computed],u.prototype,"isPRM",null),i([n.computed],u.prototype,"isBike",null),i([n.computed],u.prototype,"isCarer",null),i([n.computed],u.prototype,"isBookable",null),i([n.computed],u.prototype,"isValid",null)},74663:function(e,t,r){"use strict";r.d(t,{II:function(){return b},Mk:function(){return v},Op:function(){return h},Pd:function(){return m},cd:function(){return y},hZ:function(){return f},m7:function(){return p}});const n="ktoe",a="childKtoe",o=["standard","superpreis","vor","steiermark",n,"rsv"],i=["child","childNoAdult","childFamily","infant","baby",a,"childSuperpreis","childSteiermark"],l=["pet"],s=["prm"],u=["carer"],c=["bike"],d=[n,a],f=e=>o.includes(e),p=e=>i.includes(e),h=e=>c.includes(e),m=e=>l.includes(e),v=e=>s.includes(e),y=e=>u.includes(e),b=[...o,...i,...l,...s,...u,...c,...d]},81382:function(e,t,r){"use strict";r.d(t,{jh:function(){return l},sT:function(){return o},tM:function(){return s},yS:function(){return i}});const n="virtualStationNotice",a="virtualStationModalSuppressed",o=e=>{try{window.sessionStorage.setItem(n,JSON.stringify({changes:e,storedAt:Date.now()}))}catch(e){}},i=()=>{try{const e=window.sessionStorage.getItem(n);if(window.sessionStorage.removeItem(n),!e)return[];const{changes:t,storedAt:r}=JSON.parse(e);return"number"!=typeof r||Date.now()-r>6e4?[]:Array.isArray(t)?t:[]}catch(e){return[]}},l=()=>{try{return"true"===window.localStorage.getItem(a)}catch(e){return!1}},s=()=>{try{window.localStorage.setItem(a,"true")}catch(e){}}},93061:function(e,t,r){"use strict";r.d(t,{Uk:function(){return s},ld:function(){return o},s9:function(){return a}});const n=({resolutions:e,counterpart:t,direction:r})=>{var n;return null!==(n=e[r][t])&&void 0!==n?n:null},a=(e,t)=>`${e} ${t}`,o=(e,t,r,n)=>new Map([...e].map(([o,l])=>{var s;return l.isVirtual?[o,{...l,name:a(l.name,n),regionId:null!==(s=i(e,t,r,o))&&void 0!==s?s:l.regionId}]:[o,l]})),i=(e,t,r,a)=>{var o;const i=l(t.virtualStations,a),s="from"===r?t.to:t.from;if(!i||!s)return;const u=n({resolutions:i.resolutions,counterpart:s,direction:r});return u?null===(o=e.get(u))||void 0===o?void 0:o.regionId:void 0},l=(e,t)=>
2e.find(e=>e.id===t),s=({from:e,to:t,virtualStations:r})=>{const a=[];let o=e;const i=l(r,e);if(i&&t){const r=n({resolutions:i.resolutions,counterpart:t,direction:"from"});r&&(a.push({direction:"from",virtualStationId:e,resolvedStationId:r}),o=r)}const s=l(r,t),u=o&&!l(r,o);if(s&&u){const e=n({resolutions:s.resolutions,counterpart:o,direction:"to"});e&&a.push({direction:"to",virtualStationId:t,resolvedStationId:e})}return a}},23518:function(e,t,r){"use strict";r.d(t,{C3:function(){return f},Qg:function(){return p},ZP:function(){return m},fW:function(){return v},oX:function(){return h}});var n=r(68949),a=r(75743),o=r(24143),i=r(28108),l=r(5008),s=r(88467);const u=(e="",t)=>{var r;return e+(null!==(r=a.vB[t.type])&&void 0!==r?r:"")},c=(e=[],t)=>{var r;const n=t[0],o=null!==(r=a.yj[n])&&void 0!==r?r:void 0;return o?[...e,{type:o}]:e},d=(e,t)=>{var r,n,o,i,l,s;if(!e)return[];const u=e.match(/.{1}/g).reduce(c,[]).reduce((e,t)=>(e[t.type].push(t),e),{adult:[],child:[],pet:[],prm:[],bike:[],carer:[]}),d=[];for(const[e]of u.adult.entries()){const n=null!==(r=t.adult[e])&&void 0!==r?r:new a.gp("adult");d.push(n)}for(const[e]of u.child.entries()){const r=null!==(n=t.child[e])&&void 0!==n?n:new a.gp("child");d.push(r)}for(const[e]of u.pet.entries()){const r=null!==(o=t.pet[e])&&void 0!==o?o:new a.gp("pet");d.push(r)}for(const[e]of u.prm.entries()){const r=null!==(i=t.prm[e])&&void 0!==i?i:new a.gp("prm");d.push(r)}for(const[e]of u.bike.entries()){const r=null!==(l=t.bike[e])&&void 0!==l?l:new a.gp("bike");d.push(r)}for(const[e]of u.carer.entries()){const r=null!==(s=t.carer[e])&&void 0!==s?s:new a.gp("carer");d.push(r)}return d},f=e=>{var t,r;const n={};return n.tv=e.outward.travellers.reduce(u,""),n.sf=e.stations.virtual.resolvedFromSymbol,n.st=e.stations.virtual.resolvedToSymbol,n.do=(0,l.p6)(e.outward.date),n.dr=(0,l.p6)(e.return.date),(null===(t=e.memberships)||void 0===t?void 0:t.isPreferredOverride)&&(n.discount=null===(r=e.memberships)||void 0===r?void 0:r.preferredMembership),n},p=(e,t,r,n)=>{const a=f(e);return a.tv="a".repeat(t)+"c".repeat(r)+"p".repeat(n),a},h=e=>{var t;const r=f(e);return r.to=null===(t=e.outward.trid)||void 0===t?void 0:t.toString(),r.co=e.outward.coachClass,r};function m(e){return(0,n.autorun)(()=>{(0,i.ru)(h(e))},{name:"router bridge - update URL from store"})}const v=e=>{const t=new URLSearchParams(window.location.search);(0,n.runInAction)(()=>{var r,n;t.get("sf")&&e.stations.setFromStationSymbol(t.get("sf")),t.get("st")&&e.stations.setToStationSymbol(t.get("st"));const a=(0,l.UT)();let i=(0,l.sG)(t.get("do"));i<a&&(i=new Date(a)),i&&e.setDateOutward(i);let u=(0,l.sG)(t.get("dr"));u<a&&(u=new Date(a)),u&&e.setDateReturn(u);const c=t.get("co");c&&(0,o.hc)(c)&&e.outward.setCoachClass(c);const f=Number(t.get("to"));f&&e.setTrainOutward(f);const p=t.get("discount");(0,s.HH)(p)&&(null===(r=e.memberships)||void 0===r||r.setPreferredMembership(p),null===(n=e.memberships)||void 0===n||n.setPreferredOverride(!0));const h=d(t.get("tv"),{adult:e.outward.adults,child:e.outward.children,pet:e.outward.pets,prm:e.outward.prm,bike:e.outward.bikes,carer:e.outward.carers});h.length&&e.outward.setTravellers(...h);const m=d(t.get("tv"),{adult:e.return.adults,child:e.return.children,pet:e.return.pets,prm:e.return.prm,bike:e.return.bikes,carer:e.return.carers});m.length&&e.return.setTravellers(...m)})}},21093:function(e,t,r){"use strict";r.d(t,{Gs:function(){return l},HW:function(){return i},Hb:function(){return o}});var n=r(14846),a=r(88467);const o={timetable:"/",timetableReturn:"/return"},i=()=>(0,a.g_)(n.default.urls.bookingPage),l=e=>`/${i()}${e}`},58929:function(e,t,r){"use strict";r.r(t),r.d(t,{downloadAsync:function(){return c},downloadUrl:function(){return u},generateUrl:function(){return s},getBaseUri:function(){return i},getBaseUrl:function(){return o}});var n=r(14846),a=r(87631);function o(){const e=document.getElementsByTagName("base")[0];return e?e.href:void 0}function i(){return window.location.href.replace(o(),"")}const l=[null,void 0,""];function s(e,t={}){if(!Object.keys(n.default.urls).includes(e))throw new Error(`Route called "${e}" is not registered in the map`);let r=(n.default.urls[e]||"").replace(/\/$/,"");const i={...t};
2Object.keys(i).forEach(e=>{const t=i[e];l.includes(t)||(r=`${r}/${e}/${t}`),delete i[e]});const s=r.startsWith("/")||r.startsWith("http"),u=o();return`${!s&&u?u:""}${s?"":"en"===(0,a.Kd)()?"en/":""}${r}`}function u({url:e}){const t=document.createElement("a");t.href=e,t.download=e.substr(e.lastIndexOf("/")+1),document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(t.href),document.body.removeChild(t)}function c({url:e,body:t}){return new Promise(r=>{fetch(e,{method:"POST",body:t}).then(async t=>{var r;return{blob:await t.blob(),filename:(null!==(r=t.headers.get("content-disposition").match(/filename="(.+)"/)[1])&&void 0!==r?r:e.substring(e.lastIndexOf("/")+1)).trim()}}).then(({blob:e,filename:t})=>{console.info("Downloading file",t),console.info("Blob",e);const r=document.createElement("a");r.href=URL.createObjectURL(e),r.download=t,document.body.append(r),r.click()}).catch(console.error).finally(r)})}},3030:function(e,t){"use strict";class r{constructor(e){this.name="",this.shortname="",this.searchTerms=[],this.isSpecific=!1,this.disabled=!1,this.invalid=!1,this.skip=!1,this.children=new Map,this.isMunich=!1,this.isGerman=!1,this.isVirtual=!1,this.parking=!1,this.setData(e)}setData(e){Object.assign(this,e)}}r.WIEN_ALLE_STATIONEN=100,r.WIEN_PRATERSTERN=17,r.WIEN_MITTE=21,r.WIEN_RENNWEG=20,r.WIEN_QUARTIER_BELVEDERE=19,r.WIEN_HBF_BSTG_1_2=18,r.WIEN_WESTBAHNHOF=1,r.WIEN_HUTTELDORF=2,r.WIEN_KERNZONENGRENZE=1101,r.TULLNERFELD=11,r.ST_POLTEN=3,r.AMSTETTEN=4,r.LINZ=5,r.WELS=6,r.ATTNANG_PUCHHEIM=7,r.VOCKLABRUCK=22,r.STRASSWALCHEN=38,r.VOCKLAMARKT=59,r.TAXHAM=9,r.NEUMARKT_AM_WALLERSEE=12,r.SEEKIRCHEN=39,r.SALZBURG_HBF=8,r.FREILASSING=10,r.PASSAU=85,r.TEISENDORF=23,r.TRAUNSTEIN=24,r.BERGEN_IN_OBERBAYERN=25,r.UBERSEE=26,r.BERNAU_AM_CHIEMSEE=27,r.PRIEN_AM_CHIEMSEE=28,r.BAD_ENDORF=29,r.GROSSKAROLINENFELD=31,r.ROSENHEIM=30,r.OSTERMUNCHEN=32,r.ASSLING_IN_OBERBAYERN=33,r.GRAFING=34,r.MUNCHEN_OST=35,r.MUNCHEN_HBF=36,r.AUGSBURG=60,r.GUNZBURG=61,r.ULM=62,r.STUTTGART=63,r.KUFSTEIN=40,r.WORGL=41,r.JENBACH=64,r.INNSBRUCK_HBF=42,r.INNSBRUCK_WESTBAHNHOF=65,r.TELFS_PFAFFENHOFEN=43,r.IMST_PITZTAL=44,r.LANDECK_ZAMS=45,r.ST_ANTON_AM_ARLBERG=46,r.LANGEN_AM_ARLBERG=47,r.BLUDENZ=48,r.NENZING=49,r.FRASTANZ=50,r.FELDKIRCH=51,r.RANKWEIL=52,r.GOTZIS=53,r.ALTACH=54,r.HOHENEMS=55,r.DORNBIRN=56,r.BREGENZ_HBF=57,r.BREGENZ_RIEDENBURG=66,r.LINDAU_REUTIN=67,r.LINDAU_INSEL=68,r.BOX=15,r.SALZBURG_SUD=69,r.PUCH_URSTEIN=70,r.HALLEIN=71,r.GOLLING_ABTENAU=72,r.WERFEN=73,r.BISCHOFSHOFEN=74,r.ST_JOHANN_IM_PONGAU=75,r.WIEN_HAUPTBAHNHOF=14,r.WIEN_MEIDLING=13,r.WIENER_NEUSTADT_HAUPTBAHNHOF=1013,r.SEMMERING=77,r.KAPFENBERG=78,r.BRUCK_AN_DER_MUR=79,r.GRAZ_HAUPTBAHNHOF=80,r.KUHNSDORF_KLOPEINER_SEE=81,r.KLAGENFURT_HAUPTBAHNHOF=16,r.PORTSCHACH_AM_WORTHERSEE=83,r.VILLACH_HAUPTBAHNHOF=84,r.BADEN_BAHNHOF=1015,r.BOHEIMKIRCHEN=1001,r.FLUGHAFEN_WIEN_SCHWECHAT_BAHNHOF=1016,r.GOSTLING_AN_DER_YBBS=1002,r.GRAFENWORTH_MARKTPLATZ_BUSHALTESTELLE=1020,r.HADERSDORFKAMP=1024,r.HERZOGENBURG=1003,r.KIRCHSTETTEN_BAHNHOF=1021,r.KREMS=1004,r.LOOSDORF=1005,r.MELK=1006,r.MODLING_BAHNHOF=1014,r.NEUMARKT_AN_DER_YBBS=1007,r.POCHLARN=1008,r.PRINZERSDORF_BAHNHOF=1022,r.SCHEIBBS_BAHNHOF=1018,r.SCHWADORF_BEI_ST_POLTEN=1023,r.SONNTAGBERG=1009,r.SITZENBERG_REIDLING_BAHNHOF=1025,r.ST_VALENTIN=37,r.TRAISMAUER_BAHNHOF=1019,r.WAIDHOFEN_AN_DER_YBBS=1011,r.WIESELBURG_BAHNHOF=1017,r.YBBS_AN_DER_DONAU=1012,r.SCHWARZACH_ST_VEIT=86,r.LEND=87,r.TAXENBACH_RAURIS=88,r.BRUCK_FUSCH=89,r.ZELL_AM_SEE=90,r.MAISHOFEN_SAALBACH=91,r.SAALFELDEN=92,r.MUNCHEN_PASING=93,r.PAYERBACH_REICHENAU=94,r.SPITTAL_MILLSTATTERSEE=98,t.Z=r},31552:function(e,t,r){"use strict";var n=r(67294);const a=(0,n.forwardRef)(({className:e,src:t,alt:r,"aria-hidden":a,onReady:o,...i},l)=>{const s=(0,n.useRef)(null);return(0,n.useImperativeHandle)(l,()=>({play:()=>{var e,t,r;const n=null===(t=null===(e=s.current)||void 0===e?void 0:e.contentDocument)||void 0===t?void 0:t.querySelector("svg");null===(r=null==n?void 0:n.svgatorPlayer)||void 0===r||r.play()}}),[]),n.createElement("object",{ref:s,type:"image/svg+xml",data:t,className:e,...i,title:r,"aria-hidden":a,onLoad:o})});a.displayName="AnimatedSVG",t.Z=a},52504:function(e,t,r){"use strict";r.d(t,{L:function(){return n},Z:function(){return d}});var n,a=r(94184),o=r.n(a),i=r(67294),l=r(79655),s=r(5883),u=r(47552),c={"primary-blue":"west-ui-button--primary-blue","primary-white":"west-ui-button--primary-white","secondary-blue":"west-ui-button--secondary-blue","secondary-white":"west-ui-button--secondary-white","text-blue":"west-ui-button--text-blue","text-white":"west-ui-button--text-white",container:"west-ui-button--container",content:"west-ui-button--content",hidden:"west-ui-button--hidden",small:"west-ui-button--small",medium:"west-ui-button--medium",large:"west-ui-button--large",left:"west-ui-button--left",primary:"west-ui-button--primary",text:"west-ui-button--text",fit:"west-ui-button--fit",fullWidth:"west-ui-button--full-width",disabled:"west-ui-button--disabled",readOnly:"west-ui-button--read-only",spaceBetween:"west-ui-button--space-between",fitContent:"west-ui-button--fit-content"};!function(e){e.Link="link",e.Button="button",e.Router="router"}(n||(n={}));var d=(0,i.forwardRef)(function(e,t){var r;const{label:a,className:d,icon:f,iconProps:p,color:h="blue",fit:m=!1,fitContent:v=!1,spaceBetween:y=!1,fullWidth:b=!1,iconPosition:g="right",size:w="medium",variant:S="primary",readOnly:E=!1,as:N=n.Button,loading:T=!1,...x}=e;let C="button",k="button";return N===n.Link?(C="a",k=void 0):N===n.Router&&(C=l.rU,k=void 0),i.createElement(C,{...x,type:x.type||k,disabled:e.disabled||T,ref:t,className:o()(c.container,c[S],c[`${S}-${h}`],c[g],c[w],{[c.disabled]:e.disabled||T,[c.fit]:m,[c.fullWidth]:b,[c.readOnly]:E,[c.spaceBetween]:y,[c.fitContent]:v},d),readOnly:E,"data-testid":null!==(r=x["data-testid"])&&void 0!==r?r:"button"},i.createElement("div",{className:c.content},i.createElement("span",{className:o()({[c.hidden]:T})},a),T&&i.createElement(u.Z,{active:!0,position:"inline",size:"medium",color:"dark"})),(f||p)&&i.createElement(s.Z,{name:f,...p}))})},47702:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(94184),a=r.n(n),o=r(67294);const i=(0,o.forwardRef)(({className:e,children:t,...r},n)=>o.createElement("button",{type:"button",...r,className:a()("west-ui-button-unstyled--container",e),ref:n},t));i.displayName="ButtonUnstyled";var l=i},22330:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(94184),a=r.n(n),o=r(67294),i={container:"west-ui-buttons--container",fit:"west-ui-buttons--fit",center:"west-ui-buttons--center",firstOnRight:"west-ui-buttons--first-on-right"};
2function l({className:e,firstOnRight:t=!0,fit:r=!1,center:n=!1,...l}){return o.createElement("div",{...l,className:a()(e,i.container,{[i.firstOnRight]:t,[i.fit]:r,[i.center]:n})})}},3864:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(94184),a=r.n(n),o=r(67294),i=r(36554),l=r(71523),s=r(44423),u=r(5008),c=r(27080),d=r(29922),f=r(5883),p=r(44858),h="west-ui-date-picker--right",m=({minDate:e,maxDate:t,error:r,className:n,label:m,defaultActiveStartDate:v,referenceStartDate:y,onChange:b,borderless:g=!1,disabled:w=!1,disabledDates:S=[],validDates:E,dateFormat:N={year:"numeric",month:"2-digit",day:"2-digit"},returnDateFormatted:T=!1,locals:x="de-DE",minDetail:C="year",defaultView:k="month",selectRange:O=!1,showChevron:D=!0,autoComplete:R="off",alignCalendar:_="left",...A})=>{const{t:L,i18n:M}=(0,d.$)(),{isMobile:P}=(0,s.Z)(),I=o.useRef(null),j=o.useRef(null),F=o.useRef(null),U=o.useRef(null),B=o.useRef(A.dates),[H,Z]=(0,o.useState)(A.dates),[W,z]=(0,o.useState)(!1),[$,G]=(0,o.useState)((0,u.b7)(e)),[V,q]=(0,o.useState)((0,u.b7)(t)),[K,Y]=(0,o.useState)(k),J={month:{prev:L("west-ui.date-picker.aria.previous-month"),next:L("west-ui.date-picker.aria.next-month")},year:{prev:L("west-ui.date-picker.aria.previous-year"),next:L("west-ui.date-picker.aria.next-year")},decade:{prev:L("west-ui.date-picker.aria.previous-decade"),next:L("west-ui.date-picker.aria.next-decade")},century:{prev:L("west-ui.date-picker.aria.previous-century"),next:L("west-ui.date-picker.aria.next-century")},editDate:L("west-ui.date-picker.aria-label.edit-date")};(0,o.useEffect)(()=>{null===H&&Z(B.current)},[H]),(0,o.useEffect)(()=>{G((0,u.b7)(e))},[e]),(0,o.useEffect)(()=>{q((0,u.b7)(t))},[t]),(0,o.useEffect)(()=>{A.dates!==B.current&&te(A.dates)},[A.dates]);const X=()=>{z(!1)},Q=()=>{w||z(!W)},ee=()=>{var e;null===(e=F.current)||void 0===e||e.focus()};(0,c.Z)([I,U],X);const te=e=>{B.current=e,Z(e),X()},re=e=>{te(e),ee(),null==b||b(T?ie(e):e)},ne=e=>{ae(e)?re(e):Z(null)},ae=e=>(!$||e>=$)&&(!V||e<=V)&&!isNaN(e.getTime())&&!se(e),oe=e=>{if(!l.Tv.test(e))return null;const[t,r,n]=e.split(".");return new Date(`${n}-${r}-${t}`)},ie=e=>Array.isArray(e)?`${e[0].toLocaleDateString(x,N)} - ${e[1].toLocaleDateString(x,N)}`:e instanceof Date?e.toLocaleDateString(x,N):void 0,le=(0,o.useCallback)(({date:e})=>
2{if(y&&(0,u.KC)(e,y))return"west-ui-date-picker--calendar-tile-reference-start-date"},[y]),se=e=>!!(null==S?void 0:S.some(t=>(0,u.KC)(e,t)))||!!E&&!E.some(t=>(0,u.KC)(e,t));return o.createElement("div",{ref:U,className:a()("west-ui-date-picker--container",g&&"west-ui-date-picker--borderless",n),"data-testid":A["data-testid"],onKeyDown:e=>{"Escape"===e.key&&(ee(),X())}},o.createElement(p.Z,{...A,className:a()("west-ui-date-picker--select"),label:m||L("west-ui.date-picker.label.pick-date"),iconPosition:"left",iconButton:{icon:"calendar-alt","aria-label":m?L("west-ui.date-picker.aria-label.custom-label-edit",{label:m}):J.editDate,onClick:()=>{Q(),requestAnimationFrame(()=>{var e;null===(e=j.current)||void 0===e||e.focus()})}},value:ie(H)||"",error:r,onPointerDown:Q,onKeyDown:e=>{if("Enter"===e.key&&(z(!0),W)){const t=oe(e.currentTarget.value);ne(t)}},onChange:e=>{const t=oe(e);t&&ne(t)},ref:F,readOnly:P,autoComplete:R,disabled:w},!r&&D&&o.createElement(f.Z,{className:a()("west-ui-date-picker--icon"),name:W?"chevron-up":"chevron-down"})),W&&o.createElement("div",{ref:j,tabIndex:0},o.createElement(i.ZP,{className:a()("west-ui-date-picker--calendar",{[h]:"right"===_}),value:H,locale:M.language,onChange:re,nextLabel:o.createElement(f.Z,{name:"chevron-right"}),next2Label:null,prevLabel:o.createElement(f.Z,{name:"chevron-left"}),prev2Label:null,selectRange:O,minDate:$,maxDate:V,minDetail:C,prevAriaLabel:J[K].prev,nextAriaLabel:J[K].next,defaultView:k,defaultActiveStartDate:v,tileClassName:le,inputRef:I,onViewChange:({view:e})=>{Y(e)},tileDisabled:({date:e,view:t})=>"month"===t&&se(e),showNeighboringMonth:!1})))}},58221:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(94184),a=r.n(n),o=r(67294),i=r(32947),l=r(29922),s="west-ui-display-field--border",u=({label:e,value:t,contentClassName:r,border:n=!0,className:u,icon:c={icon:"pencil",style:"regular",variant:"text",color:"blue"},onClick:d,...f})=>{var p;const{t:h}=(0,l.$)();return o.createElement("div",{...f,className:a()("west-ui-display-field--container",u,{[s]:n})},o.createElement("div",{className:a()("west-ui-display-field--content",r)},o.createElement("span",{className:"west-ui-display-field--label"},e),t),d&&o.createElement(i.Z,{...c,"aria-label":null!==(p=null==c?void 0:c["aria-label"])&&void 0!==p?p:h("west-ui.display-field.aria-label.edit"),onClick:d}))}},43198:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(94184),a=r.n(n),o=r(67294),i=({className:e,...t})=>o.createElement("hr",{className:a()("west-ui-divider--container",e),...t})},21731:function(e,t,r){"use strict";r.d(t,{Z:function(){return u},_:function(){return s}});var n=r(94184),a=r.n(n),o=r(67294),i={heading:"west-ui-heading--heading",xs:"west-ui-heading--xs",sm:"west-ui-heading--sm",md:"west-ui-heading--md",lg:"west-ui-heading--lg",xl:"west-ui-heading--xl",xxl:"west-ui-heading--xxl",green:"west-ui-heading--green",blue:"west-ui-heading--blue",darkgrey:"west-ui-heading--darkgrey"};const l={h1:"xxl",h2:"xl",h3:"lg",h4:"md",h5:"sm",h6:"xs"},s=(e,t,r)=>{const n=t||l[e];return a()(i.heading,i[n],i[r])};var u=({tag:e,size:t,color:r,className:n,...i})=>{const l=e;return o.createElement(l,{...i,className:a()(n,s(e,t,r))})}},50675:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(94184),a=r.n(n),o=r(67294),i=r(21731),l=r(29922),s=r(32947),u={container:"west-ui-headline--container",title:"west-ui-headline--title",left:"west-ui-headline--left",right:"west-ui-headline--right",rounded:"west-ui-headline--rounded"},c=({title:e,onClick:t,className:r,icon:n="times",iconPosition:c="right",rounded:d=!0,heading:f,...p})=>{const{t:h}=(0,l.$)(),m={tag:"h2",size:"lg",...f};return o.createElement("div",{...p,className:a()(u.container,r,{[u.rounded]:d})},o.createElement(i.Z,{...m,className:a()(m.className,u.title)},e),o.createElement(s.Z,{className:u[c],icon:n,variant:"text",onClick:t,size:"large","aria-label":h("west-ui.headline.button.back-to-timetable")}))}},7352:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(94184),a=r.n(n),o=r(67294),i=r(5883),l={container:"west-ui-icon-text--container",icon:"west-ui-icon-text--icon",content:"west-ui-icon-text--content",center:"west-ui-icon-text--center",small:"west-ui-icon-text--small",medium:"west-ui-icon-text--medium",large:"west-ui-icon-text--large","font-primary":"west-ui-icon-text--font-primary","font-grey":"west-ui-icon-text--font-grey","font-error":"west-ui-icon-text--font-error",white:"west-ui-icon-text--white",interactive:"west-ui-icon-text--interactive",regular:"west-ui-icon-text--regular","semi-bold":"west-ui-icon-text--semi-bold",bold:"west-ui-icon-text--bold"},s=({icon:e,content:t,className:r,background:n="none",color:s="font-black",iconAlign:u="top",size:c="medium",success:d=!1,onClick:f,weight:p="regular",...h})=>{const m="string"==typeof e?{name:e,className:void 0}:e;return o.createElement("div",{...h,onClick:f,className:a()(l.container,l[c],l[s],l[n],r)},d&&o.createElement(i.Z,{className:l.icon,name:"circle-check",color:"success"}),(null==m?void 0:m.name)&&o.createElement(i.Z,{...m,className:a()(l.icon,l[u],m.className)}),o.createElement("div",{className:a()(l.content,l[p],{[l.interactive]:f})},t))}},42e3:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(94184),a=r.n(n),o=r(67294),i=r(85266),l=r(29922),s=r(52504),u=r(5883),c=r(42342),d=({title:e,body:t,className:r,label:n,icon:d={name:"info-circle",style:"regular"},modalClassName:f,...p})=>{const{t:h}=(0,l.$)(),[m,v]=o.useState(!1),y=()=>{v(!1)};return o.createElement(o.Fragment,null,o.createElement("button",{...p,className:a()("west-ui-info-tip--container",r),onClick:()=>{v(!0)}},o.createElement(u.Z,{...d}),n||h("west-ui.info-tip.button.learn-more")),o.createElement(i.Z,{show:m,onClose:y,canEscapeKeyClose:!0,canOutsideClickClose:!0},o.createElement(c.Z,{className:f,title:e,onHeaderClick:y,buttons:[o.createElement(s.Z,{label:h("west-ui.info-tip.button.close"),size:"small",onClick:y,key:"close"})]},t)))}},44858:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(94184),a=r.n(n),o=r(67294),i=r(5883),l=r(32947),s=r(29922),u="west-ui-input-field--disabled",c="west-ui-input-field--icon",d="west-ui-input-field--left",f="west-ui-input-field--icon-button",p="west-ui-input-field--interactive",h="west-ui-input-field--error",m="west-ui-input-field--right-padding",v="west-ui-input-field--left-padding",y="west-ui-input-field--search",b="west-ui-input-field--has-edit-button",g="west-ui-input-field--fit";const w=(0,o.forwardRef)(({label:e,icon:t,iconButton:r,error:n,maxLength:w,children:S,className:E,required:N,searchPlaceholder:T,onCh
2ange:x,onEditClick:C,disabled:k=!1,returnValueAsNumber:O=!1,hasDeleteButton:D=!1,hasEditButton:R=!1,uncontrolled:_=!1,borderless:A=!1,iconPosition:L="right",initialValue:M="",type:P="text",fit:I=!1,...j},F)=>{const{t:U}=(0,s.$)(),B="input"+(0,o.useId)(),H=(0,o.useRef)(M||j.value),Z=(0,o.useRef)(null),[W,z]=(0,o.useState)(M||j.value),[$,G]=(0,o.useState)(R),[V,q]=(0,o.useState)(!1);(0,o.useImperativeHandle)(F,()=>Z.current,[]);const K="search"===P,Y=e=>{H.current=e,z(e)},J=()=>{Y(""),null==x||x("")};(0,o.useEffect)(()=>{j.value!==H.current&&Y(j.value)},[j.value]),(0,o.useEffect)(()=>{G(R)},[R]);const X=K||D,Q=X?"left":L,ee=t||r,te=()=>{G(!1),null==C||C(),Z.current.focus()},re=()=>{q(!V),Z.current.focus()};return o.createElement("div",{className:a()("west-ui-input-field--container",{[h]:n,[v]:"left"===Q&&ee&&!K,[y]:K,[m]:"right"===Q||X,[b]:$,[g]:I,[u]:k},E)},o.createElement("div",{className:a()("west-ui-input-field--input-container",A&&"west-ui-input-field--borderless")},o.createElement("input",{id:B,...j,"aria-label":K?T||U("west-ui.input-field.label.search"):j["aria-label"],type:"password"===P&&V?"text":P,maxLength:w,onChange:e=>{Y(e.target.value),null==x||x("number"===P&&O?e.target.valueAsNumber:e.target.value)},value:_?void 0:W||"",placeholder:K?T||U("west-ui.input-field.label.search"):" ",readOnly:j.readOnly||$,required:N,disabled:k,ref:Z}),!K&&o.createElement("label",{htmlFor:B},e,!!N&&o.createElement(i.Z,{name:"asterisk"})),(()=>{const e=a()(c,d);return K?o.createElement(i.Z,{className:e,name:"search"}):"left"===Q&&r?o.createElement(l.Z,{...r,variant:"text",color:"black",className:a()(f,d),disabled:k}):"left"===Q&&t?o.createElement(i.Z,{className:e,name:t}):void 0})(),(()=>{const e=a()(c,"west-ui-input-field--right");return"password"===P?o.createElement(i.Z,{onClick:re,style:"regular",className:a()(e,p),name:V?"eye-slash":"eye"}):$?o.createElement(i.Z,{onClick:te,style:"regular",className:a()(e,p,"west-ui-input-field--edit"),name:"pencil"}):X&&W?o.createElement(l.Z,{"aria-label":U("west-ui.input-field.button.aria-label.delete-input"),onClick:J,className:a()(e,f,p),icon:"times",variant:"text",color:"black"}):n?o.createElement(i.Z,{className:e,name:"circle-exclamation",style:"regular"}):"right"===Q&&t?o.createElement(i.Z,{className:e,name:t}):void 0})(),S))});w.displayName="InputField";var S=w},2639:function(e,t,r){"use strict";var n=r(67294),a=r(52504);const o=(0,n.forwardRef)(function(e,t){const r={...e};return e.disabled&&(r.href=void 0),n.createElement(a.Z,{as:a.L.Link,...r,ref:t})});t.Z=o},42342:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(94184),a=r.n(n),o=r(67294),i=r(22330),l=r(50675),s=r(42791),u={container:"west-ui-modal--container",body:"west-ui-modal--body",content:"west-ui-modal--content",heightLimit:"west-ui-modal--height-limit",close:"west-ui-modal--close",shadow:"west-ui-modal--shadow",buttons:"west-ui-modal--buttons",large:"west-ui-modal--large",centered:"west-ui-modal--centered",transparent:"west-ui-modal--transparent",white:"west-ui-modal--white",grey:"west-ui-modal--grey",wide:"west-ui-modal--wide"},c=({className:e,title:t,buttons:r,children:n,background:c="white",variant:d="regular",onHeaderClick:f,classNames:p={},contentRef:h,...m})=>{var v,y,b;const g=(0,o.useRef)(null),w=null!=h?h:g,[S,E]=(0,o.useState)((null===(v=w.current)||void 0===v?void 0:v.scrollHeight)>(null===(y=w.current)||void 0===y?void 0:y.clientHeight));(0,o.useEffect)(()=>{var e,t;E((null===(e=w.current)||void 0===e?void 0:e.scrollHeight)>(null===(t=w.current)||void 0===t?void 0:t.clientHeight))},[null===(b=w.current)||void 0===b?void 0:b.scrollHeight]);const N="regular"===d,T="wide"===d,x="drawer"===d,C=x?"back":"close";return o.createElement("div",{...m,className:a()(u.container,e,{[u.wide]:T||x}),"data-testid":m["data-testid"],role:"dialog","aria-modal":"true","aria-label":t},o.createElement(l.Z,{title:o.createElement(s.Z,{text:t}),heading:{className:p.heading},onClick:f,className:a()(u[C],p.header,{[u.large]:T,[u.centered]:x||T}),icon:x?"chevron-left":"times",iconPosition:x?"left":"right",rounded:N}),o.createElement("div",{className:a()(u.body,u[c])},o.createElement("div",{ref:w,className:a()(u.content,p.content,{[u.heightLimit]:N})},n),!!r&&o.createElement(i.Z,{className:a()(u.buttons,p.buttons,{[u.shadow]:S}),fit:(null==r?void 0:r.length)>1,center:1===r.length},r)))}},92609:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(94184),a=r.n(n),o=r(67294),i=r(7352),l={container:"west-ui-radio-button--container",readonly:"west-ui-radio-button--readonly",centered:"west-ui-radio-button--centered",checkmark:"west-ui-radio-button--checkmark",content:"west-ui-radio-button--content",small:"west-ui-radio-button--small",info:"west-ui-radio-button--info"},s=({label:e,image:t,info:r,centered:n=!1,required:s=!1,readOnly:u=!1,size:c="medium",children:d,className:f,...p})=>o.createElement("label",{className:a()(l.container,{[l.centered]:n,[l.readonly]:u},l[c],f),onClick:u?e=>e.preventDefault():void 0,"data-testid":`radio-${p.value}`},!u&&o.createElement(o.Fragment,null,o.createElement("input",{...p,required:s,type:"radio"}),o.createElement("span",{className:l.checkmark})),t&&o.createElement("img",{src:t.src,alt:t.alt}),e&&o.createElement("div",{className:l.content},e,r&&o.createElement(i.Z,{icon:{name:r.name,style:r.style||"regular"},content:r.content,className:l.info,color:r.color||"font-grey"})),d)},34620:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(94184),a=r.n(n),o=r(67294),i=r(74228),l="west-ui-radio-group--inline",s="west-ui-radio-group--required",u=({name:e,legend:t,value:r,onChange:n,className:u,children:c,inline:d=!1,required:f=!1,disabled:p=!1,...h})=>o.createElement("fieldset",{...h,className:a()("west-ui-radio-group--container",u,{[l]:d,[s]:f})},o.createElement("legend",{className:i.Z.srOnly},t),(()=>{const t=[];for(const a of Array.isArray(c)?c:[c]){if("object"!=typeof a)continue;
2const i=o.cloneElement(a,{...a.props,name:e,onChange:n,key:a.key||a.props.value,disabled:p,checked:a.props.value==r});t.push(o.createElement(o.Fragment,{key:i.key},i))}return t})())},72429:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(94184),a=r.n(n),o=r(67294),i=r(31552),l=r(828),s={content:"west-ui-animated-button--content",small:"west-ui-animated-button--small",medium:"west-ui-animated-button--medium",large:"west-ui-animated-button--large"};const u=(0,o.forwardRef)(({src:e,autoplay:t=!1,onClick:r,iconClassName:n,contentClassName:u,className:c,size:d="medium",...f},p)=>{const h=(0,o.useRef)(null);return o.createElement(l.Z,{...f,onClick:e=>{var n;null==r||r(e),t||null===(n=h.current)||void 0===n||n.play()},size:d,ref:p,className:c,contentClassName:u},o.createElement(i.Z,{src:e,"aria-hidden":!0,className:a()(s.content,s[d],n),ref:h,tabIndex:-1}))});u.displayName="AnimatedButton";var c=u,d=r(5883),f=({message:e,className:t,iconClassName:r})=>e?o.createElement("p",{className:t},o.createElement(d.Z,{className:r,name:"circle-info",style:"regular",color:"error"}),e):null,p=r(20841),h=r(29922),m="west-ui-route-selector--station",v="west-ui-route-selector--error",y="west-ui-route-selector--error-icon",b=({from:e,to:t,fromList:n,toList:i,disabled:l,formErrors:s,onFromChange:u,onToChange:d,onStationsSwap:b,onExpand:g,className:w,...S})=>{const{t:E}=(0,h.$)(),N={labels:{from:E("west-ui.journey-widget.label.from"),to:E("west-ui.journey-widget.label.to"),noResults:E("west-ui.journey-widget.label.no-results"),swapStations:E("west-ui.journey-widget.label.swap-stations"),startStation:E("west-ui.journey-widget.label.modal.title.start-station"),endStation:E("west-ui.journey-widget.label.modal.title.end-station")},ariaLabels:{departureStation:E("west-ui.journey-widget.aria-label.departure-station"),destinationStation:E("west-ui.journey-widget.aria-label.destination-station")}};return o.createElement("div",{...S,className:a()("west-ui-route-selector--container",w)},o.createElement("div",{className:m},o.createElement(p.Z,{disabled:l,searchTitle:N.labels.startStation,onFocus:g,value:e,onChange:u,showChevron:!1,stations:n,borderless:!0,label:N.labels.from,placeholder:{title:N.labels.noResults,icon:"location-pin-slash"},"aria-label":N.ariaLabels.departureStation,error:null==s?void 0:s.from,"data-testid":"select-from"}),o.createElement(f,{message:null==s?void 0:s.from,className:v,iconClassName:y})),o.createElement("div",{className:"west-ui-route-selector--button-container"},o.createElement(c,{disabled:l,className:"west-ui-route-selector--button",iconClassName:"west-ui-route-selector--icon",contentClassName:"west-ui-route-selector--hover",size:"medium",src:r(20698),onClick:b,title:N.labels.swapStations,"data-testid":"swap-stations","aria-label":N.labels.swapStations})),o.createElement("div",{className:m},o.createElement(p.Z,{disabled:l,searchTitle:N.labels.endStation,onFocus:g,value:t,onChange:d,showChevron:!1,stations:i,borderless:!0,label:N.labels.to,placeholder:{title:N.labels.noResults,icon:"location-pin-slash"},"aria-label":N.ariaLabels.destinationStation,error:null==s?void 0:s.to,"data-testid":"select-to"}),o.createElement(f,{message:null==s?void 0:s.to,className:v,iconClassName:y})))}},43660:function(e,t,r){"use strict";var n=r(22424),a=r(67294);t.Z=({html:e,as:t="span",sanitizeConfig:r,className:o})=>{const i=(0,a.useMemo)(()=>n.Z.sanitize(e,r),[e,r]);return a.createElement(t,{className:o,dangerouslySetInnerHTML:{__html:i}})}},79416:function(e,t,r){"use strict";r.d(t,{Z:function(){return F}});var n=r(94184),a=r.n(n),o=r(67294),i=r(44423),l=r(49185),s=r(47702),u=r(44858),c=r(42342),d=r(85266),f="west-ui-modal-overlay--container",p="west-ui-modal-overlay--fullscreen",h=({modal:e,mobileFullscreen:t,onClose:r,position:n,canOutsideClickClose:l=!0,className:s,children:u,...h})=>{const{title:m,variant:v,buttons:y,...b}=e,{isMobile:g}=(0,i.Z)(),w="object"==typeof t,S=w&&(null==t?void 0:t.variant),E=w&&(null==t?void 0:t.position),N=!!g&&(!0===t||w);return o.createElement(d.Z,{className:a()({[f]:N},s),onClose:r,canEscapeKeyClose:!0,canOutsideClickClose:l,position:N&&E?t.position:n,...h},o.createElement(c.Z,{title:m,variant:N&&S?t.variant:v,onHeaderClick:r,buttons:y,...b,className:a()({[p]:N},b.className)},u))};const m={"ä":"a","ö":"o","ü":"u","ß":"ss"};var v;!function(e){e[e.LabelPrefix=8]="LabelPrefix",e[e.LabelSubstring=4]="LabelSubstring",e[e.AliasPrefix=2]="AliasPrefix",e[e.AliasSubstring=1]="AliasSubstring"}(v||(v={}));const y=e=>e.trim().toLowerCase().replace(/[äöüß]/g,e=>m[e]),b=e=>Number(e.invalid||!1),g=(e,t)=>{const r=b(e.option)-b(t.option);return 0!==r?r:t.weight-e.weight},w=(e=[])=>[...e].sort((e,t)=>
2b(e)-b(t));var S=r(21731),E=r(5883),N=({title:e,icon:t,className:r})=>o.createElement("div",{className:a()("west-ui-search-result-placeholder--container",r)},o.createElement(E.Z,{name:t,size:28,color:"primary",className:"west-ui-search-result-placeholder--icon"}),o.createElement(S.Z,{tag:"h2",size:"sm",className:"west-ui-search-result-placeholder--heading"},e)),T=r(39430),x=r(51947),C=r(34615),k=r(27080),O=r(78025),D=r(59547),R=r(29922),_=r(88796),A="west-ui-searchable-select--disabled",L="west-ui-searchable-select--select",M="west-ui-searchable-select--options",P="west-ui-searchable-select--selected-value",I="west-ui-searchable-select--active";const j=e=>!!e&&e.scrollHeight>e.clientHeight;var F=({pinned:e,suggested:t,filtered:r,label:n,"aria-label":c,"data-testid":d,searchTitle:f,defaultValue:p,value:m,placeholder:b,emptyLabel:S,onChange:E,onBlur:F,onFocus:U,onPinClick:B,onSearch:H,borderless:Z=!1,disabled:W,error:z,readOnly:$,showChevron:G=!0,showPin:V,showTitles:q,className:K,mobileVariant:Y="button",...J})=>{var X;const[Q,ee]=(0,o.useState)(w(null==r?void 0:r.options)),[te,re,ne]=(0,l.Z)(),[ae,oe]=(0,o.useState)(p||m),[ie,le]=(0,o.useState)(!1),{isMobile:se}=(0,i.Z)(),{t:ue}=(0,R.$)(),ce=(0,o.useRef)(null),de=(0,o.useRef)(null),fe=(0,o.useRef)(null),pe=(0,o.useRef)(null),he=(0,o.useRef)(null),me=(0,o.useRef)([]),ve=[...(null==r?void 0:r.options)||[],...(null==e?void 0:e.options)||[],...(null==t?void 0:t.options)||[]],ye=(()=>{var e;return null===(e=ve.find(e=>e.value===ae))||void 0===e?void 0:e.label})(),be=()=>Q.find(e=>!e.disabled);(0,o.useEffect)(()=>{ee(w(null==r?void 0:r.options))},[null==r?void 0:r.options]);const ge=n||ue("west-ui.select.label.select"),we={icon:(null==b?void 0:b.icon)||"question",title:(null==b?void 0:b.title)||ue("west-ui.searchable-select.label.no-results")},Se=d&&`${d}-container`,Ee=d&&`${d}-options`,Ne=d&&`${d}-options-mobile`,Te=W||$,xe=(0,o.useCallback)(()=>{le(!1),ee(w(null==r?void 0:r.options))},[null==r?void 0:r.options]),Ce=(0,o.useCallback)(e=>{oe(e),xe()},[xe]);(0,O.Z)({value:m,selectedValue:ae,options:ve,onSync:Ce});const ke=e=>{const t=[pe.current,he.current].find(j);t&&(0,D.Z8)(e,t)},Oe=e=>{e.focus({preventScroll:!0}),ke(e)};(0,o.useEffect)(()=>{if(!te||!ae)return;let e,t=0;const r=()=>{(()=>{const e=me.current.filter(e=>null!==e).find(e=>e.dataset.value===String(ae));return!(!e||0===e.offsetHeight||0===e.offsetWidth||(ke(e),0))})()||t>=10||(t++,e=requestAnimationFrame(r))};return e=requestAnimationFrame(r),()=>cancelAnimationFrame(e)},[te,ae,Q]),(0,k.Z)([fe,pe],()=>{se||ne(!1)});const De=()=>{Te||ne(!0)},Re=()=>{ne(!1)},_e=()=>{var e;if(ne(!1),se)return null===(e="field"===Y?de.current:ce.current)||void 0===e?void 0:e.focus({preventScroll:!0});fe.current.focus({preventScroll:!0})},Ae=()=>{De(),null==U||U()},Le=()=>{te||null==F||F(ae)},Me=e=>{if(W||$||De(),le(!!e),!e){oe(null),null==E||E(null);const t=w(null==r?void 0:r.options);return ee(t),void(null==H||H(e,t))}const t=((e=[],t)=>{const r=y(t);if(!r)return w(e);const n=[];return e.forEach(e=>{const t=((e,t)=>{const r=y(e.label),n=(e.aliases||[]).map(y);let a=0;return r.startsWith(t)&&(a|=v.LabelPrefix),r.includes(t)&&(a|=v.LabelSubstring),n.some(e=>e.startsWith(t))&&(a|=v.AliasPrefix),n.some(e=>e.includes(t))&&(a|=v.AliasSubstring),a})(e,r);0!==t&&n.push({option:e,weight:t})}),n.sort(g).map(e=>e.option)})(ve,e);ee(t),null==H||H(e,t)},Pe=e=>{oe(e),le(!1);const t=ve.findIndex(t=>t.value===e);null==E||E(e,t>=0?t:void 0),_e()},Ie=(e=!0)=>{const t=be();oe(t.value),le(!1);const r=ve.findIndex(e=>e.value===t.value);return null==E||E(t.value,r>=0?r:void 0),e?_e():Re(),t.value},je={showOptions:te,open:De,close:Re,$itemRefs:me,selectedValue:ae,disabled:W,readOnly:$,onOptionFocus:Oe},Fe=(0,_.Z)({ArrowDown:(0,x.Xy)("down",je),ArrowUp:(0,x.Xy)("up",je)," ":(0,x.LD)(je),Enter:(0,_.j)(()=>!(!te||!be()||(Ie(),0)),()=>{var e;return!(!ie||be()||(null===(e=fe.current)||void 0===e||e.blur(),0))},(0,x.LD)(je)),Backspace:()=>!!ye&&(ee(w(null==r?void 0:r.options)),oe(null),le(!1),null==E||E(null),De(),!0),Escape:(0,x.di)(je)}),Ue=()=>{if(G)return te?"chevron-up":"chevron-down"},Be=Q.length<((null===(X=null==r?void 0:r.options)||void 0===X?void 0:X.length)||0),He=Q.length>0,Ze=S&&He?[{label:S,value:""},...Q]:Q;return se?o.createElement("div",{className:a()("west-ui-searchable-select--button-container",{[A]:W}),"data-testid":Se},"field"===Y?o.createElement(u.Z,{...J,className:"west-ui-searchable-select--field-trigger",borderless:Z,icon:Ue(),label:ge,onClick:Ae,onKeyDown:Fe,onBlur:Le,ref:de,value:ye||"","aria-label":c,"aria-expanded":te,role:"combobox",autoComplete:"off","aria-autocomplete":"none",error:!!z,readOnly:!0,disabled:W}):o.createElement(s.Z,{ref:ce,onClick:Ae,onBlur:Le,className:a()("west-ui-searchable-select--button",{[P]:ye}),"aria-label":c,disabled:W},o.createElement("span",{className:a()("west-ui-searchable-select--label",{[I]:ye})},ge),ye),o.createElement(h,{show:te,onClose:Re,modal:{title:f||ge,onHeaderClick:Re,classNames:{content:"west-ui-searchable-select--modal"},contentRef:he},mobileFullscreen:{variant:"drawer",position:"right"},canOutsideClickClose:!se,canEscapeKeyClose:!0},o.createElement(C.Z,{label:z,show:!!z,variant:"text",position:"bottom",relative:!0,icon:{icon:{name:"circle-info",style:"regular"},color:"font-error"},tipClassName:"west-ui-searchable-select--error"},o.createElement(u.Z,{className:L,hasDeleteButton:!0,label:ge,onChange:Me,onKeyDown:Fe,ref:fe,value:ye||"",role:"combobox",autoComplete:"off","aria-autocomplete":"none",error:!!z||!He,readOnly:$,disabled:W})),o.createElement("div",{className:M,ref:pe,"data-testid":Ne},o.createElement(T.Z,{ref:me,onOptionFocus:Oe,selectedValue:ae,onClick:Pe,onClose:_e,onPinClick:B,pinned:Be?void 0:e,suggested:Be?void 0:t,filtered:{...r,options:Ze},showTitles:!Be&&q,showPin:V}),!He&&o.createElement(N,{icon:we.icon,title:we.title})))):o.createElement("div",{"data-testid":Se,className:a()("west-ui-searchable-select--container",K,{[A]:W})},o.createElement(u.Z,{...J,className:L,borderless:Z,icon:Ue(),label:ge,onChange:Me,onClick:()=>{Te||re()},onKeyDown:Fe,onFocus:U,onBlur:e=>{if(!(e=>{var t;return!(null===(t=pe.current)||void 0===t?void 0:t.contains(e.relatedTarget))})(e))return;const t=(e=>{var t;if(ie&&!be())return(null===(t=e.target)||void 0===t?void 0:t.value)||void 0})(e),r=ie&&be()?Ie(!1):(xe(),Re(),ae);null==F||F(r,t)},ref:fe,value:ye||"","aria-expanded":te,role:"combobox",autoComplete:"off","aria-autocomplete":"none",error:!!z||!He,readOnly:$,disabled:W}),te&&o.createElement("div",{className:M,ref:pe,"data-testid":Ee},o.createElement(T.Z,{ref:me,onOptionFocus:Oe,selectedValue:ae,onClick:Pe,onClose:_e,onPinClick:B,pinned:Be?void 0:e,suggested:Be?void 0:t,filtered:{...r,options:Ze},showTitles:!Be&&q,showPin:V}),!He&&o.createElement("div",{className:"west-ui-searchable-select--placeholder"},we.title)))}},51947:function(e,t,r){"use strict";r.d(t,{F9:function(){return n},LD:function(){return o},TV:function(){return a},Xy:function(){return l},di:function(){return i}});const n=e=>{var t;return(null!==(t=e.current)&&void 0!==t?t:[]).filter(e=>null!==e&&!e.disabled)},a=e=>
2e.focus(),o=({showOptions:e,disabled:t,readOnly:r,open:n})=>()=>!(e||t||r||(n(),0)),i=({showOptions:e,close:t})=>()=>!!e&&(t(),!0),l=(e,{$itemRefs:t,selectedValue:r,onOptionFocus:o=a})=>()=>{const a=n(t);if(0===a.length)return!1;if(r){const e=a.find(e=>e.dataset.value===String(r));if(e)return o(e),!0}return o(((e,t)=>"down"===t?e[0]:e[e.length-1])(a,e)),!0}},39430:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(94184),a=r.n(n),o=r(67294),i=r(35494),l=r(43198),s=r(51947),u=r(47702),c=r(32947),d=r(29922),f="west-ui-option-item--selected",p="west-ui-option-item--invalid";const h=(0,o.forwardRef)(({option:e,showPin:t=!1,pinned:r,selected:n=!1,onClick:i,onPinClick:l},s)=>{const{t:h}=(0,d.$)(),{label:m,value:v,info:y,disabled:b=!1,invalid:g}=e,w=e=>{e.stopPropagation(),null==l||l(v)};return o.createElement("div",{className:a()("west-ui-option-item--container",{[f]:n,[p]:g})},o.createElement(u.Z,{ref:s,onClick:()=>{null==i||i(v)},className:"west-ui-option-item--option-button",disabled:b,role:"option","data-testid":"select-option","data-value":v},m,y&&o.createElement(o.Fragment,null," ",y)),((e,t)=>e?o.createElement(c.Z,{"aria-label":h(t?"west-ui.select-options.option-item.aria-label.pin-removal":"west-ui.select-options.option-item.aria-label.pin-selection",{label:m}),icon:"star",color:"blue",style:t?"solid":"regular",variant:"text",onClick:w,size:"medium",className:"west-ui-option-item--pin"}):null)(t,r))});h.displayName="OptionItem";var m=h,v="west-ui-options-section--extended",y=({options:e,showPin:t,pinned:r,showTitles:n=!0,title:i,onClick:s,onPinClick:u,itemRefs:c,startIndex:f,selectedValue:p})=>{const{t:h}=(0,d.$)(),y=(0,o.useId)();return e.length?o.createElement("div",{role:"group",...n?{"aria-labelledby":y}:{},className:a()("west-ui-options-section--container",{[v]:!n})},((e,t)=>t?e?o.createElement("span",{id:y,className:"west-ui-options-section--title"},e):o.createElement(l.Z,{id:y,"aria-label":h("west-ui.select-options.options-section.aria-label.options")}):null)(i,n),e.map((e,n)=>o.createElement(m,{ref:e=>{c.current&&(c.current[f+n]=e)},option:e,showPin:t,pinned:r,selected:e.value===p,key:e.value,onClick:s,onPinClick:u}))):null};const b=e=>{const t=new Map;return e.forEach(e=>{var r;const n=e.group,a=null!==(r=t.get(n))&&void 0!==r?r:[];t.set(n,a),a.push(e)}),[...t.values()]},g=(0,o.forwardRef)(({filtered:e,pinned:t,suggested:r,selectedValue:n,showPin:u=!1,showTitles:c=!0,onClick:d,onClose:f,onPinClick:p,onOptionFocus:h=s.TV,className:m,...v},g)=>{var w,S;const E=(0,o.useRef)([]),N=(null===(w=null==t?void 0:t.options)||void 0===w?void 0:w.length)||0,T=(null===(S=null==r?void 0:r.options)||void 0===S?void 0:S.length)||0;(0,o.useEffect)(()=>{g&&"function"!=typeof g&&(g.current=E.current)},[g]);const x=(0,o.useCallback)(e=>{const t=(0,s.F9)(E);if(0===t.length)return;const r=(0,i.G)();switch(e.key){case"ArrowDown":{e.preventDefault();const n=t.findIndex(e=>e===r),a=t[n<0?0:Math.min(n+1,t.length-1)];a&&h(a);break}case"ArrowUp":{e.preventDefault();const n=t.findIndex(e=>e===r),a=t[n<0?t.length-1:Math.max(n-1,0)];a&&h(a);break}case"Escape":e.preventDefault(),e.stopPropagation(),null==f||f()}},[f,h]),C=N,k=N+T,O=(e=>{const t=b(e.filter(e=>!e.invalid)),r=new Map(b(e.filter(e=>e.invalid)).map(e=>[e[0].group,e]));return[...t.map(e=>{var t;if(!(e=>e.some(e=>!e.floating))(e))return e;const n=null!==(t=r.get(e[0].group))&&void 0!==t?t:[];return r.delete(e[0].group),[...e,...n]}),...r.values()]})((null==e?void 0:e.options)||[]),D=N>0||T>0;return o.createElement("div",{...v,className:a()("west-ui-select-options--container",m),role:"listbox",tabIndex:-1,onKeyDown:x},o.createElement(y,{title:null==t?void 0:t.title,options:(null==t?void 0:t.options)||[],showTitles:c,showPin:u,selectedValue:n,pinned:!0,onClick:d,onPinClick:p,itemRefs:E,startIndex:0}),o.createElement(y,{title:null==r?void 0:r.title,options:(null==r?void 0:r.options)||[],showTitles:c,showPin:u,selectedValue:n,onClick:d,onPinClick:p,itemRefs:E,startIndex:C}),O.map((e,t)=>{const r=k+O.slice(0,t).reduce((e,t)=>e+t.length,0);return o.createElement(o.Fragment,{key:t},(t>0||D)&&o.createElement(l.Z,{className:"west-ui-select-options--divider"}),o.createElement(y,{options:e,showTitles:!1,showPin:u,selectedValue:n,onClick:d,onPinCl
2ick:p,itemRefs:E,startIndex:r}))}))});g.displayName="SelectOptions";var w=g},47552:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(94184),a=r.n(n),o=r(67294),i=r(31552),l=r(29922),s={container:"west-ui-spinner--container",inline:"west-ui-spinner--inline",centered:"west-ui-spinner--centered",left:"west-ui-spinner--left",right:"west-ui-spinner--right",fullpage:"west-ui-spinner--fullpage",small:"west-ui-spinner--small",medium:"west-ui-spinner--medium",large:"west-ui-spinner--large"},u=({className:e,active:t=!1,children:n,size:u="large",position:c="centered",color:d="grey",as:f="div",...p})=>{const{t:h}=(0,l.$)(),m=()=>t?o.createElement(i.Z,{src:r(330)(`./loading_spinner_${d}.svg`),className:a()(s.container,s[u],s[c],e),alt:h("west-ui.spinner.aria-loading"),...p}):null;return"fullpage"===c?o.createElement(o.Fragment,null,n,m()):o.createElement(f,{className:a()(s.container,e)},n,m())}},20841:function(e,t,r){"use strict";var n=r(67294),a=r(79416);t.Z=({stations:e,value:t,error:r,onChange:o,...i})=>{const l=null==t?void 0:t.toString(),s=(0,n.useMemo)(()=>(e=>[...e].map(([e,t])=>({value:e.toString(),label:t.name,disabled:t.disabled,invalid:t.invalid,floating:t.isVirtual,group:t.regionId,aliases:t.searchTerms})))(e),[e]);return n.createElement(a.Z,{filtered:{options:s},value:l,onChange:e=>{null==o||o(Number(e))},error:r,showTitles:!1,...i})}},43109:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(94184),a=r.n(n),o=r(67294),i="west-ui-tab--active",l="west-ui-tab--large",s=({label:e,active:t,size:r="small",className:n,type:s="button",...u})=>o.createElement("button",{...u,role:"tab","aria-selected":t,type:s,className:a()("west-ui-tab--container",{[i]:t,[l]:"large"===r},n)},e),u=({tabs:e,className:t,preselected:r=0,size:n="small",...i})=>{const[l,u]=(0,o.useState)(r);return(0,o.useEffect)(()=>{u(r)},[r]),o.createElement("div",{...i,role:"tablist",className:a()("west-ui-tab-bar--container",t),style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`,"--active-tab":l,"--tab-count":e.length}},e.map((e,t)=>{const{label:r,onClick:a,...i}=e;return o.createElement(s,{key:t,...i,label:r,size:n,active:t===l,onClick:()=>{u(t),null==a||a(t)}})}),o.createElement("div",{className:"west-ui-tab-bar--toggle"}))}},34615:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(94184),a=r.n(n),o=r(67294),i=r(7352),l={container:"west-ui-tooltip--container",content:"west-ui-tooltip--content",top:"west-ui-tooltip--top",left:"west-ui-tooltip--left",bottom:"west-ui-tooltip--bottom",relative:"west-ui-tooltip--relative",reverse:"west-ui-tooltip--reverse",show:"west-ui-tooltip--show",hide:"west-ui-tooltip--hide",normal:"west-ui-tooltip--normal",bubble:"west-ui-tooltip--bubble",text:"west-ui-tooltip--text"},s=({label:e,children:t,className:r,tipClassName:n,show:s,relative:u,position:c="top",align:d="right",variant:f="normal",icon:p})=>o.createElement("div",{className:a()(r,l.container,l[f],l[c],{[l.show]:!0===s,[l.hide]:!1===s,[l.left]:"left"===d,[l.relative]:u,[l.reverse]:u&&"bottom"===c})},e&&o.createElement("div",{className:a()(l.content,n)},p?o.createElement(i.Z,{content:e,...p}):e),t)},31567:function(e,t,r){"use strict";r.d(t,{t:function(){return S},Z:function(){return E}});var n=r(94184),a=r.n(n),o=r(67294),i=r(88467),l=r(52504),s=r(5883),u=r(32947),c="west-ui-input-basic--error",d="west-ui-input-basic--small",f="west-ui-input-basic--full",p="west-ui-input-basic--number-input",h=({className:e,type:t,size:r,error:n=!1,...i})=>o.createElement("input",{...i,className:a()("west-ui-input-basic--container",e,{[c]:n,[p]:"number"===t,[d]:"small"===r,[f]:"full"===t}),type:t}),m=r(29922),v="west-ui-counter-item--typeable",y=({ariaLabels:e,className:t,icon:r,label:n,subLabel:l,onChange:c,onMinClick:d,onMaxClick:f,typeable:p=!1,value:y=0,min:b=0,max:g=1/0,...w})=>{const[S,E]=(0,o.useState)((0,i._z)(y,b,g)),{t:N}=(0,m.$)(),T=N("west-ui.counter-item.label.amount");(0,o.useEffect)(()=>{null==c||c(S)},[S]),(0,o.useEffect)(()=>{E(p?y:(0,i._z)(y,b,g))},[y,b,g,p]);const x=(0,o.useCallback)(()=>{S<g?E(S+1):null==f||f()},[S,g,f]),C=(0,o.useCallback)(()=>{S>b?E(S-1):null==d||d()},[S,b,d]),k=S>=b&&S<=g;return o.createElement("div",{...w,className:a()("west-ui-counter-item--container",t),"data-testid":w["data-testid"]},o.createElement("div",{className:"west-ui-counter-item--content"},r&&o.createElement(s.Z,{name:r,className:"west-ui-counter-item--icon"}),o.createElement("span",{className:"west-ui-counter-item--labels"},n&&o.createElement("span",null,n),l&&o.createElement("span",{className:"west-ui-counter-item--sub-label"},l))),o.createElement("div",{className:a()("west-ui-counter-item--counter",{[v]:p})},o.createElement(u.Z,{icon:"minus",size:"medium",onClick:C,disabled:S<=b,"aria-label":e.remove,"data-testid":"minus"}),p?o.createElement(h,{type:"number",value:S.toString(),"aria-label":`${T} ${n}
2`,onChange:e=>{E(e.target.value)},onBlur:e=>{E((0,i._z)(parseInt(e.target.value,10),b,g))},size:"small",error:!k,"data-testid":"amount"}):o.createElement("span",{className:"west-ui-counter-item--value","data-testid":"amount"},S),o.createElement(u.Z,{icon:"plus",size:"medium",onClick:x,disabled:S>=g,"aria-label":e.add,"data-testid":"plus"})))},b=r(42e3),g=r(42342),w=r(55475);const S=(e,t)=>Math.max(e,1)*t;var E=({adults:e=0,children:t=0,pets:r=0,bikes:n=0,wheelchairs:s=0,carers:u=0,maxAdults:c=5,getMaxAdults:d,maxChildren:f=4,maxPets:p=5,maxBikes:h,maxWheelchairs:v=2,maxCarers:E,typeableFields:N=!1,minAdults:T=0,minChildren:x=0,minPets:C=0,minBikes:k=0,minWheelchairs:O=0,minCarers:D=0,content:R,groupTicket:_,notesSection:A,className:L,onClose:M,onChange:P,labels:I={},...j})=>{var F,U,B,H,Z,W,z,$,G,V,q,K,Y,J,X,Q,ee,te,re,ne,ae,oe;const{t:ie}=(0,m.$)(),le={titles:{passengers:ie("west-ui.traveller-modal.title.passengers"),adults:ie("west-ui.traveller-modal.title.adults"),children:ie("west-ui.traveller-modal.title.children"),wheelchair:ie("west-ui.traveller-modal.title.wheelchair"),carers:ie("west-ui.traveller-modal.title.carers"),bike:ie("west-ui.traveller-modal.title.bike"),pets:ie("west-ui.traveller-modal.title.pets"),petPrice:ie("west-ui.traveller-modal.title.pets-price")},labels:{finish:ie("west-ui.traveller-modal.label.finish")},ariaLabels:{add:ie("west-ui.traveller-modal.aria-labels.add"),remove:ie("west-ui.traveller-modal.aria-labels.remove")},texts:{childrenAgeLimit:ie("west-ui.traveller-modal.text.children-age-limit"),childrenInfo:ie("west-ui.traveller-modal.text.children-info"),wheelchairInfo:ie("west-ui.traveller-modal.text.wheelchair-info"),carersInfo:ie("west-ui.traveller-modal.text.carers-info"),bicycleInfo:ie("west-ui.traveller-modal.text.bicycle-info"),petsInfo:ie("west-ui.traveller-modal.text.pets-info"),free:ie("west-ui.traveller-modal.text.free")}},se={title:le.titles.passengers,...I},ue=(0,i._z)(e,T,(null==d?void 0:d({children:t}))||c),ce=(0,i._z)(t,x,S(ue,f)),de=(0,i._z)(r,C,p),fe=(0,i._z)(n,k,h),pe=(0,i._z)(s,O,v),he=(0,i._z)(u,D,Math.min(ue+ce,null!=E?E:ue+ce)),me=o.useRef(null),[ve,ye]=o.useState(ue),[be,ge]=o.useState(ce),[we,Se]=o.useState(de),[Ee,Ne]=o.useState(fe),[Te,xe]=o.useState(pe),[Ce,ke]=o.useState(he),Oe=(null==d?void 0:d({children:be}))||c,De=(0,i._z)(ve+be,null!=D?D:0,null!=E?E:ve+be);(0,o.useEffect)(()=>{ye(ue)},[ue]),(0,o.useEffect)(()=>{ge(ce)},[ce]),(0,o.useEffect)(()=>{Se(de)},[de]),(0,o.useEffect)(()=>{Ne(fe)},[fe]),(0,o.useEffect)(()=>{xe(pe)},[pe]),(0,o.useEffect)(()=>{ke(he)},[he]),(0,o.useEffect)(()=>{Ae()},[ve,be,we,Ee,Te,Ce]);const Re=e=>{e<Ee+Te&&(Ee>0?Ne(Ee-1):xe(Te-1))},_e=()=>{null==M||M()},Ae=()=>{null==P||P({adults:ve,children:be,pets:we,bikes:Ee,wheelchairs:Te,carers:Ce})},Le=0!==Oe,Me=0!==f,Pe=0!==p,Ie=0!==h,je=0!==v,Fe=0!==E&&(Le||Me),Ue=Le||Me;return o.createElement(g.Z,{className:a()(w.Z.container,L),title:se.title,buttons:[o.createElement(l.Z,{key:"save-selection",size:"small",onClick:_e,label:le.labels.finish,fit:!0,disabled:!!(ve<T||void 0!==Oe&&ve>Oe||be<x||void 0!==f&&be>S(ve,f)||we<C||void 0!==p&&we>p||Ee<k||void 0!==h&&Ee>h||Te<O||void 0!==v&&Te>v||Ce<D||void 0!==De&&Ce>De),"data-testid":"save-selection"})],onHeaderClick:_e,"data-testid":null==j?void 0:j["data-testid"]},Le&&o.createElement(y,{icon:"person",onChange:e=>{ye(e),Re(e+be),(e=>{const t=S(e,f);be>t&&ge((0,i._z)(be,x,t))})(e)},value:ve,label:(null===(F=null==R?void 0:R.adults)||void 0===F?void 0:F.label)||le.titles.adults,subLabel:null===(U=null==R?void 0:R.adults)||void 0===U?void 0:U.subLabel,className:a()(w.Z.adults),min:T,max:Oe,onMaxClick:()=>{var e;null===(e=null==me?void 0:me.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},typeable:N,ariaLabels:{remove:`${le.ariaLabels.remove} (${le.titles.adults})`,add:`${le.ariaLabels.add} (${le.titles.adults})`},"data-testid":"adults"}),Me&&o.createElement(o.Fragment,null,o.createElement(y,{icon:"child-reaching",onChange:e=>{ge(e),Re(e+ve),(e=>{const t=(null==d?void 0:d({children:e}))||Oe;ve>t&&ye((0,i._z)(ve,T,t))})(e)},value:be,label:(null===(B=null==R?void 0:R.children)||void 0===B?void 0:B.label)||le.titles.children,subLabel:(null===(H=null==R?void 0:R.children)||void 0===H?void 0:H.subLabel)||le.texts.childrenAgeLimit,className:a()(w.Z.noBorder),min:x,max:Math.max(f,S(ve,f)),typeable:N,ariaLabels:{remove:`${le.ariaLabels.remove} (${le.titles.children})`,add:`${le.ariaLabels.add} (${le.titles.children})`},"data-testid":"children"}),o.createElement(b.Z,{className:w.Z.withBorder,title:(null===(Z=null==R?void 0:R.children)||void 0===Z?void 0:Z.infoTitle)||le.titles.children,body:(null===(W=null==R?void 0:R.children)||void 0===W?void 0:W.infoBody)||le.texts.childrenInfo})),Fe&&o.createElement(o.Fragment,null,o.createElement(y,{icon:"universal-access",onChange:e=>{ke(e)},value:Ce,label:(null===(z=null==R?void 0:R.carers)||void 0===z?void 0:z.label)||le.titles.carers,subLabel:null===($=null==R?void 0:R.carers)||void 0===$?void 0:$.subLabel,className:w.Z.noBorder,min:D,max:De,typeable:N,ariaLabels:{remove:`${le.ariaLabels.remove} (${le.titles.carers})`,add:`${le.ariaLabels.add} (${le.titles.carers})`},"data-testid":"carers"}),o.createElement(b.Z,{className:w.Z.withBorder,title:(null===(G=null==R?void 0:R.carers)||void 0===G?void 0:G.infoTitle)||le.titles.carers,body:(null===(V=null==R?void 0:R.carers)||void 0===V?void 0:V.infoBody)||le.texts.carersInfo})),je&&o.createElement(o.Fragment,null,o.createElement(y,{icon:"wheelchair",onChange:e=>{xe(e)},value:Te,label:(null===(q=null==R?void 0:R.wheelchairs)||void 0===q?void 0:q.label)||le.titles.wheelchair,subLabel:(null===(K=null==R?void 0:R.wheelchairs)||void 0===K?void 0:K.subLabel)||le.texts.free,className:w.Z.noBorder,min:O,max:Ue?Math.min(ve+be-Ee,v):v,typeable:N,ariaLabels:{remove:`${le.ariaLabels.remove} (${le.titles.wheelchair})`,add:`${le.ariaLabels.add} (${le.titles.wheelchair})`},"data-testid":"wheelchairs"}),o.createElement(b.Z,{className:w.Z.withBorder,title:(null===(Y=null==R?void 0:R.wheelchairs)||void 0===Y?void 0:Y.infoTitle)||le.titles.wheelchair,body:(null===(J=null==R?void 0:R.wheelchairs)||void 0===J?void 0:J.infoBody)||le.texts.wheelchairInfo})),Ie&&o.createElement(o.Fragment,null,o.createElement(y,{icon:"bicycle",onChange:e=>{Ne(e)},value:Ee,label:(null===(X=null==R?void 0:R.bikes)||void 0===X?void 0:X.label)||le.titles.bike,subLabel:null===(Q=null==R?void 0:R.bikes)||void 0===Q?void 0:Q.subLabel,className:w.Z.noBorder,min:k,max:Ue?ve+be-Te:h,typeable:N,ariaLabels:{remove:`${le.ariaLabels.remove} (${le.titles.bike})`,add:`${le.ariaLabels.add} (${le.titles.bike})`},"data-testid":"bikes"}),o.createElement(b.Z,{className:w.Z.withBorder,title:(null===(ee=null==R?void 0:R.bikes)||void 0===ee?void 0:ee.infoTitle)||le.titles.bike,body:(null===(te=null==R?void 0:R.bikes)||void 0===te?void 0:te.infoBody)||le.texts.bicycleInfo})),Pe&&o.createElement(o.Fragment,null,o.createElement(y,{icon:"dog",onChange:e=>{Se(e)},value:we,label:(null===(re=null==R?void 0:R.pets)||void 0===re?void 0:re.label)||le.titles.pets,subLabel:(null===(ne=null==R?void 0:R.pets)||void 0===ne?void 0:ne.subLabel)||le.titles.petPrice,className:a()(w.Z.noBorder),min:C,max:p,typeable:N,ariaLabels:{remove:`${le.ariaLabels.remove} (${le.titles.pets})`,add:`${le.ariaLabels.add} (${le.titles.pets})`},"data-testid":"pets"}),o.createElement(b.Z,{className:w.Z.withBorder,title:(null===(ae=null==R?void 0:R.pets)||void 0===ae?void 0:ae.infoTitle)||le.titles.pets,body:(null===(oe=null==R?void 0:R.pets)||void 0===oe?void 0:oe.infoBody)||le.texts.petsInfo})),null==_?void 0:_({adults:ve,children:be,pets:we},me),null==A?void 0:A({adults:ve,children:be,pets:we},me))}},42791:function(e,t,r){"use strict";var n=r(67294),a=r(43660);const o=/(WEST)(?!bahn)(\w+)/gi;t.Z=({text:e,className:t,as:r})=>n.createElement(a.Z,{as:r,className:t,html:(e=>e.replace(o,(e,t,r)=>`<sup>West</sup>${r.charAt(0).toUpperCase()+r.slice(1)}`))(e)})},85266:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(94184),a=r.n(n),o=r(67294),i=r(73935),l=r(16551),s=r(6470
25),u=r(14937),c={container:"west-ui-overlay--container",top:"west-ui-overlay--top",right:"west-ui-overlay--right",shown:"west-ui-overlay--shown",hidden:"west-ui-overlay--hidden",animating:"west-ui-overlay--animating",invisible:"west-ui-overlay--invisible",transition:"west-ui-overlay--transition",fade:"west-ui-overlay--fade",slide:"west-ui-overlay--slide",fadeIn:"west-ui-overlay--fade-in",fadeOut:"west-ui-overlay--fade-out",slideDown:"west-ui-overlay--slide-down",slideUp:"west-ui-overlay--slide-up",slideUpTop:"west-ui-overlay--slide-up-top",slideDownTop:"west-ui-overlay--slide-down-top",slideLeft:"west-ui-overlay--slide-left",slideLeftToRight:"west-ui-overlay--slide-left-to-right"},d=({className:e,children:t,show:r=!1,onClose:n,canOutsideClickClose:d=!0,canEscapeKeyClose:f=!0,keepChildrenMounted:p=!1,animation:h="slide",position:m="center",preventScrollOnClose:v=!1,...y})=>{const b=(0,o.useId)(),[g,w]=(0,o.useState)(!1),[S,E]=(0,o.useState)(!1),[N,T]=(0,o.useState)(!1),x=(0,s.nJ)(),C=(0,o.useRef)(null),{lockScroll:k,unlockScroll:O}=(0,u.Z)(document.body),D=S||N&&p||g,R=!D&&!p,_=(0,o.useCallback)(()=>{const e=[...x.querySelectorAll(`.${c.container}:not(.${c.hidden}, .${c.invisible})`)].pop();return C.current===e},[C,x]);(0,o.useEffect)(()=>{S&&h&&w(!0),E(r),r&&T(!0)},[r,S,h]);const A=(0,o.useCallback)(()=>{h&&w(!0),null==n||n(),E(!1)},[h,n]);return(0,o.useEffect)(()=>{if(!f)return;if(null===C.current)return;const e=({key:e})=>{"Escape"===e&&_()&&A()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[f,A,C,_,S]),(0,o.useEffect)(()=>{if(!d)return;if(null===C.current)return;const e=e=>{const[t]=e.composedPath();C.current===t&&_()&&A()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,A,C,_,S]),(0,o.useEffect)(()=>(S?k():O(),()=>{O()}),[S]),(0,o.useEffect)(()=>{var e;S&&!g&&_()&&(null===(e=C.current)||void 0===e||e.focus())},[S,g,_,C]),(0,l.Z)(C,S,v),R?null:(0,i.createPortal)(D?o.createElement("div",{...y,className:a()(c.container,c[m],e,{[c.shown]:S,[c.hidden]:!S,[c[h]]:!0,[c.transition]:h,[c.animating]:g,[c.invisible]:!r&&p}),ref:C,onAnimationStart:()=>h&&w(!0),onAnimationEnd:()=>h&&w(!1)},t):null,x,`overlay-${b}`)}},27080:function(e,t,r){"use strict";var n=r(67294);t.Z=(e,t)=>{(0,n.useEffect)(()=>{const r=r=>{const[n]=r.composedPath();e.every(e=>e.current&&!e.current.contains(n))&&t()};return document.addEventListener("pointerdown",r),()=>document.removeEventListener("pointerdown",r)},[e,t])}},78025:function(e,t,r){"use strict";var n=r(67294);const a=e=>e||null;t.Z=({value:e,selectedValue:t,options:r,onSync:o})=>{const i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{void 0!==e&&(i.current=!0),i.current&&a(e)!==a(t)&&(e?-1!==r.findIndex(t=>t.value===e)&&o(e):o(null))},[e,t,r,o])}},14937:function(e,t,r){"use strict";var n=r(67294);const a=new WeakMap;t.Z=(e=document.body)=>{const t=(0,n.useRef)([]),r=(0,n.useCallback)(()=>{if(!e||0===t.current.length)return;const r=a.get(e);if("number"!=typeof r||r<=0)return;const n=r-1;t.current.pop(),n>0?a.set(e,n):(a.delete(e),e.style.overflow="")},[e]),o=(0,n.useCallback)(()=>{if(!e)return void console.warn("useOverflowHidden: Cannot lock scroll, element is not available.");const n=a.get(e)||0;0===n&&(e.style.overflow="hidden"),a.set(e,n+1),t.current.push(r)},[e,r]);return(0,n.useEffect)(()=>()=>{for(;t.current.length>0;)r()},[r]),{lockScroll:o,unlockScroll:r}}},88796:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});const n={Spacebar:" "},a=(...e)=>()=>e.some(e=>e());t.Z=e=>t=>{var r,a;const o=null!==(r=n[t.key])&&void 0!==r?r:t.key;(null===(a=e[o])||void 0===a?void 0:a.call(e))&&(t.preventDefault(),t.stopPropagation())}},330:function(e,t,r){var n={"./loading_spinner_dark.svg":60978,"./loading_spinner_grey.svg":38165,"./loading_spinner_light.svg":78980};function a(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=o,e.exports=a,a.id=330},20698:function(e){"use strict";e.exports="build/assets/arrow-switch-button1289d8e47d12155ee877.svg"},60978:function(e){"use strict";e.exports="build/assets/loading_spinner_darke96773e42a44d4ed1e47.svg"},38165:function(e){"use strict";e.exports="build/assets/loading_spinner_grey8999a4fff954f2bc69fb.svg"},78980:function(e){"use strict";e.exports="build/assets/loading_spinner_lightce72f47d628c1ff457fc.svg"},22424:function(e,t,r){"use strict";r.d(t,{Z:function(){return re}});const{entries:n,setPrototypeOf:a,isFrozen:o,getPrototypeOf:i,getOwnPropertyDescriptor:l}=Object;let{freeze:s,seal:u,create:c}=Object,{apply:d,construct:f}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e){return e}),u||(u=function(e){return e}),d||(d=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];return e.apply(t,n)}),f||(f=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});const p=O(Array.prototype.forEach),h=O(Array.prototype.lastIndexOf),m=O(Array.prototype.pop),v=O(Array.prototype.push),y=O(Array.prototype.splice),b=O(String.prototype.toLowerCase),g=O(String.prototype.toString),w=O(String.prototype.match),S=O(String.prototype.replace),E=O(String.prototype.indexOf),N=O(String.prototype.trim),T=O(Object.prototype.hasOwnProperty),x=O(RegExp.prototype.test),C=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return f(k,t)});var k;function O(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return d(e,t,n)}}function D(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;a&&a(e,null);let n=t.length;for(;n--;){let a=t[n];if("string"==typeof a){const e=r(a);e!==a&&(o(t)||(t[n]=e),a=e)}e[a]=!0}return e}function R(e){for(let t=0;t<e.length;t++)T(e,t)||(e[t]=null);return e}function _(e){const t=c(null);for(const[r,a]of n(e))T(e,r)&&(Array.isArray(a)?t[r]=R(a):a&&"object"==typeof a&&a.constructor===Object?t[r]=_(a):t[r]=a);return t}function A(e,t){for(;null!==e;){const r=l(e,t);if(r){if(r.get)return O(r.get);if("function"==typeof r.value)return O(r.value)}e=i(e)}return function(){return null}}const L=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=s(["#text"]),B=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Z=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=u(/<%[\w\W]*|[\w\W]*%>/gm),G=u(/\$\{[\w\W]*/gm),V=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),q=u(/^aria-[\-\w]+$/),K=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=u(/^(?:\w+script|data):/i),J=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=u(/^html$/i),Q=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:q,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:Q,DATA_ATTR:V,DOCTYPE_NAME:X,ERB_EXPR:$,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:z,TMPLIT_EXPR:G});const te=function(){return"undefined"==typeof window?null:window};var re=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const r=t=>e(t);if(r.version="3.3.2",r.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return r.isSupported=!1,r;let{document:a}=t;const o=a,i=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:u,Node:d,Element:f,NodeFilter:k,NamedNodeMap:O=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:R,DOMParser:z,trustedTypes:$}=t,G=f.prototype,V=A(G,"cloneNode"),q=A(G,"remove"),Y=A(G,"nextSibling"),J=A(G,"childNodes"),Q=A(G,"parentNode");if("function"==typeof u){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let re,ne="";const{implementation:ae,createNodeIterator:oe,createDocumentFragment:ie,getElementsByTagName:le}=a,{importNode:se}=o;let ue={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof n&&"function"==typeof Q&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:ce,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:he,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ve,CUSTOM_ELEMENT:ye}=ee;let{IS_ALLOWED_URI:be}=ee,ge=null;const we=D({},[...L,...M,...P,...j,...U]);let Se=null;const Ee=D({},[...B,...H,...Z,...W]);let Ne=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null;const Ce=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ke=!0,Oe=!0,De=!1,Re=!0,_e=!1,Ae=!0,Le=!1,Me=!1,Pe=!1,Ie=!1,je=!1,Fe=!1,Ue=!0,Be=!1,He=!0,Ze=!1,We={},ze=null;const $e=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const Ve=D({},["audio","video","img","source","image","track"]);let qe=null;const Ke=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Qe=Xe,et=!1,tt=null;const rt=D({},[Ye,Je,Xe],g);let nt=D({},["mi","mo","mn","ms","mtext"]),at=D({},["annotation-xml"]);const ot=D({}
vendor: 3,243 bytes, line 2
2,["title","style","font","a","script"]);let it=null;const lt=["application/xhtml+xml","text/html"];let st=null,ut=null;const ct=a.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ut||ut!==e){if(e&&"object"==typeof e||(e={}),e=_(e),it=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===it?g:b,ge=T(e,"ALLOWED_TAGS")?D({},e.ALLOWED_TAGS,st):we,Se=T(e,"ALLOWED_ATTR")?D({},e.ALLOWED_ATTR,st):Ee,tt=T(e,"ALLOWED_NAMESPACES")?D({},e.ALLOWED_NAMESPACES,g):rt,qe=T(e,"ADD_URI_SAFE_ATTR")?D(_(Ke),e.ADD_URI_SAFE_ATTR,st):Ke,Ge=T(e,"ADD_DATA_URI_TAGS")?D(_(Ve),e.ADD_DATA_URI_TAGS,st):Ve,ze=T(e,"FORBID_CONTENTS")?D({},e.FORBID_CONTENTS,st):$e,Te=T(e,"FORBID_TAGS")?D({},e.FORBID_TAGS,st):_({}),xe=T(e,"FORBID_ATTR")?D({},e.FORBID_ATTR,st):_({}),We=!!T(e,"USE_PROFILES")&&e.USE_PROFILES,ke=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,_e=e.SAFE_FOR_TEMPLATES||!1,Ae=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,Ue=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,He=!1!==e.KEEP_CONTENT,Ze=e.IN_PLACE||!1,be=e.ALLOWED_URI_REGEXP||K,Qe=e.NAMESPACE||Xe,nt=e.MATHML_TEXT_INTEGRATION_POINTS||nt,at=e.HTML_INTEGRATION_POINTS||at,Ne=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ne.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ne.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),_e&&(Oe=!1),je&&(Ie=!0),We&&(ge=D({},U),Se=c(null),!0===We.html&&(D(ge,L),D(Se,B)),!0===We.svg&&(D(ge,M),D(Se,H),D(Se,W)),!0===We.svgFilters&&(D(ge,P),D(Se,H),D(Se,W)),!0===We.mathMl&&(D(ge,j),D(Se,Z),D(Se,W))),T(e,"ADD_TAGS")||(Ce.tagCheck=null),T(e,"ADD_ATTR")||(Ce.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Ce.tagCheck=e.ADD_TAGS:(ge===we&&(ge=_(ge)),D(ge,e.ADD_TAGS,st))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Ce.attributeCheck=e.ADD_ATTR:(Se===Ee&&(Se=_(Se)),D(Se,e.ADD_ATTR,st))),e.ADD_URI_SAFE_ATTR&&D(qe,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(ze===$e&&(ze=_(ze)),D(ze,e.FORBID_CONTENTS,st)),e.ADD_FORBID_CONTENTS&&(ze===$e&&(ze=_(ze)),D(ze,e.ADD_FORBID_CONTENTS,st)),He&&(ge["#text"]=!0),Le&&D(ge,["html","head","body"]),ge.table&&(D(ge,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');re=e.TRUSTED_TYPES_POLICY,ne=re.createHTML("")}else void 0===re&&(re=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;
vendor: 4,308 bytes, line 2
2const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}($,i)),null!==re&&"string"==typeof ne&&(ne=re.createHTML(""));s&&s(e),ut=e}},pt=D({},[...M,...P,...I]),ht=D({},[...j,...F]),mt=function(e){v(r.removed,{element:e});try{Q(e).removeChild(e)}catch(t){q(e)}},vt=function(e,t){try{v(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ie||je)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,r=null;if(Pe)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===it&&Qe===Xe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=re?re.createHTML(e):e;if(Qe===Xe)try{t=(new z).parseFromString(n,it)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?ne:n}catch(e){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(a.createTextNode(r),o.childNodes[0]||null),Qe===Xe?le.call(t,Le?"html":"body")[0]:Le?t.documentElement:o},bt=function(e){return oe.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT|k.SHOW_PROCESSING_INSTRUCTION|k.SHOW_CDATA_SECTION,null)},gt=function(e){return e instanceof R&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof O)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof d&&e instanceof d};function St(e,t,n){p(e,e=>{e.call(r,t,n,ut)})}const Et=function(e){let t=null;if(St(ue.beforeSanitizeElements,e,null),gt(e))return mt(e),!0;const n=st(e.nodeName);if(St(ue.uponSanitizeElement,e,{tagName:n,allowedTags:ge}),Ae&&e.hasChildNodes()&&!wt(e.firstElementChild)&&x(/<[/\w!]/g,e.innerHTML)&&x(/<[/\w!]/g,e.textContent))return mt(e),!0;if(7===e.nodeType)return mt(e),!0;if(Ae&&8===e.nodeType&&x(/<[/\w]/g,e.data))return mt(e),!0;if(!(Ce.tagCheck instanceof Function&&Ce.tagCheck(n))&&(!ge[n]||Te[n])){if(!Te[n]&&Tt(n)){if(Ne.tagNameCheck instanceof RegExp&&x(Ne.tagNameCheck,n))return!1;if(Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(n))return!1}if(He&&!ze[n]){const t=Q(e)||e.parentNode,r=J(e)||e.childNodes;if(r&&t)for(let n=r.length-1;n>=0;--n){const a=V(r[n],!0);a.__removalCount=(e.__removalCount||0)+1,t.insertBefore(a,Y(e))}}return mt(e),!0}return e instanceof f&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const r=b(e.tagName),n=b(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Xe?"svg"===r:t.namespaceURI===Ye?"svg"===r&&("annotation-xml"===n||nt[n]):Boolean(pt[r]):e.namespaceURI===Ye?t.namespaceURI===Xe?"math"===r:t.namespaceURI===Je?"math"===r&&at[n]:Boolean(ht[r]):e.namespaceURI===Xe?!(t.namespaceURI===Je&&!at[n])&&!(t.namespaceURI===Ye&&!nt[n])&&!ht[r]&&(ot[r]||!pt[r]):!("application/xhtml+xml"!==it||!tt[e.namespaceURI]))}(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!x(/<\/no(script|embed|frames)/i,e.innerHTML)?(_e&&3===e.nodeType&&(t=e.textContent,p([ce,de,fe],e=>{t=S(t,e," ")}),e.textContent!==t&&(v(r.removed,{element:e.cloneNode()}),e.textContent=t)),St(ue.afterSanitizeElements,e,null),!1):(mt(e),!0)},Nt=function(e,t,r){if(xe[t])return!1;if(Ue&&("id"===t||"name"===t)&&(r in a||r in ct))return!1;if(Oe&&!xe[t]&&x(pe,t));else if(ke&&x(he,t));else if(Ce.attributeCheck instanceof Function&&Ce.attributeCheck(t,e));else if(!Se[t]||xe[t]){if(!(Tt(e)&&(Ne.tagNameCheck instanceof RegExp&&x(Ne.tagNameCheck,e)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(e))&&(Ne.attributeNameCheck instanceof RegExp&&x(Ne.attributeNameCheck,t)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(t,e))||"is"===t&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&x(Ne.tagNameCheck,r)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(r))))return!1}else if(qe[t]);else if(x(be,S(r,ve,"")));
2else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(r,"data:")||!Ge[e])if(De&&!x(me,S(r,ve,"")));else if(r)return!1;return!0},Tt=function(e){return"annotation-xml"!==e&&w(e,ye)},xt=function(e){St(ue.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||gt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let a=t.length;for(;a--;){const o=t[a],{name:i,namespaceURI:l,value:s}=o,u=st(i),c=s;let d="value"===i?c:N(c);if(n.attrName=u,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,St(ue.uponSanitizeAttribute,e,n),d=n.attrValue,!Be||"id"!==u&&"name"!==u||(vt(i,e),d="user-content-"+d),Ae&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){vt(i,e);continue}if("attributename"===u&&w(d,"href")){vt(i,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){vt(i,e);continue}if(!Re&&x(/\/>/i,d)){vt(i,e);continue}_e&&p([ce,de,fe],e=>{d=S(d,e," ")});const f=st(e.nodeName);if(Nt(f,u,d)){if(re&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(l);else switch($.getAttributeType(f,u)){case"TrustedHTML":d=re.createHTML(d);break;case"TrustedScriptURL":d=re.createScriptURL(d)}if(d!==c)try{l?e.setAttributeNS(l,i,d):e.setAttribute(i,d),gt(e)?mt(e):m(r.removed)}catch(t){vt(i,e)}}else vt(i,e)}St(ue.afterSanitizeAttributes,e,null)},Ct=function e(t){let r=null;const n=bt(t);for(St(ue.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)St(ue.uponSanitizeShadowNode,r,null),Et(r),xt(r),r.content instanceof l&&e(r.content);St(ue.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,i=null,s=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw C("toString is not a function");if("string"!=typeof(e=e.toString()))throw C("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Me||ft(t),r.removed=[],"string"==typeof e&&(Ze=!1),Ze){if(e.nodeName){const t=st(e.nodeName);if(!ge[t]||Te[t])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)n=yt("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Ie&&!_e&&!Le&&-1===e.indexOf("<"))return re&&Fe?re.createHTML(e):e;if(n=yt(e),!n)return Ie?null:Fe?ne:""}n&&Pe&&mt(n.firstChild);const u=bt(Ze?e:n);for(;i=u.nextNode();)Et(i),xt(i),i.content instanceof l&&Ct(i.content);if(Ze)return e;if(Ie){if(je)for(s=ie.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(Se.shadowroot||Se.shadowrootmode)&&(s=se.call(o,s,!0)),s}let c=Le?n.outerHTML:n.innerHTML;return Le&&ge["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&x(X,n.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+c),_e&&p([ce,de,fe],e=>{c=S(c,e," ")}),re&&Fe?re.createHTML(c):c},r.setConfig=function(){ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},r.clearConfig=function(){ut=null,Me=!1},r.isValidAttribute=function(e,t,r){ut||ft({});const n=st(e),a=st(t);return Nt(n,a,r)},r.addHook=function(e,t){"function"==typeof t&&v(ue[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=h(ue[e],t);return-1===r?void 0:y(ue[e],r,1)[0]}return m(ue[e])},r.removeHooks=function(e){ue[e]=[]},r.removeAllHooks=function(){ue={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()},36554:function(e,t,r){"use strict";r.d(t,{ZP:function(){return Ht}});var n=r(85893),a=r(67294);function o(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=o(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}var i=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=o(e))&&(n&&(n+=" "),n+=t);return n},l=r(20773);function s(e){return JSON.stringify(e)}function u(e){return"string"==typeof e}function c(e,t,r){return r.indexOf(e)===t}function d(e){return-1===e.indexOf(",")?e:e.split(",")}function f(e){if(!e)return e;if("C"===e||"posix"===e||"POSIX"===e)return"en-US";if(-1!==e.indexOf(".")){var t=e.split(".")[0];return f(void 0===t?"":t)}if(-1!==e.indexOf("@")){var r=e.split("@")[0];return f(void 0===r?"":r)}if(-1===e.indexOf("-")||(n=e).toLowerCase()!==n)return e;var n,a=e.split("-"),o=a[0],i=a[1],l=void 0===i?"":i;return"".concat(o,"-").concat(l.toUpperCase())}var p=l(function(e){var t=void 0===e?{}:e,r=t.useFallbackLocale,n=void 0===r||r,a=t.fallbackLocale,o=void 0===a?"en-US":a,i=[];if("undefined"!=typeof navigator){for(var l=[],s=0,p=navigator.languages||[];s<p.length;s++){var h=p[s];l=l.concat(d(h))}var m=navigator.language,v=m?d(m):m;i=i.concat(l,v)}return n&&i.push(o),i.filter(u).map(f).filter(c)},s),h=l(function(e){return p(e)[0]||null},s),m=h;function v(e,t,r){return function(n,a){void 0===a&&(a=r);var o=e(n)+a;return t(o)}}function y(e){return function(t){return new Date(e(t).getTime()-1)}}function b(e,t){return function(r){return[e(r),t(r)]}}function g(e){if(e instanceof Date)return e.getFullYear();if("number"==typeof e)return e;var t=parseInt(e,10);if("string"==typeof e&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function w(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function S(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function E(e){var t=g(e),r=t+(1-t)%100,n=new Date;return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}var N=v(g,E,-100),T=v(g,E,100),x=y(T),C=v(g,x,-100),k=(v(g,x,100),b(E,x));function O(e){var t=g(e),r=t+(1-t)%10,n=new Date;return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}var D=v(g,O,-10),R=v(g,O,10),_=y(R),A=v(g,_,-10),L=(v(g,_,10),b(O,_));function M(e){var t=g(e),r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}var P=v(g,M,-1),I=v(g,M,1),j=y(I),F=v(g,j,-1),U=(v(g,j,1),b(M,j));function B(e,t){return function(r,n){void 0===n&&(n=t);var a=g(r),o=w(r)+n,i=new Date;return i.setFullYear(a,o,1),i.setHours(0,0,0,0),e(i)}}function H(e){var t=g(e),r=w(e),n=new Date;return n.setFullYear(t,r,1),n.setHours(0,0,0,0),n}var Z=B(H,-1),W=B(H,1),z=y(W),$=B(z,-1),G=(B(z,1),b(H,z));function V(e,t){return function(r,n){void 0===n&&(n=t);var a=g(r),o=w(r),i=S(r)+n,l=new Date;return l.setFullYear(a,o,i),l.setHours(0,0,0,0),e(l)}}function q(e){var t=g(e),r=w(e),n=S(e),a=new Date;return a.setFullYear(t,r,n),a.setHours(0,0,0,0),a}V(q,-1);var K=y(V(q,1)),Y=(V(K,-1),V(K,1),b(q,K));function J(e){return S(z(e))}var X="gregory",Q="hebrew",ee="islamic",te="iso8601",re={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-B
2R"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},ne=[0,1,2,3,4,5,6],ae=new Map;function oe(e){return function(t,r){return function(e){return function(t,r){var n=t||m();ae.has(n)||ae.set(n,new Map);var a=ae.get(n);return a.has(e)||a.set(e,new Intl.DateTimeFormat(n||void 0,e).format),a.get(e)(r)}}(e)(t,function(e){var t=new Date(e);return new Date(t.setHours(12))}(r))}}oe({day:"numeric",month:"numeric",year:"numeric"});var ie=oe({day:"numeric"}),le=oe({day:"numeric",month:"long",year:"numeric"}),se=oe({month:"long"}),ue=oe({month:"long",year:"numeric"}),ce=oe({weekday:"short"}),de=oe({weekday:"long"}),fe=oe({year:"numeric"}),pe=ne[0],he=ne[5],me=ne[6];function ve(e,t){void 0===t&&(t=te);var r=e.getDay();switch(t){case te:return(r+6)%7;case ee:return(r+1)%7;case Q:case X:return r;default:throw new Error("Unsupported calendar type.")}}function ye(e,t){void 0===t&&(t=te);var r=g(e),n=w(e),a=e.getDate()-ve(e,t);return new Date(r,n,a)}function be(e,t){switch(e){case"century":return E(t);case"decade":return O(t);case"year":return M(t);case"month":return H(t);case"day":return q(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function ge(e,t){switch(e){case"century":return T(t);case"decade":return R(t);case"year":return I(t);case"month":return W(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function we(e,t){switch(e){case"century":return x(t);case"decade":return _(t);case"year":return j(t);case"month":return z(t);case"day":return K(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Se(e,t){switch(e){case"century":return k(t);case"decade":return L(t);case"year":return U(t);case"month":return G(t);case"day":return Y(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Ee(e,t,r){return r.map(function(r){return(t||fe)(e,r)}).join(" – ")}function Ne(e,t,r){return Ee(e,t,L(r))}function Te(e){return e.getDay()===(new Date).getDay()}function xe(e,t){void 0===t&&(t=te);var r=e.getDay();switch(t){case ee:case Q:return r===he||r===me;case te:case X:return r===me||r===pe;default:throw new Error("Unsupported calendar type.")}}var Ce="react-calendar__navigation";function ke(e){var t,r=e.activeStartDate,a=e.drillUp,o=e.formatMonthYear,i=void 0===o?ue:o,l=e.formatYear,s=void 0===l?fe:l,u=e.locale,c=e.maxDate,d=e.minDate,f=e.navigationAriaLabel,p=void 0===f?"":f,m=e.navigationAriaLive,v=e.navigationLabel,y=e.next2AriaLabel,b=void 0===y?"":y,g=e.next2Label,w=void 0===g?"»":g,S=e.nextAriaLabel,E=void 0===S?"":S,T=e.nextLabel,x=void 0===T?"›":T,O=e.prev2AriaLabel,_=void 0===O?"":O,L=e.prev2Label,M=void 0===L?"«":L,j=e.prevAriaLabel,U=void 0===j?"":j,B=e.prevLabel,H=void 0===B?"‹":B,z=e.setActiveStartDate,G=e.showDoubleView,V=e.view,q=e.views.indexOf(V)>0,K="century"!==V,Y=function(e,t){switch(e){case"century":return N(t);case"decade":return D(t);case"year":return P(t);case"month":return Z(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(V,r),J=K?function(e,t){switch(e){case"decade":return D(t,-100);case"year":return P(t,-10);case"month":return Z(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(V,r):void 0,X=ge(V,r),Q=K?function(e,t){switch(e){case"decade":return R(t,100);case"year":return I(t,10);case"month":return W(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}}(V,r):void 0,ee=function(){if(Y.getFullYear()<0)return!0;var e=function(e,t){switch(e){case"century":return C(t);case"decade":return A(t);case"year":return F(t);case"month":return $(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(V,r);return d&&d>=e}(),te=K&&function(){if(J.getFullYear()<0)return!0;var e=function(e,t){switch(e){case"decade":return A(t,-100);case"year":return F(t,-10);case"month":return $(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(V,r);return d&&d>=e}(),re=c&&c<X,ne=K&&c&&c<Q;function ae(e){var t=function(){switch(V){case"century":return function(e,t,r){return Ee(e,t,k(r))}(u,s,e);case"decade":return Ne(u,s,e);case"year":return s(u,e);case"month":return i(u,e);default:throw new Error("Invalid view: ".concat(V,"."))}}();return v?v({date:e,label:t,locale:u||h()||void 0,view:V}):t}return(0,n.jsxs)("div",{className:Ce,children:[null!==M&&K?(0,n.jsx)("button",{"aria-label":_,className:"".concat(Ce,"__arrow ").concat(Ce,"__prev2-button"),disabled:te,onClick:function(){z(J,"prev2")},type:"button",children:M}):null,null!==H&&(0,n.jsx)("button",{"aria-label":U,className:"".concat(Ce,"__arrow ").concat(Ce,"__prev-button"),disabled:ee,onClick:function(){z(Y,"prev")},type:"button",children:H}),(t="".concat(Ce,"__label"),(0,n.jsxs)("button",{"aria-label":p,"aria-live":m,className:t,disabled:!q,onClick:a,style:{flexGrow:1},type:"button",children:[(0,n.jsx)("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--from"),children:ae(r)}),G?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"".concat(t,"__divider"),children:" – "}),(0,n.jsx)("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--to"),children:ae(X)})]}):null]})),null!==x&&(0,n.jsx)("button",{"aria-label":E,className:"".concat(Ce,"__arrow ").concat(Ce,"__next-button"),disabled:re,onClick:function(){z(X,"next")},type:"button",children:x}),null!==w&&K?(0,n.jsx)("button",{"aria-label":b,className:"".concat(Ce,"__arrow ").concat(Ce,"__next2-button"),disabled:ne,onClick:function(){z(Q,"next2")},type:"button",children:w}):null]})}var Oe=function(){return Oe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Oe.apply(this,arguments)};function De(e){return"".concat(e,"%")}function Re(e){var t=e.children,r=e.className,o=e.count,i=e.direction,l=e.offset,s=e.style,u=e.wrap,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["children","className","count","direction","offset","style","wrap"]);return(0,n.jsx)("div",Oe({className:r,style:Oe({display:"flex",flexDirection:i,flexWrap:u?"wrap":"nowrap"},s)},c,{children:a.Children.map(t,function(e,t){var r=l&&0===t?De(100*l/o):null;return(0,a.cloneElement)(e,Oe(Oe({},e.props),{style:{flexBasis:De(100/o),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:r,marginInlineStart:r,marginInlineEnd:0}}))})}))}function _e(e,t){return t[0]<=e&&t[1]>=e}function Ae(e,t){return _e(e[0],t)||_e(e[1],t)}function Le(e,t,r){var n=[];if(Ae(t,e)){n.push(r);var a=_e(e[0],t),o=_e(e[1],t);a&&n.push("".concat(r,"Start")),o&&n.push("".concat(r,"End")),a&&o&&n.push("".concat(r,"BothEnds"))}return n}function Me(e){if(!e)throw new Error("args is required");var t=e.value,r=e.date,n=e.hover,a="react-calendar__tile",o=[a];if(!r)return o;var i=new Date,l=function(){if(Array.isArray(r))return r;var t=e.dateType;if(!t)throw new Error("dateType is required when date is not an array of two dates");return Se(t,r)}();if(_e(i,l)&&o.push("".concat(a,"--now")),!t||!function(e){return Array.isArray(e)?null!==e[0]&&null!==e[1]:null!==e}(t))return o;var s,u,c=function(){if(Array.isArray(t))return t;var r=e.valueType;if(!r)throw new Error("valueType is required when value is not an array of two dates");return Se(r,t)}();u=l,(s=c)[0]<=u[0]&&s[1]>=u[1]?o.push("".concat(a,"--active")):Ae(c,l)&&o.push("".concat(a,"--hasActive"));var d=Le(c,l,"".concat(a,"--range"));o.push.apply(o,d);var f=Array.isArray(t)?t:[t];
2if(n&&1===f.length){var p=Le(n>c[0]?[c[0],n]:[n,c[0]],l,"".concat(a,"--hover"));o.push.apply(o,p)}return o}function Pe(e){for(var t=e.className,r=e.count,a=void 0===r?3:r,o=e.dateTransform,i=e.dateType,l=e.end,s=e.hover,u=e.offset,c=e.renderTile,d=e.start,f=e.step,p=void 0===f?1:f,h=e.value,m=e.valueType,v=[],y=d;y<=l;y+=p){var b=o(y);v.push(c({classes:Me({date:b,dateType:i,hover:s,value:h,valueType:m}),date:b}))}return(0,n.jsx)(Re,{className:t,count:a,offset:u,wrap:!0,children:v})}function Ie(e){var t=e.activeStartDate,r=e.children,o=e.classes,l=e.date,s=e.formatAbbr,u=e.locale,c=e.maxDate,d=e.maxDateTransform,f=e.minDate,p=e.minDateTransform,h=e.onClick,m=e.onMouseOver,v=e.style,y=e.tileClassName,b=e.tileContent,g=e.tileDisabled,w=e.view,S=(0,a.useMemo)(function(){return"function"==typeof y?y({activeStartDate:t,date:l,view:w}):y},[t,l,y,w]),E=(0,a.useMemo)(function(){return"function"==typeof b?b({activeStartDate:t,date:l,view:w}):b},[t,l,b,w]);return(0,n.jsxs)("button",{className:i(o,S),disabled:f&&p(f)>l||c&&d(c)<l||(null==g?void 0:g({activeStartDate:t,date:l,view:w})),onClick:h?function(e){return h(l,e)}:void 0,onFocus:m?function(){return m(l)}:void 0,onMouseOver:m?function(){return m(l)}:void 0,style:v,type:"button",children:[s?(0,n.jsx)("abbr",{"aria-label":s(u,l),children:r}):r,E]})}var je=function(){return je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},je.apply(this,arguments)},Fe="react-calendar__century-view__decades__decade";function Ue(e){var t=e.classes,r=void 0===t?[]:t,a=e.currentCentury,o=e.formatYear,i=void 0===o?fe:o,l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["classes","currentCentury","formatYear"]),s=l.date,u=l.locale,c=[];return r&&c.push.apply(c,r),Fe&&c.push(Fe),E(s).getFullYear()!==a&&c.push("".concat(Fe,"--neighboringCentury")),(0,n.jsx)(Ie,je({},l,{classes:c,maxDateTransform:_,minDateTransform:O,view:"century",children:Ne(u,i,s)}))}var Be=function(){return Be=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Be.apply(this,arguments)},He=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function Ze(e){var t=e.activeStartDate,r=e.hover,a=e.showNeighboringCentury,o=e.value,i=e.valueType,l=He(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),s=g(E(t)),u=s+(a?119:99);return(0,n.jsx)(Pe,{className:"react-calendar__century-view__decades",dateTransform:O,dateType:"decade",end:u,hover:r,renderTile:function(e){var r=e.date,a=He(e,["date"]);return(0,n.jsx)(Ue,Be({},l,a,{activeStartDate:t,currentCentury:s,date:r}),r.getTime())},start:s,step:10,value:o,valueType:i})}var We=function(){return We=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},We.apply(this,arguments)};function ze(e){return(0,n.jsx)("div",{className:"react-calendar__century-view",children:(0,n.jsx)(Ze,We({},e))})}var $e=function(){return $e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},$e.apply(this,arguments)},Ge="react-calendar__decade-view__years__year";function Ve(e){var t=e.classes,r=void 0===t?[]:t,a=e.currentDecade,o=e.formatYear,i=void 0===o?fe:o,l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["classes","currentDecade","formatYear"]),s=l.date,u=l.locale,c=[];return r&&c.push.apply(c,r),Ge&&c.push(Ge),O(s).getFullYear()!==a&&c.push("".concat(Ge,"--neighboringDecade")),(0,n.jsx)(Ie,$e
2({},l,{classes:c,maxDateTransform:j,minDateTransform:M,view:"decade",children:i(u,s)}))}var qe=function(){return qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},qe.apply(this,arguments)},Ke=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function Ye(e){var t=e.activeStartDate,r=e.hover,a=e.showNeighboringDecade,o=e.value,i=e.valueType,l=Ke(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),s=g(O(t)),u=s+(a?11:9);return(0,n.jsx)(Pe,{className:"react-calendar__decade-view__years",dateTransform:M,dateType:"year",end:u,hover:r,renderTile:function(e){var r=e.date,a=Ke(e,["date"]);return(0,n.jsx)(Ve,qe({},l,a,{activeStartDate:t,currentDecade:s,date:r}),r.getTime())},start:s,value:o,valueType:i})}var Je=function(){return Je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Je.apply(this,arguments)};function Xe(e){return(0,n.jsx)("div",{className:"react-calendar__decade-view",children:(0,n.jsx)(Ye,Je({},e))})}var Qe=function(){return Qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Qe.apply(this,arguments)},et=function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))};function tt(e){var t=e.classes,r=void 0===t?[]:t,a=e.formatMonth,o=void 0===a?se:a,i=e.formatMonthYear,l=void 0===i?ue:i,s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["classes","formatMonth","formatMonthYear"]),u=s.date,c=s.locale;return(0,n.jsx)(Ie,Qe({},s,{classes:et(et([],r,!0),["react-calendar__year-view__months__month"],!1),formatAbbr:l,maxDateTransform:z,minDateTransform:H,view:"year",children:o(c,u)}))}var rt=function(){return rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},rt.apply(this,arguments)},nt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function at(e){var t=e.activeStartDate,r=e.hover,a=e.value,o=e.valueType,i=nt(e,["activeStartDate","hover","value","valueType"]),l=g(t);return(0,n.jsx)(Pe,{className:"react-calendar__year-view__months",dateTransform:function(e){var t=new Date;return t.setFullYear(l,e,1),H(t)},dateType:"month",end:11,hover:r,renderTile:function(e){var r=e.date,a=nt(e,["date"]);return(0,n.jsx)(tt,rt({},i,a,{activeStartDate:t,date:r}),r.getTime())},start:0,value:a,valueType:o})}var ot=function(){return ot=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ot.apply(this,arguments)};function it(e){return(0,n.jsx)("div",{className:"react-calendar__year-view",children:(0,n.jsx)(at,ot({},e))})}var lt=function(){return lt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},lt.apply(this,arguments)},st="react-calendar__month-view__days__day";function ut(e){var t=e.calendarType,r=e.classes,a=void 0===r?[]:r,o=e.currentMonthIndex,i=e.formatDay,l=void 0===i?ie:i,s=e.formatLongDate,u=void 0===s?le:s,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),d=c.date,f=c.locale,p=[];
2return a&&p.push.apply(p,a),st&&p.push(st),xe(d,t)&&p.push("".concat(st,"--weekend")),d.getMonth()!==o&&p.push("".concat(st,"--neighboringMonth")),(0,n.jsx)(Ie,lt({},c,{classes:p,formatAbbr:u,maxDateTransform:K,minDateTransform:q,view:"month",children:l(f,d)}))}var ct=function(){return ct=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ct.apply(this,arguments)},dt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function ft(e){var t=e.activeStartDate,r=e.calendarType,a=e.hover,o=e.showFixedNumberOfWeeks,i=e.showNeighboringMonth,l=e.value,s=e.valueType,u=dt(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),c=g(t),d=w(t),f=o||i,p=ve(t,r),h=f?0:p,m=1+(f?-p:0),v=function(){if(o)return m+42-1;var e=J(t);if(i){var n=new Date;
2return n.setFullYear(c,d,e),n.setHours(0,0,0,0),e+(7-ve(n,r)-1)}return e}();return(0,n.jsx)(Pe,{className:"react-calendar__month-view__days",count:7,dateTransform:function(e){var t=new Date;return t.setFullYear(c,d,e),q(t)},dateType:"day",hover:a,end:v,renderTile:function(e){var a=e.date,o=dt(e,["date"]);return(0,n.jsx)(ut,ct({},u,o,{activeStartDate:t,calendarType:r,currentMonthIndex:d,date:a}),a.getTime())},offset:h,start:m,value:l,valueType:s})}var pt="react-calendar__month-view__weekdays",ht="".concat(pt,"__weekday");function mt(e){for(var t=e.calendarType,r=e.formatShortWeekday,a=void 0===r?ce:r,o=e.formatWeekday,l=void 0===o?de:o,s=e.locale,u=e.onMouseLeave,c=H(new Date),d=g(c),f=w(c),p=[],h=1;h<=7;h+=1){var m=new Date(d,f,h-ve(c,t)),v=l(s,m);p.push((0,n.jsx)("div",{className:i(ht,Te(m)&&"".concat(ht,"--current"),xe(m,t)&&"".concat(ht,"--weekend")),children:(0,n.jsx)("abbr",{"aria-label":v,title:v,children:a(s,m).replace(".","")})},h))}return(0,n.jsx)(Re,{className:pt,count:7,onFocus:u,onMouseOver:u,children:p})}var vt=function(){return vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},vt.apply(this,arguments)},yt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},bt="react-calendar__tile";function gt(e){var t=e.onClickWeekNumber,r=e.weekNumber,a=(0,n.jsx)("span",{children:r});if(t){var o=e.date,i=e.onClickWeekNumber,l=e.weekNumber,s=yt(e,["date","onClickWeekNumber","weekNumber"]);return(0,n.jsx)("button",vt({},s,{className:bt,onClick:function(e){return i(l,o,e)},type:"button",children:a}))}return e.date,e.onClickWeekNumber,e.weekNumber,s=yt(e,["date","onClickWeekNumber","weekNumber"]),(0,n.jsx)("div",vt({},s,{className:bt,children:a}))}function wt(e){var t=e.activeStartDate,r=e.calendarType,a=e.onClickWeekNumber,o=e.onMouseLeave,i=e.showFixedNumberOfWeeks,l=function(){if(i)return 6;var e=J(t)-(7-ve(t,r));return 1+Math.ceil(e/7)}(),s=function(){for(var e=g(t),n=w(t),a=S(t),o=[],i=0;i<l;i+=1)o.push(ye(new Date(e,n,a+7*i),r));return o}(),u=s.map(function(e){return function(e,t){void 0===t&&(t=te);var r,n=t===X?X:te,a=ye(e,t),o=g(e)+1;do{r=ye(new Date(o,0,n===te?4:1),t),o-=1}while(e<r);return Math.round((a.getTime()-r.getTime())/6048e5)+1}(e,r)});return(0,n.jsx)(Re,{className:"react-calendar__month-view__weekNumbers",count:l,direction:"column",onFocus:o,onMouseOver:o,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:u.map(function(e,t){var r=s[t];if(!r)throw new Error("date is not defined");return(0,n.jsx)(gt,{date:r,onClickWeekNumber:a,weekNumber:e},e)})})}var St=function(){return St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},St.apply(this,arguments)};function Et(e){var t=e.activeStartDate,r=e.locale,a=e.onMouseLeave,o=e.showFixedNumberOfWeeks,l=e.calendarType,s=void 0===l?function(e){if(e)for(var t=0,r=Object.entries(re);t<r.length;t++){var n=r[t],a=n[0];if(n[1].includes(e))return a}return te}(r):l,u=e.formatShortWeekday,c=e.formatWeekday,d=e.onClickWeekNumber,f=e.showWeekNumbers,p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]),h="react-calendar__month-view";return(0,n.jsx)("div",{className:i(h,f?"".concat(h,"--weekNumbers"):""),children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"flex-end"},children:[f?(0,n.jsx)(wt,{activeStartDate:t,calendarType:s,onClickWeekNumber:d,onMouseLeave:a,showFixedNumberOfWeeks:o}):null,(0,n.jsxs)("div",{style:{flexGrow:1,width:"100%"},children:[(0,n.jsx)(mt,{calendarType:s,formatShortWeekday:u,formatWeekday:c,locale:r,onMouseLeave:a}),(0,n.jsx)(ft,St({calendarType:s},p))]})]})})}var Nt=function(){return Nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Nt.apply(this,arguments)},Tt="react-calendar",xt=["century","decade","year","month"],Ct=["decade","year","month","day"],kt=new Date;kt.setFullYear(1,0,1),kt.setHours(0,0,0,0);var Ot=new Date(864e13);function Dt(e){return e instanceof Date?e:new Date(e)}function Rt(e,t){return xt.slice(xt.indexOf(e),xt.indexOf(t)+1)}function _t(e,t,r){return e&&function(e,t,r){return-1!==Rt(t,r).indexOf(e)}(e,t,r)?e:r}function At(e){var t=xt.indexOf(e);return Ct[t]}function Lt(e,t){var r=e.value,n=e.minDate,a=e.maxDate,o=e.maxDetail,i=function(e,t){var r=Array.isArray(e)?e[t]:e;if(!r)return null;var n=Dt(r);if(Number.isNaN(n.getTime()))throw new Error("Invalid date: ".concat(e));return n}(r,t);if(!i)return null;var l=At(o);return function(e,t,r){return t&&t>e?t:r&&r<e?r:e}(function(){switch(t){case 0:return be(l,i);case 1:return we(l,i);default:throw new Error("Invalid index value: ".concat(t))}}(),n,a)}var Mt=function(e){return Lt(e,0)},Pt=function(e){return Lt(e,1)},It=function(e){return[Mt,Pt].map(function(t){return t(e)})};function jt(e){var t=e.maxDate,r=e.maxDetail,n=e.minDate,a=e.minDetail,o=e.value;return be(_t(e.view,a,r),Mt({value:o,minDate:n,maxDate:t,maxDetail:r})||new Date)}function Ft(e){return e&&(!Array.isArray(e)||1===e.length)}function Ut(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var Bt=(0,a.forwardRef)(function(e,t){var r,o=e.activeStartDate,l=e.allowPartialRange,s=e.calendarType,u=e.className,c=e.defaultActiveStartDate,d=e.defaultValue,f=e.defaultView,p=e.formatDay,h=e.formatLongDate,m=e.formatMonth,v=e.formatMonthYear,y=e.formatShortWeekday,b=e.formatWeekday,g=e.formatYear,w=e.goToRangeStartOnSelect,S=void 0===w||w,E=e.inputRef,N=e.locale,T=e.maxDate,x=void 0===T?Ot:T,C=e.maxDetail,k=void 0===C?"month":C,O=e.minDate,D=void 0===O?kt:O,R=e.minDetail,_=void 0===R?"century":R,A=e.navigationAriaLabel,L=e.navigationAriaLive,M=e.navigationLabel,P=e.next2AriaLabel,I=e.next2Label,j=e.nextAriaLabel,F=e.nextLabel,U=e.onActiveStartDateChange,B=e.onChange,H=e.onClickDay,Z=e.onClickDecade,W=e.onClickMonth,z=e.onClickWeekNumber,$=e.onClickYear,G=e.onDrillDown,V=e.onDrillUp,q=e.onViewChange,K=e.prev2AriaLabel,Y=e.prev2Label,J=e.prevAriaLabel,X=e.prevLabel,Q=e.returnValue,ee=void 0===Q?"start":Q,te=e.selectRange,re=e.showDoubleView,ne=e.showFixedNumberOfWeeks,ae=e.showNavigation,oe=void 0===ae||ae,ie=e.showNeighboringCentury,le=e.showNeighboringDecade,se=e.showNeighboringMonth,ue=void 0===se||se,ce=e.showWeekNumbers,de=e.tileClassName,fe=e.tileContent,pe=e.tileDisabled,he=e.value,me=e.view,ve=(0,a.useState)(c),ye=ve[0],Se=ve[1],Ee=(0,a.useState)(null),Ne=Ee[0],Te=Ee[1],xe=(0,a.useState)(Array.isArray(d)?d.map(function(e){return null!==e?Dt(e):null}):null!=d?Dt(d):null),Ce=xe[0],Oe=xe[1],De=(0,a.useState)(f),Re=De[0],_e=De[1],Ae=o||ye||function(e){var t=e.activeStartDate,r=e.defaultActiveStartDate,n=e.defaultValue,a=e.defaultView,o=e.maxDate,i=e.maxDetail,l=e.minDate,s=e.minDetail,u=e.value,c=e.view,d=_t(c,s,i),f=t||r;return f?be(d,f):jt({maxDate:o,maxDetail:i,minDate:l,minDetail:s,value:u||n,view:c||a})}({activeStartDate:o,defaultActiveStartDate:c,defaultValue:d,defaultView:f,maxDate:x,maxDetail:k,minDate:D,minDetail:_,value:he,view:me}),Le=(r=te&&Ft(Ce)?Ce:void 0!==he?he:Ce)?Array.isArray(r)?r.map(function(e){return null!==e?Dt(e):null}):null!==r?Dt(r):null:null,Me=At(k),Pe=_t(me||Re,_,k),Ie=Rt(_,k),je=te?Ne:null,Fe=Ie.indexOf(Pe)<Ie.length-1,Ue=Ie.indexOf(Pe)>0,Be=(0,a.useCallback)(function(e){return function(){switch(ee){case"start":return Mt;case"end":return Pt;case"range":return It;default:throw new Error("Invalid returnValue.")}}()({maxDate:x,maxDetail:k,minDate:D,value:e})},[x,k,D,ee]),He=(0,a.useCallback)(function(e,t){Se(e);var r={action:t,activeStartDate:e,value:Le,view:Pe};U&&!Ut(Ae,e)&&U(r)},[Ae,U,Le,Pe]),Ze=(0,a.useCallback)(function(e,t){var r=function(){switch(Pe){case"century":return Z;case"decade":return $;case"year":return W;case"month":return H;default:throw new Error("Invalid view: ".concat(Pe,"."))}}();r&&r(e,t)},[H,Z,W,$,Pe]),We=(0,a.useCallback)(function(e,t){if(Fe){Ze(e,t);var r=Ie[Ie.indexOf(Pe)+1];if(!r)throw new Error("Attempted to drill down from the lowest view.");Se(e),_e(r);var n={action:"drillDown",activeStartDate:e,value:Le,view:r};U&&!Ut(Ae,e)&&U(n),q&&Pe!==r&&q(n),G&&G(n)}}
2,[Ae,Fe,U,Ze,G,q,Le,Pe,Ie]),$e=(0,a.useCallback)(function(){if(Ue){var e=Ie[Ie.indexOf(Pe)-1];if(!e)throw new Error("Attempted to drill up from the highest view.");var t=be(e,Ae);Se(t),_e(e);var r={action:"drillUp",activeStartDate:t,value:Le,view:e};U&&!Ut(Ae,t)&&U(r),q&&Pe!==e&&q(r),V&&V(r)}},[Ae,Ue,U,V,q,Le,Pe,Ie]),Ge=(0,a.useCallback)(function(e,t){var r=Le;Ze(e,t);var n,a=te&&!Ft(r);if(te)if(a)n=be(Me,e);else{if(!r)throw new Error("previousValue is required");if(Array.isArray(r))throw new Error("previousValue must not be an array");n=function(e,t,r){var n=[t,r].sort(function(e,t){return e.getTime()-t.getTime()});return[be(e,n[0]),we(e,n[1])]}(Me,r,e)}else n=Be(e);var o=!te||a||S?jt({maxDate:x,maxDetail:k,minDate:D,minDetail:_,value:n,view:Pe}):null;t.persist(),Se(o),Oe(n);var i={action:"onChange",activeStartDate:o,value:n,view:Pe};if(U&&!Ut(Ae,o)&&U(i),B)if(te)if(Ft(n)){if(l){if(Array.isArray(n))throw new Error("value must not be an array");B([n||null,null],t)}}else B(n||null,t);else B(n||null,t)},[Ae,l,Be,S,x,k,D,_,U,B,Ze,te,Le,Me,Pe]);function Ve(e){Te(e)}function qe(){Te(null)}function Ke(e){var t={activeStartDate:e?ge(Pe,Ae):be(Pe,Ae),hover:je,locale:N,maxDate:x,minDate:D,onClick:Fe?We:Ge,onMouseOver:te?Ve:void 0,tileClassName:de,tileContent:fe,tileDisabled:pe,value:Le,valueType:Me};switch(Pe){case"century":return(0,n.jsx)(ze,Nt({formatYear:g,showNeighboringCentury:ie},t));case"decade":return(0,n.jsx)(Xe,Nt({formatYear:g,showNeighboringDecade:le},t));case"year":return(0,n.jsx)(it,Nt({formatMonth:m,formatMonthYear:v},t));case"month":return(0,n.jsx)(Et,Nt({calendarType:s,formatDay:p,formatLongDate:h,formatShortWeekday:y,formatWeekday:b,onClickWeekNumber:z,onMouseLeave:te?qe:void 0,showFixedNumberOfWeeks:void 0!==ne?ne:re,showNeighboringMonth:ue,showWeekNumbers:ce},t));default:throw new Error("Invalid view: ".concat(Pe,"."))}}(0,a.useImperativeHandle)(t,function(){return{activeStartDate:Ae,drillDown:We,drillUp:$e,onChange:Ge,setActiveStartDate:He,value:Le,view:Pe}},[Ae,We,$e,Ge,He,Le,Pe]);var Ye=Array.isArray(Le)?Le:[Le];return(0,n.jsxs)("div",{className:i(Tt,te&&1===Ye.length&&"".concat(Tt,"--selectRange"),re&&"".concat(Tt,"--doubleView"),u),ref:E,children:[oe?(0,n.jsx)(ke,{activeStartDate:Ae,drillUp:$e,formatMonthYear:v,formatYear:g,locale:N,maxDate:x,minDate:D,navigationAriaLabel:A,navigationAriaLive:L,navigationLabel:M,next2AriaLabel:P,next2Label:I,nextAriaLabel:j,nextLabel:F,prev2AriaLabel:K,prev2Label:Y,prevAriaLabel:J,prevLabel:X,setActiveStartDate:He,showDoubleView:re,view:Pe,views:Ie}):null,(0,n.jsxs)("div",{className:"".concat(Tt,"__viewContainer"),onBlur:te?qe:void 0,onMouseLeave:te?qe:void 0,children:[Ke(),re?Ke(!0):null]})]})}),Ht=Bt}},function(e){e.O(0,[8622,532,4768],function(){return e(e.s=1579)});var t=e.O();ticketshopHomepageJourney=t}]);
3//# sourceMappingURL=HomepageJourney.890637aed803424c4e00.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.