https://trains.fyi/_next/static/chunks/5465-1df286c0a1d5d32f.js?dpl=dpl_5vQSvZVhuinF4HqkBsmkPs3cGsp5
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5465],{92:()=>{},18847:(e,t,r)=>{e.exports=r(75808)},29479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let l=r(72687)._(r(14232)),a=r(41413),n=[],s=[],o=!1;function i(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function u(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function i(){if(!n){let t=new d(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!o){let e=r.webpack&&1?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return i()})}function u(e,t){let s;i(),(s=l.default.useContext(a.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(e=>{s(e)});let o=l.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return l.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),l.default.useMemo(()=>{var t;return o.loading||o.error?l.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:n.retry}):o.loaded?l.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return u.preload=()=>i(),u.displayName="LoadableComponent",l.default.forwardRef(u)}(i,e)}function c(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(n).then(e,t)}),u.preloadReady=(e=[])=>new Promise(t=>{let r=()=>(o=!0,t());c(s,e).then(r,r)}),window.__NEXT_PRELOADREADY=u.preloadReady;let h=u},41413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return l}});let l=r(72687)._(r(14232)).default.createContext(null)},49915:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var l=r(37876),a=r(60570),n=r(48230),s=r.n(n);function o({pages:e}){return(0,l.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,l.jsxs)("ol",{role:"list",className:"flex items-center space-x-4 pt-6",children:[(0,l.jsx)("li",{children:(0,l.jsx)("div",{children:(0,l.jsxs)(s(),{href:"/",className:"text-gray-400 hover:text-gray-500",children:[(0,l.jsx)(a.A,{"aria-hidden":"true",className:"h-5 w-5 flex-shrink-0"}),(0,l.jsx)("span",{className:"sr-only",children:"Home"})]})})}),e.map(e=>(0,l.jsx)("li",{children:(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("svg",{fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",className:"h-5 w-5 flex-shrink-0 text-gray-300",children:(0,l.jsx)("path",{d:"M5.555 17.776l8-16 .894.448-8 16-.894-.448z"})}),(0,l.jsx)(s(),{href:e.href,"aria-current":e.current?"page":void 0,className:"ml-4 text-sm font-medium text-gray-500 hover:text-gray-700",children:e.name})]})},e.name))]})})}},60570:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var l=r(14232);let a=l.forwardRef(function({title:e,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",d:"M9.293 2.293a1 1 0 0 1 1.414 0l7 7A1 1 0 0 1 17 11h-1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6H3a1 1 0 0 1-.707-1.707l7-7Z",clipRule:"evenodd"}))})},73478:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var l=r(37876),a=r(18847),n=r.n(a),s=r(48230),o=r.n(s),i=r(14232);r(92);var d=r(74880);let u=n()(()=>r.e(6698).then(r.bind(r,36698)).then(e=>e.MapContainer),{loadableGenerated:{webpack:()=>[36698]},ssr:!1}),c=n()(()=>r.e(6698).then(r.bind(r,36698)).then(e=>e.TileLayer),{loadableGenerated:{webpack:()=>[36698]},ssr:!1}),h=n()(()=>r.e(6698).then(r.bind(r,36698)).then(e=>e.Marker),{loadableGenerated:{webpack:()=>[36698]},ssr:!1}),m=({city:e})=>{let{trains:t}=r(78240).nC(),a=(0,i.useMemo)(()=>t&&t.trains?t.trains.filter(t=>.5>Math.abs(t.lat-e.map.lat)&&.5>Math.abs(t.lng-e.map.lng)):[],[t,e]);return(0,l.jsxs)(o(),{href:`/${e.slug}/`,className:"block group relative rounded-lg overflow-hidden bg-white shadow-md hover:shadow-lg focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2",children:[(0,l.jsx)("div",{className:"h-40 w-full pointer-events-none",children:(0,l.jsxs)(u,{center:[e.map.lat,e.map.lng],zoom:11,zoomControl:!1,dragging:!1,touchZoom:!1,doubleClickZoom:!1,scrollWheelZoom:!1,attributionControl:!1,boxZoom:!1,keyboard:!1,tap:!1,style:{height:"100%",width:"100%"},children:[(0,l.jsx)(c,{url:"https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png"}),a.map(e=>{var t;let a,n,s,o;return(0,l.jsx)(h,{position:[e.lat,e.lng],icon:(t=e.agency,a=r(16895),n=d.Y.getNetwork(t.toLowerCase()),s=n?.color||"#000000",o=n?.darkerColor||"#000000",a.divIcon({className:"custom-icon",html:` 2 <div style="background-color: ${s}; width: 12px; height: 12px; border-radius: 50%; border: 2px solid ${o};"></div> 3 `,iconSize:[16,16],iconAnchor:[8,8]})),interactive:!1},e.id)})]})}),(0,l.jsxs)("div",{className:"p-4",children:[(0,l.jsx)("h3",{className:"text-xl font-medium text-gray-900",children:e.name}),(0,l.jsxs)("p",{className:"mt-1 text-sm text-gray-500",children:[e.state,", ",e.country]}),(0,l.jsxs)("p",{className:"mt-1 text-sm text-gray-500",children:[a.length," ",1===a.length?"train":"trains"," nearby"]})]})]})},f=n()(()=>Promise.resolve(m),{ssr:!1})},75808:(e,t,r)=>{"use strict";
3Object.defineProperty(t,"__esModule",{value:!0});var l={default:function(){return d},noSSR:function(){return i}};for(var a in l)Object.defineProperty(t,a,{enumerable:!0,get:l[a]});let n=r(72687);r(37876),r(14232);let s=n._(r(29479));function o(e){return{default:e?.default||e}}function i(e,t){return delete t.webpack,delete t.modules,e(t)}function d(e,t){let r=s.default,l={loading:({error:e,isLoading:t,pastDelay:r})=>null};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e});let a=(l={...l,...t}).loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=a?a().then(o):Promise.resolve(o(()=>null))}):(delete l.webpack,delete l.modules,i(r,l))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77808:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var l=r(14232);let a=l.forwardRef(function({title:e,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))})}}]);
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.