PageSourceSearch

https://mychtransit.org/assets/entry.client-CXFPlqcN.js

js mychtransit.org collected 2026-10-04 13:34:01 UTC 6,551 bytes, 5 lines download raw bytes

1import{m as E,s as R,E as g,N as S,R as l,i as v,r as s,h as x,k as _,F as D,l as b,n as M,o as C,p as k,q as P,t as F,v as L,x as T,y as H,z as I,A as z,j as p}from"./chunk-LFPYN7LY-BYCOceFh.js";import{c as O}from"./client-BLYx_TBV.js";import{r as N}from"./index-DAESeoaZ.js";[...S];new TextEncoder;(class extends l.Component{constructor(t){super(t),this.state={error:null,location:t.location}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,o){return o.location!==t.location?{error:null,location:t.location}:{error:o.error,location:o.location}}render(){return this.state.error?l.createElement(j,{error:this.state.error,renderAppShell:!0}):this.props.children}});function y({renderAppShell:t,title:o,children:n}){return t?l.createElement("html",{lang:"en"},l.createElement("head",null,l.createElement("meta",{charSet:"utf-8"}),l.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),l.createElement("title",null,o)),l.createElement("body",null,l.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n))):n}function j({error:t,renderAppShell:o}){console.error(t);let n=l.createElement("script",{dangerouslySetInnerHTML:{__html:`
2        console.log(
3          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
4        );
5      `}});if(v(t))return l.createElement(y,{renderAppShell:o,title:"Unhandled Thrown Response!"},l.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),n);let i;if(t instanceof Error)i=t;else{let r=t==null?"Unknown Error":typeof t=="object"&&"toString"in t?t.toString():JSON.stringify(t);i=new Error(r)}return l.createElement(y,{renderAppShell:o,title:"Application Error!"},l.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),l.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},i.stack),n)}function A(t){if(!t)return null;let o=Object.entries(t),n={};for(let[i,r]of o)if(r&&r.__type==="RouteErrorResponse")n[i]=new g(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let a=window[r.__subType];if(typeof a=="function")try{let d=new a(r.message);d.stack=r.stack,n[i]=d}catch{}}if(n[i]==null){let a=new Error(r.message);a.stack=r.stack,n[i]=a}}else n[i]=r;return n}function B({state:t,routes:o,getRouteInfo:n,location:i,basename:r,isSpaMode:a}){let d={...t,loaderData:{...t.loaderData}},m=E(o,i,r);if(m)for(let u of m){let c=u.route.id,f=n(c);R(c,f.clientLoader,f.hasLoader,a)&&(f.hasHydrateFallback||!f.hasLoader)?delete d.loaderData[c]:f.hasLoader||(d.loaderData[c]=null)}return d}function U(t){return s.createElement(M,{flushSync:N.flushSync,...t})}var e=null,h=null;function q(){if(!e&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){const t=document.querySelector("script[rr-importmap]");if(t!=null&&t.textContent)try{window.__reactRouterManifest.sri=JSON.parse(t.textContent).integrity}catch(o){console.error("Failed to parse import map",o)}}e={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function W({getContext:t,unstable_instrumentations:o}){var d,m;if(q(),!e)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=e;if(!e.stateDecodingPromise){let u=e.context.stream;x(u,"No stream found for single fetch decoding"),e.context.stream=void 0,e.stateDecodingPromise=C(u,window).then(c=>{e.context.state=c.value,n.stateDecodingPromise.value=!0}).catch(c=>{n.stateDecodingPromise.error=c})}if(e.stateDecodingPromise.error)throw e.stateDecodingPromise.error;if(!e.stateDecodingPromise.value)throw e.stateDecodingPromise;let i=k(e.manifest.routes,e.routeModules,e.context.state,e.context.ssr,e.context.
5isSpaMode),r;if(e.context.isSpaMode){let{loaderData:u}=e.context.state;(d=e.manifest.routes.root)!=null&&d.hasLoader&&u&&"root"in u&&(r={loaderData:{root:u.root}})}else r=B({state:e.context.state,routes:i,getRouteInfo:u=>{var c,f,w;return{clientLoader:(c=e.routeModules[u])==null?void 0:c.clientLoader,hasLoader:((f=e.manifest.routes[u])==null?void 0:f.hasLoader)===!0,hasHydrateFallback:((w=e.routeModules[u])==null?void 0:w.HydrateFallback)!=null}},location:window.location,basename:(m=window.__reactRouterContext)==null?void 0:m.basename,isSpaMode:e.context.isSpaMode}),r&&r.errors&&(r.errors=A(r.errors));window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let a=P({routes:i,history:T(),basename:e.context.basename,getContext:t,hydrationData:r,hydrationRouteProperties:z,unstable_instrumentations:o,mapRouteProperties:I,future:{middleware:e.context.future.v8_middleware},dataStrategy:L(()=>a,e.manifest,e.routeModules,e.context.ssr,e.context.basename,e.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:F(()=>a,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode,e.context.basename)});return e.router=a,a.state.initialized&&(e.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=H,window.__reactRouterDataRouter=a,a}function Y(t){h||(h=W({getContext:t.getContext,unstable_instrumentations:t.unstable_instrumentations}));let[o,n]=s.useState(void 0);s.useEffect(()=>{},[]),s.useEffect(()=>{},[o]);let[i,r]=s.useState(h.state.location);return s.useLayoutEffect(()=>{e&&e.router&&!e.routerInitialized&&(e.routerInitialized=!0,e.router.initialize())},[]),s.useLayoutEffect(()=>{if(e&&e.router)return e.router.subscribe(a=>{a.location!==i&&r(a.location)})},[i]),x(e,"ssrInfo unavailable for HydratedRouter"),_(h,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode),s.createElement(s.Fragment,null,s.createElement(D.Provider,{value:{manifest:e.manifest,routeModules:e.routeModules,future:e.context.future,criticalCss:o,ssr:e.context.ssr,isSpaMode:e.context.isSpaMode,routeDiscovery:e.context.routeDiscovery}},s.createElement(b,{location:i},s.createElement(U,{router:h,unstable_useTransitions:t.unstable_useTransitions,onError:t.onError}))),s.createElement(s.Fragment,null))}s.startTransition(()=>{O.hydrateRoot(document,p.jsx(s.StrictMode,{children:p.jsx(Y,{})}))});

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.